[PATCH 1/2] Skip scan if already scanning

Jouni Malinen j at w1.fi
Mon Nov 18 08:13:44 EST 2013


On Tue, Nov 12, 2013 at 12:40:04PM -0800, Dmitry Shmidt wrote:

> diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
> @@ -567,6 +567,11 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
> +	if (wpa_s->scanning) {
> +		wpa_dbg(wpa_s, MSG_DEBUG, "Skip scan - already scanning");
> +		return;
> +	}
> +
>  	if (!wpa_supplicant_enabled_networks(wpa_s) &&

I had not really ever understood why this would be needed, but anyway, I
applied the PNO/sched_scan patch from Jithu and it obsoletes this by
handling wpa_s->scanning == 1 here in a more meaningful case with a
reschedule scan request. As such, I'm dropping this skip-scan patch.
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list