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
Esse commit está contido em:
Harsh Kumar Bijlani
2021-09-16 01:42:01 +05:30
commit de Madan Koyyalamudi
commit 87edde8b30
2 arquivos alterados com 1 adições e 13 exclusões

Ver arquivo

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

Ver arquivo

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