sim: return from cpin when sim ready for telit
authorChristopher Vogl <christopher.vogl@hale.at>
Fri, 14 Dec 2012 14:19:41 +0000 (15:19 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 17 Dec 2012 15:50:22 +0000 (09:50 -0600)
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

index 409533738865e12c7d5bce609184b94365ea6ef0..4448e3dadbc7c1b44591672929fc33c0d3250cc2 100644 (file)
@@ -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;