Fix registration issue in the devfs rc script.
[dragonfly.git] / sys / netproto / 802_11 / ieee80211_ioctl.h
blobce63d5bc3579de769cd5dc9221ea2fb34af13c7e
1 /*
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
4 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
17 * Alternatively, this software may be distributed under the terms of the
18 * GNU General Public License ("GPL") version 2 as published by the Free
19 * Software Foundation.
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
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.
32 * $FreeBSD: src/sys/net80211/ieee80211_ioctl.h,v 1.10.2.7 2006/09/02 17:09:26 sam Exp $
33 * $DragonFly: src/sys/netproto/802_11/ieee80211_ioctl.h,v 1.8 2008/01/19 07:34:13 sephe Exp $
35 #ifndef _NET80211_IEEE80211_IOCTL_H_
36 #define _NET80211_IEEE80211_IOCTL_H_
38 #include <sys/ioccom.h>
41 * IEEE 802.11 ioctls.
43 #include <netproto/802_11/_ieee80211.h>
44 #include <netproto/802_11/ieee80211.h>
45 #include <netproto/802_11/ieee80211_crypto.h>
48 * Per/node (station) statistics.
50 struct ieee80211_nodestats {
51 uint32_t ns_rx_data; /* rx data frames */
52 uint32_t ns_rx_mgmt; /* rx management frames */
53 uint32_t ns_rx_ctrl; /* rx control frames */
54 uint32_t ns_rx_ucast; /* rx unicast frames */
55 uint32_t ns_rx_mcast; /* rx multi/broadcast frames */
56 uint64_t ns_rx_bytes; /* rx data count (bytes) */
57 uint64_t ns_rx_beacons; /* rx beacon frames */
58 uint32_t ns_rx_proberesp; /* rx probe response frames */
60 uint32_t ns_rx_dup; /* rx discard 'cuz dup */
61 uint32_t ns_rx_noprivacy; /* rx w/ wep but privacy off */
62 uint32_t ns_rx_wepfail; /* rx wep processing failed */
63 uint32_t ns_rx_demicfail; /* rx demic failed */
64 uint32_t ns_rx_decap; /* rx decapsulation failed */
65 uint32_t ns_rx_defrag; /* rx defragmentation failed */
66 uint32_t ns_rx_disassoc; /* rx disassociation */
67 uint32_t ns_rx_deauth; /* rx deauthentication */
68 uint32_t ns_rx_decryptcrc; /* rx decrypt failed on crc */
69 uint32_t ns_rx_unauth; /* rx on unauthorized port */
70 uint32_t ns_rx_unencrypted; /* rx unecrypted w/ privacy */
72 uint32_t ns_tx_data; /* tx data frames */
73 uint32_t ns_tx_mgmt; /* tx management frames */
74 uint32_t ns_tx_ucast; /* tx unicast frames */
75 uint32_t ns_tx_mcast; /* tx multi/broadcast frames */
76 uint64_t ns_tx_bytes; /* tx data count (bytes) */
77 uint32_t ns_tx_probereq; /* tx probe request frames */
79 uint32_t ns_tx_novlantag; /* tx discard 'cuz no tag */
80 uint32_t ns_tx_vlanmismatch; /* tx discard 'cuz bad tag */
82 uint32_t ns_ps_discard; /* ps discard 'cuz of age */
84 /* MIB-related state */
85 uint32_t ns_tx_assoc; /* [re]associations */
86 uint32_t ns_tx_assoc_fail; /* [re]association failures */
87 uint32_t ns_tx_auth; /* [re]authentications */
88 uint32_t ns_tx_auth_fail; /* [re]authentication failures*/
89 uint32_t ns_tx_deauth; /* deauthentications */
90 uint32_t ns_tx_deauth_code; /* last deauth reason */
91 uint32_t ns_tx_disassoc; /* disassociations */
92 uint32_t ns_tx_disassoc_code; /* last disassociation reason */
96 * Summary statistics.
98 struct ieee80211_stats {
99 uint32_t is_rx_badversion; /* rx frame with bad version */
100 uint32_t is_rx_tooshort; /* rx frame too short */
101 uint32_t is_rx_wrongbss; /* rx from wrong bssid */
102 uint32_t is_rx_dup; /* rx discard 'cuz dup */
103 uint32_t is_rx_wrongdir; /* rx w/ wrong direction */
104 uint32_t is_rx_mcastecho; /* rx discard 'cuz mcast echo */
105 uint32_t is_rx_notassoc; /* rx discard 'cuz sta !assoc */
106 uint32_t is_rx_noprivacy; /* rx w/ wep but privacy off */
107 uint32_t is_rx_unencrypted; /* rx w/o wep and privacy on */
108 uint32_t is_rx_wepfail; /* rx wep processing failed */
109 uint32_t is_rx_decap; /* rx decapsulation failed */
110 uint32_t is_rx_mgtdiscard; /* rx discard mgt frames */
111 uint32_t is_rx_ctl; /* rx discard ctrl frames */
112 uint32_t is_rx_beacon; /* rx beacon frames */
113 uint32_t is_rx_rstoobig; /* rx rate set truncated */
114 uint32_t is_rx_elem_missing; /* rx required element missing*/
115 uint32_t is_rx_elem_toobig; /* rx element too big */
116 uint32_t is_rx_elem_toosmall; /* rx element too small */
117 uint32_t is_rx_elem_unknown; /* rx element unknown */
118 uint32_t is_rx_badchan; /* rx frame w/ invalid chan */
119 uint32_t is_rx_chanmismatch; /* rx frame chan mismatch */
120 uint32_t is_rx_nodealloc; /* rx frame dropped */
121 uint32_t is_rx_ssidmismatch; /* rx frame ssid mismatch */
122 uint32_t is_rx_auth_unsupported; /* rx w/ unsupported auth alg */
123 uint32_t is_rx_auth_fail; /* rx sta auth failure */
124 uint32_t is_rx_auth_countermeasures;/* rx auth discard 'cuz CM */
125 uint32_t is_rx_assoc_bss; /* rx assoc from wrong bssid */
126 uint32_t is_rx_assoc_notauth; /* rx assoc w/o auth */
127 uint32_t is_rx_assoc_capmismatch;/* rx assoc w/ cap mismatch */
128 uint32_t is_rx_assoc_norate; /* rx assoc w/ no rate match */
129 uint32_t is_rx_assoc_badwpaie; /* rx assoc w/ bad WPA IE */
130 uint32_t is_rx_deauth; /* rx deauthentication */
131 uint32_t is_rx_disassoc; /* rx disassociation */
132 uint32_t is_rx_badsubtype; /* rx frame w/ unknown subtype*/
133 uint32_t is_rx_nobuf; /* rx failed for lack of buf */
134 uint32_t is_rx_decryptcrc; /* rx decrypt failed on crc */
135 uint32_t is_rx_ahdemo_mgt; /* rx discard ahdemo mgt frame*/
136 uint32_t is_rx_bad_auth; /* rx bad auth request */
137 uint32_t is_rx_unauth; /* rx on unauthorized port */
138 uint32_t is_rx_badkeyid; /* rx w/ incorrect keyid */
139 uint32_t is_rx_ccmpreplay; /* rx seq# violation (CCMP) */
140 uint32_t is_rx_ccmpformat; /* rx format bad (CCMP) */
141 uint32_t is_rx_ccmpmic; /* rx MIC check failed (CCMP) */
142 uint32_t is_rx_tkipreplay; /* rx seq# violation (TKIP) */
143 uint32_t is_rx_tkipformat; /* rx format bad (TKIP) */
144 uint32_t is_rx_tkipmic; /* rx MIC check failed (TKIP) */
145 uint32_t is_rx_tkipicv; /* rx ICV check failed (TKIP) */
146 uint32_t is_rx_badcipher; /* rx failed 'cuz key type */
147 uint32_t is_rx_nocipherctx; /* rx failed 'cuz key !setup */
148 uint32_t is_rx_acl; /* rx discard 'cuz acl policy */
149 uint32_t is_tx_nobuf; /* tx failed for lack of buf */
150 uint32_t is_tx_nonode; /* tx failed for no node */
151 uint32_t is_tx_unknownmgt; /* tx of unknown mgt frame */
152 uint32_t is_tx_badcipher; /* tx failed 'cuz key type */
153 uint32_t is_tx_nodefkey; /* tx failed 'cuz no defkey */
154 uint32_t is_tx_noheadroom; /* tx failed 'cuz no space */
155 uint32_t is_tx_fragframes; /* tx frames fragmented */
156 uint32_t is_tx_frags; /* tx fragments created */
157 uint32_t is_scan_active; /* active scans started */
158 uint32_t is_scan_passive; /* passive scans started */
159 uint32_t is_node_timeout; /* nodes timed out inactivity */
160 uint32_t is_crypto_nomem; /* no memory for crypto ctx */
161 uint32_t is_crypto_tkip; /* tkip crypto done in s/w */
162 uint32_t is_crypto_tkipenmic; /* tkip en-MIC done in s/w */
163 uint32_t is_crypto_tkipdemic; /* tkip de-MIC done in s/w */
164 uint32_t is_crypto_tkipcm; /* tkip counter measures */
165 uint32_t is_crypto_ccmp; /* ccmp crypto done in s/w */
166 uint32_t is_crypto_wep; /* wep crypto done in s/w */
167 uint32_t is_crypto_setkey_cipher;/* cipher rejected key */
168 uint32_t is_crypto_setkey_nokey; /* no key index for setkey */
169 uint32_t is_crypto_delkey; /* driver key delete failed */
170 uint32_t is_crypto_badcipher; /* unknown cipher */
171 uint32_t is_crypto_nocipher; /* cipher not available */
172 uint32_t is_crypto_attachfail; /* cipher attach failed */
173 uint32_t is_crypto_swfallback; /* cipher fallback to s/w */
174 uint32_t is_crypto_keyfail; /* driver key alloc failed */
175 uint32_t is_crypto_enmicfail; /* en-MIC failed */
176 uint32_t is_ibss_capmismatch; /* merge failed-cap mismatch */
177 uint32_t is_ibss_norate; /* merge failed-rate mismatch */
178 uint32_t is_ps_unassoc; /* ps-poll for unassoc. sta */
179 uint32_t is_ps_badaid; /* ps-poll w/ incorrect aid */
180 uint32_t is_ps_qempty; /* ps-poll w/ nothing to send */
181 uint32_t is_ff_badhdr; /* fast frame rx'd w/ bad hdr */
182 uint32_t is_ff_tooshort; /* fast frame rx decap error */
183 uint32_t is_ff_split; /* fast frame rx split error */
184 uint32_t is_ff_decap; /* fast frames decap'd */
185 uint32_t is_ff_encap; /* fast frames encap'd for tx */
186 uint32_t is_rx_badbintval; /* rx frame w/ bogus bintval */
187 uint32_t is_rx_demicfail; /* rx demic failed */
188 uint32_t is_rx_defrag; /* rx defragmentation failed */
189 uint32_t is_rx_mgmt; /* rx management frames */
190 uint32_t is_spare[6];
194 * Max size of optional information elements. We artificially
195 * constrain this; it's limited only by the max frame size (and
196 * the max parameter size of the wireless extensions).
198 #define IEEE80211_MAX_OPT_IE 256
201 * WPA/RSN get/set key request. Specify the key/cipher
202 * type and whether the key is to be used for sending and/or
203 * receiving. The key index should be set only when working
204 * with global keys (use IEEE80211_KEYIX_NONE for ``no index'').
205 * Otherwise a unicast/pairwise key is specified by the bssid
206 * (on a station) or mac address (on an ap). They key length
207 * must include any MIC key data; otherwise it should be no
208 more than IEEE80211_KEYBUF_SIZE.
210 struct ieee80211req_key {
211 uint8_t ik_type; /* key/cipher type */
212 uint8_t ik_pad;
213 uint16_t ik_keyix; /* key index */
214 uint8_t ik_keylen; /* key length in bytes */
215 uint8_t ik_flags;
216 /* NB: IEEE80211_KEY_XMIT and IEEE80211_KEY_RECV defined elsewhere */
217 #define IEEE80211_KEY_DEFAULT 0x80 /* default xmit key */
218 uint8_t ik_macaddr[IEEE80211_ADDR_LEN];
219 uint64_t ik_keyrsc; /* key receive sequence counter */
220 uint64_t ik_keytsc; /* key transmit sequence counter */
221 uint8_t ik_keydata[IEEE80211_KEYBUF_SIZE+IEEE80211_MICBUF_SIZE];
225 * Delete a key either by index or address. Set the index
226 * to IEEE80211_KEYIX_NONE when deleting a unicast key.
228 struct ieee80211req_del_key {
229 uint8_t idk_keyix; /* key index */
230 uint8_t idk_macaddr[IEEE80211_ADDR_LEN];
234 * MLME state manipulation request. IEEE80211_MLME_ASSOC
235 * only makes sense when operating as a station. The other
236 * requests can be used when operating as a station or an
237 * ap (to effect a station).
239 struct ieee80211req_mlme {
240 uint8_t im_op; /* operation to perform */
241 #define IEEE80211_MLME_ASSOC 1 /* associate station */
242 #define IEEE80211_MLME_DISASSOC 2 /* disassociate station */
243 #define IEEE80211_MLME_DEAUTH 3 /* deauthenticate station */
244 #define IEEE80211_MLME_AUTHORIZE 4 /* authorize station */
245 #define IEEE80211_MLME_UNAUTHORIZE 5 /* unauthorize station */
246 uint8_t im_ssid_len; /* length of optional ssid */
247 uint16_t im_reason; /* 802.11 reason code */
248 uint8_t im_macaddr[IEEE80211_ADDR_LEN];
249 uint8_t im_ssid[IEEE80211_NWID_LEN];
253 * MAC ACL operations.
255 enum {
256 IEEE80211_MACCMD_POLICY_OPEN = 0, /* set policy: no ACL's */
257 IEEE80211_MACCMD_POLICY_ALLOW = 1, /* set policy: allow traffic */
258 IEEE80211_MACCMD_POLICY_DENY = 2, /* set policy: deny traffic */
259 IEEE80211_MACCMD_FLUSH = 3, /* flush ACL database */
260 IEEE80211_MACCMD_DETACH = 4, /* detach ACL policy */
261 IEEE80211_MACCMD_POLICY = 5, /* get ACL policy */
262 IEEE80211_MACCMD_LIST = 6, /* get ACL database */
265 struct ieee80211req_maclist {
266 uint8_t ml_macaddr[IEEE80211_ADDR_LEN];
270 * Set the active channel list. Note this list is
271 * intersected with the available channel list in
272 * calculating the set of channels actually used in
273 * scanning.
275 struct ieee80211req_chanlist {
276 uint8_t ic_channels[IEEE80211_CHAN_BYTES];
280 * Get the active channel list info.
282 struct ieee80211req_chaninfo {
283 u_int ic_nchans;
284 struct ieee80211_channel ic_chans[IEEE80211_CHAN_MAX];
288 * Retrieve the WPA/RSN information element for an associated station.
290 struct ieee80211req_wpaie {
291 uint8_t wpa_macaddr[IEEE80211_ADDR_LEN];
292 uint8_t wpa_ie[IEEE80211_MAX_OPT_IE];
296 * Retrieve per-node statistics.
298 struct ieee80211req_sta_stats {
299 union {
300 /* NB: explicitly force 64-bit alignment */
301 uint8_t macaddr[IEEE80211_ADDR_LEN];
302 uint64_t pad;
303 } is_u;
304 struct ieee80211_nodestats is_stats;
308 * Station information block; the mac address is used
309 * to retrieve other data like stats, unicast key, etc.
311 struct ieee80211req_sta_info {
312 uint16_t isi_len; /* length (mult of 4) */
313 uint16_t isi_freq; /* MHz */
314 uint16_t isi_flags; /* channel flags */
315 uint16_t isi_state; /* state flags */
316 uint8_t isi_authmode; /* authentication algorithm */
317 uint8_t isi_rssi; /* receive signal strength */
318 uint8_t isi_capinfo; /* deprecated */
319 uint8_t isi_erp; /* ERP element */
320 uint8_t isi_macaddr[IEEE80211_ADDR_LEN];
321 uint8_t isi_nrates;
322 /* negotiated rates */
323 uint8_t isi_rates[IEEE80211_RATE_MAXSIZE];
324 uint8_t isi_txrate; /* index to isi_rates[] */
325 int8_t isi_noise; /* noise floor */
326 uint16_t isi_ie_len; /* IE length */
327 uint16_t isi_associd; /* assoc response */
328 uint16_t isi_txpower; /* current tx power */
329 uint16_t isi_vlan; /* vlan tag */
330 uint16_t isi_txseqs[17]; /* seq to be transmitted */
331 uint16_t isi_rxseqs[17]; /* seq previous for qos frames*/
332 uint16_t isi_inact; /* inactivity timer */
333 uint16_t isi_capinfo2; /* capabilities */
334 /* XXX frag state? */
335 /* variable length IE data */
339 * Retrieve per-station information; to retrieve all
340 * specify a mac address of ff:ff:ff:ff:ff:ff.
342 struct ieee80211req_sta_req {
343 union {
344 /* NB: explicitly force 64-bit alignment */
345 uint8_t macaddr[IEEE80211_ADDR_LEN];
346 uint64_t pad;
347 } is_u;
348 struct ieee80211req_sta_info info[1]; /* variable length */
352 * Get/set per-station tx power cap.
354 struct ieee80211req_sta_txpow {
355 uint8_t it_macaddr[IEEE80211_ADDR_LEN];
356 uint8_t it_txpow;
360 * WME parameters are set and return using i_val and i_len.
361 * i_val holds the value itself. i_len specifies the AC
362 * and, as appropriate, then high bit specifies whether the
363 * operation is to be applied to the BSS or ourself.
365 #define IEEE80211_WMEPARAM_SELF 0x0000 /* parameter applies to self */
366 #define IEEE80211_WMEPARAM_BSS 0x8000 /* parameter applies to BSS */
367 #define IEEE80211_WMEPARAM_VAL 0x7fff /* parameter value */
369 #if defined(__FreeBSD__) || defined(__DragonFly__)
371 * FreeBSD-style ioctls.
373 /* the first member must be matched with struct ifreq */
374 struct ieee80211req {
375 char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */
376 uint16_t i_type; /* req type */
377 int16_t i_val; /* Index or simple value */
378 int16_t i_len; /* Index or simple value */
379 void *i_data; /* Extra data */
381 #define SIOCS80211 _IOW('i', 234, struct ieee80211req)
382 #define SIOCG80211 _IOWR('i', 235, struct ieee80211req)
384 #define IEEE80211_IOC_SSID 1
385 #define IEEE80211_IOC_NUMSSIDS 2
386 #define IEEE80211_IOC_WEP 3
387 #define IEEE80211_WEP_NOSUP -1
388 #define IEEE80211_WEP_OFF 0
389 #define IEEE80211_WEP_ON 1
390 #define IEEE80211_WEP_MIXED 2
391 #define IEEE80211_IOC_WEPKEY 4
392 #define IEEE80211_IOC_NUMWEPKEYS 5
393 #define IEEE80211_IOC_WEPTXKEY 6
394 #define IEEE80211_IOC_AUTHMODE 7
395 #define IEEE80211_IOC_STATIONNAME 8
396 #define IEEE80211_IOC_CHANNEL 9
397 #define IEEE80211_IOC_POWERSAVE 10
398 #define IEEE80211_POWERSAVE_NOSUP -1
399 #define IEEE80211_POWERSAVE_OFF 0
400 #define IEEE80211_POWERSAVE_CAM 1
401 #define IEEE80211_POWERSAVE_PSP 2
402 #define IEEE80211_POWERSAVE_PSP_CAM 3
403 #define IEEE80211_POWERSAVE_ON IEEE80211_POWERSAVE_CAM
404 #define IEEE80211_IOC_POWERSAVESLEEP 11
405 #define IEEE80211_IOC_RTSTHRESHOLD 12
406 #define IEEE80211_IOC_PROTMODE 13
407 #define IEEE80211_PROTMODE_OFF 0
408 #define IEEE80211_PROTMODE_CTS 1
409 #define IEEE80211_PROTMODE_RTSCTS 2
410 #define IEEE80211_IOC_TXPOWER 14 /* global tx power limit */
411 #define IEEE80211_IOC_BSSID 15
412 #define IEEE80211_IOC_ROAMING 16 /* roaming mode */
413 #define IEEE80211_IOC_PRIVACY 17 /* privacy invoked */
414 #define IEEE80211_IOC_DROPUNENCRYPTED 18 /* discard unencrypted frames */
415 #define IEEE80211_IOC_WPAKEY 19
416 #define IEEE80211_IOC_DELKEY 20
417 #define IEEE80211_IOC_MLME 21
418 #define IEEE80211_IOC_OPTIE 22 /* optional info. element */
419 #define IEEE80211_IOC_SCAN_REQ 23
420 #define IEEE80211_IOC_SCAN_RESULTS 24
421 #define IEEE80211_IOC_COUNTERMEASURES 25 /* WPA/TKIP countermeasures */
422 #define IEEE80211_IOC_WPA 26 /* WPA mode (0,1,2) */
423 #define IEEE80211_IOC_CHANLIST 27 /* channel list */
424 #define IEEE80211_IOC_WME 28 /* WME mode (on, off) */
425 #define IEEE80211_IOC_HIDESSID 29 /* hide SSID mode (on, off) */
426 #define IEEE80211_IOC_APBRIDGE 30 /* AP inter-sta bridging */
427 #define IEEE80211_IOC_MCASTCIPHER 31 /* multicast/default cipher */
428 #define IEEE80211_IOC_MCASTKEYLEN 32 /* multicast key length */
429 #define IEEE80211_IOC_UCASTCIPHERS 33 /* unicast cipher suites */
430 #define IEEE80211_IOC_UCASTCIPHER 34 /* unicast cipher */
431 #define IEEE80211_IOC_UCASTKEYLEN 35 /* unicast key length */
432 #define IEEE80211_IOC_DRIVER_CAPS 36 /* driver capabilities */
433 #define IEEE80211_IOC_KEYMGTALGS 37 /* key management algorithms */
434 #define IEEE80211_IOC_RSNCAPS 38 /* RSN capabilities */
435 #define IEEE80211_IOC_WPAIE 39 /* WPA information element */
436 #define IEEE80211_IOC_STA_STATS 40 /* per-station statistics */
437 #define IEEE80211_IOC_MACCMD 41 /* MAC ACL operation */
438 #define IEEE80211_IOC_CHANINFO 42 /* channel info list */
439 #define IEEE80211_IOC_TXPOWMAX 43 /* max tx power for channel */
440 #define IEEE80211_IOC_STA_TXPOW 44 /* per-station tx power limit */
441 #define IEEE80211_IOC_WME_CWMIN 46 /* WME: ECWmin */
442 #define IEEE80211_IOC_WME_CWMAX 47 /* WME: ECWmax */
443 #define IEEE80211_IOC_WME_AIFS 48 /* WME: AIFSN */
444 #define IEEE80211_IOC_WME_TXOPLIMIT 49 /* WME: txops limit */
445 #define IEEE80211_IOC_WME_ACM 50 /* WME: ACM (bss only) */
446 #define IEEE80211_IOC_WME_ACKPOLICY 51 /* WME: ACK policy (!bss only)*/
447 #define IEEE80211_IOC_DTIM_PERIOD 52 /* DTIM period (beacons) */
448 #define IEEE80211_IOC_BEACON_INTERVAL 53 /* beacon interval (ms) */
449 #define IEEE80211_IOC_ADDMAC 54 /* add sta to MAC ACL table */
450 #define IEEE80211_IOC_DELMAC 55 /* del sta from MAC ACL table */
451 #define IEEE80211_IOC_PUREG 56 /* pure 11g (no 11b stations) */
452 #define IEEE80211_IOC_MCAST_RATE 72 /* tx rate for mcast frames */
453 #define IEEE80211_IOC_FRAGTHRESHOLD 73 /* tx fragmentation threshold */
454 #define IEEE80211_IOC_BURST 75 /* packet bursting */
455 #define IEEE80211_IOC_BMISSTHRESHOLD 77 /* beacon miss threshold */
456 #define IEEE80211_IOC_STA_INFO 78 /* station/neighbor info */
457 #define IEEE80211_IOC_RATECTL 255
460 * Scan result data returned for IEEE80211_IOC_SCAN_RESULTS.
462 struct ieee80211req_scan_result {
463 uint16_t isr_len; /* length (mult of 4) */
464 uint16_t isr_freq; /* MHz */
465 uint16_t isr_flags; /* channel flags */
466 uint8_t isr_noise;
467 uint8_t isr_rssi;
468 uint8_t isr_intval; /* beacon interval */
469 uint8_t isr_capinfo; /* capabilities (deprecated) */
470 uint8_t isr_erp; /* ERP element */
471 uint8_t isr_bssid[IEEE80211_ADDR_LEN];
472 uint8_t isr_nrates;
473 uint8_t isr_rates[IEEE80211_RATE_MAXSIZE];
474 uint8_t isr_ssid_len; /* SSID length */
475 uint8_t isr_ie_len; /* IE length */
476 uint16_t isr_capinfo2; /* capabilities */
477 uint8_t isr_pad[3];
478 /* variable length SSID followed by IE data */
481 #define SIOCG80211STATS _IOWR('i', 236, struct ifreq)
482 #endif /* __FreeBSD__ || __DragonFly__ */
484 #endif /* _NET80211_IEEE80211_IOCTL_H_ */