1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

Implement simple transmit power boost and override 2/2

This commit is contained in:
kimocoder 2020-07-12 07:05:52 +00:00
parent c36640cba0
commit afb5c175f7

View File

@ -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;