From: Cedric Jehasse <cedric.jehasse@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] atmodem: Poll SIM state after entering PIN
Date: Fri, 09 Nov 2012 14:16:53 +0100 [thread overview]
Message-ID: <1352467013-1418-1-git-send-email-cedric.jehasse@gmail.com> (raw)
[-- 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
next reply other threads:[~2012-11-09 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-09 13:16 Cedric Jehasse [this message]
2012-11-12 19:32 ` [PATCH] atmodem: Poll SIM state after entering PIN Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352467013-1418-1-git-send-email-cedric.jehasse@gmail.com \
--to=cedric.jehasse@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox