diff options
| author | Abhishek Singh <absingh@qti.qualcomm.com> | 2014-03-30 17:17:29 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-04-04 11:24:18 -0700 |
| commit | 7b96428df028a40768b1147f2fe052fc54040e51 (patch) | |
| tree | 6fe6febd2e0aa71e6c22c66f0a86134fb368d978 | |
| parent | 3d794c6bdc2ad91288154f895fad87a796c1dbcd (diff) | |
wlan: Missing error and info logs in PE disconnect path (Part 2)
added info and error logs for disconnect path
in Dissoc req/rsp and Deauth req/rsp
Change-Id: I8876bd0e1accff2866469b2743b5ed605c981b78
CRs-Fixed: 640903
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c | 122 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c | 46 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSendManagementFrames.c | 17 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSendSmeRspMessages.c | 16 |
4 files changed, 129 insertions, 72 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c index 6285c40c196c..8458fd595f48 100644 --- a/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c +++ b/CORE/MAC/src/pe/lim/limProcessMlmReqMessages.c @@ -2388,10 +2388,17 @@ limProcessMlmAuthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) sessionId = pMac->lim.gpLimMlmAuthReq->sessionId; if((psessionEntry= peFindSessionBySessionId(pMac,sessionId) )== NULL) { - limLog(pMac, LOGP, FL("Session Does not exist for given sessionId")); + limLog(pMac, LOGP, FL("SessionId:%d Session Does not exist"),sessionId); return; } + limLog(pMac, LOG1,FL("Process Auth Req on sessionID %d Systemrole %d" + "mlmstate %d from: "MAC_ADDRESS_STR" with authtype %d"), sessionId, + psessionEntry->limSystemRole,psessionEntry->limMlmState, + MAC_ADDR_ARRAY(pMac->lim.gpLimMlmAuthReq->peerMacAddr), + pMac->lim.gpLimMlmAuthReq->authType); + + /** * Expect Auth request only when: * 1. STA joined/associated with a BSS or @@ -2450,10 +2457,9 @@ limProcessMlmAuthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) (preAuthNode->authType == pMac->lim.gpLimMlmAuthReq->authType))) { - PELOG2(limLog(pMac, LOG2, - FL("Already have pre-auth context with peer")); - limPrintMacAddr(pMac, pMac->lim.gpLimMlmAuthReq->peerMacAddr, - LOG2);) + limLog(pMac, LOG2, + FL("Already have pre-auth context with peer: "MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(pMac->lim.gpLimMlmAuthReq->peerMacAddr)); mlmAuthCnf.resultCode = (tSirResultCodes) eSIR_MAC_SUCCESS_STATUS; @@ -2649,10 +2655,9 @@ limProcessMlmAssocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) // Log error PELOGW(limLog(pMac, LOGW, - FL("received unexpected MLM_ASSOC_CNF in state %X for role=%d, MAC addr= "), - psessionEntry->limMlmState, - psessionEntry->limSystemRole);) - limPrintMacAddr(pMac, pMlmAssocReq->peerMacAddr, LOGW); + FL("received unexpected MLM_ASSOC_CNF in state %X for role=%d, MAC addr= " + MAC_ADDRESS_STR), psessionEntry->limMlmState, + psessionEntry->limSystemRole, MAC_ADDR_ARRAY(pMlmAssocReq->peerMacAddr));) limPrintMlmState(pMac, LOGW, psessionEntry->limMlmState); mlmAssocCnf.resultCode = eSIR_SME_INVALID_PARAMETERS; @@ -2710,11 +2715,17 @@ limProcessMlmReassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) if((psessionEntry = peFindSessionBySessionId(pMac,pMlmReassocReq->sessionId)) == NULL) { - PELOGE(limLog(pMac, LOGE,FL("Session Does not exist for given sessionId"));) + limLog(pMac, LOGE,FL("Session Does not exist for given sessionId %d"), + pMlmReassocReq->sessionId); vos_mem_free(pMlmReassocReq); return; } + limLog(pMac, LOG1,FL("Process ReAssoc Req on sessionID %d Systemrole %d" + "mlmstate %d from: "MAC_ADDRESS_STR), pMlmReassocReq->sessionId, + psessionEntry->limSystemRole, psessionEntry->limMlmState, + MAC_ADDR_ARRAY(pMlmReassocReq->peerMacAddr)); + if (((psessionEntry->limSystemRole != eLIM_AP_ROLE) && (psessionEntry->limSystemRole != eLIM_BT_AMP_AP_ROLE)) && (psessionEntry->limMlmState == eLIM_MLM_LINK_ESTABLISHED_STATE)) { @@ -2797,12 +2808,12 @@ limProcessMlmReassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) */ // Log error - PELOGW(limLog(pMac, LOGW, - FL("received unexpected MLM_REASSOC_CNF in state %X for role=%d, MAC addr= "), - psessionEntry->limMlmState, - psessionEntry->limSystemRole);) - limPrintMacAddr(pMac, pMlmReassocReq->peerMacAddr, - LOGW); + limLog(pMac, LOGW, + FL("received unexpected MLM_REASSOC_CNF in state %X for role=%d, " + "MAC addr= " + MAC_ADDRESS_STR), psessionEntry->limMlmState, + psessionEntry->limSystemRole, + MAC_ADDR_ARRAY(pMlmReassocReq->peerMacAddr)); limPrintMlmState(pMac, LOGW, psessionEntry->limMlmState); mlmReassocCnf.resultCode = eSIR_SME_INVALID_PARAMETERS; @@ -2850,11 +2861,17 @@ limProcessMlmDisassocReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_ if((psessionEntry = peFindSessionBySessionId(pMac,pMlmDisassocReq->sessionId))== NULL) { - PELOGE(limLog(pMac, LOGE, - FL("session does not exist for given sessionId"));) + limLog(pMac, LOGE, + FL("session does not exist for given sessionId %d"), + pMlmDisassocReq->sessionId); mlmDisassocCnf.resultCode = eSIR_SME_INVALID_PARAMETERS; goto end; } + limLog(pMac, LOG1,FL("Process DisAssoc Req on sessionID %d Systemrole %d" + "mlmstate %d from: "MAC_ADDRESS_STR), pMlmDisassocReq->sessionId, + psessionEntry->limSystemRole, psessionEntry->limMlmState, + MAC_ADDR_ARRAY(pMlmDisassocReq->peerMacAddr)); + #if 0 if (wlan_cfgGetStr(pMac, WNI_CFG_BSSID, currentBssId, &cfg) != eSIR_SUCCESS) @@ -2918,8 +2935,9 @@ limProcessMlmDisassocReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_ * Log error */ PELOGW(limLog(pMac, LOGW, - FL("received MLM_DISASSOC_REQ for STA that either has no context or in some transit state, Addr= "));) - limPrintMacAddr(pMac, pMlmDisassocReq->peerMacAddr, LOGW); + FL("received MLM_DISASSOC_REQ for STA that either has no context " + "or in some transit state, Addr= " + MAC_ADDRESS_STR),MAC_ADDR_ARRAY(pMlmDisassocReq->peerMacAddr));) /// Prepare and Send LIM_MLM_DISASSOC_CNF @@ -3086,6 +3104,7 @@ void limCleanUpDisassocDeauthReq(tpAniSirGlobal pMac, void limProcessDisassocAckTimeout(tpAniSirGlobal pMac) { + limLog(pMac, LOG1, FL("")); limSendDisassocCnf(pMac); } @@ -3125,12 +3144,15 @@ limProcessMlmDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) } pMlmDisassocReq = (tLimMlmDisassocReq *) pMsgBuf; + limLog(pMac, LOG1,FL("Process DisAssoc Req on sessionID %d " + "from: "MAC_ADDRESS_STR), pMlmDisassocReq->sessionId, + MAC_ADDR_ARRAY(pMlmDisassocReq->peerMacAddr)); if((psessionEntry = peFindSessionBySessionId(pMac,pMlmDisassocReq->sessionId))== NULL) { - - PELOGE(limLog(pMac, LOGE, - FL("session does not exist for given sessionId"));) + limLog(pMac, LOGE, + FL("session does not exist for given sessionId %d"), + pMlmDisassocReq->sessionId); return; } @@ -3164,11 +3186,15 @@ limProcessMlmDeauthReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_U3 if((psessionEntry = peFindSessionBySessionId(pMac,pMlmDeauthReq->sessionId))== NULL) { - - PELOGE(limLog(pMac, LOGE, FL("session does not exist for given sessionId"));) + limLog(pMac, LOGE, FL("session does not exist for given sessionId %d"), + pMlmDeauthReq->sessionId); vos_mem_free(pMlmDeauthReq); return; } + limLog(pMac, LOG1,FL("Process Deauth Req on sessionID %d Systemrole %d" + "mlmstate %d from: "MAC_ADDRESS_STR), pMlmDeauthReq->sessionId, + psessionEntry->limSystemRole, psessionEntry->limMlmState, + MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr)); #if 0 if (wlan_cfgGetStr(pMac, WNI_CFG_BSSID, currentBssId, &cfg) != eSIR_SUCCESS) @@ -3199,13 +3225,12 @@ limProcessMlmDeauthReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_U3 currentBssId, sizeof(tSirMacAddr)) ) { - PELOGW(limLog(pMac, LOGW, - FL("received MLM_DEAUTH_REQ with invalid BSS id "));) - PELOGE(limLog(pMac, LOGE, FL("Peer MAC Addr : "));) - limPrintMacAddr(pMac, pMlmDeauthReq->peerMacAddr,LOGE); - - PELOGE(limLog(pMac, LOGE, FL("\n CFG BSSID Addr : "));) - limPrintMacAddr(pMac, currentBssId,LOGE); + limLog(pMac, LOGE, + FL("received MLM_DEAUTH_REQ with invalid BSS id " + "Peer MAC: "MAC_ADDRESS_STR " CFG BSSID Addr : " + MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr), + MAC_ADDR_ARRAY(currentBssId)); /// Prepare and Send LIM_MLM_DEAUTH_CNF @@ -3245,9 +3270,8 @@ limProcessMlmDeauthReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_U3 default: PELOGW(limLog(pMac, LOGW, - FL("received MLM_DEAUTH_REQ with in state %d for peer "), - psessionEntry->limMlmState);) - limPrintMacAddr(pMac, pMlmDeauthReq->peerMacAddr, LOGW); + FL("received MLM_DEAUTH_REQ with in state %d for peer "MAC_ADDRESS_STR), + psessionEntry->limMlmState,MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr));) limPrintMlmState(pMac, LOGW, psessionEntry->limMlmState); /// Prepare and Send LIM_MLM_DEAUTH_CNF @@ -3289,8 +3313,10 @@ limProcessMlmDeauthReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_U3 * Prepare and Send LIM_MLM_DEAUTH_CNF */ PELOGW(limLog(pMac, LOGW, - FL("received MLM_DEAUTH_REQ for STA that does not have context, Addr="));) - limPrintMacAddr(pMac, pMlmDeauthReq->peerMacAddr, LOGW); + FL("received MLM_DEAUTH_REQ in mlme state %d for STA that " + "does not have context, Addr="MAC_ADDRESS_STR), + psessionEntry->limMlmState, + MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr));) mlmDeauthCnf.resultCode = eSIR_SME_STA_NOT_AUTHENTICATED; @@ -3321,8 +3347,8 @@ limProcessMlmDeauthReqNtf(tpAniSirGlobal pMac, eHalStatus suspendStatus, tANI_U3 * some transit state. Log error. */ PELOGW(limLog(pMac, LOGW, - FL("received MLM_DEAUTH_REQ for STA that either has no context or in some transit state, Addr="));) - limPrintMacAddr(pMac, pMlmDeauthReq->peerMacAddr, LOGW); + FL("received MLM_DEAUTH_REQ for STA that either has no context or in some transit state, Addr=" + MAC_ADDRESS_STR),MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr));) /// Prepare and Send LIM_MLM_DEAUTH_CNF @@ -3365,6 +3391,7 @@ end: void limProcessDeauthAckTimeout(tpAniSirGlobal pMac) { + limLog(pMac, LOG1, FL("")); limSendDeauthCnf(pMac); } @@ -3405,10 +3432,14 @@ limProcessMlmDeauthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) pMlmDeauthReq = (tLimMlmDeauthReq *) pMsgBuf; + limLog(pMac, LOG1,FL("Process Deauth Req on sessionID %d " + "from: "MAC_ADDRESS_STR), pMlmDeauthReq->sessionId, + MAC_ADDR_ARRAY(pMlmDeauthReq->peerMacAddr)); + if((psessionEntry = peFindSessionBySessionId(pMac,pMlmDeauthReq->sessionId))== NULL) { - - PELOGE(limLog(pMac, LOGE, FL("session does not exist for given sessionId"));) + limLog(pMac, LOGE, FL("session does not exist for given sessionId %d"), + pMlmDeauthReq->sessionId); return; } @@ -4293,8 +4324,9 @@ limProcessAuthRspTimeout(tpAniSirGlobal pMac, tANI_U32 authIndex) * in unexpected state. Log error */ PELOGE(limLog(pMac, LOGE, - FL("received unexpected AUTH rsp timeout for MAC address ")); - limPrintMacAddr(pMac, pAuthNode->peerMacAddr, LOGE);) + FL("received AUTH rsp timeout in unexpected state " + "for MAC address: "MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(pAuthNode->peerMacAddr));) } else { @@ -4303,8 +4335,8 @@ limProcessAuthRspTimeout(tpAniSirGlobal pMac, tANI_U32 authIndex) pAuthNode->mlmState = eLIM_MLM_AUTH_RSP_TIMEOUT_STATE; pAuthNode->fTimerStarted = 0; PELOG1( limLog(pMac, LOG1, - FL("AUTH rsp timedout for MAC address ")); - limPrintMacAddr(pMac, pAuthNode->peerMacAddr, LOG1);) + FL("AUTH rsp timedout for MAC address "MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(pAuthNode->peerMacAddr));) // Change timer to reactivate it in future limDeactivateAndChangePerStaIdTimer(pMac, diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c index 6ba76ee68d7a..5a10284751e4 100644 --- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c +++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c @@ -2450,8 +2450,6 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) tANI_U8 smesessionId; tANI_U16 smetransactionId; - PELOG1(limLog(pMac, LOG1,FL("received DISASSOC_REQ message"));) - if (pMsgBuf == NULL) { limLog(pMac, LOGE, FL("Buffer is Pointing to NULL")); @@ -2480,19 +2478,20 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) return; } - - PELOG1(limLog(pMac, LOG1, FL("received DISASSOC_REQ message. Reason: %d global SmeState: %d"), - smeDisassocReq.reasonCode, pMac->lim.gLimSmeState);) - - if((psessionEntry = peFindSessionByBssid(pMac,smeDisassocReq.bssId,&sessionId))== NULL) { - limLog(pMac, LOGE,FL("session does not exist for given bssId")); + limLog(pMac, LOGE,FL("session does not exist for given bssId "MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(smeDisassocReq.bssId)); retCode = eSIR_SME_INVALID_PARAMETERS; disassocTrigger = eLIM_HOST_DISASSOC; goto sendDisassoc; } + limLog(pMac, LOG1, FL("received DISASSOC_REQ message on sessionid %d" + "Systemrole %d Reason: %u SmeState: %d from: "MAC_ADDRESS_STR), + smesessionId,psessionEntry->limSystemRole, + smeDisassocReq.reasonCode, pMac->lim.gLimSmeState, + MAC_ADDR_ARRAY(smeDisassocReq.peerMacAddr)); #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT limDiagEventReport(pMac, WLAN_PE_DIAG_DISASSOC_REQ_EVENT, psessionEntry, 0, smeDisassocReq.reasonCode); @@ -2518,6 +2517,8 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) limDeleteTDLSPeers(pMac, psessionEntry); #endif MTRACE(macTrace(pMac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId, psessionEntry->limSmeState)); + limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in " + "limSmeState: %d "),psessionEntry->limSmeState); break; case eLIM_SME_WT_DEAUTH_STATE: @@ -2528,7 +2529,8 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) */ psessionEntry->limSmeState= eLIM_SME_WT_DISASSOC_STATE; MTRACE(macTrace(pMac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId, psessionEntry->limSmeState)); - limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in SME_WT_DEAUTH_STATE. ")); + limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in " + "SME_WT_DEAUTH_STATE. ")); break; case eLIM_SME_WT_DISASSOC_STATE: @@ -2541,11 +2543,14 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) * It will send a disassoc, which is ok. However, we can use the global flag * sendDisassoc to not send disassoc frame. */ - limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in SME_WT_DISASSOC_STATE. ")); + limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in " + "SME_WT_DISASSOC_STATE. ")); break; case eLIM_SME_JOIN_FAILURE_STATE: { /** Return Success as we are already in Disconnected State*/ + limLog(pMac, LOG1, FL("Rcvd SME_DISASSOC_REQ while in " + "eLIM_SME_JOIN_FAILURE_STATE. ")); if (pMac->lim.gLimRspReqd) { retCode = eSIR_SME_SUCCESS; disassocTrigger = eLIM_HOST_DISASSOC; @@ -2597,6 +2602,7 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) if (smeDisassocReq.reasonCode == eLIM_LINK_MONITORING_DISASSOC) { /// Disassociation is triggered by Link Monitoring + limLog(pMac, LOG1, FL("**** Lost link with AP ****")); disassocTrigger = eLIM_LINK_MONITORING_DISASSOC; reasonCode = eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON; } @@ -2608,6 +2614,7 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) if (smeDisassocReq.doNotSendOverTheAir) { + limLog(pMac, LOG1, FL("do not send dissoc over the air")); sendDisassocFrame = 0; } // Trigger Disassociation frame to peer MAC entity @@ -2693,7 +2700,7 @@ __limProcessSmeDisassocCnf(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) if (!limIsSmeDisassocCnfValid(pMac, &smeDisassocCnf, psessionEntry)) { - limLog(pMac, LOGW, FL("received invalid SME_DISASSOC_CNF message")); + limLog(pMac, LOGE, FL("received invalid SME_DISASSOC_CNF message")); return; } @@ -2742,8 +2749,9 @@ __limProcessSmeDisassocCnf(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) pStaDs = dphLookupHashEntry(pMac, smeDisassocCnf.peerMacAddr, &aid, &psessionEntry->dph.dphHashTable); if (pStaDs == NULL) { - PELOGW(limLog(pMac, LOGW, FL("received DISASSOC_CNF for a STA that does not have context, addr= ")); - limPrintMacAddr(pMac, smeDisassocCnf.peerMacAddr, LOGW);) + PELOGE(limLog(pMac, LOGE, FL("received DISASSOC_CNF for a STA that " + "does not have context, addr= "MAC_ADDRESS_STR), + MAC_ADDR_ARRAY(smeDisassocCnf.peerMacAddr));) return; } /* Delete FT session if there exists one */ @@ -2818,7 +2826,11 @@ __limProcessSmeDeauthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) return; } - + limLog(pMac, LOG1,FL("received DEAUTH_REQ message on sessionid %d " + "Systemrole %d with reasoncode %u in limSmestate %d from " + MAC_ADDRESS_STR), smesessionId, psessionEntry->limSystemRole, + smeDeauthReq.reasonCode, psessionEntry->limSmeState, + MAC_ADDR_ARRAY(smeDeauthReq.peerMacAddr)); #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM //FEATURE_WLAN_DIAG_SUPPORT limDiagEventReport(pMac, WLAN_PE_DIAG_DEAUTH_REQ_EVENT, psessionEntry, 0, smeDeauthReq.reasonCode); #endif //FEATURE_WLAN_DIAG_SUPPORT @@ -2854,7 +2866,8 @@ __limProcessSmeDeauthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) * peer. Log error and send response to host. */ limLog(pMac, LOGE, - FL("received unexp SME_DEAUTH_REQ in state %X"),psessionEntry->limSmeState); + FL("received unexp SME_DEAUTH_REQ in state %X"), + psessionEntry->limSmeState); limPrintSmeState(pMac, LOGE, psessionEntry->limSmeState); if (pMac->lim.gLimRspReqd) @@ -2882,7 +2895,8 @@ __limProcessSmeDeauthReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf) default: limLog(pMac, LOGE, - FL("received unexpected SME_DEAUTH_REQ for role %X"),psessionEntry->limSystemRole); + FL("received unexpected SME_DEAUTH_REQ for role %X"), + psessionEntry->limSystemRole); return; } // end switch (pMac->lim.gLimSystemRole) diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index 36b0a185e4e4..dd1f82679a06 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -4072,9 +4072,11 @@ limSendDisassocMgmtFrame(tpAniSirGlobal pMac, "isassociation (0x%08x)."), nStatus ); } - PELOG1(limLog( pMac, LOG1, FL("*** Sending Disassociation frame with rea" - "son %d to"), nReason ); - limPrintMacAddr( pMac, pMacHdr->da, LOG1 );) + limLog( pMac, LOG1, FL("***Sessionid %d Sending Disassociation frame with " + "reason %u and waitForAck %d to "MAC_ADDRESS_STR" ,From " + MAC_ADDRESS_STR), psessionEntry->peSessionId, nReason, waitForAck, + MAC_ADDR_ARRAY(pMacHdr->da), + MAC_ADDR_ARRAY(psessionEntry->selfMacAddr)); if( ( SIR_BAND_5_GHZ == limGetRFBand(psessionEntry->currentOperChannel)) || ( psessionEntry->pePersona == VOS_P2P_CLIENT_MODE ) || @@ -4254,10 +4256,11 @@ limSendDeauthMgmtFrame(tpAniSirGlobal pMac, limLog( pMac, LOGW, FL("There were warnings while packing a D" "e-Authentication (0x%08x)."), nStatus ); } - - PELOG1(limLog( pMac, LOG1, FL("*** Sending De-Authentication frame with rea" - "son %d to"), nReason ); - limPrintMacAddr( pMac, pMacHdr->da, LOG1 );) + limLog( pMac, LOG1, FL("***Sessionid %d Sending Deauth frame with " + "reason %u and waitForAck %d to "MAC_ADDRESS_STR" ,From " + MAC_ADDRESS_STR), psessionEntry->peSessionId, nReason, waitForAck, + MAC_ADDR_ARRAY(pMacHdr->da), + MAC_ADDR_ARRAY(psessionEntry->selfMacAddr)); if( ( SIR_BAND_5_GHZ == limGetRFBand(psessionEntry->currentOperChannel)) || ( psessionEntry->pePersona == VOS_P2P_CLIENT_MODE ) || diff --git a/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c b/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c index 579b9eff0a4f..803b7c19d296 100644 --- a/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c +++ b/CORE/MAC/src/pe/lim/limSendSmeRspMessages.c @@ -1306,7 +1306,9 @@ limSendSmeDisassocNtf(tpAniSirGlobal pMac, return; } - + limLog(pMac, LOG1, FL("send eWNI_SME_DEAUTH_RSP with " + "retCode: %d for "MAC_ADDRESS_STR),reasonCode, + MAC_ADDR_ARRAY(peerMacAddr)); pSirSmeDisassocRsp->messageType = eWNI_SME_DISASSOC_RSP; pSirSmeDisassocRsp->length = sizeof(tSirSmeDisassocRsp); //sessionId @@ -1354,7 +1356,9 @@ limSendSmeDisassocNtf(tpAniSirGlobal pMac, return; } - + limLog(pMac, LOG1, FL("send eWNI_SME_DISASSOC_IND with " + "retCode: %d for "MAC_ADDRESS_STR),reasonCode, + MAC_ADDR_ARRAY(peerMacAddr)); pSirSmeDisassocInd->messageType = eWNI_SME_DISASSOC_IND; pSirSmeDisassocInd->length = sizeof(tSirSmeDisassocInd); @@ -1751,7 +1755,9 @@ limSendSmeDeauthNtf(tpAniSirGlobal pMac, tSirMacAddr peerMacAddr, tSirResultCode return; } - + limLog(pMac, LOG1, FL("send eWNI_SME_DEAUTH_RSP with " + "retCode: %d for"MAC_ADDRESS_STR),reasonCode, + MAC_ADDR_ARRAY(peerMacAddr)); pSirSmeDeauthRsp->messageType = eWNI_SME_DEAUTH_RSP; pSirSmeDeauthRsp->length = sizeof(tSirSmeDeauthRsp); pSirSmeDeauthRsp->statusCode = reasonCode; @@ -1784,7 +1790,9 @@ limSendSmeDeauthNtf(tpAniSirGlobal pMac, tSirMacAddr peerMacAddr, tSirResultCode return; } - + limLog(pMac, LOG1, FL("send eWNI_SME_DEAUTH_IND with " + "retCode: %d for "MAC_ADDRESS_STR),reasonCode, + MAC_ADDR_ARRAY(peerMacAddr)); pSirSmeDeauthInd->messageType = eWNI_SME_DEAUTH_IND; pSirSmeDeauthInd->length = sizeof(tSirSmeDeauthInd); pSirSmeDeauthInd->reasonCode = eSIR_MAC_UNSPEC_FAILURE_REASON; |
