mt76: mt7615: rework chainmask handling
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Oct 2019 13:16:28 +0000 (14:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:05:59 +0000 (10:05 +0100)
commit2bed2a3e905a736abc75c83786042b9c758514f6
tree256623cc9ca9d150f21166d9c392670765f48a1e
parent5dabdf71e94e4583a1111b6d833e00e6eef373d1
mt76: mt7615: rework chainmask handling

Move chainmask to struct mt7615_phy and instead of needlessly making the
format similar to values for older chips, make it refer to the actual chain
bits used for the rx/tx path.
This is important for multiple wiphy support, where for a secondary phy,
antenna_mask will start at 0, and chainmask will start at the chain offset
(bit 2)

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