[PATCH] Fix scan notification in case of canceling scan

Dmitry Shmidt dimitrysh
Mon Apr 11 14:58:42 PDT 2011


On Mon, Apr 11, 2011 at 11:48 AM, Jouni Malinen <j at w1.fi> wrote:
> On Fri, Apr 08, 2011 at 03:44:37PM -0700, Dmitry Shmidt wrote:
>> diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
>> @@ -529,6 +529,7 @@ void wpa_supplicant_cancel_scan(struct
>> wpa_supplicant *wpa_s)
>> ?{
>> ? ? ? wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling scan request");
>> ? ? ? eloop_cancel_timeout(wpa_supplicant_scan, wpa_s, NULL);
>> + ? ? wpa_supplicant_notify_scanning(wpa_s, 0);
>
> Is this really needed? I thought that the scan notification is used to
> indicate when the actual scan is in progress. This
> wpa_supplicant_cancel_scan() does not cancel a running scan; it only
> cancels a scan that was scheduled to be started in the future..
>




More information about the Hostap mailing list