qcacmn: Check for enqueue timestamp for Tx delay calculation

The Tx delay computed is very large if the enqueue
timestamp is zero.
Compute Tx delay only when the enqueue timestamp is valid.

Change-Id: Ic4032a6f4a01fc661dc1155a4543cd7fc4216970
CRs-Fixed: 3354639
这个提交包含在:
Vivek
2023-01-11 10:31:40 +05:30
提交者 Madan Koyyalamudi
父节点 95eec89597
当前提交 b7fe763018

查看文件

@@ -4594,6 +4594,8 @@ void dp_tx_compute_delay(struct dp_vdev *vdev, struct dp_tx_desc_s *tx_desc,
fwhw_transmit_delay = (uint32_t)(current_timestamp - fwhw_transmit_delay = (uint32_t)(current_timestamp -
timestamp_hw_enqueue); timestamp_hw_enqueue);
if (!timestamp_hw_enqueue)
return;
/* /*
* Delay between packet enqueued to HW and Tx completion in ms * Delay between packet enqueued to HW and Tx completion in ms
*/ */