s_ps: Network interface up/down is managed in PS plugin
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Thu, 14 Mar 2013 16:04:50 +0000 (17:04 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 07:46:41 +0000 (16:46 +0900)
Change-Id: I900e280eb3cca44958678b2a01a8f977ea1e1488

src/s_ps.c

index efed208..f521b09 100644 (file)
@@ -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;