Handling the case when SIM PIN is enabled for xmm7xxx modem.
---
plugins/xmm7xxx.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/xmm7xxx.c b/plugins/xmm7xxx.c
index 1223008..195f96b 100644
--- a/plugins/xmm7xxx.c
+++ b/plugins/xmm7xxx.c
@@ -129,6 +129,12 @@ static void switch_sim_state_status(struct ofono_modem
*modem, int status)
data->sms_phonebook_added = FALSE;
}
break;
+ case 1: /* SIM inserted, PIN verification needed */
+ if (data->have_sim == FALSE) {
+ ofono_sim_inserted_notify(data->sim, TRUE);
+ data->have_sim = TRUE;
+ }
+ break;
case 2: /* SIM inserted, PIN verification not needed - READY */
case 3: /* SIM inserted, PIN verified - READY */
case 7: /* SIM inserted, SMS and phonebook - READY */
--
2.7.4
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono