* [PATCH] atmodem: Poll SIM state after entering PIN
@ 2012-11-09 13:16 Cedric Jehasse
2012-11-12 19:32 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Cedric Jehasse @ 2012-11-09 13:16 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
From: Cedric Jehasse <cedric.jehasse@softathome.com>
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 | 2 ++
drivers/atmodem/vendor.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c
index ea3b180..9f05f4b 100644
--- a/drivers/atmodem/sim.c
+++ b/drivers/atmodem/sim.c
@@ -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
diff --git a/drivers/atmodem/vendor.h b/drivers/atmodem/vendor.h
index 80aed3e..0532d10 100644
--- a/drivers/atmodem/vendor.h
+++ b/drivers/atmodem/vendor.h
@@ -41,4 +41,5 @@ enum ofono_vendor {
OFONO_VENDOR_SIMCOM,
OFONO_VENDOR_ICERA,
OFONO_VENDOR_WAVECOM_Q2XXX,
+ OFONO_VENDOR_ALCATEL
};
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] atmodem: Poll SIM state after entering PIN
2012-11-09 13:16 [PATCH] atmodem: Poll SIM state after entering PIN Cedric Jehasse
@ 2012-11-12 19:32 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2012-11-12 19:32 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
Hi Cedric,
On 11/09/2012 07:16 AM, Cedric Jehasse wrote:
> From: Cedric Jehasse<cedric.jehasse@softathome.com>
>
> 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 | 2 ++
> drivers/atmodem/vendor.h | 1 +
> 2 files changed, 3 insertions(+), 0 deletions(-)
Patch has been applied, however I broke it up into two commits per our
Patch Submission Guidelines. See HACKING.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-12 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09 13:16 [PATCH] atmodem: Poll SIM state after entering PIN Cedric Jehasse
2012-11-12 19:32 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.