summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 47a4b998..4efba0ce 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1796,18 +1796,7 @@ static gboolean sim_changed(DBusConnection *connection, DBusMessage *message,
if (g_str_equal(key, "SubscriberIdentity") == TRUE) {
sim_update_imsi(modem, &value);
-
- if (modem->online == FALSE) {
- modem_set_online(modem, TRUE);
- } else if (has_interface(modem->interfaces,
- OFONO_API_CM) == TRUE) {
- if (ready_to_create_device(modem) == TRUE)
- create_device(modem);
- } else if (has_interface(modem->interfaces,
- OFONO_API_CDMA_CM) == TRUE) {
- if (ready_to_create_device(modem) == TRUE)
- create_device(modem);
- }
+ connection_manager_init(modem);
}
return TRUE;