From 1bd05d04233f954a85db018d9e54ba2dc9bd53cd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 27 Oct 2013 11:26:58 +0200 Subject: [PATCH] Interworking: Force normal scan for network selection 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 --- wpa_supplicant/interworking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index e29491791..b30c9a837 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -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;