From: Ben Date: Mon, 19 Jan 2015 01:44:07 +0000 (-0500) Subject: Clear reattach flag in fast associate flow X-Git-Tag: hostap_2_4~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5f01fdf2133f1707ad10e5e29dccfb3bbb141c;p=thirdparty%2Fhostap.git Clear reattach flag in fast associate flow Clear the reattach flags, in case a connection request did not trigger a scan. This needs to be done to avoid leaving the reattach flag set for the next scan operation which may not have anything to do with the specific request that could have been optimized using the single-channel single-SSID scan. Signed-off-by: Ben --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 000c9ba72..eeeb3c356 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -5032,6 +5032,8 @@ void wpas_request_connection(struct wpa_supplicant *wpa_s) if (wpa_supplicant_fast_associate(wpa_s) != 1) wpa_supplicant_req_scan(wpa_s, 0, 0); + else + wpa_s->reattach = 0; }