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
This commit is contained in:
Harsh Kumar Bijlani
2021-09-16 01:42:01 +05:30
committed by Madan Koyyalamudi
parent c00993943b
commit 87edde8b30
2 changed files with 1 additions and 13 deletions

View File

@@ -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