Re: [PATCH ath-current] wifi: ath9k_htc: clear csa_vif when a switch is aborted

From: Luka Gejak

Date: Tue Oct 27 2026 - 06:00:26 EST


October 26, 2026 at 4:25 PM, "Mehmet Fide" <mehmet.fide@xxxxxxxxx> wrote:


>
> From: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>
>
> priv->csa_vif is cleared only when the countdown completes or the
> interface is removed. When mac80211 aborts a switch and stops
> beaconing, as ieee80211_stop_ap() and ieee80211_stop_mesh() do, it
> stays set, and the next switch on the interface hits the WARN_ON() in
> ath9k_htc_channel_switch_beacon().
>
> Clear it when beaconing stops and the switch is no longer active.
> Off channel, beaconing stops with the switch still active and the
> countdown continues afterwards, so keep it then.
>
> Fixes: f0e449627e4a ("ath9k_htc: add support of channel switch")
> Reported-by: Luka Gejak <luka.gejak@xxxxxxxxx>
> Closes: https://lore.kernel.org/linux-wireless/c8bc5affa75d7519b424ea98c07c1d6b65942347@xxxxxxxxx/
> Signed-off-by: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>
> ---

Not an expert on ath family but, to my knowledge this is good.

Reviewed-by: Luka Gejak <luka.gejak@xxxxxxxxx>

Best regards,
Luka Gejak