[PATCH 1/2] Skip scan if already scanning

Dmitry Shmidt dimitrysh
Mon Nov 18 08:16:59 PST 2013


On Mon, Nov 18, 2013 at 5:13 AM, Jouni Malinen <j at w1.fi> wrote:
> 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.

Jithu's patch is much more generic, thanks !

>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap



More information about the Hostap mailing list