mt76: testmode: add support to set user-defined spe index
authorShayne Chen <shayne.chen@mediatek.com>
Tue, 5 Jan 2021 05:41:24 +0000 (13:41 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Jan 2021 19:07:48 +0000 (20:07 +0100)
commitfdc9c18eb44dc3fb8f4f5ba4b2e387087ea642c7
tree3b078bd8d705df274b3c72e72f12b04f712af81c
parent1fdcc310ff4c751154726ddf9601feecafe1b6ca
mt76: testmode: add support to set user-defined spe index

Add spatial extension (spe) index as a configurable parameter in testmode.
This is used for specifically configuring TX path, such as different
WF TX priority, number of antennas and spatial streams.

If spe_idx is not set, TX path depends on tx_antenna_mask; otherwise,
both spe_idx and tx_antenna_mask are referenced to decide TX path.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7915/testmode.c
drivers/net/wireless/mediatek/mt76/testmode.c
drivers/net/wireless/mediatek/mt76/testmode.h