From: taesub kim Date: Mon, 26 Feb 2018 05:16:15 +0000 (+0900) Subject: Fixed g_variant_unref problem when set auto connect & Modified the routine to get... X-Git-Tag: submit/tizen/20180226.110934~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=439383bc4ccd33911909cd62947ab93faabc82a7;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Fixed g_variant_unref problem when set auto connect & Modified the routine to get auto scan when wifi is deactivated Change-Id: I0d714e0714b8bb7b2d54ea750178306849d6dd5e Signed-off-by: Taesub Kim --- diff --git a/src/network_dbus.c b/src/network_dbus.c index b5a19c7..aeeda67 100755 --- a/src/network_dbus.c +++ b/src/network_dbus.c @@ -2292,8 +2292,6 @@ int _net_dbus_set_auto_connect_mode(int connect_mode) "SetProperty", params, 6 * DBUS_REPLY_TIMEOUT, __net_set_auto_connect_reply); - g_variant_unref(param0); - __NETWORK_FUNC_EXIT__; return Error; } @@ -2318,13 +2316,11 @@ int _net_dbus_wifi_set_autoconnect(const char *profile_name, gboolean autoconnec "SetProperty", params, &Error); if (message == NULL) { WIFI_LOG(WIFI_ERROR, "Failed to Set AutoConnect"); - g_variant_unref(param0); __NETWORK_FUNC_EXIT__; return Error; } g_variant_unref(message); - g_variant_unref(param0); __NETWORK_FUNC_EXIT__; return Error; diff --git a/src/network_interface.c b/src/network_interface.c index 79fabc3..0532e9e 100755 --- a/src/network_interface.c +++ b/src/network_interface.c @@ -3454,14 +3454,6 @@ int net_wifi_get_autoscan(gboolean *autoscan) return NET_ERR_APP_NOT_REGISTERED; } - if (NetworkInfo.wifi_state == WIFI_OFF) { - if ((NetworkInfo.wifi_state = _net_get_wifi_state(&Error)) == WIFI_OFF) { - WIFI_LOG(WIFI_ERROR, "Wi-Fi is powered off!"); - __NETWORK_FUNC_EXIT__; - return NET_ERR_INVALID_OPERATION; - } - } - if (_net_dbus_is_pending_call_used() == TRUE) { WIFI_LOG(WIFI_ERROR, "pending call in progress"); __NETWORK_FUNC_EXIT__; @@ -3491,14 +3483,6 @@ int net_wifi_get_autoscanmode(unsigned int *autoscanmode) return NET_ERR_APP_NOT_REGISTERED; } - if (NetworkInfo.wifi_state == WIFI_OFF) { - if ((NetworkInfo.wifi_state = _net_get_wifi_state(&Error)) == WIFI_OFF) { - WIFI_LOG(WIFI_ERROR, "Wi-Fi is powered off!"); - __NETWORK_FUNC_EXIT__; - return NET_ERR_INVALID_OPERATION; - } - } - if (_net_dbus_is_pending_call_used() == TRUE) { WIFI_LOG(WIFI_ERROR, "pending call in progress"); __NETWORK_FUNC_EXIT__;