Content-Type: multipart/mixed; boundary="===============2494717107383270639==" MIME-Version: 1.0 From: Antara Borwankar Subject: [PATCH] xmm7modem: CPIN handling after sending puk Date: Thu, 19 Dec 2019 18:27:06 +0530 Message-ID: <1576760226-30941-1-git-send-email-antara.borwankar@intel.com> List-Id: To: ofono@ofono.org --===============2494717107383270639== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On XMM modems SIM is busy after PUK is entered. CME ERROR: 14 is received for AT+CPIN? query. Therefore polling for CPIN: READY state. --- drivers/atmodem/sim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c index e750a13..3ed5aa0 100644 --- a/drivers/atmodem/sim.c +++ b/drivers/atmodem/sim.c @@ -1354,13 +1354,14 @@ static void at_pin_send_cb(gboolean ok, GAtResult *= result, case OFONO_VENDOR_HUAWEI: case OFONO_VENDOR_SIMCOM: case OFONO_VENDOR_SIERRA: + case OFONO_VENDOR_XMM: /* * On ZTE modems, after pin is entered, SIM state is checked * by polling CPIN as their modem doesn't provide unsolicited * notification of SIM readiness. * - * On SIMCOM modems, SIM is busy after pin is entered (we - * got a "+CME ERROR: 14" for the "AT+CPIN?" request) and + * On SIMCOM and XMM modems, SIM is busy after pin is entered + * (we got a "+CME ERROR: 14" for the "AT+CPIN?" request) and * ofono don't catch the "+CPIN: READY" message sent by the * modem when SIM is ready. So, use extra CPIN to check the * state. -- = 1.9.1 --===============2494717107383270639==--