mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-09 23:57:00 +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