summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-10-16 13:31:46 +0300
committerFelix Fietkau <nbd@nbd.name>2020-02-14 12:03:09 +0300
commitdb7aa188623d522636cf1a0719312b0dbbdf1dc9 (patch)
tree27ed425315375bb56247172899f85faf7fef9946 /drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
parent011849e0fc55d607016314e752fc837c00b7c794 (diff)
downloadlinux-db7aa188623d522636cf1a0719312b0dbbdf1dc9.tar.xz
mt76: move chainmask back to driver specific structs
Nothing in the core uses it Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c b/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
index 1f2db374ed51..bc0ffae7adda 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
@@ -124,7 +124,7 @@ static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant,
mutex_lock(&dev->mt76.mutex);
- dev->mt76.chainmask = (tx_ant == 3) ? 0x202 : 0x101;
+ dev->chainmask = (tx_ant == 3) ? 0x202 : 0x101;
dev->mt76.antenna_mask = tx_ant;
mt76_set_stream_caps(&dev->mt76, true);