1/*-
2 * Copyright (c) 2003-2005 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 10 unchanged lines hidden (view full) ---
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 160690 2006-07-26 03:15:16Z sam $
28 */
29#ifndef _NET80211_IEEE80211_FREEBSD_H_
30#define _NET80211_IEEE80211_FREEBSD_H_
31
32/*
33 * Beacon locking definitions.
34 */
35typedef struct mtx ieee80211_beacon_lock_t;
--- 184 unchanged lines hidden (view full) ---
220#define RTM_IEEE80211_DISASSOC 102 /* station disassociate (bss mode) */
221#define RTM_IEEE80211_JOIN 103 /* station join (ap mode) */
222#define RTM_IEEE80211_LEAVE 104 /* station leave (ap mode) */
223#define RTM_IEEE80211_SCAN 105 /* scan complete, results available */
224#define RTM_IEEE80211_REPLAY 106 /* sequence counter replay detected */
225#define RTM_IEEE80211_MICHAEL 107 /* Michael MIC failure detected */
226#define RTM_IEEE80211_REJOIN 108 /* station re-associate (ap mode) */
227
228/*
229 * Structure prepended to raw packets sent through the bpf
230 * interface when set to DLT_IEEE802_11_RADIO. This allows
231 * user applications to specify pretty much everything in
232 * an Atheros tx descriptor. XXX need to generalize.
233 *
234 * XXX cannot be more than 14 bytes as it is copied to a sockaddr's
235 * XXX sa_data area.
236 */
237struct ieee80211_bpf_params {
238 uint8_t ibp_vers; /* version */
239#define IEEE80211_BPF_VERSION 0
240 uint8_t ibp_len; /* header length in bytes */
241 uint8_t ibp_flags;
242#define IEEE80211_BPF_SHORTPRE 0x01 /* tx with short preamble */
243#define IEEE80211_BPF_NOACK 0x02 /* tx with no ack */
244#define IEEE80211_BPF_CRYPTO 0x04 /* tx with h/w encryption */
245#define IEEE80211_BPF_FCS 0x10 /* frame incldues FCS */
246#define IEEE80211_BPF_DATAPAD 0x20 /* frame includes data padding */
247#define IEEE80211_BPF_RTS 0x40 /* tx with RTS/CTS */
248#define IEEE80211_BPF_CTS 0x80 /* tx with CTS only */
249 uint8_t ibp_pri; /* WME/WMM AC+tx antenna */
250 uint8_t ibp_try0; /* series 1 try count */
251 uint8_t ibp_rate0; /* series 1 IEEE tx rate */
252 uint8_t ibp_power; /* tx power (device units) */
253 uint8_t ibp_ctsrate; /* IEEE tx rate for CTS */
254 uint8_t ibp_try1; /* series 2 try count */
255 uint8_t ibp_rate1; /* series 2 IEEE tx rate */
256 uint8_t ibp_try2; /* series 3 try count */
257 uint8_t ibp_rate2; /* series 3 IEEE tx rate */
258 uint8_t ibp_try3; /* series 4 try count */
259 uint8_t ibp_rate3; /* series 4 IEEE tx rate */
260};
261#endif /* _NET80211_IEEE80211_FREEBSD_H_ */
2 * Copyright (c) 2003-2005 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 10 unchanged lines hidden (view full) ---
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 160690 2006-07-26 03:15:16Z sam $
28 */
29#ifndef _NET80211_IEEE80211_FREEBSD_H_
30#define _NET80211_IEEE80211_FREEBSD_H_
31
32/*
33 * Beacon locking definitions.
34 */
35typedef struct mtx ieee80211_beacon_lock_t;
--- 184 unchanged lines hidden (view full) ---
220#define RTM_IEEE80211_DISASSOC 102 /* station disassociate (bss mode) */
221#define RTM_IEEE80211_JOIN 103 /* station join (ap mode) */
222#define RTM_IEEE80211_LEAVE 104 /* station leave (ap mode) */
223#define RTM_IEEE80211_SCAN 105 /* scan complete, results available */
224#define RTM_IEEE80211_REPLAY 106 /* sequence counter replay detected */
225#define RTM_IEEE80211_MICHAEL 107 /* Michael MIC failure detected */
226#define RTM_IEEE80211_REJOIN 108 /* station re-associate (ap mode) */
227
228/*
229 * Structure prepended to raw packets sent through the bpf
230 * interface when set to DLT_IEEE802_11_RADIO. This allows
231 * user applications to specify pretty much everything in
232 * an Atheros tx descriptor. XXX need to generalize.
233 *
234 * XXX cannot be more than 14 bytes as it is copied to a sockaddr's
235 * XXX sa_data area.
236 */
237struct ieee80211_bpf_params {
238 uint8_t ibp_vers; /* version */
239#define IEEE80211_BPF_VERSION 0
240 uint8_t ibp_len; /* header length in bytes */
241 uint8_t ibp_flags;
242#define IEEE80211_BPF_SHORTPRE 0x01 /* tx with short preamble */
243#define IEEE80211_BPF_NOACK 0x02 /* tx with no ack */
244#define IEEE80211_BPF_CRYPTO 0x04 /* tx with h/w encryption */
245#define IEEE80211_BPF_FCS 0x10 /* frame incldues FCS */
246#define IEEE80211_BPF_DATAPAD 0x20 /* frame includes data padding */
247#define IEEE80211_BPF_RTS 0x40 /* tx with RTS/CTS */
248#define IEEE80211_BPF_CTS 0x80 /* tx with CTS only */
249 uint8_t ibp_pri; /* WME/WMM AC+tx antenna */
250 uint8_t ibp_try0; /* series 1 try count */
251 uint8_t ibp_rate0; /* series 1 IEEE tx rate */
252 uint8_t ibp_power; /* tx power (device units) */
253 uint8_t ibp_ctsrate; /* IEEE tx rate for CTS */
254 uint8_t ibp_try1; /* series 2 try count */
255 uint8_t ibp_rate1; /* series 2 IEEE tx rate */
256 uint8_t ibp_try2; /* series 3 try count */
257 uint8_t ibp_rate2; /* series 3 IEEE tx rate */
258 uint8_t ibp_try3; /* series 4 try count */
259 uint8_t ibp_rate3; /* series 4 IEEE tx rate */
260};
261#endif /* _NET80211_IEEE80211_FREEBSD_H_ */