From: Jouni Malinen Date: Thu, 27 Nov 2014 15:41:02 +0000 (+0200) Subject: Clear scan_req to NORMAL_SCAN_REQ for connection attempt X-Git-Tag: hostap_2_4~1017 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5214f4fafcfe7a70b1b86d2472b6b38d76b2de57;p=thirdparty%2Fhostap.git Clear scan_req to NORMAL_SCAN_REQ for connection attempt This is needed to fix some sequencies where a real scan in ap_scan=2 case would be issued even when the connection case would expect direct connection without a scan. This fixed an issue shown in hwsim test case autoscan_exponential followed by ibss_open_fixed_bssid. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 96125a110..140e0e21f 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -4807,6 +4807,7 @@ int disallowed_ssid(struct wpa_supplicant *wpa_s, const u8 *ssid, void wpas_request_connection(struct wpa_supplicant *wpa_s) { wpa_s->normal_scans = 0; + wpa_s->scan_req = NORMAL_SCAN_REQ; wpa_supplicant_reinit_autoscan(wpa_s); wpa_s->extra_blacklist_count = 0; wpa_s->disconnected = 0;