17 #include <linux/kernel.h>
18 #include <linux/export.h>
21 #include <asm/unaligned.h>
53 .align_size = rtap_namespace_sizes,
105 if (max_length < get_unaligned_le16(&radiotap_header->
it_len))
112 iterator->
_arg = (
uint8_t *)radiotap_header +
sizeof(*radiotap_header);
116 iterator->
_vns = vns;
133 if ((
unsigned long)iterator->
_arg -
166 for (i = 0; i < iterator->
_vns->n_ns; i++) {
167 if (iterator->
_vns->ns[i].oui != oui)
169 if (iterator->
_vns->ns[i].subns != subns)
261 pad = ((
unsigned long)iterator->
_arg -
262 (
unsigned long)iterator->
_rtheader) & (align - 1);
270 if ((
unsigned long)iterator->
_arg + size -
275 oui = (*iterator->
_arg << 16) |
276 (*(iterator->
_arg + 1) << 8) |
277 *(iterator->
_arg + 2);
278 subns = *(iterator->
_arg + 3);
280 find_ns(iterator, oui, subns);
282 vnslen = get_unaligned_le16(iterator->
_arg + 4);
306 if ((
unsigned long)iterator->
_arg -