mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move txpower_conf back to driver specific structs
Nothing in the core uses it Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev,
|
||||
|
||||
s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj)
|
||||
{
|
||||
txpwr = min_t(s8, txpwr, dev->mt76.txpower_conf);
|
||||
txpwr = min_t(s8, txpwr, dev->txpower_conf);
|
||||
txpwr -= (dev->target_power + dev->target_power_delta[0]);
|
||||
txpwr = min_t(s8, txpwr, max_txpwr_adj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user