mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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
This commit is contained in:
parent
9ad04409ce
commit
c640964afd
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -188,9 +188,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue