Forráskód Böngészése

qcacld-3.0: Fill Coding and STBC in HE data of radiotap header

Fill the Coding info and STBC in HE data field of radiotap
header for TX data packets in packet capture mode.

Change-Id: I173ce1846259ee9e94587e360256161f8147df08
CRs-Fixed: 2984436
Surabhi Vishnoi 3 éve
szülő
commit
0d47f72dee

+ 2 - 0
components/pkt_capture/core/inc/wlan_pkt_capture_data_txrx.h

@@ -37,6 +37,8 @@
 #define IEEE80211_RADIOTAP_HE_DATA1_DATA_MCS_KNOWN 0x0020
 #define IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN 0x4000
 #define IEEE80211_RADIOTAP_HE_DATA2_GI_KNOWN 0x0002
+#define IEEE80211_RADIOTAP_HE_DATA1_CODING_KNOWN 0x0080
+#define IEEE80211_RADIOTAP_HE_DATA1_STBC_KNOWN 0x0200
 #endif
 
 /**

+ 6 - 2
components/pkt_capture/core/src/wlan_pkt_capture_data_txrx.c

@@ -189,9 +189,13 @@ static void pkt_capture_tx_get_phy_info(
 		tx_status->he_flags = 1;
 		tx_status->he_data1 |=
 			IEEE80211_RADIOTAP_HE_DATA1_DATA_MCS_KNOWN |
-			IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN;
+			IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN |
+			IEEE80211_RADIOTAP_HE_DATA1_CODING_KNOWN |
+			IEEE80211_RADIOTAP_HE_DATA1_STBC_KNOWN;
 		tx_status->he_data2 |= IEEE80211_RADIOTAP_HE_DATA2_GI_KNOWN;
-		tx_status->he_data3 |= pktcapture_hdr->mcs << 0x8;
+		tx_status->he_data3 |= (pktcapture_hdr->mcs << 0x8) |
+					(pktcapture_hdr->ldpc << 0xd) |
+					(pktcapture_hdr->stbc << 0xf);
 		tx_status->he_data5 |=
 			(pktcapture_hdr->bw | (pktcapture_hdr->sgi << 0x4));
 		tx_status->he_data6 |= pktcapture_hdr->nss;