summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorManeesh Jain <maneesh.jain@samsung.com>2016-12-13 17:01:56 +0530
committerManeesh Jain <maneesh.jain@samsung.com>2016-12-15 15:28:38 +0530
commitbc96c1660243612c6c1faca0d848778190dceec1 (patch)
treeb928aa5d704c3f8e7b6ef8ce574ecfed40c2d876 /plugins
parentb625b88d3ce8b06ca21210e1e10a1532a6f5ab75 (diff)
downloadconnman-bc96c1660243612c6c1faca0d848778190dceec1.tar.gz
connman-bc96c1660243612c6c1faca0d848778190dceec1.tar.bz2
connman-bc96c1660243612c6c1faca0d848778190dceec1.zip
[connman]:Fixed Double Scan Indication Event
Description: In specific case, CommMan issue the SSID based scan followed by full channel scan. In that case, applicaiton receive the two scan done event. To handle this , block the scan done event for SSID based scan. Change-Id: I24803bd7377e3c682a33b0be653c36c65d30186e Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/wifi.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index c0079b38..db4f5bf7 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1183,8 +1183,11 @@ 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);
@@ -1298,11 +1301,13 @@ static void scan_callback(int result, GSupplicantInterface *interface,
}
scanning = connman_device_get_scanning(device);
-
- if (scanning) {
+#if defined TIZEN_EXT
+ if (scanning && !wifi->allow_full_scan)
+#else
+ if (scanning)
+#endif
connman_device_set_scanning(device,
CONNMAN_SERVICE_TYPE_WIFI, false);
- }
if (result != -ENOLINK)
#if defined TIZEN_EXT