From ea55d989404a4c7e54f863d85b3007065f35670f Mon Sep 17 00:00:00 2001 From: Junghwan Song Date: Thu, 6 Sep 2012 18:36:44 +0900 Subject: [PATCH] fix wrong nw_name, spn_name --- packaging/tel-plugin-atmodem.spec | 2 +- src/s_network.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/s_network.c diff --git a/packaging/tel-plugin-atmodem.spec b/packaging/tel-plugin-atmodem.spec index 7b71ffe..5466704 100644 --- a/packaging/tel-plugin-atmodem.spec +++ b/packaging/tel-plugin-atmodem.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/t/tel-plugin-atmodem Name: tel-plugin-atmodem Summary: Telephony AT Modem library -Version: 0.1.21 +Version: 0.1.22 Release: 1 Group: System/Libraries License: Apache diff --git a/src/s_network.c b/src/s_network.c old mode 100644 new mode 100755 index a43cb6c..b0c46a1 --- a/src/s_network.c +++ b/src/s_network.c @@ -755,6 +755,7 @@ static void on_sim_resp_hook_get_netname(UserRequest *ur, enum tcore_response_co { const struct tresp_sim_read *resp = data; CoreObject *o = user_data; + struct tnoti_network_registration_status regist_status; if (command == TRESP_SIM_GET_SPN) { dbg("OK SPN GETTING!!"); @@ -781,6 +782,14 @@ static void on_sim_resp_hook_get_netname(UserRequest *ur, enum tcore_response_co tcore_network_set_network_name_priority(o, TCORE_NETWORK_NAME_PRIORITY_ANY); } } + + tcore_network_get_service_status(o, TCORE_NETWORK_SERVICE_DOMAIN_TYPE_CIRCUIT, ®ist_status.cs_domain_status); + tcore_network_get_service_status(o, TCORE_NETWORK_SERVICE_DOMAIN_TYPE_PACKET, ®ist_status.ps_domain_status); + tcore_network_get_service_type(o, ®ist_status.service_type); + regist_status.roaming_status = tcore_network_get_roaming_state(o); + + tcore_server_send_notification(tcore_plugin_ref_server(tcore_object_ref_plugin(o)), o, + TNOTI_NETWORK_REGISTRATION_STATUS, sizeof(struct tnoti_network_registration_status), ®ist_status); } static enum tcore_hook_return on_hook_sim_init(Server *s, CoreObject *source, enum tcore_notification_command command, -- 2.34.1