Let the actual modem plug-in detect and handle resets

This commit is contained in:
Pierre Pronchery 2011-11-03 15:49:45 +00:00
parent aa21e237a1
commit 907f7859df

View File

@ -341,10 +341,8 @@ static void _openmoko_deepsleep(PhonePlugin * plugin)
if((p = helper->config_get(helper->phone, "openmoko", "deepsleep"))
!= NULL && strtoul(p, NULL, 10) != 0)
cmd = "AT%SLEEP=2"; /* prevent deep sleep */
/* XXX this may reset the hardware modem */
_openmoko_queue(plugin, cmd);
/* check if the hardware modem was reset */
plugin->helper->trigger(plugin->helper->phone,
MODEM_EVENT_TYPE_AUTHENTICATION);
}