From db69ffd8ce859a60fe71243628ceb054e20eee10 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Mon, 8 Jun 2020 17:19:36 +0530 Subject: [PATCH] qcacld-3.0: Ignore tx timeout on SAP when wlan is suspended SAP tx timeout indication is received when wlan is suspended causing excessive logging to console and eventually WD timeout. Ignore SAP tx timeout indication when wlan is suspended. Change-Id: Ie09ac187e6d38c12c6c33a8b4ada19c9aabc45f9 CRs-Fixed: 2705201 --- core/hdd/src/wlan_hdd_softap_tx_rx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c index f61b7f20ba29..639a627f9838 100644 --- a/core/hdd/src/wlan_hdd_softap_tx_rx.c +++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c @@ -780,6 +780,11 @@ static void __hdd_softap_tx_timeout(struct net_device *dev) return; } + if (hdd_ctx->hdd_wlan_suspended) { + hdd_debug("wlan is suspended, ignore timeout"); + return; + } + TX_TIMEOUT_TRACE(dev, QDF_MODULE_ID_HDD_SAP_DATA); for (i = 0; i < NUM_TX_QUEUES; i++) {