]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix dfs state issue with 160 MHz channels
authorFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:34:33 +0000 (14:34 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:40:23 +0000 (14:40 +0100)
commit1a4743eb9d7d17084aff06de7df663bfa9b99b3d
treebbb6971828823a468f6776300b6dc72756db2208
parent8d46f08e8a87310b8e5e0122ab22c4e9c69dc543
mt76: fix dfs state issue with 160 MHz channels

When operating on a mix of DFS and non-DFS channels, the driver only checks
the CAC status of the control channel. This causes beacons/tx to fail if the
control channel is on a non-DFS channel.
Fix this by calling cfg80211_reg_can_beacon to determine the DFS status of
all affected channels

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c