mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Update logging
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d597e07a9e
commit
96adb823b9
54 changed files with 2268 additions and 2272 deletions
|
@ -38,7 +38,7 @@ static void iol_mode_enable(PADAPTER padapter, u8 enable)
|
|||
{
|
||||
//Enable initial offload
|
||||
reg_0xf0 = rtw_read8(padapter, REG_SYS_CFG);
|
||||
//DBG_871X("%s reg_0xf0:0x%02x, write 0x%02x\n", __func__, reg_0xf0, reg_0xf0|SW_OFFLOAD_EN);
|
||||
//DBG_88E("%s reg_0xf0:0x%02x, write 0x%02x\n", __func__, reg_0xf0, reg_0xf0|SW_OFFLOAD_EN);
|
||||
rtw_write8(padapter, REG_SYS_CFG, reg_0xf0|SW_OFFLOAD_EN);
|
||||
|
||||
if (padapter->bFWReady == _FALSE)
|
||||
|
@ -52,7 +52,7 @@ static void iol_mode_enable(PADAPTER padapter, u8 enable)
|
|||
{
|
||||
//disable initial offload
|
||||
reg_0xf0 = rtw_read8(padapter, REG_SYS_CFG);
|
||||
//DBG_871X("%s reg_0xf0:0x%02x, write 0x%02x\n", __func__, reg_0xf0, reg_0xf0& ~SW_OFFLOAD_EN);
|
||||
//DBG_88E("%s reg_0xf0:0x%02x, write 0x%02x\n", __func__, reg_0xf0, reg_0xf0& ~SW_OFFLOAD_EN);
|
||||
rtw_write8(padapter, REG_SYS_CFG, reg_0xf0 & ~SW_OFFLOAD_EN);
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ static s32 iol_execute(PADAPTER padapter, u8 control)
|
|||
u32 t1,t2;
|
||||
control = control&0x0f;
|
||||
reg_0x88 = rtw_read8(padapter, REG_HMEBOX_E0);
|
||||
//DBG_871X("%s reg_0x88:0x%02x, write 0x%02x\n", __func__, reg_0x88, reg_0x88|control);
|
||||
//DBG_88E("%s reg_0x88:0x%02x, write 0x%02x\n", __func__, reg_0x88, reg_0x88|control);
|
||||
rtw_write8(padapter, REG_HMEBOX_E0, reg_0x88|control);
|
||||
|
||||
t1 = start = rtw_get_current_time();
|
||||
|
@ -75,7 +75,7 @@ static s32 iol_execute(PADAPTER padapter, u8 control)
|
|||
(reg_0x88=rtw_read8(padapter, REG_HMEBOX_E0)) & control
|
||||
&& (passing_time=rtw_get_passing_time_ms(start))<1000
|
||||
) {
|
||||
//DBG_871X("%s polling reg_0x88:0x%02x,reg_0x1c7:0x%02x\n", __func__, reg_0x88,rtw_read8(padapter, 0x1c7) );
|
||||
//DBG_88E("%s polling reg_0x88:0x%02x,reg_0x1c7:0x%02x\n", __func__, reg_0x88,rtw_read8(padapter, 0x1c7) );
|
||||
//rtw_udelay_os(100);
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ static s32 iol_execute(PADAPTER padapter, u8 control)
|
|||
status = _FAIL;
|
||||
t2= rtw_get_current_time();
|
||||
//printk("==> step iol_execute : %5u reg-0x1c0= 0x%02x\n",rtw_get_time_interval_ms(t1,t2),rtw_read8(padapter, 0x1c0));
|
||||
//DBG_871X("%s in %u ms, reg_0x88:0x%02x\n", __func__, passing_time, reg_0x88);
|
||||
//DBG_88E("%s in %u ms, reg_0x88:0x%02x\n", __func__, passing_time, reg_0x88);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ static s32 iol_InitLLTTable(
|
|||
{
|
||||
s32 rst = _SUCCESS;
|
||||
iol_mode_enable(padapter, 1);
|
||||
//DBG_871X("%s txpktbuf_bndy:%u\n", __func__, txpktbuf_bndy);
|
||||
//DBG_88E("%s txpktbuf_bndy:%u\n", __func__, txpktbuf_bndy);
|
||||
rtw_write8(padapter, REG_TDECTRL+1, txpktbuf_bndy);
|
||||
rst = iol_execute(padapter, CMD_INIT_LLT);
|
||||
iol_mode_enable(padapter, 0);
|
||||
|
@ -121,14 +121,14 @@ efuse_phymap_to_logical(u8 * phymap, u16 _offset, u16 _size_byte, u8 *pbuf)
|
|||
efuseTbl = (u8*)rtw_zmalloc(EFUSE_MAP_LEN_88E);
|
||||
if (efuseTbl == NULL)
|
||||
{
|
||||
DBG_871X("%s: alloc efuseTbl fail!\n", __func__);
|
||||
DBG_88E("%s: alloc efuseTbl fail!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
eFuseWord= (u16 **)rtw_malloc2d(EFUSE_MAX_SECTION_88E, EFUSE_MAX_WORD_UNIT, sizeof(u16));
|
||||
if (eFuseWord == NULL)
|
||||
{
|
||||
DBG_871X("%s: alloc eFuseWord fail!\n", __func__);
|
||||
DBG_88E("%s: alloc eFuseWord fail!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ efuse_phymap_to_logical(u8 * phymap, u16 _offset, u16 _size_byte, u8 *pbuf)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X("EFUSE is empty efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, rtemp8);
|
||||
DBG_88E("EFUSE is empty efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, rtemp8);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -303,28 +303,28 @@ void efuse_read_phymap_from_txpktbuf(
|
|||
if (bcnhead<0) //if not valid
|
||||
bcnhead = rtw_read8(adapter, REG_TDECTRL+1);
|
||||
|
||||
DBG_871X("%s bcnhead:%d\n", __func__, bcnhead);
|
||||
DBG_88E("%s bcnhead:%d\n", __func__, bcnhead);
|
||||
|
||||
//reg_0x106 = rtw_read8(adapter, REG_PKT_BUFF_ACCESS_CTRL);
|
||||
//DBG_871X("%s reg_0x106:0x%02x, write 0x%02x\n", __func__, reg_0x106, 0x69);
|
||||
//DBG_88E("%s reg_0x106:0x%02x, write 0x%02x\n", __func__, reg_0x106, 0x69);
|
||||
rtw_write8(adapter, REG_PKT_BUFF_ACCESS_CTRL, TXPKT_BUF_SELECT);
|
||||
//DBG_871X("%s reg_0x106:0x%02x\n", __func__, rtw_read8(adapter, 0x106));
|
||||
//DBG_88E("%s reg_0x106:0x%02x\n", __func__, rtw_read8(adapter, 0x106));
|
||||
|
||||
dbg_addr = bcnhead*128/8; //8-bytes addressing
|
||||
|
||||
while (1)
|
||||
{
|
||||
//DBG_871X("%s dbg_addr:0x%x\n", __func__, dbg_addr+i);
|
||||
//DBG_88E("%s dbg_addr:0x%x\n", __func__, dbg_addr+i);
|
||||
rtw_write16(adapter, REG_PKTBUF_DBG_ADDR, dbg_addr+i);
|
||||
|
||||
//DBG_871X("%s write reg_0x143:0x00\n", __func__);
|
||||
//DBG_88E("%s write reg_0x143:0x00\n", __func__);
|
||||
rtw_write8(adapter, REG_TXPKTBUF_DBG, 0);
|
||||
start = rtw_get_current_time();
|
||||
while (!(reg_0x143=rtw_read8(adapter, REG_TXPKTBUF_DBG))//dbg
|
||||
//while (rtw_read8(adapter, REG_TXPKTBUF_DBG) & BIT0
|
||||
&& (passing_time=rtw_get_passing_time_ms(start))<1000
|
||||
) {
|
||||
DBG_871X("%s polling reg_0x143:0x%02x, reg_0x106:0x%02x\n", __func__, reg_0x143, rtw_read8(adapter, 0x106));
|
||||
DBG_88E("%s polling reg_0x143:0x%02x, reg_0x106:0x%02x\n", __func__, reg_0x143, rtw_read8(adapter, 0x106));
|
||||
rtw_usleep_os(100);
|
||||
}
|
||||
|
||||
|
@ -346,7 +346,7 @@ void efuse_read_phymap_from_txpktbuf(
|
|||
|
||||
limit = (len-2<limit)?len-2:limit;
|
||||
|
||||
DBG_871X("%s len:%u, lenbak:%u, aaa:%u, aaabak:%u\n", __func__, len, lenbak, aaa, aaabak);
|
||||
DBG_88E("%s len:%u, lenbak:%u, aaa:%u, aaabak:%u\n", __func__, len, lenbak, aaa, aaabak);
|
||||
|
||||
_rtw_memcpy(pos, ((u8*)&lo32)+2, (limit>=count+2)?2:limit-count);
|
||||
count+= (limit>=count+2)?2:limit-count;
|
||||
|
@ -374,7 +374,7 @@ void efuse_read_phymap_from_txpktbuf(
|
|||
|
||||
rtw_write8(adapter, REG_PKT_BUFF_ACCESS_CTRL, DISABLE_TRXPKT_BUF_ACCESS);
|
||||
|
||||
DBG_871X("%s read count:%u\n", __func__, count);
|
||||
DBG_88E("%s read count:%u\n", __func__, count);
|
||||
*size = count;
|
||||
|
||||
}
|
||||
|
@ -399,9 +399,9 @@ static s32 iol_read_efuse(
|
|||
_rtw_memset(physical_map, 0xFF, 512);
|
||||
|
||||
///reg_0x106 = rtw_read8(padapter, REG_PKT_BUFF_ACCESS_CTRL);
|
||||
//DBG_871X("%s reg_0x106:0x%02x, write 0x%02x\n", __func__, reg_0x106, 0x69);
|
||||
//DBG_88E("%s reg_0x106:0x%02x, write 0x%02x\n", __func__, reg_0x106, 0x69);
|
||||
rtw_write8(padapter, REG_PKT_BUFF_ACCESS_CTRL, TXPKT_BUF_SELECT);
|
||||
//DBG_871X("%s reg_0x106:0x%02x\n", __func__, rtw_read8(padapter, 0x106));
|
||||
//DBG_88E("%s reg_0x106:0x%02x\n", __func__, rtw_read8(padapter, 0x106));
|
||||
|
||||
status = iol_execute(padapter, CMD_READ_EFUSE_MAP);
|
||||
|
||||
|
@ -416,7 +416,7 @@ static s32 iol_read_efuse(
|
|||
s32 rtl8188e_iol_efuse_patch(PADAPTER padapter)
|
||||
{
|
||||
s32 result = _SUCCESS;
|
||||
printk("==> %s\n",__func__);
|
||||
DBG_88E("==> %s\n",__func__);
|
||||
|
||||
if (rtw_IOL_applied(padapter)){
|
||||
iol_mode_enable(padapter, 1);
|
||||
|
@ -436,7 +436,7 @@ static s32 iol_ioconfig(
|
|||
{
|
||||
s32 rst = _SUCCESS;
|
||||
|
||||
//DBG_871X("%s iocfg_bndy:%u\n", __func__, iocfg_bndy);
|
||||
//DBG_88E("%s iocfg_bndy:%u\n", __func__, iocfg_bndy);
|
||||
rtw_write8(padapter, REG_TDECTRL+1, iocfg_bndy);
|
||||
rst = iol_execute(padapter, CMD_IOCONFIG);
|
||||
|
||||
|
@ -767,7 +767,7 @@ void _8051Reset88E(PADAPTER padapter)
|
|||
u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp&(~BIT2));
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp|(BIT2));
|
||||
DBG_871X("=====> _8051Reset88E(): 8051 reset success .\n");
|
||||
DBG_88E("=====> _8051Reset88E(): 8051 reset success .\n");
|
||||
|
||||
}
|
||||
|
||||
|
@ -784,10 +784,10 @@ static s32 _FWFreeToGo(PADAPTER padapter)
|
|||
} while (counter++ < POLLING_READY_TIMEOUT_COUNT);
|
||||
|
||||
if (counter >= POLLING_READY_TIMEOUT_COUNT) {
|
||||
DBG_871X("%s: chksum report fail! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
DBG_88E("%s: chksum report fail! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
return _FAIL;
|
||||
}
|
||||
DBG_871X("%s: Checksum report OK! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
DBG_88E("%s: Checksum report OK! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
|
||||
|
||||
value32 = rtw_read32(padapter, REG_MCUFWDL);
|
||||
|
@ -802,13 +802,13 @@ static s32 _FWFreeToGo(PADAPTER padapter)
|
|||
do {
|
||||
value32 = rtw_read32(padapter, REG_MCUFWDL);
|
||||
if (value32 & WINTINI_RDY) {
|
||||
DBG_871X("%s: Polling FW ready success!! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
DBG_88E("%s: Polling FW ready success!! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
return _SUCCESS;
|
||||
}
|
||||
rtw_udelay_os(5);
|
||||
} while (counter++ < POLLING_READY_TIMEOUT_COUNT);
|
||||
|
||||
DBG_871X ("%s: Polling FW ready fail!! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
DBG_88E ("%s: Polling FW ready fail!! REG_MCUFWDL:0x%08x\n", __func__, value32);
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
|
@ -871,7 +871,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter)
|
|||
#ifdef CONFIG_FILE_FWIMG
|
||||
if (rtw_is_file_readable(rtw_fw_file_path) == _TRUE)
|
||||
{
|
||||
DBG_871X("%s accquire FW from file:%s\n", __func__, rtw_fw_file_path);
|
||||
DBG_88E("%s accquire FW from file:%s\n", __func__, rtw_fw_file_path);
|
||||
pFirmware->eFWSource = FW_SOURCE_IMG_FILE;
|
||||
}
|
||||
else
|
||||
|
@ -916,7 +916,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter)
|
|||
{
|
||||
pFirmwareBuf = pFirmware->szFwBuffer;
|
||||
FirmwareLen = pFirmware->ulFwLength;
|
||||
DBG_871X_LEVEL(_drv_info_, "+%s: !bUsedWoWLANFw, FmrmwareLen:%d+\n", __func__, FirmwareLen);
|
||||
DBG_88E_LEVEL(_drv_info_, "+%s: !bUsedWoWLANFw, FmrmwareLen:%d+\n", __func__, FirmwareLen);
|
||||
|
||||
// To Check Fw header. Added by tynli. 2009.12.04.
|
||||
pFwHdr = (PRT_8188E_FIRMWARE_HDR)pFirmware->szFwBuffer;
|
||||
|
@ -926,7 +926,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter)
|
|||
pHalData->FirmwareSubVersion = pFwHdr->Subversion;
|
||||
pHalData->FirmwareSignature = le16_to_cpu(pFwHdr->Signature);
|
||||
|
||||
DBG_871X ("%s: fw_ver=%d fw_subver=%d sig=0x%x\n",
|
||||
DBG_88E ("%s: fw_ver=%d fw_subver=%d sig=0x%x\n",
|
||||
__func__, pHalData->FirmwareVersion, pHalData->FirmwareSubVersion, pHalData->FirmwareSignature);
|
||||
|
||||
if (IS_FW_HEADER_EXIST(pFwHdr))
|
||||
|
@ -957,20 +957,20 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter)
|
|||
)
|
||||
break;
|
||||
|
||||
DBG_871X("%s writeFW_retry:%u, time after fwdl_start_time:%ums\n", __func__
|
||||
DBG_88E("%s writeFW_retry:%u, time after fwdl_start_time:%ums\n", __func__
|
||||
, writeFW_retry
|
||||
, rtw_get_passing_time_ms(fwdl_start_time)
|
||||
);
|
||||
}
|
||||
_FWDownloadEnable(padapter, _FALSE);
|
||||
if (_SUCCESS != rtStatus){
|
||||
DBG_871X("DL Firmware failed!\n");
|
||||
DBG_88E("DL Firmware failed!\n");
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
rtStatus = _FWFreeToGo(padapter);
|
||||
if (_SUCCESS != rtStatus) {
|
||||
DBG_871X("DL Firmware failed!\n");
|
||||
DBG_88E("DL Firmware failed!\n");
|
||||
goto Exit;
|
||||
}
|
||||
RT_TRACE(_module_hal_init_c_, _drv_info_, ("Firmware is ready to run!\n"));
|
||||
|
@ -985,7 +985,7 @@ Exit:
|
|||
if (padapter->pwrctrlpriv.wowlan_mode)
|
||||
rtl8188e_InitializeFirmwareVars(padapter);
|
||||
else
|
||||
DBG_871X_LEVEL(_drv_always_, "%s: wowland_mode:%d wowlan_wake_reason:%d\n",
|
||||
DBG_88E_LEVEL(_drv_always_, "%s: wowland_mode:%d wowlan_wake_reason:%d\n",
|
||||
__func__, padapter->pwrctrlpriv.wowlan_mode,
|
||||
padapter->pwrctrlpriv.wowlan_wake_reason);
|
||||
#endif
|
||||
|
@ -1030,10 +1030,10 @@ SetFwRelatedForWoWLAN8188ES(
|
|||
//
|
||||
status = rtl8188e_FirmwareDownload(padapter, bHostIsGoingtoSleep);
|
||||
if (status != _SUCCESS) {
|
||||
DBG_871X("ConfigFwRelatedForWoWLAN8188ES(): Re-Download Firmware failed!!\n");
|
||||
DBG_88E("ConfigFwRelatedForWoWLAN8188ES(): Re-Download Firmware failed!!\n");
|
||||
return;
|
||||
} else {
|
||||
DBG_871X("ConfigFwRelatedForWoWLAN8188ES(): Re-Download Firmware Success !!\n");
|
||||
DBG_88E("ConfigFwRelatedForWoWLAN8188ES(): Re-Download Firmware Success !!\n");
|
||||
}
|
||||
//
|
||||
// 2. Re-Init the variables about Fw related setting.
|
||||
|
@ -1228,21 +1228,21 @@ Hal_EfuseReadEFuse88E(
|
|||
//
|
||||
if ((_offset + _size_byte)>EFUSE_MAP_LEN_88E)
|
||||
{// total E-Fuse table is 512bytes
|
||||
DBG_8192C("Hal_EfuseReadEFuse88E(): Invalid offset(%#x) with read bytes(%#x)!!\n",_offset, _size_byte);
|
||||
DBG_88E("Hal_EfuseReadEFuse88E(): Invalid offset(%#x) with read bytes(%#x)!!\n",_offset, _size_byte);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
efuseTbl = (u8*)rtw_zmalloc(EFUSE_MAP_LEN_88E);
|
||||
if (efuseTbl == NULL)
|
||||
{
|
||||
DBG_871X("%s: alloc efuseTbl fail!\n", __func__);
|
||||
DBG_88E("%s: alloc efuseTbl fail!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
eFuseWord= (u16 **)rtw_malloc2d(EFUSE_MAX_SECTION_88E, EFUSE_MAX_WORD_UNIT, sizeof(u16));
|
||||
if (eFuseWord == NULL)
|
||||
{
|
||||
DBG_871X("%s: alloc eFuseWord fail!\n", __func__);
|
||||
DBG_88E("%s: alloc eFuseWord fail!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -1259,12 +1259,12 @@ Hal_EfuseReadEFuse88E(
|
|||
if (*rtemp8 != 0xFF)
|
||||
{
|
||||
efuse_utilized++;
|
||||
//DBG_8192C("efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, *rtemp8);
|
||||
//DBG_88E("efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, *rtemp8);
|
||||
eFuse_Addr++;
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG_871X("EFUSE is empty efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, *rtemp8);
|
||||
DBG_88E("EFUSE is empty efuse_Addr-%d efuse_data=%x\n", eFuse_Addr, *rtemp8);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -1492,16 +1492,16 @@ exit:
|
|||
if (_rtw_memcmp(logical_map, Adapter->eeprompriv.efuse_eeprom_data, 0x130) == _FALSE)
|
||||
{
|
||||
int i;
|
||||
DBG_871X("%s compare first 0x130 byte fail\n", __func__);
|
||||
DBG_88E("%s compare first 0x130 byte fail\n", __func__);
|
||||
for (i=0;i<512;i++)
|
||||
{
|
||||
if (i%16==0)
|
||||
DBG_871X("0x%03x: ", i);
|
||||
DBG_871X("%02x ", logical_map[i]);
|
||||
DBG_88E("0x%03x: ", i);
|
||||
DBG_88E("%02x ", logical_map[i]);
|
||||
if (i%16==15)
|
||||
DBG_871X("\n");
|
||||
DBG_88E("\n");
|
||||
}
|
||||
DBG_871X("\n");
|
||||
DBG_88E("\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1961,7 +1961,7 @@ hal_EfusePgPacketRead_8188e(
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_8192C("Error, All words disabled\n");
|
||||
DBG_88E("Error, All words disabled\n");
|
||||
efuse_addr++;
|
||||
continue;
|
||||
}
|
||||
|
@ -2696,7 +2696,7 @@ ReadChipVersion8188E(
|
|||
pHalData->NumTotalRFPath = 1;
|
||||
}
|
||||
|
||||
MSG_8192C("RF_Type is %x!!\n", pHalData->rf_type);
|
||||
MSG_88E("RF_Type is %x!!\n", pHalData->rf_type);
|
||||
|
||||
return ChipVersion;
|
||||
}
|
||||
|
@ -2741,14 +2741,14 @@ void rtl8188e_SetHalODMVar(
|
|||
}
|
||||
#endif
|
||||
if (bSet){
|
||||
DBG_8192C("### Set STA_(%d) info\n",psta->mac_id);
|
||||
DBG_88E("### Set STA_(%d) info\n",psta->mac_id);
|
||||
ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS,psta->mac_id,psta);
|
||||
#if (RATE_ADAPTIVE_SUPPORT==1)
|
||||
ODM_RAInfo_Init(podmpriv,psta->mac_id);
|
||||
#endif
|
||||
}
|
||||
else{
|
||||
DBG_8192C("### Clean STA_(%d) info\n",psta->mac_id);
|
||||
DBG_88E("### Clean STA_(%d) info\n",psta->mac_id);
|
||||
//_enter_critical_bh(&pHalData->odm_stainfo_lock, &irqL);
|
||||
ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS,psta->mac_id,NULL);
|
||||
|
||||
|
@ -2832,10 +2832,10 @@ void rtl8188e_stop_thread(_adapter *padapter)
|
|||
void hal_notch_filter_8188e(_adapter *adapter, bool enable)
|
||||
{
|
||||
if (enable) {
|
||||
DBG_871X("Enable notch filter\n");
|
||||
DBG_88E("Enable notch filter\n");
|
||||
rtw_write8(adapter, rOFDM0_RxDSP+1, rtw_read8(adapter, rOFDM0_RxDSP+1) | BIT1);
|
||||
} else {
|
||||
DBG_871X("Disable notch filter\n");
|
||||
DBG_88E("Disable notch filter\n");
|
||||
rtw_write8(adapter, rOFDM0_RxDSP+1, rtw_read8(adapter, rOFDM0_RxDSP+1) & ~BIT1);
|
||||
}
|
||||
}
|
||||
|
@ -2913,7 +2913,7 @@ u8 GetEEPROMSize8188E(PADAPTER padapter)
|
|||
// 6: EEPROM used is 93C46, 4: boot from E-Fuse.
|
||||
size = (cr & BOOT_FROM_EEPROM) ? 6 : 4;
|
||||
|
||||
MSG_8192C("EEPROM type is %s\n", size==4 ? "E-FUSE" : "93C46");
|
||||
MSG_88E("EEPROM type is %s\n", size==4 ? "E-FUSE" : "93C46");
|
||||
|
||||
return size;
|
||||
}
|
||||
|
@ -3076,7 +3076,7 @@ Hal_EfuseParseIDCode88E(
|
|||
EEPROMId = le16_to_cpu(*((u16*)hwinfo));
|
||||
if (EEPROMId != RTL_EEPROM_ID)
|
||||
{
|
||||
DBG_8192C("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
DBG_88E("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
pEEPROM->bautoload_fail_flag = _TRUE;
|
||||
}
|
||||
else
|
||||
|
@ -3084,7 +3084,7 @@ Hal_EfuseParseIDCode88E(
|
|||
pEEPROM->bautoload_fail_flag = _FALSE;
|
||||
}
|
||||
|
||||
DBG_871X("EEPROM ID=0x%04x\n", EEPROMId);
|
||||
DBG_88E("EEPROM ID=0x%04x\n", EEPROMId);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -3369,10 +3369,10 @@ void Hal_ReadPowerSavingMode88E(
|
|||
//if (SUPPORT_HW_RADIO_DETECT(Adapter))
|
||||
//Adapter->registrypriv.usbss_enable = Adapter->pwrctrlpriv.bSupportRemoteWakeup ;
|
||||
|
||||
DBG_8192C("%s...bHWPwrPindetect(%x)-bHWPowerdown(%x) ,bSupportRemoteWakeup(%x)\n",__func__,
|
||||
DBG_88E("%s...bHWPwrPindetect(%x)-bHWPowerdown(%x) ,bSupportRemoteWakeup(%x)\n",__func__,
|
||||
padapter->pwrctrlpriv.bHWPwrPindetect,padapter->pwrctrlpriv.bHWPowerdown ,padapter->pwrctrlpriv.bSupportRemoteWakeup);
|
||||
|
||||
DBG_8192C("### PS params=> power_mgnt(%x),usbss_enable(%x) ###\n",padapter->registrypriv.power_mgnt,padapter->registrypriv.usbss_enable);
|
||||
DBG_88E("### PS params=> power_mgnt(%x),usbss_enable(%x) ###\n",padapter->registrypriv.power_mgnt,padapter->registrypriv.usbss_enable);
|
||||
|
||||
}
|
||||
|
||||
|
@ -3414,9 +3414,9 @@ Hal_ReadTxPowerInfo88E(
|
|||
|
||||
if (bIn24G)
|
||||
{
|
||||
DBG_871X("======= Path %d, Channel %d =======\n",rfPath,ch );
|
||||
DBG_871X("Index24G_CCK_Base[%d][%d] = 0x%x\n",rfPath,ch ,pHalData->Index24G_CCK_Base[rfPath][ch]);
|
||||
DBG_871X("Index24G_BW40_Base[%d][%d] = 0x%x\n",rfPath,ch ,pHalData->Index24G_BW40_Base[rfPath][ch]);
|
||||
DBG_88E("======= Path %d, Channel %d =======\n",rfPath,ch );
|
||||
DBG_88E("Index24G_CCK_Base[%d][%d] = 0x%x\n",rfPath,ch ,pHalData->Index24G_CCK_Base[rfPath][ch]);
|
||||
DBG_88E("Index24G_BW40_Base[%d][%d] = 0x%x\n",rfPath,ch ,pHalData->Index24G_BW40_Base[rfPath][ch]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3427,11 +3427,11 @@ Hal_ReadTxPowerInfo88E(
|
|||
pHalData->BW20_24G_Diff[rfPath][TxCount]=pwrInfo24G.BW20_Diff[rfPath][TxCount];
|
||||
pHalData->BW40_24G_Diff[rfPath][TxCount]=pwrInfo24G.BW40_Diff[rfPath][TxCount];
|
||||
#if DBG
|
||||
DBG_871X("======= TxCount %d =======\n",TxCount );
|
||||
DBG_871X("CCK_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->CCK_24G_Diff[rfPath][TxCount]);
|
||||
DBG_871X("OFDM_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->OFDM_24G_Diff[rfPath][TxCount]);
|
||||
DBG_871X("BW20_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->BW20_24G_Diff[rfPath][TxCount]);
|
||||
DBG_871X("BW40_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->BW40_24G_Diff[rfPath][TxCount]);
|
||||
DBG_88E("======= TxCount %d =======\n",TxCount );
|
||||
DBG_88E("CCK_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->CCK_24G_Diff[rfPath][TxCount]);
|
||||
DBG_88E("OFDM_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->OFDM_24G_Diff[rfPath][TxCount]);
|
||||
DBG_88E("BW20_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->BW20_24G_Diff[rfPath][TxCount]);
|
||||
DBG_88E("BW40_24G_Diff[%d][%d]= %d\n",rfPath,TxCount,pHalData->BW40_24G_Diff[rfPath][TxCount]);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -3448,7 +3448,7 @@ Hal_ReadTxPowerInfo88E(
|
|||
{
|
||||
pHalData->EEPROMRegulatory = 0;
|
||||
}
|
||||
DBG_871X("EEPROMRegulatory = 0x%x\n", pHalData->EEPROMRegulatory);
|
||||
DBG_88E("EEPROMRegulatory = 0x%x\n", pHalData->EEPROMRegulatory);
|
||||
|
||||
}
|
||||
|
||||
|
@ -3472,7 +3472,7 @@ Hal_EfuseParseXtal_8188E(
|
|||
{
|
||||
pHalData->CrystalCap = EEPROM_Default_CrystalCap_88E;
|
||||
}
|
||||
DBG_871X("CrystalCap: 0x%2x\n", pHalData->CrystalCap);
|
||||
DBG_88E("CrystalCap: 0x%2x\n", pHalData->CrystalCap);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3488,7 +3488,7 @@ Hal_EfuseParseBoardType88E(
|
|||
pHalData->BoardType = ((hwinfo[EEPROM_RF_BOARD_OPTION_88E]&0xE0)>>5);
|
||||
else
|
||||
pHalData->BoardType = 0;
|
||||
DBG_871X("Board Type: 0x%2x\n", pHalData->BoardType);
|
||||
DBG_88E("Board Type: 0x%2x\n", pHalData->BoardType);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3527,7 +3527,7 @@ rtl8188e_EfuseParseChnlPlan(
|
|||
, AutoLoadFail
|
||||
);
|
||||
|
||||
DBG_871X("mlmepriv.ChannelPlan = 0x%02x\n", padapter->mlmepriv.ChannelPlan);
|
||||
DBG_88E("mlmepriv.ChannelPlan = 0x%02x\n", padapter->mlmepriv.ChannelPlan);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3549,8 +3549,8 @@ Hal_EfuseParseCustomerID88E(
|
|||
pHalData->EEPROMCustomerID = 0;
|
||||
pHalData->EEPROMSubCustomerID = 0;
|
||||
}
|
||||
DBG_871X("EEPROM Customer ID: 0x%2x\n", pHalData->EEPROMCustomerID);
|
||||
//DBG_871X("EEPROM SubCustomer ID: 0x%02x\n", pHalData->EEPROMSubCustomerID);
|
||||
DBG_88E("EEPROM Customer ID: 0x%2x\n", pHalData->EEPROMCustomerID);
|
||||
//DBG_88E("EEPROM SubCustomer ID: 0x%02x\n", pHalData->EEPROMSubCustomerID);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3597,7 +3597,7 @@ Hal_ReadAntennaDiversity88E(
|
|||
pHalData->TRxAntDivType = pHalData->TRxAntDivType; // The value in the driver setting of device manager.
|
||||
}
|
||||
|
||||
DBG_871X("EEPROM : AntDivCfg = %x, TRxAntDivType = %x\n",pHalData->AntDivCfg, pHalData->TRxAntDivType);
|
||||
DBG_88E("EEPROM : AntDivCfg = %x, TRxAntDivType = %x\n",pHalData->AntDivCfg, pHalData->TRxAntDivType);
|
||||
|
||||
|
||||
}
|
||||
|
@ -3628,7 +3628,7 @@ Hal_ReadThermalMeter_88E(
|
|||
}
|
||||
|
||||
//pHalData->ThermalMeter[0] = pHalData->EEPROMThermalMeter;
|
||||
DBG_871X("ThermalMeter = 0x%x\n", pHalData->EEPROMThermalMeter);
|
||||
DBG_88E("ThermalMeter = 0x%x\n", pHalData->EEPROMThermalMeter);
|
||||
|
||||
}
|
||||
|
||||
|
@ -3658,7 +3658,7 @@ bool HalDetectPwrDownMode88E(PADAPTER Adapter)
|
|||
pHalData->pwrdown = _FALSE;
|
||||
}
|
||||
|
||||
DBG_8192C("HalDetectPwrDownMode(): PDN=%d\n", pHalData->pwrdown);
|
||||
DBG_88E("HalDetectPwrDownMode(): PDN=%d\n", pHalData->pwrdown);
|
||||
|
||||
return pHalData->pwrdown;
|
||||
} // HalDetectPwrDownMode
|
||||
|
@ -3667,7 +3667,7 @@ bool HalDetectPwrDownMode88E(PADAPTER Adapter)
|
|||
void Hal_DetectWoWMode(PADAPTER pAdapter)
|
||||
{
|
||||
pAdapter->pwrctrlpriv.bSupportRemoteWakeup = _TRUE;
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -3687,7 +3687,7 @@ void Hal_ReadRFGainOffset(
|
|||
Adapter->eeprompriv.EEPROMRFGainOffset = buff[EEPROM_RF_GAIN_OFFSET_88E];
|
||||
else
|
||||
Adapter->eeprompriv.EEPROMRFGainOffset = EEPROM_Default_RFGainOffset;
|
||||
DBG_871X("EEPRORFGainOffset = 0x%02x\n", Adapter->eeprompriv.EEPROMRFGainOffset);
|
||||
DBG_88E("EEPRORFGainOffset = 0x%02x\n", Adapter->eeprompriv.EEPROMRFGainOffset);
|
||||
}
|
||||
#endif //CONFIG_RF_GAIN_OFFSET
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue