[PATCH 03/11] wpa_s: use sched_scan in driver init
Bondar, Alexander
alexander.bondar
Wed Oct 5 03:38:00 PDT 2011
> diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index dbf385e..4cb5062 100644
> --- a/wpa_supplicant/sme.c
> +++ b/wpa_supplicant/sme.c
> @@ -237,6 +237,7 @@ void sme_authenticate(struct wpa_supplicant *wpa_s,
> }
> #endif /* CONFIG_P2P */
>
> + wpa_supplicant_cancel_sched_scan(wpa_s);
> wpa_supplicant_cancel_scan(wpa_s);
Don't you need to wait for EVENT_SCHED_SCAN_STOPPED before proceeding with authentication flow? There may be
race condition when authentication request is set to the driver while sched_scan is still in progress.
~Alex
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the Hostap
mailing list