at_ps: Use new call status information
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Thu, 3 Jan 2013 09:36:38 +0000 (10:36 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 06:49:27 +0000 (15:49 +0900)
Change-Id: I0b43cf700933a770d4a34e4b25cfa621d74261d7

src/at_ps.c

index 2b5426a..2fa5435 100644 (file)
@@ -62,8 +62,7 @@ static void notify_context_deactivated(CoreObject *co_ps,
        dbg("Enter");
 
        data_resp.context_id = cid;
-       data_resp.state = TELEPHONY_GPRS_DATA_STATUS_NOCARRIER;
-       data_resp.result = 0;
+       data_resp.state = PS_DATA_CALL_NOT_CONNECTED;
 
        server = tcore_plugin_ref_server(tcore_object_ref_plugin(co_ps));
 
@@ -85,19 +84,12 @@ static void on_setup_netif(CoreObject *co_ps, const char *netif_name,
 
        dbg("devname = [%s]", netif_name);
 
-       if (tcore_util_netif_up(netif_name) != TCORE_RETURN_SUCCESS) {
-               err("util_netif_up() failed.");
-               set_pdp_context(co_ps, ps_context, DEACTIVATE);
-               return;
-       }
-
        tcore_context_set_ipv4_devname(ps_context, netif_name);
 
        server = tcore_plugin_ref_server(tcore_object_ref_plugin(co_ps));
 
        data_status.context_id = tcore_context_get_id(ps_context);
-       data_status.state = TELEPHONY_GPRS_DATA_STATUS_CONNECTED;
-       data_status.result = 0;
+       data_status.state = PS_DATA_CALL_CONNECTED;
 
        tcore_server_send_notification(server, co_ps,
                                        TNOTI_PS_CALL_STATUS,