summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalaji Pothunoori <quic_bpothuno@quicinc.com>2023-04-03 16:08:48 +0530
committerMadan Koyyalamudi <quic_mkoyyala@quicinc.com>2023-04-04 19:44:13 -0700
commit9fb13c8cc81e434e5f3b0b3b1848c2423dfc8bc9 (patch)
treef1dba41010f17714ddaa60499472dbf7b8764558
parent43733cca530b55bdbba33b07972e332cf5d600aa (diff)
downloadqcacld-9fb13c8cc81e434e5f3b0b3b1848c2423dfc8bc9.tar.gz
qcacld-3.0: Fix ofdm and cck flag info for mon mode data packets
qcacld-3.0: Fix ofdm and cck flag info for mon mode data packets Currently cck and ofdm flags are filled wrongly for monitor mode data packets based on preamble and wireshark deriving incorrect phy type for 11G & 11B. This change is to update cck and ofdm flags based on packet type. Change-Id: I5fcdc463ea2a6d83253e39cc377a2471aeb4e144 CRs-Fixed: 3447567
-rw-r--r--components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h2
-rw-r--r--components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h b/components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h
index af65f8b0ea..25683fff82 100644
--- a/components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h
+++ b/components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h
@@ -43,6 +43,8 @@
#define IEEE80211_RADIOTAP_HE_DATA1_STBC_KNOWN 0x0200
#endif
+#define HAL_TX_PKT_TYPE_11B 1
+
/**
* pkt_capture_data_process_type - data pkt types to process
* for packet capture mode
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 536489f5e9..59770ed71b 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
@@ -208,9 +208,9 @@ static void pkt_capture_tx_get_phy_info(
break;
}
- if (preamble == 0)
+ if (preamble_type != HAL_TX_PKT_TYPE_11B)
tx_status->ofdm_flag = 1;
- else if (preamble == 1)
+ else
tx_status->cck_flag = 1;
tx_status->mcs = mcs;
@@ -731,9 +731,9 @@ static void pkt_capture_rx_get_phy_info(void *context, void *psoc,
break;
}
- if (preamble == 0)
+ if (preamble_type != HAL_RX_PKT_TYPE_11B)
rx_status->ofdm_flag = 1;
- else if (preamble == 1)
+ else
rx_status->cck_flag = 1;
rx_status->bw = bw;