From 5adacbaebda6d82ba948fe0f159d12151c70dffa Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 4 Aug 2011 02:43:06 +0200 Subject: [PATCH] zte: Switch to offline mode first before disabling modem --- plugins/zte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/zte.c b/plugins/zte.c index 307a98eb..cc14949f 100644 --- a/plugins/zte.c +++ b/plugins/zte.c @@ -229,7 +229,8 @@ static int zte_disable(struct ofono_modem *modem) g_at_chat_cancel_all(data->aux); g_at_chat_unregister_all(data->aux); - g_at_chat_send(data->aux, "AT+CFUN=0", NULL, + /* Go offline first to disconnect data connections */ + g_at_chat_send(data->aux, "AT+CFUN=4;+CFUN=0", NULL, cfun_disable, modem, NULL); return -EINPROGRESS;