summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorChristopher Vogl <christopher.vogl@hale.at>2012-12-14 15:19:41 +0100
committerDenis Kenzior <denkenz@gmail.com>2012-12-17 09:50:22 -0600
commit404f2e3cb937d53f70750b0e1834d63a834bb7bf (patch)
treee3094fd96bece5ececf1dc9c3b3fb9b4ecb863a4 /drivers/atmodem
parent79453f328419802620d9633bddbd7da35748dc74 (diff)
downloadofono-404f2e3cb937d53f70750b0e1834d63a834bb7bf.tar.bz2
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.
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/sim.c2
1 files changed, 1 insertions, 1 deletions
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;