mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: update clc before setting sar power table
Fix the power table update sequence to ensure CLC is loaded before
setting SAR power table.
The firmware requires CLC baseline to be established first
to properly calculate the final power limit as min(clc_limit, rate_limit,sar_limit).
Fixes: 9557b6fe0c8b ("wifi: mt76: mt7925: refine the txpower initialization flow")
Signed-off-by: Jared.Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0ef8eb8d77
commit
2119837464
+8
-2
@@ -1828,9 +1828,15 @@ static int mt7925_set_sar_specs(struct ieee80211_hw *hw,
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
mt792x_mutex_acquire(dev);
|
mt792x_mutex_acquire(dev);
|
||||||
err = mt7925_set_tx_sar_pwr(hw, sar);
|
err = mt7925_mcu_set_clc(dev, dev->mt76.alpha2,
|
||||||
mt792x_mutex_release(dev);
|
dev->country_ie_env);
|
||||||
|
if (err < 0)
|
||||||
|
goto out;
|
||||||
|
|
||||||
|
err = mt7925_set_tx_sar_pwr(hw, sar);
|
||||||
|
|
||||||
|
out:
|
||||||
|
mt792x_mutex_release(dev);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user