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:55:58 (GMT)
commitee0ee630d718d1d7784c5ab2cd4b2daf6500f34b (patch)
tree5a62bc3b286cddccb05e9bdf831f3e290a4647b6
parent3600191c97d13f251399717a630264fbb9324799 (diff)
downloadconnman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.zip
connman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.tar.gz
connman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.tar.bz2
Clear scanning flag & device when state is connectedrefs/changes/05/105605/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);