OSDN Git Service

mt76: mt7615: add multiple wiphy support to the rx path
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Oct 2019 16:50:57 +0000 (17:50 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:05:59 +0000 (10:05 +0100)
commit27ae72193249d7325ef72772e8f38015cfeae947
tree93a8e65e4c2f464913df9316dddcd08de8cfe1c8
parent2bed2a3e905a736abc75c83786042b9c758514f6
mt76: mt7615: add multiple wiphy support to the rx path

Program the RMAC CHFREQ registers to properly indicate the band that the
frames are received on.
Add some sanity checks to the programmed values, because the firmware
programs these registers differently

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