diff --git a/mt76x2.h b/mt76x2.h index 612ad8c4..94405994 100644 --- a/mt76x2.h +++ b/mt76x2.h @@ -212,7 +212,7 @@ void mt76x2_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, void mt76x2_update_channel(struct mt76_dev *dev); -s8 mt76x3_tx_get_max_txpwr_adj(struct mt76x2_dev *dev, +s8 mt76x2_tx_get_max_txpwr_adj(struct mt76x2_dev *dev, const struct ieee80211_tx_rate *rate); s8 mt76x2_tx_get_txpwr_adj(struct mt76x2_dev *dev, s8 txpwr, s8 max_txpwr_adj); void mt76x2_tx_set_txpwr_auto(struct mt76x2_dev *dev, s8 txpwr); diff --git a/mt76x2_mac.c b/mt76x2_mac.c index ab43f885..649f5f36 100644 --- a/mt76x2_mac.c +++ b/mt76x2_mac.c @@ -181,7 +181,7 @@ void mt76x2_mac_write_txwi(struct mt76x2_dev *dev, struct mt76x2_txwi *txwi, nss = wcid->tx_rate_nss; } else { txwi->rate = mt76x2_mac_tx_rate_val(dev, rate, &nss); - max_txpwr_adj = mt76x3_tx_get_max_txpwr_adj(dev, rate); + max_txpwr_adj = mt76x2_tx_get_max_txpwr_adj(dev, rate); } spin_unlock_bh(&dev->mt76.lock); diff --git a/mt76x2_main.c b/mt76x2_main.c index 3921db48..1cd648ef 100644 --- a/mt76x2_main.c +++ b/mt76x2_main.c @@ -490,7 +490,7 @@ mt76x2_sta_rate_tbl_update(struct ieee80211_hw *hw, struct ieee80211_vif *vif, rate.idx = rates->rate[0].idx; rate.flags = rates->rate[0].flags; mt76x2_mac_wcid_set_rate(dev, &msta->wcid, &rate); - msta->wcid.max_txpwr_adj = mt76x3_tx_get_max_txpwr_adj(dev, &rate); + msta->wcid.max_txpwr_adj = mt76x2_tx_get_max_txpwr_adj(dev, &rate); } static void mt76x2_set_coverage_class(struct ieee80211_hw *hw, diff --git a/mt76x2_tx.c b/mt76x2_tx.c index 002048a3..1517b316 100644 --- a/mt76x2_tx.c +++ b/mt76x2_tx.c @@ -60,7 +60,7 @@ void mt76x2_tx_complete(struct mt76x2_dev *dev, struct sk_buff *skb) } } -s8 mt76x3_tx_get_max_txpwr_adj(struct mt76x2_dev *dev, +s8 mt76x2_tx_get_max_txpwr_adj(struct mt76x2_dev *dev, const struct ieee80211_tx_rate *rate) { s8 max_txpwr;