From d25660e511bed29811091008b2f09b62f0014765 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 8 May 2013 23:09:18 -0500 Subject: [PATCH] Remove space before \n in formats Signed-off-by: Larry Finger --- core/rtw_bt_mp.c | 108 +++++++++++------------ core/rtw_cmd.c | 24 +++--- core/rtw_efuse.c | 4 +- core/rtw_ioctl_query.c | 12 +-- core/rtw_ioctl_rtl.c | 8 +- core/rtw_ioctl_set.c | 16 ++-- core/rtw_iol.c | 2 +- core/rtw_led.c | 2 +- core/rtw_mlme.c | 36 ++++---- core/rtw_mlme_ext.c | 6 +- core/rtw_mp_ioctl.c | 40 ++++----- core/rtw_p2p.c | 2 +- core/rtw_pwrctrl.c | 6 +- core/rtw_recv.c | 42 ++++----- core/rtw_security.c | 6 +- core/rtw_sreset.c | 2 +- core/rtw_sta_mgt.c | 4 +- core/rtw_tdls.c | 6 +- core/rtw_wapi.c | 62 +++++++------- core/rtw_wapi_sms4.c | 6 +- core/rtw_wlan_util.c | 4 +- core/rtw_xmit.c | 24 +++--- hal/Hal8188ERateAdaptive.c | 14 +-- hal/HalHWImg8188E_BB.c | 12 +-- hal/HalHWImg8188E_MAC.c | 6 +- hal/HalHWImg8188E_RF.c | 8 +- hal/HalPhyRf.c | 6 +- hal/HalPhyRf_8188e.c | 14 +-- hal/odm.c | 170 ++++++++++++++++++------------------- hal/odm_HWConfig.c | 4 +- hal/odm_RTL8188E.c | 8 +- hal/rtl8188e_cmd.c | 24 +++--- hal/rtl8188e_hal_init.c | 20 ++--- hal/rtl8188e_mp.c | 2 +- hal/rtl8188e_phycfg.c | 24 +++--- hal/rtl8188e_rf6052.c | 2 +- hal/rtl8188e_sreset.c | 8 +- hal/rtl8188eu_xmit.c | 16 ++-- hal/usb_halinit.c | 46 +++++----- hal/usb_ops_linux.c | 40 ++++----- include/osdep_service.h | 4 +- os_dep/gspi_intf.c | 14 +-- os_dep/ioctl_cfg80211.c | 16 ++-- os_dep/ioctl_linux.c | 122 +++++++++++++------------- os_dep/mlme_linux.c | 2 +- os_dep/os_intfs.c | 22 ++--- os_dep/pci_intf.c | 8 +- os_dep/recv_linux.c | 6 +- os_dep/usb_intf.c | 10 +-- os_dep/usb_ops_linux.c | 8 +- 50 files changed, 529 insertions(+), 529 deletions(-) diff --git a/core/rtw_bt_mp.c b/core/rtw_bt_mp.c index c8d9f4c..2c4e883 100755 --- a/core/rtw_bt_mp.c +++ b/core/rtw_bt_mp.c @@ -30,7 +30,7 @@ void MPh2c_timeout_handle(void *FunctionContext) _adapter *pAdapter = (_adapter *)FunctionContext; PMPT_CONTEXT pMptCtx=&pAdapter->mppriv.MptCtx; - DBG_8192C("[MPT], MPh2c_timeout_handle \n"); + DBG_8192C("[MPT], MPh2c_timeout_handle\n"); pMptCtx->bMPh2c_timeout=_TRUE; @@ -69,7 +69,7 @@ mptbt_CheckC2hFrame( { BT_CTRL_STATUS c2hStatus = BT_STATUS_C2H_SUCCESS; - //DBG_8192C("[MPT], MPT rsp C2H hex: %x %x %x %x %x %x \n"), pExtC2h , pExtC2h+1 ,pExtC2h+2 ,pExtC2h+3 ,pExtC2h+4 ,pExtC2h+5); + //DBG_8192C("[MPT], MPT rsp C2H hex: %x %x %x %x %x %x\n"), pExtC2h , pExtC2h+1 ,pExtC2h+2 ,pExtC2h+3 ,pExtC2h+4 ,pExtC2h+5); DBG_8192C("[MPT], statusCode = 0x%x\n", pExtC2h->statusCode); DBG_8192C("[MPT], retLen = %d\n", pExtC2h->retLen); @@ -110,7 +110,7 @@ mptbt_SendH2c( // if (OldIrql == PASSIVE_LEVEL) // { - //RTPRINT_DATA(FMPBT, FMPBT_H2C_CONTENT, ("[MPT], MPT H2C hex: \n"), pH2c, h2cCmdLen); + //RTPRINT_DATA(FMPBT, FMPBT_H2C_CONTENT, ("[MPT], MPT H2C hex:\n"), pH2c, h2cCmdLen); for (i=0; ibuf[i]); + DBG_8192C(" 0x%x\n", pH2c->buf[i]); } } @@ -302,7 +302,7 @@ mptbt_BtReady( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } else @@ -322,7 +322,7 @@ mptbt_BtReady( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } else @@ -340,7 +340,7 @@ mptbt_BtReady( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } else @@ -440,7 +440,7 @@ mptbt_BtSetMode( if (1 == pBtReq->paraLength) { btModeToSet = pBtReq->pParamStart[0]; - DBG_8192C("[MPT], BtTestMode=%d \n", btModeToSet); + DBG_8192C("[MPT], BtTestMode=%d\n", btModeToSet); } else { @@ -479,7 +479,7 @@ mptbt_BtSetMode( else { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); } return paraLen; @@ -500,10 +500,10 @@ MPTBT_FwC2hBtMpCtrl( //cancel_timeout for h2c handle _cancel_timer_ex( &pMptCtx->MPh2c_timeout_timer); - DBG_8192C("[MPT], MPTBT_FwC2hBtMpCtrl(), hex: \n"); + DBG_8192C("[MPT], MPTBT_FwC2hBtMpCtrl(), hex:\n"); for (i=0;i<=length;i++) { - //DBG_8192C("[MPT], MPTBT_FwC2hBtMpCtrl(), hex: \n",tmpBuf[i], length); + //DBG_8192C("[MPT], MPTBT_FwC2hBtMpCtrl(), hex:\n",tmpBuf[i], length); DBG_8192C(" 0x%x ",tmpBuf[i]); } DBG_8192C("\n [MPT], pExtC2h->extendId=0x%x\n", pExtC2h->extendId); @@ -512,7 +512,7 @@ MPTBT_FwC2hBtMpCtrl( { case EXT_C2H_WIFI_FW_ACTIVE_RSP: DBG_8192C("[MPT], EXT_C2H_WIFI_FW_ACTIVE_RSP\n"); - DBG_8192C("[MPT], pExtC2h->buf hex: \n"); + DBG_8192C("[MPT], pExtC2h->buf hex:\n"); for (i=0;i<=(length-3);i++) DBG_8192C(" 0x%x ",pExtC2h->buf[i]); //PlatformSetEvent(&pMptCtx->MptH2cRspEvent); @@ -527,7 +527,7 @@ MPTBT_FwC2hBtMpCtrl( DBG_8192C("[MPT], pExtC2h->retLen=0x%x\n", pExtC2h->retLen); DBG_8192C("[MPT], pExtC2h->opCodeVer=0x%x\n", pExtC2h->opCodeVer); DBG_8192C("[MPT], pExtC2h->reqNum=0x%x\n", pExtC2h->reqNum); - DBG_8192C("[MPT], pExtC2h->buf hex: \n"); + DBG_8192C("[MPT], pExtC2h->buf hex:\n"); for (i=0;i<=(length-3);i++) DBG_8192C(" 0x%x ",pExtC2h->buf[0]); //PlatformSetEvent(&pMptCtx->MptBtC2hEvent); @@ -674,7 +674,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -697,7 +697,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -722,7 +722,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[0] = pExtC2h->buf[0]; @@ -736,7 +736,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[2] = pExtC2h->buf[0]; @@ -755,7 +755,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[0] = pExtC2h->buf[0]; @@ -769,7 +769,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[2] = pExtC2h->buf[0]; @@ -788,7 +788,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[0] = pExtC2h->buf[0]; @@ -807,7 +807,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[0] = pExtC2h->buf[0]; @@ -821,7 +821,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } pBtRsp->pParamStart[2] = pExtC2h->buf[0]; @@ -840,7 +840,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } bdAddr[5] = pExtC2h->buf[0]; @@ -855,7 +855,7 @@ mptbt_BtGetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } bdAddr[2] = pExtC2h->buf[0]; @@ -1073,7 +1073,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1089,7 +1089,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } } @@ -1103,7 +1103,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } } @@ -1120,7 +1120,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1134,7 +1134,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } } @@ -1149,7 +1149,7 @@ mptbt_BtSetGeneral( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } } @@ -1192,14 +1192,14 @@ mptbt_BtSetTxRxPars( // 2. check upper layer parameter length if (pBtReq->paraLength == sizeof(BT_TXRX_PARAMETERS)) { - DBG_8192C ("[MPT], pTxRxPars->txrxChannel=0x%x \n", pTxRxPars->txrxChannel); - DBG_8192C ("[MPT], pTxRxPars->txrxTxPktCnt=0x%8x \n", pTxRxPars->txrxTxPktCnt); - DBG_8192C ("[MPT], pTxRxPars->txrxTxPktInterval=0x%x \n", pTxRxPars->txrxTxPktInterval); - DBG_8192C ("[MPT], pTxRxPars->txrxPayloadType=0x%x \n", pTxRxPars->txrxPayloadType); - DBG_8192C ("[MPT], pTxRxPars->txrxPktType=0x%x \n", pTxRxPars->txrxPktType); - DBG_8192C ("[MPT], pTxRxPars->txrxPayloadLen=0x%x \n", pTxRxPars->txrxPayloadLen); - DBG_8192C ("[MPT], pTxRxPars->txrxPktHeader=0x%x \n", pTxRxPars->txrxPktHeader); - DBG_8192C ("[MPT], pTxRxPars->txrxWhitenCoeff=0x%x \n", pTxRxPars->txrxWhitenCoeff); + DBG_8192C ("[MPT], pTxRxPars->txrxChannel=0x%x\n", pTxRxPars->txrxChannel); + DBG_8192C ("[MPT], pTxRxPars->txrxTxPktCnt=0x%8x\n", pTxRxPars->txrxTxPktCnt); + DBG_8192C ("[MPT], pTxRxPars->txrxTxPktInterval=0x%x\n", pTxRxPars->txrxTxPktInterval); + DBG_8192C ("[MPT], pTxRxPars->txrxPayloadType=0x%x\n", pTxRxPars->txrxPayloadType); + DBG_8192C ("[MPT], pTxRxPars->txrxPktType=0x%x\n", pTxRxPars->txrxPktType); + DBG_8192C ("[MPT], pTxRxPars->txrxPayloadLen=0x%x\n", pTxRxPars->txrxPayloadLen); + DBG_8192C ("[MPT], pTxRxPars->txrxPktHeader=0x%x\n", pTxRxPars->txrxPktHeader); + DBG_8192C ("[MPT], pTxRxPars->txrxWhitenCoeff=0x%x\n", pTxRxPars->txrxWhitenCoeff); bdAddr[0] = pTxRxPars->txrxBdaddr[5]; bdAddr[1] = pTxRxPars->txrxBdaddr[4]; bdAddr[2] = pTxRxPars->txrxBdaddr[3]; @@ -1207,7 +1207,7 @@ mptbt_BtSetTxRxPars( bdAddr[4] = pTxRxPars->txrxBdaddr[1]; bdAddr[5] = pTxRxPars->txrxBdaddr[0]; DBG_8192C ("[MPT], pTxRxPars->txrxBdaddr: %s", &bdAddr[0]); - DBG_8192C ("[MPT], pTxRxPars->txrxTxGainIndex=0x%x \n", pTxRxPars->txrxTxGainIndex); + DBG_8192C ("[MPT], pTxRxPars->txrxTxGainIndex=0x%x\n", pTxRxPars->txrxTxGainIndex); } else { @@ -1241,7 +1241,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1309,7 +1309,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1334,7 +1334,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1359,7 +1359,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1375,7 +1375,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1402,7 +1402,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1442,7 +1442,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1458,7 +1458,7 @@ mptbt_BtSetTxRxPars( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C ("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C ("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1498,7 +1498,7 @@ mptbt_BtTestCtrl( if (1 == pBtReq->paraLength) { testCtrl = pBtReq->pParamStart[0]; - DBG_8192C("[MPT], testCtrl=%d \n", testCtrl); + DBG_8192C("[MPT], testCtrl=%d\n", testCtrl); } else { @@ -1532,7 +1532,7 @@ mptbt_BtTestCtrl( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1573,7 +1573,7 @@ mptbt_TestBT( if (BT_STATUS_BT_OP_SUCCESS != retStatus) { pBtRsp->status = ((btOpcode<<8)|retStatus); - DBG_8192C("[MPT], Error!! status code=0x%x \n", pBtRsp->status); + DBG_8192C("[MPT], Error!! status code=0x%x\n", pBtRsp->status); return paraLen; } @@ -1598,10 +1598,10 @@ mptbt_BtControlProcess( DBG_8192C("[MPT], input opCodeVer=%d\n", pBtReq->opCodeVer); DBG_8192C("[MPT], input OpCode=%d\n", pBtReq->OpCode); - DBG_8192C("[MPT], paraLength=%d \n", pBtReq->paraLength); + DBG_8192C("[MPT], paraLength=%d\n", pBtReq->paraLength); if (pBtReq->paraLength) { - //DBG_8192C("[MPT], parameters(hex):0x%x %d \n",&pBtReq->pParamStart[0], pBtReq->paraLength); + //DBG_8192C("[MPT], parameters(hex):0x%x %d\n",&pBtReq->pParamStart[0], pBtReq->paraLength); } // The following we should maintain the User OP codes sent by upper layer @@ -1649,7 +1649,7 @@ mptbt_BtControlProcess( break; } - DBG_8192C("pBtRsp->paraLength =%d \n",pBtRsp->paraLength); + DBG_8192C("pBtRsp->paraLength =%d\n",pBtRsp->paraLength); pMptCtx->mptOutLen += pBtRsp->paraLength; diff --git a/core/rtw_cmd.c b/core/rtw_cmd.c index f4b6e63..4388118 100755 --- a/core/rtw_cmd.c +++ b/core/rtw_cmd.c @@ -159,7 +159,7 @@ void _rtw_free_evt_priv (struct evt_priv *pevtpriv) { _func_enter_; - RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("+_rtw_free_evt_priv \n")); + RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("+_rtw_free_evt_priv\n")); #ifdef CONFIG_EVENT_THREAD_MODE _rtw_free_sema(&(pevtpriv->evt_notify)); @@ -184,7 +184,7 @@ _func_enter_; } #endif - RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("-_rtw_free_evt_priv \n")); + RT_TRACE(_module_rtl871x_cmd_c_,_drv_info_,("-_rtw_free_evt_priv\n")); _func_exit_; @@ -2085,7 +2085,7 @@ static void traffic_status_watchdog(_adapter *padapter) if ( ((pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod + pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > 8 ) || (pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod > 2) ) { - //DBG_871X("Tx = %d, Rx = %d \n",pmlmepriv->LinkDetectInfo.NumTxOkInPeriod,pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod); + //DBG_871X("Tx = %d, Rx = %d\n",pmlmepriv->LinkDetectInfo.NumTxOkInPeriod,pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod); bEnterPS= _FALSE; } else @@ -2182,7 +2182,7 @@ _func_enter_; switch (lps_ctrl_type) { case LPS_CTRL_SCAN: - //DBG_871X("LPS_CTRL_SCAN \n"); + //DBG_871X("LPS_CTRL_SCAN\n"); #ifdef CONFIG_BT_COEXIST BT_WifiScanNotify(padapter, _TRUE); if (BT_1Ant(padapter) == _FALSE) @@ -2195,11 +2195,11 @@ _func_enter_; } break; case LPS_CTRL_JOINBSS: - //DBG_871X("LPS_CTRL_JOINBSS \n"); + //DBG_871X("LPS_CTRL_JOINBSS\n"); LPS_Leave(padapter); break; case LPS_CTRL_CONNECT: - //DBG_871X("LPS_CTRL_CONNECT \n"); + //DBG_871X("LPS_CTRL_CONNECT\n"); mstatus = 1;//connect // Reset LPS Setting padapter->pwrctrlpriv.LpsIdleCount = 0; @@ -2209,7 +2209,7 @@ _func_enter_; #endif break; case LPS_CTRL_DISCONNECT: - //DBG_871X("LPS_CTRL_DISCONNECT \n"); + //DBG_871X("LPS_CTRL_DISCONNECT\n"); mstatus = 0;//disconnect #ifdef CONFIG_BT_COEXIST BT_WifiMediaStatusNotify(padapter, mstatus); @@ -2221,7 +2221,7 @@ _func_enter_; rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_JOINBSSRPT, (u8 *)(&mstatus)); break; case LPS_CTRL_SPECIAL_PACKET: - //DBG_871X("LPS_CTRL_SPECIAL_PACKET \n"); + //DBG_871X("LPS_CTRL_SPECIAL_PACKET\n"); pwrpriv->DelayLPSLastTimeStamp = rtw_get_current_time(); #ifdef CONFIG_BT_COEXIST BT_SpecialPacketNotify(padapter); @@ -2232,7 +2232,7 @@ _func_enter_; } break; case LPS_CTRL_LEAVE: - //DBG_871X("LPS_CTRL_LEAVE \n"); + //DBG_871X("LPS_CTRL_LEAVE\n"); #ifdef CONFIG_BT_COEXIST BT_LpsLeave(padapter); if (BT_1Ant(padapter) == _FALSE) @@ -2887,7 +2887,7 @@ _func_enter_; pwlan = rtw_get_oldest_wlan_network(&pmlmepriv->scanned_queue); if ( pwlan == NULL) { - RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\n Error: can't get pwlan in rtw_joinbss_event_callback \n")); + RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\n Error: can't get pwlan in rtw_joinbss_event_callback\n")); _exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL); goto createbss_cmd_fail; } @@ -2957,7 +2957,7 @@ _func_enter_; if (psta==NULL) { - RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nERROR: rtw_setstaKey_cmdrsp_callback => can't get sta_info \n\n")); + RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nERROR: rtw_setstaKey_cmdrsp_callback => can't get sta_info\n\n")); goto exit; } @@ -2983,7 +2983,7 @@ _func_enter_; if (psta==NULL) { - RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nERROR: setassocsta_cmdrsp_callbac => can't get sta_info \n\n")); + RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("\nERROR: setassocsta_cmdrsp_callbac => can't get sta_info\n\n")); goto exit; } diff --git a/core/rtw_efuse.c b/core/rtw_efuse.c index 86cef0b..9ce33be 100755 --- a/core/rtw_efuse.c +++ b/core/rtw_efuse.c @@ -769,8 +769,8 @@ u8 rtw_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data) if (word_en != 0xF) { ret = Efuse_PgPacketWrite(padapter, offset, word_en, newdata, _FALSE); - DBG_871X("offset=%x \n",offset); - DBG_871X("word_en=%x \n",word_en); + DBG_871X("offset=%x\n",offset); + DBG_871X("word_en=%x\n",word_en); for (i=0;isupplicant_ie[0]; for (i=0;iauthenticator_ie[0]; for (i=0;i0){ @@ -184,10 +184,10 @@ u8 query_802_11_association_information( _adapter *padapter,PNDIS_802_11_ASSOCIA pAssocInfo->OffsetResponseIEs = sizeof(NDIS_802_11_ASSOCIATION_INFORMATION) + pAssocInfo->RequestIELength; - RT_TRACE(_module_rtl871x_ioctl_query_c_,_drv_info_,("\n tgt_network != NULL,fwstate==_FW_LINKED \n")); + RT_TRACE(_module_rtl871x_ioctl_query_c_,_drv_info_,("\n tgt_network != NULL,fwstate==_FW_LINKED\n")); } } - RT_TRACE(_module_rtl871x_ioctl_query_c_,_drv_info_,("\n exit query_802_11_association_information \n")); + RT_TRACE(_module_rtl871x_ioctl_query_c_,_drv_info_,("\n exit query_802_11_association_information\n")); _func_exit_; return _TRUE; diff --git a/core/rtw_ioctl_rtl.c b/core/rtw_ioctl_rtl.c index 8452133..4c7ebe0 100755 --- a/core/rtw_ioctl_rtl.c +++ b/core/rtw_ioctl_rtl.c @@ -235,7 +235,7 @@ NDIS_STATUS oid_rt_get_signal_quality_hdl(struct oid_par_priv* poid_par_priv) NDIS_STATUS status = NDIS_STATUS_SUCCESS; PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context); - //DEBUG_ERR(("<**********************oid_rt_get_signal_quality_hdl \n")); + //DEBUG_ERR(("<**********************oid_rt_get_signal_quality_hdl\n")); if (poid_par_priv->type_of_oid != QUERY_OID) { status = NDIS_STATUS_NOT_ACCEPTED; @@ -727,7 +727,7 @@ NDIS_STATUS oid_rt_supported_wireless_mode_hdl(struct oid_par_priv* poid_par_pri NDIS_STATUS status = NDIS_STATUS_SUCCESS; PADAPTER padapter = (PADAPTER)(poid_par_priv->adapter_context); ULONG ulInfo = 0 ; - //DEBUG_ERR(("<**********************oid_rt_supported_wireless_mode_hdl \n")); + //DEBUG_ERR(("<**********************oid_rt_supported_wireless_mode_hdl\n")); if (poid_par_priv->type_of_oid != QUERY_OID) { status = NDIS_STATUS_NOT_ACCEPTED; @@ -864,7 +864,7 @@ NDIS_STATUS oid_rt_pro_rf_write_registry_hdl(struct oid_par_priv* poid_par_priv) PADAPTER Adapter = (PADAPTER)(poid_par_priv->adapter_context); _irqL oldirql; _func_enter_; - //DEBUG_ERR(("<**********************oid_rt_pro_rf_write_registry_hdl \n")); + //DEBUG_ERR(("<**********************oid_rt_pro_rf_write_registry_hdl\n")); if (poid_par_priv->type_of_oid != SET_OID) //QUERY_OID { status = NDIS_STATUS_NOT_ACCEPTED; @@ -906,7 +906,7 @@ NDIS_STATUS oid_rt_pro_rf_read_registry_hdl(struct oid_par_priv* poid_par_priv) _irqL oldirql; _func_enter_; - //DEBUG_ERR(("<**********************oid_rt_pro_rf_read_registry_hdl \n")); + //DEBUG_ERR(("<**********************oid_rt_pro_rf_read_registry_hdl\n")); if (poid_par_priv->type_of_oid != SET_OID) //QUERY_OID { status = NDIS_STATUS_NOT_ACCEPTED; diff --git a/core/rtw_ioctl_set.c b/core/rtw_ioctl_set.c index a11805a..d76033f 100755 --- a/core/rtw_ioctl_set.c +++ b/core/rtw_ioctl_set.c @@ -93,7 +93,7 @@ _func_enter_; phead = get_list_head(queue); plist = get_next(phead); - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("\n rtw_do_join: phead = %p; plist = %p \n\n\n", phead, plist)); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("\n rtw_do_join: phead = %p; plist = %p\n\n\n", phead, plist)); pmlmepriv->cur_network.join_res = -2; @@ -163,14 +163,14 @@ _func_enter_; if (rtw_createbss_cmd(padapter)!=_SUCCESS) { - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("***Error=>do_goin: rtw_createbss_cmd status FAIL*** \n ")); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("***Error=>do_goin: rtw_createbss_cmd status FAIL***\n ")); ret = _FALSE; goto exit; } pmlmepriv->to_join = _FALSE; - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("***Error=> rtw_select_and_join_from_scanned_queue FAIL under STA_Mode*** \n ")); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("***Error=> rtw_select_and_join_from_scanned_queue FAIL under STA_Mode***\n ")); } else @@ -201,7 +201,7 @@ _func_enter_; #endif ) { - //DBG_871X("rtw_do_join() when no desired bss in scanning queue \n"); + //DBG_871X("rtw_do_join() when no desired bss in scanning queue\n"); if ( _SUCCESS!=(ret=rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)) ){ pmlmepriv->to_join = _FALSE; RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("do_join(): site survey return error\n.")); @@ -829,7 +829,7 @@ _func_enter_; psecuritypriv->dot11PrivacyKeyIndex=keyid; - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_wep:security key material : %x %x %x %x %x %x %x %x %x %x %x %x %x \n", + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_wep:security key material : %x %x %x %x %x %x %x %x %x %x %x %x %x\n", psecuritypriv->dot11DefKey[keyid].skey[0],psecuritypriv->dot11DefKey[keyid].skey[1],psecuritypriv->dot11DefKey[keyid].skey[2], psecuritypriv->dot11DefKey[keyid].skey[3],psecuritypriv->dot11DefKey[keyid].skey[4],psecuritypriv->dot11DefKey[keyid].skey[5], psecuritypriv->dot11DefKey[keyid].skey[6],psecuritypriv->dot11DefKey[keyid].skey[7],psecuritypriv->dot11DefKey[keyid].skey[8], @@ -908,7 +908,7 @@ _func_enter_; // it must fail the request and return NDIS_STATUS_INVALID_DATA. RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_key: ((key->KeyIndex & 0x80000000) == 0)[=%d] ",(int)(key->KeyIndex & 0x80000000) == 0)); RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_key:((key->KeyIndex & 0x40000000) > 0)[=%d]" , (int)(key->KeyIndex & 0x40000000) > 0)); - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_key: key->KeyIndex=%d \n" ,(int)key->KeyIndex)); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_info_,("rtw_set_802_11_add_key: key->KeyIndex=%d\n" ,(int)key->KeyIndex)); ret= _FAIL; goto exit; } @@ -1017,7 +1017,7 @@ _func_enter_; break; default: padapter->securitypriv.dot11PrivacyAlgrthm=_NO_PRIVACY_; - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("Adapter->securitypriv.dot11PrivacyAlgrthm= %x key->KeyLength=%u \n", padapter->securitypriv.dot11PrivacyAlgrthm,key->KeyLength)); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("Adapter->securitypriv.dot11PrivacyAlgrthm= %x key->KeyLength=%u\n", padapter->securitypriv.dot11PrivacyAlgrthm,key->KeyLength)); break; } @@ -1096,7 +1096,7 @@ _func_enter_; wep->KeyIndex = keyindex ; wep->KeyLength = key->KeyLength; - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("OID_802_11_ADD_KEY:Before memcpy \n")); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("OID_802_11_ADD_KEY:Before memcpy\n")); _rtw_memcpy(wep->KeyMaterial, key->KeyMaterial, key->KeyLength); _rtw_memcpy(&(padapter->securitypriv.dot11DefKey[keyindex].skey[0]), key->KeyMaterial, key->KeyLength); diff --git a/core/rtw_iol.c b/core/rtw_iol.c index 1183e11..78932dc 100755 --- a/core/rtw_iol.c +++ b/core/rtw_iol.c @@ -274,7 +274,7 @@ void rtw_IOL_cmd_buf_dump(ADAPTER *Adapter,int buf_len,u8 *pbuf) if (j%32 ==0) printk("\n");j++; } printk("\n"); - printk("============= ioreg_cmd len = %d =============== \n",buf_len); + printk("============= ioreg_cmd len = %d ===============\n",buf_len); } diff --git a/core/rtw_led.c b/core/rtw_led.c index cb59e27..0d5024f 100755 --- a/core/rtw_led.c +++ b/core/rtw_led.c @@ -2341,7 +2341,7 @@ void BlinkHandler(PLED_871x pLed) break; default: - //RT_TRACE(COMP_LED, DBG_LOUD, ("BlinkWorkItemCallback 0x%x \n", pHalData->LedStrategy)); + //RT_TRACE(COMP_LED, DBG_LOUD, ("BlinkWorkItemCallback 0x%x\n", pHalData->LedStrategy)); //SwLedBlink(pLed); break; } diff --git a/core/rtw_mlme.c b/core/rtw_mlme.c index f2b3c87..194a45e 100755 --- a/core/rtw_mlme.c +++ b/core/rtw_mlme.c @@ -561,7 +561,7 @@ void rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork void rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 is_freeall)//(struct wlan_network *pnetwork, _queue *free_queue) { _func_enter_; - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_network==> ssid = %s \n\n" , pnetwork->network.Ssid.Ssid)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_network==> ssid = %s\n\n" , pnetwork->network.Ssid.Ssid)); _rtw_free_network(pmlmepriv, pnetwork, is_freeall); _func_exit_; } @@ -570,7 +570,7 @@ void rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *p void rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork ) { _func_enter_; - //RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_network==> ssid = %s \n\n" , pnetwork->network.Ssid.Ssid)); + //RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_network==> ssid = %s\n\n" , pnetwork->network.Ssid.Ssid)); _rtw_free_network_nolock(pmlmepriv, pnetwork); _func_exit_; } @@ -1102,7 +1102,7 @@ _func_enter_; // update IBSS_network 's timestamp if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) == _TRUE) { - //RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,"rtw_survey_event_callback : WIFI_ADHOC_MASTER_STATE \n\n"); + //RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,"rtw_survey_event_callback : WIFI_ADHOC_MASTER_STATE\n\n"); if (_rtw_memcmp(&(pmlmepriv->cur_network.network.MacAddress), pnetwork->MacAddress, ETH_ALEN)) { struct wlan_network* ibss_wlan = NULL; @@ -1413,7 +1413,7 @@ _func_enter_; } else { - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_assoc_resources : pwlan== NULL \n\n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("rtw_free_assoc_resources : pwlan== NULL\n\n")); } @@ -1659,7 +1659,7 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl preorder_ctrl->enable = _FALSE; preorder_ctrl->indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, preorder_ctrl->indicate_seq); #endif preorder_ctrl->wend_b= 0xffff; @@ -1677,7 +1677,7 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl preorder_ctrl->enable = _FALSE; preorder_ctrl->indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, preorder_ctrl->indicate_seq); #endif preorder_ctrl->wend_b= 0xffff; @@ -1836,7 +1836,7 @@ _func_enter_; _enter_critical_bh(&pmlmepriv->lock, &irqL); - RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("\n rtw_joinbss_event_callback !! _enter_critical \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("\n rtw_joinbss_event_callback !! _enter_critical\n")); if (pnetwork->join_res > 0) { @@ -1918,7 +1918,7 @@ _func_enter_; //s5. Cancle assoc_timer _cancel_timer(&pmlmepriv->assoc_timer, &timer_cancelled); - RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("Cancle assoc_timer \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("Cancle assoc_timer\n")); } else @@ -1968,7 +1968,7 @@ _func_enter_; } else { - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("Set Assoc_Timer = 1; can't find match ssid in scanned_q \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("Set Assoc_Timer = 1; can't find match ssid in scanned_q\n")); #endif _set_timer(&pmlmepriv->assoc_timer, 1); @@ -2136,7 +2136,7 @@ _func_enter_; { //the sta have been in sta_info_queue => do nothing - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("Error: rtw_stassoc_event_callback: sta has been in sta_hash_queue \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("Error: rtw_stassoc_event_callback: sta has been in sta_hash_queue\n")); goto exit; //(between drv has received this event before and fw have not yet to set key to CAM_ENTRY) } @@ -2317,7 +2317,7 @@ _func_enter_; if (rtw_createbss_cmd(adapter)!=_SUCCESS) { - RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("***Error=>stadel_event_callback: rtw_createbss_cmd status FAIL*** \n ")); + RT_TRACE(_module_rtl871x_ioctl_set_c_,_drv_err_,("***Error=>stadel_event_callback: rtw_createbss_cmd status FAIL***\n ")); } @@ -2473,7 +2473,7 @@ static void rtw_auto_scan_handler(_adapter *padapter) /* if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE) { - DBG_871X("exit %s when _FW_UNDER_SURVEY|_FW_UNDER_LINKING -> \n", __FUNCTION__); + DBG_871X("exit %s when _FW_UNDER_SURVEY|_FW_UNDER_LINKING ->\n", __FUNCTION__); return; } @@ -2978,7 +2978,7 @@ _func_enter_; &&((_rtw_memcmp(dst_ssid, src_ssid, pmlmepriv->assoc_ssid.SsidLength)) == _TRUE) ) { - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("dst_ssid=%s, src_ssid=%s \n", dst_ssid, src_ssid)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("dst_ssid=%s, src_ssid=%s\n", dst_ssid, src_ssid)); #ifdef CONFIG_ANTENNA_DIVERSITY rtw_hal_get_def_var(adapter, HAL_DEF_CURRENT_ANTENNA, &(CurrentAntenna)); DBG_871X("#### dst_ssid=(%s) Opt_Ant_(%s) , cur_Ant(%s)\n", dst_ssid, @@ -3141,11 +3141,11 @@ _func_enter_; if (psecuritypriv->dot11AuthAlgrthm ==dot11AuthAlgrthm_8021X){ psetkeyparm->algorithm=(unsigned char)psecuritypriv->dot118021XGrpPrivacy; - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=(unsigned char)psecuritypriv->dot118021XGrpPrivacy=%d \n", psetkeyparm->algorithm)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=(unsigned char)psecuritypriv->dot118021XGrpPrivacy=%d\n", psetkeyparm->algorithm)); } else{ psetkeyparm->algorithm=(u8)psecuritypriv->dot11PrivacyAlgrthm; - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=(u8)psecuritypriv->dot11PrivacyAlgrthm=%d \n", psetkeyparm->algorithm)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=(u8)psecuritypriv->dot11PrivacyAlgrthm=%d\n", psetkeyparm->algorithm)); } psetkeyparm->keyid = (u8)keyid;//0~3 @@ -3159,7 +3159,7 @@ _func_enter_; } #endif DBG_871X("==> rtw_set_key algorithm(%x),keyid(%x),key_mask(%x)\n",psetkeyparm->algorithm,psetkeyparm->keyid,pmlmepriv->key_mask); - RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=%d psetkeyparm->keyid=(u8)keyid=%d \n",psetkeyparm->algorithm, keyid)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,("\n rtw_set_key: psetkeyparm->algorithm=%d psetkeyparm->keyid=(u8)keyid=%d\n",psetkeyparm->algorithm, keyid)); switch (psetkeyparm->algorithm){ @@ -3794,7 +3794,7 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len) preorder_ctrl->enable = _FALSE; preorder_ctrl->indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, preorder_ctrl->indicate_seq); #endif preorder_ctrl->wend_b= 0xffff; @@ -3812,7 +3812,7 @@ void rtw_update_ht_cap(_adapter *padapter, u8 *pie, uint ie_len) preorder_ctrl->enable = _FALSE; preorder_ctrl->indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, preorder_ctrl->indicate_seq); #endif preorder_ctrl->wend_b= 0xffff; diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index b221feb..0485f62 100755 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -2659,7 +2659,7 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame) preorder_ctrl->enable = _FALSE; preorder_ctrl->indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, preorder_ctrl->indicate_seq); #endif } @@ -8506,7 +8506,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr) psta->recvreorder_ctrl[tid].enable = _FALSE; psta->recvreorder_ctrl[tid].indicate_seq = 0xffff; #ifdef DBG_RX_SEQ - DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u \n", __FUNCTION__, __LINE__, + DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__, psta->recvreorder_ctrl[tid].indicate_seq); #endif } @@ -10293,7 +10293,7 @@ void _linked_rx_signal_strehgth_display(_adapter *padapter) DBG_871X("UndecoratedSmoothedPWDB:%d\n",UndecoratedSmoothedPWDB); DBG_871X("Rx RSSI:%d\n",padapter->recvpriv.rssi); DBG_871X("Rx Signal_strength:%d\n",padapter->recvpriv.signal_strength); - DBG_871X("Rx Signal_qual:%d \n",padapter->recvpriv.signal_qual); + DBG_871X("Rx Signal_qual:%d\n",padapter->recvpriv.signal_qual); if ( check_fwstate( &padapter->mlmepriv, _FW_LINKED ) ) { DBG_871X("bw mode: %d, channel: %d\n", padapter->mlmeextpriv.cur_bwmode, padapter->mlmeextpriv.cur_channel ); diff --git a/core/rtw_mp_ioctl.c b/core/rtw_mp_ioctl.c index 4bc8b0b..baf22f8 100755 --- a/core/rtw_mp_ioctl.c +++ b/core/rtw_mp_ioctl.c @@ -541,7 +541,7 @@ _func_enter_; if (poid_par_priv->information_buf_len == sizeof(ULONG)) { *(ULONG*)poid_par_priv->information_buf = Adapter->mppriv.rx_pktcount; *poid_par_priv->bytes_rw = poid_par_priv->information_buf_len; - RT_TRACE(_module_mp_, _drv_alert_, ("recv_ok:%d \n",Adapter->mppriv.rx_pktcount)); + RT_TRACE(_module_mp_, _drv_alert_, ("recv_ok:%d\n",Adapter->mppriv.rx_pktcount)); } else { status = NDIS_STATUS_INVALID_LENGTH; } @@ -566,7 +566,7 @@ _func_enter_; if (poid_par_priv->information_buf_len == sizeof(ULONG)) { *(ULONG*)poid_par_priv->information_buf = Adapter->mppriv.rx_crcerrpktcount; *poid_par_priv->bytes_rw = poid_par_priv->information_buf_len; - RT_TRACE(_module_mp_, _drv_alert_, ("recv_err:%d \n",Adapter->mppriv.rx_crcerrpktcount)); + RT_TRACE(_module_mp_, _drv_alert_, ("recv_err:%d\n",Adapter->mppriv.rx_crcerrpktcount)); } else { status = NDIS_STATUS_INVALID_LENGTH; } @@ -1957,7 +1957,7 @@ NDIS_STATUS oid_rt_pro_add_sta_info_hdl(struct oid_par_priv *poid_par_priv) } } else { //(between drv has received this event before and fw have not yet to set key to CAM_ENTRY) RT_TRACE(_module_rtl871x_ioctl_c_, _drv_err_, - ("Error: OID_RT_PRO_ADD_STA_INFO: sta has been in sta_hash_queue \n")); + ("Error: OID_RT_PRO_ADD_STA_INFO: sta has been in sta_hash_queue\n")); } _irqlevel_changed_(&oldirql, RAISE); @@ -2025,7 +2025,7 @@ static u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var) #if 0 if (offset <=100){ //For setting data rate and query data rate if (offset==100){ //For query data rate - RT_TRACE(_module_mp_, _drv_emerg_, ("\n mp_query_drv_var: offset(%d): query rate=0x%.2x \n",offset,padapter->registrypriv.tx_rate)); + RT_TRACE(_module_mp_, _drv_emerg_, ("\n mp_query_drv_var: offset(%d): query rate=0x%.2x\n",offset,padapter->registrypriv.tx_rate)); var=padapter->registrypriv.tx_rate; } @@ -2033,7 +2033,7 @@ static u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var) padapter->registrypriv.tx_rate=offset; var=padapter->registrypriv.tx_rate; padapter->registrypriv.use_rate=_TRUE; - RT_TRACE(_module_mp_, _drv_emerg_, ("\n mp_query_drv_var: offset(%d): set rate=0x%.2x \n",offset,padapter->registrypriv.tx_rate)); + RT_TRACE(_module_mp_, _drv_emerg_, ("\n mp_query_drv_var: offset(%d): set rate=0x%.2x\n",offset,padapter->registrypriv.tx_rate)); } else{ //not use the data rate padapter->registrypriv.use_rate=_FALSE; @@ -2043,22 +2043,22 @@ static u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var) else if (offset<=110){ //for setting debug level RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var: offset(%d) for set debug level\n",offset)); if (offset==110){ //For query data rate - RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var: offset(%d): query dbg level=0x%.2x \n",offset,padapter->registrypriv.dbg_level)); + RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var: offset(%d): query dbg level=0x%.2x\n",offset,padapter->registrypriv.dbg_level)); padapter->registrypriv.dbg_level=GlobalDebugLevel; var=padapter->registrypriv.dbg_level; } else if (offset<110 && offset>100){ - RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var: offset(%d): set dbg level=0x%.2x \n",offset,offset-100)); + RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var: offset(%d): set dbg level=0x%.2x\n",offset,offset-100)); padapter->registrypriv.dbg_level=GlobalDebugLevel=offset-100; var=padapter->registrypriv.dbg_level; - RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var(_drv_emerg_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_alert_, (" mp_query_drv_var(_drv_alert_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_crit_, (" mp_query_drv_var(_drv_crit_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_err_, (" mp_query_drv_var(_drv_err_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_warning_, (" mp_query_drv_var(_drv_warning_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_notice_, (" mp_query_drv_var(_drv_notice_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_info_, (" mp_query_drv_var(_drv_info_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); - RT_TRACE(_module_mp_, _drv_debug_, (" mp_query_drv_var(_drv_debug_): offset(%d): set dbg level=0x%.2x \n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_emerg_, (" mp_query_drv_var(_drv_emerg_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_alert_, (" mp_query_drv_var(_drv_alert_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_crit_, (" mp_query_drv_var(_drv_crit_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_err_, (" mp_query_drv_var(_drv_err_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_warning_, (" mp_query_drv_var(_drv_warning_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_notice_, (" mp_query_drv_var(_drv_notice_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_info_, (" mp_query_drv_var(_drv_info_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); + RT_TRACE(_module_mp_, _drv_debug_, (" mp_query_drv_var(_drv_debug_): offset(%d): set dbg level=0x%.2x\n",offset,GlobalDebugLevel)); } } @@ -2116,7 +2116,7 @@ static u32 mp_query_drv_var(_adapter *padapter, u8 offset, u32 var) if (offset==127){ // prnt_dbg_comp=padapter->registrypriv.dbg_component= GlobalDebugComponents; var=(u32)(padapter->registrypriv.dbg_component); - RT_TRACE(0xffffffff, _drv_emerg_, ("2: mp_query_drv_var: offset(%d;0x%x):for query dbg conpoment=0x%x(l) 0x%x(h) GlobalDebugComponents=0x%x(l) 0x%x(h) \n",offset,offset,padapter->registrypriv.dbg_component,prnt_dbg_comp)); + RT_TRACE(0xffffffff, _drv_emerg_, ("2: mp_query_drv_var: offset(%d;0x%x):for query dbg conpoment=0x%x(l) 0x%x(h) GlobalDebugComponents=0x%x(l) 0x%x(h)\n",offset,offset,padapter->registrypriv.dbg_component,prnt_dbg_comp)); prnt_dbg_comp=GlobalDebugComponents; RT_TRACE(0xffffffff, _drv_emerg_, ("2-1: mp_query_drv_var: offset(%d;0x%x):for query dbg conpoment=0x%x(l) 0x%x(h) GlobalDebugComponents=0x%x(l) 0x%x(h)\n",offset,offset,padapter->registrypriv.dbg_component,prnt_dbg_comp)); prnt_dbg_comp=GlobalDebugComponents=padapter->registrypriv.dbg_component; @@ -2240,12 +2240,12 @@ NDIS_STATUS oid_rt_pro_rx_packet_type_hdl(struct oid_par_priv *poid_par_priv) if (poid_par_priv->type_of_oid == SET_OID) { Adapter->mppriv.rx_with_status = *(UCHAR *) poid_par_priv->information_buf; - RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_, ("Query Information, OID_RT_PRO_RX_PACKET_TYPE:%d \n",\ + RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_, ("Query Information, OID_RT_PRO_RX_PACKET_TYPE:%d\n",\ Adapter->mppriv.rx_with_status)); //*(u32 *)&Adapter->eeprompriv.mac_addr[0]=rtw_read32(Adapter, 0x10250050); //*(u16 *)&Adapter->eeprompriv.mac_addr[4]=rtw_read16(Adapter, 0x10250054); - RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_,("MAC addr=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n", + RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_,("MAC addr=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n", Adapter->eeprompriv.mac_addr[0],Adapter->eeprompriv.mac_addr[1],Adapter->eeprompriv.mac_addr[2],\ Adapter->eeprompriv.mac_addr[3],Adapter->eeprompriv.mac_addr[4],Adapter->eeprompriv.mac_addr[5])); @@ -2254,12 +2254,12 @@ NDIS_STATUS oid_rt_pro_rx_packet_type_hdl(struct oid_par_priv *poid_par_priv) *(UCHAR *) poid_par_priv->information_buf = Adapter->mppriv.rx_with_status; *poid_par_priv->bytes_rw = poid_par_priv->information_buf_len; - RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_, ("Query Information, OID_RT_PRO_RX_PACKET_TYPE:%d \n", \ + RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_, ("Query Information, OID_RT_PRO_RX_PACKET_TYPE:%d\n", \ Adapter->mppriv.rx_with_status)); //*(u32 *)&Adapter->eeprompriv.mac_addr[0]=rtw_read32(Adapter, 0x10250050); //*(u16 *)&Adapter->eeprompriv.mac_addr[4]=rtw_read16(Adapter, 0x10250054); - RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_,("MAC addr=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n", + RT_TRACE(_module_rtl871x_ioctl_c_,_drv_err_,("MAC addr=0x%x:0x%x:0x%x:0x%x:0x%x:0x%x \n", Adapter->eeprompriv.mac_addr[0],Adapter->eeprompriv.mac_addr[1],Adapter->eeprompriv.mac_addr[2],\ Adapter->eeprompriv.mac_addr[3],Adapter->eeprompriv.mac_addr[4],Adapter->eeprompriv.mac_addr[5])); } diff --git a/core/rtw_p2p.c b/core/rtw_p2p.c index a659818..3778cb4 100755 --- a/core/rtw_p2p.c +++ b/core/rtw_p2p.c @@ -3576,7 +3576,7 @@ static void ro_ch_timer_process (void *FunctionContext) _adapter *adapter = (_adapter *)FunctionContext; struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(adapter->rtw_wdev); - //printk("%s \n", __FUNCTION__); + //printk("%s\n", __FUNCTION__); #ifdef CONFIG_CONCURRENT_MODE ATOMIC_SET(&pwdev_priv->ro_ch_to, 1); diff --git a/core/rtw_pwrctrl.c b/core/rtw_pwrctrl.c index a7ed7d1..3b39133 100755 --- a/core/rtw_pwrctrl.c +++ b/core/rtw_pwrctrl.c @@ -229,7 +229,7 @@ void rtw_ps_processor(_adapter*padapter) pwrpriv->ps_flag = _TRUE; rfpwrstate = RfOnOffDetect(padapter); - DBG_871X("@@@@- #1 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off"); + DBG_871X("@@@@- #1 %s==> rfstate:%s\n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off"); if (rfpwrstate!= pwrpriv->rf_pwrstate) { if (rfpwrstate == rf_off) @@ -248,7 +248,7 @@ void rtw_ps_processor(_adapter*padapter) #endif //CONFIG_AUTOSUSPEND { rfpwrstate = RfOnOffDetect(padapter); - DBG_871X("@@@@- #2 %s==> rfstate:%s \n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off"); + DBG_871X("@@@@- #2 %s==> rfstate:%s\n",__FUNCTION__,(rfpwrstate==rf_on)?"rf_on":"rf_off"); if (rfpwrstate!= pwrpriv->rf_pwrstate) { @@ -1651,7 +1651,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller) #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33)) if (usb_autopm_get_interface(adapter_to_dvobj(padapter)->pusbintf) < 0) { - DBG_871X( "can't get autopm: \n"); + DBG_871X( "can't get autopm:\n"); } #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,20)) usb_autopm_disable(adapter_to_dvobj(padapter)->pusbintf); diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 4062503..52ab217 100755 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -517,7 +517,7 @@ _func_enter_; //rxdata_key_idx =( ((iv[3])>>6)&0x3) ; mickey=&psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; - RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n recvframe_chkmic: bcmc key \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("\n recvframe_chkmic: bcmc key\n")); //DBG_871X("\n recvframe_chkmic: bcmc key psecuritypriv->dot118021XGrpKeyid(%d),pmlmeinfo->key_index(%d) ,recv key_id(%d)\n", // psecuritypriv->dot118021XGrpKeyid,pmlmeinfo->key_index,rxdata_key_idx); @@ -531,7 +531,7 @@ _func_enter_; } else{ mickey=&stainfo->dot11tkiprxmickey.skey[0]; - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n recvframe_chkmic: unicast key \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n recvframe_chkmic: unicast key\n")); } datalen=precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;//icv_len included the mic code @@ -574,7 +574,7 @@ _func_enter_; *(precvframe->u.hdr.rx_data+i+6),*(precvframe->u.hdr.rx_data+i+7))); } RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n ======demp packet end [len=%d]======\n",precvframe->u.hdr.len)); - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n hrdlen=%d, \n",prxattrib->hdrlen)); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n hrdlen=%d,\n",prxattrib->hdrlen)); } RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("ra=0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x psecuritypriv->binstallGrpkey=%d ", @@ -647,7 +647,7 @@ _func_enter_; if (prxattrib->key_index > WEP_KEYS) { - DBG_871X("prxattrib->key_index(%d) > WEP_KEYS \n", prxattrib->key_index); + DBG_871X("prxattrib->key_index(%d) > WEP_KEYS\n", prxattrib->key_index); switch (prxattrib->encrypt){ case _WEP40_: @@ -1152,7 +1152,7 @@ _func_enter_; // filter packets that SA is myself or multicast or broadcast if (_rtw_memcmp(myhwaddr, pattrib->src, ETH_ALEN)){ - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" SA==myself \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" SA==myself\n")); ret= _FAIL; goto exit; } @@ -1366,7 +1366,7 @@ _func_enter_; // filter packets that SA is myself or multicast or broadcast if (_rtw_memcmp(myhwaddr, pattrib->src, ETH_ALEN)){ - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" SA==myself \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" SA==myself\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s SA="MAC_FMT", myhwaddr="MAC_FMT"\n", __FUNCTION__, MAC_ARG(pattrib->src), MAC_ARG(myhwaddr)); @@ -1911,7 +1911,7 @@ _func_enter_; if (psta==NULL){ - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" after to_fr_ds_chk; psta==NULL \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" after to_fr_ds_chk; psta==NULL\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s psta == NULL\n", __func__); #endif @@ -2095,33 +2095,33 @@ _func_enter_; rtw_hal_get_def_var(adapter, HAL_DEF_DBG_DUMP_RXPKT, &(bDumpRxPkt)); if (bDumpRxPkt ==1){//dump all rx packets int i; - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); for (i=0; i<64;i=i+8) DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:\n", *(ptr+i), *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7)); - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); } else if (bDumpRxPkt ==2){ if (type== WIFI_MGT_TYPE){ int i; - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); for (i=0; i<64;i=i+8) DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:\n", *(ptr+i), *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7)); - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); } } else if (bDumpRxPkt ==3){ if (type== WIFI_DATA_TYPE){ int i; - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); for (i=0; i<64;i=i+8) DBG_871X("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:\n", *(ptr+i), *(ptr+i+1), *(ptr+i+2) ,*(ptr+i+3) ,*(ptr+i+4),*(ptr+i+5), *(ptr+i+6), *(ptr+i+7)); - DBG_871X("############################# \n"); + DBG_871X("#############################\n"); } } } @@ -2170,7 +2170,7 @@ _func_enter_; if (rtw_wapi_drop_for_key_absent(adapter,GetAddr2Ptr(ptr))){ retval=_FAIL; - WAPI_TRACE(WAPI_RX,"drop for key absent for rx \n"); + WAPI_TRACE(WAPI_RX,"drop for key absent for rx\n"); break; } } @@ -3469,7 +3469,7 @@ int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ctrl *pre // This protect buffer from overflow. if (index >= REORDER_WIN_SIZE) { - RT_ASSERT(FALSE, ("IndicateRxReorderList(): Buffer overflow!! \n")); + RT_ASSERT(FALSE, ("IndicateRxReorderList(): Buffer overflow!!\n")); bPktInBuf = TRUE; break; } @@ -3505,7 +3505,7 @@ int recv_indicatepkts_in_order(_adapter *padapter, struct recv_reorder_ctrl *pre //pTS->RxIndicateState = RXTS_INDICATE_PROCESSING; // Indicate packets - //RT_ASSERT((index<=REORDER_WIN_SIZE), ("RxReorderIndicatePacket(): Rx Reorder buffer full!! \n")); + //RT_ASSERT((index<=REORDER_WIN_SIZE), ("RxReorderIndicatePacket(): Rx Reorder buffer full!!\n")); //indicate this recv_frame @@ -3815,7 +3815,7 @@ int process_recv_indicatepkts(_adapter *padapter, union recv_frame *prframe) retval=wlanhdr_to_ethhdr (prframe); if (retval != _SUCCESS) { - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("wlanhdr_to_ethhdr: drop pkt \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("wlanhdr_to_ethhdr: drop pkt\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s wlanhdr_to_ethhdr error!\n", __FUNCTION__); #endif @@ -3867,7 +3867,7 @@ int recv_func_prehandle(_adapter *padapter, union recv_frame *rframe) padapter->mppriv.rx_pktcount++; if (check_fwstate(pmlmepriv, WIFI_MP_LPBK_STATE) == _FALSE) { - RT_TRACE(_module_rtl871x_recv_c_, _drv_alert_, ("MP - Not in loopback mode , drop pkt \n")); + RT_TRACE(_module_rtl871x_recv_c_, _drv_alert_, ("MP - Not in loopback mode , drop pkt\n")); ret = _FAIL; rtw_free_recvframe(rframe, pfree_recv_queue);//free this recv_frame goto exit; @@ -3957,7 +3957,7 @@ int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe) prframe=portctrl(padapter, prframe); if (prframe == NULL) { - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("portctrl: drop pkt \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("portctrl: drop pkt\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s portctrl: drop pkt\n", __FUNCTION__); #endif @@ -3981,7 +3981,7 @@ int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe) ret = process_recv_indicatepkts(padapter, prframe); if (ret != _SUCCESS) { - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recv_func: process_recv_indicatepkts fail! \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recv_func: process_recv_indicatepkts fail!\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s process_recv_indicatepkts fail!\n", __FUNCTION__); #endif @@ -3994,7 +3994,7 @@ int recv_func_posthandle(_adapter *padapter, union recv_frame *prframe) ret = wlanhdr_to_ethhdr (prframe); if (ret != _SUCCESS) { - RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("wlanhdr_to_ethhdr: drop pkt \n")); + RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("wlanhdr_to_ethhdr: drop pkt\n")); #ifdef DBG_RX_DROP_FRAME DBG_871X("DBG_RX_DROP_FRAME %s wlanhdr_to_ethhdr: drop pkt\n", __FUNCTION__); #endif diff --git a/core/rtw_security.c b/core/rtw_security.c index be2a42f..a8f23ac 100755 --- a/core/rtw_security.c +++ b/core/rtw_security.c @@ -1872,9 +1872,9 @@ _func_enter_; for (i=0;i<8;i++){ if (pframe[hdrlen+8+plen-8+i] != message[hdrlen+8+plen-8+i]) { - RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x) \n", + RT_TRACE(_module_rtl871x_security_c_,_drv_err_,("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x)\n", i,pframe[hdrlen+8+plen-8+i],message[hdrlen+8+plen-8+i])); - DBG_871X("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x) \n", + DBG_871X("aes_decipher:mic check error mic[%d]: pframe(%x) != message(%x)\n", i,pframe[hdrlen+8+plen-8+i],message[hdrlen+8+plen-8+i]); res = _FAIL; } @@ -1924,7 +1924,7 @@ _func_enter_; prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey; if (psecuritypriv->dot118021XGrpKeyid != prxattrib->key_index) { - DBG_871X("not match packet_index=%d, install_index=%d \n" + DBG_871X("not match packet_index=%d, install_index=%d\n" , prxattrib->key_index, psecuritypriv->dot118021XGrpKeyid); res=_FAIL; goto exit; diff --git a/core/rtw_sreset.c b/core/rtw_sreset.c index 025e663..45aa9cb 100755 --- a/core/rtw_sreset.c +++ b/core/rtw_sreset.c @@ -66,7 +66,7 @@ u8 sreset_get_wifi_status(_adapter *padapter) if (WIFI_STATUS_SUCCESS !=psrtpriv->Wifi_Error_Status) { - DBG_8192C("==>%s error_status(0x%x) \n",__FUNCTION__,psrtpriv->Wifi_Error_Status); + DBG_8192C("==>%s error_status(0x%x)\n",__FUNCTION__,psrtpriv->Wifi_Error_Status); status = (psrtpriv->Wifi_Error_Status &( ~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL))); } DBG_8192C("==> %s wifi_status(0x%x)\n",__FUNCTION__,status); diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index 9f37fed..bdb1608 100755 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -387,7 +387,7 @@ _func_enter_; _rtw_memcpy( &psta->sta_recvpriv.rxcache.tid_rxseq[ i ], &wRxSeqInitialValue, 2 ); } - RT_TRACE(_module_rtl871x_sta_mgt_c_,_drv_info_,("alloc number_%d stainfo with hwaddr = %x %x %x %x %x %x \n", + RT_TRACE(_module_rtl871x_sta_mgt_c_,_drv_info_,("alloc number_%d stainfo with hwaddr = %x %x %x %x %x %x \n", pstapriv->asoc_sta_count , hwaddr[0], hwaddr[1], hwaddr[2],hwaddr[3],hwaddr[4],hwaddr[5])); init_addba_retry_timer(pstapriv->padapter, psta); @@ -512,7 +512,7 @@ _func_enter_; _exit_critical_bh(&pxmitpriv->lock, &irqL0); rtw_list_delete(&psta->hash_list); - RT_TRACE(_module_rtl871x_sta_mgt_c_,_drv_err_,("\n free number_%d stainfo with hwaddr = 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",pstapriv->asoc_sta_count , psta->hwaddr[0], psta->hwaddr[1], psta->hwaddr[2],psta->hwaddr[3],psta->hwaddr[4],psta->hwaddr[5])); + RT_TRACE(_module_rtl871x_sta_mgt_c_,_drv_err_,("\n free number_%d stainfo with hwaddr = 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x \n",pstapriv->asoc_sta_count , psta->hwaddr[0], psta->hwaddr[1], psta->hwaddr[2],psta->hwaddr[3],psta->hwaddr[4],psta->hwaddr[5])); pstapriv->asoc_sta_count --; diff --git a/core/rtw_tdls.c b/core/rtw_tdls.c index 3079994..bfa929a 100755 --- a/core/rtw_tdls.c +++ b/core/rtw_tdls.c @@ -441,7 +441,7 @@ void rtw_tdls_process_wfd_ie(struct tdls_info *ptdlsinfo, u8 *ptr, u8 length) if ( attr_contentlen ) { _rtw_memcpy(ptdlsinfo->wfd_info->peer_ip_address, ( attr_content + 1 ), 4); - DBG_871X( "[%s] Peer IP = %02u.%02u.%02u.%02u \n", __FUNCTION__, + DBG_871X( "[%s] Peer IP = %02u.%02u.%02u.%02u\n", __FUNCTION__, ptdlsinfo->wfd_info->peer_ip_address[0], ptdlsinfo->wfd_info->peer_ip_address[1], ptdlsinfo->wfd_info->peer_ip_address[2], ptdlsinfo->wfd_info->peer_ip_address[3] ); @@ -1865,7 +1865,7 @@ sint On_TDLS_Ch_Switch_Rsp(_adapter *adapter, union recv_frame *precv_frame) ptdls_sta->option=7; rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_OFF_CH); }else{ - DBG_871X("receive unsolicited channel switch response \n"); + DBG_871X("receive unsolicited channel switch response\n"); rtw_tdls_cmd(adapter, ptdls_sta->hwaddr, TDLS_CS_OFF); } return _FAIL; @@ -2185,7 +2185,7 @@ void rtw_build_tdls_setup_rsp_ies(_adapter * padapter, struct xmit_frame * pxmit if (ptdls_sta->stat_code!=0) //invalid setup request { - DBG_871X("ptdls_sta->stat_code:%04x \n", ptdls_sta->stat_code); + DBG_871X("ptdls_sta->stat_code:%04x\n", ptdls_sta->stat_code); return; } diff --git a/core/rtw_wapi.c b/core/rtw_wapi.c index eb1a545..972ccaf 100755 --- a/core/rtw_wapi.c +++ b/core/rtw_wapi.c @@ -390,7 +390,7 @@ u8 rtw_wapi_is_wai_packet(_adapter* padapter,u8 *pkt_data) //YJ,add,091103. Data frame may also have skb->data[30]=0x88 and skb->data[31]=0xb4. if ((pkt_data[1]&0x40) !=0) { - DBG_871X("data is privacy \n"); + DBG_871X("data is privacy\n"); return 0; } @@ -499,14 +499,14 @@ u8 rtw_wapi_check_for_drop( if (precv_hdr->bIsWaiPacket== 0x8) { - DBG_871X("rtw_wapi_check_for_drop: dump packet \n"); + DBG_871X("rtw_wapi_check_for_drop: dump packet\n"); for (i=0;i<50;i++) { DBG_871X("%02X ",ptr[i]); if ((i+1) %8 ==0) DBG_871X("\n"); } - DBG_871X("\n rtw_wapi_check_for_drop: dump packet \n"); + DBG_871X("\n rtw_wapi_check_for_drop: dump packet\n"); for (i=0;i<16;i++) { @@ -516,7 +516,7 @@ u8 rtw_wapi_check_for_drop( if (i== 16) { - WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: drop with zero BKID \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: drop with zero BKID\n"); return true; } else @@ -544,12 +544,12 @@ u8 rtw_wapi_check_for_drop( { if (IS_MCAST(precv_hdr->attrib.ra)) { - WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: multicast case \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: multicast case\n"); pLastRecvPN = pWapiSta->lastRxMulticastPN; } else { - WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: unicast case \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_check_for_drop: unicast case\n"); switch (precv_hdr->UserPriority) { case 0: @@ -569,7 +569,7 @@ u8 rtw_wapi_check_for_drop( pLastRecvPN = pWapiSta->lastRxUnicastPNVOQueue; break; default: - WAPI_TRACE(WAPI_ERR,"%s: Unknown TID \n",__FUNCTION__); + WAPI_TRACE(WAPI_ERR,"%s: Unknown TID\n",__FUNCTION__); break; } } @@ -738,41 +738,41 @@ void rtw_wapi_return_one_sta_info(_adapter *padapter, u8 *MacAddr) } - WAPI_TRACE(WAPI_API, " %s: after clear bkid \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: after clear bkid\n", __FUNCTION__); //Remove STA info if (list_empty(&(pWapiInfo->wapiSTAUsedList))){ - WAPI_TRACE(WAPI_API, " %s: wapiSTAUsedList is null \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: wapiSTAUsedList is null\n", __FUNCTION__); return; }else{ - WAPI_TRACE(WAPI_API, " %s: wapiSTAUsedList is not null \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: wapiSTAUsedList is not null\n", __FUNCTION__); #if 0 pWapiStaInfo=(PRT_WAPI_STA_INFO)list_entry((pWapiInfo->wapiSTAUsedList.next),RT_WAPI_STA_INFO,list); list_for_each_entry(pWapiStaInfo, &(pWapiInfo->wapiSTAUsedList), list) { - DBG_871X("MAC Addr %02x-%02x-%02x-%02x-%02x-%02x \n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); + DBG_871X("MAC Addr %02x-%02x-%02x-%02x-%02x-%02x\n",MacAddr[0],MacAddr[1],MacAddr[2],MacAddr[3],MacAddr[4],MacAddr[5]); - DBG_871X("peer Addr %02x-%02x-%02x-%02x-%02x-%02x \n",pWapiStaInfo->PeerMacAddr[0],pWapiStaInfo->PeerMacAddr[1],pWapiStaInfo->PeerMacAddr[2],pWapiStaInfo->PeerMacAddr[3],pWapiStaInfo->PeerMacAddr[4],pWapiStaInfo->PeerMacAddr[5]); + DBG_871X("peer Addr %02x-%02x-%02x-%02x-%02x-%02x\n",pWapiStaInfo->PeerMacAddr[0],pWapiStaInfo->PeerMacAddr[1],pWapiStaInfo->PeerMacAddr[2],pWapiStaInfo->PeerMacAddr[3],pWapiStaInfo->PeerMacAddr[4],pWapiStaInfo->PeerMacAddr[5]); if (pWapiStaInfo == NULL) { - WAPI_TRACE(WAPI_API, " %s: pWapiStaInfo == NULL Case \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: pWapiStaInfo == NULL Case\n", __FUNCTION__); return; } if (pWapiStaInfo->PeerMacAddr == NULL) { - WAPI_TRACE(WAPI_API, " %s: pWapiStaInfo->PeerMacAddr == NULL Case \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: pWapiStaInfo->PeerMacAddr == NULL Case\n", __FUNCTION__); return; } if (MacAddr == NULL) { - WAPI_TRACE(WAPI_API, " %s: MacAddr == NULL Case \n", __FUNCTION__); + WAPI_TRACE(WAPI_API, " %s: MacAddr == NULL Case\n", __FUNCTION__); return; } @@ -792,7 +792,7 @@ void rtw_wapi_return_one_sta_info(_adapter *padapter, u8 *MacAddr) { pWapiStaInfo = (PRT_WAPI_STA_INFO)list_entry(pWapiInfo->wapiSTAUsedList.next, RT_WAPI_STA_INFO, list); - DBG_871X("peer Addr %02x-%02x-%02x-%02x-%02x-%02x \n",pWapiStaInfo->PeerMacAddr[0],pWapiStaInfo->PeerMacAddr[1],pWapiStaInfo->PeerMacAddr[2],pWapiStaInfo->PeerMacAddr[3],pWapiStaInfo->PeerMacAddr[4],pWapiStaInfo->PeerMacAddr[5]); + DBG_871X("peer Addr %02x-%02x-%02x-%02x-%02x-%02x\n",pWapiStaInfo->PeerMacAddr[0],pWapiStaInfo->PeerMacAddr[1],pWapiStaInfo->PeerMacAddr[2],pWapiStaInfo->PeerMacAddr[3],pWapiStaInfo->PeerMacAddr[4],pWapiStaInfo->PeerMacAddr[5]); list_del_init(&pWapiStaInfo->list); memset(pWapiStaInfo->PeerMacAddr,0,ETH_ALEN); @@ -1003,7 +1003,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) if (bAuthenticator){ //authenticator memcpy(pWapiSta->lastTxUnicastPN,WapiAEPNInitialValueSrc,16); if (!bUpdate) { //first - WAPI_TRACE(WAPI_INIT,"AE fisrt set usk \n"); + WAPI_TRACE(WAPI_INIT,"AE fisrt set usk\n"); pWapiSta->wapiUsk.bSet = true; memcpy(pWapiSta->wapiUsk.dataKey,data+10,16); memcpy(pWapiSta->wapiUsk.micKey,data+26,16); @@ -1014,7 +1014,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) } else //update { - WAPI_TRACE(WAPI_INIT, "AE update usk \n"); + WAPI_TRACE(WAPI_INIT, "AE update usk\n"); pWapiSta->wapiUskUpdate.bSet = true; pWapiSta->bAuthenticatorInUpdata = true; memcpy(pWapiSta->wapiUskUpdate.dataKey,data+10,16); @@ -1030,7 +1030,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) } else{ if (!bUpdate){ - WAPI_TRACE(WAPI_INIT,"ASUE fisrt set usk \n"); + WAPI_TRACE(WAPI_INIT,"ASUE fisrt set usk\n"); if (bTxEnable){ pWapiSta->wapiUsk.bTxEnable = true; memcpy(pWapiSta->lastTxUnicastPN,WapiASUEPNInitialValueSrc,16); @@ -1042,7 +1042,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) pWapiSta->wapiUsk.bTxEnable = false; } }else{ - WAPI_TRACE(WAPI_INIT,"ASUE update usk \n"); + WAPI_TRACE(WAPI_INIT,"ASUE update usk\n"); if (bTxEnable){ pWapiSta->wapiUskUpdate.bTxEnable = true; if (pWapiSta->wapiUskUpdate.bSet){ @@ -1078,12 +1078,12 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) memcpy(pWapiInfo->lastTxMulticastPN,WapiAEMultiCastPNInitialValueSrc,16); if (!bUpdate){ //first - WAPI_TRACE(WAPI_INIT, "AE fisrt set msk \n"); + WAPI_TRACE(WAPI_INIT, "AE fisrt set msk\n"); if (!pWapiSta->bSetkeyOk) pWapiSta->bSetkeyOk = true; pWapiInfo->bFirstAuthentiateInProgress= false; }else{ //update - WAPI_TRACE(WAPI_INIT,"AE update msk \n"); + WAPI_TRACE(WAPI_INIT,"AE update msk\n"); } WAPI_DATA(WAPI_INIT, "SetKey - AE MSK Data Key", pWapiInfo->wapiTxMsk.dataKey, 16); @@ -1091,7 +1091,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) } else{ if (!bUpdate){ - WAPI_TRACE(WAPI_INIT,"ASUE fisrt set msk \n"); + WAPI_TRACE(WAPI_INIT,"ASUE fisrt set msk\n"); pWapiSta->wapiMsk.bSet = true; memcpy(pWapiSta->wapiMsk.dataKey,data+10,16); memcpy(pWapiSta->wapiMsk.micKey,data+26,16); @@ -1103,7 +1103,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) WAPI_DATA(WAPI_INIT, "SetKey - ASUE MSK Data Key", pWapiSta->wapiMsk.dataKey, 16); WAPI_DATA(WAPI_INIT, "SetKey - ASUE MSK Mic Key", pWapiSta->wapiMsk.micKey, 16); }else{ - WAPI_TRACE(WAPI_INIT,"ASUE update msk \n"); + WAPI_TRACE(WAPI_INIT,"ASUE update msk\n"); pWapiSta->wapiMskUpdate.bSet = true; memcpy(pWapiSta->wapiMskUpdate.dataKey,data+10,16); memcpy(pWapiSta->wapiMskUpdate.micKey,data+26,16); @@ -1113,7 +1113,7 @@ void wapi_test_set_key(struct _adapter *padapter, u8* buf) } break; default: - WAPI_TRACE(WAPI_ERR,"Unknown Flag \n"); + WAPI_TRACE(WAPI_ERR,"Unknown Flag\n"); break; } } @@ -1225,7 +1225,7 @@ void rtw_wapi_get_iv(_adapter *padapter,u8 *pRA, u8*IV) else { if (list_empty(&pWapiInfo->wapiSTAUsedList)){ - WAPI_TRACE(WAPI_RX,"rtw_wapi_get_iv: list is empty \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_get_iv: list is empty\n"); _rtw_memset(IV,10,18); return; } @@ -1238,7 +1238,7 @@ void rtw_wapi_get_iv(_adapter *padapter,u8 *pRA, u8*IV) } } - WAPI_TRACE(WAPI_RX,"bFindMatchPeer: %d \n",bFindMatchPeer); + WAPI_TRACE(WAPI_RX,"bFindMatchPeer: %d\n",bFindMatchPeer); WAPI_DATA(WAPI_RX,"Addr",pRA,6); if (bFindMatchPeer){ @@ -1281,7 +1281,7 @@ bool rtw_wapi_drop_for_key_absent(_adapter *padapter,u8 *pRA) if (IS_MCAST(pRA)){ if (!pWapiInfo->wapiTxMsk.bTxEnable){ bDrop = true; - WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: multicast key is absent \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: multicast key is absent\n"); return bDrop; } } @@ -1297,20 +1297,20 @@ bool rtw_wapi_drop_for_key_absent(_adapter *padapter,u8 *pRA) if (bFindMatchPeer) { if (!pWapiSta->wapiUsk.bTxEnable){ bDrop = true; - WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: unicast key is absent \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: unicast key is absent\n"); return bDrop; } } else{ bDrop = true; - WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: no peer find \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: no peer find\n"); return bDrop; } } else{ bDrop = true; - WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: no sta exist \n"); + WAPI_TRACE(WAPI_RX,"rtw_wapi_drop_for_key_absent: no sta exist\n"); return bDrop; } } diff --git a/core/rtw_wapi_sms4.c b/core/rtw_wapi_sms4.c index 072a7a3..bc6338a 100755 --- a/core/rtw_wapi_sms4.c +++ b/core/rtw_wapi_sms4.c @@ -399,7 +399,7 @@ void WapiGetLastRxUnicastPNForQoSData( memcpy(PNOut,pWapiStaInfo->lastRxUnicastPNVOQueue,16); break; default: - WAPI_TRACE(WAPI_ERR, "%s: Unknown TID \n", __FUNCTION__); + WAPI_TRACE(WAPI_ERR, "%s: Unknown TID\n", __FUNCTION__); break; } WAPI_TRACE(WAPI_RX, "<=========== %s\n", __FUNCTION__); @@ -432,7 +432,7 @@ void WapiSetLastRxUnicastPNForQoSData( memcpy(pWapiStaInfo->lastRxUnicastPNVOQueue,PNIn,16); break; default: - WAPI_TRACE(WAPI_ERR, "%s: Unknown TID \n", __FUNCTION__); + WAPI_TRACE(WAPI_ERR, "%s: Unknown TID\n", __FUNCTION__); break; } WAPI_TRACE(WAPI_RX, "<=========== %s\n", __FUNCTION__); @@ -591,7 +591,7 @@ void SecSWSMS4Encryption( WAPI_TRACE(WAPI_TX, "=========>%s\n", __FUNCTION__); - WAPI_TRACE(WAPI_TX,"hdrlen: %d \n",pattrib->hdrlen); + WAPI_TRACE(WAPI_TX,"hdrlen: %d\n",pattrib->hdrlen); return; diff --git a/core/rtw_wlan_util.c b/core/rtw_wlan_util.c index a9dea57..36f09b6 100755 --- a/core/rtw_wlan_util.c +++ b/core/rtw_wlan_util.c @@ -758,7 +758,7 @@ void read_cam(_adapter *padapter ,u8 entry) for (j = 0; j < 6; j++) { cmd = _ReadCAM(padapter ,addr+j); - DBG_8192C("offset:0x%02x => 0x%08x \n",addr+j,cmd); + DBG_8192C("offset:0x%02x => 0x%08x\n",addr+j,cmd); } DBG_8192C("*********************************\n"); } @@ -1572,7 +1572,7 @@ int rtw_check_bcn_info(ADAPTER *Adapter, u8 *pframe, u32 packet_len) if (pht_info) { bcn_channel = pht_info->primary_channel; } else { /* we don't find channel IE, so don't check it */ - DBG_871X("Oops: %s we don't find channel IE, so don't check it \n", __func__); + DBG_871X("Oops: %s we don't find channel IE, so don't check it\n", __func__); bcn_channel = Adapter->mlmeextpriv.cur_channel; } } diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index 3781de4..ea0130a 100755 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -679,7 +679,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr ((tmp[21] == 67) && (tmp[23] == 68))) { // 68 : UDP BOOTP client // 67 : UDP BOOTP server - RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("======================update_attrib: get DHCP Packet \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("======================update_attrib: get DHCP Packet\n")); // Use low rate to send DHCP packet. //if (pMgntInfo->IOTAction & HT_IOT_ACT_WA_IOT_Broadcom) //{ @@ -783,7 +783,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr if (psta->ieee8021x_blocked == _TRUE) { - RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\n psta->ieee8021x_blocked == _TRUE \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\n psta->ieee8021x_blocked == _TRUE\n")); pattrib->encrypt = 0; @@ -1019,7 +1019,7 @@ _func_enter_; rtw_secgetmic(&micdata,&(mic[0])); RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("xmitframe_addmic: before add mic code!!!\n")); RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("xmitframe_addmic: pattrib->last_txcmdsz=%d!!!\n",pattrib->last_txcmdsz)); - RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("xmitframe_addmic: mic[0]=0x%.2x ,mic[1]=0x%.2x ,mic[2]=0x%.2x ,mic[3]=0x%.2x \n\ + RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("xmitframe_addmic: mic[0]=0x%.2x ,mic[1]=0x%.2x ,mic[2]=0x%.2x ,mic[3]=0x%.2x\n\ mic[4]=0x%.2x ,mic[5]=0x%.2x ,mic[6]=0x%.2x ,mic[7]=0x%.2x !!!!\n", mic[0],mic[1],mic[2],mic[3],mic[4],mic[5],mic[6],mic[7])); //add mic code and add the mic code length in last_txcmdsz @@ -1668,7 +1668,7 @@ _func_enter_; return _FAIL; if (pxmitframe->buf_addr == NULL){ - DBG_8192C("==> %s buf_addr==NULL \n",__FUNCTION__); + DBG_8192C("==> %s buf_addr==NULL\n",__FUNCTION__); return _FAIL; } @@ -2450,7 +2450,7 @@ _func_enter_; case 2: ptxservq = &(psta->sta_xmitpriv.bk_q); *(ac) = 3; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK\n")); break; case 4: @@ -2464,7 +2464,7 @@ _func_enter_; case 7: ptxservq = &(psta->sta_xmitpriv.vo_q); *(ac) = 0; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO\n")); break; case 0: @@ -2472,7 +2472,7 @@ _func_enter_; default: ptxservq = &(psta->sta_xmitpriv.be_q); *(ac) = 2; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE\n")); break; } @@ -2507,7 +2507,7 @@ _func_enter_; ptxservq = &(psta->sta_xmitpriv.bk_q); *ppstapending = &padapter->xmitpriv.bk_pending; (phwxmits+3)->accnt++; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BK\n")); break; case 4: @@ -2523,7 +2523,7 @@ _func_enter_; ptxservq = &(psta->sta_xmitpriv.vo_q); *ppstapending = &padapter->xmitpriv.vo_pending; (phwxmits+0)->accnt++; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : VO\n")); break; case 0: @@ -2532,7 +2532,7 @@ _func_enter_; ptxservq = &(psta->sta_xmitpriv.be_q); *ppstapending = &padapter->xmitpriv.be_pending; (phwxmits+2)->accnt++; - RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE \n")); + RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_get_sta_pending : BE\n")); break; } @@ -2984,7 +2984,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt) { if (rtw_wapi_drop_for_key_absent(padapter, pxmitframe->attrib.ra)) { - WAPI_TRACE(WAPI_RX,"drop for key absend when tx \n"); + WAPI_TRACE(WAPI_RX,"drop for key absend when tx\n"); res = _FAIL; } } @@ -3701,7 +3701,7 @@ struct xmit_buf* dequeue_pending_xmitbuf_under_survey( } else { - DBG_871X("%s, !!!ERROR!!! For USB, TODO ITEM \n", __FUNCTION__); + DBG_871X("%s, !!!ERROR!!! For USB, TODO ITEM\n", __FUNCTION__); } #else type = GetFrameSubType(pxmitbuf->pbuf + TXDESC_OFFSET); diff --git a/hal/Hal8188ERateAdaptive.c b/hal/Hal8188ERateAdaptive.c index 693a44c..921c8f1 100755 --- a/hal/Hal8188ERateAdaptive.c +++ b/hal/Hal8188ERateAdaptive.c @@ -258,7 +258,7 @@ RateDownFinish: ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("Rate down, RPT Timing default\n")); ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("RAWaitingCounter %d, RAPendingCounter %d",pRaInfo->RAWaitingCounter,pRaInfo->RAPendingCounter)); ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("Rate down to RateID %d RateSGI %d\n", RateID, pRaInfo->RateSGI)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateDown_8188E() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateDown_8188E()\n")); return 0; } @@ -271,7 +271,7 @@ odm_RateUp_8188E( u1Byte RateID, HighestRate; u1Byte i; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("=====>odm_RateUp_8188E() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("=====>odm_RateUp_8188E()\n")); if (NULL == pRaInfo) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("odm_RateUp_8188E(): pRaInfo is NULL\n")); @@ -326,7 +326,7 @@ RateUpfinish: pRaInfo->DecisionRate=RateID; ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("Rate up to RateID %d\n", RateID)); ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("RAWaitingCounter %d, RAPendingCounter %d",pRaInfo->RAWaitingCounter,pRaInfo->RAPendingCounter)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateUp_8188E() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateUp_8188E()\n")); return 0; } @@ -347,7 +347,7 @@ odm_RateDecision_8188E( //u4Byte pool_retry; static u1Byte DynamicTxRPTTimingCounter=0; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("=====>odm_RateDecision_8188E() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("=====>odm_RateDecision_8188E()\n")); if (pRaInfo->Active && (pRaInfo->TOTAL > 0)) // STA used and data packet exits { @@ -426,7 +426,7 @@ odm_RateDecision_8188E( odm_ResetRaCounter_8188E( pRaInfo); } - ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateDecision_8188E() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<=====odm_RateDecision_8188E()\n")); } static int @@ -527,7 +527,7 @@ odm_ARFBRefresh_8188E( pRaInfo->DecisionRate = pRaInfo->HighestRate; ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, - ("ODM_ARFBRefresh_8188E(): RateID=%d RateMask=%8.8x RAUseRate=%8.8x HighestRate=%d,DecisionRate=%d \n", + ("ODM_ARFBRefresh_8188E(): RateID=%d RateMask=%8.8x RAUseRate=%8.8x HighestRate=%d,DecisionRate=%d\n", pRaInfo->RateID, pRaInfo->RateMask, pRaInfo->RAUseRate, pRaInfo->HighestRate,pRaInfo->DecisionRate)); return 0; } @@ -699,7 +699,7 @@ ODM_RAInfo_Init( //printk("%s ==>WirelessMode:0x%08x ,max_raid_idx:0x%02x\n ",__FUNCTION__,WirelessMode,max_rate_idx); ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, - ("ODM_RAInfo_Init(): WirelessMode:0x%08x ,max_raid_idx:0x%02x \n", + ("ODM_RAInfo_Init(): WirelessMode:0x%08x ,max_raid_idx:0x%02x\n", WirelessMode,max_rate_idx)); pRaInfo->DecisionRate = max_rate_idx; diff --git a/hal/HalHWImg8188E_BB.c b/hal/HalHWImg8188E_BB.c index fbf9435..1efafdd 100755 --- a/hal/HalHWImg8188E_BB.c +++ b/hal/HalHWImg8188E_BB.c @@ -299,7 +299,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E( if (rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { #ifdef CONFIG_IOL_IOREG_CFG_DBG - printk("~~~ %s Success !!! \n",__FUNCTION__); + printk("~~~ %s Success !!!\n",__FUNCTION__); { //dump data from TX packet buffer rtw_IOL_cmd_tx_pkt_buf_dump(pDM_Odm->Adapter,pxmit_frame->attrib.pktlen+32); @@ -308,7 +308,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E( } else{ - printk("~~~ %s IOL_exec_cmds Failed !!! \n",__FUNCTION__); + printk("~~~ %s IOL_exec_cmds Failed !!!\n",__FUNCTION__); #ifdef CONFIG_IOL_IOREG_CFG_DBG { //dump data from TX packet buffer @@ -693,17 +693,17 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E( if (rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { #ifdef CONFIG_IOL_IOREG_CFG_DBG - printk("~~~ %s IOL_exec_cmds Success !!! \n",__FUNCTION__); + printk("~~~ %s IOL_exec_cmds Success !!!\n",__FUNCTION__); { u4Byte idx; u4Byte cdata; - printk(" %s data compare => array_len:%d \n",__FUNCTION__,cmpdata_idx); + printk(" %s data compare => array_len:%d\n",__FUNCTION__,cmpdata_idx); printk("### %s data compared !!###\n",__FUNCTION__); for (idx=0;idx< cmpdata_idx;idx++) { cdata = ODM_Read4Byte(pDM_Odm, cmpdata[idx].addr); if (cdata != cmpdata[idx].value){ - printk(" addr:0x%04x, data:(0x%02x : 0x%02x) \n", + printk(" addr:0x%04x, data:(0x%02x : 0x%02x)\n", cmpdata[idx].addr,cmpdata[idx].value,cdata); rst = HAL_STATUS_FAILURE; } @@ -720,7 +720,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E( } else{ rst = HAL_STATUS_FAILURE; - printk("~~~ IOL Config %s Failed !!! \n",__FUNCTION__); + printk("~~~ IOL Config %s Failed !!!\n",__FUNCTION__); #ifdef CONFIG_IOL_IOREG_CFG_DBG { //dump data from TX packet buffer diff --git a/hal/HalHWImg8188E_MAC.c b/hal/HalHWImg8188E_MAC.c index fabd5d3..d7063c2 100755 --- a/hal/HalHWImg8188E_MAC.c +++ b/hal/HalHWImg8188E_MAC.c @@ -281,13 +281,13 @@ ODM_ReadAndConfig_MAC_REG_8188E( if (rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { #ifdef CONFIG_IOL_IOREG_CFG_DBG - printk("~~~ IOL Config MAC Success !!! \n"); + printk("~~~ IOL Config MAC Success !!!\n"); //compare writed data { u4Byte idx; u1Byte cdata; // HAL_STATUS_FAILURE; - printk(" MAC data compare => array_len:%d \n",cmpdata_idx); + printk(" MAC data compare => array_len:%d\n",cmpdata_idx); for (idx=0;idx< cmpdata_idx;idx++) { cdata = ODM_Read1Byte(pDM_Odm, cmpdata[idx].addr); @@ -310,7 +310,7 @@ ODM_ReadAndConfig_MAC_REG_8188E( } else{ - printk("~~~ MAC IOL_exec_cmds Failed !!! \n"); + printk("~~~ MAC IOL_exec_cmds Failed !!!\n"); #ifdef CONFIG_IOL_IOREG_CFG_DBG { //dump data from TX packet buffer diff --git a/hal/HalHWImg8188E_RF.c b/hal/HalHWImg8188E_RF.c index 7bf6238..5217e4c 100755 --- a/hal/HalHWImg8188E_RF.c +++ b/hal/HalHWImg8188E_RF.c @@ -332,17 +332,17 @@ ODM_ReadAndConfig_RadioA_1T_8188E( if (rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { #ifdef CONFIG_IOL_IOREG_CFG_DBG - printk("~~~ %s Success !!! \n",__FUNCTION__); + printk("~~~ %s Success !!!\n",__FUNCTION__); { u4Byte idx; u4Byte cdata; - printk(" %s data compare => array_len:%d \n",__FUNCTION__,cmpdata_idx); + printk(" %s data compare => array_len:%d\n",__FUNCTION__,cmpdata_idx); printk("### %s data compared !!###\n",__FUNCTION__); for (idx=0;idx< cmpdata_idx;idx++) { cdata = ODM_GetRFReg(pDM_Odm, ODM_RF_PATH_A,cmpdata[idx].addr,bRFRegOffsetMask); if (cdata != cmpdata[idx].value){ - printk("addr:0x%04x, data:(0x%02x : 0x%02x) \n", + printk("addr:0x%04x, data:(0x%02x : 0x%02x)\n", cmpdata[idx].addr,cmpdata[idx].value,cdata); rst = HAL_STATUS_FAILURE; } @@ -358,7 +358,7 @@ ODM_ReadAndConfig_RadioA_1T_8188E( } else{ rst = HAL_STATUS_FAILURE; - printk("~~~ IOL Config %s Failed !!! \n",__FUNCTION__); + printk("~~~ IOL Config %s Failed !!!\n",__FUNCTION__); #ifdef CONFIG_IOL_IOREG_CFG_DBG { //dump data from TX packet buffer diff --git a/hal/HalPhyRf.c b/hal/HalPhyRf.c index 9aa830a..819d244 100755 --- a/hal/HalPhyRf.c +++ b/hal/HalPhyRf.c @@ -1252,9 +1252,9 @@ if (pAdapter->registrypriv.mp_mode == 1) is13simular = FALSE; - RTPRINT(FINIT, INIT_IQK, ("IQK !!!interface %d currentband %d ishardwareD %d \n", pAdapter->interfaceIndex, pHalData->CurrentBandType92D, IS_HARDWARE_TYPE_8192D(pAdapter))); + RTPRINT(FINIT, INIT_IQK, ("IQK !!!interface %d currentband %d ishardwareD %d\n", pAdapter->interfaceIndex, pHalData->CurrentBandType92D, IS_HARDWARE_TYPE_8192D(pAdapter))); AcquireCCKAndRWPageAControl(pAdapter); -// RT_TRACE(COMP_INIT,DBG_LOUD,("Acquire Mutex in IQCalibrate \n")); +// RT_TRACE(COMP_INIT,DBG_LOUD,("Acquire Mutex in IQCalibrate\n")); for (i=0; i<3; i++) { // if (IS_HARDWARE_TYPE_8192C(pAdapter) || IS_HARDWARE_TYPE_8723A(pAdapter)) @@ -1319,7 +1319,7 @@ if (pAdapter->registrypriv.mp_mode == 1) } } } -// RT_TRACE(COMP_INIT,DBG_LOUD,("Release Mutex in IQCalibrate \n")); +// RT_TRACE(COMP_INIT,DBG_LOUD,("Release Mutex in IQCalibrate\n")); ReleaseCCKAndRWPageAControl(pAdapter); for (i=0; i<4; i++) diff --git a/hal/HalPhyRf_8188e.c b/hal/HalPhyRf_8188e.c index 43bca63..7430d60 100755 --- a/hal/HalPhyRf_8188e.c +++ b/hal/HalPhyRf_8188e.c @@ -337,7 +337,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E( if (ThermalValue_AVG_count) { ThermalValue = (u1Byte)(ThermalValue_AVG / ThermalValue_AVG_count); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("AVG Thermal Meter = 0x%x \n", ThermalValue)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("AVG Thermal Meter = 0x%x\n", ThermalValue)); } } } @@ -367,9 +367,9 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E( delta_LCK = (ThermalValue > pDM_Odm->RFCalibrateInfo.ThermalValue_LCK)?(ThermalValue - pDM_Odm->RFCalibrateInfo.ThermalValue_LCK):(pDM_Odm->RFCalibrateInfo.ThermalValue_LCK - ThermalValue); delta_IQK = (ThermalValue > pDM_Odm->RFCalibrateInfo.ThermalValue_IQK)?(ThermalValue - pDM_Odm->RFCalibrateInfo.ThermalValue_IQK):(pDM_Odm->RFCalibrateInfo.ThermalValue_IQK - ThermalValue); #if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE)) - ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("Readback Thermal Meter = 0x%x pre thermal meter 0x%x EEPROMthermalmeter 0x%x delta 0x%x delta_LCK 0x%x delta_IQK 0x%x \n", ThermalValue, pDM_Odm->RFCalibrateInfo.ThermalValue, pHalData->EEPROMThermalMeter, delta, delta_LCK, delta_IQK)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("Readback Thermal Meter = 0x%x pre thermal meter 0x%x EEPROMthermalmeter 0x%x delta 0x%x delta_LCK 0x%x delta_IQK 0x%x\n", ThermalValue, pDM_Odm->RFCalibrateInfo.ThermalValue, pHalData->EEPROMThermalMeter, delta, delta_LCK, delta_IQK)); #else - ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("Readback Thermal Meter = 0x%x pre thermal meter 0x%x EEPROMthermalmeter 0x%x delta 0x%x delta_LCK 0x%x delta_IQK 0x%x \n", ThermalValue, pDM_Odm->RFCalibrateInfo.ThermalValue, pDM_Odm->priv->pmib->dot11RFEntry.ther, delta, delta_LCK, delta_IQK)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("Readback Thermal Meter = 0x%x pre thermal meter 0x%x EEPROMthermalmeter 0x%x delta 0x%x delta_LCK 0x%x delta_IQK 0x%x\n", ThermalValue, pDM_Odm->RFCalibrateInfo.ThermalValue, pDM_Odm->priv->pmib->dot11RFEntry.ther, delta, delta_LCK, delta_IQK)); #endif ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD,("pre thermal meter LCK 0x%x pre thermal meter IQK 0x%x delta_LCK_bound 0x%x delta_IQK_bound 0x%x\n", pDM_Odm->RFCalibrateInfo.ThermalValue_LCK, pDM_Odm->RFCalibrateInfo.ThermalValue_IQK, pDM_Odm->RFCalibrateInfo.Delta_LCK, pDM_Odm->RFCalibrateInfo.Delta_IQK)); @@ -826,7 +826,7 @@ phy_PathA_RxIQK( u4tmp = 0x80007C00 | (regE94&0x3FF0000) | ((regE9C&0x3FF0000) >> 16); ODM_SetBBReg(pDM_Odm, rTx_IQK, bMaskDWord, u4tmp); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("0xe40 = 0x%x u4tmp = 0x%x \n", ODM_GetBBReg(pDM_Odm, rTx_IQK, bMaskDWord), u4tmp)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("0xe40 = 0x%x u4tmp = 0x%x\n", ODM_GetBBReg(pDM_Odm, rTx_IQK, bMaskDWord), u4tmp)); //1 RX IQK @@ -2536,8 +2536,8 @@ if (*(pDM_Odm->mp_mode) == 1) is13simular = FALSE; - //ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK !!!interface %d currentband %d ishardwareD %d \n", pDM_Odm->interfaceIndex, pHalData->CurrentBandType92D, IS_HARDWARE_TYPE_8192D(pAdapter))); -// RT_TRACE(COMP_INIT,DBG_LOUD,("Acquire Mutex in IQCalibrate \n")); + //ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK !!!interface %d currentband %d ishardwareD %d\n", pDM_Odm->interfaceIndex, pHalData->CurrentBandType92D, IS_HARDWARE_TYPE_8192D(pAdapter))); +// RT_TRACE(COMP_INIT,DBG_LOUD,("Acquire Mutex in IQCalibrate\n")); for (i=0; i<3; i++) { @@ -2602,7 +2602,7 @@ if (*(pDM_Odm->mp_mode) == 1) } } } -// RT_TRACE(COMP_INIT,DBG_LOUD,("Release Mutex in IQCalibrate \n")); +// RT_TRACE(COMP_INIT,DBG_LOUD,("Release Mutex in IQCalibrate\n")); for (i=0; i<4; i++) { diff --git a/hal/odm.c b/hal/odm.c index cb1390a..19ecc76 100755 --- a/hal/odm.c +++ b/hal/odm.c @@ -1664,7 +1664,7 @@ ODM_Write_DIG( { pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("ODM_REG(IGI_A,pDM_Odm)=0x%x, ODM_BIT(IGI,pDM_Odm)=0x%x \n", + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("ODM_REG(IGI_A,pDM_Odm)=0x%x, ODM_BIT(IGI,pDM_Odm)=0x%x\n", ODM_REG(IGI_A,pDM_Odm),ODM_BIT(IGI,pDM_Odm))); if (pDM_DigTable->CurIGValue != CurrentIGI)//if (pDM_DigTable->PreIGValue != CurrentIGI) @@ -1696,11 +1696,11 @@ ODM_Write_DIG( break; } } - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("CurrentIGI(0x%02x). \n",CurrentIGI)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("CurrentIGI(0x%02x).\n",CurrentIGI)); //pDM_DigTable->PreIGValue = pDM_DigTable->CurIGValue; pDM_DigTable->CurIGValue = CurrentIGI; } - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("ODM_Write_DIG():CurrentIGI=0x%x \n",CurrentIGI)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("ODM_Write_DIG():CurrentIGI=0x%x\n",CurrentIGI)); // Add by Neil Chen to enable edcca to MP Platform #if (DM_ODM_SUPPORT_TYPE == ODM_MP) @@ -1853,7 +1853,7 @@ odm_DIG( #if OS_WIN_FROM_WIN7(OS_VERSION) if (IsAPModeExist( pAdapter) && pAdapter->bInHctTest) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: Is AP mode or In HCT Test \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: Is AP mode or In HCT Test\n")); return; } #endif @@ -1867,7 +1867,7 @@ odm_DIG( if (pRX_HP_Table->RXHP_flag == 1) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: In RXHP Operation \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: In RXHP Operation\n")); return; } #endif //end ODM_MP type @@ -1876,7 +1876,7 @@ odm_DIG( #ifdef CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV if ((pDM_Odm->bLinked) && (pDM_Odm->Adapter->registrypriv.force_igi !=0)) { - printk("pDM_Odm->RSSI_Min=%d \n",pDM_Odm->RSSI_Min); + printk("pDM_Odm->RSSI_Min=%d\n",pDM_Odm->RSSI_Min); ODM_Write_DIG(pDM_Odm,pDM_Odm->Adapter->registrypriv.force_igi); return; } @@ -1886,7 +1886,7 @@ odm_DIG( prtl8192cd_priv priv = pDM_Odm->priv; if (!((priv->up_time > 5) && (priv->up_time % 2)) ) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: Not In DIG Operation Period \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: Not In DIG Operation Period\n")); return; } #endif @@ -1911,14 +1911,14 @@ odm_DIG( if (*(pDM_Odm->pbScanInProcess)) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: In Scan Progress \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: In Scan Progress\n")); return; } //add by Neil Chen to avoid PSD is processing if (pDM_Odm->bDMInitialGainEnable == FALSE) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: PSD is Processing \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: PSD is Processing\n")); return; } @@ -2087,7 +2087,7 @@ odm_DIG( if (pDM_Odm->AntDivType == CG_TRX_HW_ANTDIV) { DIG_Dynamic_MIN = (u1Byte) pDM_DigTable->AntDiv_RSSI_max; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_DIG(): pDM_DigTable->AntDiv_RSSI_max=%d \n",pDM_DigTable->AntDiv_RSSI_max)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_DIG(): pDM_DigTable->AntDiv_RSSI_max=%d\n",pDM_DigTable->AntDiv_RSSI_max)); } } #endif @@ -2107,7 +2107,7 @@ odm_DIG( //1 Modify DIG lower bound, deal with abnormally large false alarm if (pFalseAlmCnt->Cnt_all > 10000) { - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("dm_DIG(): Abnornally false alarm case. \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("dm_DIG(): Abnornally false alarm case.\n")); if (pDM_DigTable->LargeFAHit != 3) pDM_DigTable->LargeFAHit++; @@ -2211,7 +2211,7 @@ odm_DIG( if (FirstDisConnect) { CurrentIGI = pDM_DigTable->rx_gain_range_min; - ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): First DisConnect \n")); + ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): First DisConnect\n")); } else { @@ -2222,7 +2222,7 @@ odm_DIG( CurrentIGI = CurrentIGI + 1;//pDM_DigTable->CurIGValue = pDM_DigTable->PreIGValue+1; else if (pFalseAlmCnt->Cnt_all < 500) CurrentIGI = CurrentIGI - 1;//pDM_DigTable->CurIGValue =pDM_DigTable->PreIGValue-1; - ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): England DIG \n")); + ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): England DIG\n")); } } ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG(): DIG End Adjust IGI\n")); @@ -2903,8 +2903,8 @@ u4Byte ODM_Get_Rate_Bitmap( } - //printk("%s ==> rssi_level:0x%02x, WirelessMode:0x%02x, rate_bitmap:0x%08x \n",__FUNCTION__,rssi_level,WirelessMode,rate_bitmap); - ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, (" ==> rssi_level:0x%02x, WirelessMode:0x%02x, rate_bitmap:0x%08x \n",rssi_level,WirelessMode,rate_bitmap)); + //printk("%s ==> rssi_level:0x%02x, WirelessMode:0x%02x, rate_bitmap:0x%08x\n",__FUNCTION__,rssi_level,WirelessMode,rate_bitmap); + ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, (" ==> rssi_level:0x%02x, WirelessMode:0x%02x, rate_bitmap:0x%08x\n",rssi_level,WirelessMode,rate_bitmap)); return rate_bitmap; @@ -3095,7 +3095,7 @@ odm_RefreshRateAdaptiveMaskCE( return; } - //printk("==> %s \n",__FUNCTION__); + //printk("==> %s\n",__FUNCTION__); for (i=0; ipODM_StaInfo[i]; @@ -3196,7 +3196,7 @@ ODM_RAStateCheck( RATRState = DM_RATR_STA_MIDDLE; else RATRState = DM_RATR_STA_LOW; - //printk("==>%s,RATRState:0x%02x ,RSSI:%d \n",__FUNCTION__,RATRState,RSSI); + //printk("==>%s,RATRState:0x%02x ,RSSI:%d\n",__FUNCTION__,RATRState,RSSI); if ( *pRATRState!=RATRState || bForceUpdate) { @@ -3464,7 +3464,7 @@ odm_DynamicTxPower_92C( if ((!pMgntInfo->bMediaConnect) && (pHalData->EntryMinUndecoratedSmoothedPWDB == 0)) { - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n")); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any\n")); pHalData->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal; //the LastDTPlvl should reset when disconnect, @@ -3521,18 +3521,18 @@ odm_DynamicTxPower_92C( if (ACTING_AS_AP(Adapter) || ACTING_AS_IBSS(Adapter)) { UndecoratedSmoothedPWDB = pHalData->EntryMinUndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } else { UndecoratedSmoothedPWDB = pHalData->UndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } } else // associated entry pwdb { UndecoratedSmoothedPWDB = pHalData->EntryMinUndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } if (UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL2) @@ -3555,7 +3555,7 @@ odm_DynamicTxPower_92C( } if ( pHalData->DynamicTxHighPowerLvl != pHalData->LastDTPLvl ) { - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192C() Channel = %d \n" , pHalData->CurrentChannel)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192C() Channel = %d\n" , pHalData->CurrentChannel)); PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel); if ( (pHalData->DynamicTxHighPowerLvl == TxHighPwrLevel_Normal) && (pHalData->LastDTPLvl == TxHighPwrLevel_Level1 || pHalData->LastDTPLvl == TxHighPwrLevel_Level2)) //TxHighPwrLevel_Normal @@ -3585,7 +3585,7 @@ odm_DynamicTxPower_92C( if (Adapter->proximity.proxim_on== _TRUE){ struct proximity_priv *prox_priv=Adapter->proximity.proximity_priv; // Intel set fixed tx power - printk("\n %s Adapter->proximity.proxim_on=%d prox_priv->proxim_modeinfo->power_output=%d \n",__FUNCTION__,Adapter->proximity.proxim_on,prox_priv->proxim_modeinfo->power_output); + printk("\n %s Adapter->proximity.proxim_on=%d prox_priv->proxim_modeinfo->power_output=%d\n",__FUNCTION__,Adapter->proximity.proxim_on,prox_priv->proxim_modeinfo->power_output); if (prox_priv!=NULL){ if (prox_priv->proxim_modeinfo->power_output> 0) { @@ -3626,7 +3626,7 @@ odm_DynamicTxPower_92C( if ((check_fwstate(pmlmepriv, _FW_LINKED) != _TRUE) && (pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)) { - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any\n")); pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal; //the LastDTPlvl should reset when disconnect, @@ -3644,12 +3644,12 @@ odm_DynamicTxPower_92C( (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE)) { UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } else { UndecoratedSmoothedPWDB = pdmpriv->UndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } #else UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; @@ -3658,7 +3658,7 @@ odm_DynamicTxPower_92C( else // associated entry pwdb { UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } if (UndecoratedSmoothedPWDB >= TX_POWER_NEAR_FIELD_THRESH_LVL2) @@ -3724,7 +3724,7 @@ odm_DynamicTxPower_92D( if ((!pMgntInfo->bMediaConnect) && (pHalData->EntryMinUndecoratedSmoothedPWDB == 0)) { - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n")); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any\n")); pHalData->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal; //the LastDTPlvl should reset when disconnect, @@ -3739,18 +3739,18 @@ odm_DynamicTxPower_92D( if (ACTING_AS_AP(Adapter) || pMgntInfo->mIbss) { UndecoratedSmoothedPWDB = pHalData->EntryMinUndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } else { UndecoratedSmoothedPWDB = pHalData->UndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } } else // associated entry pwdb { UndecoratedSmoothedPWDB = pHalData->EntryMinUndecoratedSmoothedPWDB; - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } if (IS_HARDWARE_TYPE_8192D(Adapter) && GET_HAL_DATA(Adapter)->CurrentBandType92D == 1){ @@ -3797,10 +3797,10 @@ odm_DynamicTxPower_92D( //sherry delete flag 20110517 if (bGetValueFromBuddyAdapter) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 1 \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 1\n")); if (Adapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() change value \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() change value\n")); HighPowerLvlBackForMac0 = pHalData->DynamicTxHighPowerLvl; pHalData->DynamicTxHighPowerLvl = Adapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP; PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel); @@ -3811,12 +3811,12 @@ odm_DynamicTxPower_92D( if ( (pHalData->DynamicTxHighPowerLvl != pHalData->LastDTPLvl) ) { - ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192S() Channel = %d \n" , pHalData->CurrentChannel)); + ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192S() Channel = %d\n" , pHalData->CurrentChannel)); if (Adapter->DualMacSmartConcurrent == TRUE) { if (BuddyAdapter == NULL) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter == NULL case \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter == NULL case\n")); if (!Adapter->bSlaveOfDMSP) { PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel); @@ -3826,19 +3826,19 @@ odm_DynamicTxPower_92D( { if (pHalData->MacPhyMode92D == DUALMAC_SINGLEPHY) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter DMSP \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter DMSP\n")); if (Adapter->bSlaveOfDMSP) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() bslave case \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() bslave case \n")); BuddyAdapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = TRUE; BuddyAdapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP = pHalData->DynamicTxHighPowerLvl; } else { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() master case \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() master case \n")); if (!bGetValueFromBuddyAdapter) { - ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 0 \n")); + ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 0\n")); PHY_SetTxPowerLevel8192C(Adapter, pHalData->CurrentChannel); } } @@ -3884,7 +3884,7 @@ odm_DynamicTxPower_92D( if ((check_fwstate(pmlmepriv, _FW_LINKED) != _TRUE) && (pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)) { - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any\n")); pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal; //the LastDTPlvl should reset when disconnect, //otherwise the tx power level wouldn't change when disconnect and connect again. @@ -3901,12 +3901,12 @@ odm_DynamicTxPower_92D( (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE)) { UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Client PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } else { UndecoratedSmoothedPWDB = pdmpriv->UndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("STA Default Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } #else UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; @@ -3915,7 +3915,7 @@ odm_DynamicTxPower_92D( else // associated entry pwdb { UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x \n", UndecoratedSmoothedPWDB)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("AP Ext Port PWDB = 0x%x\n", UndecoratedSmoothedPWDB)); } #if TX_POWER_FOR_5G_BAND == 1 if (pHalData->CurrentBandType92D == BAND_ON_5G){ @@ -3959,10 +3959,10 @@ odm_DynamicTxPower_92D( #if (RTL8192D_EASY_SMART_CONCURRENT == 1) if (bGetValueFromBuddyAdapter) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 1 \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 1\n")); if (Adapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() change value \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() change value\n")); HighPowerLvlBackForMac0 = pHalData->DynamicTxHighPowerLvl; pHalData->DynamicTxHighPowerLvl = Adapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP; PHY_SetTxPowerLevel8192D(Adapter, pHalData->CurrentChannel); @@ -3974,11 +3974,11 @@ odm_DynamicTxPower_92D( if ( (pdmpriv->DynamicTxHighPowerLvl != pdmpriv->LastDTPLvl) ) { - //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192S() Channel = %d \n" , pHalData->CurrentChannel)); + //ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("PHY_SetTxPowerLevel8192S() Channel = %d\n" , pHalData->CurrentChannel)); #if (RTL8192D_EASY_SMART_CONCURRENT == 1) if (BuddyAdapter == NULL) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter == NULL case \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter == NULL case\n")); if (!Adapter->bSlaveOfDMSP) { PHY_SetTxPowerLevel8192D(Adapter, pHalData->CurrentChannel); @@ -3988,19 +3988,19 @@ odm_DynamicTxPower_92D( { if (pHalData->MacPhyMode92D == DUALMAC_SINGLEPHY) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter DMSP \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() BuddyAdapter DMSP\n")); if (Adapter->bSlaveOfDMSP) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() bslave case \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() bslave case \n")); BuddyAdapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = _TRUE; BuddyAdapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP = pHalData->DynamicTxHighPowerLvl; } else { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() master case \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() master case \n")); if (!bGetValueFromBuddyAdapter) { - //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 0 \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() mac 0 for mac 0\n")); PHY_SetTxPowerLevel8192D(Adapter, pHalData->CurrentChannel); } } @@ -4263,7 +4263,7 @@ IN PADAPTER pAdapter (pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)) { pdmpriv->MinUndecoratedPWDBForDM = 0; - //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("Not connected to any \n")); + //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("Not connected to any\n")); } if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) // Default port { @@ -4273,12 +4273,12 @@ IN PADAPTER pAdapter (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE)) { pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("AP Client PWDB = 0x%x \n", pHalData->MinUndecoratedPWDBForDM)); + //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("AP Client PWDB = 0x%x\n", pHalData->MinUndecoratedPWDBForDM)); } else//for STA mode { pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->UndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("STA Default Port PWDB = 0x%x \n", pHalData->MinUndecoratedPWDBForDM)); + //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("STA Default Port PWDB = 0x%x\n", pHalData->MinUndecoratedPWDBForDM)); } #else pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; @@ -4287,7 +4287,7 @@ IN PADAPTER pAdapter else // associated entry pwdb { pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB; - //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("AP Ext Port or disconnet PWDB = 0x%x \n", pHalData->MinUndecoratedPWDBForDM)); + //ODM_RT_TRACE(pDM_Odm,COMP_BB_POWERSAVING, DBG_LOUD, ("AP Ext Port or disconnet PWDB = 0x%x\n", pHalData->MinUndecoratedPWDBForDM)); } #if (RTL8192D_SUPPORT==1) FindMinimumRSSI_Dmsp(pAdapter); @@ -5282,7 +5282,7 @@ odm_SwAntDivChkAntSwitchNIC( curRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_A : RSSI_B; pDM_SWAT_Table->PreRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_B : RSSI_A; ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Luke:PreRSSI = %d, CurRSSI = %d\n",pDM_SWAT_Table->PreRSSI, curRSSI)); - ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("SWAS: preAntenna= %s, curAntenna= %s \n", + ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("SWAS: preAntenna= %s, curAntenna= %s\n", (pDM_SWAT_Table->PreAntenna == Antenna_A?"A":"B"), (pDM_SWAT_Table->CurAntenna == Antenna_A?"A":"B"))); ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Luke:RSSI_A= %d, RSSI_cnt_A = %d, RSSI_B= %d, RSSI_cnt_B = %d\n", RSSI_A, pDM_SWAT_Table->RSSI_cnt_A, RSSI_B, pDM_SWAT_Table->RSSI_cnt_B)); @@ -5303,7 +5303,7 @@ odm_SwAntDivChkAntSwitchNIC( curRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_A : RSSI_B; pDM_SWAT_Table->PreRSSI = (pDM_SWAT_Table->PreAntenna == Antenna_A)? RSSI_A : RSSI_B; ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Ekul:PreRSSI = %d, CurRSSI = %d\n", pDM_SWAT_Table->PreRSSI, curRSSI)); - ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("SWAS: preAntenna= %s, curAntenna= %s \n", + ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("SWAS: preAntenna= %s, curAntenna= %s\n", (pDM_SWAT_Table->PreAntenna == Antenna_A?"A":"B"), (pDM_SWAT_Table->CurAntenna == Antenna_A?"A":"B"))); ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Ekul:RSSI_A= %d, RSSI_cnt_A = %d, RSSI_B= %d, RSSI_cnt_B = %d\n", @@ -5354,7 +5354,7 @@ odm_SwAntDivChkAntSwitchNIC( nextAntenna = (Score_B > Score_A)?Antenna_B:Antenna_A; } //RT_TRACE(COMP_SWAS, DBG_LOUD, ("nextAntenna=%s\n",(nextAntenna==Antenna_A)?"A":"B")); - //RT_TRACE(COMP_SWAS, DBG_LOUD, ("preAntenna= %s, curAntenna= %s \n", + //RT_TRACE(COMP_SWAS, DBG_LOUD, ("preAntenna= %s, curAntenna= %s\n", //(DM_SWAT_Table.PreAntenna == Antenna_A?"A":"B"), (DM_SWAT_Table.CurAntenna == Antenna_A?"A":"B"))); if (nextAntenna != pDM_SWAT_Table->CurAntenna) @@ -6859,7 +6859,7 @@ odm_EdcaTurboCheckMP( IOTPeer=pMgntInfo->IOTPeer; bBiasOnRx=(pMgntInfo->IOTAction & HT_IOT_ACT_EDCA_BIAS_ON_RX)?TRUE:FALSE; bEdcaTurboOn=((!pHalData->bIsAnyNonBEPkts) && (!pMgntInfo->bDisableFrameBursting))?TRUE:FALSE; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("bIsAnyNonBEPkts : 0x%lx bDisableFrameBursting : 0x%lx \n",pHalData->bIsAnyNonBEPkts,pMgntInfo->bDisableFrameBursting)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("bIsAnyNonBEPkts : 0x%lx bDisableFrameBursting : 0x%lx \n",pHalData->bIsAnyNonBEPkts,pMgntInfo->bDisableFrameBursting)); #elif (DM_ODM_SUPPORT_TYPE==ODM_CE) // Caculate TX/RX TP: @@ -6875,7 +6875,7 @@ odm_EdcaTurboCheckMP( IOTPeer=pmlmeinfo->assoc_AP_vendor; bBiasOnRx=((IOTPeer == HT_IOT_PEER_RALINK)||(IOTPeer == HT_IOT_PEER_ATHEROS))?TRUE:FALSE; bEdcaTurboOn=(bbtchange || (!precvpriv->bIsAnyNonBEPkts))?TRUE:FALSE; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("bbtchange : 0x%lx bIsAnyNonBEPkts : 0x%lx \n",bbtchange,precvpriv->bIsAnyNonBEPkts)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("bbtchange : 0x%lx bIsAnyNonBEPkts : 0x%lx \n",bbtchange,precvpriv->bIsAnyNonBEPkts)); #endif @@ -6898,8 +6898,8 @@ odm_EdcaTurboCheckMP( if (bEdcaTurboOn) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("bEdcaTurboOn : 0x%x bBiasOnRx : 0x%x\n",bEdcaTurboOn,bBiasOnRx)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("curTxOkCnt : 0x%lx \n",curTxOkCnt)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("curRxOkCnt : 0x%lx \n",curRxOkCnt)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("curTxOkCnt : 0x%lx\n",curTxOkCnt)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("curRxOkCnt : 0x%lx\n",curRxOkCnt)); if (bBiasOnRx) odm_EdcaChooseTrafficIdx(pDM_Odm,curTxOkCnt, curRxOkCnt, TRUE, pbIsCurRDLState); else @@ -6917,7 +6917,7 @@ odm_EdcaTurboCheckMP( // } pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = TRUE; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("EDCA_BE_DL : 0x%lx EDCA_BE_UL : 0x%lx EDCA_BE : 0x%lx \n",EDCA_BE_DL,EDCA_BE_UL,EDCA_BE)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("EDCA_BE_DL : 0x%lx EDCA_BE_UL : 0x%lx EDCA_BE : 0x%lx \n",EDCA_BE_DL,EDCA_BE_UL,EDCA_BE)); } else @@ -6933,7 +6933,7 @@ odm_EdcaTurboCheckMP( #endif pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = FALSE; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("Restore EDCA BE: 0x%lx \n",pDM_Odm->WMMEDCA_BE)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("Restore EDCA BE: 0x%lx \n",pDM_Odm->WMMEDCA_BE)); } } @@ -8801,7 +8801,7 @@ odm_PSD_Monitor( PSD_skip_stop = 0; wlan_channel = CurrentChannel & 0x0f; - ODM_RT_TRACE(pDM_Odm,COMP_PSD,DBG_LOUD,("PSD: current channel: %x, BW:%d \n", wlan_channel, Is40MHz)); + ODM_RT_TRACE(pDM_Odm,COMP_PSD,DBG_LOUD,("PSD: current channel: %x, BW:%d\n", wlan_channel, Is40MHz)); if (pDM_Odm->SupportICType==ODM_RTL8723A) { #if (BT_30_SUPPORT == 1) @@ -8863,7 +8863,7 @@ odm_PSD_Monitor( } } - ODM_RT_TRACE(pDM_Odm,COMP_PSD,DBG_LOUD,("PSD: Skip tone from %d to %d \n", PSD_skip_start, PSD_skip_stop)); + ODM_RT_TRACE(pDM_Odm,COMP_PSD,DBG_LOUD,("PSD: Skip tone from %d to %d\n", PSD_skip_start, PSD_skip_stop)); for (n=0;n<80;n++) { @@ -8910,7 +8910,7 @@ odm_PSD_Monitor( if ((n>=PSD_skip_start) && (nPSDTimer, Interval); else { psd_cnt = 0; for (i=0;i<80;i++) - //DbgPrint("psd_report[%d]= %d \n", 2402+i, PSD_report[i]); - RT_TRACE( COMP_PSD, DBG_LOUD,("psd_report[%d]= %d \n", 2402+i, PSD_report[i])); + //DbgPrint("psd_report[%d]= %d\n", 2402+i, PSD_report[i]); + RT_TRACE( COMP_PSD, DBG_LOUD,("psd_report[%d]= %d\n", 2402+i, PSD_report[i])); GoodChannelDecision(pDM_Odm, PSD_report, PSD_bitmap,RSSI_BT, PSD_bitmap_memory); @@ -9017,7 +9017,7 @@ odm_PSD_Monitor( if (H2C_PSD_DATA[i] !=H2C_PSD_DATA_last[i]) { FillH2CCmd(Adapter, H2C_92C_PSD_RESULT, 5, H2C_PSD_DATA); - ODM_RT_TRACE(pDM_Odm, COMP_PSD, DBG_LOUD,("Need to Update the AFH Map \n")); + ODM_RT_TRACE(pDM_Odm, COMP_PSD, DBG_LOUD,("Need to Update the AFH Map\n")); break; } else @@ -9711,7 +9711,7 @@ odm_PSD_RXHP( PSD_skip_stop = 0; wlan_channel = CurrentChannel & 0x0f; - RT_TRACE(COMP_PSD,DBG_LOUD,("PSD: current channel: %x, BW:%d \n", wlan_channel, Is40MHz)); + RT_TRACE(COMP_PSD,DBG_LOUD,("PSD: current channel: %x, BW:%d\n", wlan_channel, Is40MHz)); if ((curRxOkCnt+curTxOkCnt) > 1000) { @@ -9719,7 +9719,7 @@ odm_PSD_RXHP( PSD_skip_stop = PSD_skip_start + (1+Is40MHz)*20; } - RT_TRACE(COMP_PSD,DBG_LOUD,("PSD: Skip tone from %d to %d \n", PSD_skip_start, PSD_skip_stop)); + RT_TRACE(COMP_PSD,DBG_LOUD,("PSD: Skip tone from %d to %d\n", PSD_skip_start, PSD_skip_stop)); for (n=0;n<80;n++) { @@ -9764,7 +9764,7 @@ odm_PSD_RXHP( if ((n>=PSD_skip_start) && (nPSDTimer, Interval); //ms @@ -9833,8 +9833,8 @@ odm_PSD_RXHP( { psd_cnt = 0; for (i=0;i<80;i++) - RT_TRACE( COMP_PSD, DBG_LOUD,("psd_report[%d]= %d \n", 2402+i, PSD_report[i])); - //DbgPrint("psd_report[%d]= %d \n", 2402+i, PSD_report[i]); + RT_TRACE( COMP_PSD, DBG_LOUD,("psd_report[%d]= %d\n", 2402+i, PSD_report[i])); + //DbgPrint("psd_report[%d]= %d\n", 2402+i, PSD_report[i]); GoodChannelDecision(pDM_Odm, PSD_report, PSD_bitmap,RSSI_BT, PSD_bitmap_memory); @@ -10799,7 +10799,7 @@ odm_PathDivChkAntSwitch( u1Byte PathDiv_Enable = pHalData->bPathDiv_Enable; - //DbgPrint("Path Div PG Value:%x \n",PathDiv_Enable); + //DbgPrint("Path Div PG Value:%x\n",PathDiv_Enable); if ((BuddyAdapter==NULL)||(!PathDiv_Enable)||(PathDiv_Trigger)||(pHalData->CurrentBandType92D == BAND_ON_2_4G)) { return; @@ -10945,7 +10945,7 @@ odm_PathDivChkAntSwitch( curRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_A : RSSI_B; pDM_SWAT_Table->PreRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_B : RSSI_A; ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: PreRSSI = %d, CurRSSI = %d\n",pDM_SWAT_Table->PreRSSI, curRSSI)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: preAntenna= %s, curAntenna= %s \n", + ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: preAntenna= %s, curAntenna= %s\n", (pDM_SWAT_Table->PreAntenna == Antenna_A?"A":"B"), (pDM_SWAT_Table->CurAntenna == Antenna_A?"A":"B"))); ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: RSSI_A= %d, RSSI_cnt_A = %d, RSSI_B= %d, RSSI_cnt_B = %d\n", RSSI_A, pHalData->RSSI_cnt_A, RSSI_B, pHalData->RSSI_cnt_B)); @@ -10966,7 +10966,7 @@ odm_PathDivChkAntSwitch( curRSSI = (pDM_SWAT_Table->CurAntenna == Antenna_A)? RSSI_A : RSSI_B; pDM_SWAT_Table->PreRSSI = (pDM_SWAT_Table->PreAntenna == Antenna_A)? RSSI_A : RSSI_B; ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: PreRSSI = %d, CurRSSI = %d\n", pDM_SWAT_Table->PreRSSI, curRSSI)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: preAntenna= %s, curAntenna= %s \n", + ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: preAntenna= %s, curAntenna= %s\n", (pDM_SWAT_Table->PreAntenna == Antenna_A?"A":"B"), (pDM_SWAT_Table->CurAntenna == Antenna_A?"A":"B"))); ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH DIV=: RSSI_A= %d, RSSI_cnt_A = %d, RSSI_B= %d, RSSI_cnt_B = %d\n", @@ -11017,7 +11017,7 @@ odm_PathDivChkAntSwitch( nextAntenna = (Score_B >= Score_A)?Antenna_B:Antenna_A; } ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH=: nextAntenna=%s\n",(nextAntenna==Antenna_A)?"A":"B")); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH=: preAntenna= %s, curAntenna= %s \n", + ODM_RT_TRACE(pDM_Odm,ODM_COMP_PATH_DIV, ODM_DBG_LOUD, ("=PATH=: preAntenna= %s, curAntenna= %s\n", (pDM_SWAT_Table->PreAntenna == Antenna_A?"A":"B"), (pDM_SWAT_Table->CurAntenna == Antenna_A?"A":"B"))); if (nextAntenna != pDM_SWAT_Table->CurAntenna) @@ -11545,9 +11545,9 @@ ODM_SingleDualAntennaDetection( //Reload AFE Registers odm_PHY_ReloadAFERegisters(pDM_Odm, AFE_REG_8723A, AFE_Backup, 16); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_A[%d]= %d \n", 2416, AntA_report)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_B[%d]= %d \n", 2416, AntB_report)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_O[%d]= %d \n", 2416, AntO_report)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_A[%d]= %d\n", 2416, AntA_report)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_B[%d]= %d\n", 2416, AntB_report)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_O[%d]= %d\n", 2416, AntO_report)); if (pDM_Odm->SupportICType == ODM_RTL8723A) @@ -11630,7 +11630,7 @@ ODM_SingleDualAntennaDetection( { pDM_SWAT_Table->ANTA_ON=TRUE; pDM_SWAT_Table->ANTB_ON=TRUE; - RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Dual Antenna \n")); + RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Dual Antenna\n")); } } else diff --git a/hal/odm_HWConfig.c b/hal/odm_HWConfig.c index 714a92d..ed2361c 100755 --- a/hal/odm_HWConfig.c +++ b/hal/odm_HWConfig.c @@ -359,7 +359,7 @@ odm_EVMdbToPercentage( ret_val = Value; //ret_val /= 2; - //ODM_RTPRINT(FRX, RX_PHY_SQ, ("EVMdbToPercentage92C Value=%d / %x \n", ret_val, ret_val)); + //ODM_RTPRINT(FRX, RX_PHY_SQ, ("EVMdbToPercentage92C Value=%d / %x\n", ret_val, ret_val)); if (ret_val >= 0) ret_val = 0; @@ -850,7 +850,7 @@ odm_Process_RSSIForDM( } else { - //DbgPrint("pRfd->Status.RxMIMOSignalStrength[0] = %d, pRfd->Status.RxMIMOSignalStrength[1] = %d \n", + //DbgPrint("pRfd->Status.RxMIMOSignalStrength[0] = %d, pRfd->Status.RxMIMOSignalStrength[1] = %d\n", //pRfd->Status.RxMIMOSignalStrength[0], pRfd->Status.RxMIMOSignalStrength[1]); diff --git a/hal/odm_RTL8188E.c b/hal/odm_RTL8188E.c index 9f2be0d..d95285b 100755 --- a/hal/odm_RTL8188E.c +++ b/hal/odm_RTL8188E.c @@ -36,7 +36,7 @@ ODM_DIG_LowerBound_88E( if (pDM_Odm->AntDivType == CG_TRX_HW_ANTDIV) { pDM_DigTable->rx_gain_range_min = (u1Byte) pDM_DigTable->AntDiv_RSSI_max; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_DIG_LowerBound_88E(): pDM_DigTable->AntDiv_RSSI_max=%d \n",pDM_DigTable->AntDiv_RSSI_max)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_DIG_LowerBound_88E(): pDM_DigTable->AntDiv_RSSI_max=%d\n",pDM_DigTable->AntDiv_RSSI_max)); } //If only one Entry connected @@ -61,7 +61,7 @@ odm_RX_HWAntDivInit( return; } #endif - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_RX_HWAntDivInit() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_RX_HWAntDivInit()\n")); //MAC Setting value32 = ODM_GetMACReg(pDM_Odm, ODM_REG_ANTSEL_PIN_11N, bMaskDWord); @@ -102,7 +102,7 @@ odm_TRX_HWAntDivInit( #endif - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_TRX_HWAntDivInit() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_TRX_HWAntDivInit()\n")); //MAC Setting value32 = ODM_GetMACReg(pDM_Odm, ODM_REG_ANTSEL_PIN_11N, bMaskDWord); @@ -143,7 +143,7 @@ odm_FastAntTrainingInit( pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable; u4Byte AntCombination = 2; PADAPTER Adapter = pDM_Odm->Adapter; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_FastAntTrainingInit() \n")); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("odm_FastAntTrainingInit()\n")); #if (MP_DRIVER == 1) if (*(pDM_Odm->mp_mode) == 1) diff --git a/hal/rtl8188e_cmd.c b/hal/rtl8188e_cmd.c index c2c7d26..ee1d17d 100755 --- a/hal/rtl8188e_cmd.c +++ b/hal/rtl8188e_cmd.c @@ -225,7 +225,7 @@ _func_enter_; FillH2CCmd_88E(padapter, RSSI_SETTING_EID, 3, param); #endif }else{ - DBG_8192C("==>%s fw dont support RA \n",__FUNCTION__); + DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__); res=_FAIL; } @@ -247,7 +247,7 @@ _func_enter_; FillH2CCmd_88E(padapter, H2C_DM_MACID_CFG, 3, buf); }else{ - DBG_8192C("==>%s fw dont support RA \n",__FUNCTION__); + DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__); res=_FAIL; } @@ -381,7 +381,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", __FUNCTION__,opmode,macid); + DBG_871X("### %s: MStatus=%x MACID=%d\n", __FUNCTION__,opmode,macid); FillH2CCmd_88E(padapter, H2C_COM_MEDIA_STATUS_RPT, sizeof(mst_rpt), (u8 *)&mst_rpt); } @@ -977,11 +977,11 @@ _func_enter_; switch (p2p_ps_state) { case P2P_PS_DISABLE: - DBG_8192C("P2P_PS_DISABLE \n"); + DBG_8192C("P2P_PS_DISABLE\n"); _rtw_memset(p2p_ps_offload, 0 ,1); break; case P2P_PS_ENABLE: - DBG_8192C("P2P_PS_ENABLE \n"); + DBG_8192C("P2P_PS_ENABLE\n"); // update CTWindow value. if ( pwdinfo->ctwindow > 0 ) { @@ -1034,11 +1034,11 @@ _func_enter_; } break; case P2P_PS_SCAN: - DBG_8192C("P2P_PS_SCAN \n"); + DBG_8192C("P2P_PS_SCAN\n"); p2p_ps_offload->discovery = 1; break; case P2P_PS_SCAN_DONE: - DBG_8192C("P2P_PS_SCAN_DONE \n"); + DBG_8192C("P2P_PS_SCAN_DONE\n"); p2p_ps_offload->discovery = 0; pwdinfo->p2p_ps_state = P2P_PS_ENABLE; break; @@ -1129,15 +1129,15 @@ _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",__FUNCTION__,pwowlan_parm.mode ); + DBG_871X_LEVEL(_drv_info_, "%s 2.pwowlan_parm.mode=0x%x\n",__FUNCTION__,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",__FUNCTION__,pwowlan_parm.mode ); + DBG_871X_LEVEL(_drv_info_, "%s 3.pwowlan_parm.mode=0x%x\n",__FUNCTION__,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",__FUNCTION__,pwowlan_parm.mode ); + DBG_871X_LEVEL(_drv_info_, "%s 4.pwowlan_parm.mode=0x%x\n",__FUNCTION__,pwowlan_parm.mode ); } if (!(padapter->pwrctrlpriv.wowlan_wake_reason & FWDecisionDisconnect)) @@ -1160,8 +1160,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",__FUNCTION__,pwowlan_parm.mode); - DBG_871X_LEVEL(_drv_info_, "%s 6.pwowlan_parm.index=0x%x \n",__FUNCTION__,pwowlan_parm.gpio_index); + DBG_871X_LEVEL(_drv_info_, "%s 5.pwowlan_parm.mode=0x%x\n",__FUNCTION__,pwowlan_parm.mode); + DBG_871X_LEVEL(_drv_info_, "%s 6.pwowlan_parm.index=0x%x\n",__FUNCTION__,pwowlan_parm.gpio_index); res = FillH2CCmd_88E(padapter, H2C_COM_WWLAN, 2, (u8 *)&pwowlan_parm); rtw_msleep_os(2); diff --git a/hal/rtl8188e_hal_init.c b/hal/rtl8188e_hal_init.c index 803e80c..0af531b 100755 --- a/hal/rtl8188e_hal_init.c +++ b/hal/rtl8188e_hal_init.c @@ -169,7 +169,7 @@ efuse_phymap_to_logical(u8 * phymap, u16 _offset, u16 _size_byte, u8 *pbuf) u1temp =( (rtemp8 & 0xE0) >> 5); //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x *rtemp&0xE0 0x%x\n", u1temp, *rtemp8 & 0xE0)); - //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x \n", u1temp)); + //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x\n", u1temp)); rtemp8 = *(phymap+eFuse_Addr); @@ -209,7 +209,7 @@ efuse_phymap_to_logical(u8 * phymap, u16 _offset, u16 _size_byte, u8 *pbuf) // Check word enable condition in the section if (!(wren & 0x01)) { - //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Addr=%d \n", eFuse_Addr)); + //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Addr=%d\n", eFuse_Addr)); rtemp8 = *(phymap+eFuse_Addr); eFuse_Addr++; //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Data=0x%x\n", *rtemp8)); @@ -448,7 +448,7 @@ static s32 iol_read_efuse( s32 rtl8188e_iol_efuse_patch(PADAPTER padapter) { s32 result = _SUCCESS; - printk("==> %s \n",__FUNCTION__); + printk("==> %s\n",__FUNCTION__); if (rtw_IOL_applied(padapter)){ iol_mode_enable(padapter, 1); @@ -484,7 +484,7 @@ int rtl8188e_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, int ret = _FAIL; u32 t1,t2; - //printk("===> %s ,bndy_cnt = %d \n",__FUNCTION__,bndy_cnt); + //printk("===> %s ,bndy_cnt = %d\n",__FUNCTION__,bndy_cnt); if (rtw_IOL_append_END_cmd(xmit_frame) != _SUCCESS) goto exit; #ifdef CONFIG_USB_HCI @@ -509,7 +509,7 @@ int rtl8188e_IOL_exec_cmds_sync(ADAPTER *adapter, struct xmit_frame *xmit_frame, for (i=0;i> 5); //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x *rtemp&0xE0 0x%x\n", u1temp, *rtemp8 & 0xE0)); - //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x \n", u1temp)); + //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("extended header u1temp=%x\n", u1temp)); ReadEFuseByte(Adapter, eFuse_Addr, rtemp8, bPseudoTest); @@ -1354,7 +1354,7 @@ Hal_EfuseReadEFuse88E( // Check word enable condition in the section if (!(wren & 0x01)) { - //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Addr=%d \n", eFuse_Addr)); + //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Addr=%d\n", eFuse_Addr)); ReadEFuseByte(Adapter, eFuse_Addr, rtemp8, bPseudoTest); eFuse_Addr++; //RTPRINT(FEEPROM, EFUSE_READ_ALL, ("Data=0x%x\n", *rtemp8)); @@ -3326,7 +3326,7 @@ Hal_GetChnlGroup88E( *pGroup = 5; else { - //RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 2.4 G, but Channel %d in Group not found \n",chnl)); + //RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 2.4 G, but Channel %d in Group not found\n",chnl)); } } else @@ -3361,7 +3361,7 @@ Hal_GetChnlGroup88E( *pGroup = 11; else { - //RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 5G, but Channel %d in Group not found \n",chnl)); + //RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 5G, but Channel %d in Group not found\n",chnl)); } } diff --git a/hal/rtl8188e_mp.c b/hal/rtl8188e_mp.c index 98c91be..3d53d4a 100755 --- a/hal/rtl8188e_mp.c +++ b/hal/rtl8188e_mp.c @@ -981,7 +981,7 @@ void Hal_SetCarrierSuppressionTx(PADAPTER pAdapter, u8 bStart) write_bbreg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000100); } - //DbgPrint("\n MPT_ProSetCarrierSupp() is finished. \n"); + //DbgPrint("\n MPT_ProSetCarrierSupp() is finished.\n"); } void Hal_SetCCKContinuousTx(PADAPTER pAdapter, u8 bStart) diff --git a/hal/rtl8188e_phycfg.c b/hal/rtl8188e_phycfg.c index 243a3e3..82dfe65 100755 --- a/hal/rtl8188e_phycfg.c +++ b/hal/rtl8188e_phycfg.c @@ -1188,7 +1188,7 @@ phy_ConfigBBWithHeaderFile( podmpriv->RFCalibrateInfo.RegA24 = Rtl819XPHY_REGArray_Table[i+1]; rtw_IOL_append_WD_cmd(xmit_frame, Rtl819XPHY_REGArray_Table[i], tmp_value); - //RT_TRACE(COMP_INIT, DBG_TRACE, ("The Rtl819XPHY_REGArray_Table[0] is %lx Rtl819XPHY_REGArray[1] is %lx \n",Rtl819XPHY_REGArray_Table[i], Rtl819XPHY_REGArray_Table[i+1])); + //RT_TRACE(COMP_INIT, DBG_TRACE, ("The Rtl819XPHY_REGArray_Table[0] is %lx Rtl819XPHY_REGArray[1] is %lx\n",Rtl819XPHY_REGArray_Table[i], Rtl819XPHY_REGArray_Table[i+1])); } ret = rtw_IOL_exec_cmds_sync(Adapter, xmit_frame, 1000,0); @@ -1221,7 +1221,7 @@ phy_ConfigBBWithHeaderFile( // Add 1us delay between BB/RF register setting. rtw_udelay_os(1); - //RT_TRACE(COMP_INIT, DBG_TRACE, ("The Rtl819XPHY_REGArray_Table[0] is %lx Rtl819XPHY_REGArray[1] is %lx \n",Rtl819XPHY_REGArray_Table[i], Rtl819XPHY_REGArray_Table[i+1])); + //RT_TRACE(COMP_INIT, DBG_TRACE, ("The Rtl819XPHY_REGArray_Table[0] is %lx Rtl819XPHY_REGArray[1] is %lx\n",Rtl819XPHY_REGArray_Table[i], Rtl819XPHY_REGArray_Table[i+1])); } #endif // for External PA @@ -1241,7 +1241,7 @@ phy_ConfigBBWithHeaderFile( for (i=0;iDefaultInitialGain[2] = (u8)PHY_QueryBBReg(Adapter, rOFDM0_XCAGCCore1, bMaskByte0); pHalData->DefaultInitialGain[3] = (u8)PHY_QueryBBReg(Adapter, rOFDM0_XDAGCCore1, bMaskByte0); //RT_TRACE(COMP_INIT, DBG_LOUD, - //("Default initial gain (c50=0x%x, c58=0x%x, c60=0x%x, c68=0x%x) \n", + //("Default initial gain (c50=0x%x, c58=0x%x, c60=0x%x, c68=0x%x)\n", //pHalData->DefaultInitialGain[0], pHalData->DefaultInitialGain[1], //pHalData->DefaultInitialGain[2], pHalData->DefaultInitialGain[3])); // read framesync pHalData->framesync = (u8)PHY_QueryBBReg(Adapter, rOFDM0_RxDetector3, bMaskByte0); pHalData->framesyncC34 = PHY_QueryBBReg(Adapter, rOFDM0_RxDetector2, bMaskDWord); - //RT_TRACE(COMP_INIT, DBG_LOUD, ("Default framesync (0x%x) = 0x%x \n", + //RT_TRACE(COMP_INIT, DBG_LOUD, ("Default framesync (0x%x) = 0x%x\n", // rOFDM0_RxDetector3, pHalData->framesync)); } @@ -2515,7 +2515,7 @@ void phy_PowerIndexCheck88E( pHalData->CurrentBW2024GTxPwrIdx = BW20PowerLevel[0]; pHalData->CurrentBW4024GTxPwrIdx = BW40PowerLevel[0]; - //DBG_871X("PHY_SetTxPowerLevel8188E(): CurrentCckTxPwrIdx : 0x%x,CurrentOfdm24GTxPwrIdx: 0x%x, CurrentBW2024GTxPwrIdx: 0x%dx, CurrentBW4024GTxPwrIdx: 0x%x \n", + //DBG_871X("PHY_SetTxPowerLevel8188E(): CurrentCckTxPwrIdx : 0x%x,CurrentOfdm24GTxPwrIdx: 0x%x, CurrentBW2024GTxPwrIdx: 0x%dx, CurrentBW4024GTxPwrIdx: 0x%x\n", // pHalData->CurrentCckTxPwrIdx, pHalData->CurrentOfdm24GTxPwrIdx, pHalData->CurrentBW2024GTxPwrIdx, pHalData->CurrentBW4024GTxPwrIdx); } /*----------------------------------------------------------------------------- @@ -2682,7 +2682,7 @@ PHY_ScanOperationBackup8188E( break; default: - RT_TRACE(COMP_SCAN, DBG_LOUD, ("Unknown Scan Backup Operation. \n")); + RT_TRACE(COMP_SCAN, DBG_LOUD, ("Unknown Scan Backup Operation.\n")); break; } } @@ -2849,7 +2849,7 @@ _PHY_SetBWMode92C( //pHalData->SetBWModeInProgress= FALSE; - //RT_TRACE(COMP_SCAN, DBG_LOUD, ("<==PHY_SetBWModeCallback8192C() \n" )); + //RT_TRACE(COMP_SCAN, DBG_LOUD, ("<==PHY_SetBWModeCallback8192C()\n" )); } diff --git a/hal/rtl8188e_rf6052.c b/hal/rtl8188e_rf6052.c index 7ff76b7..82cb50e 100755 --- a/hal/rtl8188e_rf6052.c +++ b/hal/rtl8188e_rf6052.c @@ -818,7 +818,7 @@ rtl8188e_PHY_RF6052SetOFDMTxPower( u8 index = 0; - //DBG_871X("PHY_RF6052SetOFDMTxPower, channel(%d) \n", Channel); + //DBG_871X("PHY_RF6052SetOFDMTxPower, channel(%d)\n", Channel); getPowerBase88E(Adapter, pPowerLevelOFDM,pPowerLevelBW20,pPowerLevelBW40, Channel, &powerBase0[0], &powerBase1[0]); diff --git a/hal/rtl8188e_sreset.c b/hal/rtl8188e_sreset.c index 78116ff..927c84d 100755 --- a/hal/rtl8188e_sreset.c +++ b/hal/rtl8188e_sreset.c @@ -55,7 +55,7 @@ static void _restore_security_setting(_adapter *padapter) { psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); if (psta == NULL) { - //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n")); + //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail\n")); } else { @@ -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",__FUNCTION__,rx_dma_status); + DBG_8192C("%s REG_RXDMA_STATUS:0x%08x\n",__FUNCTION__,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",__FUNCTION__,fw_status); + DBG_8192C("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !! \n",__FUNCTION__,fw_status); else if (fw_status == 2) - DBG_8192C("%s REG_FW_STATUS (0x%02x), Condition_No_Match !! \n",__FUNCTION__,fw_status); + DBG_8192C("%s REG_FW_STATUS (0x%02x), Condition_No_Match !! \n",__FUNCTION__,fw_status); } #if 0 u32 regc50,regc58,reg824,reg800; diff --git a/hal/rtl8188eu_xmit.c b/hal/rtl8188eu_xmit.c index 4e93da7..4e016ce 100755 --- a/hal/rtl8188eu_xmit.c +++ b/hal/rtl8188eu_xmit.c @@ -301,7 +301,7 @@ if (padapter->registrypriv.mp_mode == 0) offset += EARLY_MODE_INFO_SIZE ;//0x28 } #endif - //DBG_8192C("%s==>offset(0x%02x) \n",__FUNCTION__,offset); + //DBG_8192C("%s==>offset(0x%02x) \n",__FUNCTION__,offset); ptxdesc->txdw0 |= cpu_to_le32(((offset) << OFFSET_SHT) & 0x00ff0000);//32 bytes for TX Desc if (bmcst) ptxdesc->txdw0 |= cpu_to_le32(BMC); @@ -333,7 +333,7 @@ if (padapter->registrypriv.mp_mode == 0) 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_8192C("==> 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); @@ -763,12 +763,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",__FUNCTION__); + //DBG_871X("%s #1, connot alloc xmitbuf!!!!\n",__FUNCTION__); return _FALSE; } } -//DBG_8192C("%s ===================================== \n",__FUNCTION__); +//DBG_8192C("%s =====================================\n",__FUNCTION__); //3 1. pick up first frame do { rtw_free_xmitframe(pxmitpriv, pxmitframe); @@ -936,7 +936,7 @@ 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",__FUNCTION__); + DBG_871X("%s coalesce failed\n",__FUNCTION__); rtw_free_xmitframe(pxmitpriv, pxmitframe); continue; } @@ -1011,7 +1011,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",__FUNCTION__,pbuf_tail); +//DBG_8192C("%s ===================================== write port,buf_size(%d)\n",__FUNCTION__,pbuf_tail); // xmit address == ((xmit_frame*)pxmitbuf->priv_data)->buf_addr rtw_write_port(padapter, ff_hwaddr, pbuf_tail, (u8*)pxmitbuf); @@ -1112,7 +1112,7 @@ 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",__FUNCTION__); +//DBG_8192C("==> %s\n",__FUNCTION__); res = rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe); if (res == _SUCCESS) { @@ -1145,7 +1145,7 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe) _enter_critical_bh(&pxmitpriv->lock, &irqL); -//DBG_8192C("==> %s \n",__FUNCTION__); +//DBG_8192C("==> %s\n",__FUNCTION__); if (rtw_txframes_sta_ac_pending(padapter, pattrib) > 0) { diff --git a/hal/usb_halinit.c b/hal/usb_halinit.c index 322d25d..a67bb5f 100755 --- a/hal/usb_halinit.c +++ b/hal/usb_halinit.c @@ -88,7 +88,7 @@ _ConfigNormalChipOutEP_8188E( break; } - DBG_871X("%s OutEpQueueSel(0x%02x), OutEpNumber(%d) \n",__FUNCTION__,pHalData->OutEpQueueSel,pHalData->OutEpNumber ); + DBG_871X("%s OutEpQueueSel(0x%02x), OutEpNumber(%d)\n",__FUNCTION__,pHalData->OutEpQueueSel,pHalData->OutEpNumber ); } @@ -212,7 +212,7 @@ static void _InitPABias(_adapter *padapter) //efuse_one_byte_read(padapter, 0x1FA, &pa_setting); pa_setting = EFUSE_Read1Byte(padapter, 0x1FA); - //RT_TRACE(COMP_INIT, DBG_LOUD, ("_InitPABias 0x1FA 0x%x \n",pa_setting)); + //RT_TRACE(COMP_INIT, DBG_LOUD, ("_InitPABias 0x1FA 0x%x\n",pa_setting)); if (!(pa_setting & BIT0)) { @@ -1724,7 +1724,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MAC); status = PHY_MACConfig8188E(Adapter); if (status == _FAIL) { - DBG_871X(" ### Failed to init MAC ...... \n "); + DBG_871X(" ### Failed to init MAC ......\n "); goto exit; } #endif @@ -1737,7 +1737,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BB); status = PHY_BBConfig8188E(Adapter); if (status == _FAIL) { - DBG_871X(" ### Failed to init BB ...... \n "); + DBG_871X(" ### Failed to init BB ......\n "); goto exit; } #endif @@ -1748,7 +1748,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_RF); status = PHY_RFConfig8188E(Adapter); if (status == _FAIL) { - DBG_871X(" ### Failed to init RF ...... \n "); + DBG_871X(" ### Failed to init RF ......\n "); goto exit; } #endif @@ -1757,7 +1757,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",__FUNCTION__); + DBG_871X("%s rtl8188e_iol_efuse_patch failed\n",__FUNCTION__); goto exit; } #endif @@ -1967,7 +1967,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_INIT_HAL_DM); // Perform GPIO polling to find out current RF state. added by Roger, 2010.04.09. if (pHalData->BoardType == BOARD_MINICARD /*&& (Adapter->MgntInfo.PowerSaveControl.bGpioRfSw)*/) { - DBG_8192C("InitializeAdapter8192CU(): RF=%d \n", eRfPowerStateToSet); + DBG_8192C("InitializeAdapter8192CU(): RF=%d\n", eRfPowerStateToSet); if (eRfPowerStateToSet == rf_off) { //MgntActSet_RF_State(Adapter, rf_off, RF_CHANGE_BY_HW, _TRUE); @@ -2197,7 +2197,7 @@ u32 rtl8188eu_hal_deinit(PADAPTER Adapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); - DBG_8192C("==> %s \n",__FUNCTION__); + DBG_8192C("==> %s\n",__FUNCTION__); #ifdef CONFIG_SUPPORT_USB_INT rtw_write32(Adapter, REG_HIMR_88E, IMR_DISABLED_88E); @@ -2247,7 +2247,7 @@ _func_enter_; status = _SUCCESS; - RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("===> usb_inirp_init \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("===> usb_inirp_init\n")); precvpriv->ff_hwaddr = RECV_BULK_IN_ADDR; @@ -2257,7 +2257,7 @@ _func_enter_; { if (_read_port(pintfhdl, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf) == _FALSE ) { - RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_port error \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_port error\n")); status = _FAIL; goto exit; } @@ -2276,14 +2276,14 @@ _func_enter_; _read_interrupt = pintfhdl->io_ops._read_interrupt; if (_read_interrupt(pintfhdl, RECV_INT_IN_ADDR) == _FALSE ) { - RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_interrupt error \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_interrupt error\n")); status = _FAIL; } #endif exit: - RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("<=== usb_inirp_init \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("<=== usb_inirp_init\n")); _func_exit_; @@ -2293,11 +2293,11 @@ _func_exit_; unsigned int rtl8188eu_inirp_deinit(PADAPTER Adapter) { - RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("\n ===> usb_rx_deinit \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("\n ===> usb_rx_deinit\n")); rtw_read_port_cancel(Adapter); - RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("\n <=== usb_rx_deinit \n")); + RT_TRACE(_module_hci_hal_init_c_,_drv_info_,("\n <=== usb_rx_deinit\n")); return _SUCCESS; } @@ -2950,7 +2950,7 @@ static u32 Hal_readPGDataFromConfigFile( 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_871X("%02X\n", PROMContent[i]); } DBG_871X("\n"); set_fs(fs); @@ -3008,7 +3008,7 @@ Hal_ReadMACAddrFromFile_8188EU( end++; head = end; } - DBG_871X("%02x \n", pEEPROM->mac_addr[i]); + DBG_871X("%02x\n", pEEPROM->mac_addr[i]); } DBG_871X("\n"); set_fs(fs); @@ -4069,7 +4069,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",__FUNCTION__,bcn_interval,bcn_interval>>1); + DBG_8192C("%s==> bcn_interval:%d, eraly_int:%d\n",__FUNCTION__,bcn_interval,bcn_interval>>1); rtw_write8(Adapter, REG_DRVERLYINT, bcn_interval>>1);// 50ms for sdio } } @@ -4198,9 +4198,9 @@ _func_enter_; ulCommand= ulCommand | CAM_POLLINIG|CAM_WRITE; // write content 0 is equall to mark invalid rtw_write32(Adapter, WCAMI, ulContent); //delay_ms(40); - //RT_TRACE(COMP_SEC, DBG_LOUD, ("CAM_empty_entry(): WRITE A4: %lx \n",ulContent)); + //RT_TRACE(COMP_SEC, DBG_LOUD, ("CAM_empty_entry(): WRITE A4: %lx\n",ulContent)); rtw_write32(Adapter, RWCAM, ulCommand); //delay_ms(40); - //RT_TRACE(COMP_SEC, DBG_LOUD, ("CAM_empty_entry(): WRITE A0: %lx \n",ulCommand)); + //RT_TRACE(COMP_SEC, DBG_LOUD, ("CAM_empty_entry(): WRITE A0: %lx\n",ulCommand)); } } break; @@ -4495,7 +4495,7 @@ _func_enter_; break; }while (trycnt--); if (trycnt ==0) - DBG_8192C("Stop RX DMA failed...... \n"); + DBG_8192C("Stop RX DMA failed......\n"); //RQPN Load 0 rtw_write16(Adapter,REG_RQPN_NPQ,0x0); @@ -4574,7 +4574,7 @@ _func_enter_; } }while (trycnt--); if (trycnt ==0) - DBG_871X_LEVEL(_drv_always_, "Stop RX DMA failed...... \n"); + DBG_871X_LEVEL(_drv_always_, "Stop RX DMA failed......\n"); //Set WOWLAN H2C command. DBG_871X_LEVEL(_drv_always_, "Set WOWLan cmd\n"); @@ -4836,7 +4836,7 @@ GetHalDefVar8188EUsb( { u8Byte DebugComponents = *((u32*)pValue); PDM_ODM_T pDM_Odm = &(pHalData->odmpriv); - printk("pDM_Odm->DebugComponents = 0x%llx \n",pDM_Odm->DebugComponents ); + printk("pDM_Odm->DebugComponents = 0x%llx\n",pDM_Odm->DebugComponents ); } break; @@ -5253,7 +5253,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_8192C("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); diff --git a/hal/usb_ops_linux.c b/hal/usb_ops_linux.c index 04eda1f..2bda600 100755 --- a/hal/usb_ops_linux.c +++ b/hal/usb_ops_linux.c @@ -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", __FUNCTION__ ); + DBG_8192C( "[%s] pIo_buf == NULL\n", __FUNCTION__ ); status = -ENOMEM; goto release_mutex; } @@ -409,7 +409,7 @@ void interrupt_handler_8188eu(_adapter *padapter,u16 pkt_len,u8 *pbuf) hisr_ex = le32_to_cpu(hisr_ex); if ((hisr != 0) || (hisr_ex!=0)) - DBG_871X("===> %s hisr:0x%08x ,hisr_ex:0x%08x \n",__FUNCTION__,hisr,hisr_ex); + DBG_871X("===> %s hisr:0x%08x ,hisr_ex:0x%08x\n",__FUNCTION__,hisr,hisr_ex); } #endif @@ -475,13 +475,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",__FUNCTION__); + DBG_871X("===> %s Tx Error Flag Interrupt Status\n",__FUNCTION__); if ( pHalData->IntArray[1] & IMR_RXERR_88E ) - DBG_871X("===> %s Rx Error Flag INT Status \n",__FUNCTION__); + DBG_871X("===> %s Rx Error Flag INT Status\n",__FUNCTION__); if ( pHalData->IntArray[1] & IMR_TXFOVW_88E ) - DBG_871X("===> %s Transmit FIFO Overflow \n",__FUNCTION__); + DBG_871X("===> %s Transmit FIFO Overflow\n",__FUNCTION__); if ( pHalData->IntArray[1] & IMR_RXFOVW_88E ) - DBG_871X("===> %s Receive FIFO Overflow \n",__FUNCTION__); + DBG_871X("===> %s Receive FIFO Overflow\n",__FUNCTION__); #endif//DBG_CONFIG_ERROR_DETECT_INT @@ -844,7 +844,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf) #ifdef CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV //if (pattrib->pkt_len>2000){ - // printk("%s: RX Warning!pkt_len= %d, data rate=0x%02x \n", __FUNCTION__,pattrib->pkt_len,pattrib->mcs_rate); + // printk("%s: RX Warning!pkt_len= %d, data rate=0x%02x\n", __FUNCTION__,pattrib->pkt_len,pattrib->mcs_rate); //} #endif if ((pattrib->crc_err) || (pattrib->icv_err)) @@ -852,7 +852,7 @@ static int recvbuf2recvframe(_adapter *padapter, struct recv_buf *precvbuf) if (pattrib->pkt_len>2000){ DBG_8192C("%s: RX Warning! crc_err=%d icv_err=%d, skip!\n", __FUNCTION__, 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", __FUNCTION__,pattrib->pkt_len,pattrib->mcs_rate); + printk("%s: RX Warning!pkt_len= %d, data rate=0x%02x\n", __FUNCTION__,pattrib->pkt_len,pattrib->mcs_rate); #endif } rtw_free_recvframe(precvframe, pfree_recv_queue); @@ -980,13 +980,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_8192C("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_8192C("rx TX RPT\n"); ODM_RA_TxRPT2Handle_8188E( &pHalData->odmpriv, precvframe->u.hdr.rx_data, @@ -998,7 +998,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",__FUNCTION__); + //DBG_8192C("%s , rx USB HISR\n",__FUNCTION__); #ifdef CONFIG_SUPPORT_USB_INT interrupt_handler_8188eu(padapter,pattrib->pkt_len,precvframe->u.hdr.rx_data); #endif @@ -1033,7 +1033,7 @@ void rtl8188eu_recv_tasklet(void *priv) { if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE)) { - DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved \n"); + DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved\n"); break; } @@ -1086,7 +1086,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) } else { - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete : purb->status(%d) != 0 \n", purb->status)); + 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); @@ -1265,7 +1265,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", __FUNCTION__, __LINE__); + DBG_8192C("%s()-%d: RX Warning!,pkt_len<=0 or pkt_offset> transfoer_len\n", __FUNCTION__, __LINE__); rtw_free_recvframe(precvframe, pfree_recv_queue); goto _exit_recvbuf2recvframe; } @@ -1319,7 +1319,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_8192C("recvbuf2recvframe: alloc_skb fail , drop frag frame\n"); rtw_free_recvframe(precvframe, pfree_recv_queue); goto _exit_recvbuf2recvframe; } @@ -1386,12 +1386,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_8192C("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_8192C("rx TX RPT\n"); ODM_RA_TxRPT2Handle_8188E( &pHalData->odmpriv, precvframe->u.hdr.rx_data, @@ -1403,7 +1403,7 @@ static int recvbuf2recvframe(_adapter *padapter, _pkt *pskb) } else if (pattrib->pkt_rpt_type == HIS_REPORT) { - //DBG_8192C("%s , rx USB HISR \n",__FUNCTION__); + //DBG_8192C("%s , rx USB HISR\n",__FUNCTION__); #ifdef CONFIG_SUPPORT_USB_INT interrupt_handler_8188eu(padapter,pattrib->pkt_len,precvframe->u.hdr.rx_data); #endif @@ -1438,7 +1438,7 @@ void rtl8188eu_recv_tasklet(void *priv) { if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE)) { - DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved \n"); + DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved\n"); dev_kfree_skb_any(pskb); break; } @@ -1529,7 +1529,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) } else { - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete : purb->status(%d) != 0 \n", purb->status)); + 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); diff --git a/include/osdep_service.h b/include/osdep_service.h index a28ce56..a7c506e 100755 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -717,12 +717,12 @@ __inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled) __inline static void _init_workitem(_workitem *pwork, void *pfunc, PVOID cntx) { - printf("%s Not implement yet! \n",__FUNCTION__); + printf("%s Not implement yet!\n",__FUNCTION__); } __inline static void _set_workitem(_workitem *pwork) { - printf("%s Not implement yet! \n",__FUNCTION__); + printf("%s Not implement yet!\n",__FUNCTION__); // schedule_work(pwork); } diff --git a/os_dep/gspi_intf.c b/os_dep/gspi_intf.c index 5da8e27..da09368 100755 --- a/os_dep/gspi_intf.c +++ b/os_dep/gspi_intf.c @@ -208,14 +208,14 @@ _func_enter_; spi_setup(spi); #if 1 - //DBG_8192C("set spi ==========================%d \n", spi_setup(spi)); + //DBG_8192C("set spi ==========================%d\n", spi_setup(spi)); - DBG_871X("%s, mode = %d \n", __func__, spi->mode); - DBG_871X("%s, bit_per_word = %d \n", __func__, spi->bits_per_word); - DBG_871X("%s, speed = %d \n", __func__, spi->max_speed_hz); - DBG_871X("%s, chip_select = %d \n", __func__, spi->chip_select); - DBG_871X("%s, controller_data = %d \n", __func__, *(int *)spi->controller_data); - DBG_871X("%s, irq= %d \n", __func__, oob_irq); + DBG_871X("%s, mode = %d\n", __func__, spi->mode); + DBG_871X("%s, bit_per_word = %d\n", __func__, spi->bits_per_word); + DBG_871X("%s, speed = %d\n", __func__, spi->max_speed_hz); + DBG_871X("%s, chip_select = %d\n", __func__, spi->chip_select); + DBG_871X("%s, controller_data = %d\n", __func__, *(int *)spi->controller_data); + DBG_871X("%s, irq= %d\n", __func__, oob_irq); #endif spi_set_drvdata(spi, dvobj); diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c index 3f6815a..6ac38fe 100755 --- a/os_dep/ioctl_cfg80211.c +++ b/os_dep/ioctl_cfg80211.c @@ -1095,14 +1095,14 @@ _func_enter_; struct sta_info * psta,*pbcmc_sta; struct sta_priv * pstapriv = &padapter->stapriv; - //DBG_8192C("%s, : dot11AuthAlgrthm == dot11AuthAlgrthm_8021X \n", __func__); + //DBG_8192C("%s, : dot11AuthAlgrthm == dot11AuthAlgrthm_8021X\n", __func__); if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == _TRUE) //sta mode { psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); if (psta == NULL) { - //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n")); - DBG_8192C("%s, : Obtain Sta_info fail \n", __func__); + //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail\n")); + DBG_8192C("%s, : Obtain Sta_info fail\n", __func__); } else { @@ -1120,7 +1120,7 @@ _func_enter_; if (param->u.crypt.set_tx ==1)//pairwise key { - DBG_8192C("%s, : param->u.crypt.set_tx ==1 \n", __func__); + DBG_8192C("%s, : param->u.crypt.set_tx ==1\n", __func__); _rtw_memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); @@ -1164,7 +1164,7 @@ _func_enter_; pbcmc_sta=rtw_get_bcmc_stainfo(padapter); if (pbcmc_sta==NULL) { - //DEBUG_ERR( ("Set OID_802_11_ADD_KEY: bcmc stainfo is null \n")); + //DEBUG_ERR( ("Set OID_802_11_ADD_KEY: bcmc stainfo is null\n")); } else { @@ -1322,9 +1322,9 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev, } _rtw_memcpy((void*)param->sta_addr, (void*)mac_addr, ETH_ALEN); } else { - DBG_871X("mac_addr is null \n"); + DBG_871X("mac_addr is null\n"); } - DBG_871X("rtw_wx_set_enc_ext: SMS4 case \n"); + DBG_871X("rtw_wx_set_enc_ext: SMS4 case\n"); break; #endif @@ -2346,7 +2346,7 @@ static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen) int i; DBG_8192C("set wpa_ie(length:%zu):\n", ielen); for (i=0;inetwork.IEs ,pnetwork->network.IELength,wapi_ie,&wapi_len); RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("rtw_wx_get_scan: ssid=%s\n",pnetwork->network.Ssid.Ssid)); - RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("rtw_wx_get_scan: wapi_len=%d \n",wapi_len)); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,("rtw_wx_get_scan: wapi_len=%d\n",wapi_len)); DBG_871X("rtw_wx_get_scan: %s ",pnetwork->network.Ssid.Ssid); DBG_871X("rtw_wx_get_scan: ssid = %d ",wapi_len); @@ -891,7 +891,7 @@ _func_enter_; { psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); if (psta == NULL) { - //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail \n")); + //DEBUG_ERR( ("Set wpa_set_encryption: Obtain Sta_info fail\n")); } else { @@ -949,7 +949,7 @@ _func_enter_; pbcmc_sta=rtw_get_bcmc_stainfo(padapter); if (pbcmc_sta==NULL) { - //DEBUG_ERR( ("Set OID_802_11_ADD_KEY: bcmc stainfo is null \n")); + //DEBUG_ERR( ("Set OID_802_11_ADD_KEY: bcmc stainfo is null\n")); } else { @@ -1079,7 +1079,7 @@ static int rtw_set_wpa_ie(_adapter *padapter, char *pie, unsigned short ielen) int i; DBG_871X("\n wpa_ie(length:%d):\n", ielen); for (i=0;i 0){ - RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("Ie length mismatch, %u too much \n", left)); + RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("Ie length mismatch, %u too much\n", left)); ret =-1; goto exit; } @@ -1363,7 +1363,7 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a, default : ret = -EINVAL;; - RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("\n Mode: %s is not supported \n", iw_operation_mode[wrqu->mode])); + RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_err_,("\n Mode: %s is not supported \n", iw_operation_mode[wrqu->mode])); goto exit; } @@ -1401,7 +1401,7 @@ static int rtw_wx_get_mode(struct net_device *dev, struct iw_request_info *a, _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); - RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,(" rtw_wx_get_mode \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,(" rtw_wx_get_mode\n")); _func_enter_; @@ -2574,7 +2574,7 @@ static int rtw_wx_set_rate(struct net_device *dev, _func_enter_; - RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,(" rtw_wx_set_rate \n")); + RT_TRACE(_module_rtl871x_mlme_c_,_drv_info_,(" rtw_wx_set_rate\n")); RT_TRACE(_module_rtl871x_ioctl_os_c,_drv_info_,("target_rate = %d, fixed = %d\n",target_rate,fixed)); if (target_rate == -1){ @@ -3108,12 +3108,12 @@ static int rtw_wx_set_auth(struct net_device *dev, case IW_AUTH_KEY_MGMT: #ifdef CONFIG_WAPI_SUPPORT #ifndef CONFIG_IOCTL_CFG80211 - DBG_871X("rtw_wx_set_auth: IW_AUTH_KEY_MGMT case \n"); + DBG_871X("rtw_wx_set_auth: IW_AUTH_KEY_MGMT case\n"); if (value == IW_AUTH_KEY_MGMT_WAPI_PSK) padapter->wapiInfo.bWapiPSK = true; else padapter->wapiInfo.bWapiPSK = false; - DBG_871X("rtw_wx_set_auth: IW_AUTH_KEY_MGMT bwapipsk %d \n",padapter->wapiInfo.bWapiPSK); + DBG_871X("rtw_wx_set_auth: IW_AUTH_KEY_MGMT bwapipsk %d\n",padapter->wapiInfo.bWapiPSK); #endif #endif /* @@ -3261,7 +3261,7 @@ static int rtw_wx_set_enc_ext(struct net_device *dev, case IW_ENCODE_ALG_SM4: alg_name= "SMS4"; _rtw_memcpy(param->sta_addr, pext->addr.sa_data, ETH_ALEN); - DBG_871X("rtw_wx_set_enc_ext: SMS4 case \n"); + DBG_871X("rtw_wx_set_enc_ext: SMS4 case\n"); break; #endif #endif @@ -4383,7 +4383,7 @@ static int rtw_p2p_profilefound(struct net_device *dev, // YY => SSID Length // SSID => SSID for persistence group - DBG_871X( "[%s] In value = %s, len = %d \n", __FUNCTION__, extra, wrqu->data.length -1); + DBG_871X( "[%s] In value = %s, len = %d\n", __FUNCTION__, extra, wrqu->data.length -1); // The upper application should pass the SSID to driver by using this rtw_p2p_profilefound function. @@ -5658,7 +5658,7 @@ static int rtw_p2p_set_pc(struct net_device *dev, if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen) ) { // Handle the P2P Device ID attribute of Beacon first - printk( "[%s] P2P_ATTR_DEVICE_ID \n", __FUNCTION__ ); + printk( "[%s] P2P_ATTR_DEVICE_ID\n", __FUNCTION__ ); if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) ) { uintPeerChannel = pnetwork->network.Configuration.DSConfig; @@ -5668,7 +5668,7 @@ static int rtw_p2p_set_pc(struct net_device *dev, else if ( rtw_get_p2p_attr_content( p2pie, p2pielen, P2P_ATTR_DEVICE_INFO, attr_content, &attr_contentlen) ) { // Handle the P2P Device Info attribute of probe response - printk( "[%s] P2P_ATTR_DEVICE_INFO \n", __FUNCTION__ ); + printk( "[%s] P2P_ATTR_DEVICE_INFO\n", __FUNCTION__ ); if ( _rtw_memcmp( attr_content, peerMAC, ETH_ALEN ) ) { uintPeerChannel = pnetwork->network.Configuration.DSConfig; @@ -7179,14 +7179,14 @@ static int rtw_dbg_port(struct net_device *dev, if (0xf==extra_arg){ rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DM_FUNC,&odm_flag); - DBG_871X(" === DMFlag(0x%08x) === \n",odm_flag); - DBG_871X("extra_arg = 0 - disable all dynamic func \n"); + DBG_871X(" === DMFlag(0x%08x) ===\n",odm_flag); + DBG_871X("extra_arg = 0 - disable all dynamic func\n"); DBG_871X("extra_arg = 1 - disable DIG- BIT(0)\n"); DBG_871X("extra_arg = 2 - disable High power - BIT(1)\n"); DBG_871X("extra_arg = 3 - disable tx power tracking - BIT(2)\n"); DBG_871X("extra_arg = 4 - disable BT coexistence - BIT(3)\n"); DBG_871X("extra_arg = 5 - disable antenna diversity - BIT(4)\n"); - DBG_871X("extra_arg = 6 - enable all dynamic func \n"); + DBG_871X("extra_arg = 6 - enable all dynamic func\n"); } else{ /* extra_arg = 0 - disable all dynamic func @@ -7196,7 +7196,7 @@ static int rtw_dbg_port(struct net_device *dev, */ rtw_hal_set_def_var(padapter, HAL_DEF_DBG_DM_FUNC, &(extra_arg)); rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DM_FUNC,&odm_flag); - DBG_871X(" === DMFlag(0x%08x) === \n",odm_flag); + DBG_871X(" === DMFlag(0x%08x) ===\n",odm_flag); } } break; @@ -9732,9 +9732,9 @@ static int rtw_mp_efuse_set(struct net_device *dev, else if (strcmp(tmp[0], "wldumpfake") == 0) { if (rtw_efuse_map_read(padapter, 0, EFUSE_BT_MAX_MAP_LEN, pEfuseHal->fakeEfuseModifiedMap) == _SUCCESS) { - DBG_871X("%s: BT read all map success \n", __FUNCTION__); + DBG_871X("%s: BT read all map success\n", __FUNCTION__); } else { - DBG_871X("%s: BT read all map Fail \n", __FUNCTION__); + DBG_871X("%s: BT read all map Fail\n", __FUNCTION__); err = -EFAULT; } } @@ -10072,7 +10072,7 @@ static int rtw_mp_read_reg(struct net_device *dev, write_rfreg(padapter, path, addr, data); - sprintf(extra, "write_rf completed \n"); + sprintf(extra, "write_rf completed\n"); wrqu->length = strlen(extra); return 0; @@ -10278,7 +10278,7 @@ static int rtw_mp_bandwidth(struct net_device *dev, if (bandwidth != HT_CHANNEL_WIDTH_40) bandwidth = HT_CHANNEL_WIDTH_20; - //DBG_871X("%s: bw=%d sg=%d \n", __func__, bandwidth , sg); + //DBG_871X("%s: bw=%d sg=%d\n", __func__, bandwidth , sg); padapter->mppriv.bandwidth = (u8)bandwidth; padapter->mppriv.preamble = sg; @@ -10479,9 +10479,9 @@ static int rtw_mp_ctx(struct net_device *dev, return 0; case MP_SINGLE_TONE_TX: - //DBG_871X("%s: sgleTx %d \n", __func__, bStartTest); + //DBG_871X("%s: sgleTx %d\n", __func__, bStartTest); if (bStartTest != 0){ - sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes."); + sprintf( extra, "Start continuous DA=ffffffffffff len=1500\n infinite=yes."); } Hal_SetSingleToneTx(padapter, (u8)bStartTest); break; @@ -10489,7 +10489,7 @@ static int rtw_mp_ctx(struct net_device *dev, case MP_CONTINUOUS_TX: //DBG_871X("%s: cotuTx %d\n", __func__, bStartTest); if (bStartTest != 0){ - sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes."); + sprintf( extra, "Start continuous DA=ffffffffffff len=1500\n infinite=yes."); } Hal_SetContinuousTx(padapter, (u8)bStartTest); break; @@ -10499,7 +10499,7 @@ static int rtw_mp_ctx(struct net_device *dev, if (bStartTest != 0){ if ( pmp_priv->rateidx <= MPT_RATE_11M ) { - sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes."); + sprintf( extra, "Start continuous DA=ffffffffffff len=1500\n infinite=yes."); Hal_SetCarrierSuppressionTx(padapter, (u8)bStartTest); }else sprintf( extra, "Specify carrier suppression but not CCK rate"); @@ -10509,7 +10509,7 @@ static int rtw_mp_ctx(struct net_device *dev, case MP_SINGLE_CARRIER_TX: //DBG_871X("%s: scTx %d\n", __func__, bStartTest); if (bStartTest != 0){ - sprintf( extra, "Start continuous DA=ffffffffffff len=1500 \n infinite=yes."); + sprintf( extra, "Start continuous DA=ffffffffffff len=1500\n infinite=yes."); } Hal_SetSingleCarrierTx(padapter, (u8)bStartTest); break; @@ -10705,7 +10705,7 @@ static int rtw_mp_thermal(struct net_device *dev, if (copy_from_user(extra, wrqu->pointer, wrqu->length)) return -EFAULT; - //DBG_871X("print extra %s \n",extra); + //DBG_871X("print extra %s\n",extra); bwrite = strncmp(extra, "write", 6); // strncmp TRUE is 0 @@ -10722,7 +10722,7 @@ static int rtw_mp_thermal(struct net_device *dev, } if ( rtw_efuse_map_write(padapter, addr, cnt, &val) == _FAIL ) { - DBG_871X("rtw_efuse_map_write error \n"); + DBG_871X("rtw_efuse_map_write error\n"); return -EFAULT; } else @@ -11005,7 +11005,7 @@ static int rtw_mp_SetBT(struct net_device *dev, for (jj=0, kk=0; jjflags; PADAPTER padapter = rtw_netdev_priv(dev); - //DBG_871X("in mp_get extra= %s \n",extra); + //DBG_871X("in mp_get extra= %s\n",extra); if (padapter == NULL) { @@ -11166,93 +11166,93 @@ static int rtw_mp_get(struct net_device *dev, break; case MP_PHYPARA: - DBG_871X("mp_get MP_PHYPARA \n"); + DBG_871X("mp_get MP_PHYPARA\n"); rtw_mp_phypara(dev,info,wrqu,extra); break; case MP_CHANNEL: - DBG_871X("set case mp_channel \n"); + DBG_871X("set case mp_channel\n"); rtw_mp_channel (dev,info,wrqu,extra); break; case READ_REG: - DBG_871X("mp_get READ_REG \n"); + DBG_871X("mp_get READ_REG\n"); rtw_mp_read_reg (dev,info,wrqu,extra); break; case READ_RF: - DBG_871X("mp_get READ_RF \n"); + DBG_871X("mp_get READ_RF\n"); rtw_mp_read_rf (dev,info,wrqu,extra); break; case MP_RATE: - DBG_871X("set case mp_rate \n"); + DBG_871X("set case mp_rate\n"); rtw_mp_rate (dev,info,wrqu,extra); break; case MP_TXPOWER: - DBG_871X("set case MP_TXPOWER \n"); + DBG_871X("set case MP_TXPOWER\n"); rtw_mp_txpower (dev,info,wrqu,extra); break; case MP_ANT_TX: - DBG_871X("set case MP_ANT_TX \n"); + DBG_871X("set case MP_ANT_TX\n"); rtw_mp_ant_tx (dev,info,wrqu,extra); break; case MP_ANT_RX: - DBG_871X("set case MP_ANT_RX \n"); + DBG_871X("set case MP_ANT_RX\n"); rtw_mp_ant_rx (dev,info,wrqu,extra); break; case MP_QUERY: - //DBG_871X("mp_get mp_query MP_QUERY \n"); + //DBG_871X("mp_get mp_query MP_QUERY\n"); rtw_mp_trx_query(dev,info,wrqu,extra); break; case MP_CTX: - DBG_871X("set case MP_CTX \n"); + DBG_871X("set case MP_CTX\n"); rtw_mp_ctx (dev,info,wrqu,extra); break; case MP_ARX: - DBG_871X("set case MP_ARX \n"); + DBG_871X("set case MP_ARX\n"); rtw_mp_arx (dev,info,wrqu,extra); break; case EFUSE_GET: - DBG_871X("efuse get EFUSE_GET \n"); + DBG_871X("efuse get EFUSE_GET\n"); rtw_mp_efuse_get(dev,info,wdata,extra); break; case MP_DUMP: - DBG_871X("set case MP_DUMP \n"); + DBG_871X("set case MP_DUMP\n"); rtw_mp_dump (dev,info,wrqu,extra); break; case MP_PSD: - DBG_871X("set case MP_PSD \n"); + DBG_871X("set case MP_PSD\n"); rtw_mp_psd (dev,info,wrqu,extra); break; case MP_THER: - DBG_871X("set case MP_THER \n"); + DBG_871X("set case MP_THER\n"); rtw_mp_thermal (dev,info,wrqu,extra); break; case MP_QueryDrvStats: - DBG_871X("mp_get MP_QueryDrvStats \n"); + DBG_871X("mp_get MP_QueryDrvStats\n"); rtw_mp_QueryDrv (dev,info,wdata,extra); break; case MP_PWRTRK: - DBG_871X("set case MP_PWRTRK \n"); + DBG_871X("set case MP_PWRTRK\n"); rtw_mp_pwrtrk (dev,info,wrqu,extra); break; case EFUSE_SET: - DBG_871X("set case efuse set \n"); + DBG_871X("set case efuse set\n"); rtw_mp_efuse_set (dev,info,wdata,extra); break; #ifdef CONFIG_RTL8723A case MP_SetBT: - DBG_871X("set MP_SetBT \n"); + DBG_871X("set MP_SetBT\n"); rtw_mp_SetBT (dev,info,wdata,extra); break; #endif @@ -11614,7 +11614,7 @@ static int rtw_tdls_setip(struct net_device *dev, i++; } - printk( "[%s] Set IP = %u.%u.%u.%u \n", __FUNCTION__, + printk( "[%s] Set IP = %u.%u.%u.%u\n", __FUNCTION__, ptdlsinfo->wfd_info->ip_address[0], ptdlsinfo->wfd_info->ip_address[1], ptdlsinfo->wfd_info->ip_address[2], ptdlsinfo->wfd_info->ip_address[3] ); diff --git a/os_dep/mlme_linux.c b/os_dep/mlme_linux.c index 72dcd62..3a914f3 100755 --- a/os_dep/mlme_linux.c +++ b/os_dep/mlme_linux.c @@ -527,7 +527,7 @@ int hostapd_mode_init(_adapter *padapter) if (dev_alloc_name(pnetdev,"mgnt.wlan%d") < 0) { - DBG_871X("hostapd_mode_init(): dev_alloc_name, fail! \n"); + DBG_871X("hostapd_mode_init(): dev_alloc_name, fail!\n"); } diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index 2af56ad..754e29b 100755 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -1032,7 +1032,7 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) if (dev_alloc_name(pnetdev, ifname) < 0) { - RT_TRACE(_module_os_intfs_c_,_drv_err_,("dev_alloc_name, fail! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_err_,("dev_alloc_name, fail!\n")); } netif_carrier_off(pnetdev); @@ -1179,14 +1179,14 @@ void rtw_stop_drv_threads (_adapter *padapter) _rtw_up_sema(&padapter->xmitpriv.xmit_sema); _rtw_down_sema(&padapter->xmitpriv.terminate_xmitthread_sema); } - RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt: rtw_xmit_thread can be terminated ! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt: rtw_xmit_thread can be terminated !\n")); #endif #ifdef CONFIG_RECV_THREAD_MODE // Below is to termindate rx_thread... _rtw_up_sema(&padapter->recvpriv.recv_sema); _rtw_down_sema(&padapter->recvpriv.terminate_recvthread_sema); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt:recv_thread can be terminated! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt:recv_thread can be terminated!\n")); #endif rtw_hal_stop_thread(padapter); @@ -1451,7 +1451,7 @@ exit: void rtw_cancel_dynamic_chk_timer(_adapter *padapter) { _cancel_timer_ex(&padapter->mlmepriv.dynamic_chk_timer); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel dynamic_chk_timer! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel dynamic_chk_timer!\n")); } #endif @@ -1460,20 +1460,20 @@ void rtw_cancel_all_timer(_adapter *padapter) RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_cancel_all_timer\n")); _cancel_timer_ex(&padapter->mlmepriv.assoc_timer); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel association timer complete! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel association timer complete!\n")); //_cancel_timer_ex(&padapter->securitypriv.tkip_timer); - //RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel tkip_timer! \n")); + //RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel tkip_timer!\n")); _cancel_timer_ex(&padapter->mlmepriv.scan_to_timer); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel scan_to_timer! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel scan_to_timer!\n")); _cancel_timer_ex(&padapter->mlmepriv.dynamic_chk_timer); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel dynamic_chk_timer! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel dynamic_chk_timer!\n")); // cancel sw led timer rtw_hal_sw_led_deinit(padapter); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel DeInitSwLeds! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel DeInitSwLeds!\n")); _cancel_timer_ex(&padapter->pwrctrlpriv.pwr_state_check_timer); @@ -1485,7 +1485,7 @@ void rtw_cancel_all_timer(_adapter *padapter) #ifdef CONFIG_SET_SCAN_DENY_TIMER _cancel_timer_ex(&padapter->mlmepriv.set_scan_deny_timer); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel set_scan_deny_timer! \n")); + RT_TRACE(_module_os_intfs_c_,_drv_info_,("rtw_cancel_all_timer:cancel set_scan_deny_timer!\n")); #endif #ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS @@ -1801,7 +1801,7 @@ _adapter *rtw_drv_if2_init(_adapter *primary_padapter, char *name, //step init_io_priv if ((rtw_init_io_priv(padapter, set_intf_ops)) == _FAIL) { - RT_TRACE(_module_hci_intfs_c_,_drv_err_,(" \n Can't init io_reqs\n")); + RT_TRACE(_module_hci_intfs_c_,_drv_err_,("\n Can't init io_reqs\n")); } //step read_chip_version diff --git a/os_dep/pci_intf.c b/os_dep/pci_intf.c index 369d497..df33e84 100755 --- a/os_dep/pci_intf.c +++ b/os_dep/pci_intf.c @@ -843,7 +843,7 @@ void rtw_pci_enable_aspm(_adapter *padapter) //NdisRawWritePortUlong((ULONG_PTR)PCI_CONF_ADDRESS , PciCfgAddrPort+(Num4Bytes << 2)); //NdisRawReadPortUlong((ULONG_PTR)PCI_CONF_DATA,&uDeviceASPMSupportSetting); pci_read_config_dword(bridge_pdev, (pcipriv->pcibridge_pciehdr_offset+0x0C), &u_device_aspmsupportsetting); - DBG_871X("rtw_pci_enable_aspm(): Bridge ASPM support %x \n",u_device_aspmsupportsetting); + DBG_871X("rtw_pci_enable_aspm(): Bridge ASPM support %x\n",u_device_aspmsupportsetting); if (((u_device_aspmsupportsetting & BIT(11)) != BIT(11)) || ((u_device_aspmsupportsetting & BIT(10)) != BIT(10))) { if (pdvobjpriv->const_devicepci_aspm_setting == 3) @@ -855,7 +855,7 @@ void rtw_pci_enable_aspm(_adapter *padapter) { if ((u_device_aspmsupportsetting & BIT(11)) != BIT(11)) { - DBG_871X("rtw_pci_enable_aspm(): Bridge not support L1 \n"); + DBG_871X("rtw_pci_enable_aspm(): Bridge not support L1\n"); return; } } @@ -863,7 +863,7 @@ void rtw_pci_enable_aspm(_adapter *padapter) { if ((u_device_aspmsupportsetting & BIT(10)) != BIT(10)) { - DBG_871X("rtw_pci_enable_aspm(): Bridge not support L0s \n"); + DBG_871X("rtw_pci_enable_aspm(): Bridge not support L0s\n"); return; } @@ -871,7 +871,7 @@ void rtw_pci_enable_aspm(_adapter *padapter) } else { - DBG_871X("rtw_pci_enable_aspm(): Bridge support L0s and L1 \n"); + DBG_871X("rtw_pci_enable_aspm(): Bridge support L0s and L1\n"); } } diff --git a/os_dep/recv_linux.c b/os_dep/recv_linux.c index eabb64a..3f74ae0 100755 --- a/os_dep/recv_linux.c +++ b/os_dep/recv_linux.c @@ -283,7 +283,7 @@ _func_enter_; RT_TRACE(_module_recv_osdep_c_,_drv_info_,("rtw_recv_indicatepkt():skb != NULL !!!\n")); RT_TRACE(_module_recv_osdep_c_,_drv_info_,("rtw_recv_indicatepkt():precv_frame->u.hdr.rx_head=%p precv_frame->hdr.rx_data=%p\n", precv_frame->u.hdr.rx_head, precv_frame->u.hdr.rx_data)); - RT_TRACE(_module_recv_osdep_c_,_drv_info_,("precv_frame->hdr.rx_tail=%p precv_frame->u.hdr.rx_end=%p precv_frame->hdr.len=%d \n", precv_frame->u.hdr.rx_tail, precv_frame->u.hdr.rx_end, precv_frame->u.hdr.len)); + RT_TRACE(_module_recv_osdep_c_,_drv_info_,("precv_frame->hdr.rx_tail=%p precv_frame->u.hdr.rx_end=%p precv_frame->hdr.len=%d\n", precv_frame->u.hdr.rx_tail, precv_frame->u.hdr.rx_end, precv_frame->u.hdr.len)); skb->data = precv_frame->u.hdr.rx_data; @@ -375,10 +375,10 @@ _func_enter_; #ifdef CONFIG_TCP_CSUM_OFFLOAD_RX if ( (pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1) ) { skb->ip_summed = CHECKSUM_UNNECESSARY; - //DBG_871X("CHECKSUM_UNNECESSARY \n"); + //DBG_871X("CHECKSUM_UNNECESSARY\n"); } else { skb->ip_summed = CHECKSUM_NONE; - //DBG_871X("CHECKSUM_NONE(%d, %d) \n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt); + //DBG_871X("CHECKSUM_NONE(%d, %d)\n", pattrib->tcpchk_valid, pattrib->tcp_chkrpt); } #else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */ diff --git a/os_dep/usb_intf.c b/os_dep/usb_intf.c index 2890c08..671d5a0 100755 --- a/os_dep/usb_intf.c +++ b/os_dep/usb_intf.c @@ -887,7 +887,7 @@ int rtw_hw_suspend(_adapter *padapter ) return 0; error_exit: - DBG_871X("%s, failed \n",__FUNCTION__); + DBG_871X("%s, failed\n",__FUNCTION__); return (-1); } @@ -938,7 +938,7 @@ int rtw_hw_resume(_adapter *padapter) return 0; error_exit: - DBG_871X("%s, Open net dev failed \n",__FUNCTION__); + DBG_871X("%s, Open net dev failed\n",__FUNCTION__); return (-1); } #endif @@ -1282,7 +1282,7 @@ int autoresume_enter(_adapter* padapter) struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); struct dvobj_priv *dvobj = adapter_to_dvobj(padapter); - DBG_871X("====> autoresume_enter \n"); + DBG_871X("====> autoresume_enter\n"); if (rf_off == pwrpriv->rf_pwrstate ) { @@ -1332,7 +1332,7 @@ int autoresume_enter(_adapter* padapter) DBG_871X("0!=pwrpriv->autopm_cnt[%d] didn't usb_autopm_get_interface\n",pwrpriv->autopm_cnt); #endif //#ifndef CONFIG_BT_COEXIST } - DBG_871X("<==== autoresume_enter \n"); + DBG_871X("<==== autoresume_enter\n"); error_exit: return result; @@ -1483,7 +1483,7 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33)) if (usb_autopm_get_interface(pusb_intf) < 0) { - DBG_871X( "can't get autopm: \n"); + DBG_871X( "can't get autopm:\n"); } #endif #ifdef CONFIG_BT_COEXIST diff --git a/os_dep/usb_ops_linux.c b/os_dep/usb_ops_linux.c index c5d5f19..3c93105 100755 --- a/os_dep/usb_ops_linux.c +++ b/os_dep/usb_ops_linux.c @@ -292,7 +292,7 @@ void usb_read_port_cancel(struct intf_hdl *pintfhdl) precvbuf->reuse = _TRUE; if (precvbuf->purb) { - //DBG_8192C("usb_read_port_cancel : usb_kill_urb \n"); + //DBG_8192C("usb_read_port_cancel : usb_kill_urb\n"); usb_kill_urb(precvbuf->purb); } precvbuf++; @@ -385,7 +385,7 @@ _func_enter_; if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||padapter->bWritePortCancel) { RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved)); - DBG_8192C("%s(): TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bWritePortCancel(%d) pxmitbuf->ext_tag(%x) \n", + DBG_8192C("%s(): TX Warning! bDriverStopped(%d) OR bSurpriseRemoved(%d) bWritePortCancel(%d) pxmitbuf->ext_tag(%x)\n", __FUNCTION__,padapter->bDriverStopped, padapter->bSurpriseRemoved,padapter->bReadPortCancel,pxmitbuf->ext_tag); goto check_completion; @@ -395,7 +395,7 @@ _func_enter_; if (purb->status==0) { } else { - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete : purb->status(%d) != 0 \n", purb->status)); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete : purb->status(%d) != 0\n", purb->status)); DBG_871X("###=> urb_write_port_complete status(%d)\n",purb->status); if ((purb->status==-EPIPE)||(purb->status==-EPROTO)) { @@ -618,7 +618,7 @@ void usb_write_port_cancel(struct intf_hdl *pintfhdl) _adapter *padapter = pintfhdl->padapter; struct xmit_buf *pxmitbuf = (struct xmit_buf *)padapter->xmitpriv.pxmitbuf; - DBG_871X("%s \n", __func__); + DBG_871X("%s\n", __func__); padapter->bWritePortCancel = _TRUE;