[PATCH] Add wpa_supplicant_notify_scanning() if scan is canceled

Dan Williams dcbw
Fri Feb 26 14:56:22 PST 2010


On Fri, 2010-02-26 at 10:49 -0800, Dmitry Shmidt wrote:
> Hi,
> 
> There is a situation when scan was scheduled but during association it
> was canceled.
> And we need to change wpa_s->scanning var and notify network manager.

Looks like a good catch to me...

Dan

> ---------------------------------------------------------------------------------------------------------------
> From bfd735a87b98713f3a1382375fadfbb36b562c6e Mon Sep 17 00:00:00 2001
> From: Dmitry Shmidt <dimitrysh at google.com>
> Date: Fri, 26 Feb 2010 10:43:06 -0800
> Subject: [PATCH] Add wpa_supplicant_notify_scanning() if scan is
> canceled
> 
> Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
> ---
>  wpa_supplicant/scan.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
> index 56f062f..1da32c8 100644
> --- a/wpa_supplicant/scan.c
> +++ b/wpa_supplicant/scan.c
> @@ -425,6 +425,7 @@ void wpa_supplicant_cancel_scan(struct
> wpa_supplicant *wpa_s)
>  {
>      wpa_msg(wpa_s, MSG_DEBUG, "Cancelling scan request");
>      eloop_cancel_timeout(wpa_supplicant_scan, wpa_s, NULL);
> +    wpa_supplicant_notify_scanning(wpa_s, 0);
>  }
>  
>  
> -- 
> 1.6.2.2
> 
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap





More information about the Hostap mailing list