xref: /freebsd-src/sys/compat/linuxkpi/common/include/net/ieee80211_radiotap.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1b5d37e5aSBjoern A. Zeeb /*-
2b5d37e5aSBjoern A. Zeeb  * Copyright (c) 2020-2021 The FreeBSD Foundation
3b5d37e5aSBjoern A. Zeeb  *
4b5d37e5aSBjoern A. Zeeb  * This software was developed by Björn Zeeb under sponsorship from
5b5d37e5aSBjoern A. Zeeb  * the FreeBSD Foundation.
6b5d37e5aSBjoern A. Zeeb  *
7b5d37e5aSBjoern A. Zeeb  * Redistribution and use in source and binary forms, with or without
8b5d37e5aSBjoern A. Zeeb  * modification, are permitted provided that the following conditions
9b5d37e5aSBjoern A. Zeeb  * are met:
10b5d37e5aSBjoern A. Zeeb  * 1. Redistributions of source code must retain the above copyright
11b5d37e5aSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer.
12b5d37e5aSBjoern A. Zeeb  * 2. Redistributions in binary form must reproduce the above copyright
13b5d37e5aSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer in the
14b5d37e5aSBjoern A. Zeeb  *    documentation and/or other materials provided with the distribution.
15b5d37e5aSBjoern A. Zeeb  *
16b5d37e5aSBjoern A. Zeeb  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17b5d37e5aSBjoern A. Zeeb  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18b5d37e5aSBjoern A. Zeeb  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19b5d37e5aSBjoern A. Zeeb  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20b5d37e5aSBjoern A. Zeeb  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21b5d37e5aSBjoern A. Zeeb  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22b5d37e5aSBjoern A. Zeeb  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23b5d37e5aSBjoern A. Zeeb  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24b5d37e5aSBjoern A. Zeeb  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25b5d37e5aSBjoern A. Zeeb  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26b5d37e5aSBjoern A. Zeeb  * SUCH DAMAGE.
27b5d37e5aSBjoern A. Zeeb  */
28b5d37e5aSBjoern A. Zeeb 
29*307f78f3SVladimir Kondratyev #ifndef	_LINUXKPI_NET_IEEE80211_RADIOTAP_H
30*307f78f3SVladimir Kondratyev #define	_LINUXKPI_NET_IEEE80211_RADIOTAP_H
31b5d37e5aSBjoern A. Zeeb 
32b5d37e5aSBjoern A. Zeeb /* Any possibly duplicate content is only maintained in one place now. */
33b5d37e5aSBjoern A. Zeeb #include <net80211/ieee80211_radiotap.h>
34b5d37e5aSBjoern A. Zeeb 
35b5d37e5aSBjoern A. Zeeb /*
36b5d37e5aSBjoern A. Zeeb  * This structure deviates from
37b5d37e5aSBjoern A. Zeeb  * 'https://www.radiotap.org/fields/Vendor%20Namespace.html'
38b5d37e5aSBjoern A. Zeeb  * and the net80211::ieee80211_radiotap_vendor_header version.
39b5d37e5aSBjoern A. Zeeb  * We consider it LinuxKPI specific so it stays here.
40b5d37e5aSBjoern A. Zeeb  */
41b5d37e5aSBjoern A. Zeeb struct ieee80211_vendor_radiotap {
42b5d37e5aSBjoern A. Zeeb 	u32		present;
43b5d37e5aSBjoern A. Zeeb 	u8		align;
44b5d37e5aSBjoern A. Zeeb 	u8		oui[3];
45b5d37e5aSBjoern A. Zeeb 	u8		subns;
46b5d37e5aSBjoern A. Zeeb 	u8		pad;
47b5d37e5aSBjoern A. Zeeb 	__le16		len;
48b5d37e5aSBjoern A. Zeeb 	u8		data[0];
49b5d37e5aSBjoern A. Zeeb };
50b5d37e5aSBjoern A. Zeeb 
51*307f78f3SVladimir Kondratyev #endif	/* _LINUXKPI_NET_IEEE80211_RADIOTAP_H */
52