summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/zte.c3
1 files changed, 2 insertions, 1 deletions
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;