qcacmn: Fix Rx packet logging issue

Currently while sending nbuf to rx fate logs
we are not removing rx tlv before sending nbuf
to logger which is causing issue of incorrect
packet type issue.

To Fix issue make changes to make sure that
rx tlv is removed and nbuf length is set

Change-Id: Ib56c8e009398b3410c43be910feb4048bfb06b54
CRs-Fixed: 3241828
This commit is contained in:
Amit Mehta
2022-07-15 14:36:07 +05:30
committed by Madan Koyyalamudi
parent 82fd1e58e2
commit 7e799fcbae
6 changed files with 84 additions and 10 deletions

View File

@@ -3078,6 +3078,11 @@ bool dp_rx_deliver_special_frame(struct dp_soc *soc,
dp_rx_set_hdr_pad(nbuf, l2_hdr_offset);
qdf_nbuf_pull_head(nbuf, skip_len);
if (txrx_peer->vdev) {
dp_rx_send_pktlog(soc, txrx_peer->vdev->pdev, nbuf,
QDF_TX_RX_STATUS_OK);
}
if (dp_rx_is_special_frame(nbuf, frame_mask)) {
dp_info("special frame, mpdu sn 0x%x",
hal_rx_get_rx_sequence(soc->hal_soc, rx_tlv_hdr));