summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-12-21 16:36:19 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-12-21 16:36:19 -0600
commite2c3c0573084f30426c77375abb0fbd895c944a4 (patch)
tree0abba846bc52ef4f4edf1425cf42dc9b10a1aa05
parent784bf9b1c360b9fa0f211cdacc480484e8c6cd1c (diff)
downloadofono-e2c3c0573084f30426c77375abb0fbd895c944a4.tar.bz2
novatel: Move radio_settings to post_sim
-rw-r--r--plugins/novatel.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/novatel.c b/plugins/novatel.c
index 578cec13..1b96af05 100644
--- a/plugins/novatel.c
+++ b/plugins/novatel.c
@@ -343,6 +343,17 @@ static void novatel_pre_sim(struct ofono_modem *modem)
ofono_sim_inserted_notify(sim, TRUE);
}
+static void novatel_post_sim(struct ofono_modem *modem)
+{
+ struct novatel_data *data = ofono_modem_get_data(modem);
+
+ DBG("%p", modem);
+
+ if (data->secondary != NULL)
+ ofono_radio_settings_create(modem, 0, "nwmodem",
+ data->secondary);
+}
+
static void novatel_post_online(struct ofono_modem *modem)
{
struct novatel_data *data = ofono_modem_get_data(modem);
@@ -359,9 +370,6 @@ static void novatel_post_online(struct ofono_modem *modem)
ofono_netreg_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
data->secondary);
- ofono_radio_settings_create(modem, 0, "nwmodem",
- data->secondary);
-
ofono_sms_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
data->secondary);
ofono_cbs_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem",
@@ -387,6 +395,7 @@ static struct ofono_modem_driver novatel_driver = {
.disable = novatel_disable,
.set_online = novatel_set_online,
.pre_sim = novatel_pre_sim,
+ .post_sim = novatel_post_sim,
.post_online = novatel_post_online,
};