mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x0: phy: use tssi reported value to configure tx power if available
Use tssi calibrated value to configure tx power gain if tssi is enabled in eeprom data Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
57b441dcae
commit
a78802c63b
+1
-1
@@ -847,8 +847,8 @@ void mt76x0_phy_set_txpower(struct mt76x02_dev *dev)
|
||||
struct mt76_rate_power *t = &dev->mt76.rate_power;
|
||||
u8 info[2];
|
||||
|
||||
mt76x0_get_power_info(dev, info);
|
||||
mt76x0_get_tx_power_per_rate(dev);
|
||||
mt76x0_get_power_info(dev, info);
|
||||
|
||||
mt76x02_add_rate_power_offset(t, info[0]);
|
||||
mt76x02_limit_rate_power(t, dev->mt76.txpower_conf);
|
||||
|
||||
Reference in New Issue
Block a user