summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2016-12-19 05:45:12 (GMT)
committertaesub kim <taesub.kim@samsung.com>2016-12-19 05:53:47 (GMT)
commit0732bde7ad2ba8e62ce94040b538260a6970629a (patch)
treeac000cab28f3afa36d87c681b18b926d451fffcd
parentb625b88d3ce8b06ca21210e1e10a1532a6f5ab75 (diff)
downloadconnman-0732bde7ad2ba8e62ce94040b538260a6970629a.zip
connman-0732bde7ad2ba8e62ce94040b538260a6970629a.tar.gz
connman-0732bde7ad2ba8e62ce94040b538260a6970629a.tar.bz2
Clear scanning flag & device when state is connectedrefs/changes/04/105604/1
http://slp-info.sec.samsung.net/gerrit/#/c/2752007/ http://slp-info.sec.samsung.net/gerrit/#/c/2763075/ Change-Id: Ia290ba7d4d50935c1473d8a864a508dbad3f5e90 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
-rwxr-xr-xplugins/wifi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index c0079b3..73584e6 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2611,6 +2611,14 @@ static void interface_state(GSupplicantInterface *interface)
wifi->assoc_retry_count = 0;
wifi->scan_pending_network = NULL;
+
+ /* should be cleared scanning flag */
+ bool scanning = connman_device_get_scanning(device);
+ if (scanning){
+ connman_device_set_scanning(device,
+ CONNMAN_SERVICE_TYPE_WIFI, false);
+ connman_device_unref(device);
+ }
#else
/* though it should be already stopped: */
stop_autoscan(device);