Skip to content

Commit eab71f6

Browse files
januszdziedzicgregkh
authored andcommitted
wifi: mt76: mt7921: don't disconnect when CSA to DFS chan
[ Upstream commit 87f3851 ] When station mode, don't disconnect when we get channel switch from AP to DFS channel. Most 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" Fixes: 8aa2f59 ("wifi: mt76: mt7921: introduce CSA support") Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> Link: https://patch.msgid.link/20250716165443.28354-1-janusz.dziedzic@gmail.com Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2f6fbc8 commit eab71f6

File tree

1 file changed

+1
-4
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7921

1 file changed

+1
-4
lines changed

drivers/net/wireless/mediatek/mt76/mt7921/main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,11 +1457,8 @@ static int mt7921_pre_channel_switch(struct ieee80211_hw *hw,
14571457
if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc)
14581458
return -EOPNOTSUPP;
14591459

1460-
/* Avoid beacon loss due to the CAC(Channel Availability Check) time
1461-
* of the AP.
1462-
*/
14631460
if (!cfg80211_chandef_usable(hw->wiphy, &chsw->chandef,
1464-
IEEE80211_CHAN_RADAR))
1461+
IEEE80211_CHAN_DISABLED))
14651462
return -EOPNOTSUPP;
14661463

14671464
return 0;

0 commit comments

Comments
 (0)