From d20c340f7ed166ecc7fd00a1b20e4490c95ee3f1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 27 Oct 2013 12:55:09 +0200 Subject: [PATCH] Interworking: Clear known_wps_freq for network selection 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 --- wpa_supplicant/interworking.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index b30c9a837..9e040a0db 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -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;