diff options
author | Vevek Venkatesan <vevekv@codeaurora.org> | 2020-09-08 18:56:43 +0530 |
---|---|---|
committer | Victor Hsu <hsuvictor@google.com> | 2020-10-27 14:12:33 +0800 |
commit | bcebc4a99c7b2c29bb664bd47a39f770b630aa78 (patch) | |
tree | 49a34765d1f2dbdc443cc6cba267fa5ba2776884 | |
parent | 1fa88e84beef5c3864738d084535db2c20bd7da9 (diff) | |
download | qcacld-bcebc4a99c7b2c29bb664bd47a39f770b630aa78.tar.gz |
qcacld-3.0: fix improper data rate in rtap header in monitor mode
In ht monitor mode, mcs data rate is not correctly populated in
radiotap header, so if ht_flag is set, assign mcs value to ht_mcs
to fix it.
Bug: 166374071
Change-Id: If428275671068b31ae1367244c62bc4cac25a2af
CRs-Fixed: 2772405
Signed-off-by: Isaac Chiou <isaacchiou@google.com>
-rw-r--r-- | core/dp/htt/htt_monitor_rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/dp/htt/htt_monitor_rx.c b/core/dp/htt/htt_monitor_rx.c index 6f59e26b9d..970caa3d0f 100644 --- a/core/dp/htt/htt_monitor_rx.c +++ b/core/dp/htt/htt_monitor_rx.c @@ -422,6 +422,8 @@ static void htt_mon_rx_get_phy_info(struct htt_host_rx_desc_base *rx_desc, rx_status->ldpc = ldpc; rx_status->beamformed = beamformed; rx_status->vht_flag_values3[0] = mcs << 0x4 | (nss + 1); + if (ht_flags) + rx_status->ht_mcs = mcs; rx_status->ht_flags = ht_flags; rx_status->vht_flags = vht_flags; rx_status->rtap_flags |= ((preamble == SHORT_PREAMBLE) ? BIT(1) : 0); |