mirror of git://git.sysmocom.de/ofono
Fix: Go to online state if set_online is NULL
This commit is contained in:
parent
7705cebd3f
commit
5a24916aae
|
@ -1269,6 +1269,15 @@ static void modem_sim_ready(void *user, enum ofono_sim_state new_state)
|
||||||
break;
|
break;
|
||||||
case OFONO_SIM_STATE_READY:
|
case OFONO_SIM_STATE_READY:
|
||||||
modem_change_state(modem, MODEM_STATE_OFFLINE);
|
modem_change_state(modem, MODEM_STATE_OFFLINE);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If we don't have the set_online method, also proceed
|
||||||
|
* straight to the online state
|
||||||
|
*/
|
||||||
|
if (modem->driver->set_online == NULL)
|
||||||
|
modem_change_state(modem, MODEM_STATE_ONLINE);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue