summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-11-08 19:46:57 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-08 11:50:07 -0600
commitfbacb9de2816982442a33f3780dc201e473b3ad3 (patch)
tree89cd1e9404957cb629218c3bb838cd8593136194 /plugins/zte.c
parent24032bd52621158f6ce50118e6d5b51034fd2b87 (diff)
downloadofono-fbacb9de2816982442a33f3780dc201e473b3ad3.tar.bz2
zte: use AT+CFUN=1;+CFUN=4 in enable
Direct +CFUN transition 0 -> 4 gets SIM in inconsistent state.
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/zte.c b/plugins/zte.c
index 07f84665..83602ebf 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;