mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 15:44:18 +00:00
Implement simple transmit power boost and override 2/2
This commit is contained in:
parent
c36640cba0
commit
afb5c175f7
@ -590,7 +590,12 @@ PHY_GetTxPowerIndex_8812A(
|
||||
}
|
||||
|
||||
by_rate_diff = by_rate_diff > limit ? limit : by_rate_diff;
|
||||
power_idx = base_idx + by_rate_diff + tpt_offset + extra_bias;
|
||||
power_idx = base_idx + by_rate_diff + tpt_offset + extra_bias + transmit_power_boost;
|
||||
|
||||
if (transmit_power_override != 0)
|
||||
power_idx = transmit_power_override;
|
||||
if (power_idx < 1)
|
||||
power_idx = 1;
|
||||
|
||||
if (power_idx < 0)
|
||||
power_idx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user