mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 21:43:06 +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
|
@ -151,7 +151,7 @@ u8 HalPwrSeqCmdParsing(
|
|||
rtw_udelay_os(10);
|
||||
|
||||
if (pollingCount++ > maxPollingCnt) {
|
||||
DBG_871X("Fail to polling Offset[%#x]\n", offset);
|
||||
DBG_88E("Fail to polling Offset[%#x]\n", offset);
|
||||
return _FALSE;
|
||||
}
|
||||
} while (!bPollingBit);
|
||||
|
|
|
@ -73,7 +73,7 @@ void dump_chip_info(HAL_VERSION ChipVersion)
|
|||
|
||||
cnt += sprintf((buf+cnt), "RomVer(%d)\n", ChipVersion.ROMVer);
|
||||
|
||||
DBG_871X("%s", buf);
|
||||
DBG_88E("%s", buf);
|
||||
}
|
||||
|
||||
|
||||
|
@ -369,7 +369,7 @@ s32 c2h_evt_read(_adapter *adapter, u8 *buf)
|
|||
&c2h_evt , sizeof(c2h_evt));
|
||||
|
||||
if (0) {
|
||||
DBG_871X("%s id:%u, len:%u, seq:%u, trigger:0x%02x\n", __func__
|
||||
DBG_88E("%s id:%u, len:%u, seq:%u, trigger:0x%02x\n", __func__
|
||||
, c2h_evt->id, c2h_evt->plen, c2h_evt->seq, trigger);
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
#ifdef CONFIG_DUALMAC_CONCURRENT
|
||||
if (padapter->hw_init_completed == _TRUE)
|
||||
{
|
||||
DBG_871X("rtw_hal_init: hw_init_completed == _TRUE\n");
|
||||
DBG_88E("rtw_hal_init: hw_init_completed == _TRUE\n");
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
{
|
||||
if (padapter->pbuddy_adapter->hw_init_completed == _TRUE)
|
||||
{
|
||||
DBG_871X("rtw_hal_init: pbuddy_adapter hw_init_completed == _TRUE\n");
|
||||
DBG_88E("rtw_hal_init: pbuddy_adapter hw_init_completed == _TRUE\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
else{
|
||||
padapter->pbuddy_adapter->hw_init_completed = _FALSE;
|
||||
RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail(pbuddy_adapter)\n"));
|
||||
DBG_871X("rtw_hal_init: hal__init fail(pbuddy_adapter)\n");
|
||||
DBG_88E("rtw_hal_init: hal__init fail(pbuddy_adapter)\n");
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
}
|
||||
else{
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
DBG_871X("rtw_hal_init: hal__init fail\n");
|
||||
DBG_88E("rtw_hal_init: hal__init fail\n");
|
||||
}
|
||||
|
||||
RT_TRACE(_module_hal_init_c_,_drv_err_,("-rtl871x_hal_init:status=0x%x\n",status));
|
||||
|
@ -163,7 +163,7 @@ _func_enter_;
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X("\n rtw_hal_deinit: hal_init fail\n");
|
||||
DBG_88E("\n rtw_hal_deinit: hal_init fail\n");
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
@ -212,7 +212,7 @@ void rtw_hal_enable_interrupt(_adapter *padapter)
|
|||
if (padapter->HalFunc.enable_interrupt)
|
||||
padapter->HalFunc.enable_interrupt(padapter);
|
||||
else
|
||||
DBG_871X("%s: HalFunc.enable_interrupt is NULL!\n", __func__);
|
||||
DBG_88E("%s: HalFunc.enable_interrupt is NULL!\n", __func__);
|
||||
|
||||
}
|
||||
void rtw_hal_disable_interrupt(_adapter *padapter)
|
||||
|
@ -220,7 +220,7 @@ void rtw_hal_disable_interrupt(_adapter *padapter)
|
|||
if (padapter->HalFunc.disable_interrupt)
|
||||
padapter->HalFunc.disable_interrupt(padapter);
|
||||
else
|
||||
DBG_871X("%s: HalFunc.disable_interrupt is NULL!\n", __func__);
|
||||
DBG_88E("%s: HalFunc.disable_interrupt is NULL!\n", __func__);
|
||||
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ u32 rtw_hal_inirp_init(_adapter *padapter)
|
|||
if (padapter->HalFunc.inirp_init)
|
||||
rst = padapter->HalFunc.inirp_init(padapter);
|
||||
else
|
||||
DBG_871X(" %s HalFunc.inirp_init is NULL!!!\n",__func__);
|
||||
DBG_88E(" %s HalFunc.inirp_init is NULL!!!\n",__func__);
|
||||
return rst;
|
||||
}
|
||||
|
||||
|
|
10
hal/odm.c
10
hal/odm.c
|
@ -4440,7 +4440,7 @@ odm_TXPowerTrackingThermalMeterInit(
|
|||
if ( *(pDM_Odm->mp_mode) != 1)
|
||||
pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = _TRUE;
|
||||
//#endif//#if (MP_DRIVER != 1)
|
||||
MSG_8192C("pDM_Odm TxPowerTrackControl = %d\n", pDM_Odm->RFCalibrateInfo.TxPowerTrackControl);
|
||||
MSG_88E("pDM_Odm TxPowerTrackControl = %d\n", pDM_Odm->RFCalibrateInfo.TxPowerTrackControl);
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
@ -4459,7 +4459,7 @@ odm_TXPowerTrackingThermalMeterInit(
|
|||
pdmpriv->TxPowerTrackControl = _TRUE;
|
||||
//#endif//#if (MP_DRIVER != 1)
|
||||
}
|
||||
MSG_8192C("pdmpriv->TxPowerTrackControl = %d\n", pdmpriv->TxPowerTrackControl);
|
||||
MSG_88E("pdmpriv->TxPowerTrackControl = %d\n", pdmpriv->TxPowerTrackControl);
|
||||
|
||||
}
|
||||
#endif//endif (CONFIG_RTL8188E==1)
|
||||
|
@ -4549,7 +4549,7 @@ odm_TXPowerTrackingCheckCE(
|
|||
//pHalData->TxPowerCheckCnt++; //cosa add for debug
|
||||
//ODM_SetRFReg(pDM_Odm, RF_PATH_A, RF_T_METER, bRFRegOffsetMask, 0x60);
|
||||
PHY_SetRFReg(Adapter, RF_PATH_A, RF_T_METER_88E, BIT17 | BIT16, 0x03);
|
||||
//DBG_8192C("Trigger 92C Thermal Meter!!\n");
|
||||
//DBG_88E("Trigger 92C Thermal Meter!!\n");
|
||||
|
||||
pDM_Odm->RFCalibrateInfo.TM_Trigger = 1;
|
||||
return;
|
||||
|
@ -4557,7 +4557,7 @@ odm_TXPowerTrackingCheckCE(
|
|||
}
|
||||
else
|
||||
{
|
||||
//DBG_8192C("Schedule TxPowerTracking direct call!!\n");
|
||||
//DBG_88E("Schedule TxPowerTracking direct call!!\n");
|
||||
odm_TXPowerTrackingCallback_ThermalMeter_8188E(Adapter);
|
||||
pDM_Odm->RFCalibrateInfo.TM_Trigger = 0;
|
||||
}
|
||||
|
@ -11312,7 +11312,7 @@ void odm_dtc(PDM_ODM_T pDM_Odm)
|
|||
resp_txagc = resp_txagc | (resp_txagc << 5);
|
||||
ODM_Write1Byte(pDM_Odm, 0x06d9, resp_txagc);
|
||||
|
||||
DBG_871X("%s RSSI_Min:%u, set RESP_TXAGC to %s %u\n",
|
||||
DBG_88E("%s RSSI_Min:%u, set RESP_TXAGC to %s %u\n",
|
||||
__func__, pDM_Odm->RSSI_Min, sign?"minus":"plus", dtc_steps);
|
||||
#endif /* CONFIG_RESP_TXAGC_ADJUST */
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ static u8 _is_fw_read_cmd_down(_adapter* padapter, u8 msgbox_num)
|
|||
|
||||
u8 valid;
|
||||
|
||||
//DBG_8192C(" _is_fw_read_cmd_down ,reg_1cc(%x),msg_box(%d)...\n",rtw_read8(padapter,REG_HMETFR),msgbox_num);
|
||||
//DBG_88E(" _is_fw_read_cmd_down ,reg_1cc(%x),msg_box(%d)...\n",rtw_read8(padapter,REG_HMETFR),msgbox_num);
|
||||
|
||||
do{
|
||||
valid = rtw_read8(padapter,REG_HMETFR) & BIT(msgbox_num);
|
||||
|
@ -89,7 +89,7 @@ _func_enter_;
|
|||
|
||||
if (padapter->bFWReady == _FALSE)
|
||||
{
|
||||
DBG_8192C("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
DBG_88E("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ _func_enter_;
|
|||
h2c_box_num = pHalData->LastHMEBoxNum;
|
||||
|
||||
if (!_is_fw_read_cmd_down(padapter, h2c_box_num)){
|
||||
DBG_8192C(" fw read cmd failed...\n");
|
||||
DBG_88E(" fw read cmd failed...\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ _func_enter_;
|
|||
|
||||
bcmd_down = _TRUE;
|
||||
|
||||
// DBG_8192C("MSG_BOX:%d,CmdLen(%d), reg:0x%x =>h2c_cmd:0x%x, reg:0x%x =>h2c_cmd_ex:0x%x ..\n"
|
||||
// DBG_88E("MSG_BOX:%d,CmdLen(%d), reg:0x%x =>h2c_cmd:0x%x, reg:0x%x =>h2c_cmd_ex:0x%x ..\n"
|
||||
// ,pHalData->LastHMEBoxNum ,CmdLen,msgbox_addr,h2c_cmd,msgbox_ex_addr,h2c_cmd_ex);
|
||||
|
||||
pHalData->LastHMEBoxNum = (h2c_box_num+1) % RTL88E_MAX_H2C_BOX_NUMS;
|
||||
|
@ -203,7 +203,7 @@ u8 rtl8192c_set_FwSelectSuspend_cmd(_adapter *padapter ,u8 bfwpoll, u16 period)
|
|||
{
|
||||
u8 res=_SUCCESS;
|
||||
struct H2C_SS_RFOFF_PARAM param;
|
||||
DBG_8192C("==>%s bfwpoll(%x)\n",__func__,bfwpoll);
|
||||
DBG_88E("==>%s bfwpoll(%x)\n",__func__,bfwpoll);
|
||||
param.gpio_period = period;//Polling GPIO_11 period time
|
||||
param.ROFOn = (_TRUE == bfwpoll)?1:0;
|
||||
FillH2CCmd_88E(padapter, SELECTIVE_SUSPEND_ROF_CMD, sizeof(param), (u8*)(¶m));
|
||||
|
@ -220,7 +220,7 @@ _func_enter_;
|
|||
if (pHalData->fw_ractrl == _TRUE){
|
||||
;
|
||||
}else{
|
||||
DBG_8192C("==>%s fw dont support RA\n",__func__);
|
||||
DBG_88E("==>%s fw dont support RA\n",__func__);
|
||||
res=_FAIL;
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ _func_enter_;
|
|||
|
||||
FillH2CCmd_88E(padapter, H2C_DM_MACID_CFG, 3, buf);
|
||||
}else{
|
||||
DBG_8192C("==>%s fw dont support RA\n",__func__);
|
||||
DBG_88E("==>%s fw dont support RA\n",__func__);
|
||||
res=_FAIL;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ void rtl8188e_Add_RateATid(PADAPTER pAdapter, u32 bitmap, u8 arg, u8 rssi_level)
|
|||
|
||||
bitmap &= 0x0fffffff;
|
||||
|
||||
DBG_871X("%s=> mac_id:%d , raid:%d , ra_bitmap=0x%x, shortGIrate=0x%02x\n",
|
||||
DBG_88E("%s=> mac_id:%d , raid:%d , ra_bitmap=0x%x, shortGIrate=0x%02x\n",
|
||||
__func__,macid ,raid ,bitmap, shortGIrate);
|
||||
|
||||
|
||||
|
@ -318,7 +318,7 @@ void rtl8188e_set_FwPwrMode_cmd(PADAPTER padapter, u8 Mode)
|
|||
u8 RLBM = 0; // 0:Min, 1:Max , 2:User define
|
||||
_func_enter_;
|
||||
|
||||
DBG_871X("%s: Mode=%d SmartPS=%d UAPSD=%d\n", __func__,
|
||||
DBG_88E("%s: Mode=%d SmartPS=%d UAPSD=%d\n", __func__,
|
||||
Mode, pwrpriv->smart_ps, padapter->registrypriv.uapsd_enable);
|
||||
|
||||
switch (Mode)
|
||||
|
@ -376,7 +376,7 @@ void rtl8188e_set_FwMediaStatus_cmd(PADAPTER padapter, u16 mstatus_rpt )
|
|||
opmode = (u8) mst_rpt;
|
||||
macid = (u8)(mst_rpt >> 8) ;
|
||||
|
||||
DBG_871X("### %s: MStatus=%x MACID=%d\n", __func__,opmode,macid);
|
||||
DBG_88E("### %s: MStatus=%x MACID=%d\n", __func__,opmode,macid);
|
||||
FillH2CCmd_88E(padapter, H2C_COM_MEDIA_STATUS_RPT, sizeof(mst_rpt), (u8 *)&mst_rpt);
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,7 @@ void ConstructBeacon(_adapter *padapter, u8 *pframe, u32 *pLength)
|
|||
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
|
||||
|
||||
//DBG_871X("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||
|
||||
|
@ -427,7 +427,7 @@ void ConstructBeacon(_adapter *padapter, u8 *pframe, u32 *pLength)
|
|||
|
||||
if ( (pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE)
|
||||
{
|
||||
//DBG_871X("ie len=%d\n", cur_network->IELength);
|
||||
//DBG_88E("ie len=%d\n", cur_network->IELength);
|
||||
pktlen += cur_network->IELength - sizeof(NDIS_802_11_FIXED_IEs);
|
||||
_rtw_memcpy(pframe, cur_network->IEs+sizeof(NDIS_802_11_FIXED_IEs), pktlen);
|
||||
|
||||
|
@ -472,13 +472,13 @@ _ConstructBeacon:
|
|||
|
||||
if ((pktlen + TXDESC_SIZE) > 512)
|
||||
{
|
||||
DBG_871X("beacon frame too large\n");
|
||||
DBG_88E("beacon frame too large\n");
|
||||
return;
|
||||
}
|
||||
|
||||
*pLength = pktlen;
|
||||
|
||||
//DBG_871X("%s bcn_sz=%d\n", __func__, pktlen);
|
||||
//DBG_88E("%s bcn_sz=%d\n", __func__, pktlen);
|
||||
|
||||
}
|
||||
|
||||
|
@ -490,7 +490,7 @@ void ConstructPSPoll(_adapter *padapter, u8 *pframe, u32 *pLength)
|
|||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
//DBG_871X("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||
|
||||
|
@ -531,7 +531,7 @@ void ConstructNullFunctionData(
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
|
||||
//DBG_871X("%s:%d\n", __func__, bForcePowerSave);
|
||||
//DBG_88E("%s:%d\n", __func__, bForcePowerSave);
|
||||
|
||||
pwlanhdr = (struct rtw_ieee80211_hdr*)pframe;
|
||||
|
||||
|
@ -596,7 +596,7 @@ void ConstructProbeRsp(_adapter *padapter, u8 *pframe, u32 *pLength, u8 *StaAddr
|
|||
WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
|
||||
|
||||
|
||||
//DBG_871X("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||
|
||||
|
@ -672,11 +672,11 @@ static void SetFwRsvdPagePkt(PADAPTER padapter, bool bDLFinished)
|
|||
RSVDPAGE_LOC RsvdPageLoc;
|
||||
|
||||
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
ReservedPagePacket = (u8*)rtw_zmalloc(1000);
|
||||
if (ReservedPagePacket == NULL) {
|
||||
DBG_871X("%s: alloc ReservedPagePacket fail!\n", __func__);
|
||||
DBG_88E("%s: alloc ReservedPagePacket fail!\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -786,7 +786,7 @@ static void SetFwRsvdPagePkt(PADAPTER padapter, bool bDLFinished)
|
|||
|
||||
rtw_hal_mgnt_xmit(padapter, pmgntframe);
|
||||
|
||||
DBG_871X("%s: Set RSVD page location to Fw\n", __func__);
|
||||
DBG_88E("%s: Set RSVD page location to Fw\n", __func__);
|
||||
FillH2CCmd_88E(padapter, H2C_COM_RSVD_PAGE, sizeof(RsvdPageLoc), (u8*)&RsvdPageLoc);
|
||||
|
||||
exit:
|
||||
|
@ -806,7 +806,7 @@ void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus)
|
|||
|
||||
_func_enter_;
|
||||
|
||||
DBG_871X("%s mstatus(%x)\n", __func__,mstatus);
|
||||
DBG_88E("%s mstatus(%x)\n", __func__,mstatus);
|
||||
|
||||
if (mstatus == 1)
|
||||
{
|
||||
|
@ -833,7 +833,7 @@ _func_enter_;
|
|||
|
||||
if (pHalData->RegFwHwTxQCtrl&BIT6)
|
||||
{
|
||||
DBG_871X("HalDownloadRSVDPage(): There is an Adapter is sending beacon.\n");
|
||||
DBG_88E("HalDownloadRSVDPage(): There is an Adapter is sending beacon.\n");
|
||||
bSendBeacon = _TRUE;
|
||||
}
|
||||
|
||||
|
@ -866,9 +866,9 @@ _func_enter_;
|
|||
{
|
||||
}
|
||||
else if (!bcn_valid)
|
||||
DBG_871X("%s: 1 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__ ,DLBcnCount, poll);
|
||||
DBG_88E("%s: 1 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__ ,DLBcnCount, poll);
|
||||
else
|
||||
DBG_871X("%s: 1 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll);
|
||||
DBG_88E("%s: 1 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll);
|
||||
//
|
||||
// We just can send the reserved page twice during the time that Tx thread is stopped (e.g. pnpsetpower)
|
||||
// becuase we need to free the Tx BCN Desc which is used by the first reserved page packet.
|
||||
|
@ -903,9 +903,9 @@ _func_enter_;
|
|||
{
|
||||
}
|
||||
else if (!bcn_valid)
|
||||
DBG_871X("%s: 2 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__ ,DLBcnCount, poll);
|
||||
DBG_88E("%s: 2 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__ ,DLBcnCount, poll);
|
||||
else
|
||||
DBG_871X("%s: 2 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll);
|
||||
DBG_88E("%s: 2 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -932,7 +932,7 @@ _func_enter_;
|
|||
if (bcn_valid)
|
||||
{
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_BCN_VALID, NULL);
|
||||
DBG_871X("Set RSVD page location to Fw.\n");
|
||||
DBG_88E("Set RSVD page location to Fw.\n");
|
||||
//FillH2CCmd88E(Adapter, H2C_88E_RSVDPAGE, H2C_RSVDPAGE_LOC_LENGTH, pMgntInfo->u1RsvdPageLoc);
|
||||
}
|
||||
|
||||
|
@ -949,9 +949,9 @@ _func_enter_;
|
|||
JoinBssRptParm.OpMode = mstatus;
|
||||
JoinBssRptParm.MacID = 0;
|
||||
FillH2CCmd_88E(padapter, H2C_COM_MEDIA_STATUS_RPT, sizeof(JoinBssRptParm), (u8 *)&JoinBssRptParm);
|
||||
DBG_871X_LEVEL(_drv_info_, "%s opmode:%d MacId:%d\n", __func__, JoinBssRptParm.OpMode, JoinBssRptParm.MacID);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s opmode:%d MacId:%d\n", __func__, JoinBssRptParm.OpMode, JoinBssRptParm.MacID);
|
||||
} else {
|
||||
DBG_871X_LEVEL(_drv_info_, "%s wowlan_mode is off\n", __func__);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s wowlan_mode is off\n", __func__);
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
_func_exit_;
|
||||
|
@ -972,11 +972,11 @@ _func_enter_;
|
|||
switch (p2p_ps_state)
|
||||
{
|
||||
case P2P_PS_DISABLE:
|
||||
DBG_8192C("P2P_PS_DISABLE\n");
|
||||
DBG_88E("P2P_PS_DISABLE\n");
|
||||
_rtw_memset(p2p_ps_offload, 0 ,1);
|
||||
break;
|
||||
case P2P_PS_ENABLE:
|
||||
DBG_8192C("P2P_PS_ENABLE\n");
|
||||
DBG_88E("P2P_PS_ENABLE\n");
|
||||
// update CTWindow value.
|
||||
if ( pwdinfo->ctwindow > 0 )
|
||||
{
|
||||
|
@ -995,16 +995,16 @@ _func_enter_;
|
|||
p2p_ps_offload->NoA1_En = 1;
|
||||
|
||||
// config P2P NoA Descriptor Register
|
||||
//DBG_8192C("%s(): noa_duration = %x\n",__func__,pwdinfo->noa_duration[i]);
|
||||
//DBG_88E("%s(): noa_duration = %x\n",__func__,pwdinfo->noa_duration[i]);
|
||||
rtw_write32(padapter, REG_NOA_DESC_DURATION, pwdinfo->noa_duration[i]);
|
||||
|
||||
//DBG_8192C("%s(): noa_interval = %x\n",__func__,pwdinfo->noa_interval[i]);
|
||||
//DBG_88E("%s(): noa_interval = %x\n",__func__,pwdinfo->noa_interval[i]);
|
||||
rtw_write32(padapter, REG_NOA_DESC_INTERVAL, pwdinfo->noa_interval[i]);
|
||||
|
||||
//DBG_8192C("%s(): start_time = %x\n",__func__,pwdinfo->noa_start_time[i]);
|
||||
//DBG_88E("%s(): start_time = %x\n",__func__,pwdinfo->noa_start_time[i]);
|
||||
rtw_write32(padapter, REG_NOA_DESC_START, pwdinfo->noa_start_time[i]);
|
||||
|
||||
//DBG_8192C("%s(): noa_count = %x\n",__func__,pwdinfo->noa_count[i]);
|
||||
//DBG_88E("%s(): noa_count = %x\n",__func__,pwdinfo->noa_count[i]);
|
||||
rtw_write8(padapter, REG_NOA_DESC_COUNT, pwdinfo->noa_count[i]);
|
||||
}
|
||||
|
||||
|
@ -1029,11 +1029,11 @@ _func_enter_;
|
|||
}
|
||||
break;
|
||||
case P2P_PS_SCAN:
|
||||
DBG_8192C("P2P_PS_SCAN\n");
|
||||
DBG_88E("P2P_PS_SCAN\n");
|
||||
p2p_ps_offload->discovery = 1;
|
||||
break;
|
||||
case P2P_PS_SCAN_DONE:
|
||||
DBG_8192C("P2P_PS_SCAN_DONE\n");
|
||||
DBG_88E("P2P_PS_SCAN_DONE\n");
|
||||
p2p_ps_offload->discovery = 0;
|
||||
pwdinfo->p2p_ps_state = P2P_PS_ENABLE;
|
||||
break;
|
||||
|
@ -1108,7 +1108,7 @@ void rtl8188es_set_wowlan_cmd(_adapter* padapter, u8 enable)
|
|||
struct pwrctrl_priv *pwrpriv=&padapter->pwrctrlpriv;
|
||||
|
||||
_func_enter_;
|
||||
DBG_871X_LEVEL(_drv_always_, "+%s+\n", __func__);
|
||||
DBG_88E_LEVEL(_drv_info_, "+%s+\n", __func__);
|
||||
|
||||
pwowlan_parm.mode =0;
|
||||
pwowlan_parm.gpio_index=0;
|
||||
|
@ -1124,21 +1124,21 @@ _func_enter_;
|
|||
|
||||
if (pwrpriv->wowlan_pattern ==_TRUE){
|
||||
pwowlan_parm.mode |= FW_WOWLAN_PATTERN_MATCH;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 2.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
DBG_88E_LEVEL(_drv_info_, "%s 2.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
}
|
||||
if (pwrpriv->wowlan_magic ==_TRUE){
|
||||
pwowlan_parm.mode |=FW_WOWLAN_MAGIC_PKT;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 3.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
DBG_88E_LEVEL(_drv_info_, "%s 3.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
}
|
||||
if (pwrpriv->wowlan_unicast ==_TRUE){
|
||||
pwowlan_parm.mode |=FW_WOWLAN_UNICAST;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 4.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
DBG_88E_LEVEL(_drv_info_, "%s 4.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode );
|
||||
}
|
||||
|
||||
if (!(padapter->pwrctrlpriv.wowlan_wake_reason & FWDecisionDisconnect))
|
||||
rtl8188e_set_FwJoinBssReport_cmd(padapter, 1);
|
||||
else
|
||||
DBG_871X_LEVEL(_drv_always_, "%s, disconnected, no FwJoinBssReport\n",__func__);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s, disconnected, no FwJoinBssReport\n",__func__);
|
||||
rtw_msleep_os(2);
|
||||
|
||||
//WOWLAN_GPIO_ACTIVE means GPIO high active
|
||||
|
@ -1155,8 +1155,8 @@ _func_enter_;
|
|||
pwowlan_parm.gpio_index=0x80;
|
||||
#endif //CONFIG_SDIO_HCI
|
||||
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 5.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode);
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 6.pwowlan_parm.index=0x%x\n",__func__,pwowlan_parm.gpio_index);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s 5.pwowlan_parm.mode=0x%x\n",__func__,pwowlan_parm.mode);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s 6.pwowlan_parm.index=0x%x\n",__func__,pwowlan_parm.gpio_index);
|
||||
res = FillH2CCmd_88E(padapter, H2C_COM_WWLAN, 2, (u8 *)&pwowlan_parm);
|
||||
|
||||
rtw_msleep_os(2);
|
||||
|
@ -1193,7 +1193,7 @@ _func_enter_;
|
|||
res = FillH2CCmd_88E(padapter, H2C_COM_REMOTE_WAKE_CTRL, 3, (u8 *)&pwowlan_parm);
|
||||
}
|
||||
_func_exit_;
|
||||
DBG_871X_LEVEL(_drv_always_, "-%s res:%d-\n", __func__, res);
|
||||
DBG_88E_LEVEL(_drv_info_, "-%s res:%d-\n", __func__, res);
|
||||
return ;
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
|
|
@ -100,7 +100,7 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
|
|||
{
|
||||
// Here we only set bPbcPressed to true
|
||||
// After trigger PBC, the variable will be set to false
|
||||
DBG_8192C("CheckPbcGPIO - PBC is pressed\n");
|
||||
DBG_88E("CheckPbcGPIO - PBC is pressed\n");
|
||||
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
|
||||
|
@ -165,7 +165,7 @@ dm_InterruptMigration(
|
|||
|
||||
//Update current settings.
|
||||
if ( bCurrentIntMt != IntMtToSet ){
|
||||
DBG_8192C("%s(): Update interrrupt migration(%d)\n",__func__,IntMtToSet);
|
||||
DBG_88E("%s(): Update interrrupt migration(%d)\n",__func__,IntMtToSet);
|
||||
if (IntMtToSet)
|
||||
{
|
||||
//
|
||||
|
@ -185,7 +185,7 @@ dm_InterruptMigration(
|
|||
}
|
||||
|
||||
/*if ( bCurrentACIntDisable != ACIntToSet ){
|
||||
DBG_8192C("%s(): Update AC interrrupt(%d)\n",__func__,ACIntToSet);
|
||||
DBG_88E("%s(): Update AC interrrupt(%d)\n",__func__,ACIntToSet);
|
||||
if (ACIntToSet) // Disable four ACs interrupts.
|
||||
{
|
||||
//
|
||||
|
@ -559,7 +559,7 @@ void AntDivCompare8188E(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
if (0 != pHalData->AntDivCfg )
|
||||
{
|
||||
//DBG_8192C("update_network=> orgRSSI(%d)(%d),newRSSI(%d)(%d)\n",dst->Rssi,query_rx_pwr_percentage(dst->Rssi),
|
||||
//DBG_88E("update_network=> orgRSSI(%d)(%d),newRSSI(%d)(%d)\n",dst->Rssi,query_rx_pwr_percentage(dst->Rssi),
|
||||
// src->Rssi,query_rx_pwr_percentage(src->Rssi));
|
||||
//select optimum_antenna for before linked =>For antenna diversity
|
||||
if (dst->Rssi >= src->Rssi )//keep org parameter
|
||||
|
@ -582,7 +582,7 @@ u8 AntDivBeforeLink8188E(PADAPTER Adapter )
|
|||
// Condition that does not need to use antenna diversity.
|
||||
if (pHalData->AntDivCfg==0)
|
||||
{
|
||||
//DBG_8192C("odm_AntDivBeforeLink8192C(): No AntDiv Mechanism.\n");
|
||||
//DBG_88E("odm_AntDivBeforeLink8192C(): No AntDiv Mechanism.\n");
|
||||
return _FALSE;
|
||||
}
|
||||
|
||||
|
@ -599,7 +599,7 @@ u8 AntDivBeforeLink8188E(PADAPTER Adapter )
|
|||
|
||||
//PHY_SetBBReg(Adapter, rFPGA0_XA_RFInterfaceOE, 0x300, pDM_SWAT_Table->CurAntenna);
|
||||
rtw_antenna_select_cmd(Adapter, pDM_SWAT_Table->CurAntenna, _FALSE);
|
||||
//DBG_8192C("%s change antenna to ANT_( %s ).....\n",__func__, (pDM_SWAT_Table->CurAntenna==Antenna_A)?"A":"B");
|
||||
//DBG_88E("%s change antenna to ANT_( %s ).....\n",__func__, (pDM_SWAT_Table->CurAntenna==Antenna_A)?"A":"B");
|
||||
return _TRUE;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -539,14 +539,14 @@ phy_RFSerialRead(
|
|||
if (RfPiEnable)
|
||||
{ // Read from BBreg8b8, 12 bits for 8190, 20bits for T65 RF
|
||||
retValue = PHY_QueryBBReg(Adapter, pPhyReg->rfLSSIReadBackPi, bLSSIReadBackData);
|
||||
//DBG_8192C("Readback from RF-PI : 0x%x\n", retValue);
|
||||
//DBG_88E("Readback from RF-PI : 0x%x\n", retValue);
|
||||
}
|
||||
else
|
||||
{ //Read from BBreg8a0, 12 bits for 8190, 20 bits for T65 RF
|
||||
retValue = PHY_QueryBBReg(Adapter, pPhyReg->rfLSSIReadBack, bLSSIReadBackData);
|
||||
//DBG_8192C("Readback from RF-SI : 0x%x\n", retValue);
|
||||
//DBG_88E("Readback from RF-SI : 0x%x\n", retValue);
|
||||
}
|
||||
//DBG_8192C("RFR-%d Addr[0x%x]=0x%x\n", eRFPath, pPhyReg->rfLSSIReadBack, retValue);
|
||||
//DBG_88E("RFR-%d Addr[0x%x]=0x%x\n", eRFPath, pPhyReg->rfLSSIReadBack, retValue);
|
||||
|
||||
return retValue;
|
||||
|
||||
|
@ -1517,7 +1517,7 @@ phy_BB8188E_Config_ParaFile(
|
|||
//if (pHalData->rf_type == RF_1T2R)
|
||||
//{
|
||||
//phy_BB8192C_Config_1T(Adapter);
|
||||
//DBG_8192C("phy_BB8188E_Config_ParaFile():Config to 1T!!\n");
|
||||
//DBG_88E("phy_BB8188E_Config_ParaFile():Config to 1T!!\n");
|
||||
//}
|
||||
|
||||
//
|
||||
|
@ -2611,7 +2611,7 @@ static void _PHY_SwChnl8192C(PADAPTER Adapter, u8 channel)
|
|||
|
||||
if ( Adapter->bNotifyChannelChange )
|
||||
{
|
||||
DBG_871X( "[%s] ch = %d\n", __func__, channel );
|
||||
DBG_88E( "[%s] ch = %d\n", __func__, channel );
|
||||
}
|
||||
|
||||
//s1. pre common command - CmdID_SetTxPowerLevel
|
||||
|
|
|
@ -304,7 +304,7 @@ void getPowerBase88E(
|
|||
|
||||
powerBase0 = (powerBase0<<24) | (powerBase0<<16) |(powerBase0<<8) |powerBase0;
|
||||
*(OfdmBase+i) = powerBase0;
|
||||
//DBG_871X(" [OFDM power base index rf(%c) = 0x%x]\n", ((i==0)?'A':'B'), *(OfdmBase+i));
|
||||
//DBG_88E(" [OFDM power base index rf(%c) = 0x%x]\n", ((i==0)?'A':'B'), *(OfdmBase+i));
|
||||
}
|
||||
|
||||
for (i=0; i<pHalData->NumTotalRFPath; i++)
|
||||
|
@ -321,7 +321,7 @@ void getPowerBase88E(
|
|||
powerBase1 = powerlevel[i];
|
||||
powerBase1 = (powerBase1<<24) | (powerBase1<<16) |(powerBase1<<8) |powerBase1;
|
||||
*(MCSBase+i) = powerBase1;
|
||||
//DBG_871X(" [MCS power base index rf(%c) = 0x%x]\n", ((i==0)?'A':'B'), *(MCSBase+i));
|
||||
//DBG_88E(" [MCS power base index rf(%c) = 0x%x]\n", ((i==0)?'A':'B'), *(MCSBase+i));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -592,7 +592,7 @@ rtl8188e_PHY_RF6052SetOFDMTxPower(
|
|||
u8 index = 0;
|
||||
|
||||
|
||||
//DBG_871X("PHY_RF6052SetOFDMTxPower, channel(%d)\n", Channel);
|
||||
//DBG_88E("PHY_RF6052SetOFDMTxPower, channel(%d)\n", Channel);
|
||||
|
||||
getPowerBase88E(Adapter, pPowerLevelOFDM,pPowerLevelBW20,pPowerLevelBW40, Channel, &powerBase0[0], &powerBase1[0]);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ static void process_rssi(_adapter *padapter,union recv_frame *prframe)
|
|||
struct signal_stat * signal_stat = &padapter->recvpriv.signal_strength_data;
|
||||
#endif //CONFIG_NEW_SIGNAL_STAT_PROCESS
|
||||
|
||||
//DBG_8192C("process_rssi=> pattrib->rssil(%d) signal_strength(%d)\n ",pattrib->RecvSignalPower,pattrib->signal_strength);
|
||||
//DBG_88E("process_rssi=> pattrib->rssil(%d) signal_strength(%d)\n ",pattrib->RecvSignalPower,pattrib->signal_strength);
|
||||
//if (pRfd->Status.bPacketToSelf || pRfd->Status.bPacketBeacon)
|
||||
{
|
||||
|
||||
|
@ -110,7 +110,7 @@ static void process_link_qual(_adapter *padapter,union recv_frame *prframe)
|
|||
signal_stat = &padapter->recvpriv.signal_qual_data;
|
||||
#endif //CONFIG_NEW_SIGNAL_STAT_PROCESS
|
||||
|
||||
//DBG_8192C("process_link_qual=> pattrib->signal_qual(%d)\n ",pattrib->signal_qual);
|
||||
//DBG_88E("process_link_qual=> pattrib->signal_qual(%d)\n ",pattrib->signal_qual);
|
||||
|
||||
#ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
|
||||
if (signal_stat->update_req) {
|
||||
|
@ -308,7 +308,7 @@ void update_recvframe_phyinfo_88e(
|
|||
if (psta)
|
||||
{
|
||||
pkt_info.StationID = psta->mac_id;
|
||||
//DBG_8192C("%s ==> StationID(%d)\n",__func__,pkt_info.StationID);
|
||||
//DBG_88E("%s ==> StationID(%d)\n",__func__,pkt_info.StationID);
|
||||
}
|
||||
pkt_info.Rate = pattrib->mcs_rate;
|
||||
//rtl8188e_query_rx_phy_status(precvframe, pphy_status);
|
||||
|
|
|
@ -142,7 +142,7 @@ void rtl8188e_silentreset_for_specific_platform(_adapter *padapter)
|
|||
|
||||
#ifdef DBG_CONFIG_ERROR_RESET
|
||||
|
||||
DBG_871X("%s\n", __func__);
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
||||
|
||||
|
@ -189,13 +189,13 @@ void rtl8188e_sreset_xmit_status_check(_adapter *padapter)
|
|||
u32 txdma_status;
|
||||
|
||||
if ( (txdma_status=rtw_read32(padapter, REG_TXDMA_STATUS)) !=0x00){
|
||||
DBG_871X("%s REG_TXDMA_STATUS:0x%08x\n", __func__, txdma_status);
|
||||
DBG_88E("%s REG_TXDMA_STATUS:0x%08x\n", __func__, txdma_status);
|
||||
rtw_write32(padapter,REG_TXDMA_STATUS,txdma_status);
|
||||
rtl8188e_silentreset_for_specific_platform(padapter);
|
||||
}
|
||||
#ifdef CONFIG_USB_HCI
|
||||
//total xmit irp = 4
|
||||
//DBG_8192C("==>%s free_xmitbuf_cnt(%d),txirp_cnt(%d)\n",__func__,pxmitpriv->free_xmitbuf_cnt,pxmitpriv->txirp_cnt);
|
||||
//DBG_88E("==>%s free_xmitbuf_cnt(%d),txirp_cnt(%d)\n",__func__,pxmitpriv->free_xmitbuf_cnt,pxmitpriv->txirp_cnt);
|
||||
//if (pxmitpriv->txirp_cnt == NR_XMITBUFF+1)
|
||||
current_time = rtw_get_current_time();
|
||||
if (0==pxmitpriv->free_xmitbuf_cnt)
|
||||
|
@ -210,7 +210,7 @@ void rtl8188e_sreset_xmit_status_check(_adapter *padapter)
|
|||
diff_time = jiffies_to_msecs(current_time - psrtpriv->last_tx_complete_time);
|
||||
if (diff_time > 4000){
|
||||
//padapter->Wifi_Error_Status = WIFI_TX_HANG;
|
||||
DBG_8192C("%s tx hang\n", __func__);
|
||||
DBG_88E("%s tx hang\n", __func__);
|
||||
rtl8188e_silentreset_for_specific_platform(padapter);
|
||||
}
|
||||
}
|
||||
|
@ -225,16 +225,16 @@ void rtl8188e_sreset_linked_status_check(_adapter *padapter)
|
|||
u8 fw_status=0;
|
||||
rx_dma_status = rtw_read32(padapter,REG_RXDMA_STATUS);
|
||||
if (rx_dma_status!= 0x00){
|
||||
DBG_8192C("%s REG_RXDMA_STATUS:0x%08x\n",__func__,rx_dma_status);
|
||||
DBG_88E("%s REG_RXDMA_STATUS:0x%08x\n",__func__,rx_dma_status);
|
||||
rtw_write32(padapter,REG_RXDMA_STATUS,rx_dma_status);
|
||||
}
|
||||
fw_status = rtw_read8(padapter,REG_FMETHR);
|
||||
if (fw_status != 0x00)
|
||||
{
|
||||
if (fw_status == 1)
|
||||
DBG_8192C("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !! \n",__func__,fw_status);
|
||||
DBG_88E("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !! \n",__func__,fw_status);
|
||||
else if (fw_status == 2)
|
||||
DBG_8192C("%s REG_FW_STATUS (0x%02x), Condition_No_Match !! \n",__func__,fw_status);
|
||||
DBG_88E("%s REG_FW_STATUS (0x%02x), Condition_No_Match !! \n",__func__,fw_status);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -29,7 +29,7 @@ void dump_txrpt_ccx_88e(void *buf)
|
|||
{
|
||||
struct txrpt_ccx_88e *txrpt_ccx = (struct txrpt_ccx_88e *)buf;
|
||||
|
||||
DBG_871X("%s:\n"
|
||||
DBG_88E("%s:\n"
|
||||
"tag1:%u, pkt_num:%u, txdma_underflow:%u, int_bt:%u, int_tri:%u, int_ccx:%u\n"
|
||||
"mac_id:%u, pkt_ok:%u, bmc:%u\n"
|
||||
"retry_cnt:%u, lifetime_over:%u, retry_over:%u\n"
|
||||
|
@ -70,13 +70,13 @@ void _dbg_dump_tx_info(_adapter *padapter,int frame_tag,struct tx_desc *ptxdesc)
|
|||
rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DUMP_TXPKT, &(bDumpTxPkt));
|
||||
|
||||
if (bDumpTxPkt ==1){//dump txdesc for data frame
|
||||
DBG_871X("dump tx_desc for data frame\n");
|
||||
DBG_88E("dump tx_desc for data frame\n");
|
||||
if ((frame_tag&0x0f) == DATA_FRAMETAG){
|
||||
bDumpTxDesc = _TRUE;
|
||||
}
|
||||
}
|
||||
else if (bDumpTxPkt ==2){//dump txdesc for mgnt frame
|
||||
DBG_871X("dump tx_desc for mgnt frame\n");
|
||||
DBG_88E("dump tx_desc for mgnt frame\n");
|
||||
if ((frame_tag&0x0f) == MGNT_FRAMETAG){
|
||||
bDumpTxDesc = _TRUE;
|
||||
}
|
||||
|
@ -87,16 +87,16 @@ void _dbg_dump_tx_info(_adapter *padapter,int frame_tag,struct tx_desc *ptxdesc)
|
|||
if (bDumpTxDesc){
|
||||
// ptxdesc->txdw4 = cpu_to_le32(0x00001006);//RTS Rate=24M
|
||||
// ptxdesc->txdw6 = 0x6666f800;
|
||||
DBG_8192C("=====================================\n");
|
||||
DBG_8192C("txdw0(0x%08x)\n",ptxdesc->txdw0);
|
||||
DBG_8192C("txdw1(0x%08x)\n",ptxdesc->txdw1);
|
||||
DBG_8192C("txdw2(0x%08x)\n",ptxdesc->txdw2);
|
||||
DBG_8192C("txdw3(0x%08x)\n",ptxdesc->txdw3);
|
||||
DBG_8192C("txdw4(0x%08x)\n",ptxdesc->txdw4);
|
||||
DBG_8192C("txdw5(0x%08x)\n",ptxdesc->txdw5);
|
||||
DBG_8192C("txdw6(0x%08x)\n",ptxdesc->txdw6);
|
||||
DBG_8192C("txdw7(0x%08x)\n",ptxdesc->txdw7);
|
||||
DBG_8192C("=====================================\n");
|
||||
DBG_88E("=====================================\n");
|
||||
DBG_88E("txdw0(0x%08x)\n",ptxdesc->txdw0);
|
||||
DBG_88E("txdw1(0x%08x)\n",ptxdesc->txdw1);
|
||||
DBG_88E("txdw2(0x%08x)\n",ptxdesc->txdw2);
|
||||
DBG_88E("txdw3(0x%08x)\n",ptxdesc->txdw3);
|
||||
DBG_88E("txdw4(0x%08x)\n",ptxdesc->txdw4);
|
||||
DBG_88E("txdw5(0x%08x)\n",ptxdesc->txdw5);
|
||||
DBG_88E("txdw6(0x%08x)\n",ptxdesc->txdw6);
|
||||
DBG_88E("txdw7(0x%08x)\n",ptxdesc->txdw7);
|
||||
DBG_88E("=====================================\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -145,9 +145,9 @@ InsertEMContent_8188E(
|
|||
#ifdef DBG_EMINFO
|
||||
{
|
||||
int i;
|
||||
DBG_8192C("\n%s ==> pEMInfo->EMPktNum =%d\n",__func__,pEMInfo->EMPktNum);
|
||||
DBG_88E("\n%s ==> pEMInfo->EMPktNum =%d\n",__func__,pEMInfo->EMPktNum);
|
||||
for (i=0;i< EARLY_MODE_MAX_PKT_NUM;i++){
|
||||
DBG_8192C("%s ==> pEMInfo->EMPktLen[%d] =%d\n",__func__,i,pEMInfo->EMPktLen[i]);
|
||||
DBG_88E("%s ==> pEMInfo->EMPktLen[%d] =%d\n",__func__,i,pEMInfo->EMPktLen[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -227,12 +227,12 @@ void UpdateEarlyModeInfo8188E(struct xmit_priv *pxmitpriv,struct xmit_buf *pxmit
|
|||
pmem= pframe->buf_addr;
|
||||
|
||||
#ifdef DBG_EMINFO
|
||||
DBG_8192C("\n%s ==> agg_num:%d\n",__func__, pframe->agg_num);
|
||||
DBG_88E("\n%s ==> agg_num:%d\n",__func__, pframe->agg_num);
|
||||
for (index=0;index<pframe->agg_num;index++){
|
||||
offset = pxmitpriv->agg_pkt[index].offset;
|
||||
pktlen = pxmitpriv->agg_pkt[index].pkt_len;
|
||||
DBG_8192C("%s ==> agg_pkt[%d].offset=%d\n",__func__,index,offset);
|
||||
DBG_8192C("%s ==> agg_pkt[%d].pkt_len=%d\n",__func__,index,pktlen);
|
||||
DBG_88E("%s ==> agg_pkt[%d].offset=%d\n",__func__,index,offset);
|
||||
DBG_88E("%s ==> agg_pkt[%d].pkt_len=%d\n",__func__,index,pktlen);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -277,7 +277,7 @@ void UpdateEarlyModeInfo8188E(struct xmit_priv *pxmitpriv,struct xmit_buf *pxmit
|
|||
}
|
||||
|
||||
#ifdef DBG_EMINFO
|
||||
DBG_8192C("%s ==> desc.pkt_len=%d\n",__func__,ptxdesc->pktlen);
|
||||
DBG_88E("%s ==> desc.pkt_len=%d\n",__func__,ptxdesc->pktlen);
|
||||
#endif
|
||||
InsertEMContent_8188E(&eminfo,pEMInfo_mem);
|
||||
}
|
||||
|
|
|
@ -80,14 +80,14 @@ int rtl8188eu_init_recv_priv(_adapter *padapter)
|
|||
precvpriv->int_in_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (precvpriv->int_in_urb == NULL){
|
||||
res= _FAIL;
|
||||
DBG_8192C("alloc_urb for interrupt in endpoint fail !!!!\n");
|
||||
DBG_88E("alloc_urb for interrupt in endpoint fail !!!!\n");
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
precvpriv->int_in_buf = rtw_zmalloc(INTERRUPT_MSG_FORMAT_LEN);
|
||||
if (precvpriv->int_in_buf == NULL){
|
||||
res= _FAIL;
|
||||
DBG_8192C("alloc_mem for interrupt in endpoint fail !!!!\n");
|
||||
DBG_88E("alloc_mem for interrupt in endpoint fail !!!!\n");
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
@ -217,7 +217,7 @@ void rtl8188eu_free_recv_priv (_adapter *padapter)
|
|||
#ifdef PLATFORM_LINUX
|
||||
|
||||
if (skb_queue_len(&precvpriv->rx_skb_queue)) {
|
||||
DBG_8192C(KERN_WARNING "rx_skb_queue not empty\n");
|
||||
DBG_88E(KERN_WARNING "rx_skb_queue not empty\n");
|
||||
}
|
||||
|
||||
skb_queue_purge(&precvpriv->rx_skb_queue);
|
||||
|
@ -225,7 +225,7 @@ void rtl8188eu_free_recv_priv (_adapter *padapter)
|
|||
#ifdef CONFIG_PREALLOC_RECV_SKB
|
||||
|
||||
if (skb_queue_len(&precvpriv->free_recv_skb_queue)) {
|
||||
DBG_8192C(KERN_WARNING "free_recv_skb_queue not empty, %d\n", skb_queue_len(&precvpriv->free_recv_skb_queue));
|
||||
DBG_88E(KERN_WARNING "free_recv_skb_queue not empty, %d\n", skb_queue_len(&precvpriv->free_recv_skb_queue));
|
||||
}
|
||||
|
||||
skb_queue_purge(&precvpriv->free_recv_skb_queue);
|
||||
|
|
|
@ -194,7 +194,7 @@ void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc)
|
|||
|
||||
void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw)
|
||||
{
|
||||
//DBG_8192C("cvs_mode=%d\n", pattrib->vcs_mode);
|
||||
//DBG_88E("cvs_mode=%d\n", pattrib->vcs_mode);
|
||||
|
||||
switch (pattrib->vcs_mode)
|
||||
{
|
||||
|
@ -231,7 +231,7 @@ void fill_txdesc_vcs(struct pkt_attrib *pattrib, u32 *pdw)
|
|||
|
||||
void fill_txdesc_phy(struct pkt_attrib *pattrib, u32 *pdw)
|
||||
{
|
||||
//DBG_8192C("bwmode=%d, ch_off=%d\n", pattrib->bwmode, pattrib->ch_offset);
|
||||
//DBG_88E("bwmode=%d, ch_off=%d\n", pattrib->bwmode, pattrib->ch_offset);
|
||||
|
||||
if (pattrib->ht_en)
|
||||
{
|
||||
|
@ -280,7 +280,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
//if ((!bagg_pkt) &&(rtw_usb_bulk_size_boundary(padapter,TXDESC_SIZE+sz)==_FALSE))
|
||||
{
|
||||
ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ);
|
||||
//DBG_8192C("==> non-agg-pkt,shift pointer...\n");
|
||||
//DBG_88E("==> non-agg-pkt,shift pointer...\n");
|
||||
pull = 1;
|
||||
}
|
||||
}
|
||||
|
@ -290,7 +290,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
|
||||
//4 offset 0
|
||||
ptxdesc->txdw0 |= cpu_to_le32(OWN | FSG | LSG);
|
||||
//DBG_8192C("%s==> pkt_len=%d,bagg_pkt=%02x\n",__func__,sz,bagg_pkt);
|
||||
//DBG_88E("%s==> pkt_len=%d,bagg_pkt=%02x\n",__func__,sz,bagg_pkt);
|
||||
ptxdesc->txdw0 |= cpu_to_le32(sz & 0x0000ffff);//update TXPKTSIZE
|
||||
|
||||
offset = TXDESC_SIZE + OFFSET_SZ;
|
||||
|
@ -300,7 +300,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
offset += EARLY_MODE_INFO_SIZE ;//0x28
|
||||
}
|
||||
#endif
|
||||
//DBG_8192C("%s==>offset(0x%02x)\n",__func__,offset);
|
||||
//DBG_88E("%s==>offset(0x%02x)\n",__func__,offset);
|
||||
ptxdesc->txdw0 |= cpu_to_le32(((offset) << OFFSET_SHT) & 0x00ff0000);//32 bytes for TX Desc
|
||||
|
||||
if (bmcst) ptxdesc->txdw0 |= cpu_to_le32(BMC);
|
||||
|
@ -315,7 +315,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
//DBG_8192C("%s, pkt_offset=0x%02x\n",__func__,pxmitframe->pkt_offset);
|
||||
//DBG_88E("%s, pkt_offset=0x%02x\n",__func__,pxmitframe->pkt_offset);
|
||||
|
||||
// pkt_offset, unit:8 bytes padding
|
||||
if (pxmitframe->pkt_offset > 0)
|
||||
|
@ -326,13 +326,13 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
|
||||
if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG)
|
||||
{
|
||||
//DBG_8192C("pxmitframe->frame_tag == DATA_FRAMETAG\n");
|
||||
//DBG_88E("pxmitframe->frame_tag == DATA_FRAMETAG\n");
|
||||
|
||||
//offset 4
|
||||
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x3F);
|
||||
|
||||
qsel = (uint)(pattrib->qsel & 0x0000001f);
|
||||
//DBG_8192C("==> macid(%d) qsel:0x%02x\n",pattrib->mac_id,qsel);
|
||||
//DBG_88E("==> macid(%d) qsel:0x%02x\n",pattrib->mac_id,qsel);
|
||||
ptxdesc->txdw1 |= cpu_to_le32((qsel << QSEL_SHT) & 0x00001f00);
|
||||
|
||||
ptxdesc->txdw1 |= cpu_to_le32((pattrib->raid<< RATE_ID_SHT) & 0x000F0000);
|
||||
|
@ -367,7 +367,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
//offset 20
|
||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||
if (pxmitframe->agg_num > 1){
|
||||
//DBG_8192C("%s agg_num:%d\n",__func__,pxmitframe->agg_num );
|
||||
//DBG_88E("%s agg_num:%d\n",__func__,pxmitframe->agg_num );
|
||||
ptxdesc->txdw5 |= cpu_to_le32((pxmitframe->agg_num << USB_TXAGG_NUM_SHT) & 0xFF000000);
|
||||
}
|
||||
#endif
|
||||
|
@ -432,13 +432,13 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
// ptxdesc->txdw6 = 0; // clear TCP_CHECKSUM and IP_CHECKSUM. It's zero already!!
|
||||
u8 ip_hdr_offset = 32 + pattrib->hdrlen + pattrib->iv_len + 8;
|
||||
ptxdesc->txdw7 = (1 << 31) | (ip_hdr_offset << 16);
|
||||
DBG_8192C("ptxdesc->txdw7 = %08x\n", ptxdesc->txdw7);
|
||||
DBG_88E("ptxdesc->txdw7 = %08x\n", ptxdesc->txdw7);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else if ((pxmitframe->frame_tag&0x0f)== MGNT_FRAMETAG)
|
||||
{
|
||||
//DBG_8192C("pxmitframe->frame_tag == MGNT_FRAMETAG\n");
|
||||
//DBG_88E("pxmitframe->frame_tag == MGNT_FRAMETAG\n");
|
||||
|
||||
//offset 4
|
||||
ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id&0x3f);
|
||||
|
@ -457,7 +457,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
#ifdef DBG_CCX
|
||||
static u16 ccx_sw = 0x123;
|
||||
ptxdesc->txdw7 |= cpu_to_le32(((ccx_sw)<<16)&0x0fff0000);
|
||||
DBG_871X("%s set ccx, sw:0x%03x\n", __func__, ccx_sw);
|
||||
DBG_88E("%s set ccx, sw:0x%03x\n", __func__, ccx_sw);
|
||||
ccx_sw = (ccx_sw+1)%0xfff;
|
||||
#endif
|
||||
ptxdesc->txdw2 |= cpu_to_le32(BIT(19));
|
||||
|
@ -476,7 +476,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if ((padapter->proximity.proxim_on==_TRUE)&&(pattrib->intel_proxim==_TRUE)){
|
||||
DBG_871X("\n %s pattrib->rate=%d\n",__func__,pattrib->rate);
|
||||
DBG_88E("\n %s pattrib->rate=%d\n",__func__,pattrib->rate);
|
||||
ptxdesc->txdw5 |= cpu_to_le32( pattrib->rate);
|
||||
}
|
||||
else
|
||||
|
@ -487,7 +487,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
}
|
||||
else if ((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG)
|
||||
{
|
||||
DBG_8192C("pxmitframe->frame_tag == TXAGG_FRAMETAG\n");
|
||||
DBG_88E("pxmitframe->frame_tag == TXAGG_FRAMETAG\n");
|
||||
}
|
||||
#ifdef CONFIG_MP_INCLUDED
|
||||
else if (((pxmitframe->frame_tag&0x0f) == MP_FRAMETAG) &&
|
||||
|
@ -498,7 +498,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
#endif
|
||||
else
|
||||
{
|
||||
DBG_8192C("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag);
|
||||
DBG_88E("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag);
|
||||
|
||||
//offset 4
|
||||
ptxdesc->txdw1 |= cpu_to_le32((4)&0x3f);//CAM_ID(MAC_ID)
|
||||
|
@ -683,7 +683,7 @@ static s32 rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
rtw_count_tx_stats(padapter, pxmitframe, sz);
|
||||
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_write_port, w_sz=%d\n", w_sz));
|
||||
//DBG_8192C("rtw_write_port, w_sz=%d, sz=%d, txdesc_sz=%d, tid=%d\n", w_sz, sz, w_sz-sz, pattrib->priority);
|
||||
//DBG_88E("rtw_write_port, w_sz=%d, sz=%d, txdesc_sz=%d, tid=%d\n", w_sz, sz, w_sz-sz, pattrib->priority);
|
||||
|
||||
mem_addr += w_sz;
|
||||
|
||||
|
@ -755,12 +755,12 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
if (pxmitbuf == NULL) {
|
||||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if (pxmitbuf == NULL){
|
||||
//DBG_871X("%s #1, connot alloc xmitbuf!!!!\n",__func__);
|
||||
//DBG_88E("%s #1, connot alloc xmitbuf!!!!\n",__func__);
|
||||
return _FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
//DBG_8192C("%s =====================================\n",__func__);
|
||||
//DBG_88E("%s =====================================\n",__func__);
|
||||
//3 1. pick up first frame
|
||||
do {
|
||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
|
@ -768,7 +768,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
pxmitframe = rtw_dequeue_xframe(pxmitpriv, pxmitpriv->hwxmits, pxmitpriv->hwxmit_entry);
|
||||
if (pxmitframe == NULL) {
|
||||
// no more xmit frame, release xmit buffer
|
||||
//DBG_8192C("no more xmit frame ,return\n");
|
||||
//DBG_88E("no more xmit frame ,return\n");
|
||||
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
|
||||
return _FALSE;
|
||||
}
|
||||
|
@ -792,7 +792,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
continue;
|
||||
}
|
||||
#endif
|
||||
//DBG_8192C("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
//DBG_88E("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
pxmitframe->pxmitbuf = pxmitbuf;
|
||||
pxmitframe->buf_addr = pxmitbuf->pbuf;
|
||||
pxmitbuf->priv_data = pxmitframe;
|
||||
|
@ -864,7 +864,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
phwxmit = pxmitpriv->hwxmits + 2;
|
||||
break;
|
||||
}
|
||||
//DBG_8192C("==> pkt_no=%d,pkt_len=%d,len=%d,RND8_LEN=%d,pkt_offset=0x%02x\n",
|
||||
//DBG_88E("==> pkt_no=%d,pkt_len=%d,len=%d,RND8_LEN=%d,pkt_offset=0x%02x\n",
|
||||
//pxmitframe->agg_num,pxmitframe->attrib.last_txcmdsz,len,pbuf,pxmitframe->pkt_offset );
|
||||
|
||||
|
||||
|
@ -890,7 +890,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
if (_RND8(pbuf + len) > MAX_XMITBUF_SZ)
|
||||
//if (_RND8(pbuf + len) > (MAX_XMITBUF_SZ/2))//to do : for TX TP finial tune , Georgia 2012-0323
|
||||
{
|
||||
//DBG_8192C("%s....len> MAX_XMITBUF_SZ\n",__func__);
|
||||
//DBG_88E("%s....len> MAX_XMITBUF_SZ\n",__func__);
|
||||
pxmitframe->agg_num = 1;
|
||||
pxmitframe->pkt_offset = 1;
|
||||
break;
|
||||
|
@ -928,12 +928,12 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
#else
|
||||
res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
|
||||
if (res == _FALSE) {
|
||||
DBG_871X("%s coalesce failed\n",__func__);
|
||||
DBG_88E("%s coalesce failed\n",__func__);
|
||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
//DBG_8192C("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
//DBG_88E("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
// always return ndis_packet after rtw_xmitframe_coalesce
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
|
||||
|
@ -987,7 +987,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
pbuf_tail -= PACKET_OFFSET_SZ;
|
||||
pfirstframe->buf_addr += PACKET_OFFSET_SZ;
|
||||
pfirstframe->pkt_offset--;
|
||||
//DBG_8192C("$$$$$ buf size equal to USB block size $$$$$$\n");
|
||||
//DBG_88E("$$$$$ buf size equal to USB block size $$$$$$\n");
|
||||
}
|
||||
#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
|
||||
|
||||
|
@ -1003,7 +1003,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
|
||||
//3 4. write xmit buffer to USB FIFO
|
||||
ff_hwaddr = rtw_get_ff_hwaddr(pfirstframe);
|
||||
//DBG_8192C("%s ===================================== write port,buf_size(%d)\n",__func__,pbuf_tail);
|
||||
//DBG_88E("%s ===================================== write port,buf_size(%d)\n",__func__,pbuf_tail);
|
||||
// xmit address == ((xmit_frame*)pxmitbuf->priv_data)->buf_addr
|
||||
rtw_write_port(padapter, ff_hwaddr, pbuf_tail, (u8*)pxmitbuf);
|
||||
|
||||
|
@ -1063,7 +1063,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
{
|
||||
res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
|
||||
}
|
||||
//DBG_8192C("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
//DBG_88E("==> pxmitframe->attrib.priority:%d\n",pxmitframe->attrib.priority);
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);//always return ndis_packet after rtw_xmitframe_coalesce
|
||||
}
|
||||
|
||||
|
@ -1104,14 +1104,14 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
static s32 xmitframe_direct(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
s32 res = _SUCCESS;
|
||||
//DBG_8192C("==> %s\n",__func__);
|
||||
//DBG_88E("==> %s\n",__func__);
|
||||
|
||||
res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe);
|
||||
if (res == _SUCCESS) {
|
||||
rtw_dump_xframe(padapter, pxmitframe);
|
||||
}
|
||||
else{
|
||||
DBG_8192C("==> %s xmitframe_coalsece failed\n",__func__);
|
||||
DBG_88E("==> %s xmitframe_coalsece failed\n",__func__);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -1137,11 +1137,11 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
|
||||
_enter_critical_bh(&pxmitpriv->lock, &irqL);
|
||||
|
||||
//DBG_8192C("==> %s\n",__func__);
|
||||
//DBG_88E("==> %s\n",__func__);
|
||||
|
||||
if (rtw_txframes_sta_ac_pending(padapter, pattrib) > 0)
|
||||
{
|
||||
//DBG_8192C("enqueue AC(%d)\n",pattrib->priority);
|
||||
//DBG_88E("enqueue AC(%d)\n",pattrib->priority);
|
||||
goto enqueue;
|
||||
}
|
||||
|
||||
|
@ -1210,7 +1210,7 @@ static void rtl8188eu_hostap_mgnt_xmit_cb(struct urb *urb)
|
|||
#ifdef PLATFORM_LINUX
|
||||
struct sk_buff *skb = (struct sk_buff *)urb->context;
|
||||
|
||||
//DBG_8192C("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
dev_kfree_skb_any(skb);
|
||||
#endif
|
||||
|
@ -1233,7 +1233,7 @@ s32 rtl8188eu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
|
|||
struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
|
||||
|
||||
|
||||
//DBG_8192C("%s\n", __func__);
|
||||
//DBG_88E("%s\n", __func__);
|
||||
|
||||
skb = pkt;
|
||||
|
||||
|
@ -1306,7 +1306,7 @@ s32 rtl8188eu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
|
|||
pxmitbuf = pxmitbuf + TXDESC_SIZE;
|
||||
_rtw_memcpy(pxmitbuf, skb->data, len);
|
||||
|
||||
//DBG_8192C("mgnt_xmit, len=%x\n", pxmit_skb->len);
|
||||
//DBG_88E("mgnt_xmit, len=%x\n", pxmit_skb->len);
|
||||
|
||||
|
||||
// ----- prepare urb for submit -----
|
||||
|
|
|
@ -88,7 +88,7 @@ _ConfigNormalChipOutEP_8188E(
|
|||
break;
|
||||
|
||||
}
|
||||
DBG_871X("%s OutEpQueueSel(0x%02x), OutEpNumber(%d)\n",__func__,pHalData->OutEpQueueSel,pHalData->OutEpNumber );
|
||||
DBG_88E("%s OutEpQueueSel(0x%02x), OutEpNumber(%d)\n",__func__,pHalData->OutEpQueueSel,pHalData->OutEpNumber );
|
||||
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ static u32 rtl8188eu_InitPowerOn(_adapter *padapter)
|
|||
|
||||
if (!HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8188E_NIC_PWR_ON_FLOW))
|
||||
{
|
||||
DBG_871X(KERN_ERR "%s: run power on flow fail\n", __func__);
|
||||
DBG_88E(KERN_ERR "%s: run power on flow fail\n", __func__);
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,7 @@ static void _dbg_dump_macreg(_adapter *padapter)
|
|||
{
|
||||
offset = index*4;
|
||||
val32 = rtw_read32(padapter,offset);
|
||||
DBG_8192C("offset : 0x%02x ,val:0x%08x\n",offset,val32);
|
||||
DBG_88E("offset : 0x%02x ,val:0x%08x\n",offset,val32);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -256,7 +256,7 @@ static void _InitBTCoexist(_adapter *padapter)
|
|||
if (pbtpriv->BT_Ant_isolation)
|
||||
{
|
||||
rtw_write8( padapter,REG_GPIO_MUXCFG, 0xa0);
|
||||
DBG_8192C("BT write 0x%x = 0x%x\n", REG_GPIO_MUXCFG, 0xa0);
|
||||
DBG_88E("BT write 0x%x = 0x%x\n", REG_GPIO_MUXCFG, 0xa0);
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
@ -266,28 +266,28 @@ static void _InitBTCoexist(_adapter *padapter)
|
|||
((pbtpriv->BT_Ant_isolation==1)?0:BIT1) |
|
||||
((pbtpriv->BT_Service==BT_SCO)?0:BIT2);
|
||||
rtw_write8( padapter, 0x4fd, u1Tmp);
|
||||
DBG_8192C("BT write 0x%x = 0x%x for non-isolation\n", 0x4fd, u1Tmp);
|
||||
DBG_88E("BT write 0x%x = 0x%x for non-isolation\n", 0x4fd, u1Tmp);
|
||||
|
||||
|
||||
rtw_write32(padapter, REG_BT_COEX_TABLE+4, 0xaaaa9aaa);
|
||||
DBG_8192C("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+4, 0xaaaa9aaa);
|
||||
DBG_88E("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+4, 0xaaaa9aaa);
|
||||
|
||||
rtw_write32(padapter, REG_BT_COEX_TABLE+8, 0xffbd0040);
|
||||
DBG_8192C("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+8, 0xffbd0040);
|
||||
DBG_88E("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+8, 0xffbd0040);
|
||||
|
||||
rtw_write32(padapter, REG_BT_COEX_TABLE+0xc, 0x40000010);
|
||||
DBG_8192C("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+0xc, 0x40000010);
|
||||
DBG_88E("BT write 0x%x = 0x%x\n", REG_BT_COEX_TABLE+0xc, 0x40000010);
|
||||
|
||||
//Config to 1T1R
|
||||
u1Tmp = rtw_read8(padapter,rOFDM0_TRxPathEnable);
|
||||
u1Tmp &= ~(BIT1);
|
||||
rtw_write8( padapter, rOFDM0_TRxPathEnable, u1Tmp);
|
||||
DBG_8192C("BT write 0xC04 = 0x%x\n", u1Tmp);
|
||||
DBG_88E("BT write 0xC04 = 0x%x\n", u1Tmp);
|
||||
|
||||
u1Tmp = rtw_read8(padapter, rOFDM1_TRxPathEnable);
|
||||
u1Tmp &= ~(BIT1);
|
||||
rtw_write8( padapter, rOFDM1_TRxPathEnable, u1Tmp);
|
||||
DBG_8192C("BT write 0xD04 = 0x%x\n", u1Tmp);
|
||||
DBG_88E("BT write 0xD04 = 0x%x\n", u1Tmp);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1076,14 +1076,14 @@ _InitRFType(
|
|||
|
||||
if (_FALSE == is92CU){
|
||||
pHalData->rf_type = RF_1T1R;
|
||||
DBG_8192C("Set RF Chip ID to RF_6052 and RF type to 1T1R.\n");
|
||||
DBG_88E("Set RF Chip ID to RF_6052 and RF type to 1T1R.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Consider that EEPROM set 92CU to 1T1R later.
|
||||
// Force to overwrite setting according to chip version. Ignore EEPROM setting.
|
||||
//pHalData->RF_Type = is92CU ? RF_2T2R : RF_1T1R;
|
||||
MSG_8192C("Set RF Chip ID to RF_6052 and RF type to %d.\n", pHalData->rf_type);
|
||||
MSG_88E("Set RF Chip ID to RF_6052 and RF type to %d.\n", pHalData->rf_type);
|
||||
|
||||
}
|
||||
|
||||
|
@ -1135,7 +1135,7 @@ _InitAntenna_Selection( PADAPTER Adapter)
|
|||
|
||||
if (pHalData->AntDivCfg==0)
|
||||
return;
|
||||
DBG_8192C("==> %s ....\n",__func__);
|
||||
DBG_88E("==> %s ....\n",__func__);
|
||||
|
||||
rtw_write32(Adapter, REG_LEDCFG0, rtw_read32(Adapter, REG_LEDCFG0)|BIT23);
|
||||
PHY_SetBBReg(Adapter, rFPGA0_XAB_RFParameter, BIT13, 0x01);
|
||||
|
@ -1144,7 +1144,7 @@ _InitAntenna_Selection( PADAPTER Adapter)
|
|||
pHalData->CurAntenna = Antenna_A;
|
||||
else
|
||||
pHalData->CurAntenna = Antenna_B;
|
||||
DBG_8192C("%s,Cur_ant:(%x)%s\n",__func__,pHalData->CurAntenna,(pHalData->CurAntenna == Antenna_A)?"Antenna_A":"Antenna_B");
|
||||
DBG_88E("%s,Cur_ant:(%x)%s\n",__func__,pHalData->CurAntenna,(pHalData->CurAntenna == Antenna_A)?"Antenna_A":"Antenna_B");
|
||||
|
||||
|
||||
}
|
||||
|
@ -1226,14 +1226,14 @@ rt_rf_power_state RfOnOffDetect( PADAPTER pAdapter )
|
|||
if (pAdapter->pwrctrlpriv.bHWPowerdown)
|
||||
{
|
||||
val8 = rtw_read8(pAdapter, REG_HSISR);
|
||||
DBG_8192C("pwrdown, 0x5c(BIT7)=%02x\n", val8);
|
||||
DBG_88E("pwrdown, 0x5c(BIT7)=%02x\n", val8);
|
||||
rfpowerstate = (val8 & BIT7) ? rf_off: rf_on;
|
||||
}
|
||||
else // rf on/off
|
||||
{
|
||||
rtw_write8( pAdapter, REG_MAC_PINMUX_CFG,rtw_read8(pAdapter, REG_MAC_PINMUX_CFG)&~(BIT3));
|
||||
val8 = rtw_read8(pAdapter, REG_GPIO_IO_SEL);
|
||||
DBG_8192C("GPIO_IN=%02x\n", val8);
|
||||
DBG_88E("GPIO_IN=%02x\n", val8);
|
||||
rfpowerstate = (val8 & BIT3) ? rf_on : rf_off;
|
||||
}
|
||||
return rfpowerstate;
|
||||
|
@ -1340,13 +1340,13 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BEGIN);
|
|||
#ifdef CONFIG_WOWLAN
|
||||
|
||||
Adapter->pwrctrlpriv.wowlan_wake_reason = rtw_read8(Adapter, REG_WOWLAN_WAKE_REASON);
|
||||
DBG_8192C("%s wowlan_wake_reason: 0x%02x\n",
|
||||
DBG_88E("%s wowlan_wake_reason: 0x%02x\n",
|
||||
__func__, Adapter->pwrctrlpriv.wowlan_wake_reason);
|
||||
|
||||
if (rtw_read8(Adapter, REG_MCUFWDL)&BIT7){ /*&&
|
||||
(Adapter->pwrctrlpriv.wowlan_wake_reason & FWDecisionDisconnect)) {*/
|
||||
u8 reg_val=0;
|
||||
DBG_8192C("+Reset Entry+\n");
|
||||
DBG_88E("+Reset Entry+\n");
|
||||
rtw_write8(Adapter, REG_MCUFWDL, 0x00);
|
||||
_8051Reset88E(Adapter);
|
||||
//reset BB
|
||||
|
@ -1364,7 +1364,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BEGIN);
|
|||
reg_val = rtw_read8(Adapter, REG_SYS_FUNC_EN+1);
|
||||
reg_val |= BIT(4) | BIT(7);
|
||||
rtw_write8(Adapter, REG_SYS_FUNC_EN+1, reg_val);
|
||||
DBG_8192C("-Reset Entry-\n");
|
||||
DBG_88E("-Reset Entry-\n");
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
||||
|
@ -1450,7 +1450,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_DOWNLOAD_FW);
|
|||
#endif //CONFIG_WOWLAN
|
||||
|
||||
if (status != _SUCCESS) {
|
||||
DBG_871X("%s: Download Firmware failed!!\n", __func__);
|
||||
DBG_88E("%s: Download Firmware failed!!\n", __func__);
|
||||
Adapter->bFWReady = _FALSE;
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
return status;
|
||||
|
@ -1467,7 +1467,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MAC);
|
|||
status = PHY_MACConfig8188E(Adapter);
|
||||
if (status == _FAIL)
|
||||
{
|
||||
DBG_871X(" ### Failed to init MAC ......\n ");
|
||||
DBG_88E(" ### Failed to init MAC ......\n ");
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
@ -1480,7 +1480,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BB);
|
|||
status = PHY_BBConfig8188E(Adapter);
|
||||
if (status == _FAIL)
|
||||
{
|
||||
DBG_871X(" ### Failed to init BB ......\n ");
|
||||
DBG_88E(" ### Failed to init BB ......\n ");
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
@ -1491,7 +1491,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_RF);
|
|||
status = PHY_RFConfig8188E(Adapter);
|
||||
if (status == _FAIL)
|
||||
{
|
||||
DBG_871X(" ### Failed to init RF ......\n ");
|
||||
DBG_88E(" ### Failed to init RF ......\n ");
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
@ -1500,7 +1500,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_EFUSE_PATCH);
|
|||
#if defined(CONFIG_IOL_EFUSE_PATCH)
|
||||
status = rtl8188e_iol_efuse_patch(Adapter);
|
||||
if (status == _FAIL){
|
||||
DBG_871X("%s rtl8188e_iol_efuse_patch failed\n",__func__);
|
||||
DBG_88E("%s rtl8188e_iol_efuse_patch failed\n",__func__);
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
@ -1715,13 +1715,13 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_LCK);
|
|||
exit:
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_END);
|
||||
|
||||
DBG_871X("%s in %dms\n", __func__, rtw_get_passing_time_ms(init_start_time));
|
||||
DBG_88E("%s in %dms\n", __func__, rtw_get_passing_time_ms(init_start_time));
|
||||
|
||||
#ifdef DBG_HAL_INIT_PROFILING
|
||||
hal_init_stages_timestamp[HAL_INIT_STAGES_END]=rtw_get_current_time();
|
||||
|
||||
for (hal_init_profiling_i=0;hal_init_profiling_i<HAL_INIT_STAGES_NUM-1;hal_init_profiling_i++) {
|
||||
DBG_871X("DBG_HAL_INIT_PROFILING: %35s, %u, %5u, %5u\n"
|
||||
DBG_88E("DBG_HAL_INIT_PROFILING: %35s, %u, %5u, %5u\n"
|
||||
, hal_init_stages_str[hal_init_profiling_i]
|
||||
, hal_init_stages_timestamp[hal_init_profiling_i]
|
||||
, (hal_init_stages_timestamp[hal_init_profiling_i+1]-hal_init_stages_timestamp[hal_init_profiling_i])
|
||||
|
@ -1826,7 +1826,7 @@ u32 rtl8188eu_hal_deinit(PADAPTER Adapter)
|
|||
{
|
||||
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
DBG_8192C("==> %s\n",__func__);
|
||||
DBG_88E("==> %s\n",__func__);
|
||||
|
||||
#ifdef CONFIG_SUPPORT_USB_INT
|
||||
rtw_write32(Adapter, REG_HIMR_88E, IMR_DISABLED_88E);
|
||||
|
@ -1834,7 +1834,7 @@ u32 rtl8188eu_hal_deinit(PADAPTER Adapter)
|
|||
#endif
|
||||
|
||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||
DBG_8192C("bkeepfwalive(%x)\n",Adapter->pwrctrlpriv.bkeepfwalive);
|
||||
DBG_88E("bkeepfwalive(%x)\n",Adapter->pwrctrlpriv.bkeepfwalive);
|
||||
if (Adapter->pwrctrlpriv.bkeepfwalive)
|
||||
{
|
||||
_ps_close_RF(Adapter);
|
||||
|
@ -1897,7 +1897,7 @@ _func_enter_;
|
|||
#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
|
||||
if (pHalData->RtIntInPipe != 0x05) {
|
||||
status = _FAIL;
|
||||
DBG_871X("%s =>Warning !! Have not USB Int-IN pipe, pHalData->RtIntInPipe(%d)!!!\n",
|
||||
DBG_88E("%s =>Warning !! Have not USB Int-IN pipe, pHalData->RtIntInPipe(%d)!!!\n",
|
||||
__func__,i pHalData->RtIntInPipe);
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2053,8 +2053,8 @@ Hal_EfuseParsePIDVID_8188EU(
|
|||
|
||||
}
|
||||
|
||||
DBG_871X("VID = 0x%04X, PID = 0x%04X\n", pHalData->EEPROMVID, pHalData->EEPROMPID);
|
||||
DBG_871X("Customer ID: 0x%02X, SubCustomer ID: 0x%02X\n", pHalData->EEPROMCustomerID, pHalData->EEPROMSubCustomerID);
|
||||
DBG_88E("VID = 0x%04X, PID = 0x%04X\n", pHalData->EEPROMVID, pHalData->EEPROMPID);
|
||||
DBG_88E("Customer ID: 0x%02X, SubCustomer ID: 0x%02X\n", pHalData->EEPROMCustomerID, pHalData->EEPROMSubCustomerID);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2120,21 +2120,21 @@ static u32 Hal_readPGDataFromConfigFile(
|
|||
fp = filp_open("/system/etc/wifi/wifi_efuse.map", O_RDWR, 0644);
|
||||
if (IS_ERR(fp)) {
|
||||
pEEPROM->bloadfile_fail_flag = _TRUE;
|
||||
DBG_871X("Error, Efuse configure file doesn't exist.\n");
|
||||
DBG_88E("Error, Efuse configure file doesn't exist.\n");
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
fs = get_fs();
|
||||
set_fs(KERNEL_DS);
|
||||
|
||||
DBG_871X("Efuse configure file:\n");
|
||||
DBG_88E("Efuse configure file:\n");
|
||||
for (i=0; i<HWSET_MAX_SIZE_88E; i++) {
|
||||
vfs_read(fp, temp, 2, &pos);
|
||||
PROMContent[i] = simple_strtoul(temp, NULL, 16 );
|
||||
pos += 1; // Filter the space character
|
||||
DBG_871X("%02X\n", PROMContent[i]);
|
||||
DBG_88E("%02X\n", PROMContent[i]);
|
||||
}
|
||||
DBG_871X("\n");
|
||||
DBG_88E("\n");
|
||||
set_fs(fs);
|
||||
|
||||
filp_close(fp, NULL);
|
||||
|
@ -2167,12 +2167,12 @@ Hal_ReadMACAddrFromFile_8188EU(
|
|||
fp = filp_open("/data/wifimac.txt", O_RDWR, 0644);
|
||||
if (IS_ERR(fp)) {
|
||||
pEEPROM->bloadmac_fail_flag = _TRUE;
|
||||
DBG_871X("Error, wifi mac address file doesn't exist.\n");
|
||||
DBG_88E("Error, wifi mac address file doesn't exist.\n");
|
||||
} else {
|
||||
fs = get_fs();
|
||||
set_fs(KERNEL_DS);
|
||||
|
||||
DBG_871X("wifi mac address:\n");
|
||||
DBG_88E("wifi mac address:\n");
|
||||
vfs_read(fp, source_addr, 18, &pos);
|
||||
source_addr[17] = ':';
|
||||
|
||||
|
@ -2190,9 +2190,9 @@ Hal_ReadMACAddrFromFile_8188EU(
|
|||
end++;
|
||||
head = end;
|
||||
}
|
||||
DBG_871X("%02x\n", pEEPROM->mac_addr[i]);
|
||||
DBG_88E("%02x\n", pEEPROM->mac_addr[i]);
|
||||
}
|
||||
DBG_871X("\n");
|
||||
DBG_88E("\n");
|
||||
set_fs(fs);
|
||||
pEEPROM->bloadmac_fail_flag = _FALSE;
|
||||
filp_close(fp, NULL);
|
||||
|
@ -2208,7 +2208,7 @@ Hal_ReadMACAddrFromFile_8188EU(
|
|||
pEEPROM->mac_addr[5] = (u8)((curtime>>16) & 0xff) ;
|
||||
}
|
||||
|
||||
DBG_871X("Hal_ReadMACAddrFromFile_8188ES: Permanent Address = %02x-%02x-%02x-%02x-%02x-%02x\n",
|
||||
DBG_88E("Hal_ReadMACAddrFromFile_8188ES: Permanent Address = %02x-%02x-%02x-%02x-%02x-%02x\n",
|
||||
pEEPROM->mac_addr[0], pEEPROM->mac_addr[1],
|
||||
pEEPROM->mac_addr[2], pEEPROM->mac_addr[3],
|
||||
pEEPROM->mac_addr[4], pEEPROM->mac_addr[5]);
|
||||
|
@ -2283,7 +2283,7 @@ static void _ReadPROMContent(
|
|||
pEEPROM->bautoload_fail_flag = (eeValue & EEPROM_EN) ? _FALSE : _TRUE;
|
||||
|
||||
|
||||
DBG_8192C("Boot from %s, Autoload %s !\n", (pEEPROM->EepromOrEfuse ? "EEPROM" : "EFUSE"),
|
||||
DBG_88E("Boot from %s, Autoload %s !\n", (pEEPROM->EepromOrEfuse ? "EEPROM" : "EFUSE"),
|
||||
(pEEPROM->bautoload_fail_flag ? "Fail" : "OK") );
|
||||
|
||||
//pHalData->EEType = IS_BOOT_FROM_EEPROM(Adapter) ? EEPROM_93C46 : EEPROM_BOOT_EFUSE;
|
||||
|
@ -2316,7 +2316,7 @@ static int _ReadAdapterInfo8188EU(PADAPTER Adapter)
|
|||
//HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
u32 start=rtw_get_current_time();
|
||||
|
||||
MSG_8192C("====> %s\n", __func__);
|
||||
MSG_88E("====> %s\n", __func__);
|
||||
|
||||
//Efuse_InitSomeVar(Adapter);
|
||||
|
||||
|
@ -2326,9 +2326,9 @@ static int _ReadAdapterInfo8188EU(PADAPTER Adapter)
|
|||
_ReadRFType(Adapter);//rf_chip -> _InitRFType()
|
||||
_ReadPROMContent(Adapter);
|
||||
|
||||
//MSG_8192C("%s()(done), rf_chip=0x%x, rf_type=0x%x\n", __func__, pHalData->rf_chip, pHalData->rf_type);
|
||||
//MSG_88E("%s()(done), rf_chip=0x%x, rf_type=0x%x\n", __func__, pHalData->rf_chip, pHalData->rf_type);
|
||||
|
||||
MSG_8192C("<==== %s in %d ms\n", __func__, rtw_get_passing_time_ms(start));
|
||||
MSG_88E("<==== %s in %d ms\n", __func__, rtw_get_passing_time_ms(start));
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -2348,14 +2348,14 @@ static void rtl8192cu_trigger_gpio_0(_adapter *padapter)
|
|||
{
|
||||
#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
|
||||
u32 gpioctrl;
|
||||
DBG_8192C("==> trigger_gpio_0...\n");
|
||||
DBG_88E("==> trigger_gpio_0...\n");
|
||||
rtw_write16_async(padapter,REG_GPIO_PIN_CTRL,0);
|
||||
rtw_write8_async(padapter,REG_GPIO_PIN_CTRL+2,0xFF);
|
||||
gpioctrl = (BIT(GPIO_DEBUG_PORT_NUM)<<24 )|(BIT(GPIO_DEBUG_PORT_NUM)<<16);
|
||||
rtw_write32_async(padapter,REG_GPIO_PIN_CTRL,gpioctrl);
|
||||
gpioctrl |= (BIT(GPIO_DEBUG_PORT_NUM)<<8);
|
||||
rtw_write32_async(padapter,REG_GPIO_PIN_CTRL,gpioctrl);
|
||||
DBG_8192C("<=== trigger_gpio_0...\n");
|
||||
DBG_88E("<=== trigger_gpio_0...\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -2432,7 +2432,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8* val)
|
|||
val8 |= (mode<<2);
|
||||
rtw_write8(Adapter, MSR, val8);
|
||||
|
||||
DBG_871X("%s()-%d mode = %d\n", __func__, __LINE__, mode);
|
||||
DBG_88E("%s()-%d mode = %d\n", __func__, __LINE__, mode);
|
||||
|
||||
if ((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_))
|
||||
{
|
||||
|
@ -2524,7 +2524,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8* val)
|
|||
// Reset TSF for STA+AP concurrent mode
|
||||
if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
DBG_88E("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
}
|
||||
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||||
|
@ -2541,7 +2541,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8* val)
|
|||
val8 |= mode;
|
||||
rtw_write8(Adapter, MSR, val8);
|
||||
|
||||
DBG_871X("%s()-%d mode = %d\n", __func__, __LINE__, mode);
|
||||
DBG_88E("%s()-%d mode = %d\n", __func__, __LINE__, mode);
|
||||
|
||||
if ((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_))
|
||||
{
|
||||
|
@ -2634,7 +2634,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8* val)
|
|||
// Reset TSF for STA+AP concurrent mode
|
||||
if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
DBG_88E("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
}
|
||||
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||||
|
@ -2761,7 +2761,7 @@ static void hw_var_set_correct_tsf(PADAPTER Adapter, u8 variable, u8* val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Update buddy port's TSF(TBTT) if it is SoftAP for beacon TX issue!
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
DBG_88E("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
|
||||
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||||
|
@ -2795,7 +2795,7 @@ static void hw_var_set_correct_tsf(PADAPTER Adapter, u8 variable, u8* val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Update buddy port's TSF if it is SoftAP for beacon TX issue!
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
DBG_88E("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||||
}
|
||||
|
@ -3028,7 +3028,7 @@ _func_enter_;
|
|||
// For 8190, we select only 24M, 12M, 6M, 11M, 5.5M, 2M, and 1M from the Basic rate.
|
||||
// We do not use other rates.
|
||||
HalSetBrateCfg( Adapter, val, &BrateCfg );
|
||||
DBG_8192C("HW_VAR_BASIC_RATE: BrateCfg(%#x)\n", BrateCfg);
|
||||
DBG_88E("HW_VAR_BASIC_RATE: BrateCfg(%#x)\n", BrateCfg);
|
||||
|
||||
//2011.03.30 add by Luke Lee
|
||||
//CCK 2M ACK should be disabled for some BCM and Atheros AP IOT
|
||||
|
@ -3251,7 +3251,7 @@ _func_enter_;
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u16 bcn_interval = *((u16 *)val);
|
||||
if ((pmlmeinfo->state&0x03) == WIFI_FW_AP_STATE){
|
||||
DBG_8192C("%s==> bcn_interval:%d, eraly_int:%d\n",__func__,bcn_interval,bcn_interval>>1);
|
||||
DBG_88E("%s==> bcn_interval:%d, eraly_int:%d\n",__func__,bcn_interval,bcn_interval>>1);
|
||||
rtw_write8(Adapter, REG_DRVERLYINT, bcn_interval>>1);// 50ms for sdio
|
||||
}
|
||||
}
|
||||
|
@ -3416,7 +3416,7 @@ _func_enter_;
|
|||
else
|
||||
AcmCtrl &= (~AcmHw_BeqEn);
|
||||
|
||||
DBG_871X("[HW_VAR_ACM_CTRL] Write 0x%X\n", AcmCtrl );
|
||||
DBG_88E("[HW_VAR_ACM_CTRL] Write 0x%X\n", AcmCtrl );
|
||||
rtw_write8(Adapter, REG_ACMHWCTRL, AcmCtrl );
|
||||
}
|
||||
break;
|
||||
|
@ -3515,7 +3515,7 @@ _func_enter_;
|
|||
//BIT7 value - Toggle bit change.
|
||||
//modify by Thomas. 2012/4/2.
|
||||
ps_state = ps_state & 0xC1;
|
||||
//DBG_871X("##### Change RPWM value to = %x for switch clk #####\n",ps_state);
|
||||
//DBG_88E("##### Change RPWM value to = %x for switch clk #####\n",ps_state);
|
||||
rtw_write8(Adapter, REG_USB_HRPWM, ps_state);
|
||||
}
|
||||
#endif
|
||||
|
@ -3623,14 +3623,14 @@ _func_enter_;
|
|||
u8 Optimum_antenna = (*(u8 *)val);
|
||||
u8 Ant ;
|
||||
//switch antenna to Optimum_antenna
|
||||
//DBG_8192C("==> HW_VAR_ANTENNA_DIVERSITY_SELECT , Ant_(%s)\n",(Optimum_antenna==2)?"A":"B");
|
||||
//DBG_88E("==> HW_VAR_ANTENNA_DIVERSITY_SELECT , Ant_(%s)\n",(Optimum_antenna==2)?"A":"B");
|
||||
if (pHalData->CurAntenna != Optimum_antenna)
|
||||
{
|
||||
Ant = (Optimum_antenna==2)?MAIN_ANT:AUX_ANT;
|
||||
ODM_UpdateRxIdleAnt_88E(&pHalData->odmpriv, Ant);
|
||||
|
||||
pHalData->CurAntenna = Optimum_antenna ;
|
||||
//DBG_8192C("==> HW_VAR_ANTENNA_DIVERSITY_SELECT , Ant_(%s)\n",(Optimum_antenna==2)?"A":"B");
|
||||
//DBG_88E("==> HW_VAR_ANTENNA_DIVERSITY_SELECT , Ant_(%s)\n",(Optimum_antenna==2)?"A":"B");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -3658,7 +3658,7 @@ _func_enter_;
|
|||
break;
|
||||
}while (trycnt--);
|
||||
if (trycnt ==0)
|
||||
DBG_8192C("Stop RX DMA failed......\n");
|
||||
DBG_88E("Stop RX DMA failed......\n");
|
||||
|
||||
//RQPN Load 0
|
||||
rtw_write16(Adapter,REG_RQPN_NPQ,0x0);
|
||||
|
@ -3679,12 +3679,12 @@ _func_enter_;
|
|||
{
|
||||
if (rtw_read32(Adapter, 0x200) != rtw_read32(Adapter, 0x204))
|
||||
{
|
||||
//DBG_871X("packet in tx packet buffer - 0x204=%x, 0x200=%x (%d)\n", rtw_read32(Adapter, 0x204), rtw_read32(Adapter, 0x200), i);
|
||||
//DBG_88E("packet in tx packet buffer - 0x204=%x, 0x200=%x (%d)\n", rtw_read32(Adapter, 0x204), rtw_read32(Adapter, 0x200), i);
|
||||
rtw_msleep_os(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG_871X("no packet in tx packet buffer (%d)\n", i);
|
||||
DBG_88E("no packet in tx packet buffer (%d)\n", i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -3698,7 +3698,7 @@ _func_enter_;
|
|||
|
||||
case HW_VAR_APFM_ON_MAC:
|
||||
pHalData->bMacPwrCtrlOn = *val;
|
||||
DBG_871X("%s: bMacPwrCtrlOn=%d\n", __func__, pHalData->bMacPwrCtrlOn);
|
||||
DBG_88E("%s: bMacPwrCtrlOn=%d\n", __func__, pHalData->bMacPwrCtrlOn);
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
|
@ -3716,7 +3716,7 @@ _func_enter_;
|
|||
poidparam = (struct wowlan_ioctl_param *)val;
|
||||
switch (poidparam->subcode){
|
||||
case WOWLAN_ENABLE:
|
||||
DBG_871X_LEVEL(_drv_always_, "WOWLAN_ENABLE\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "WOWLAN_ENABLE\n");
|
||||
|
||||
SetFwRelatedForWoWLAN8188ES(Adapter, _TRUE);
|
||||
|
||||
|
@ -3725,22 +3725,22 @@ _func_enter_;
|
|||
// rtw_wowlan_reload_pattern(Adapter);
|
||||
|
||||
//RX DMA stop
|
||||
DBG_871X_LEVEL(_drv_always_, "Pause DMA\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "Pause DMA\n");
|
||||
rtw_write32(Adapter,REG_RXPKT_NUM,(rtw_read32(Adapter,REG_RXPKT_NUM)|RW_RELEASE_EN));
|
||||
do{
|
||||
if ((rtw_read32(Adapter, REG_RXPKT_NUM)&RXDMA_IDLE)) {
|
||||
DBG_871X_LEVEL(_drv_always_, "RX_DMA_IDLE is true\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "RX_DMA_IDLE is true\n");
|
||||
break;
|
||||
} else {
|
||||
// If RX_DMA is not idle, receive one pkt from DMA
|
||||
DBG_871X_LEVEL(_drv_always_, "RX_DMA_IDLE is not true\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "RX_DMA_IDLE is not true\n");
|
||||
}
|
||||
}while (trycnt--);
|
||||
if (trycnt ==0)
|
||||
DBG_871X_LEVEL(_drv_always_, "Stop RX DMA failed......\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "Stop RX DMA failed......\n");
|
||||
|
||||
//Set WOWLAN H2C command.
|
||||
DBG_871X_LEVEL(_drv_always_, "Set WOWLan cmd\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "Set WOWLan cmd\n");
|
||||
rtl8188es_set_wowlan_cmd(Adapter, 1);
|
||||
|
||||
mstatus = rtw_read8(Adapter, REG_WOW_CTRL);
|
||||
|
@ -3748,13 +3748,13 @@ _func_enter_;
|
|||
|
||||
while (!(mstatus&BIT1) && trycnt>1) {
|
||||
mstatus = rtw_read8(Adapter, REG_WOW_CTRL);
|
||||
DBG_871X_LEVEL(_drv_always_, "Loop index: %d :0x%02x\n", trycnt, mstatus);
|
||||
DBG_88E_LEVEL(_drv_info_, "Loop index: %d :0x%02x\n", trycnt, mstatus);
|
||||
trycnt --;
|
||||
rtw_msleep_os(2);
|
||||
}
|
||||
|
||||
Adapter->pwrctrlpriv.wowlan_wake_reason = rtw_read8(Adapter, REG_WOWLAN_WAKE_REASON);
|
||||
DBG_871X_LEVEL(_drv_always_, "wowlan_wake_reason: 0x%02x\n",
|
||||
DBG_88E_LEVEL(_drv_always_, "wowlan_wake_reason: 0x%02x\n",
|
||||
Adapter->pwrctrlpriv.wowlan_wake_reason);
|
||||
|
||||
/* Invoid SE0 reset signal during suspending*/
|
||||
|
@ -3764,15 +3764,15 @@ _func_enter_;
|
|||
//rtw_msleep_os(10);
|
||||
break;
|
||||
case WOWLAN_DISABLE:
|
||||
DBG_871X_LEVEL(_drv_always_, "WOWLAN_DISABLE\n");
|
||||
DBG_88E_LEVEL(_drv_always_, "WOWLAN_DISABLE\n");
|
||||
trycnt = 10;
|
||||
rtl8188es_set_wowlan_cmd(Adapter, 0);
|
||||
mstatus = rtw_read8(Adapter, REG_WOW_CTRL);
|
||||
DBG_871X_LEVEL(_drv_info_, "%s mstatus:0x%02x\n", __func__, mstatus);
|
||||
DBG_88E_LEVEL(_drv_info_, "%s mstatus:0x%02x\n", __func__, mstatus);
|
||||
|
||||
while (mstatus&BIT1 && trycnt>1) {
|
||||
mstatus = rtw_read8(Adapter, REG_WOW_CTRL);
|
||||
DBG_871X_LEVEL(_drv_always_, "Loop index: %d :0x%02x\n", trycnt, mstatus);
|
||||
DBG_88E_LEVEL(_drv_always_, "Loop index: %d :0x%02x\n", trycnt, mstatus);
|
||||
trycnt --;
|
||||
rtw_msleep_os(2);
|
||||
}
|
||||
|
@ -3799,7 +3799,7 @@ _func_enter_;
|
|||
case HW_VAR_TX_RPT_MAX_MACID:
|
||||
{
|
||||
u8 maxMacid = *val;
|
||||
DBG_871X("### MacID(%d),Set Max Tx RPT MID(%d)\n",maxMacid,maxMacid+1);
|
||||
DBG_88E("### MacID(%d),Set Max Tx RPT MID(%d)\n",maxMacid,maxMacid+1);
|
||||
rtw_write8(Adapter, REG_TX_RPT_CTRL+1, maxMacid+1);
|
||||
}
|
||||
break;
|
||||
|
@ -3983,8 +3983,8 @@ GetHalDefVar8188EUsb(
|
|||
u8 entry_id = *((u8*)pValue);
|
||||
if (check_fwstate(&Adapter->mlmepriv, _FW_LINKED)== _TRUE)
|
||||
{
|
||||
DBG_871X("============ RA status check ===================\n");
|
||||
DBG_8192C("Mac_id:%d ,RateID = %d,RAUseRate = 0x%08x,RateSGI = %d, DecisionRate = 0x%02x ,PTStage = %d\n",
|
||||
DBG_88E("============ RA status check ===================\n");
|
||||
DBG_88E("Mac_id:%d ,RateID = %d,RAUseRate = 0x%08x,RateSGI = %d, DecisionRate = 0x%02x ,PTStage = %d\n",
|
||||
entry_id,
|
||||
pHalData->odmpriv.RAInfo[entry_id].RateID,
|
||||
pHalData->odmpriv.RAInfo[entry_id].RAUseRate,
|
||||
|
@ -4046,18 +4046,18 @@ SetHalDefVar8188EUsb(
|
|||
|
||||
if (dm_func == 0){ //disable all dynamic func
|
||||
podmpriv->SupportAbility = DYNAMIC_FUNC_DISABLE;
|
||||
DBG_8192C("==> Disable all dynamic function...\n");
|
||||
DBG_88E("==> Disable all dynamic function...\n");
|
||||
}
|
||||
else if (dm_func == 1){//disable DIG
|
||||
podmpriv->SupportAbility &= (~DYNAMIC_BB_DIG);
|
||||
DBG_8192C("==> Disable DIG...\n");
|
||||
DBG_88E("==> Disable DIG...\n");
|
||||
}
|
||||
else if (dm_func == 2){//disable High power
|
||||
podmpriv->SupportAbility &= (~DYNAMIC_BB_DYNAMIC_TXPWR);
|
||||
}
|
||||
else if (dm_func == 3){//disable tx power tracking
|
||||
podmpriv->SupportAbility &= (~DYNAMIC_RF_CALIBRATION);
|
||||
DBG_8192C("==> Disable tx power tracking...\n");
|
||||
DBG_88E("==> Disable tx power tracking...\n");
|
||||
}
|
||||
//else if (dm_func == 4){//disable BT coexistence
|
||||
// pdmpriv->DMFlag &= (~DYNAMIC_FUNC_BT);
|
||||
|
@ -4073,7 +4073,7 @@ SetHalDefVar8188EUsb(
|
|||
}
|
||||
//pdmpriv->DMFlag |= DYNAMIC_FUNC_BT;
|
||||
podmpriv->SupportAbility = DYNAMIC_ALL_FUNC_ENABLE;
|
||||
DBG_8192C("==> Turn on all dynamic function...\n");
|
||||
DBG_88E("==> Turn on all dynamic function...\n");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -4122,7 +4122,7 @@ u32 _update_92cu_basic_rate(_adapter *padapter, unsigned int mask)
|
|||
if ( (pbtpriv->BT_Coexist) && (pbtpriv->BT_CoexistType == BT_CSR_BC4) )
|
||||
{
|
||||
BrateCfg = mask & 0x151;
|
||||
//DBG_8192C("BT temp disable cck 2/5.5/11M, (0x%x = 0x%x)\n", REG_RRSR, BrateCfg & 0x151);
|
||||
//DBG_88E("BT temp disable cck 2/5.5/11M, (0x%x = 0x%x)\n", REG_RRSR, BrateCfg & 0x151);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
@ -4235,8 +4235,8 @@ void UpdateHalRAMask8188EUsb(PADAPTER padapter, u32 mac_id, u8 rssi_level)
|
|||
#ifdef CONFIG_ODM_REFRESH_RAMASK
|
||||
{
|
||||
rate_bitmap = ODM_Get_Rate_Bitmap(&pHalData->odmpriv,mac_id,mask,rssi_level);
|
||||
printk("%s => mac_id:%d, networkType:0x%02x, mask:0x%08x\n\t ==> rssi_level:%d, rate_bitmap:0x%08x\n",
|
||||
__func__,mac_id,networkType,mask,rssi_level,rate_bitmap);
|
||||
DBG_88E("%s => mac_id:%d, networkType:0x%02x, mask:0x%08x\n\t ==> rssi_level:%d, rate_bitmap:0x%08x\n",
|
||||
__func__,mac_id,networkType,mask,rssi_level,rate_bitmap);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -4256,7 +4256,7 @@ void UpdateHalRAMask8188EUsb(PADAPTER padapter, u32 mac_id, u8 rssi_level)
|
|||
if (shortGIrate==_TRUE)
|
||||
arg |= BIT(5);
|
||||
mask |= ((raid<<28)&0xf0000000);
|
||||
DBG_871X("update raid entry, mask=0x%x, arg=0x%x\n", mask, arg);
|
||||
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){
|
||||
|
@ -4416,7 +4416,7 @@ _func_enter_;
|
|||
|
||||
padapter->HalData = rtw_zmalloc(sizeof(HAL_DATA_TYPE));
|
||||
if (padapter->HalData == NULL){
|
||||
DBG_8192C("cant not alloc memory for HAL DATA\n");
|
||||
DBG_88E("cant not alloc memory for HAL DATA\n");
|
||||
}
|
||||
//_rtw_memset(padapter->HalData, 0, sizeof(HAL_DATA_TYPE));
|
||||
padapter->hal_data_sz = sizeof(HAL_DATA_TYPE);
|
||||
|
|
|
@ -62,7 +62,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
}
|
||||
#endif
|
||||
|
||||
//DBG_871X("%s %s:%d\n",__func__, current->comm, current->pid);
|
||||
//DBG_88E("%s %s:%d\n",__func__, current->comm, current->pid);
|
||||
|
||||
if ((padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)){
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usbctrl_vendorreq:(padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
|
||||
|
@ -71,7 +71,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
}
|
||||
|
||||
if (len>MAX_VENDOR_REQ_CMD_SIZE){
|
||||
DBG_8192C( "[%s] Buffer len error ,vendor request failed\n", __func__ );
|
||||
DBG_88E( "[%s] Buffer len error ,vendor request failed\n", __func__ );
|
||||
status = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
#endif
|
||||
|
||||
if ( pIo_buf== NULL) {
|
||||
DBG_8192C( "[%s] pIo_buf == NULL\n", __func__ );
|
||||
DBG_88E( "[%s] pIo_buf == NULL\n", __func__ );
|
||||
status = -ENOMEM;
|
||||
goto release_mutex;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
}
|
||||
}
|
||||
else { // error cases
|
||||
DBG_8192C("reg 0x%x, usb %s %u fail, status:%d value=0x%x, vendorreq_times:%d\n"
|
||||
DBG_88E("reg 0x%x, usb %s %u fail, status:%d value=0x%x, vendorreq_times:%d\n"
|
||||
, value,(requesttype == 0x01)?"read":"write" , len, status, *(u32*)pdata, vendorreq_times);
|
||||
|
||||
if (status < 0) {
|
||||
|
@ -384,7 +384,7 @@ void interrupt_handler_8188eu(_adapter *padapter,u16 pkt_len,u8 *pbuf)
|
|||
|
||||
if ( pkt_len != INTERRUPT_MSG_FORMAT_LEN )
|
||||
{
|
||||
DBG_8192C("%s Invalid interrupt content length (%d)!\n", __func__, pkt_len);
|
||||
DBG_88E("%s Invalid interrupt content length (%d)!\n", __func__, pkt_len);
|
||||
return ;
|
||||
}
|
||||
|
||||
|
@ -434,13 +434,13 @@ void interrupt_handler_8188eu(_adapter *padapter,u16 pkt_len,u8 *pbuf)
|
|||
|
||||
#ifdef DBG_CONFIG_ERROR_DETECT_INT
|
||||
if ( pHalData->IntArray[1] & IMR_TXERR_88E )
|
||||
DBG_871X("===> %s Tx Error Flag Interrupt Status\n",__func__);
|
||||
DBG_88E("===> %s Tx Error Flag Interrupt Status\n",__func__);
|
||||
if ( pHalData->IntArray[1] & IMR_RXERR_88E )
|
||||
DBG_871X("===> %s Rx Error Flag INT Status\n",__func__);
|
||||
DBG_88E("===> %s Rx Error Flag INT Status\n",__func__);
|
||||
if ( pHalData->IntArray[1] & IMR_TXFOVW_88E )
|
||||
DBG_871X("===> %s Transmit FIFO Overflow\n",__func__);
|
||||
DBG_88E("===> %s Transmit FIFO Overflow\n",__func__);
|
||||
if ( pHalData->IntArray[1] & IMR_RXFOVW_88E )
|
||||
DBG_871X("===> %s Receive FIFO Overflow\n",__func__);
|
||||
DBG_88E("===> %s Receive FIFO Overflow\n",__func__);
|
||||
#endif//DBG_CONFIG_ERROR_DETECT_INT
|
||||
|
||||
|
||||
|
@ -461,7 +461,7 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped||padapter->bReadPortCancel)
|
||||
{
|
||||
DBG_8192C("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
DBG_88E("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
__func__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel);
|
||||
|
||||
return;
|
||||
|
@ -471,7 +471,7 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
{
|
||||
if (purb->actual_length > INTERRUPT_MSG_FORMAT_LEN)
|
||||
{
|
||||
DBG_8192C("usb_read_interrupt_complete: purb->actual_length > INTERRUPT_MSG_FORMAT_LEN(%d)\n",INTERRUPT_MSG_FORMAT_LEN);
|
||||
DBG_88E("usb_read_interrupt_complete: purb->actual_length > INTERRUPT_MSG_FORMAT_LEN(%d)\n",INTERRUPT_MSG_FORMAT_LEN);
|
||||
}
|
||||
|
||||
interrupt_handler_8188eu(padapter, purb->actual_length,purb->transfer_buffer );
|
||||
|
@ -479,12 +479,12 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
err = usb_submit_urb(purb, GFP_ATOMIC);
|
||||
if ((err) && (err != (-EPERM)))
|
||||
{
|
||||
DBG_8192C("cannot submit interrupt in-token(err = 0x%08x),urb_status = %d\n",err, purb->status);
|
||||
DBG_88E("cannot submit interrupt in-token(err = 0x%08x),urb_status = %d\n",err, purb->status);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG_8192C("###=> usb_read_interrupt_complete => urb status(%d)\n", purb->status);
|
||||
DBG_88E("###=> usb_read_interrupt_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
switch (purb->status) {
|
||||
case -EINVAL:
|
||||
|
@ -500,7 +500,7 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
case -EPROTO:
|
||||
break;
|
||||
case -EINPROGRESS:
|
||||
DBG_8192C("ERROR: URB IS IN PROGRESS!/n");
|
||||
DBG_88E("ERROR: URB IS IN PROGRESS!/n");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -534,7 +534,7 @@ _func_enter_;
|
|||
err = usb_submit_urb(precvpriv->int_in_urb, GFP_ATOMIC);
|
||||
if ((err) && (err != (-EPERM)))
|
||||
{
|
||||
DBG_8192C("cannot submit interrupt in-token(err = 0x%08x),urb_status = %d\n",err, precvpriv->int_in_urb->status);
|
||||
DBG_88E("cannot submit interrupt in-token(err = 0x%08x),urb_status = %d\n",err, precvpriv->int_in_urb->status);
|
||||
ret = _FAIL;
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ static s32 pre_recv_entry(union recv_frame *precvframe, struct recv_stat *prxsta
|
|||
}
|
||||
else {
|
||||
rtw_free_recvframe(precvframe_if2, pfree_recv_queue);
|
||||
DBG_8192C("%s()-%d: alloc_skb() failed!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: alloc_skb() failed!\n", __func__, __LINE__);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -707,7 +707,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
if (precvframe==NULL)
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
|
||||
DBG_8192C("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __func__, __LINE__);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
||||
|
@ -728,7 +728,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
if ((pattrib->crc_err) || (pattrib->icv_err))
|
||||
{
|
||||
if (pattrib->pkt_len>2000){
|
||||
DBG_8192C("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv_err);
|
||||
DBG_88E("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv_err);
|
||||
#ifdef CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
|
||||
printk("%s: RX Warning!pkt_len= %d, data rate=0x%02x\n", __func__,pattrib->pkt_len,pattrib->mcs_rate);
|
||||
#endif
|
||||
|
@ -748,7 +748,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
if ((pattrib->pkt_len<=0) || (pkt_offset>transfer_len))
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: pkt_len<=0\n"));
|
||||
DBG_8192C("%s()-%d: RX Warning!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: RX Warning!\n", __func__, __LINE__);
|
||||
rtw_free_recvframe(precvframe, pfree_recv_queue);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
@ -800,7 +800,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_8192C("recvbuf2recvframe:can not allocate memory for skb copy\n");
|
||||
DBG_88E("recvbuf2recvframe:can not allocate memory for skb copy\n");
|
||||
//precvframe->u.hdr.pkt = skb_clone(pskb, GFP_ATOMIC);
|
||||
//precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pbuf;
|
||||
//precvframe->u.hdr.rx_end = pbuf + (pkt_offset>1612?pkt_offset:1612);
|
||||
|
@ -858,13 +858,13 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
|
||||
//enqueue recvframe to txrtp queue
|
||||
if (pattrib->pkt_rpt_type == TX_REPORT1){
|
||||
//DBG_8192C("rx CCX\n");
|
||||
//DBG_88E("rx CCX\n");
|
||||
//CCX-TXRPT ack for xmit mgmt frames.
|
||||
handle_txrpt_ccx_88e(padapter, precvframe->u.hdr.rx_data);
|
||||
|
||||
}
|
||||
else if (pattrib->pkt_rpt_type == TX_REPORT2){
|
||||
//DBG_8192C("rx TX RPT\n");
|
||||
//DBG_88E("rx TX RPT\n");
|
||||
ODM_RA_TxRPT2Handle_8188E(
|
||||
&pHalData->odmpriv,
|
||||
precvframe->u.hdr.rx_data,
|
||||
|
@ -876,7 +876,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
}
|
||||
else if (pattrib->pkt_rpt_type == HIS_REPORT)
|
||||
{
|
||||
//DBG_8192C("%s , rx USB HISR\n",__func__);
|
||||
//DBG_88E("%s , rx USB HISR\n",__func__);
|
||||
#ifdef CONFIG_SUPPORT_USB_INT
|
||||
interrupt_handler_8188eu(padapter,pattrib->pkt_len,precvframe->u.hdr.rx_data);
|
||||
#endif
|
||||
|
@ -911,7 +911,7 @@ void rtl8188eu_recv_tasklet(void *priv)
|
|||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
|
||||
{
|
||||
DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved\n");
|
||||
DBG_88E("recv_tasklet => bDriverStopped or bSurpriseRemoved\n");
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -937,7 +937,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped||padapter->bReadPortCancel)
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)\n", padapter->bDriverStopped, padapter->bSurpriseRemoved));
|
||||
DBG_8192C("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
DBG_88E("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
__func__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel);
|
||||
goto exit;
|
||||
}
|
||||
|
@ -966,7 +966,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete : purb->status(%d) != 0\n", purb->status));
|
||||
|
||||
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
DBG_88E("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
if (rtw_inc_and_chk_continual_urb_error(adapter_to_dvobj(padapter)) == _TRUE ){
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
|
@ -994,7 +994,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
break;
|
||||
case -EINPROGRESS:
|
||||
DBG_8192C("ERROR: URB IS IN PROGRESS!/n");
|
||||
DBG_88E("ERROR: URB IS IN PROGRESS!/n");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -1054,7 +1054,7 @@ _func_enter_;
|
|||
if ((err) && (err != (-EPERM)))
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("cannot submit rx in-token(err=0x%.8x), URB_STATUS =0x%.8x", err, purb->status));
|
||||
DBG_8192C("cannot submit rx in-token(err = 0x%08x),urb_status = %d\n",err,purb->status);
|
||||
DBG_88E("cannot submit rx in-token(err = 0x%08x),urb_status = %d\n",err,purb->status);
|
||||
ret = _FAIL;
|
||||
}
|
||||
|
||||
|
@ -1106,7 +1106,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
if (precvframe==NULL)
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvbuf2recvframe: precvframe==NULL\n"));
|
||||
DBG_8192C("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: rtw_alloc_recvframe() failed! RX Drop!\n", __func__, __LINE__);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
||||
|
@ -1121,7 +1121,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
|
||||
if ((pattrib->crc_err) || (pattrib->icv_err))
|
||||
{
|
||||
DBG_8192C("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv_err);
|
||||
DBG_88E("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __func__, pattrib->crc_err, pattrib->icv_err);
|
||||
|
||||
rtw_free_recvframe(precvframe, pfree_recv_queue);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
|
@ -1137,7 +1137,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
if ((pattrib->pkt_len<=0) || (pkt_offset>transfer_len))
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("recvbuf2recvframe: pkt_len<=0\n"));
|
||||
DBG_8192C("%s()-%d: RX Warning!,pkt_len<=0 or pkt_offset> transfoer_len\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: RX Warning!,pkt_len<=0 or pkt_offset> transfoer_len\n", __func__, __LINE__);
|
||||
rtw_free_recvframe(precvframe, pfree_recv_queue);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
@ -1191,7 +1191,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
{
|
||||
if ((pattrib->mfrag == 1)&&(pattrib->frag_num == 0))
|
||||
{
|
||||
DBG_8192C("recvbuf2recvframe: alloc_skb fail , drop frag frame\n");
|
||||
DBG_88E("recvbuf2recvframe: alloc_skb fail , drop frag frame\n");
|
||||
rtw_free_recvframe(precvframe, pfree_recv_queue);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
@ -1205,7 +1205,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_8192C("recvbuf2recvframe: skb_clone fail\n");
|
||||
DBG_88E("recvbuf2recvframe: skb_clone fail\n");
|
||||
rtw_free_recvframe(precvframe, pfree_recv_queue);
|
||||
goto _exit_recvbuf2recvframe;
|
||||
}
|
||||
|
@ -1258,12 +1258,12 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
|
||||
//enqueue recvframe to txrtp queue
|
||||
if (pattrib->pkt_rpt_type == TX_REPORT1){
|
||||
//DBG_8192C("rx CCX\n");
|
||||
//DBG_88E("rx CCX\n");
|
||||
//CCX-TXRPT ack for xmit mgmt frames.
|
||||
handle_txrpt_ccx_88e(padapter, precvframe->u.hdr.rx_data);
|
||||
}
|
||||
else if (pattrib->pkt_rpt_type == TX_REPORT2){
|
||||
//DBG_8192C("rx TX RPT\n");
|
||||
//DBG_88E("rx TX RPT\n");
|
||||
ODM_RA_TxRPT2Handle_8188E(
|
||||
&pHalData->odmpriv,
|
||||
precvframe->u.hdr.rx_data,
|
||||
|
@ -1275,7 +1275,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb)
|
|||
}
|
||||
else if (pattrib->pkt_rpt_type == HIS_REPORT)
|
||||
{
|
||||
//DBG_8192C("%s , rx USB HISR\n",__func__);
|
||||
//DBG_88E("%s , rx USB HISR\n",__func__);
|
||||
#ifdef CONFIG_SUPPORT_USB_INT
|
||||
interrupt_handler_8188eu(padapter,pattrib->pkt_len,precvframe->u.hdr.rx_data);
|
||||
#endif
|
||||
|
@ -1310,7 +1310,7 @@ void rtl8188eu_recv_tasklet(void *priv)
|
|||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
|
||||
{
|
||||
DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved\n");
|
||||
DBG_88E("recv_tasklet => bDriverStopped or bSurpriseRemoved\n");
|
||||
dev_kfree_skb_any(pskb);
|
||||
break;
|
||||
}
|
||||
|
@ -1365,11 +1365,11 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
precvbuf->reuse = _TRUE;
|
||||
#else
|
||||
if (precvbuf->pskb){
|
||||
DBG_8192C("==> free skb(%p)\n",precvbuf->pskb);
|
||||
DBG_88E("==> free skb(%p)\n",precvbuf->pskb);
|
||||
dev_kfree_skb_any(precvbuf->pskb);
|
||||
}
|
||||
#endif
|
||||
DBG_8192C("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
DBG_88E("%s() RX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bReadPortCancel(%d)\n",
|
||||
__func__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel);
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1381,7 +1381,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete: (purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)\n"));
|
||||
precvbuf->reuse = _TRUE;
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
DBG_8192C("%s()-%d: RX Warning!\n", __func__, __LINE__);
|
||||
DBG_88E("%s()-%d: RX Warning!\n", __func__, __LINE__);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1403,7 +1403,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete : purb->status(%d) != 0\n", purb->status));
|
||||
|
||||
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
DBG_88E("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
if (rtw_inc_and_chk_continual_urb_error(adapter_to_dvobj(padapter)) == _TRUE ){
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
|
@ -1432,7 +1432,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
break;
|
||||
case -EINPROGRESS:
|
||||
DBG_8192C("ERROR: URB IS IN PROGRESS!/n");
|
||||
DBG_88E("ERROR: URB IS IN PROGRESS!/n");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -1497,7 +1497,7 @@ _func_enter_;
|
|||
if (precvbuf->pskb == NULL)
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("init_recvbuf(): alloc_skb fail!\n"));
|
||||
DBG_8192C("#### usb_read_port() alloc_skb fail!#####\n");
|
||||
DBG_88E("#### usb_read_port() alloc_skb fail!#####\n");
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
|
@ -1544,7 +1544,7 @@ _func_enter_;
|
|||
if ((err) && (err != (-EPERM)))
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("cannot submit rx in-token(err=0x%.8x), URB_STATUS =0x%.8x", err, purb->status));
|
||||
DBG_8192C("cannot submit rx in-token(err = 0x%08x),urb_status = %d\n",err,purb->status);
|
||||
DBG_88E("cannot submit rx in-token(err = 0x%08x),urb_status = %d\n",err,purb->status);
|
||||
ret = _FAIL;
|
||||
}
|
||||
}
|
||||
|
@ -1573,7 +1573,7 @@ void rtl8188eu_xmit_tasklet(void *priv)
|
|||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE) || (padapter->bWritePortCancel == _TRUE))
|
||||
{
|
||||
DBG_8192C("xmit_tasklet => bDriverStopped or bSurpriseRemoved or bWritePortCancel\n");
|
||||
DBG_88E("xmit_tasklet => bDriverStopped or bSurpriseRemoved or bWritePortCancel\n");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1626,5 +1626,5 @@ void rtl8188eu_set_hw_type(_adapter *padapter)
|
|||
{
|
||||
padapter->chip_type = RTL8188E;
|
||||
padapter->HardwareType = HARDWARE_TYPE_RTL8188EU;
|
||||
DBG_871X("CHIP TYPE: RTL8188E\n");
|
||||
DBG_88E("CHIP TYPE: RTL8188E\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue