mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
Revert "wifi: mt76: mt7925: fix returned txpower"
This reverts commit 687e2fdfbf.
This commit is contained in:
@@ -1726,9 +1726,7 @@ static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
||||
int mt7925_set_tx_sar_pwr(struct ieee80211_hw *hw,
|
||||
const struct cfg80211_sar_specs *sar)
|
||||
{
|
||||
struct mt76_power_limits limits_array;
|
||||
struct mt76_phy *mphy = hw->priv;
|
||||
int tx_power;
|
||||
|
||||
if (sar) {
|
||||
int err = mt76_init_sar_power(hw, sar);
|
||||
@@ -1738,11 +1736,6 @@ int mt7925_set_tx_sar_pwr(struct ieee80211_hw *hw,
|
||||
}
|
||||
mt792x_init_acpi_sar_power(mt792x_hw_phy(hw), !sar);
|
||||
|
||||
tx_power = mt76_get_power_bound(mphy, hw->conf.power_level);
|
||||
tx_power = mt76_get_rate_power_limits(mphy, mphy->chandef.chan,
|
||||
&limits_array, tx_power);
|
||||
mphy->txpower_cur = tx_power;
|
||||
|
||||
return mt7925_mcu_set_rate_txpower(mphy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user