From 424157846542e2ba86f2e9bd7d21baa9d26cd2f7 Mon Sep 17 00:00:00 2001 From: Balaji Pothunoori Date: Thu, 23 Mar 2023 12:11:03 +0530 Subject: [PATCH] qcacld-3.0: update mcs value for HT and VHT mode for mon mode Currently monitor mode HT & VHT data packet tx rate is not matching with ota packet tx rate due to incorrect mcs value. This change is to update proper mcs value for HT & VHT modes. Change-Id: Ib4fb06a06ce35a4e8e683e5a22c8be226492b13f CRs-Fixed: 3442509 --- .../pkt_capture/core/src/wlan_pkt_capture_data_txrx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 6cebfe5481b9..0c69d911f0ac 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 @@ -1,6 +1,6 @@ /* * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -179,12 +179,14 @@ static void pkt_capture_tx_get_phy_info( mcs = 8 + pktcapture_hdr->mcs; else mcs = pktcapture_hdr->mcs; + + tx_status->ht_mcs = mcs; break; case 0x3: tx_status->vht_flags = 1; mcs = pktcapture_hdr->mcs; tx_status->vht_flag_values3[0] = - mcs << 0x4 | (pktcapture_hdr->nss + 1); + mcs << 0x4 | (pktcapture_hdr->nss); tx_status->vht_flag_values2 = pktcapture_hdr->bw; break; case 0x4: