diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-21 10:11:13 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-22 11:10:15 +0100 |
commit | 67624abf962b634b743b8563232b1ee67b3aa77b (patch) | |
tree | 9798ce35ebdc6c789ebbaac82027b561af6fa99f /plugins | |
parent | f675a144de254cdaac3a36b6e7a83fa94e770e76 (diff) | |
download | connman-67624abf962b634b743b8563232b1ee67b3aa77b.tar.gz connman-67624abf962b634b743b8563232b1ee67b3aa77b.tar.bz2 connman-67624abf962b634b743b8563232b1ee67b3aa77b.zip |
ofono: Refactor sim_changed()
to use connection_manager_init().
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ofono.c | 13 |
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; |