Re: [PATCH wireless] wifi: mac80211: abort chanswitch when leaving an IBSS

From: Mehmet Fide

Date: Mon Oct 26 2026 - 11:27:52 EST


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