mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-03-15 14:24:13 +00:00
rtl8188eu: Remove POWER_TRAINING_ACTIVE - selected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a0911e4309
commit
6b83fa17db
4 changed files with 1 additions and 19 deletions
|
@ -432,8 +432,6 @@ odm_ARFBRefresh_8188E(
|
||||||
else{
|
else{
|
||||||
pRaInfo->LowestRate=0;
|
pRaInfo->LowestRate=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
|
||||||
if (pRaInfo->HighestRate >0x13)
|
if (pRaInfo->HighestRate >0x13)
|
||||||
pRaInfo->PTModeSS=3;
|
pRaInfo->PTModeSS=3;
|
||||||
else if (pRaInfo->HighestRate >0x0b)
|
else if (pRaInfo->HighestRate >0x0b)
|
||||||
|
@ -445,8 +443,6 @@ odm_ARFBRefresh_8188E(
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
|
||||||
("ODM_ARFBRefresh_8188E(): PTModeSS=%d\n", pRaInfo->PTModeSS));
|
("ODM_ARFBRefresh_8188E(): PTModeSS=%d\n", pRaInfo->PTModeSS));
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (pRaInfo->DecisionRate > pRaInfo->HighestRate)
|
if (pRaInfo->DecisionRate > pRaInfo->HighestRate)
|
||||||
pRaInfo->DecisionRate = pRaInfo->HighestRate;
|
pRaInfo->DecisionRate = pRaInfo->HighestRate;
|
||||||
|
|
||||||
|
@ -456,7 +452,6 @@ odm_ARFBRefresh_8188E(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
|
||||||
static void
|
static void
|
||||||
odm_PTTryState_8188E(
|
odm_PTTryState_8188E(
|
||||||
struct odm_ra_info *pRaInfo
|
struct odm_ra_info *pRaInfo
|
||||||
|
@ -556,7 +551,6 @@ odm_PTDecision_8188E(
|
||||||
pRaInfo->PTStage=temp_stage;
|
pRaInfo->PTStage=temp_stage;
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RATxRPTTimerSetting(
|
odm_RATxRPTTimerSetting(
|
||||||
|
@ -641,7 +635,6 @@ ODM_RAInfo_Init(
|
||||||
pRaInfo->TOTAL=0;
|
pRaInfo->TOTAL=0;
|
||||||
pRaInfo->RAWaitingCounter=0;
|
pRaInfo->RAWaitingCounter=0;
|
||||||
pRaInfo->RAPendingCounter=0;
|
pRaInfo->RAPendingCounter=0;
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
|
||||||
pRaInfo->PTActive=1; /* Active when this STA is use */
|
pRaInfo->PTActive=1; /* Active when this STA is use */
|
||||||
pRaInfo->PTTryState=0;
|
pRaInfo->PTTryState=0;
|
||||||
pRaInfo->PTStage=5; /* Need to fill into HW_PWR_STATUS */
|
pRaInfo->PTStage=5; /* Need to fill into HW_PWR_STATUS */
|
||||||
|
@ -651,7 +644,6 @@ ODM_RAInfo_Init(
|
||||||
pRaInfo->PTPreRssi=0;
|
pRaInfo->PTPreRssi=0;
|
||||||
pRaInfo->PTModeSS=0;
|
pRaInfo->PTModeSS=0;
|
||||||
pRaInfo->RAstage=0;
|
pRaInfo->RAstage=0;
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -828,7 +820,6 @@ ODM_RA_TxRPT2Handle_8188E(
|
||||||
pRAInfo->DROP,
|
pRAInfo->DROP,
|
||||||
MacIDValidEntry0 ,
|
MacIDValidEntry0 ,
|
||||||
MacIDValidEntry1));
|
MacIDValidEntry1));
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
|
||||||
if (pRAInfo->PTActive){
|
if (pRAInfo->PTActive){
|
||||||
if (pRAInfo->RAstage<5){
|
if (pRAInfo->RAstage<5){
|
||||||
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
||||||
|
@ -849,10 +840,6 @@ ODM_RA_TxRPT2Handle_8188E(
|
||||||
else{
|
else{
|
||||||
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
odm_RateDecision_8188E(pDM_Odm, pRAInfo);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
|
ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
|
||||||
("macid=%d R0=%d R1=%d R2=%d R3=%d R4=%d drop=%d valid0=%x RateID=%d SGI=%d\n",
|
("macid=%d R0=%d R1=%d R2=%d R3=%d R4=%d drop=%d valid0=%x RateID=%d SGI=%d\n",
|
||||||
MacId,
|
MacId,
|
||||||
|
|
|
@ -301,10 +301,8 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag
|
||||||
data_rate =ODM_RA_GetDecisionRate_8188E(&pHalData->odmpriv,pattrib->mac_id);
|
data_rate =ODM_RA_GetDecisionRate_8188E(&pHalData->odmpriv,pattrib->mac_id);
|
||||||
ptxdesc->txdw5 |= cpu_to_le32(data_rate & 0x3F);
|
ptxdesc->txdw5 |= cpu_to_le32(data_rate & 0x3F);
|
||||||
|
|
||||||
#if (POWER_TRAINING_ACTIVE==1)
|
|
||||||
pwr_status = ODM_RA_GetHwPwrStatus_8188E(&pHalData->odmpriv,pattrib->mac_id);
|
pwr_status = ODM_RA_GetHwPwrStatus_8188E(&pHalData->odmpriv,pattrib->mac_id);
|
||||||
ptxdesc->txdw4 |=cpu_to_le32( (pwr_status & 0x7)<< PWR_STATUS_SHT);
|
ptxdesc->txdw4 |=cpu_to_le32( (pwr_status & 0x7)<< PWR_STATUS_SHT);
|
||||||
#endif /* POWER_TRAINING_ACTIVE==1) */
|
|
||||||
} else {
|
} else {
|
||||||
/* EAP data packet and ARP packet and DHCP. */
|
/* EAP data packet and ARP packet and DHCP. */
|
||||||
/* Use the 1M data rate to send the EAP/ARP packet. */
|
/* Use the 1M data rate to send the EAP/ARP packet. */
|
||||||
|
|
|
@ -2869,12 +2869,10 @@ GetHalDefVar8188EUsb(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HAL_DEF_PT_PWR_STATUS:
|
case HAL_DEF_PT_PWR_STATUS:
|
||||||
#if (POWER_TRAINING_ACTIVE==1)
|
|
||||||
{
|
{
|
||||||
u8 MacID = *((u8*)pValue);
|
u8 MacID = *((u8*)pValue);
|
||||||
*((u8*)pValue) = ODM_RA_GetHwPwrStatus_8188E(&(pHalData->odmpriv), MacID);
|
*((u8*)pValue) = ODM_RA_GetHwPwrStatus_8188E(&(pHalData->odmpriv), MacID);
|
||||||
}
|
}
|
||||||
#endif/* POWER_TRAINING_ACTIVE==1) */
|
|
||||||
break;
|
break;
|
||||||
case HW_VAR_MAX_RX_AMPDU_FACTOR:
|
case HW_VAR_MAX_RX_AMPDU_FACTOR:
|
||||||
*(( u32*)pValue) = MAX_AMPDU_FACTOR_64K;
|
*(( u32*)pValue) = MAX_AMPDU_FACTOR_64K;
|
||||||
|
|
|
@ -82,7 +82,6 @@
|
||||||
#define RTL8188ES_SUPPORT 0
|
#define RTL8188ES_SUPPORT 0
|
||||||
#define RTL8188E_SUPPORT (RTL8188EE_SUPPORT|RTL8188EU_SUPPORT|RTL8188ES_SUPPORT)
|
#define RTL8188E_SUPPORT (RTL8188EE_SUPPORT|RTL8188EU_SUPPORT|RTL8188ES_SUPPORT)
|
||||||
#define RTL8188E_FOR_TEST_CHIP 0
|
#define RTL8188E_FOR_TEST_CHIP 0
|
||||||
#define POWER_TRAINING_ACTIVE 1
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Debug Related Config
|
* Debug Related Config
|
||||||
|
|
Loading…
Add table
Reference in a new issue