Browse Source

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
Surabhi Vishnoi 4 years ago
parent
commit
5b633bab5e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/pkt_capture/core/src/wlan_pkt_capture_main.c

+ 2 - 2
components/pkt_capture/core/src/wlan_pkt_capture_main.c

@@ -167,7 +167,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;
@@ -212,7 +212,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;
 	}