Let the actual modem plug-in detect and handle resets
This commit is contained in:
parent
aa21e237a1
commit
907f7859df
@ -341,10 +341,8 @@ static void _openmoko_deepsleep(PhonePlugin * plugin)
|
|||||||
if((p = helper->config_get(helper->phone, "openmoko", "deepsleep"))
|
if((p = helper->config_get(helper->phone, "openmoko", "deepsleep"))
|
||||||
!= NULL && strtoul(p, NULL, 10) != 0)
|
!= NULL && strtoul(p, NULL, 10) != 0)
|
||||||
cmd = "AT%SLEEP=2"; /* prevent deep sleep */
|
cmd = "AT%SLEEP=2"; /* prevent deep sleep */
|
||||||
|
/* XXX this may reset the hardware modem */
|
||||||
_openmoko_queue(plugin, cmd);
|
_openmoko_queue(plugin, cmd);
|
||||||
/* check if the hardware modem was reset */
|
|
||||||
plugin->helper->trigger(plugin->helper->phone,
|
|
||||||
MODEM_EVENT_TYPE_AUTHENTICATION);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user