mt76: mt7615: add multiple wiphy support to the dfs support code
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Oct 2019 12:11:27 +0000 (13:11 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:05:58 +0000 (10:05 +0100)
commit5dabdf71e94e4583a1111b6d833e00e6eef373d1
tree6ec3e7230f5b6df6f093434b436f5c2c6a76b3b8
parentd23cb96ccf71c5850b6a4ac92cd7cd973f70ca5b
mt76: mt7615: add multiple wiphy support to the dfs support code

There are two DFS detectors on the chip. When using 160 MHz channel bandwidth
(not supported in dual-wiphy mode), both are used. Otherwise, one detector is
used per wiphy.
Rework the code to start/stop them separately per phy and to indicate the
radar event on the right phy based on the detector index

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.h
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h