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

Remove SetPowerTracking() and GetPowerTracking()

This commit is contained in:
kimocoder 2019-08-16 17:36:52 +02:00
parent 7ff8e97218
commit 1972751e8f
4 changed files with 2 additions and 49 deletions

View File

@ -771,17 +771,6 @@ static u8 mpt_ProStartTest(PADAPTER padapter)
/*
* General use
*/
s32 SetPowerTracking(PADAPTER padapter, u8 enable)
{
hal_mpt_SetPowerTracking(padapter, enable);
return 0;
}
void GetPowerTracking(PADAPTER padapter, u8 *enable)
{
hal_mpt_GetPowerTracking(padapter, enable);
}
void rtw_mp_trigger_iqk(PADAPTER padapter)
{

View File

@ -111,36 +111,6 @@ void hal_mpt_SwitchRfSetting(PADAPTER pAdapter)
}
}
s32 hal_mpt_SetPowerTracking(PADAPTER padapter, u8 enable)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct dm_struct *pDM_Odm = &(pHalData->odmpriv);
if (!netif_running(padapter->pnetdev)) {
return _FAIL;
}
if (check_fwstate(&padapter->mlmepriv, WIFI_MP_STATE) == _FALSE) {
return _FAIL;
}
if (enable)
pDM_Odm->rf_calibrate_info.txpowertrack_control = _TRUE;
else
pDM_Odm->rf_calibrate_info.txpowertrack_control = _FALSE;
return _SUCCESS;
}
void hal_mpt_GetPowerTracking(PADAPTER padapter, u8 *enable)
{
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct dm_struct *pDM_Odm = &(pHalData->odmpriv);
*enable = pDM_Odm->rf_calibrate_info.txpowertrack_control;
}
void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14)
{

View File

@ -728,17 +728,12 @@ void SetPacketRx(PADAPTER pAdapter, u8 bStartRx, u8 bAB);
void ResetPhyRxPktCount(PADAPTER pAdapter);
u32 GetPhyRxPktReceived(PADAPTER pAdapter);
u32 GetPhyRxPktCRC32Error(PADAPTER pAdapter);
s32 SetPowerTracking(PADAPTER padapter, u8 enable);
void GetPowerTracking(PADAPTER padapter, u8 *enable);
u32 mp_query_psd(PADAPTER pAdapter, u8 *data);
void rtw_mp_trigger_iqk(PADAPTER padapter);
void rtw_mp_trigger_lck(PADAPTER padapter);
u8 rtw_mp_mode_check(PADAPTER padapter);
void hal_mpt_SwitchRfSetting(PADAPTER pAdapter);
s32 hal_mpt_SetPowerTracking(PADAPTER padapter, u8 enable);
void hal_mpt_GetPowerTracking(PADAPTER padapter, u8 *enable);
void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14);
void hal_mpt_SetChannel(PADAPTER pAdapter);
void hal_mpt_SetBandwidth(PADAPTER pAdapter);

View File

@ -1077,7 +1077,7 @@ int rtw_mp_trx_query(struct net_device *dev,
return 0;
}
/*
int rtw_mp_pwrtrk(struct net_device *dev,
struct iw_request_info *info,
struct iw_point *wrqu, char *extra)
@ -1095,7 +1095,6 @@ int rtw_mp_pwrtrk(struct net_device *dev,
enable = 1;
if (wrqu->length > 1) {
/* not empty string*/
if (strncmp(input, "stop", 4) == 0) {
enable = 0;
sprintf(extra, "mp tx power tracking stop");
@ -1116,7 +1115,7 @@ int rtw_mp_pwrtrk(struct net_device *dev,
return 0;
}
*/
int rtw_mp_psd(struct net_device *dev,