From 3eab40ad6316012704df701063e22bc2c479e63d Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Fri, 26 Mar 2021 12:39:27 +0530 Subject: [PATCH] qcacld-3.0: Fix retry count in tx data packets in packet capture mode Transmit count received in tx completion status includes the success transmission also, so retry count will be one less than transmit count. Change-Id: I81a06d4800b2f1015e618938229b7d7abfe5ed2e CRs-Fixed: 2932141 --- components/pkt_capture/core/src/wlan_pkt_capture_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/pkt_capture/core/src/wlan_pkt_capture_main.c b/components/pkt_capture/core/src/wlan_pkt_capture_main.c index c7e1ab34986d..3f35ca50e7cd 100644 --- a/components/pkt_capture/core/src/wlan_pkt_capture_main.c +++ b/components/pkt_capture/core/src/wlan_pkt_capture_main.c @@ -168,7 +168,7 @@ void pkt_capture_callback(void *soc, enum WDI_EVENT event, void *log_data, pktcapture_hdr.beamformed = 0; pktcapture_hdr.framectrl = IEEE80211_FC0_TYPE_DATA | (IEEE80211_FC1_DIR_TODS << 8); - pktcapture_hdr.tx_retry_cnt = tx_comp_status.transmit_cnt; + pktcapture_hdr.tx_retry_cnt = tx_comp_status.transmit_cnt - 1; /* seqno not available */ pktcapture_hdr.seqno = 0; tid = tx_comp_status.tid; @@ -261,7 +261,7 @@ void pkt_capture_callback(void *soc, enum WDI_EVENT event, void *log_data, pkt_capture_datapkt_process( vdev_id, netbuf, TXRX_PROCESS_TYPE_DATA_TX_COMPL, tid, status, TXRX_PKTCAPTURE_PKT_FORMAT_8023, - bssid, NULL, tx_retry_cnt); + bssid, NULL, pktcapture_hdr.tx_retry_cnt); break; }