ath9k_csa_update() iterates over all active interfaces and calls ath9k_csa_is_finished() for each of them. mac80211 also sets bss_conf.csa_active on a station interface while it follows a channel switch announced by its AP, so when an AP and a station share an ath9k radio, ath9k_csa_is_finished() calls ieee80211_beacon_cntdwn_is_complete() for the station vif. That function only handles AP, ad-hoc and mesh interfaces and hits WARN_ON(1) for any other type, producing a burst of warnings (about one per beacon interval) on every upstream CSA. Skip station interfaces in ath9k_csa_is_finished(). Ad-hoc and mesh interfaces keep their current behaviour. Tested on a TP-Link Archer C60 v3 (QCA9561) with an AP and a station on the same radio: twelve consecutive upstream channel switches with no warnings, whereas every logged switch produced them before. Fixes: 4effc6fda7ab ("ath9k: prepare for multi-interface CSA support") Link: https://lore.kernel.org/linux-wireless/CABMxrRyvsFy7qGXky-OF1KE3c04z0xO_XMGnJC28L0WHE9AF9Q@mail.gmail.com/ Signed-off-by: Gaston Guevara --- drivers/net/wireless/ath/ath9k/beacon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 4a27e3753c03..ff72f231be5d 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c @@ -362,7 +362,8 @@ static void ath9k_set_tsfadjust(struct ath_softc *sc, bool ath9k_csa_is_finished(struct ath_softc *sc, struct ieee80211_vif *vif) { - if (!vif || !vif->bss_conf.csa_active) + if (!vif || vif->type == NL80211_IFTYPE_STATION || + !vif->bss_conf.csa_active) return false; if (!ieee80211_beacon_cntdwn_is_complete(vif, 0)) -- 2.39.5