qcacld-3.0: Add ini support to enable/disable data stall detection
Add ini support to enable/disable WIFI data stall
detection feature. By default gEnableDataStallDetection
ini set to 0.
CRs-Fixed: 2124762
Change-Id: I2d9cd3fe0092aeb29c37cded2e5245c9f816ec08
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 9f09de0..4b5a8bf 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -564,7 +564,8 @@
QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
"Detected data stall due to continuous TX timeouts");
adapter->hdd_stats.tx_rx_stats.cont_txtimeout_cnt = 0;
- cdp_post_data_stall_event(soc,
+ if (hdd_ctx->config->enable_data_stall_det)
+ cdp_post_data_stall_event(soc,
DATA_STALL_LOG_INDICATOR_HOST_DRIVER,
DATA_STALL_LOG_HOST_SOFTAP_TX_TIMEOUT,
0xFF, 0xFF,