All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] zte: use AT+CFUN=1;+CFUN=4 in enable
@ 2010-11-08 17:46 Pekka.Pessi
  2010-11-08 17:50 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Pekka.Pessi @ 2010-11-08 17:46 UTC (permalink / raw)
  To: ofono

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

From: Pekka Pessi <Pekka.Pessi@nokia.com>

Direct +CFUN transition 0 -> 4 gets SIM in inconsistent state.
---
 plugins/zte.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/plugins/zte.c b/plugins/zte.c
index 07f8466..83602eb 100644
--- a/plugins/zte.c
+++ b/plugins/zte.c
@@ -184,7 +184,8 @@ static int zte_enable(struct ofono_modem *modem)
 	g_at_chat_send(data->aux, "ATE0 +CMEE=1", none_prefix,
 						NULL, NULL, NULL);
 
-	g_at_chat_send(data->aux, "AT+CFUN=4", none_prefix,
+	/* Direct transition 0 -> 4 leaves SIM hosed */
+	g_at_chat_send(data->aux, "AT+CFUN=1;+CFUN=4", none_prefix,
 					cfun_enable, modem, NULL);
 
 	return -EINPROGRESS;
-- 
1.7.1


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

* Re: [PATCH] zte: use AT+CFUN=1;+CFUN=4 in enable
  2010-11-08 17:46 [PATCH] zte: use AT+CFUN=1;+CFUN=4 in enable Pekka.Pessi
@ 2010-11-08 17:50 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-11-08 17:50 UTC (permalink / raw)
  To: ofono

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

Hi Pekka,

On 11/08/2010 11:46 AM, Pekka.Pessi(a)nokia.com wrote:
> From: Pekka Pessi <Pekka.Pessi@nokia.com>
> 
> Direct +CFUN transition 0 -> 4 gets SIM in inconsistent state.
> ---
>  plugins/zte.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2010-11-08 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 17:46 [PATCH] zte: use AT+CFUN=1;+CFUN=4 in enable Pekka.Pessi
2010-11-08 17:50 ` 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.