From fbacb9de2816982442a33f3780dc201e473b3ad3 Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Mon, 8 Nov 2010 19:46:57 +0200 Subject: zte: use AT+CFUN=1;+CFUN=4 in enable Direct +CFUN transition 0 -> 4 gets SIM in inconsistent state. --- plugins/zte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/zte.c') 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; -- cgit v1.2.3