From: Guillaume Zajac Date: Thu, 14 Mar 2013 16:04:50 +0000 (+0100) Subject: s_ps: Network interface up/down is managed in PS plugin X-Git-Tag: 2.1b_release~24 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Ftelephony%2Ftel-plugin-imc.git;a=commitdiff_plain;h=aea596d8bb6a04f90a060fa800e12bd681d8db71 s_ps: Network interface up/down is managed in PS plugin Change-Id: I900e280eb3cca44958678b2a01a8f977ea1e1488 --- diff --git a/src/s_ps.c b/src/s_ps.c index efed208..f521b09 100644 --- a/src/s_ps.c +++ b/src/s_ps.c @@ -184,7 +184,7 @@ error: } } -static void on_mount_netif(CoreObject *co_ps, const char *netif_name, +static void on_setup_pdp(CoreObject *co_ps, const char *netif_name, void *user_data) { CoreObject *ps_context = user_data; @@ -196,10 +196,6 @@ static void on_mount_netif(CoreObject *co_ps, const char *netif_name, dbg("devname = [%s]", netif_name); tcore_context_set_ipv4_devname(ps_context, netif_name); - if (tcore_util_netif(netif_name, TRUE) != TCORE_RETURN_SUCCESS) { - dbg("disabling network interface failed"); - return; - } server = tcore_plugin_ref_server(tcore_object_ref_plugin(co_ps)); @@ -291,7 +287,7 @@ exit_fail: exit_success: { /* mount network interface */ - if (tcore_hal_setup_netif(h, co_ps, on_mount_netif, ps_context, cid, TRUE) + if (tcore_hal_setup_netif(h, co_ps, on_setup_pdp, ps_context, cid, TRUE) != TCORE_RETURN_SUCCESS) { err("Setup network interface failed"); return;