mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 00:24:20 +00:00
rtl8188eu: Remove dead code inside #if 0
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2d60bad9ad
commit
b6b121512b
56 changed files with 121 additions and 6115 deletions
|
@ -332,21 +332,6 @@ void efuse_read_phymap_from_txpktbuf(
|
|||
lo32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L);
|
||||
hi32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H);
|
||||
|
||||
#if 0
|
||||
DBG_871X("%s lo32:0x%08x, %02x %02x %02x %02x\n", __FUNCTION__, lo32
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_L)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_L+1)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_L+2)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_L+3)
|
||||
);
|
||||
DBG_871X("%s hi32:0x%08x, %02x %02x %02x %02x\n", __FUNCTION__, hi32
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_H)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_H+1)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_H+2)
|
||||
, rtw_read8(adapter, REG_PKTBUF_DBG_DATA_H+3)
|
||||
);
|
||||
#endif
|
||||
|
||||
if(i==0)
|
||||
{
|
||||
#if 1 //for debug
|
||||
|
@ -428,17 +413,6 @@ static s32 iol_read_efuse(
|
|||
if(status == _SUCCESS)
|
||||
efuse_read_phymap_from_txpktbuf(padapter, txpktbuf_bndy, physical_map, &size);
|
||||
|
||||
#if 0
|
||||
DBG_871X("%s physical map\n", __FUNCTION__);
|
||||
for(i=0;i<size;i++)
|
||||
{
|
||||
DBG_871X("%02x ", physical_map[i]);
|
||||
if(i%16==15)
|
||||
DBG_871X("\n");
|
||||
}
|
||||
DBG_871X("\n");
|
||||
#endif
|
||||
|
||||
efuse_phymap_to_logical(physical_map, offset, size_byte, logical_map);
|
||||
|
||||
return status;
|
||||
|
@ -3601,38 +3575,6 @@ Hal_InitChannelPlan(
|
|||
IN struct adapter *padapter
|
||||
)
|
||||
{
|
||||
#if 0
|
||||
PMGNT_INFO pMgntInfo = &(padapter->MgntInfo);
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if((pMgntInfo->RegChannelPlan >= RT_CHANNEL_DOMAIN_MAX) || (pHalData->EEPROMChannelPlan & EEPROM_CHANNEL_PLAN_BY_HW_MASK))
|
||||
{
|
||||
pMgntInfo->ChannelPlan = hal_MapChannelPlan8192C(padapter, (pHalData->EEPROMChannelPlan & (~(EEPROM_CHANNEL_PLAN_BY_HW_MASK))));
|
||||
pMgntInfo->bChnlPlanFromHW = (pHalData->EEPROMChannelPlan & EEPROM_CHANNEL_PLAN_BY_HW_MASK) ? TRUE : FALSE; // User cannot change channel plan.
|
||||
}
|
||||
else
|
||||
{
|
||||
pMgntInfo->ChannelPlan = (RT_CHANNEL_DOMAIN)pMgntInfo->RegChannelPlan;
|
||||
}
|
||||
|
||||
switch(pMgntInfo->ChannelPlan)
|
||||
{
|
||||
case RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN:
|
||||
{
|
||||
PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(pMgntInfo);
|
||||
|
||||
pDot11dInfo->bEnabled = TRUE;
|
||||
}
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("ReadAdapterInfo8187(): Enable dot11d when RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN!\n"));
|
||||
break;
|
||||
|
||||
default: //for MacOSX compiler warning.
|
||||
break;
|
||||
}
|
||||
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("RegChannelPlan(%d) EEPROMChannelPlan(%d)", pMgntInfo->RegChannelPlan, pHalData->EEPROMChannelPlan));
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Mgnt ChannelPlan = %d\n" , pMgntInfo->ChannelPlan));
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOLEAN HalDetectPwrDownMode88E(struct adapter *Adapter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue