From e6da1de6c4db11a77a79c7231b0ee6b7f213e879 Mon Sep 17 00:00:00 2001 From: Ajit Pal Singh Date: Thu, 27 Dec 2018 16:20:45 +0530 Subject: [PATCH] qcacld-3.0: Refactor/correct usage of flow control stats Correct flow control usage of stats in hdd_tx_resume_cb() and wlan_hdd_mod_fc_timer() Change-Id: I2efd145332f79f058f367bef21a4d22cb52e927d CRs-Fixed: 2373789 --- core/hdd/src/wlan_hdd_main.c | 2 ++ core/hdd/src/wlan_hdd_tx_rx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 19a6de6fbf11..9f95fe8a5c06 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -360,6 +360,8 @@ void wlan_hdd_mod_fc_timer(struct hdd_adapter *adapter, if (action == WLAN_WAKE_NON_PRIORITY_QUEUE) { qdf_mc_timer_stop(&adapter->tx_flow_control_timer); + adapter->hdd_stats.tx_rx_stats.is_txflow_paused = false; + adapter->hdd_stats.tx_rx_stats.txflow_unpause_cnt++; } else if (action == WLAN_STOP_NON_PRIORITY_QUEUE) { QDF_STATUS status = qdf_mc_timer_start(&adapter->tx_flow_control_timer, diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index ab5c0ebd245e..f4004e137024 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -292,6 +292,8 @@ void hdd_tx_resume_cb(void *adapter_context, bool tx_resume) wlan_hdd_netif_queue_control(adapter, WLAN_WAKE_ALL_NETIF_QUEUE, WLAN_DATA_FLOW_CONTROL); + adapter->hdd_stats.tx_rx_stats.is_txflow_paused = false; + adapter->hdd_stats.tx_rx_stats.txflow_unpause_cnt++; } hdd_tx_resume_false(adapter, tx_resume); }