[PATCH] Fix scan notification in case of canceling scan
Jouni Malinen
j
Mon Apr 11 11:48:19 PDT 2011
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..
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list