Re: [PATCH wireless-next] wifi: mac80211: replace the CSA beacon before clearing csa_active
From: Mehmet Fide
Date: Tue Nov 24 2026 - 11:57:05 EST
Hi Johannes,
> > Fixes: e487eaeb076a ("cfg80211/mac80211/ath6kl: acquire wdev lock outside ch_switch_notify")
>
> I don't see why it would be that?? Please explain that.
That commit is where the clear moved ahead of the beacon replacement.
Before it, ieee80211_csa_finalize_work() assigned next_beacon first and
cleared csa_active only after the switch statement. e487eaeb076a added
the "goto unlock" error paths and moved the clear up, just before the
switch, so ieee80211_assign_beacon() now runs with csa_active already
false. 66199506fb91 ("mac80211: split CSA finalize function") and
1a96bb4e8a79 ("wifi: mac80211: start and finalize channel switch on
link basis") kept that order.
ath9k already tested csa_active before the countdown since d074e8d54785
("ath9k: enable CSA functionality in ath9k"), so the window opened for
it with e487eaeb076a.
Mehmet