From 06db648e34d996c110dcceff201915a692f0a3f1 Mon Sep 17 00:00:00 2001 From: Christopher Chopp Date: Wed, 26 Feb 2020 17:57:50 -0800 Subject: [PATCH] qca-wifi: Temp WAR for MCAST traffic in TX Cap Add temporary workaround for TX Capture Enhancements feature to not process stats for MCAST traffic unless the peer is a bss peer. This change avoids memory leaks relating to MCAST Traffic stats handling. Change-Id: I9b564897e402a4381e6d92d983bc10e1036ee2b4 --- dp/wifi3.0/dp_tx_capture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx_capture.c b/dp/wifi3.0/dp_tx_capture.c index 78fd346d99..e121f3b5ae 100644 --- a/dp/wifi3.0/dp_tx_capture.c +++ b/dp/wifi3.0/dp_tx_capture.c @@ -699,7 +699,8 @@ dp_update_msdu_to_list(struct dp_soc *soc, return QDF_STATUS_E_FAILURE; } - if (ts->tid > DP_MAX_TIDS) { + if ((ts->tid > DP_MAX_TIDS) || + (peer->bss_peer && ts->tid == DP_NON_QOS_TID)) { QDF_TRACE(QDF_MODULE_ID_TX_CAPTURE, QDF_TRACE_LEVEL_ERROR, "%s: %d peer_id %d, tid %d > NON_QOS_TID!", __func__, __LINE__, ts->peer_id, ts->tid);