From 189947ab058df95550cff5cc84eb0f6d80c657e0 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Thu, 25 Mar 2021 14:15:17 +0530 Subject: [PATCH] qcacld-3.0: Fix nss value in rx data packets in packet capture mode Currently, the value of the nss is filled wrong in radiotap header of rx data packets received in packet capture mode. Fix the nss value in rx status in packet capture mode. Change-Id: I15ceb16869aa15a2191f25feb3ef56625435fe4c CRs-Fixed: 2932135 --- components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c b/components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c index 45cd7d5ec23f..eaf8a485f6c3 100644 --- a/components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c +++ b/components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c @@ -664,6 +664,7 @@ static void pkt_capture_rx_get_phy_info(void *psoc, rx_status->mcs = mcs; rx_status->bw = bw; rx_status->nr_ant = nss; + rx_status->nss = nss; /* is_stbc not available */ rx_status->is_stbc = is_stbc; rx_status->sgi = sgi; @@ -671,7 +672,7 @@ static void pkt_capture_rx_get_phy_info(void *psoc, rx_status->ldpc = ldpc; /* beamformed not available */ rx_status->beamformed = beamformed; - rx_status->vht_flag_values3[0] = mcs << 0x4 | (nss + 1); + rx_status->vht_flag_values3[0] = mcs << 0x4 | nss; rx_status->ht_flags = ht_flags; rx_status->vht_flags = vht_flags; rx_status->he_flags = he_flags;