Преглед изворни кода

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.

Change-Id: If428275671068b31ae1367244c62bc4cac25a2af
CRs-Fixed: 2772405
Vevek Venkatesan пре 4 година
родитељ
комит
4ad620b903
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      core/dp/htt/htt_monitor_rx.c

+ 2 - 0
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);