mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 21:43:06 +00:00
rtl8188eu: Remove dead code associated with CONFIG_INTEL_XXX
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
4c57c6047a
commit
6583d55cd1
16 changed files with 29 additions and 405 deletions
106
hal/odm.c
106
hal/odm.c
|
@ -3048,13 +3048,7 @@ odm_DynamicTxPowerInit(
|
|||
|
||||
#if (RTL8192C_SUPPORT==1)
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if ((pHalData->BoardType == BOARD_USB_High_PA)||(Adapter->proximity.proxim_support==true))
|
||||
#else
|
||||
if (pHalData->BoardType == BOARD_USB_High_PA)
|
||||
#endif
|
||||
|
||||
{
|
||||
if (pHalData->BoardType == BOARD_USB_High_PA) {
|
||||
odm_DynamicTxPowerSavePowerIndex(pDM_Odm);
|
||||
pdmpriv->bDynamicTxPowerEnable = true;
|
||||
}
|
||||
|
@ -3342,81 +3336,35 @@ odm_DynamicTxPower_92C(
|
|||
if (!pdmpriv->bDynamicTxPowerEnable)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if (Adapter->proximity.proxim_on== true){
|
||||
struct proximity_priv *prox_priv=Adapter->proximity.proximity_priv;
|
||||
/* Intel set fixed tx power */
|
||||
printk("\n %s Adapter->proximity.proxim_on=%d prox_priv->proxim_modeinfo->power_output=%d\n",__func__,Adapter->proximity.proxim_on,prox_priv->proxim_modeinfo->power_output);
|
||||
if (prox_priv!=NULL){
|
||||
if (prox_priv->proxim_modeinfo->power_output> 0) {
|
||||
switch (prox_priv->proxim_modeinfo->power_output) {
|
||||
case 1:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_100;
|
||||
printk("TxHighPwrLevel_100\n");
|
||||
break;
|
||||
case 2:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_70;
|
||||
printk("TxHighPwrLevel_70\n");
|
||||
break;
|
||||
case 3:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_50;
|
||||
printk("TxHighPwrLevel_50\n");
|
||||
break;
|
||||
case 4:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_35;
|
||||
printk("TxHighPwrLevel_35\n");
|
||||
break;
|
||||
case 5:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_15;
|
||||
printk("TxHighPwrLevel_15\n");
|
||||
break;
|
||||
default:
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_100;
|
||||
printk("TxHighPwrLevel_100\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
/* STA not connected and AP not connected */
|
||||
if ((check_fwstate(pmlmepriv, _FW_LINKED) != true) &&
|
||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)) {
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
|
||||
/* STA not connected and AP not connected */
|
||||
if ((check_fwstate(pmlmepriv, _FW_LINKED) != true) &&
|
||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)) {
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
|
||||
|
||||
/* the LastDTPlvl should reset when disconnect, */
|
||||
/* otherwise the tx power level wouldn't change when disconnect and connect again. */
|
||||
/* Maddest 20091220. */
|
||||
pdmpriv->LastDTPLvl=TxHighPwrLevel_Normal;
|
||||
return;
|
||||
}
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == true) /* Default port */
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
else /* associated entry pwdb */
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
|
||||
if (UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL2)
|
||||
{
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Level2;
|
||||
}
|
||||
else if ((UndecoratedSmoothedPWDB < (TX_POWER_NEAR_FIELD_THRESH_LVL2-3)) &&
|
||||
(UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL1) )
|
||||
{
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Level1;
|
||||
}
|
||||
else if (UndecoratedSmoothedPWDB < (TX_POWER_NEAR_FIELD_THRESH_LVL1-5))
|
||||
{
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
|
||||
}
|
||||
/* the LastDTPlvl should reset when disconnect, */
|
||||
/* otherwise the tx power level wouldn't change when disconnect and connect again. */
|
||||
/* Maddest 20091220. */
|
||||
pdmpriv->LastDTPLvl=TxHighPwrLevel_Normal;
|
||||
return;
|
||||
}
|
||||
if ( (pdmpriv->DynamicTxHighPowerLvl != pdmpriv->LastDTPLvl) )
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == true) /* Default port */
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
else /* associated entry pwdb */
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
|
||||
if (UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL2)
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Level2;
|
||||
else if ((UndecoratedSmoothedPWDB < (TX_POWER_NEAR_FIELD_THRESH_LVL2-3)) &&
|
||||
(UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL1) )
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Level1;
|
||||
else if (UndecoratedSmoothedPWDB < (TX_POWER_NEAR_FIELD_THRESH_LVL1-5))
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
|
||||
if ( (pdmpriv->DynamicTxHighPowerLvl != pdmpriv->LastDTPLvl) ) {
|
||||
PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel);
|
||||
if (pdmpriv->DynamicTxHighPowerLvl == TxHighPwrLevel_Normal) /* HP1 -> Normal or HP2 -> Normal */
|
||||
odm_DynamicTxPowerRestorePowerIndex(pDM_Odm);
|
||||
|
|
|
@ -399,16 +399,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
else
|
||||
ptxdesc->txdw5 |= cpu_to_le32(0x00300000);/* retry limit = 12 */
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if ((padapter->proximity.proxim_on==true)&&(pattrib->intel_proxim==true)){
|
||||
DBG_88E("\n %s pattrib->rate=%d\n",__func__,pattrib->rate);
|
||||
ptxdesc->txdw5 |= cpu_to_le32( pattrib->rate);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
|
||||
}
|
||||
ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
|
||||
}
|
||||
else if ((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG)
|
||||
{
|
||||
|
|
|
@ -3556,14 +3556,6 @@ static void UpdateHalRAMask8188EUsb(PADAPTER padapter, u32 mac_id, u8 rssi_level
|
|||
mask |= ((raid<<28)&0xf0000000);
|
||||
DBG_88E("update raid entry, mask=0x%x, arg=0x%x\n", mask, arg);
|
||||
psta->ra_mask=mask;
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if (padapter->proximity.proxim_on ==true){
|
||||
arg &= ~BIT(6);
|
||||
}
|
||||
else {
|
||||
arg |= BIT(6);
|
||||
}
|
||||
#endif /* CONFIG_INTEL_PROXIM */
|
||||
mask |= ((raid<<28)&0xf0000000);
|
||||
|
||||
/* to do ,for 8188E-SMIC */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue