]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Clear known_wps_freq for network selection
authorJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 10:55:09 +0000 (12:55 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 10:55:09 +0000 (12:55 +0200)
This was forgotten from the previous commit which allowed some cases to
trigger single-channel scan incorrectly if an optimized WPS scan had not
yet been completed at the time network selection was started.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/interworking.c

index b30c9a837c2a19c288b4b19489f076f9abf1ec59..9e040a0db23c1814875292bd8a3407e0daf0139d 100644 (file)
@@ -2102,6 +2102,7 @@ int interworking_select(struct wpa_supplicant *wpa_s, int auto_select)
        wpa_s->normal_scans = 0;
        wpa_s->scan_req = MANUAL_SCAN_REQ;
        wpa_s->after_wps = 0;
+       wpa_s->known_wps_freq = 0;
        wpa_supplicant_req_scan(wpa_s, 0, 0);
 
        return 0;