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:
parent
587fda34bd
commit
e37acdc291
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user