[PATCH] Abort ongoing scan

Krishna Chaitanya chaitanya.mgit at gmail.com
Wed Jul 19 09:47:52 PDT 2023


On Wed, Jul 19, 2023 at 12:47 AM Chaitanya Tata
<chaitanya.mgit at gmail.com> wrote:
>
> From: Chaitanya Tata <chaitanya.mgit at gmail.com>
>
> From: Chaitanya Tata <Chaitanya.Tata at nordicsemi.no>
>
> Along with canceling queued scan, abort ongoing scan if any, this
> ensures Wi-Fi interface is in usable state after disconnect is issued,
> else subsequent scan after disconnect might fail with EBUSY.
>
> Signed-off-by: Chaitanya Tata <Chaitanya.Tata at nordicsemi.no>
> ---
>  wpa_supplicant/wpa_supplicant.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
> index e0f3240e8..4dd89f829 100644
> --- a/wpa_supplicant/wpa_supplicant.c
> +++ b/wpa_supplicant/wpa_supplicant.c
> @@ -8682,6 +8682,7 @@ void wpas_request_disconnection(struct wpa_supplicant *wpa_s)
>         wpa_s->disconnected = 1;
>         wpa_supplicant_cancel_sched_scan(wpa_s);
>         wpa_supplicant_cancel_scan(wpa_s);
> +       wpas_abort_ongoing_scan(wpa_s);
>         wpa_supplicant_deauthenticate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
>         eloop_cancel_timeout(wpas_network_reenabled, wpa_s, NULL);
>         radio_remove_works(wpa_s, "connect", 0);
> --
> 2.34.1
>
 Please ignore this, first patch wasn't showing up in patchwork, so,
re-sent it with different from,
now both are showing up :).



More information about the Hostap mailing list