]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear reattach flag in fast associate flow
authorBen <ben.rosenfeld@intel.com>
Mon, 19 Jan 2015 01:44:07 +0000 (20:44 -0500)
committerJouni Malinen <j@w1.fi>
Mon, 19 Jan 2015 23:57:59 +0000 (01:57 +0200)
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 <ben.rosenfeld@intel.com>
wpa_supplicant/wpa_supplicant.c

index 000c9ba72d68210d40d6f7c6fb04dae41cd4b4bd..eeeb3c35671638157e185d68fd452b546b4ebdc5 100644 (file)
@@ -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;
 }