From 87edde8b30c859cf6cd7c0eeadcf2f9366cffd8a Mon Sep 17 00:00:00 2001 From: Harsh Kumar Bijlani Date: Thu, 16 Sep 2021 01:42:01 +0530 Subject: [PATCH] qcacmn: Do not populate meta_hdr on Tx completion path for mesh mode Do not populate the struct meta_hdr_s into for buffers received on Tx completion path when operating in mesh mode. Also update the fields in tx_capture_hdr as per the new definition. Change-Id: I6150b4ce891ca73d5ed7c7620568606c377223c6 --- dp/wifi3.0/dp_tx.c | 12 ------------ dp/wifi3.0/dp_txrx_wds.c | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index 4243fac329..004a734e5b 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -3426,7 +3426,6 @@ static void dp_tx_comp_fill_tx_completion_stats(struct dp_tx_desc_s *tx_desc, struct hal_tx_completion_status *ts) { - struct meta_hdr_s *mhdr; qdf_nbuf_t netbuf = tx_desc->nbuf; if (!tx_desc->msdu_ext_desc) { @@ -3437,17 +3436,6 @@ void dp_tx_comp_fill_tx_completion_stats(struct dp_tx_desc_s *tx_desc, return; } } - if (qdf_nbuf_push_head(netbuf, sizeof(struct meta_hdr_s)) == NULL) { - QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, - "netbuf %pK offset %zu", netbuf, - sizeof(struct meta_hdr_s)); - return; - } - - mhdr = (struct meta_hdr_s *)qdf_nbuf_data(netbuf); - mhdr->rssi = ts->ack_frame_rssi; - mhdr->band = tx_desc->pdev->operating_channel.band; - mhdr->channel = tx_desc->pdev->operating_channel.num; } #else diff --git a/dp/wifi3.0/dp_txrx_wds.c b/dp/wifi3.0/dp_txrx_wds.c index 5b01d1779d..69eee4c15b 100644 --- a/dp/wifi3.0/dp_txrx_wds.c +++ b/dp/wifi3.0/dp_txrx_wds.c @@ -1226,7 +1226,7 @@ dp_get_completion_indication_for_stack(struct dp_soc *soc, ppdu_hdr->last_msdu = last_msdu; if (qdf_unlikely(pdev->latency_capture_enable)) { ppdu_hdr->tsf = ts->tsf; - ppdu_hdr->time_latency = time_latency; + ppdu_hdr->time_latency = (uint32_t)time_latency; } return QDF_STATUS_SUCCESS;