summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@codeaurora.org>2017-03-26 11:31:49 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-31 16:01:16 -0700
commitacaec8ec35675add2979ce5ccb6a29ed8c2ad6ec (patch)
tree824d627cc8328d9b6054430341f36f6dc07acf78
parent72ea3f746c66127e99e6d6a3b83ccbe3532a9ee1 (diff)
qcacld-3.0: Replace lim_log() with pe_* log levels in lim_reassoc_utils.c
Replace lim_log() with pe_* appropriate log levels in lim_reassoc_utils.c Change-Id: I1def193032cbba2bdcddfa7a8805123838d1d5df CRs-Fixed: 1093093
-rw-r--r--core/mac/src/pe/lim/lim_reassoc_utils.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/core/mac/src/pe/lim/lim_reassoc_utils.c b/core/mac/src/pe/lim/lim_reassoc_utils.c
index d9163fa55462..8f379a25c2dd 100644
--- a/core/mac/src/pe/lim/lim_reassoc_utils.c
+++ b/core/mac/src/pe/lim/lim_reassoc_utils.c
@@ -131,7 +131,7 @@ void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal pMac,
tpSchBeaconStruct beacon_struct;
beacon_struct = qdf_mem_malloc(sizeof(tSchBeaconStruct));
if (NULL == beacon_struct) {
- lim_log(pMac, LOGE, FL("beaconStruct alloc failed"));
+ pe_err("beaconStruct alloc failed");
mlmReassocCnf.resultCode =
eSIR_SME_RESOURCES_UNAVAILABLE;
mlmReassocCnf.protStatusCode =
@@ -153,8 +153,7 @@ void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal pMac,
&psessionEntry->dph.dphHashTable);
if (pStaDs == NULL) {
/* Could not add hash table entry */
- lim_log(pMac, LOGE,
- FL("could not add hash entry at DPH for "));
+ pe_err("could not add hash entry at DPH for");
lim_print_mac_addr(pMac,
psessionEntry->limReAssocbssId, LOGE);
mlmReassocCnf.resultCode =
@@ -196,8 +195,7 @@ void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal pMac,
lim_sta_send_add_bss(pMac, assocRsp, beacon_struct,
bss_desc,
false, psessionEntry)) {
- lim_log(pMac, LOGE,
- FL("Posting ADDBSS in the ReAssocCtx Failed "));
+ pe_err("Posting ADDBSS in the ReAssocCtx Failed");
retStatus = eSIR_FAILURE;
}
if (retStatus != eSIR_SUCCESS) {
@@ -234,9 +232,7 @@ void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal pMac,
}
break;
default:
- lim_log(pMac, LOGE,
- FL("DelBss in wrong system Role and SME State"));
-
+ pe_err("DelBss in wrong system Role and SME State");
mlmReassocCnf.resultCode = eSIR_SME_REFUSED;
mlmReassocCnf.protStatusCode =
eSIR_SME_UNEXPECTED_REQ_RESULT_CODE;
@@ -284,7 +280,7 @@ void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal pMac,
pBeaconStruct =
qdf_mem_malloc(sizeof(tSchBeaconStruct));
if (NULL == pBeaconStruct) {
- lim_log(pMac, LOGE, FL("Unable to allocate memory"));
+ pe_err("Unable to allocate memory");
mlmReassocCnf.resultCode =
eSIR_SME_RESOURCES_UNAVAILABLE;
mlmReassocCnf.protStatusCode =
@@ -296,8 +292,7 @@ void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal pMac,
dph_get_hash_entry(pMac, DPH_STA_HASH_INDEX_PEER,
&psessionEntry->dph.dphHashTable);
if (pStaDs == NULL) {
- lim_log(pMac, LOGE,
- FL("Fail to get STA PEER entry from hash"));
+ pe_err("Fail to get STA PEER entry from hash");
mlmReassocCnf.resultCode =
eSIR_SME_RESOURCES_UNAVAILABLE;
mlmReassocCnf.protStatusCode = eSIR_SME_SUCCESS;
@@ -343,8 +338,7 @@ void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal pMac,
&psessionEntry->pLimReAssocReq->
bssDescription, true,
psessionEntry)) {
- lim_log(pMac, LOGE,
- FL("Post ADDBSS in the ReAssocCtxt Failed "));
+ pe_err("Post ADDBSS in the ReAssocCtxt Failed");
retStatus = eSIR_FAILURE;
}
if (retStatus != eSIR_SUCCESS) {
@@ -390,8 +384,7 @@ void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal pMac,
}
break;
default:
- lim_log(pMac, LOGE,
- FL("DelBss in the wrong system Role and SME State"));
+ pe_err("DelBss in the wrong system Role and SME State");
mlmReassocCnf.resultCode = eSIR_SME_REFUSED;
mlmReassocCnf.protStatusCode =
eSIR_SME_UNEXPECTED_REQ_RESULT_CODE;
@@ -468,8 +461,7 @@ tSirRetStatus lim_add_ft_sta_self(tpAniSirGlobal mac_ctx, uint16_t assoc_id,
session_entry->limMlmState = eLIM_MLM_WT_ADD_STA_RSP_STATE;
ret_code = wma_post_ctrl_msg(mac_ctx, &msg_q);
if (eSIR_SUCCESS != ret_code) {
- lim_log(mac_ctx, LOGE,
- FL("Posting WMA_ADD_STA_REQ to HAL failed, reason=%X"),
+ pe_err("Posting WMA_ADD_STA_REQ to HAL failed, reason=%X",
ret_code);
qdf_mem_free(add_sta_params);
}
@@ -500,8 +492,7 @@ lim_restore_pre_reassoc_state(tpAniSirGlobal pMac,
{
tLimMlmReassocCnf mlmReassocCnf;
- lim_log(pMac, LOGD,
- FL("sessionid: %d protStatusCode: %d resultCode: %d"),
+ pe_debug("sessionid: %d protStatusCode: %d resultCode: %d",
psessionEntry->smeSessionId, protStatusCode, resultCode);
psessionEntry->limMlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;