summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index cb8cc4bc..a99d792a 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1269,6 +1269,15 @@ static void modem_sim_ready(void *user, enum ofono_sim_state new_state)
break;
case OFONO_SIM_STATE_READY:
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;
}
}