summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukul Sharma <mukul@qti.qualcomm.com>2016-01-25 22:20:10 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-02-02 16:20:15 +0530
commitfc69aba6bebd88f21974660fadd0281047d79a33 (patch)
tree5b34f29986df16b65274ee1b28369fc901ef5721
parent1b6e38a823b0786ca164b8433e8c059f2ef09275 (diff)
qcacld-2.0: Reduce dumping of tx stats
Currently, host is dumping the tx stats on tx download complete timeout. Because of this host will miss critical debug prints/messages. As a part of this fix, reduce the frequency of dumping of tx stats. Change-Id: Ifb63bac6b6f9c7043c9350df73c591680278a23c CRs-Fixed: 964108
-rw-r--r--CORE/SERVICES/COMMON/ol_txrx_ctrl_api.h4
-rw-r--r--CORE/SERVICES/WMA/wma.c13
2 files changed, 14 insertions, 3 deletions
diff --git a/CORE/SERVICES/COMMON/ol_txrx_ctrl_api.h b/CORE/SERVICES/COMMON/ol_txrx_ctrl_api.h
index ce59ca18ff6f..42b169147e1e 100644
--- a/CORE/SERVICES/COMMON/ol_txrx_ctrl_api.h
+++ b/CORE/SERVICES/COMMON/ol_txrx_ctrl_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2015 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -75,6 +75,8 @@ enum wlan_op_mode {
#define WLAN_CREDIT_STATS 24
#endif
+#define OL_TXSTATS_DUMP_MOD_FREQ 10
+
/**
* @brief Set up the data SW subsystem.
* @details
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index aa2eff3cd379..56ec1c3fd8d4 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -32262,8 +32262,17 @@ VOS_STATUS WDA_TxPacket(void *wma_context, void *tx_frame, u_int16_t frmLen,
* WMA_TX_FRAME_COMPLETE_TIMEOUT (1 sec)
*/
#ifdef CONFIG_HL_SUPPORT
- /* display scheduler stats */
- wdi_in_display_stats(txrx_pdev, WLAN_SCHEDULER_STATS);
+ /* display scheduler stats
+ * when count is max or modulus of
+ * OL_TXSTATS_DUMP_MOD_FREQ
+ */
+ if ((mgmt_downld_fail_count ==
+ wma_handle->max_mgmt_tx_fail_count) ||
+ (mgmt_downld_fail_count %
+ OL_TXSTATS_DUMP_MOD_FREQ == 0)) {
+ wdi_in_display_stats(txrx_pdev,
+ WLAN_SCHEDULER_STATS);
+ }
#endif
WMA_LOGE("%s: download complete failure count:%d",
__func__, mgmt_downld_fail_count);