summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishank Aggarwal <naggar@codeaurora.org>2017-03-10 19:09:08 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-15 03:50:18 -0700
commit2ca69450bef2e3131b5a06536e6fdc3f2fc83256 (patch)
tree8824a836fa438c903c79a032c36fe3a83827da0b
parent400e6b4d4b69b6ecdf04a5e4cebac4a51014f191 (diff)
qcacld-3.0: Reduce the log spam in lim
Move the logs to appropriate log levels to reduce the log spam in lim_p2p.c and lim_process_message_queue.c Change-Id: I9b42fe28d561593811127632f361774db5ba8759 CRs-Fixed: 1093093
-rw-r--r--core/mac/src/pe/lim/lim_p2p.c13
-rw-r--r--core/mac/src/pe/lim/lim_process_message_queue.c16
2 files changed, 14 insertions, 15 deletions
diff --git a/core/mac/src/pe/lim/lim_p2p.c b/core/mac/src/pe/lim/lim_p2p.c
index 4141a10ffbe3..81ea2d81989f 100644
--- a/core/mac/src/pe/lim/lim_p2p.c
+++ b/core/mac/src/pe/lim/lim_p2p.c
@@ -108,7 +108,7 @@ static QDF_STATUS lim_send_hal_req_remain_on_chan_offload(tpAniSirGlobal pMac,
pScanOffloadReq->scan_id = pRemOnChnReq->scan_id;
pScanOffloadReq->scan_requestor_id = ROC_SCAN_REQUESTOR_ID;
- lim_log(pMac, LOG1,
+ lim_log(pMac, LOGD,
FL("Req-rem-on-channel: duration %u, session %hu, chan %hu"),
pRemOnChnReq->duration, pRemOnChnReq->sessionId,
pRemOnChnReq->chnNum);
@@ -285,7 +285,7 @@ void lim_exit_remain_on_channel(tpAniSirGlobal pMac, QDF_STATUS status,
{
if (status != QDF_STATUS_SUCCESS) {
- PELOGE(lim_log(pMac, LOGE, "Remain on Channel Failed");)
+ lim_log(pMac, LOGE, "Remain on Channel Failed");
goto error;
}
/* Set the resume channel to Any valid channel (invalid). */
@@ -311,10 +311,9 @@ void lim_remain_on_chn_rsp(tpAniSirGlobal pMac, QDF_STATUS status, uint32_t *dat
tSirMacAddr nullBssid = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
if (NULL == MsgRemainonChannel) {
- PELOGE(lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
"%s: No Pointer for Remain on Channel Req",
__func__);
- )
return;
}
/* Incase of the Remain on Channel Failure Case */
@@ -384,7 +383,7 @@ void lim_send_sme_mgmt_frame_ind(tpAniSirGlobal pMac, uint8_t frameType,
pSirSmeMgmtFrame = qdf_mem_malloc(length);
if (NULL == pSirSmeMgmtFrame) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("AllocateMemory failed for eWNI_SME_LISTEN_RSP"));
return;
}
@@ -425,7 +424,7 @@ QDF_STATUS lim_p2p_action_cnf(tpAniSirGlobal pMac, uint32_t tx_status)
* action confirmation received after
* remain on channel timer expired.
*/
- lim_log(pMac, LOG1,
+ lim_log(pMac, LOGD,
FL("mgmt_frame_sessionId %d"),
mgmt_frame_sessionId);
if (pMac->p2p_ack_ind_cb)
@@ -498,7 +497,7 @@ static void lim_tx_action_frame(tpAniSirGlobal mac_ctx,
mac_ctx->lim.mgmtFrameSessionId = 0xff;
} else {
mac_ctx->lim.mgmtFrameSessionId = mb_msg->sessionId;
- lim_log(mac_ctx, LOG2,
+ lim_log(mac_ctx, LOGD,
FL("lim.actionFrameSessionId = %u"),
mac_ctx->lim.mgmtFrameSessionId);
}
diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c
index ad325e50b5dc..54effd2cea1b 100644
--- a/core/mac/src/pe/lim/lim_process_message_queue.c
+++ b/core/mac/src/pe/lim/lim_process_message_queue.c
@@ -593,7 +593,7 @@ __lim_process_ext_scan_beacon_probe_rsp(tpAniSirGlobal pmac,
frm_len = WMA_GET_RX_PAYLOAD_LEN(rx_pkt_info);
if (frm_len <= SIR_MAC_B_PR_SSID_OFFSET) {
- lim_log(pmac, LOGP,
+ lim_log(pmac, LOGE,
FL("RX packet has invalid length %d"), frm_len);
return;
}
@@ -1179,7 +1179,7 @@ static QDF_STATUS lim_send_stop_scan_offload_req(tpAniSirGlobal pMac,
pAbortScanParams = qdf_mem_malloc(sizeof(tAbortScanParams));
if (NULL == pAbortScanParams) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Memory allocation failed for AbortScanParams"));
return QDF_STATUS_E_NOMEM;
}
@@ -1558,7 +1558,7 @@ static void lim_process_messages(tpAniSirGlobal mac_ctx, tpSirMsgQ msg)
session_entry = pe_find_session_by_sta_id(mac_ctx,
tdls_ind->staIdx, &session_id);
if (session_entry == NULL) {
- lim_log(mac_ctx, LOGD,
+ lim_log(mac_ctx, LOGE,
FL("No session exist for given bssId"));
qdf_mem_free(msg->bodyptr);
msg->bodyptr = NULL;
@@ -2132,7 +2132,7 @@ handle_ht_capabilityand_ht_info(struct sAniSirGlobal *pMac,
if (wlan_cfg_get_int(pMac, WNI_CFG_HT_CAP_INFO, &cfgValue) !=
eSIR_SUCCESS) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Fail to retrieve WNI_CFG_HT_CAP_INFO value"));
return;
}
@@ -2153,7 +2153,7 @@ handle_ht_capabilityand_ht_info(struct sAniSirGlobal *pMac,
if (wlan_cfg_get_int(pMac, WNI_CFG_HT_AMPDU_PARAMS, &cfgValue) !=
eSIR_SUCCESS) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Fail to retrieve WNI_CFG_HT_PARAM_INFO value"));
return;
}
@@ -2166,7 +2166,7 @@ handle_ht_capabilityand_ht_info(struct sAniSirGlobal *pMac,
/* Get HT IE Info */
if (wlan_cfg_get_int(pMac, WNI_CFG_HT_INFO_FIELD1, &cfgValue) !=
eSIR_SUCCESS) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD1 value"));
return;
}
@@ -2180,7 +2180,7 @@ handle_ht_capabilityand_ht_info(struct sAniSirGlobal *pMac,
if (wlan_cfg_get_int(pMac, WNI_CFG_HT_INFO_FIELD2, &cfgValue) !=
eSIR_SUCCESS) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD2 value"));
return;
}
@@ -2190,7 +2190,7 @@ handle_ht_capabilityand_ht_info(struct sAniSirGlobal *pMac,
if (wlan_cfg_get_int(pMac, WNI_CFG_HT_INFO_FIELD3, &cfgValue) !=
eSIR_SUCCESS) {
- lim_log(pMac, LOGP,
+ lim_log(pMac, LOGE,
FL("Fail to retrieve WNI_CFG_HT_INFO_FIELD3 value"));
return;
}