ieee80211_radiotap.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. /*
  2. * Copyright (c) 2017 Intel Deutschland GmbH
  3. * Copyright (c) 2018 Intel Corporation
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef __RADIOTAP_H
  18. #define __RADIOTAP_H
  19. #include <linux/kernel.h>
  20. #include <asm/unaligned.h>
  21. /**
  22. * struct ieee82011_radiotap_header - base radiotap header
  23. */
  24. struct ieee80211_radiotap_header {
  25. /**
  26. * @it_version: radiotap version, always 0
  27. */
  28. uint8_t it_version;
  29. /**
  30. * @it_pad: padding (or alignment)
  31. */
  32. uint8_t it_pad;
  33. /**
  34. * @it_len: overall radiotap header length
  35. */
  36. __le16 it_len;
  37. /**
  38. * @it_present: (first) present word
  39. */
  40. __le32 it_present;
  41. } __packed;
  42. /* version is always 0 */
  43. #define PKTHDR_RADIOTAP_VERSION 0
  44. /* see the radiotap website for the descriptions */
  45. enum ieee80211_radiotap_presence {
  46. IEEE80211_RADIOTAP_TSFT = 0,
  47. IEEE80211_RADIOTAP_FLAGS = 1,
  48. IEEE80211_RADIOTAP_RATE = 2,
  49. IEEE80211_RADIOTAP_CHANNEL = 3,
  50. IEEE80211_RADIOTAP_FHSS = 4,
  51. IEEE80211_RADIOTAP_DBM_ANTSIGNAL = 5,
  52. IEEE80211_RADIOTAP_DBM_ANTNOISE = 6,
  53. IEEE80211_RADIOTAP_LOCK_QUALITY = 7,
  54. IEEE80211_RADIOTAP_TX_ATTENUATION = 8,
  55. IEEE80211_RADIOTAP_DB_TX_ATTENUATION = 9,
  56. IEEE80211_RADIOTAP_DBM_TX_POWER = 10,
  57. IEEE80211_RADIOTAP_ANTENNA = 11,
  58. IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12,
  59. IEEE80211_RADIOTAP_DB_ANTNOISE = 13,
  60. IEEE80211_RADIOTAP_RX_FLAGS = 14,
  61. IEEE80211_RADIOTAP_TX_FLAGS = 15,
  62. IEEE80211_RADIOTAP_RTS_RETRIES = 16,
  63. IEEE80211_RADIOTAP_DATA_RETRIES = 17,
  64. /* 18 is XChannel, but it's not defined yet */
  65. IEEE80211_RADIOTAP_MCS = 19,
  66. IEEE80211_RADIOTAP_AMPDU_STATUS = 20,
  67. IEEE80211_RADIOTAP_VHT = 21,
  68. IEEE80211_RADIOTAP_TIMESTAMP = 22,
  69. IEEE80211_RADIOTAP_HE = 23,
  70. IEEE80211_RADIOTAP_HE_MU = 24,
  71. /* valid in every it_present bitmap, even vendor namespaces */
  72. IEEE80211_RADIOTAP_RADIOTAP_NAMESPACE = 29,
  73. IEEE80211_RADIOTAP_VENDOR_NAMESPACE = 30,
  74. IEEE80211_RADIOTAP_EXT = 31
  75. };
  76. /* for IEEE80211_RADIOTAP_FLAGS */
  77. enum ieee80211_radiotap_flags {
  78. IEEE80211_RADIOTAP_F_CFP = 0x01,
  79. IEEE80211_RADIOTAP_F_SHORTPRE = 0x02,
  80. IEEE80211_RADIOTAP_F_WEP = 0x04,
  81. IEEE80211_RADIOTAP_F_FRAG = 0x08,
  82. IEEE80211_RADIOTAP_F_FCS = 0x10,
  83. IEEE80211_RADIOTAP_F_DATAPAD = 0x20,
  84. IEEE80211_RADIOTAP_F_BADFCS = 0x40,
  85. };
  86. /* for IEEE80211_RADIOTAP_CHANNEL */
  87. enum ieee80211_radiotap_channel_flags {
  88. IEEE80211_CHAN_CCK = 0x0020,
  89. IEEE80211_CHAN_OFDM = 0x0040,
  90. IEEE80211_CHAN_2GHZ = 0x0080,
  91. IEEE80211_CHAN_5GHZ = 0x0100,
  92. IEEE80211_CHAN_DYN = 0x0400,
  93. IEEE80211_CHAN_HALF = 0x4000,
  94. IEEE80211_CHAN_QUARTER = 0x8000,
  95. };
  96. /* for IEEE80211_RADIOTAP_RX_FLAGS */
  97. enum ieee80211_radiotap_rx_flags {
  98. IEEE80211_RADIOTAP_F_RX_BADPLCP = 0x0002,
  99. };
  100. /* for IEEE80211_RADIOTAP_TX_FLAGS */
  101. enum ieee80211_radiotap_tx_flags {
  102. IEEE80211_RADIOTAP_F_TX_FAIL = 0x0001,
  103. IEEE80211_RADIOTAP_F_TX_CTS = 0x0002,
  104. IEEE80211_RADIOTAP_F_TX_RTS = 0x0004,
  105. IEEE80211_RADIOTAP_F_TX_NOACK = 0x0008,
  106. };
  107. /* for IEEE80211_RADIOTAP_MCS "have" flags */
  108. enum ieee80211_radiotap_mcs_have {
  109. IEEE80211_RADIOTAP_MCS_HAVE_BW = 0x01,
  110. IEEE80211_RADIOTAP_MCS_HAVE_MCS = 0x02,
  111. IEEE80211_RADIOTAP_MCS_HAVE_GI = 0x04,
  112. IEEE80211_RADIOTAP_MCS_HAVE_FMT = 0x08,
  113. IEEE80211_RADIOTAP_MCS_HAVE_FEC = 0x10,
  114. IEEE80211_RADIOTAP_MCS_HAVE_STBC = 0x20,
  115. };
  116. enum ieee80211_radiotap_mcs_flags {
  117. IEEE80211_RADIOTAP_MCS_BW_MASK = 0x03,
  118. IEEE80211_RADIOTAP_MCS_BW_20 = 0,
  119. IEEE80211_RADIOTAP_MCS_BW_40 = 1,
  120. IEEE80211_RADIOTAP_MCS_BW_20L = 2,
  121. IEEE80211_RADIOTAP_MCS_BW_20U = 3,
  122. IEEE80211_RADIOTAP_MCS_SGI = 0x04,
  123. IEEE80211_RADIOTAP_MCS_FMT_GF = 0x08,
  124. IEEE80211_RADIOTAP_MCS_FEC_LDPC = 0x10,
  125. IEEE80211_RADIOTAP_MCS_STBC_MASK = 0x60,
  126. IEEE80211_RADIOTAP_MCS_STBC_1 = 1,
  127. IEEE80211_RADIOTAP_MCS_STBC_2 = 2,
  128. IEEE80211_RADIOTAP_MCS_STBC_3 = 3,
  129. IEEE80211_RADIOTAP_MCS_STBC_SHIFT = 5,
  130. };
  131. /* for IEEE80211_RADIOTAP_AMPDU_STATUS */
  132. enum ieee80211_radiotap_ampdu_flags {
  133. IEEE80211_RADIOTAP_AMPDU_REPORT_ZEROLEN = 0x0001,
  134. IEEE80211_RADIOTAP_AMPDU_IS_ZEROLEN = 0x0002,
  135. IEEE80211_RADIOTAP_AMPDU_LAST_KNOWN = 0x0004,
  136. IEEE80211_RADIOTAP_AMPDU_IS_LAST = 0x0008,
  137. IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_ERR = 0x0010,
  138. IEEE80211_RADIOTAP_AMPDU_DELIM_CRC_KNOWN = 0x0020,
  139. IEEE80211_RADIOTAP_AMPDU_EOF = 0x0040,
  140. IEEE80211_RADIOTAP_AMPDU_EOF_KNOWN = 0x0080,
  141. };
  142. /* for IEEE80211_RADIOTAP_VHT */
  143. enum ieee80211_radiotap_vht_known {
  144. IEEE80211_RADIOTAP_VHT_KNOWN_STBC = 0x0001,
  145. IEEE80211_RADIOTAP_VHT_KNOWN_TXOP_PS_NA = 0x0002,
  146. IEEE80211_RADIOTAP_VHT_KNOWN_GI = 0x0004,
  147. IEEE80211_RADIOTAP_VHT_KNOWN_SGI_NSYM_DIS = 0x0008,
  148. IEEE80211_RADIOTAP_VHT_KNOWN_LDPC_EXTRA_OFDM_SYM = 0x0010,
  149. IEEE80211_RADIOTAP_VHT_KNOWN_BEAMFORMED = 0x0020,
  150. IEEE80211_RADIOTAP_VHT_KNOWN_BANDWIDTH = 0x0040,
  151. IEEE80211_RADIOTAP_VHT_KNOWN_GROUP_ID = 0x0080,
  152. IEEE80211_RADIOTAP_VHT_KNOWN_PARTIAL_AID = 0x0100,
  153. };
  154. enum ieee80211_radiotap_vht_flags {
  155. IEEE80211_RADIOTAP_VHT_FLAG_STBC = 0x01,
  156. IEEE80211_RADIOTAP_VHT_FLAG_TXOP_PS_NA = 0x02,
  157. IEEE80211_RADIOTAP_VHT_FLAG_SGI = 0x04,
  158. IEEE80211_RADIOTAP_VHT_FLAG_SGI_NSYM_M10_9 = 0x08,
  159. IEEE80211_RADIOTAP_VHT_FLAG_LDPC_EXTRA_OFDM_SYM = 0x10,
  160. IEEE80211_RADIOTAP_VHT_FLAG_BEAMFORMED = 0x20,
  161. };
  162. enum ieee80211_radiotap_vht_coding {
  163. IEEE80211_RADIOTAP_CODING_LDPC_USER0 = 0x01,
  164. IEEE80211_RADIOTAP_CODING_LDPC_USER1 = 0x02,
  165. IEEE80211_RADIOTAP_CODING_LDPC_USER2 = 0x04,
  166. IEEE80211_RADIOTAP_CODING_LDPC_USER3 = 0x08,
  167. };
  168. /* for IEEE80211_RADIOTAP_TIMESTAMP */
  169. enum ieee80211_radiotap_timestamp_unit_spos {
  170. IEEE80211_RADIOTAP_TIMESTAMP_UNIT_MASK = 0x000F,
  171. IEEE80211_RADIOTAP_TIMESTAMP_UNIT_MS = 0x0000,
  172. IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US = 0x0001,
  173. IEEE80211_RADIOTAP_TIMESTAMP_UNIT_NS = 0x0003,
  174. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_MASK = 0x00F0,
  175. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_BEGIN_MDPU = 0x0000,
  176. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_PLCP_SIG_ACQ = 0x0010,
  177. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_EO_PPDU = 0x0020,
  178. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_EO_MPDU = 0x0030,
  179. IEEE80211_RADIOTAP_TIMESTAMP_SPOS_UNKNOWN = 0x00F0,
  180. };
  181. enum ieee80211_radiotap_timestamp_flags {
  182. IEEE80211_RADIOTAP_TIMESTAMP_FLAG_64BIT = 0x00,
  183. IEEE80211_RADIOTAP_TIMESTAMP_FLAG_32BIT = 0x01,
  184. IEEE80211_RADIOTAP_TIMESTAMP_FLAG_ACCURACY = 0x02,
  185. };
  186. struct ieee80211_radiotap_he {
  187. __le16 data1, data2, data3, data4, data5, data6;
  188. };
  189. enum ieee80211_radiotap_he_bits {
  190. IEEE80211_RADIOTAP_HE_DATA1_FORMAT_MASK = 3,
  191. IEEE80211_RADIOTAP_HE_DATA1_FORMAT_SU = 0,
  192. IEEE80211_RADIOTAP_HE_DATA1_FORMAT_EXT_SU = 1,
  193. IEEE80211_RADIOTAP_HE_DATA1_FORMAT_MU = 2,
  194. IEEE80211_RADIOTAP_HE_DATA1_FORMAT_TRIG = 3,
  195. IEEE80211_RADIOTAP_HE_DATA1_BSS_COLOR_KNOWN = 0x0004,
  196. IEEE80211_RADIOTAP_HE_DATA1_BEAM_CHANGE_KNOWN = 0x0008,
  197. IEEE80211_RADIOTAP_HE_DATA1_UL_DL_KNOWN = 0x0010,
  198. IEEE80211_RADIOTAP_HE_DATA1_DATA_MCS_KNOWN = 0x0020,
  199. IEEE80211_RADIOTAP_HE_DATA1_DATA_DCM_KNOWN = 0x0040,
  200. IEEE80211_RADIOTAP_HE_DATA1_CODING_KNOWN = 0x0080,
  201. IEEE80211_RADIOTAP_HE_DATA1_LDPC_XSYMSEG_KNOWN = 0x0100,
  202. IEEE80211_RADIOTAP_HE_DATA1_STBC_KNOWN = 0x0200,
  203. IEEE80211_RADIOTAP_HE_DATA1_SPTL_REUSE_KNOWN = 0x0400,
  204. IEEE80211_RADIOTAP_HE_DATA1_SPTL_REUSE2_KNOWN = 0x0800,
  205. IEEE80211_RADIOTAP_HE_DATA1_SPTL_REUSE3_KNOWN = 0x1000,
  206. IEEE80211_RADIOTAP_HE_DATA1_SPTL_REUSE4_KNOWN = 0x2000,
  207. IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN = 0x4000,
  208. IEEE80211_RADIOTAP_HE_DATA1_DOPPLER_KNOWN = 0x8000,
  209. IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_KNOWN = 0x0001,
  210. IEEE80211_RADIOTAP_HE_DATA2_GI_KNOWN = 0x0002,
  211. IEEE80211_RADIOTAP_HE_DATA2_NUM_LTF_SYMS_KNOWN = 0x0004,
  212. IEEE80211_RADIOTAP_HE_DATA2_PRE_FEC_PAD_KNOWN = 0x0008,
  213. IEEE80211_RADIOTAP_HE_DATA2_TXBF_KNOWN = 0x0010,
  214. IEEE80211_RADIOTAP_HE_DATA2_PE_DISAMBIG_KNOWN = 0x0020,
  215. IEEE80211_RADIOTAP_HE_DATA2_TXOP_KNOWN = 0x0040,
  216. IEEE80211_RADIOTAP_HE_DATA2_MIDAMBLE_KNOWN = 0x0080,
  217. IEEE80211_RADIOTAP_HE_DATA2_RU_OFFSET = 0x3f00,
  218. IEEE80211_RADIOTAP_HE_DATA2_RU_OFFSET_KNOWN = 0x4000,
  219. IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_SEC = 0x8000,
  220. IEEE80211_RADIOTAP_HE_DATA3_BSS_COLOR = 0x003f,
  221. IEEE80211_RADIOTAP_HE_DATA3_BEAM_CHANGE = 0x0040,
  222. IEEE80211_RADIOTAP_HE_DATA3_UL_DL = 0x0080,
  223. IEEE80211_RADIOTAP_HE_DATA3_DATA_MCS = 0x0f00,
  224. IEEE80211_RADIOTAP_HE_DATA3_DATA_DCM = 0x1000,
  225. IEEE80211_RADIOTAP_HE_DATA3_CODING = 0x2000,
  226. IEEE80211_RADIOTAP_HE_DATA3_LDPC_XSYMSEG = 0x4000,
  227. IEEE80211_RADIOTAP_HE_DATA3_STBC = 0x8000,
  228. IEEE80211_RADIOTAP_HE_DATA4_SU_MU_SPTL_REUSE = 0x000f,
  229. IEEE80211_RADIOTAP_HE_DATA4_MU_STA_ID = 0x7ff0,
  230. IEEE80211_RADIOTAP_HE_DATA4_TB_SPTL_REUSE1 = 0x000f,
  231. IEEE80211_RADIOTAP_HE_DATA4_TB_SPTL_REUSE2 = 0x00f0,
  232. IEEE80211_RADIOTAP_HE_DATA4_TB_SPTL_REUSE3 = 0x0f00,
  233. IEEE80211_RADIOTAP_HE_DATA4_TB_SPTL_REUSE4 = 0xf000,
  234. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC = 0x000f,
  235. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_20MHZ = 0,
  236. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_40MHZ = 1,
  237. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_80MHZ = 2,
  238. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_160MHZ = 3,
  239. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_26T = 4,
  240. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_52T = 5,
  241. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_106T = 6,
  242. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_242T = 7,
  243. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_484T = 8,
  244. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_996T = 9,
  245. IEEE80211_RADIOTAP_HE_DATA5_DATA_BW_RU_ALLOC_2x996T = 10,
  246. IEEE80211_RADIOTAP_HE_DATA5_GI = 0x0030,
  247. IEEE80211_RADIOTAP_HE_DATA5_GI_0_8 = 0,
  248. IEEE80211_RADIOTAP_HE_DATA5_GI_1_6 = 1,
  249. IEEE80211_RADIOTAP_HE_DATA5_GI_3_2 = 2,
  250. IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE = 0x00c0,
  251. IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE_UNKNOWN = 0,
  252. IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE_1X = 1,
  253. IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE_2X = 2,
  254. IEEE80211_RADIOTAP_HE_DATA5_LTF_SIZE_4X = 3,
  255. IEEE80211_RADIOTAP_HE_DATA5_NUM_LTF_SYMS = 0x0700,
  256. IEEE80211_RADIOTAP_HE_DATA5_PRE_FEC_PAD = 0x3000,
  257. IEEE80211_RADIOTAP_HE_DATA5_TXBF = 0x4000,
  258. IEEE80211_RADIOTAP_HE_DATA5_PE_DISAMBIG = 0x8000,
  259. IEEE80211_RADIOTAP_HE_DATA6_NSTS = 0x000f,
  260. IEEE80211_RADIOTAP_HE_DATA6_DOPPLER = 0x0010,
  261. IEEE80211_RADIOTAP_HE_DATA6_TXOP = 0x7f00,
  262. IEEE80211_RADIOTAP_HE_DATA6_MIDAMBLE_PDCTY = 0x8000,
  263. };
  264. struct ieee80211_radiotap_he_mu {
  265. __le16 flags1, flags2;
  266. u8 ru_ch1[4];
  267. u8 ru_ch2[4];
  268. };
  269. enum ieee80211_radiotap_he_mu_bits {
  270. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_MCS = 0x000f,
  271. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_MCS_KNOWN = 0x0010,
  272. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_DCM = 0x0020,
  273. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_DCM_KNOWN = 0x0040,
  274. IEEE80211_RADIOTAP_HE_MU_FLAGS1_CH2_CTR_26T_RU_KNOWN = 0x0080,
  275. IEEE80211_RADIOTAP_HE_MU_FLAGS1_CH1_RU_KNOWN = 0x0100,
  276. IEEE80211_RADIOTAP_HE_MU_FLAGS1_CH2_RU_KNOWN = 0x0200,
  277. IEEE80211_RADIOTAP_HE_MU_FLAGS1_CH1_CTR_26T_RU_KNOWN = 0x1000,
  278. IEEE80211_RADIOTAP_HE_MU_FLAGS1_CH1_CTR_26T_RU = 0x2000,
  279. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_COMP_KNOWN = 0x4000,
  280. IEEE80211_RADIOTAP_HE_MU_FLAGS1_SIG_B_SYMS_USERS_KNOWN = 0x8000,
  281. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW = 0x0003,
  282. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW_20MHZ = 0x0000,
  283. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW_40MHZ = 0x0001,
  284. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW_80MHZ = 0x0002,
  285. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW_160MHZ = 0x0003,
  286. IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW_KNOWN = 0x0004,
  287. IEEE80211_RADIOTAP_HE_MU_FLAGS2_SIG_B_COMP = 0x0008,
  288. IEEE80211_RADIOTAP_HE_MU_FLAGS2_SIG_B_SYMS_USERS = 0x00f0,
  289. IEEE80211_RADIOTAP_HE_MU_FLAGS2_PUNC_FROM_SIG_A_BW = 0x0300,
  290. IEEE80211_RADIOTAP_HE_MU_FLAGS2_PUNC_FROM_SIG_A_BW_KNOWN= 0x0400,
  291. IEEE80211_RADIOTAP_HE_MU_FLAGS2_CH2_CTR_26T_RU = 0x0800,
  292. };
  293. /**
  294. * ieee80211_get_radiotap_len - get radiotap header length
  295. */
  296. static inline u16 ieee80211_get_radiotap_len(const char *data)
  297. {
  298. struct ieee80211_radiotap_header *hdr = (void *)data;
  299. return get_unaligned_le16(&hdr->it_len);
  300. }
  301. #endif /* __RADIOTAP_H */