]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Force normal scan for network selection
authorJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 09:26:58 +0000 (11:26 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 09:26:58 +0000 (11:26 +0200)
Make sure special optimized scans (like WPS-single-channel or
sched_scan) do not get used during the network selection scan. This
could have been hit in cases where a previous operation has been stopped
in a state where special scan parameters were going to be used.

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

wpa_supplicant/interworking.c

index e29491791dabc23c8a918eabee5e2cf25414df43..b30c9a837c2a19c288b4b19489f076f9abf1ec59 100644 (file)
@@ -2099,7 +2099,9 @@ int interworking_select(struct wpa_supplicant *wpa_s, int auto_select)
        wpa_printf(MSG_DEBUG, "Interworking: Start scan for network "
                   "selection");
        wpa_s->scan_res_handler = interworking_scan_res_handler;
+       wpa_s->normal_scans = 0;
        wpa_s->scan_req = MANUAL_SCAN_REQ;
+       wpa_s->after_wps = 0;
        wpa_supplicant_req_scan(wpa_s, 0, 0);
 
        return 0;