From: Guillaume Zajac Date: Thu, 3 Jan 2013 09:36:38 +0000 (+0100) Subject: at_ps: Use new call status information X-Git-Tag: 2.1b_release~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c897072596c284c370cdc05275965516777a01ca;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-at_standard.git at_ps: Use new call status information Change-Id: I0b43cf700933a770d4a34e4b25cfa621d74261d7 --- diff --git a/src/at_ps.c b/src/at_ps.c index 2b5426a..2fa5435 100644 --- a/src/at_ps.c +++ b/src/at_ps.c @@ -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,