mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-02-01 13:30:09 +00:00
fix txpwr-by-rate logging and value when txpower-override is enabled
This commit is contained in:
parent
30c44240b9
commit
137b8a4171
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user