From 404f2e3cb937d53f70750b0e1834d63a834bb7bf Mon Sep 17 00:00:00 2001 From: Christopher Vogl Date: Fri, 14 Dec 2012 15:19:41 +0100 Subject: [PATCH] sim: return from cpin when sim ready for telit Especially for Telit HE910 it is not enough to wait for entering a PIN code. If we do not wait for #QSS: 3, subsequent commands, like +CMER will report SIM BUSY and the network registration atom will be removed as a consequence. --- drivers/atmodem/sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c index 40953373..4448e3da 100644 --- a/drivers/atmodem/sim.c +++ b/drivers/atmodem/sim.c @@ -1178,7 +1178,7 @@ static void at_qss_notify(GAtResult *result, gpointer user_data) return; switch (state) { - case 2: /* PIN unlocked */ + case 3: /* SIM inserted and READY. */ break; default: return;