summaryrefslogtreecommitdiff
path: root/plugins/xmm7xxx.c
diff options
context:
space:
mode:
authorNandini Rebello <nandini.rebello@intel.com>2018-11-27 15:08:31 +0530
committerDenis Kenzior <denkenz@gmail.com>2018-11-27 08:44:07 -0600
commit68ea576628c3ad62ab9fe9bd8fe8cbdce15a3011 (patch)
treedc45759c199a3140d8576b396caa5db6ede960e6 /plugins/xmm7xxx.c
parent3f6f108a16e58a337b6c434921d456929f3f7335 (diff)
downloadofono-68ea576628c3ad62ab9fe9bd8fe8cbdce15a3011.tar.gz
xmm7xxx: Adding case for SIM PIN locked state
Handling the case when SIM PIN is enabled for xmm7xxx modem.
Diffstat (limited to 'plugins/xmm7xxx.c')
-rw-r--r--plugins/xmm7xxx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/xmm7xxx.c b/plugins/xmm7xxx.c
index 1223008b..195f96bd 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 */