diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-10-16 12:41:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-02-14 10:03:09 +0100 |
commit | beaaeb6b682795a03b0357540c0c5966fc657069 (patch) | |
tree | 2fc3a81646d8772477a91d24caaa04b696ed3020 /drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c | |
parent | 9e5f6dd7a5c61542c65cbb660ec77bf50700b61f (diff) | |
download | linux-beaaeb6b682795a03b0357540c0c5966fc657069.tar.gz linux-beaaeb6b682795a03b0357540c0c5966fc657069.tar.bz2 linux-beaaeb6b682795a03b0357540c0c5966fc657069.zip |
mt76: move txpower and antenna mask to struct mt76_phy
Adds multiple wiphy support to mt76_get_txpower
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.c | 2 |
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 3f82b9cec89e..dd336f54b8ee 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c @@ -125,7 +125,7 @@ static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, mutex_lock(&dev->mt76.mutex); dev->chainmask = (tx_ant == 3) ? 0x202 : 0x101; - dev->mt76.antenna_mask = tx_ant; + dev->mphy.antenna_mask = tx_ant; mt76_set_stream_caps(&dev->mt76, true); mt76x2_phy_set_antenna(dev); |