[PATCH] Use scan results for reconnection

Masashi Honma masashi.honma
Sun Feb 24 23:32:49 PST 2013


This patch uses existing scan results for fast connection on REASSOCIATE and
RECONNECT commands.

Signed-hostap: Masashi Honma <masashi.honma at gmail.com>

diff --git a/wpa_supplicant/wpa_supplicant.c
b/wpa_supplicant/wpa_supplicant.c
index ef7a6f0..fc3a84b 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3757,5 +3757,7 @@ void wpas_request_connection(struct wpa_supplicant
*wpa_s)
     wpa_s->extra_blacklist_count = 0;
     wpa_s->disconnected = 0;
     wpa_s->reassociate = 1;
-    wpa_supplicant_req_scan(wpa_s, 0, 0);
+
+    if (wpa_supplicant_fast_associate(wpa_s) != 1)
+        wpa_supplicant_req_scan(wpa_s, 0, 0);
 }


Regards,
Masashi Honma.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20130225/cde2184b/attachment.htm 



More information about the Hostap mailing list