diff options
author | taesub kim <taesub.kim@samsung.com> | 2016-12-19 14:45:12 +0900 |
---|---|---|
committer | taesub kim <taesub.kim@samsung.com> | 2016-12-19 14:55:58 +0900 |
commit | ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b (patch) | |
tree | 5a62bc3b286cddccb05e9bdf831f3e290a4647b6 | |
parent | 3600191c97d13f251399717a630264fbb9324799 (diff) | |
download | connman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.tar.gz connman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.tar.bz2 connman-ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b.zip |
Clear scanning flag & device when state is connected
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-x | plugins/wifi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index c0079b38..73584e6b 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); |