mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move tpc routines in mt76x02-lib module
Move mt76x02_tx_get_txpwr_adj and mt76x02_tx_set_txpwr_auto routines in mt76x02-lib module since they are shared between mt76x0 and mt76x2 drivers. Moreover remove get_txpwr_adj function pointer Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
fd9174f830
commit
608708acf1
+1
-1
@@ -112,7 +112,7 @@ mt76x2_config(struct ieee80211_hw *hw, u32 changed)
|
||||
|
||||
if (test_bit(MT76_STATE_RUNNING, &dev->mt76.state)) {
|
||||
mt76x2_phy_set_txpower(dev);
|
||||
mt76x2_tx_set_txpwr_auto(dev, dev->mt76.txpower_conf);
|
||||
mt76x02_tx_set_txpwr_auto(dev, dev->mt76.txpower_conf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user