[PATCH] Use BSS expiration age as fast association threshold

Masashi Honma masashi.honma
Tue Feb 26 05:36:00 PST 2013


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

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 6c8ab6c..8507a42 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1344,7 +1344,7 @@ int wpa_supplicant_fast_associate(struct
wpa_supplicant *wpa_s)
         return -1;

     os_get_time(&now);
-    if (now.sec - wpa_s->last_scan.sec > 5) {
+    if (now.sec - wpa_s->last_scan.sec > wpa_s->conf->bss_expiration_age) {
         wpa_printf(MSG_DEBUG, "Fast associate: Old scan results");
         return -1;
     }


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



More information about the Hostap mailing list