diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-08-25 12:07:00 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-09-24 19:10:17 +0300 |
commit | 0642cf4020f78e187b3d71c404fddd068f4bd7bc (patch) | |
tree | e88e6687f475c320db668ac26430ac95362bea30 /drivers/net/wireless/mediatek/mt76/mt7615/testmode.c | |
parent | f353269d59be349bc4ce56964af3026c8884eeb2 (diff) | |
download | linux-0642cf4020f78e187b3d71c404fddd068f4bd7bc.tar.xz |
mt76: mt7615: fix antenna selection for testmode tx_frames
Do not alter the tx/rx chain settings during channel setup, antennas are
remapped by the testmode specific register writes already
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/testmode.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/testmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/testmode.c b/drivers/net/wireless/mediatek/mt76/mt7615/testmode.c index 2cfa58d49832..1a67c244e96f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/testmode.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/testmode.c @@ -193,7 +193,7 @@ mt7615_tm_set_tx_antenna(struct mt7615_dev *dev, bool en) for (i = 0; i < 4; i++) { mt76_rmw_field(dev, MT_WF_PHY_RFINTF3_0(i), MT_WF_PHY_RFINTF3_0_ANT, - td->tx_antenna_mask & BIT(i) ? 0 : 0xa); + (td->tx_antenna_mask & BIT(i)) ? 0 : 0xa); } |