From 6d48fe7a05998a913a0c88a8d6bf1a8400927ad0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 28 Jan 2011 20:28:36 -0600 Subject: [PATCH] phonesim: Move sms atom to post_sim state --- plugins/phonesim.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/phonesim.c b/plugins/phonesim.c index b4795f2c..28306b50 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -637,6 +637,9 @@ static void phonesim_post_sim(struct ofono_modem *modem) "atmodem", data->chat); ofono_call_forwarding_create(modem, 0, "atmodem", data->chat); + + if (!data->calypso) + ofono_sms_create(modem, 0, "atmodem", data->chat); } static void phonesim_post_online(struct ofono_modem *modem) @@ -663,10 +666,8 @@ static void phonesim_post_online(struct ofono_modem *modem) ofono_ssn_create(modem, 0, "atmodem", data->chat); ofono_call_volume_create(modem, 0, "atmodem", data->chat); - if (!data->calypso) { - ofono_sms_create(modem, 0, "atmodem", data->chat); + if (!data->calypso) ofono_cbs_create(modem, 0, "atmodem", data->chat); - } gprs = ofono_gprs_create(modem, 0, "atmodem", data->chat);