autoscan: Disable when we move above WPA_SCANNING state
In case of drivers that don't use wpa_supplicant as SME, autoscan feature was never disabled. Signed-off-by: Wiktor Drewniak <wiktor.drewniak@gmail.com>
This commit is contained in:
parent
eb3234c07b
commit
bce3d4f70e
1 changed files with 1 additions and 1 deletions
|
@ -961,7 +961,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
|||
wpa_supplicant_stop_bgscan(wpa_s);
|
||||
#endif /* CONFIG_BGSCAN */
|
||||
|
||||
if (state == WPA_AUTHENTICATING)
|
||||
if (state > WPA_SCANNING)
|
||||
wpa_supplicant_stop_autoscan(wpa_s);
|
||||
|
||||
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
|
||||
|
|
Loading…
Reference in a new issue