diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2018-09-04 16:41:07 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-19 12:29:16 +0200 |
commit | 5327b5ea13910df072772219e303a3d6cc5f992e (patch) | |
tree | 7cf9d77a072c443104a63e4f7b83afc9a61d72a7 /drivers/net/wireless/mediatek/mt76/mt76x0/tx.c | |
parent | 212926eb449309489b55ae46e433d26808337bcf (diff) | |
download | linux-stable-5327b5ea13910df072772219e303a3d6cc5f992e.tar.gz linux-stable-5327b5ea13910df072772219e303a3d6cc5f992e.tar.bz2 linux-stable-5327b5ea13910df072772219e303a3d6cc5f992e.zip |
mt76: unify sta_rate_tbl_update and related helpers
Use common sta_rate_tbl_update on mt76x0 and mt76x2.
mt76x0 do not have support TPC (transmision power control) implmented,
msta->wcid.max_txpwr_adj is only set for mt76x2.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x0/tx.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x0/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/tx.c b/drivers/net/wireless/mediatek/mt76/mt76x0/tx.c index ce80763ec557..eeb298719329 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/tx.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/tx.c @@ -93,7 +93,7 @@ mt76x0_push_txwi(struct mt76x0_dev *dev, struct sk_buff *skb, rate_ctl = wcid->tx_rate; nss = wcid->tx_rate_nss; } else { - rate_ctl = mt76x0_mac_tx_rate_val(dev, rate, &nss); + rate_ctl = mt76x02_mac_tx_rate_val(&dev->mt76, rate, &nss); } spin_unlock_irqrestore(&dev->mt76.lock, flags); |