From 7cd6cec3acf28348b416f33e06b33e1281b257d4 Mon Sep 17 00:00:00 2001 From: Janusz Dziedzic Date: Wed, 16 Jul 2025 18:34:18 +0200 Subject: [PATCH] wifi: mt76: mt7921: don't disconnect when CSA to DFS chan When station mode don't disconnect when we get channel switch from AP to DFS channel. Most/all APs send CSA request after pass background CAC. In other case we should disconnect after detect beacon miss. Without patch when we get CSA to DFS channel get: "kernel: wlo1: preparing for channel switch failed, disconnecting" Signed-off-by: Janusz Dziedzic --- mt7921/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mt7921/main.c b/mt7921/main.c index 523325f79..55ed8d5f1 100644 --- a/mt7921/main.c +++ b/mt7921/main.c @@ -1460,11 +1460,8 @@ static int mt7921_pre_channel_switch(struct ieee80211_hw *hw, if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc) return -EOPNOTSUPP; - /* Avoid beacon loss due to the CAC(Channel Availability Check) time - * of the AP. - */ if (!cfg80211_chandef_usable(hw->wiphy, &chsw->chandef, - IEEE80211_CHAN_RADAR)) + IEEE80211_CHAN_DISABLED)) return -EOPNOTSUPP; return 0;