aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-27 09:26:58 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-27 09:26:58 (GMT)
commit1bd05d04233f954a85db018d9e54ba2dc9bd53cd (patch)
treed6c46d55f290b981a9e8bc6daeec43e64992d486 /wpa_supplicant/interworking.c
parentb74b7e87bb1a0529adcf9088cfd08e3ac0b04c44 (diff)
downloadhostap-1bd05d04233f954a85db018d9e54ba2dc9bd53cd.zip
hostap-1bd05d04233f954a85db018d9e54ba2dc9bd53cd.tar.gz
hostap-1bd05d04233f954a85db018d9e54ba2dc9bd53cd.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index e294917..b30c9a8 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;