mirror of git://git.sysmocom.de/ofono
Fix: Convert Novatel plugin to new world order
This commit is contained in:
parent
ecfa61c50f
commit
82a4903eeb
|
@ -66,6 +66,7 @@ static void novatel_remove(struct ofono_modem *modem)
|
||||||
|
|
||||||
ofono_modem_set_data(modem, NULL);
|
ofono_modem_set_data(modem, NULL);
|
||||||
|
|
||||||
|
g_at_chat_unref(data->chat);
|
||||||
g_free(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,6 +143,8 @@ static int novatel_disable(struct ofono_modem *modem)
|
||||||
if (!data->chat)
|
if (!data->chat)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
g_at_chat_cancel_all(data->chat);
|
||||||
|
g_at_chat_unregister_all(data->chat);
|
||||||
g_at_chat_send(data->chat, "AT+CFUN=0", NULL,
|
g_at_chat_send(data->chat, "AT+CFUN=0", NULL,
|
||||||
cfun_disable, modem, NULL);
|
cfun_disable, modem, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue