Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH] sim: return from cpin when sim ready for telit
@ 2012-12-14 14:19 christopher.vogl
  2012-12-14 14:19 ` [PATCH] telit: signal sim inserted when sim ready christopher.vogl
  2012-12-17 15:51 ` [PATCH] sim: return from cpin when sim ready for telit Denis Kenzior
  0 siblings, 2 replies; 7+ messages in thread
From: christopher.vogl @ 2012-12-14 14:19 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]

From: Christopher Vogl <christopher.vogl@hale.at>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c
index 4095337..4448e3d 100644
--- a/drivers/atmodem/sim.c
+++ b/drivers/atmodem/sim.c
@@ -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;
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-18  9:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 14:19 [PATCH] sim: return from cpin when sim ready for telit christopher.vogl
2012-12-14 14:19 ` [PATCH] telit: signal sim inserted when sim ready christopher.vogl
2012-12-17 15:50   ` Denis Kenzior
2012-12-17 16:07     ` Christopher Vogl
2012-12-17 16:17       ` Denis Kenzior
2012-12-18  9:47     ` Christopher Vogl
2012-12-17 15:51 ` [PATCH] sim: return from cpin when sim ready for telit Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox