summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreelakshmi Konamki <skonam@codeaurora.org>2017-04-04 18:29:16 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-04-04 21:41:11 -0700
commit182732e1d25790c46cf079bd5aad372a520b78c8 (patch)
treec66e50bbaee8f3ad4d511543fd4b2c48e4a946ea
parent00aad6442d2cc9b6a6c1edde585564ab32535497 (diff)
qcacld-3.0: Change log level for frequent logs
In pe_drop_pending_rx_mgmt_frames(), Change frequently seen logs log_level from LOGE to LOG1. Change-Id: I6a7e27eb7de7dd0e37a4ad2fea0b143493d831a1 CRs-Fixed: 2027882
-rw-r--r--core/mac/inc/ani_global.h1
-rw-r--r--core/mac/src/pe/lim/lim_api.c17
2 files changed, 14 insertions, 4 deletions
diff --git a/core/mac/inc/ani_global.h b/core/mac/inc/ani_global.h
index 2342965c3aa6..220d338564cc 100644
--- a/core/mac/inc/ani_global.h
+++ b/core/mac/inc/ani_global.h
@@ -968,6 +968,7 @@ typedef struct sAniSirGlobal {
uint8_t user_configured_nss;
bool sta_prefer_80MHz_over_160MHz;
enum country_src reg_hint_src;
+ uint32_t rx_packet_drop_counter;
} tAniSirGlobal;
typedef enum {
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 7cb1163bee67..08c52e13094f 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -991,9 +991,10 @@ static QDF_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
if (mac_ctx->sys.sys_bbt_pending_mgmt_count >=
MGMT_RX_PACKETS_THRESHOLD) {
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- pe_err("No.of pending RX management frames reaches to threshold, dropping management frames");
+ pe_debug("No.of pending RX management frames reaches to threshold, dropping management frames");
cds_pkt_return_packet(cds_pkt);
cds_pkt = NULL;
+ mac_ctx->rx_packet_drop_counter++;
return QDF_STATUS_E_FAILURE;
} else if (mac_ctx->sys.sys_bbt_pending_mgmt_count >
(MGMT_RX_PACKETS_THRESHOLD / 2)) {
@@ -1002,7 +1003,11 @@ static QDF_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) {
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
- pe_err("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))
+ pe_debug("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++;
cds_pkt_return_packet(cds_pkt);
cds_pkt = NULL;
return QDF_STATUS_E_FAILURE;
@@ -1011,8 +1016,12 @@ static QDF_STATUS pe_drop_pending_rx_mgmt_frames(tpAniSirGlobal mac_ctx,
mac_ctx->sys.sys_bbt_pending_mgmt_count++;
qdf_spin_unlock(&mac_ctx->sys.bbt_mgmt_lock);
if (mac_ctx->sys.sys_bbt_pending_mgmt_count ==
- (MGMT_RX_PACKETS_THRESHOLD / 4))
- pe_warn("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))
+ pe_debug("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 QDF_STATUS_SUCCESS;
}