1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Use HAL methods to apply TX power settings

This commit is contained in:
Sergei Makarenkov 2017-02-11 15:54:32 +03:00
parent 587fda34bd
commit e37acdc291
3 changed files with 5 additions and 1 deletions

View File

@ -578,6 +578,8 @@ PHY_GetTxPowerLevel8812(
OUT s32* powerlevel
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
*powerlevel = pHalData->CurrentTxPwrIdx;
#if 0
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
PMGNT_INFO pMgntInfo = &(Adapter->MgntInfo);

View File

@ -1218,6 +1218,8 @@ PHY_GetTxPowerLevel8814(
OUT ps4Byte powerlevel
)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
*powerlevel = pHalData->CurrentTxPwrIdx;
#if 0
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
PMGNT_INFO pMgntInfo = &(Adapter->MgntInfo);

View File

@ -3460,7 +3460,7 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
value = 40;
pHalData->CurrentTxPwrIdx = value;
PHY_SetTxPowerLevel8812(padapter, pHalData->CurrentChannel);
rtw_hal_set_tx_power_level(padapter, pHalData->CurrentChannel);
#if 0
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);