[PATCH] Use BSS expiration age as fast association threshold

Jouni Malinen j
Thu Feb 28 06:37:03 PST 2013


On Tue, Feb 26, 2013 at 10:36:00PM +0900, Masashi Honma wrote:
> diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
> @@ -1344,7 +1344,7 @@ int wpa_supplicant_fast_associate(struct

> -    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");

This would change the default behavior to use up to 180 seconds old scan
results to avoid the new scan. I don't think I want to go that far as
the default behavior.. Scan results may have changed considerably and
BSS or even network selection is not really going to be ideal if the
device has moved.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list