fix wrong nw_name, spn_name
authorJunghwan Song <jump.song@samsung.com>
Thu, 6 Sep 2012 09:36:44 +0000 (18:36 +0900)
committerJunghwan Song <jump.song@samsung.com>
Thu, 6 Sep 2012 09:36:44 +0000 (18:36 +0900)
packaging/tel-plugin-atmodem.spec
src/s_network.c [changed mode: 0644->0755]

index 7b71ffe..5466704 100644 (file)
@@ -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
old mode 100644 (file)
new mode 100755 (executable)
index a43cb6c..b0c46a1
@@ -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, &regist_status.cs_domain_status);
+       tcore_network_get_service_status(o, TCORE_NETWORK_SERVICE_DOMAIN_TYPE_PACKET, &regist_status.ps_domain_status);
+       tcore_network_get_service_type(o, &regist_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), &regist_status);
 }
 
 static enum tcore_hook_return on_hook_sim_init(Server *s, CoreObject *source, enum tcore_notification_command command,