From e730baac4a6ceef50df9dde3c3195c87d568291c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 29 Mar 2021 10:35:31 -0500 Subject: [PATCH] station: Make sure to reset scanning property When we cancel a quick scan that has already been triggered, the Scanning property is never reset to false. This doesn't fully reflect the actual scanning state of the hardware since we don't (yet) abort the scan, but at least corrects the public API behavior. {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False {Station} [/net/connman/iwd/0/7] Scanning = True {Station} [/net/connman/iwd/0/7] State = connecting {Station} [/net/connman/iwd/0/7] ConnectedNetwork = /net/connman/iwd/0/7/73706733_psk {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = True --- src/station.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/station.c b/src/station.c index 8049fd85..bfc23f88 100644 --- a/src/station.c +++ b/src/station.c @@ -201,6 +201,7 @@ static void station_autoconnect_next(struct station *station) scan_cancel(netdev_get_wdev_id(station->netdev), station->quick_scan_id); station->quick_scan_id = 0; + station_property_set_scanning(station, false); } return; @@ -2644,6 +2645,7 @@ void station_connect_network(struct station *station, struct network *network, scan_cancel(netdev_get_wdev_id(station->netdev), station->quick_scan_id); station->quick_scan_id = 0; + station_property_set_scanning(station, false); } if (station_is_busy(station)) {