atmodem: Poll SIM state after entering PIN
authorCedric Jehasse <cedric.jehasse@softathome.com>
Fri, 9 Nov 2012 13:16:53 +0000 (14:16 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 12 Nov 2012 19:30:38 +0000 (13:30 -0600)
Encountered a problem of CME ERROR 14: SIM busy on Alcatel and Huawei modem.
The Huawei modem has a ^SIMST unsollicited sim state indication, but not all
Huawei modems support this.
So poll the SIM state, as was already done for ZTE modems.

drivers/atmodem/sim.c

index ea3b180..9f05f4b 100644 (file)
@@ -1179,6 +1179,8 @@ static void at_pin_send_cb(gboolean ok, GAtResult *result,
                                                        FALSE, cbd, g_free);
                return;
        case OFONO_VENDOR_ZTE:
+       case OFONO_VENDOR_ALCATEL:
+       case OFONO_VENDOR_HUAWEI:
                /*
                 * On ZTE modems, after pin is entered, SIM state is checked
                 * by polling CPIN as their modem doesn't provide unsolicited