summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaliu <kaliu@qti.qualcomm.com>2016-02-29 01:12:04 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-03-01 14:44:46 +0530
commitd8ced369bd3cccba6d4d3ff3ae61822ebe704e1e (patch)
tree2d020da5b7e566e0fd90cc5cd56393db425b3274
parente385eb527907e72d91a856ac81edcc22f8b1fa92 (diff)
qcacld-2.0: when flush txq in sheduler use same tid to ref the txq
currently txq of MCAST_BCAST packet is using tid HTT_TX_EXT_TID_NON_QOS_MCAST_BCAST when inserted into scheduler, so use same tid when flush Change-Id: I7b32e518e9e31a65ec96daeaabd3b9a79d3e1693 CRs-Fixed: 979681
-rw-r--r--CORE/CLD_TXRX/TXRX/ol_tx_queue.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/CORE/CLD_TXRX/TXRX/ol_tx_queue.c b/CORE/CLD_TXRX/TXRX/ol_tx_queue.c
index bf993d3667de..2cb50e219470 100644
--- a/CORE/CLD_TXRX/TXRX/ol_tx_queue.c
+++ b/CORE/CLD_TXRX/TXRX/ol_tx_queue.c
@@ -111,7 +111,15 @@ ol_tx_queue_vdev_flush(struct ol_txrx_pdev_t *pdev, struct ol_txrx_vdev_t *vdev)
/* flush VDEV TX queues */
for (i = 0; i < OL_TX_VDEV_NUM_QUEUES; i++) {
txq = &vdev->txqs[i];
- ol_tx_queue_free(pdev, txq, (i + OL_TX_NUM_TIDS));
+ /*
+ * currently txq of MCAST_BCAST packet is using tid
+ * HTT_TX_EXT_TID_NON_QOS_MCAST_BCAST when instered into scheduler,
+ * so use same tid when flush
+ */
+ if (i == 0)
+ ol_tx_queue_free(pdev, txq, HTT_TX_EXT_TID_NON_QOS_MCAST_BCAST);
+ else
+ ol_tx_queue_free(pdev, txq, (i + OL_TX_NUM_TIDS));
}
/* flush PEER TX queues */
do {