From: Guillaume Zajac Date: Tue, 26 Mar 2013 09:02:02 +0000 (+0100) Subject: at_ps: Disable network interface on "+CGEV: NW DEACT" notification X-Git-Tag: 2.1b_release^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_2.1;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-at_standard.git at_ps: Disable network interface on "+CGEV: NW DEACT" notification Change-Id: I138d80fe6cd9f67e1ab349e581600d9cee0f2933 --- diff --git a/src/at_ps.c b/src/at_ps.c index 7bc3094..8268188 100644 --- a/src/at_ps.c +++ b/src/at_ps.c @@ -103,7 +103,7 @@ static void on_response_set_pdp_context_deactivate(TcorePending *p, notify_context_status_changed(co_ps, cid, PS_DATA_CALL_NOT_CONNECTED); - if (tcore_hal_setup_netif(h, co_ps, NULL, ps_context, cid, + if (tcore_hal_setup_netif(h, co_ps, NULL, NULL, cid, FALSE) != TCORE_RETURN_SUCCESS) err("Failed to disable network interface"); @@ -398,6 +398,7 @@ static gboolean on_cgev_notification(CoreObject *co_ps, const void *data, const char *line = lines->data; char *noti_data; unsigned int cid; + TcoreHal *hal; dbg("Enter"); @@ -425,6 +426,11 @@ static gboolean on_cgev_notification(CoreObject *co_ps, const void *data, notify_context_status_changed(co_ps, cid, PS_DATA_CALL_NOT_CONNECTED); + hal = tcore_object_get_hal(co_ps); + if (tcore_hal_setup_netif(hal, co_ps, NULL, NULL, cid, + FALSE) != TCORE_RETURN_SUCCESS) + err("Failed to disable network interface"); + out: tcore_at_tok_free(tokens);