diff options
| author | Nishank Aggarwal <naggar@codeaurora.org> | 2017-03-24 17:38:12 +0530 |
|---|---|---|
| committer | Nishank Aggarwal <naggar@codeaurora.org> | 2017-03-25 15:38:06 +0530 |
| commit | 4a108d0390b9524c838a3f286c4a01b0e2b91dfb (patch) | |
| tree | 5597b17e2cf66512c54756de7a300b54e2f96fe3 | |
| parent | effd7b482a9b1becc4292638fbbdcda8b7ec7183 (diff) | |
qcacld-3.0: Replace lim_log() with pe_* log levels in lim_send_sme_rsp_messages.c
Replace lim_log() iwith pe_* appropriate log levels in lim_send_sme_rsp_messages.c
Change-Id: I178e13c1fa14ef1c72a2353f0c3694773cd5a613
CRs-Fixed: 1093093
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 231 |
1 files changed, 80 insertions, 151 deletions
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 6b154e587d77..a90907fdc657 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -87,14 +87,13 @@ lim_send_sme_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, tSirMsgQ msg; tSirSmeRsp *sme_rsp; - lim_log(mac_ctx, LOGD, FL("Sending message %s with reasonCode %s"), + pe_debug("Sending message: %s with reasonCode: %s", lim_msg_str(msg_type), lim_result_code_str(result_code)); sme_rsp = qdf_mem_malloc(sizeof(tSirSmeRsp)); if (NULL == sme_rsp) { /* Buffer not available. Log error */ - QDF_TRACE(QDF_MODULE_ID_PE, LOGE, - FL("call to AllocateMemory failed for eWNI_SME_*_RSP")); + pe_err("call to AllocateMemory failed for eWNI_SME_*_RSP"); return; } @@ -145,15 +144,13 @@ lim_send_sme_roc_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, tSirMsgQ msg; struct sir_roc_rsp *sme_rsp; - lim_log(mac_ctx, LOGD, - FL("Sending message %s with reasonCode %s scanId %d"), + pe_debug("Sending message: %s with reasonCode: %s scanId: %d", lim_msg_str(msg_type), lim_result_code_str(result_code), scan_id); sme_rsp = qdf_mem_malloc(sizeof(struct sir_roc_rsp)); if (NULL == sme_rsp) { - QDF_TRACE(QDF_MODULE_ID_PE, LOGE, - FL("call to AllocateMemory failed for eWNI_SME_*_RSP")); + pe_err("call to AllocateMemory failed for eWNI_SME_*_RSP"); return; } @@ -188,7 +185,7 @@ uint32_t lim_get_max_rate_flags(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds) uint32_t rate_flags = 0; if (sta_ds == NULL) { - lim_log(mac_ctx, LOGE, FL("sta_ds is NULL")); + pe_err("sta_ds is NULL"); return rate_flags; } @@ -275,7 +272,7 @@ static void lim_handle_join_rsp_status(tpAniSirGlobal mac_ctx, qdf_mem_free(session_entry->beacon); session_entry->beacon = NULL; session_entry->bcnLen = 0; - lim_log(mac_ctx, LOGD, FL("Beacon=%d"), + pe_debug("Beacon: %d", sme_join_rsp->beaconLength); } if (session_entry->assocReq != NULL) { @@ -288,8 +285,7 @@ static void lim_handle_join_rsp_status(tpAniSirGlobal mac_ctx, qdf_mem_free(session_entry->assocReq); session_entry->assocReq = NULL; session_entry->assocReqLen = 0; - lim_log(mac_ctx, - LOGD, FL("AssocReq=%d"), + pe_debug("AssocReq: %d", sme_join_rsp->assocReqLength); } if (session_entry->assocRsp != NULL) { @@ -316,7 +312,7 @@ static void lim_handle_join_rsp_status(tpAniSirGlobal mac_ctx, qdf_mem_free(session_entry->ricData); session_entry->ricData = NULL; session_entry->RICDataLen = 0; - lim_log(mac_ctx, LOGD, FL("RicLength=%d"), + pe_debug("RicLength: %d", sme_join_rsp->parsedRicRspLen); } #ifdef FEATURE_WLAN_ESE @@ -333,12 +329,12 @@ static void lim_handle_join_rsp_status(tpAniSirGlobal mac_ctx, qdf_mem_free(session_entry->tspecIes); session_entry->tspecIes = NULL; session_entry->tspecLen = 0; - lim_log(mac_ctx, LOGD, FL("ESE-TspecLen=%d"), + pe_debug("ESE-TspecLen: %d", sme_join_rsp->tspecIeLen); } #endif sme_join_rsp->aid = session_entry->limAID; - lim_log(mac_ctx, LOGD, FL("AssocRsp=%d"), + pe_debug("AssocRsp: %d", sme_join_rsp->assocRspLength); sme_join_rsp->vht_channel_width = session_entry->ch_width; @@ -450,15 +446,14 @@ lim_send_sme_join_reassoc_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, session_entry, (uint16_t) result_code, 0); #endif /* FEATURE_WLAN_DIAG_SUPPORT */ - lim_log(mac_ctx, LOGD, FL("Sending message %s with reasonCode %s"), + pe_debug("Sending message: %s with reasonCode: %s", lim_msg_str(msg_type), lim_result_code_str(result_code)); if (session_entry == NULL) { rsp_len = sizeof(tSirSmeJoinRsp); sme_join_rsp = qdf_mem_malloc(rsp_len); if (NULL == sme_join_rsp) { - lim_log(mac_ctx, LOGE, - FL("Mem Alloc fail - JOIN/REASSOC_RSP")); + pe_err("Mem Alloc fail - JOIN/REASSOC_RSP"); return; } @@ -475,8 +470,7 @@ lim_send_sme_join_reassoc_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, sizeof(tSirSmeJoinRsp) - sizeof(uint8_t); sme_join_rsp = qdf_mem_malloc(rsp_len); if (NULL == sme_join_rsp) { - lim_log(mac_ctx, LOGE, - FL("MemAlloc fail - JOIN/REASSOC_RSP")); + pe_err("MemAlloc fail - JOIN/REASSOC_RSP"); return; } if (result_code == eSIR_SME_SUCCESS) { @@ -484,8 +478,7 @@ lim_send_sme_join_reassoc_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, DPH_STA_HASH_INDEX_PEER, &session_entry->dph.dphHashTable); if (sta_ds == NULL) { - lim_log(mac_ctx, LOGE, - FL("Get Self Sta Entry fail")); + pe_err("Get Self Sta Entry fail"); } else { /* Pass the peer's staId */ sme_join_rsp->staId = sta_ds->staIndex; @@ -520,8 +513,7 @@ lim_send_sme_join_reassoc_rsp(tpAniSirGlobal mac_ctx, uint16_t msg_type, /* Send supported NSS 1x1 to SME */ sme_join_rsp->supported_nss_1x1 = session_entry->supported_nss_1x1; - lim_log(mac_ctx, LOGD, - FL("SME Join Rsp is supported NSS 1X1: %d"), + pe_debug("SME Join Rsp is supported NSS 1X1: %d", sme_join_rsp->supported_nss_1x1); } @@ -575,7 +567,7 @@ lim_send_sme_start_bss_rsp(tpAniSirGlobal pMac, uint16_t ieLen; uint16_t ieOffset, curLen; - lim_log(pMac, LOGD, FL("Sending message %s with reasonCode %s"), + pe_debug("Sending message: %s with reasonCode: %s", lim_msg_str(msgType), lim_result_code_str(resultCode)); size = sizeof(tSirSmeStartBssRsp); @@ -584,9 +576,7 @@ lim_send_sme_start_bss_rsp(tpAniSirGlobal pMac, pSirSmeRsp = qdf_mem_malloc(size); if (NULL == pSirSmeRsp) { /* / Buffer not available. Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP")); + pe_err("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP"); return; } } else { @@ -600,10 +590,7 @@ lim_send_sme_start_bss_rsp(tpAniSirGlobal pMac, pSirSmeRsp = qdf_mem_malloc(size); if (NULL == pSirSmeRsp) { /* / Buffer not available. Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP")); - + pe_err("call to AllocateMemory failed for eWNI_SME_START_BSS_RSP"); return; } size = sizeof(tSirSmeStartBssRsp); @@ -622,9 +609,7 @@ lim_send_sme_start_bss_rsp(tpAniSirGlobal pMac, (pMac, &pSirSmeRsp->bssDescription.capabilityInfo, psessionEntry) != eSIR_SUCCESS) - lim_log(pMac, LOGE, - FL - ("could not retrieve Capabilities value")); + pe_err("could not retrieve Capabilities value"); lim_get_phy_mode(pMac, (uint32_t *) &pSirSmeRsp->bssDescription. @@ -754,13 +739,12 @@ lim_post_sme_scan_rsp_message(tpAniSirGlobal pMac, tpSirSmeScanRsp pSirSmeScanRsp; tSirMsgQ mmhMsg; - lim_log(pMac, LOGD, FL("send SME_SCAN_RSP (reasonCode %s)."), + pe_debug("send SME_SCAN_RSP reasonCode: %s", lim_result_code_str(resultCode)); pSirSmeScanRsp = qdf_mem_malloc(sizeof(tSirSmeScanRsp)); if (NULL == pSirSmeScanRsp) { - lim_log(pMac, LOGE, - FL("AllocateMemory failed for eWNI_SME_SCAN_RSP")); + pe_err("AllocateMemory failed for eWNI_SME_SCAN_RSP"); return; } @@ -850,7 +834,7 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, tpDphHashNode sta_ds = NULL; struct sir_sme_discon_done_ind *sir_sme_dis_ind; - lim_log(pMac, LOGD, FL("Disassoc Ntf with trigger : %d reasonCode: %d"), + pe_debug("Disassoc Ntf with trigger : %d reasonCode: %d", disassocTrigger, reasonCode); switch (disassocTrigger) { @@ -859,8 +843,7 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, * Duplicate entry is removed at LIM. * Initiate new entry for other session */ - lim_log(pMac, LOGD, - FL("Rcvd eLIM_DUPLICATE_ENTRY for " MAC_ADDRESS_STR), + pe_debug("Rcvd eLIM_DUPLICATE_ENTRY for " MAC_ADDRESS_STR, MAC_ADDR_ARRAY(peerMacAddr)); for (i = 0; i < pMac->lim.maxBssId; i++) { @@ -882,8 +865,7 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, ) { if (lim_add_sta(pMac, sta_ds, false, session) != eSIR_SUCCESS) - lim_log(pMac, LOGE, - FL("could not Add STA with assocId=%d"), + pe_err("could not Add STA with assocId: %d", sta_ds->assocId); } failure = true; @@ -898,12 +880,11 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, pSirSmeDisassocRsp = qdf_mem_malloc(sizeof(tSirSmeDisassocRsp)); if (NULL == pSirSmeDisassocRsp) { /* Log error */ - lim_log(pMac, LOGE, FL("Memory allocation failed")); + pe_err("Memory allocation failed"); failure = true; goto error; } - lim_log(pMac, LOGD, FL("send eWNI_SME_DISASSOC_RSP with " - "retCode: %d for " MAC_ADDRESS_STR), + pe_debug("send eWNI_SME_DISASSOC_RSP with retCode: %d for " MAC_ADDRESS_STR, reasonCode, MAC_ADDR_ARRAY(peerMacAddr)); pSirSmeDisassocRsp->messageType = eWNI_SME_DISASSOC_RSP; pSirSmeDisassocRsp->length = sizeof(tSirSmeDisassocRsp); @@ -940,13 +921,11 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, sir_sme_dis_ind = qdf_mem_malloc(sizeof(*sir_sme_dis_ind)); if (!sir_sme_dis_ind) { - lim_log(pMac, LOGE, - FL("call to AllocateMemory failed for disconnect indication")); + pe_err("call to AllocateMemory failed for disconnect indication"); return; } - lim_log(pMac, LOGD, - FL("send eWNI_SME_DISCONNECT_DONE_IND with retCode: %d"), + pe_debug("send eWNI_SME_DISCONNECT_DONE_IND with retCode: %d", reasonCode); sir_sme_dis_ind->message_type = @@ -980,12 +959,11 @@ lim_send_sme_disassoc_ntf(tpAniSirGlobal pMac, pSirSmeDisassocInd = qdf_mem_malloc(sizeof(tSirSmeDisassocInd)); if (NULL == pSirSmeDisassocInd) { /* Log error */ - lim_log(pMac, LOGE, FL("Memory allocation failed")); + pe_err("Memory allocation failed"); failure = true; goto error; } - lim_log(pMac, LOGD, FL("send eWNI_SME_DISASSOC_IND with " - "retCode: %d for " MAC_ADDRESS_STR), + pe_debug("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); @@ -1044,8 +1022,7 @@ lim_send_sme_disassoc_ind(tpAniSirGlobal pMac, tpDphHashNode pStaDs, pSirSmeDisassocInd = qdf_mem_malloc(sizeof(tSirSmeDisassocInd)); if (NULL == pSirSmeDisassocInd) { - lim_log(pMac, LOGE, - FL("AllocateMemory failed for eWNI_SME_DISASSOC_IND")); + pe_err("AllocateMemory failed for eWNI_SME_DISASSOC_IND"); return; } @@ -1101,8 +1078,7 @@ lim_send_sme_deauth_ind(tpAniSirGlobal pMac, tpDphHashNode pStaDs, pSirSmeDeauthInd = qdf_mem_malloc(sizeof(tSirSmeDeauthInd)); if (NULL == pSirSmeDeauthInd) { - lim_log(pMac, LOGE, - FL("AllocateMemory failed for eWNI_SME_DEAUTH_IND ")); + pe_err("AllocateMemory failed for eWNI_SME_DEAUTH_IND"); return; } @@ -1175,13 +1151,10 @@ lim_send_sme_tdls_del_sta_ind(tpAniSirGlobal pMac, tpDphHashNode pStaDs, pSirTdlsDelStaInd = qdf_mem_malloc(sizeof(tSirTdlsDelStaInd)); if (NULL == pSirTdlsDelStaInd) { - lim_log(pMac, LOGE, - FL - ("AllocateMemory failed for eWNI_SME_TDLS_DEL_STA_IND ")); + pe_err("AllocateMemory failed for eWNI_SME_TDLS_DEL_STA_IND"); return; } - lim_log(pMac, LOGD, FL("Delete TDLS Peer "MAC_ADDRESS_STR - "with reason code %d"), + pe_debug("Delete TDLS Peer "MAC_ADDRESS_STR "with reason code: %d", MAC_ADDR_ARRAY(pStaDs->staAddr), reasonCode); /* messageType */ pSirTdlsDelStaInd->messageType = eWNI_SME_TDLS_DEL_STA_IND; @@ -1235,9 +1208,7 @@ lim_send_sme_tdls_delete_all_peer_ind(tpAniSirGlobal pMac, tpPESession psessionE pSirTdlsDelAllPeerInd = qdf_mem_malloc(sizeof(tSirTdlsDelAllPeerInd)); if (NULL == pSirTdlsDelAllPeerInd) { - lim_log(pMac, LOGE, - FL - ("AllocateMemory failed for eWNI_SME_TDLS_DEL_ALL_PEER_IND")); + pe_err("AllocateMemory failed for eWNI_SME_TDLS_DEL_ALL_PEER_IND"); return; } /* messageType */ @@ -1285,9 +1256,7 @@ lim_send_sme_mgmt_tx_completion(tpAniSirGlobal pMac, pSirMgmtTxCompletionInd = qdf_mem_malloc(sizeof(tSirMgmtTxCompletionInd)); if (NULL == pSirMgmtTxCompletionInd) { - lim_log(pMac, LOGE, - FL - ("AllocateMemory failed for eWNI_SME_MGMT_FRM_TX_COMPLETION_IND")); + pe_err("AllocateMemory failed for eWNI_SME_MGMT_FRM_TX_COMPLETION_IND"); return; } /* messageType */ @@ -1386,14 +1355,10 @@ lim_send_sme_deauth_ntf(tpAniSirGlobal pMac, tSirMacAddr peerMacAddr, pSirSmeDeauthRsp = qdf_mem_malloc(sizeof(tSirSmeDeauthRsp)); if (NULL == pSirSmeDeauthRsp) { /* Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for eWNI_SME_DEAUTH_RSP")); - + pe_err("call to AllocateMemory failed for eWNI_SME_DEAUTH_RSP"); return; } - lim_log(pMac, LOGD, FL("send eWNI_SME_DEAUTH_RSP with " - "retCode: %d for" MAC_ADDRESS_STR), + pe_debug("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); @@ -1417,13 +1382,11 @@ lim_send_sme_deauth_ntf(tpAniSirGlobal pMac, tSirMacAddr peerMacAddr, sir_sme_dis_ind = qdf_mem_malloc(sizeof(*sir_sme_dis_ind)); if (!sir_sme_dis_ind) { - lim_log(pMac, LOGE, - FL("call to AllocateMemory failed for disconnect indication")); + pe_err("call to AllocateMemory failed for disconnect indication"); return; } - lim_log(pMac, LOGD, - FL("send eWNI_SME_DISCONNECT_DONE_IND withretCode: %d"), + pe_debug("send eWNI_SME_DISCONNECT_DONE_IND withretCode: %d", reasonCode); sir_sme_dis_ind->message_type = @@ -1457,14 +1420,10 @@ lim_send_sme_deauth_ntf(tpAniSirGlobal pMac, tSirMacAddr peerMacAddr, pSirSmeDeauthInd = qdf_mem_malloc(sizeof(tSirSmeDeauthInd)); if (NULL == pSirSmeDeauthInd) { /* Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for eWNI_SME_DEAUTH_Ind")); - + pe_err("call to AllocateMemory failed for eWNI_SME_DEAUTH_Ind"); return; } - lim_log(pMac, LOGD, FL("send eWNI_SME_DEAUTH_IND with " - "retCode: %d for " MAC_ADDRESS_STR), + pe_debug("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); @@ -1535,8 +1494,7 @@ lim_send_sme_wm_status_change_ntf(tpAniSirGlobal mac_ctx, wm_status_change_ntf = qdf_mem_malloc(sizeof(tSirSmeWmStatusChangeNtf)); if (NULL == wm_status_change_ntf) { - lim_log(mac_ctx, LOGE, - FL("Mem Alloc failed - eWNI_SME_WM_STATUS_CHANGE_NTF")); + pe_err("Mem Alloc failed - eWNI_SME_WM_STATUS_CHANGE_NTF"); return; } @@ -1570,8 +1528,7 @@ lim_send_sme_wm_status_change_ntf(tpAniSirGlobal mac_ctx, (uint8_t *) &wm_status_change_ntf->statusChangeInfo, (uint8_t *) status_change_info, info_len); } - lim_log(mac_ctx, LOGE, - FL("**---** StatusChg: code 0x%x, length %d **---**"), + pe_debug("StatusChg code: 0x%x length: %d", status_change_code, info_len); break; } @@ -1579,8 +1536,7 @@ lim_send_sme_wm_status_change_ntf(tpAniSirGlobal mac_ctx, MTRACE(mac_trace(mac_ctx, TRACE_CODE_TX_SME_MSG, session_id, msg.type)); if (eSIR_SUCCESS != lim_sys_process_mmh_msg_api(mac_ctx, &msg, ePROT)) { qdf_mem_free(wm_status_change_ntf); - lim_log(mac_ctx, LOGE, - FL("lim_sys_process_mmh_msg_api failed")); + pe_err("lim_sys_process_mmh_msg_api failed"); } } /*** end lim_send_sme_wm_status_change_ntf() ***/ @@ -1624,10 +1580,7 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac, pSirSmeSetContextRsp = qdf_mem_malloc(sizeof(tSirSmeSetContextRsp)); if (NULL == pSirSmeSetContextRsp) { /* Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for SmeSetContextRsp")); - + pe_err("call to AllocateMemory failed for SmeSetContextRsp"); return; } @@ -1701,9 +1654,7 @@ lim_send_sme_neighbor_bss_ind(tpAniSirGlobal pMac, tLimScanResultNode *pBssDescr if (wlan_cfg_get_int(pMac, WNI_CFG_NEW_BSS_FOUND_IND, &val) != eSIR_SUCCESS) { - lim_log(pMac, LOGE, - FL("could not get NEIGHBOR_BSS_IND from CFG")); - + pe_err("could not get NEIGHBOR_BSS_IND from CFG"); return; } @@ -1722,10 +1673,7 @@ lim_send_sme_neighbor_bss_ind(tpAniSirGlobal pMac, tLimScanResultNode *pBssDescr pNewBssInd = qdf_mem_malloc(val); if (NULL == pNewBssInd) { /* Log error */ - lim_log(pMac, LOGE, - FL - ("call to AllocateMemory failed for eWNI_SME_NEIGHBOR_BSS_IND")); - + pe_err("call to AllocateMemory failed for eWNI_SME_NEIGHBOR_BSS_IND"); return; } @@ -1767,7 +1715,7 @@ lim_send_sme_addts_rsp(tpAniSirGlobal pMac, uint8_t rspReqd, uint32_t status, rsp = qdf_mem_malloc(sizeof(tSirAddtsRsp)); if (NULL == rsp) { - lim_log(pMac, LOGE, FL("AllocateMemory failed for ADDTS_RSP")); + pe_err("AllocateMemory failed for ADDTS_RSP"); return; } @@ -1806,7 +1754,7 @@ lim_send_sme_delts_rsp(tpAniSirGlobal pMac, tpSirDeltsReq delts, uint32_t status tpSirDeltsRsp rsp; tSirMsgQ mmhMsg; - lim_log(pMac, LOGD, "SendSmeDeltsRsp (aid %d, tsid %d, up %d) status %d", + pe_debug("SendSmeDeltsRsp aid: %d tsid: %d up: %d status: %d", delts->aid, delts->req.tsinfo.traffic.tsid, delts->req.tsinfo.traffic.userPrio, status); @@ -1816,7 +1764,7 @@ lim_send_sme_delts_rsp(tpAniSirGlobal pMac, tpSirDeltsReq delts, uint32_t status rsp = qdf_mem_malloc(sizeof(tSirDeltsRsp)); if (NULL == rsp) { /* Log error */ - lim_log(pMac, LOGE, FL("AllocateMemory failed for DELTS_RSP")); + pe_err("AllocateMemory failed for DELTS_RSP"); return; } @@ -1860,13 +1808,13 @@ lim_send_sme_delts_ind(tpAniSirGlobal pMac, tpSirDeltsReqInfo delts, uint16_t ai tpSirDeltsRsp rsp; tSirMsgQ mmhMsg; - lim_log(pMac, LOGD, "SendSmeDeltsInd (aid %d, tsid %d, up %d)", + pe_debug("SendSmeDeltsInd aid: %d tsid: %d up: %d", aid, delts->tsinfo.traffic.tsid, delts->tsinfo.traffic.userPrio); rsp = qdf_mem_malloc(sizeof(tSirDeltsRsp)); if (NULL == rsp) { /* Log error */ - lim_log(pMac, LOGE, FL("AllocateMemory failed for DELTS_IND")); + pe_err("AllocateMemory failed for DELTS_IND"); return; } @@ -1979,7 +1927,7 @@ void lim_send_sme_pe_ese_tsm_rsp(tpAniSirGlobal pMac, /* Fill the Session Id */ pPeStats->sessionId = pPeSessionEntry->smeSessionId; } else { - lim_log(pMac, LOGE, FL("Session not found for the Sta id(%d)"), + pe_err("Session not found for the Sta id: %d", pPeStats->staId); return; } @@ -2015,7 +1963,7 @@ lim_send_sme_ibss_peer_ind(tpAniSirGlobal pMac, pNewPeerInd = qdf_mem_malloc(sizeof(tSmeIbssPeerInd) + beaconLen); if (NULL == pNewPeerInd) { - lim_log(pMac, LOGE, FL("Failed to allocate memory")); + pe_err("Failed to allocate memory"); return; } @@ -2104,8 +2052,7 @@ static void lim_process_csa_wbw_ie(tpAniSirGlobal mac_ctx, chnl_switch_info->newChanWidth = ap_new_ch_width; } prnt_log: - lim_log(mac_ctx, LOGD, - FL("new channel: %d new_ch_width:%d seg0:%d seg1:%d"), + pe_debug("new channel: %d new_ch_width: %d seg0: %d seg1: %d", csa_params->channel, chnl_switch_info->newChanWidth, chnl_switch_info->newCenterChanFreq0, @@ -2134,10 +2081,10 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) tLimWiderBWChannelSwitchInfo *chnl_switch_info = NULL; tLimChannelSwitchInfo *lim_ch_switch = NULL; - lim_log(mac_ctx, LOGD, FL("handle csa offload msg")); + pe_debug("handle csa offload msg"); if (!csa_params) { - lim_log(mac_ctx, LOGE, FL("limMsgQ body ptr is NULL")); + pe_err("limMsgQ body ptr is NULL"); return; } @@ -2145,8 +2092,7 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) pe_find_session_by_bssid(mac_ctx, csa_params->bssId, &session_id); if (!session_entry) { - lim_log(mac_ctx, LOGE, - FL("Session does not exists for %pM"), + pe_err("Session does not exists for %pM", csa_params->bssId); goto err; } @@ -2155,13 +2101,12 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) &session_entry->dph.dphHashTable); if (!sta_ds) { - lim_log(mac_ctx, LOGE, - FL("sta_ds does not exist")); + pe_err("sta_ds does not exist"); goto err; } if (!LIM_IS_STA_ROLE(session_entry)) { - lim_log(mac_ctx, LOGD, FL("Invalid role to handle CSA")); + pe_debug("Invalid role to handle CSA"); goto err; } @@ -2188,14 +2133,12 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) chnl_switch_info = &session_entry->gLimWiderBWChannelSwitch; - lim_log(mac_ctx, LOGD, - FL("vht:%d ht:%d flag:%x chan:%d"), + pe_debug("vht: %d ht: %d flag: %x chan: %d", session_entry->vhtCapability, session_entry->htSupportedChannelWidthSet, csa_params->ies_present_flag, csa_params->channel); - lim_log(mac_ctx, LOGD, - FL("seg1:%d seg2:%d width:%d country:%s class:%d"), + pe_debug("seg1: %d seg2: %d width: %d country: %s class: %d", csa_params->new_ch_freq_seg1, csa_params->new_ch_freq_seg2, csa_params->new_ch_width, @@ -2307,21 +2250,19 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) } } - lim_log(mac_ctx, LOGD, FL("new ch width = %d space:%d"), + pe_debug("new ch width: %d space: %d", session_entry->gLimChannelSwitch.ch_width, chan_space); if ((session_entry->currentOperChannel == csa_params->channel) && (session_entry->ch_width == session_entry->gLimChannelSwitch.ch_width)) { - lim_log(mac_ctx, LOGE, FL( - "Ignore CSA, no change in ch and bw")); + pe_err("Ignore CSA, no change in ch and bw"); goto err; } lim_prepare_for11h_channel_switch(mac_ctx, session_entry); csa_offload_ind = qdf_mem_malloc(sizeof(tSmeCsaOffloadInd)); if (NULL == csa_offload_ind) { - lim_log(mac_ctx, LOGE, - FL("memalloc fail eWNI_SME_CSA_OFFLOAD_EVENT")); + pe_err("memalloc fail eWNI_SME_CSA_OFFLOAD_EVENT"); goto err; } @@ -2332,8 +2273,7 @@ void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg) mmh_msg.type = eWNI_SME_CSA_OFFLOAD_EVENT; mmh_msg.bodyptr = csa_offload_ind; mmh_msg.bodyval = 0; - lim_log(mac_ctx, LOGD, - FL("Sending eWNI_SME_CSA_OFFLOAD_EVENT to SME.")); + pe_debug("Sending eWNI_SME_CSA_OFFLOAD_EVENT to SME"); MTRACE(mac_trace_msg_tx (mac_ctx, session_entry->peSessionId, mmh_msg.type)); #ifdef FEATURE_WLAN_DIAG_SUPPORT @@ -2364,8 +2304,7 @@ void lim_handle_delete_bss_rsp(tpAniSirGlobal pMac, tpSirMsgQ MsgQ) psessionEntry = pe_find_session_by_session_id(pMac, pDelBss->sessionId); if (psessionEntry == NULL) { - lim_log(pMac, LOGE, - FL("Session Does not exist for given sessionID %d"), + pe_err("Session Does not exist for given sessionID: %d", pDelBss->sessionId); qdf_mem_free(MsgQ->bodyptr); return; @@ -2422,7 +2361,7 @@ void lim_send_sme_max_assoc_exceeded_ntf(tpAniSirGlobal pMac, tSirMacAddr peerMa pSmeMaxAssocInd = qdf_mem_malloc(sizeof(tSmeMaxAssocInd)); if (NULL == pSmeMaxAssocInd) { - lim_log(pMac, LOGE, FL("Failed to allocate memory")); + pe_err("Failed to allocate memory"); return; } qdf_mem_copy((uint8_t *) pSmeMaxAssocInd->peer_mac.bytes, @@ -2432,11 +2371,9 @@ void lim_send_sme_max_assoc_exceeded_ntf(tpAniSirGlobal pMac, tSirMacAddr peerMa pSmeMaxAssocInd->sessionId = smesessionId; mmhMsg.type = pSmeMaxAssocInd->mesgType; mmhMsg.bodyptr = pSmeMaxAssocInd; - PELOG1(lim_log(pMac, LOGD, FL("msgType %s peerMacAddr " MAC_ADDRESS_STR - " sme session id %d"), - "eWNI_SME_MAX_ASSOC_EXCEEDED", - MAC_ADDR_ARRAY(peerMacAddr)); - ) + pe_debug("msgType: %s peerMacAddr "MAC_ADDRESS_STR "sme session id %d", + "eWNI_SME_MAX_ASSOC_EXCEEDED", MAC_ADDR_ARRAY(peerMacAddr), + pSmeMaxAssocInd->sessionId); MTRACE(mac_trace(pMac, TRACE_CODE_TX_SME_MSG, smesessionId, mmhMsg.type)); lim_sys_process_mmh_msg_api(pMac, &mmhMsg, ePROT); @@ -2482,14 +2419,13 @@ lim_send_dfs_chan_sw_ie_update(tpAniSirGlobal pMac, tpPESession psessionEntry) /* Update the beacon template and send to FW */ if (sch_set_fixed_beacon_fields(pMac, psessionEntry) != eSIR_SUCCESS) { - lim_log(pMac, LOGE, FL("Unable to set CSA IE in beacon")); + pe_err("Unable to set CSA IE in beacon"); return; } /* Send update beacon template message */ lim_send_beacon_ind(pMac, psessionEntry); - lim_log(pMac, LOGD, - FL(" Updated CSA IE, IE COUNT = %d"), + pe_debug("Updated CSA IE, IE COUNT: %d", psessionEntry->gLimChannelSwitch.switchCount); return; @@ -2521,8 +2457,7 @@ lim_send_sme_ap_channel_switch_resp(tpAniSirGlobal pMac, pSmeSwithChnlParams = (tSwitchChannelParams *) qdf_mem_malloc(sizeof(tSwitchChannelParams)); if (NULL == pSmeSwithChnlParams) { - lim_log(pMac, LOGE, - FL("AllocateMemory failed for pSmeSwithChnlParams\n")); + pe_err("AllocateMemory failed for pSmeSwithChnlParams"); return; } @@ -2569,8 +2504,7 @@ lim_send_sme_ap_channel_switch_resp(tpAniSirGlobal pMac, lim_apply_configuration(pMac, psessionEntry); lim_send_beacon_ind(pMac, psessionEntry); } else { - lim_log(pMac, LOGD, - FL("Failed to Transmit Beacons on channel = %d after AP channel change response"), + pe_debug("Failed to Transmit Beacons on channel: %d after AP channel change response", psessionEntry->bcnLen); } } @@ -2605,12 +2539,11 @@ lim_process_beacon_tx_success_ind(tpAniSirGlobal pMac, uint16_t msgType, void *e psessionEntry = pe_find_session_by_bss_idx(pMac, pBcnTxInd->bssIdx); if (psessionEntry == NULL) { - lim_log(pMac, LOGE, - FL("Session Does not exist for given sessionID")); + pe_err("Session Does not exist for given sessionID"); return; } - lim_log(pMac, LOGD, FL("role:%d swIe:%d opIe:%d"), + pe_debug("role: %d swIe: %d opIe: %d", GET_LIM_SYSTEM_ROLE(psessionEntry), psessionEntry->dfsIncludeChanSwIe, psessionEntry->gLimOperatingMode.present); @@ -2637,9 +2570,7 @@ lim_process_beacon_tx_success_ind(tpAniSirGlobal pMac, uint16_t msgType, void *e qdf_mem_malloc(length); if (NULL == pChanSwTxResponse) { - lim_log(pMac, LOGE, - FL - ("AllocateMemory failed for tSirSmeCSAIeTxCompleteRsp")); + pe_err("AllocateMemory failed for tSirSmeCSAIeTxCompleteRsp"); return; } @@ -2662,9 +2593,7 @@ lim_process_beacon_tx_success_ind(tpAniSirGlobal pMac, uint16_t msgType, void *e beacon_tx_comp_rsp_ptr = (struct sir_beacon_tx_complete_rsp *) qdf_mem_malloc(sizeof(*beacon_tx_comp_rsp_ptr)); if (NULL == beacon_tx_comp_rsp_ptr) { - lim_log(pMac, LOGE, - FL - ("AllocateMemory failed for beacon_tx_comp_rsp_ptr")); + pe_err("AllocateMemory failed for beacon_tx_comp_rsp_ptr"); return; } beacon_tx_comp_rsp_ptr->session_id = |
