1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2025-02-01 21:40:09 +00:00

fix txpwr-by-rate logging and value when txpower-override is enabled

This commit is contained in:
kimocoder 2018-07-03 10:13:15 +02:00
parent 30c44240b9
commit 137b8a4171

View File

@ -2666,13 +2666,14 @@ PHY_SetTxPowerByRate(
return;
}
if (pAdapter->registrypriv.RegTxPowerIndexOverride)
Value = pAdapter->registrypriv.RegTxPowerIndexOverride;
/* Disable offset when override is enabled jic, even
though its value should not be used in that case anyway. */
if (pAdapter->registrypriv.RegTxPowerIndexOverride) Value = 0;
if (DBG_TX_POWER_IDX)
RTW_INFO( "TXPWR: by-rate [%sG][%c] Rate:%s = %d\n",
RTW_INFO( "TXPWR: by-rate-offset [%sG][%c] Rate:%s = %d\n",
(Band == BAND_ON_2_4G) ? "2.4" : "5", rf_path_char(RFPath),
MGN_RATE_STR(rateIndex), Value );
MGN_RATE_STR(Rate), Value );
pHalData->TxPwrByRateOffset[Band][RFPath][rateIndex] = Value;
}