TX power control for 8814

This commit is contained in:
kimocoder 2019-05-22 00:00:34 +02:00
parent d1d2446e05
commit 40ac5fb27d
2 changed files with 6 additions and 5 deletions

View File

@ -334,7 +334,7 @@ void rtl8814_init_dm_priv(IN PADAPTER Adapter)
#endif #endif
Init_ODM_ComInfo_8814(Adapter); Init_ODM_ComInfo_8814(Adapter);
odm_init_all_timers(podmpriv ); odm_init_all_timers(podmpriv );
//PHYDM_InitDebugSetting(podmpriv); //PHYDM_InitDebugSetting(podmpriv);
pHalData->CurrentTxPwrIdx = 18; pHalData->CurrentTxPwrIdx = 18;

View File

@ -1094,7 +1094,7 @@ PHY_SetRFPowerState8814A(
#elif (DEV_BUS_TYPE == RT_SDIO_INTERFACE) #elif (DEV_BUS_TYPE == RT_SDIO_INTERFACE)
bResult = phy_SetRFPowerState_8814Sdio(Adapter, eRFPowerState); bResult = phy_SetRFPowerState_8814Sdio(Adapter, eRFPowerState);
#endif #endif
RT_TRACE(COMP_RF, DBG_LOUD, ("<--------- PHY_SetRFPowerState8814(): bResult(%d)\n", bResult)); RT_TRACE(COMP_RF, DBG_LOUD, ("<--------- PHY_SetRFPowerState8814(): bResult(%d)\n", bResult));
return bResult; return bResult;
@ -1230,17 +1230,18 @@ PHY_GetTxPowerIndex8814A(
tic->ebias = 0; tic->ebias = 0;
} }
phy_TxPwrAdjInPercentage(pAdapter, (u8 *)&txPower);
if(txPower > MAX_POWER_INDEX) if(txPower > MAX_POWER_INDEX)
txPower = MAX_POWER_INDEX; txPower = MAX_POWER_INDEX;
//if (Adapter->registrypriv.mp_mode==0 && //if (Adapter->registrypriv.mp_mode==0 &&
//(pHalData->bautoload_fail_flag || pHalData->EfuseMap[EFUSE_INIT_MAP][EEPROM_TX_PWR_INX_JAGUAR] == 0xFF)) //(pHalData->bautoload_fail_flag || pHalData->EfuseMap[EFUSE_INIT_MAP][EEPROM_TX_PWR_INX_JAGUAR] == 0xFF))
//txPower = 0x12; //txPower = 0x12;
/*RTW_INFO("Final Tx Power(RF-%c, Channel: %d) = %d(0x%X)\n", ((RFPath==0)?'A':(RFPath==1)?'B':(RFPath==2)?'C':'D'), Channel, /*RTW_INFO("Final Tx Power(RF-%c, Channel: %d) = %d(0x%X)\n", ((RFPath==0)?'A':(RFPath==1)?'B':(RFPath==2)?'C':'D'), Channel,
txPower, txPower);*/ txPower, txPower);*/
return (u8) txPower; return (u8) txPower;
} }
@ -1248,7 +1249,7 @@ VOID
PHY_SetTxPowerIndex_8814A( PHY_SetTxPowerIndex_8814A(
IN PADAPTER Adapter, IN PADAPTER Adapter,
IN u32 PowerIndex, IN u32 PowerIndex,
IN enum rf_path RFPath, IN enum rf_path RFPath,
IN u8 Rate IN u8 Rate
) )
{ {