mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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
This commit is contained in:
parent
ea6f3d2a83
commit
3eab40ad63
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue