Removed unused netconfig_wifi_on/off function
[platform/core/connectivity/net-config.git] / src / wifi-power.c
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)
 {