Browse Source

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
Yeshwanth Sriram Guntuka 4 years ago
parent
commit
db69ffd8ce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_softap_tx_rx.c

+ 5 - 0
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++) {