Deleted Added
full compact
ieee80211_ioctl.h (120480) ieee80211_ioctl.h (121180)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/net80211/ieee80211_ioctl.h 120480 2003-09-26 16:48:39Z sam $
32 * $FreeBSD: head/sys/net80211/ieee80211_ioctl.h 121180 2003-10-17 23:15:30Z sam $
33 */
34#ifndef _NET80211_IEEE80211_IOCTL_H_
35#define _NET80211_IEEE80211_IOCTL_H_
36
37/*
38 * IEEE 802.11 ioctls.
39 */
40
33 */
34#ifndef _NET80211_IEEE80211_IOCTL_H_
35#define _NET80211_IEEE80211_IOCTL_H_
36
37/*
38 * IEEE 802.11 ioctls.
39 */
40
41struct ieee80211_stats {
42 u_int32_t is_rx_badversion; /* rx frame with bad version */
43 u_int32_t is_rx_tooshort; /* rx frame too short */
44 u_int32_t is_rx_wrongbss; /* rx from wrong bssid */
45 u_int32_t is_rx_dup; /* rx discard 'cuz dup */
46 u_int32_t is_rx_wrongdir; /* rx w/ wrong direction */
47 u_int32_t is_rx_mcastecho; /* rx discard 'cuz mcast echo */
48 u_int32_t is_rx_notassoc; /* rx discard 'cuz sta !assoc */
49 u_int32_t is_rx_nowep; /* rx w/ wep but wep !config */
50 u_int32_t is_rx_wepfail; /* rx wep processing failed */
51 u_int32_t is_rx_decap; /* rx decapsulation failed */
52 u_int32_t is_rx_mgtdiscard; /* rx discard mgt frames */
53 u_int32_t is_rx_ctl; /* rx discard ctrl frames */
54 u_int32_t is_rx_rstoobig; /* rx rate set truncated */
55 u_int32_t is_rx_elem_missing; /* rx required element missing*/
56 u_int32_t is_rx_elem_toobig; /* rx element too big */
57 u_int32_t is_rx_elem_toosmall; /* rx element too small */
58 u_int32_t is_rx_elem_unknown; /* rx element unknown */
59 u_int32_t is_rx_badchan; /* rx frame w/ invalid chan */
60 u_int32_t is_rx_chanmismatch; /* rx frame chan mismatch */
61 u_int32_t is_rx_nodealloc; /* rx frame dropped */
62 u_int32_t is_rx_ssidmismatch; /* rx frame ssid mismatch */
63 u_int32_t is_rx_auth_unsupported; /* rx w/ unsupported auth alg */
64 u_int32_t is_rx_auth_fail; /* rx sta auth failure */
65 u_int32_t is_rx_assoc_bss; /* rx assoc from wrong bssid */
66 u_int32_t is_rx_assoc_notauth; /* rx assoc w/o auth */
67 u_int32_t is_rx_assoc_capmismatch;/* rx assoc w/ cap mismatch */
68 u_int32_t is_rx_assoc_norate; /* rx assoc w/ no rate match */
69 u_int32_t is_rx_deauth; /* rx deauthentication */
70 u_int32_t is_rx_disassoc; /* rx disassociation */
71 u_int32_t is_rx_badsubtype; /* rx frame w/ unknown subtype*/
72 u_int32_t is_rx_nombuf; /* rx failed for lack of mbuf */
73 u_int32_t is_rx_decryptcrc; /* rx decrypt failed on crc */
74 u_int32_t is_rx_ahdemo_mgt; /* rx discard ahdemo mgt frame*/
75 u_int32_t is_rx_bad_auth; /* rx bad auth request */
76 u_int32_t is_tx_nombuf; /* tx failed for lack of mbuf */
77 u_int32_t is_tx_nonode; /* tx failed for no node */
78 u_int32_t is_tx_unknownmgt; /* tx of unknown mgt frame */
79 u_int32_t is_scan_active; /* active scans started */
80 u_int32_t is_scan_passive; /* passive scans started */
81 u_int32_t is_node_timeout; /* nodes timed out inactivity */
82 u_int32_t is_crypto_nomem; /* no memory for crypto ctx */
83};
84
41#ifdef __FreeBSD__
42/*
43 * FreeBSD-style ioctls.
44 */
45/* the first member must be matched with struct ifreq */
46struct ieee80211req {
47 char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */
48 u_int16_t i_type; /* req type */

--- 25 unchanged lines hidden (view full) ---

74#define IEEE80211_POWERSAVE_PSP_CAM 3
75#define IEEE80211_POWERSAVE_ON IEEE80211_POWERSAVE_CAM
76#define IEEE80211_IOC_POWERSAVESLEEP 11
77#define IEEE80211_IOC_RTSTHRESHOLD 12
78
79#ifndef IEEE80211_CHAN_ANY
80#define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */
81#endif
85#ifdef __FreeBSD__
86/*
87 * FreeBSD-style ioctls.
88 */
89/* the first member must be matched with struct ifreq */
90struct ieee80211req {
91 char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */
92 u_int16_t i_type; /* req type */

--- 25 unchanged lines hidden (view full) ---

118#define IEEE80211_POWERSAVE_PSP_CAM 3
119#define IEEE80211_POWERSAVE_ON IEEE80211_POWERSAVE_CAM
120#define IEEE80211_IOC_POWERSAVESLEEP 11
121#define IEEE80211_IOC_RTSTHRESHOLD 12
122
123#ifndef IEEE80211_CHAN_ANY
124#define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */
125#endif
126
127#define SIOCG80211STATS _IOWR('i', 236, struct ifreq)
82#endif /* __FreeBSD__ */
83
84#endif /* _NET80211_IEEE80211_IOCTL_H_ */
128#endif /* __FreeBSD__ */
129
130#endif /* _NET80211_IEEE80211_IOCTL_H_ */