Skip to content

Commit 87f3851

Browse files
januszdziedzicnbd168
authored andcommitted
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 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>
1 parent 87b07a1 commit 87f3851

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
@@ -1459,11 +1459,8 @@ static int mt7921_pre_channel_switch(struct ieee80211_hw *hw,
14591459
if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc)
14601460
return -EOPNOTSUPP;
14611461

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

14691466
return 0;

0 commit comments

Comments
 (0)