mirror of git://git.sysmocom.de/ofono
sim900: Fix disable cleanup procedure
This commit is contained in:
parent
32cece7b09
commit
93ac1669a0
|
@ -311,11 +311,7 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
|
|
||||||
DBG("");
|
DBG("");
|
||||||
|
|
||||||
g_at_mux_shutdown(data->mux);
|
shutdown_device(data);
|
||||||
g_at_mux_unref(data->mux);
|
|
||||||
|
|
||||||
g_at_chat_unref(data->dlcs[SETUP_DLC]);
|
|
||||||
data->dlcs[SETUP_DLC] = NULL;
|
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
ofono_modem_set_powered(modem, FALSE);
|
ofono_modem_set_powered(modem, FALSE);
|
||||||
|
@ -330,8 +326,6 @@ static int sim900_disable(struct ofono_modem *modem)
|
||||||
g_at_chat_send(data->dlcs[SETUP_DLC], "AT+CFUN=4", none_prefix,
|
g_at_chat_send(data->dlcs[SETUP_DLC], "AT+CFUN=4", none_prefix,
|
||||||
cfun_disable, modem, NULL);
|
cfun_disable, modem, NULL);
|
||||||
|
|
||||||
shutdown_device(data);
|
|
||||||
|
|
||||||
return -EINPROGRESS;
|
return -EINPROGRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue