summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wifi.c')
-rwxr-xr-xplugins/wifi.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 76a1d7a0..562c9b7c 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1183,11 +1183,8 @@ static int throw_wifi_scan(struct connman_device *device,
if (wifi->tethering)
return -EBUSY;
-#if defined TIZEN_EXT
- if (connman_device_get_scanning(device) && !wifi->allow_full_scan)
-#else
+
if (connman_device_get_scanning(device))
-#endif
return -EALREADY;
connman_device_ref(device);
@@ -1301,11 +1298,8 @@ static void scan_callback(int result, GSupplicantInterface *interface,
}
scanning = connman_device_get_scanning(device);
-#if defined TIZEN_EXT
- if (scanning && wifi && !wifi->allow_full_scan)
-#else
+
if (scanning)
-#endif
connman_device_set_scanning(device,
CONNMAN_SERVICE_TYPE_WIFI, false);
@@ -1330,6 +1324,7 @@ static void scan_callback(int result, GSupplicantInterface *interface,
DBG("Trigger Full Channel Scan");
throw_wifi_scan(device, scan_callback);
wifi->allow_full_scan = FALSE;
+ connman_technology_set_allow_scandone_signal(TRUE);
}
if (wifi && wifi->scan_pending_network && result != -EIO) {
network_connect(wifi->scan_pending_network);
@@ -1946,6 +1941,7 @@ static int wifi_scan(enum connman_service_type type,
backgroung Scan feature.Tizen has added the BG Scan feature in net-config
To sync with up ConnMan, we need to issue the Full Scan after SSID specific scan.*/
wifi->allow_full_scan = TRUE;
+ connman_technology_set_allow_scandone_signal(FALSE);
#endif
reset_autoscan(device);