From bb3df7a66d421e674ab901b6acc79b5a27f5b234 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 2 Sep 2010 10:42:15 -0500 Subject: [PATCH] phonesim: Move the stk atom to post_sim state --- plugins/phonesim.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/phonesim.c b/plugins/phonesim.c index fe4d55b..d3caa20 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -330,6 +330,10 @@ static void phonesim_post_sim(struct ofono_modem *modem) DBG("%p", modem); ofono_phonebook_create(modem, 0, "atmodem", data->chat); + + if (!data->calypso) + ofono_stk_create(modem, OFONO_VENDOR_PHONESIM, + "atmodem", data->chat); } static void phonesim_post_online(struct ofono_modem *modem) @@ -341,10 +345,6 @@ static void phonesim_post_online(struct ofono_modem *modem) DBG("%p", modem); - if (!data->calypso) - ofono_stk_create(modem, OFONO_VENDOR_PHONESIM, - "atmodem", data->chat); - ofono_ussd_create(modem, 0, "atmodem", data->chat); ofono_call_forwarding_create(modem, 0, "atmodem", data->chat); ofono_call_settings_create(modem, 0, "atmodem", data->chat); -- 2.7.4