From ee0ee630d718d1d7784c5ab2cd4b2daf6500f34b Mon Sep 17 00:00:00 2001 From: taesub kim Date: Mon, 19 Dec 2016 14:45:12 +0900 Subject: 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 --- plugins/wifi.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3