wifi: mt76: mt7915: deal with special variant of mt7916
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Fri, 30 Sep 2022 15:13:11 +0000 (23:13 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:12 +0000 (17:29 +0100)
commitee0863aecdecbd9035cf45acb8017bce67fc835c
tree6a2769d9f8e6774e64d5c97e2218536e33cfe4d4
parenta7ec8bcf00034ce84d4c9a15dffd7577fbed4db2
wifi: mt76: mt7915: deal with special variant of mt7916

A variant of mt7916 supports up to 3 tx/rx paths but with only
2 spatial streams. An example usage of the 3rd path is to server as
an auxiliary for beamforming.
In order to deal with this case, this patch reworks some parts to
correctly use paths or streams.

Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c
drivers/net/wireless/mediatek/mt76/mt7915/main.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c