If a modem is already online there will be no updates
on the interfaces and therefore no triggers to do the
complete discovering.
* modem_enable() callback.
*/
create_device(modem);
* modem_enable() callback.
*/
create_device(modem);
+
+ if (modem->online == FALSE)
+ return;
+
+ /*
+ * The modem is already online and we have the CM interface.
+ * There will be no interface update and therefore our
+ * state machine will not go to next step. We have to
+ * trigger it from here.
+ */
+ if (has_interface(modem->interfaces, OFONO_API_CM) == TRUE) {
+ cm_get_properties(modem);
+ cm_get_contexts(modem);
+ }