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)
commit00a883e6806e394638d344ba281c2727d6ffcbd4
treebbb6971828823a468f6776300b6dc72756db2208
parentb1481b336d3ccdbef5dd73c747d7709f5431c404
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