summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Gao <wugao@codeaurora.org>2018-10-23 11:02:11 +0800
committerWu Gao <wugao@codeaurora.org>2018-10-23 11:05:28 +0800
commit45955b56d57cd5056ec4eec06eb254df06753ccc (patch)
treeedaf83a7ac92d7636c55eed95397be68a2e4a552
parent071352ee12ba1f1dac8c11b021b60dc2e959b66f (diff)
qcacld-2.0: Change log level for frequent logs
propagation from qcacld-3.0 to qcacld-2.0 In pe_drop_pending_rx_mgmt_frames(), Change frequently seen logs log_level from LOGE to LOG1. Change-Id: Ia8dd7838727a92c78a9ad94b90fd2d683fb98430 CRs-Fixed: 2337125
-rw-r--r--CORE/MAC/inc/aniGlobal.h1
-rw-r--r--CORE/MAC/src/pe/lim/limApi.c21
2 files changed, 16 insertions, 6 deletions
diff --git a/CORE/MAC/inc/aniGlobal.h b/CORE/MAC/inc/aniGlobal.h
index 14e970a6ed51..6a0a9016da68 100644
--- a/CORE/MAC/inc/aniGlobal.h
+++ b/CORE/MAC/inc/aniGlobal.h
@@ -1297,6 +1297,7 @@ typedef struct sAniSirGlobal
bool sta_change_cc_via_beacon;
bool max_power_cmd_pending;
uint32_t sta_auth_retries_for_code17;
+ uint32_t rx_packet_drop_counter;
} tAniSirGlobal;
typedef enum
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index 1c02b7eb6a71..c23fb833cefb 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -1292,10 +1292,11 @@ static VOS_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
if (mac_ctx->sys.sys_bbt_pending_mgmt_count >=
MGMT_RX_PACKETS_THRESHOLD) {
adf_os_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- limLog(mac_ctx, LOGW,
+ limLog(mac_ctx, LOG1,
FL("No.of pending RX management frames reaches to threshold, dropping management frames"));
vos_pkt_return_packet(vos_pkt);
vos_pkt = NULL;
+ mac_ctx->rx_packet_drop_counter++;
return VOS_STATUS_E_FAILURE;
} else if (mac_ctx->sys.sys_bbt_pending_mgmt_count >
(MGMT_RX_PACKETS_THRESHOLD / 2)) {
@@ -1304,8 +1305,12 @@ static VOS_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
hdr->fc.subType == SIR_MAC_MGMT_PROBE_REQ ||
hdr->fc.subType == SIR_MAC_MGMT_PROBE_RSP) {
adf_os_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- limLog(mac_ctx, LOGW,
- FL("No.of pending RX management frames reaches to half of threshold, dropping probe req, probe resp or beacon frames"));
+ if (!(mac_ctx->rx_packet_drop_counter % 100))
+ limLog(mac_ctx, LOG1,
+ FL("No.of pending RX mgmt frames reaches 1/2 thresh, dropping frame subtype: %d rx_packet_drop_counter: %d"),
+ hdr->fc.subType,
+ mac_ctx->rx_packet_drop_counter);
+ mac_ctx->rx_packet_drop_counter++;
vos_pkt_return_packet(vos_pkt);
vos_pkt = NULL;
return VOS_STATUS_E_FAILURE;
@@ -1314,9 +1319,13 @@ static VOS_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
mac_ctx->sys.sys_bbt_pending_mgmt_count++;
adf_os_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
if (mac_ctx->sys.sys_bbt_pending_mgmt_count ==
- (MGMT_RX_PACKETS_THRESHOLD / 4))
- limLog(mac_ctx, LOGW,
- FL("No.of pending RX management frames reaches to 1/4th of threshold"));
+ (MGMT_RX_PACKETS_THRESHOLD / 4)) {
+ if (!(mac_ctx->rx_packet_drop_counter % 100))
+ limLog(mac_ctx, LOG1,
+ FL("No.of pending RX management frames reaches to 1/4th of threshold, rx_packet_drop_counter: %d"),
+ mac_ctx->rx_packet_drop_counter);
+ mac_ctx->rx_packet_drop_counter++;
+ }
return VOS_STATUS_SUCCESS;
}