Re: [PATCH wireless] wifi: mac80211: abort chanswitch when leaving an IBSS
From: Luka Gejak
Date: Tue Oct 27 2026 - 06:01:42 EST
October 26, 2026 at 4:25 PM, "Mehmet Fide" <mehmet.fide@xxxxxxxxx> wrote:
>
> Hi Luka,
>
> >
> > So if I read it right, after leaving mid countdown and joining again, the
> > next switch with a countdown now gets past mac80211 and runs into this in
> > ath9k_htc_channel_switch_beacon():
> >
> You read it right, I reproduced it on an AR9271 with this patch. A mesh
> point hits the same WARN already without it, since ieee80211_stop_mesh()
> aborts the switch the same way.
>
> Dropping csa_vif whenever beaconing stops is too much though: off
> channel, e.g. a scan during the countdown, beaconing stops with the
> switch still active, and the switch then never completes. So the fix
> drops it only when the switch is no longer active, sent as "wifi:
> ath9k_htc: clear csa_vif when a switch is aborted". This patch should
> go in with or after that one.
>
> Mehmet
>
Thanks for sending the patch, for this one:
Reviewed-by: Luka Gejak <luka.gejak@xxxxxxxxx>
Best regards,
Luka Gejak