From: Maneesh Jain Date: Sun, 10 Jan 2016 13:35:34 +0000 (-0500) Subject: [net-config]: Fixed warning issue X-Git-Tag: submit/tizen/20160211.015108~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6297fca7607585813fe5f02b56ea844094281bfd;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git [net-config]: Fixed warning issue Description: Remove following static functions, not required anymore by net-config a. _start_supplicant() b. _stop_supplicant() Change-Id: Ie92cae31ff39e0ed0fbb89248a3239fadd140b5f Signed-off-by: Maneesh Jain --- diff --git a/src/wifi-power.c b/src/wifi-power.c index 9c64730..988d6ce 100755 --- a/src/wifi-power.c +++ b/src/wifi-power.c @@ -151,39 +151,6 @@ static int __execute_supplicant(gboolean enable) return 0; } -static int _start_supplicant(void) -{ - GVariant *reply = NULL; - GVariant *params = NULL; - - params = g_variant_new("(ss)","wpasupplicant.service", "replace"); - - reply = netconfig_invoke_dbus_method("org.freedesktop.systemd1", "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "StartUnit", params); - if (reply == NULL) { - ERR("Fail to _start_supplicant"); - return -1; - } else { - g_variant_unref(reply); - } - - return 0; -} - -static int _stop_supplicant(void) -{ - GVariant *reply = NULL; - - reply = netconfig_invoke_dbus_method("fi.w1.wpa_supplicant1", "/fi/w1/wpa_supplicant1", "fi.w1.wpa_supplicant1", "Terminate", NULL); - if (reply == NULL) { - ERR("Fail to _stop_supplicant"); - return -1; - } else { - g_variant_unref(reply); - } - - return 0; -} - #if defined TIZEN_P2P_ENABLE && defined WLAN_CONCURRENT_MODE static int __netconfig_p2p_supplicant(gboolean enable) {