[PATCH] PR: Cancel timeouts and reset state on auth radio work deinit
Jouni Malinen
j at w1.fi
Mon Aug 17 14:43:32 PDT 2026
On Fri, Aug 14, 2026 at 06:20:13AM +0000, Emily Xia wrote:
> When pr-pasn-start-auth radio work is active (work->started == 1),
> cancelling the work (e.g. on ranging abort or interface removal) calls
> its callback with deinit=1.
>
> Previously, wpas_pr_pasn_auth_start_cb() checked !work->started before
> cancelling wpas_pr_pasn_timeout. Since work->started was already 1, this
> check skipped cancelling the timer, leaving the 10-second timeout active
> on eloop. In addition, wpas_pr_pasn_auth_retry_timeout was not cancelled
> and wpa_s->pr_pasn_auth_work was not reset to NULL.
>
> Fix this by cancelling both wpas_pr_pasn_timeout and
> wpas_pr_pasn_auth_retry_timeout and setting wpa_s->pr_pasn_auth_work
> to NULL when work->started is true during deinit.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list