Removed unused netconfig_wifi_on/off function 08/107408/2 accepted/tizen/common/20161228.162656 accepted/tizen/ivi/20161229.112653 accepted/tizen/mobile/20161229.112537 accepted/tizen/tv/20161229.112603 accepted/tizen/wearable/20161229.112627 submit/tizen/20161228.091638
authortaesub kim <taesub.kim@samsung.com>
Wed, 28 Dec 2016 02:27:15 +0000 (11:27 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 28 Dec 2016 03:22:31 +0000 (12:22 +0900)
Change-Id: I17d5db001686824bd27e51e3435ee667883e37f2
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
src/utils/util.c
src/wifi-power.c

index b18cae2..3124924 100755 (executable)
@@ -362,7 +362,7 @@ gboolean netconfig_interface_up(const char *ifname)
 
        close(fd);
 
-       DBG("Successfully activated wireless interface");
+       DBG("Successfully activated wireless interface %s", ifname);
        return TRUE;
 }
 
@@ -391,7 +391,7 @@ gboolean netconfig_interface_down(const char *ifname)
 
        close(fd);
 
-       DBG("Successfully de-activated wireless interface");
+       DBG("Successfully de-activated wireless interface %s", ifname);
        return TRUE;
 }
 
index 2ef365e..fe43bf5 100755 (executable)
@@ -365,62 +365,6 @@ void netconfig_wifi_disable_technology_state_by_only_connman_signal(void)
        connman_wifi_technology_state = FALSE;
 }
 
-int netconfig_wifi_on(void)
-{
-       int err = 0;
-       wifi_tech_state_e wifi_tech_state;
-
-       wifi_tech_state = wifi_state_get_technology_state();
-       if (wifi_tech_state >= NETCONFIG_WIFI_TECH_POWERED)
-               return -EALREADY;
-
-       if (__is_wifi_restricted() == TRUE)
-               return -EPERM;
-
-       if (netconfig_is_wifi_tethering_on() == TRUE) {
-               /* TODO: Wi-Fi tethering turns off here */
-               /* return TRUE; */
-               ERR("Failed to turn tethering off");
-               return -EBUSY;
-       }
-
-#if defined TIZEN_P2P_ENABLE && !defined WLAN_CONCURRENT_MODE
-       if (netconfig_is_wifi_direct_on() == TRUE) {
-               if (__netconfig_wifi_direct_power_off() == TRUE)
-                       return -EINPROGRESS;
-               else {
-                       ERR("Failed to turn Wi-Fi direct off");
-                       return -EBUSY;
-               }
-       }
-#endif
-
-       err = wifi_power_driver_and_supplicant(TRUE);
-       if (err < 0 && err != -EALREADY)
-               return err;
-
-       err = _set_connman_technology_power(TRUE);
-
-       __netconfig_set_wifi_bssid();
-
-       return err;
-}
-
-int netconfig_wifi_off(void)
-{
-       int err;
-
-#if defined TIZEN_P2P_ENABLE && defined WLAN_CONCURRENT_MODE
-       __netconfig_p2p_supplicant(FALSE);
-#endif
-
-       err = _set_connman_technology_power(FALSE);
-       if (err == -EALREADY)
-               wifi_state_update_power_state(FALSE);
-
-       return 0;
-}
-
 #if defined TIZEN_WEARABLE
 int netconfig_wifi_on_wearable(gboolean device_picker_test)
 {