xref: /freebsd/sys/net80211/ieee80211_ioctl.h (revision c066143c088e6b7f3a0272aeb5d7889a6407ede7)
11a1e1d21SSam Leffler /*-
27535e66aSSam Leffler  * Copyright (c) 2001 Atsushi Onoe
3ae8b7333SSam Leffler  * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
41a1e1d21SSam Leffler  * All rights reserved.
51a1e1d21SSam Leffler  *
61a1e1d21SSam Leffler  * Redistribution and use in source and binary forms, with or without
71a1e1d21SSam Leffler  * modification, are permitted provided that the following conditions
81a1e1d21SSam Leffler  * are met:
91a1e1d21SSam Leffler  * 1. Redistributions of source code must retain the above copyright
101a1e1d21SSam Leffler  *    notice, this list of conditions and the following disclaimer.
111a1e1d21SSam Leffler  * 2. Redistributions in binary form must reproduce the above copyright
121a1e1d21SSam Leffler  *    notice, this list of conditions and the following disclaimer in the
131a1e1d21SSam Leffler  *    documentation and/or other materials provided with the distribution.
147535e66aSSam Leffler  *
157535e66aSSam Leffler  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
167535e66aSSam Leffler  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
177535e66aSSam Leffler  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
187535e66aSSam Leffler  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
197535e66aSSam Leffler  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
207535e66aSSam Leffler  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
217535e66aSSam Leffler  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
227535e66aSSam Leffler  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
237535e66aSSam Leffler  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
247535e66aSSam Leffler  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251a1e1d21SSam Leffler  *
261a1e1d21SSam Leffler  * $FreeBSD$
271a1e1d21SSam Leffler  */
281a1e1d21SSam Leffler #ifndef _NET80211_IEEE80211_IOCTL_H_
291a1e1d21SSam Leffler #define _NET80211_IEEE80211_IOCTL_H_
301a1e1d21SSam Leffler 
311a1e1d21SSam Leffler /*
321a1e1d21SSam Leffler  * IEEE 802.11 ioctls.
331a1e1d21SSam Leffler  */
348a1b9b6aSSam Leffler #include <net80211/_ieee80211.h>
358a1b9b6aSSam Leffler #include <net80211/ieee80211.h>
368a1b9b6aSSam Leffler #include <net80211/ieee80211_crypto.h>
371a1e1d21SSam Leffler 
388a1b9b6aSSam Leffler /*
39d1c85daeSSam Leffler  * Per/node (station) statistics.
408a1b9b6aSSam Leffler  */
418a1b9b6aSSam Leffler struct ieee80211_nodestats {
4268e8e04eSSam Leffler 	uint32_t	ns_rx_data;		/* rx data frames */
4368e8e04eSSam Leffler 	uint32_t	ns_rx_mgmt;		/* rx management frames */
4468e8e04eSSam Leffler 	uint32_t	ns_rx_ctrl;		/* rx control frames */
4568e8e04eSSam Leffler 	uint32_t	ns_rx_ucast;		/* rx unicast frames */
4668e8e04eSSam Leffler 	uint32_t	ns_rx_mcast;		/* rx multi/broadcast frames */
4768e8e04eSSam Leffler 	uint64_t	ns_rx_bytes;		/* rx data count (bytes) */
4868e8e04eSSam Leffler 	uint64_t	ns_rx_beacons;		/* rx beacon frames */
4968e8e04eSSam Leffler 	uint32_t	ns_rx_proberesp;	/* rx probe response frames */
508a1b9b6aSSam Leffler 
5168e8e04eSSam Leffler 	uint32_t	ns_rx_dup;		/* rx discard 'cuz dup */
5268e8e04eSSam Leffler 	uint32_t	ns_rx_noprivacy;	/* rx w/ wep but privacy off */
5368e8e04eSSam Leffler 	uint32_t	ns_rx_wepfail;		/* rx wep processing failed */
5468e8e04eSSam Leffler 	uint32_t	ns_rx_demicfail;	/* rx demic failed */
5568e8e04eSSam Leffler 	uint32_t	ns_rx_decap;		/* rx decapsulation failed */
5668e8e04eSSam Leffler 	uint32_t	ns_rx_defrag;		/* rx defragmentation failed */
5768e8e04eSSam Leffler 	uint32_t	ns_rx_disassoc;		/* rx disassociation */
5868e8e04eSSam Leffler 	uint32_t	ns_rx_deauth;		/* rx deauthentication */
5968e8e04eSSam Leffler 	uint32_t	ns_rx_action;		/* rx action */
6068e8e04eSSam Leffler 	uint32_t	ns_rx_decryptcrc;	/* rx decrypt failed on crc */
6168e8e04eSSam Leffler 	uint32_t	ns_rx_unauth;		/* rx on unauthorized port */
6268e8e04eSSam Leffler 	uint32_t	ns_rx_unencrypted;	/* rx unecrypted w/ privacy */
638a1b9b6aSSam Leffler 
6468e8e04eSSam Leffler 	uint32_t	ns_tx_data;		/* tx data frames */
6568e8e04eSSam Leffler 	uint32_t	ns_tx_mgmt;		/* tx management frames */
6668e8e04eSSam Leffler 	uint32_t	ns_tx_ucast;		/* tx unicast frames */
6768e8e04eSSam Leffler 	uint32_t	ns_tx_mcast;		/* tx multi/broadcast frames */
6868e8e04eSSam Leffler 	uint64_t	ns_tx_bytes;		/* tx data count (bytes) */
6968e8e04eSSam Leffler 	uint32_t	ns_tx_probereq;		/* tx probe request frames */
708a1b9b6aSSam Leffler 
7168e8e04eSSam Leffler 	uint32_t	ns_tx_novlantag;	/* tx discard 'cuz no tag */
7268e8e04eSSam Leffler 	uint32_t	ns_tx_vlanmismatch;	/* tx discard 'cuz bad tag */
738a1b9b6aSSam Leffler 
7468e8e04eSSam Leffler 	uint32_t	ns_ps_discard;		/* ps discard 'cuz of age */
758a1b9b6aSSam Leffler 
768a1b9b6aSSam Leffler 	/* MIB-related state */
7768e8e04eSSam Leffler 	uint32_t	ns_tx_assoc;		/* [re]associations */
7868e8e04eSSam Leffler 	uint32_t	ns_tx_assoc_fail;	/* [re]association failures */
7968e8e04eSSam Leffler 	uint32_t	ns_tx_auth;		/* [re]authentications */
8068e8e04eSSam Leffler 	uint32_t	ns_tx_auth_fail;	/* [re]authentication failures*/
8168e8e04eSSam Leffler 	uint32_t	ns_tx_deauth;		/* deauthentications */
8268e8e04eSSam Leffler 	uint32_t	ns_tx_deauth_code;	/* last deauth reason */
8368e8e04eSSam Leffler 	uint32_t	ns_tx_disassoc;		/* disassociations */
8468e8e04eSSam Leffler 	uint32_t	ns_tx_disassoc_code;	/* last disassociation reason */
858a1b9b6aSSam Leffler };
868a1b9b6aSSam Leffler 
878a1b9b6aSSam Leffler /*
888a1b9b6aSSam Leffler  * Summary statistics.
898a1b9b6aSSam Leffler  */
901be50176SSam Leffler struct ieee80211_stats {
9168e8e04eSSam Leffler 	uint32_t	is_rx_badversion;	/* rx frame with bad version */
9268e8e04eSSam Leffler 	uint32_t	is_rx_tooshort;		/* rx frame too short */
9368e8e04eSSam Leffler 	uint32_t	is_rx_wrongbss;		/* rx from wrong bssid */
9468e8e04eSSam Leffler 	uint32_t	is_rx_dup;		/* rx discard 'cuz dup */
9568e8e04eSSam Leffler 	uint32_t	is_rx_wrongdir;		/* rx w/ wrong direction */
9668e8e04eSSam Leffler 	uint32_t	is_rx_mcastecho;	/* rx discard 'cuz mcast echo */
9768e8e04eSSam Leffler 	uint32_t	is_rx_notassoc;		/* rx discard 'cuz sta !assoc */
9868e8e04eSSam Leffler 	uint32_t	is_rx_noprivacy;	/* rx w/ wep but privacy off */
9968e8e04eSSam Leffler 	uint32_t	is_rx_unencrypted;	/* rx w/o wep and privacy on */
10068e8e04eSSam Leffler 	uint32_t	is_rx_wepfail;		/* rx wep processing failed */
10168e8e04eSSam Leffler 	uint32_t	is_rx_decap;		/* rx decapsulation failed */
10268e8e04eSSam Leffler 	uint32_t	is_rx_mgtdiscard;	/* rx discard mgt frames */
10368e8e04eSSam Leffler 	uint32_t	is_rx_ctl;		/* rx discard ctrl frames */
10468e8e04eSSam Leffler 	uint32_t	is_rx_beacon;		/* rx beacon frames */
10568e8e04eSSam Leffler 	uint32_t	is_rx_rstoobig;		/* rx rate set truncated */
10668e8e04eSSam Leffler 	uint32_t	is_rx_elem_missing;	/* rx required element missing*/
10768e8e04eSSam Leffler 	uint32_t	is_rx_elem_toobig;	/* rx element too big */
10868e8e04eSSam Leffler 	uint32_t	is_rx_elem_toosmall;	/* rx element too small */
10968e8e04eSSam Leffler 	uint32_t	is_rx_elem_unknown;	/* rx element unknown */
11068e8e04eSSam Leffler 	uint32_t	is_rx_badchan;		/* rx frame w/ invalid chan */
11168e8e04eSSam Leffler 	uint32_t	is_rx_chanmismatch;	/* rx frame chan mismatch */
11268e8e04eSSam Leffler 	uint32_t	is_rx_nodealloc;	/* rx frame dropped */
11368e8e04eSSam Leffler 	uint32_t	is_rx_ssidmismatch;	/* rx frame ssid mismatch  */
11468e8e04eSSam Leffler 	uint32_t	is_rx_auth_unsupported;	/* rx w/ unsupported auth alg */
11568e8e04eSSam Leffler 	uint32_t	is_rx_auth_fail;	/* rx sta auth failure */
11668e8e04eSSam Leffler 	uint32_t	is_rx_auth_countermeasures;/* rx auth discard 'cuz CM */
11768e8e04eSSam Leffler 	uint32_t	is_rx_assoc_bss;	/* rx assoc from wrong bssid */
11868e8e04eSSam Leffler 	uint32_t	is_rx_assoc_notauth;	/* rx assoc w/o auth */
11968e8e04eSSam Leffler 	uint32_t	is_rx_assoc_capmismatch;/* rx assoc w/ cap mismatch */
12068e8e04eSSam Leffler 	uint32_t	is_rx_assoc_norate;	/* rx assoc w/ no rate match */
12168e8e04eSSam Leffler 	uint32_t	is_rx_assoc_badwpaie;	/* rx assoc w/ bad WPA IE */
12268e8e04eSSam Leffler 	uint32_t	is_rx_deauth;		/* rx deauthentication */
12368e8e04eSSam Leffler 	uint32_t	is_rx_disassoc;		/* rx disassociation */
12468e8e04eSSam Leffler 	uint32_t	is_rx_badsubtype;	/* rx frame w/ unknown subtype*/
12568e8e04eSSam Leffler 	uint32_t	is_rx_nobuf;		/* rx failed for lack of buf */
12668e8e04eSSam Leffler 	uint32_t	is_rx_decryptcrc;	/* rx decrypt failed on crc */
12768e8e04eSSam Leffler 	uint32_t	is_rx_ahdemo_mgt;	/* rx discard ahdemo mgt frame*/
12868e8e04eSSam Leffler 	uint32_t	is_rx_bad_auth;		/* rx bad auth request */
12968e8e04eSSam Leffler 	uint32_t	is_rx_unauth;		/* rx on unauthorized port */
13068e8e04eSSam Leffler 	uint32_t	is_rx_badkeyid;		/* rx w/ incorrect keyid */
13168e8e04eSSam Leffler 	uint32_t	is_rx_ccmpreplay;	/* rx seq# violation (CCMP) */
13268e8e04eSSam Leffler 	uint32_t	is_rx_ccmpformat;	/* rx format bad (CCMP) */
13368e8e04eSSam Leffler 	uint32_t	is_rx_ccmpmic;		/* rx MIC check failed (CCMP) */
13468e8e04eSSam Leffler 	uint32_t	is_rx_tkipreplay;	/* rx seq# violation (TKIP) */
13568e8e04eSSam Leffler 	uint32_t	is_rx_tkipformat;	/* rx format bad (TKIP) */
13668e8e04eSSam Leffler 	uint32_t	is_rx_tkipmic;		/* rx MIC check failed (TKIP) */
13768e8e04eSSam Leffler 	uint32_t	is_rx_tkipicv;		/* rx ICV check failed (TKIP) */
13868e8e04eSSam Leffler 	uint32_t	is_rx_badcipher;	/* rx failed 'cuz key type */
13968e8e04eSSam Leffler 	uint32_t	is_rx_nocipherctx;	/* rx failed 'cuz key !setup */
14068e8e04eSSam Leffler 	uint32_t	is_rx_acl;		/* rx discard 'cuz acl policy */
14168e8e04eSSam Leffler 	uint32_t	is_tx_nobuf;		/* tx failed for lack of buf */
14268e8e04eSSam Leffler 	uint32_t	is_tx_nonode;		/* tx failed for no node */
14368e8e04eSSam Leffler 	uint32_t	is_tx_unknownmgt;	/* tx of unknown mgt frame */
14468e8e04eSSam Leffler 	uint32_t	is_tx_badcipher;	/* tx failed 'cuz key type */
14568e8e04eSSam Leffler 	uint32_t	is_tx_nodefkey;		/* tx failed 'cuz no defkey */
14668e8e04eSSam Leffler 	uint32_t	is_tx_noheadroom;	/* tx failed 'cuz no space */
14768e8e04eSSam Leffler 	uint32_t	is_tx_fragframes;	/* tx frames fragmented */
14868e8e04eSSam Leffler 	uint32_t	is_tx_frags;		/* tx fragments created */
14968e8e04eSSam Leffler 	uint32_t	is_scan_active;		/* active scans started */
15068e8e04eSSam Leffler 	uint32_t	is_scan_passive;	/* passive scans started */
15168e8e04eSSam Leffler 	uint32_t	is_node_timeout;	/* nodes timed out inactivity */
15268e8e04eSSam Leffler 	uint32_t	is_crypto_nomem;	/* no memory for crypto ctx */
15368e8e04eSSam Leffler 	uint32_t	is_crypto_tkip;		/* tkip crypto done in s/w */
15468e8e04eSSam Leffler 	uint32_t	is_crypto_tkipenmic;	/* tkip en-MIC done in s/w */
15568e8e04eSSam Leffler 	uint32_t	is_crypto_tkipdemic;	/* tkip de-MIC done in s/w */
15668e8e04eSSam Leffler 	uint32_t	is_crypto_tkipcm;	/* tkip counter measures */
15768e8e04eSSam Leffler 	uint32_t	is_crypto_ccmp;		/* ccmp crypto done in s/w */
15868e8e04eSSam Leffler 	uint32_t	is_crypto_wep;		/* wep crypto done in s/w */
15968e8e04eSSam Leffler 	uint32_t	is_crypto_setkey_cipher;/* cipher rejected key */
16068e8e04eSSam Leffler 	uint32_t	is_crypto_setkey_nokey;	/* no key index for setkey */
16168e8e04eSSam Leffler 	uint32_t	is_crypto_delkey;	/* driver key delete failed */
16268e8e04eSSam Leffler 	uint32_t	is_crypto_badcipher;	/* unknown cipher */
16368e8e04eSSam Leffler 	uint32_t	is_crypto_nocipher;	/* cipher not available */
16468e8e04eSSam Leffler 	uint32_t	is_crypto_attachfail;	/* cipher attach failed */
16568e8e04eSSam Leffler 	uint32_t	is_crypto_swfallback;	/* cipher fallback to s/w */
16668e8e04eSSam Leffler 	uint32_t	is_crypto_keyfail;	/* driver key alloc failed */
16768e8e04eSSam Leffler 	uint32_t	is_crypto_enmicfail;	/* en-MIC failed */
16868e8e04eSSam Leffler 	uint32_t	is_ibss_capmismatch;	/* merge failed-cap mismatch */
16968e8e04eSSam Leffler 	uint32_t	is_ibss_norate;		/* merge failed-rate mismatch */
17068e8e04eSSam Leffler 	uint32_t	is_ps_unassoc;		/* ps-poll for unassoc. sta */
17168e8e04eSSam Leffler 	uint32_t	is_ps_badaid;		/* ps-poll w/ incorrect aid */
17268e8e04eSSam Leffler 	uint32_t	is_ps_qempty;		/* ps-poll w/ nothing to send */
17368e8e04eSSam Leffler 	uint32_t	is_ff_badhdr;		/* fast frame rx'd w/ bad hdr */
17468e8e04eSSam Leffler 	uint32_t	is_ff_tooshort;		/* fast frame rx decap error */
17568e8e04eSSam Leffler 	uint32_t	is_ff_split;		/* fast frame rx split error */
17668e8e04eSSam Leffler 	uint32_t	is_ff_decap;		/* fast frames decap'd */
17768e8e04eSSam Leffler 	uint32_t	is_ff_encap;		/* fast frames encap'd for tx */
17868e8e04eSSam Leffler 	uint32_t	is_rx_badbintval;	/* rx frame w/ bogus bintval */
17968e8e04eSSam Leffler 	uint32_t	is_rx_demicfail;	/* rx demic failed */
18068e8e04eSSam Leffler 	uint32_t	is_rx_defrag;		/* rx defragmentation failed */
18168e8e04eSSam Leffler 	uint32_t	is_rx_mgmt;		/* rx management frames */
18268e8e04eSSam Leffler 	uint32_t	is_rx_action;		/* rx action mgt frames */
18368e8e04eSSam Leffler 	uint32_t	is_amsdu_tooshort;	/* A-MSDU rx decap error */
18468e8e04eSSam Leffler 	uint32_t	is_amsdu_split;		/* A-MSDU rx split error */
18568e8e04eSSam Leffler 	uint32_t	is_amsdu_decap;		/* A-MSDU decap'd */
18668e8e04eSSam Leffler 	uint32_t	is_amsdu_encap;		/* A-MSDU encap'd for tx */
18768e8e04eSSam Leffler 	uint32_t	is_ampdu_bar_bad;	/* A-MPDU BAR out of window */
18868e8e04eSSam Leffler 	uint32_t	is_ampdu_bar_oow;	/* A-MPDU BAR before ADDBA */
18968e8e04eSSam Leffler 	uint32_t	is_ampdu_bar_rx;	/* A-MPDU BAR frames handled */
19068e8e04eSSam Leffler 	uint32_t	is_ampdu_rx_flush;	/* A-MPDU frames flushed */
19168e8e04eSSam Leffler 	uint32_t	is_ampdu_rx_oor;	/* A-MPDU frames out-of-order */
19268e8e04eSSam Leffler 	uint32_t	is_ampdu_rx_copy;	/* A-MPDU frames copied down */
19368e8e04eSSam Leffler 	uint32_t	is_spare[32];
1941be50176SSam Leffler };
1951be50176SSam Leffler 
1968a1b9b6aSSam Leffler /*
1978a1b9b6aSSam Leffler  * Max size of optional information elements.  We artificially
1988a1b9b6aSSam Leffler  * constrain this; it's limited only by the max frame size (and
1998a1b9b6aSSam Leffler  * the max parameter size of the wireless extensions).
2008a1b9b6aSSam Leffler  */
2018a1b9b6aSSam Leffler #define	IEEE80211_MAX_OPT_IE	256
2028a1b9b6aSSam Leffler 
2038a1b9b6aSSam Leffler /*
2048a1b9b6aSSam Leffler  * WPA/RSN get/set key request.  Specify the key/cipher
2058a1b9b6aSSam Leffler  * type and whether the key is to be used for sending and/or
2068a1b9b6aSSam Leffler  * receiving.  The key index should be set only when working
2078a1b9b6aSSam Leffler  * with global keys (use IEEE80211_KEYIX_NONE for ``no index'').
2088a1b9b6aSSam Leffler  * Otherwise a unicast/pairwise key is specified by the bssid
2098a1b9b6aSSam Leffler  * (on a station) or mac address (on an ap).  They key length
2108a1b9b6aSSam Leffler  * must include any MIC key data; otherwise it should be no
2118a1b9b6aSSam Leffler  more than IEEE80211_KEYBUF_SIZE.
2128a1b9b6aSSam Leffler  */
2138a1b9b6aSSam Leffler struct ieee80211req_key {
21468e8e04eSSam Leffler 	uint8_t		ik_type;	/* key/cipher type */
21568e8e04eSSam Leffler 	uint8_t		ik_pad;
21668e8e04eSSam Leffler 	uint16_t	ik_keyix;	/* key index */
21768e8e04eSSam Leffler 	uint8_t		ik_keylen;	/* key length in bytes */
21868e8e04eSSam Leffler 	uint8_t		ik_flags;
2198a1b9b6aSSam Leffler /* NB: IEEE80211_KEY_XMIT and IEEE80211_KEY_RECV defined elsewhere */
2208a1b9b6aSSam Leffler #define	IEEE80211_KEY_DEFAULT	0x80	/* default xmit key */
22168e8e04eSSam Leffler 	uint8_t		ik_macaddr[IEEE80211_ADDR_LEN];
22268e8e04eSSam Leffler 	uint64_t	ik_keyrsc;	/* key receive sequence counter */
22368e8e04eSSam Leffler 	uint64_t	ik_keytsc;	/* key transmit sequence counter */
22468e8e04eSSam Leffler 	uint8_t		ik_keydata[IEEE80211_KEYBUF_SIZE+IEEE80211_MICBUF_SIZE];
2258a1b9b6aSSam Leffler };
2268a1b9b6aSSam Leffler 
2278a1b9b6aSSam Leffler /*
2288a1b9b6aSSam Leffler  * Delete a key either by index or address.  Set the index
2298a1b9b6aSSam Leffler  * to IEEE80211_KEYIX_NONE when deleting a unicast key.
2308a1b9b6aSSam Leffler  */
2318a1b9b6aSSam Leffler struct ieee80211req_del_key {
23268e8e04eSSam Leffler 	uint8_t		idk_keyix;	/* key index */
23368e8e04eSSam Leffler 	uint8_t		idk_macaddr[IEEE80211_ADDR_LEN];
2348a1b9b6aSSam Leffler };
2358a1b9b6aSSam Leffler 
2368a1b9b6aSSam Leffler /*
2378a1b9b6aSSam Leffler  * MLME state manipulation request.  IEEE80211_MLME_ASSOC
2388a1b9b6aSSam Leffler  * only makes sense when operating as a station.  The other
2398a1b9b6aSSam Leffler  * requests can be used when operating as a station or an
2408a1b9b6aSSam Leffler  * ap (to effect a station).
2418a1b9b6aSSam Leffler  */
2428a1b9b6aSSam Leffler struct ieee80211req_mlme {
24368e8e04eSSam Leffler 	uint8_t		im_op;		/* operation to perform */
2448a1b9b6aSSam Leffler #define	IEEE80211_MLME_ASSOC		1	/* associate station */
2458a1b9b6aSSam Leffler #define	IEEE80211_MLME_DISASSOC		2	/* disassociate station */
2468a1b9b6aSSam Leffler #define	IEEE80211_MLME_DEAUTH		3	/* deauthenticate station */
2478a1b9b6aSSam Leffler #define	IEEE80211_MLME_AUTHORIZE	4	/* authorize station */
2488a1b9b6aSSam Leffler #define	IEEE80211_MLME_UNAUTHORIZE	5	/* unauthorize station */
24968e8e04eSSam Leffler 	uint8_t		im_ssid_len;	/* length of optional ssid */
25068e8e04eSSam Leffler 	uint16_t	im_reason;	/* 802.11 reason code */
25168e8e04eSSam Leffler 	uint8_t		im_macaddr[IEEE80211_ADDR_LEN];
25268e8e04eSSam Leffler 	uint8_t		im_ssid[IEEE80211_NWID_LEN];
2538a1b9b6aSSam Leffler };
2548a1b9b6aSSam Leffler 
2558a1b9b6aSSam Leffler /*
2568a1b9b6aSSam Leffler  * MAC ACL operations.
2578a1b9b6aSSam Leffler  */
2588a1b9b6aSSam Leffler enum {
2598a1b9b6aSSam Leffler 	IEEE80211_MACCMD_POLICY_OPEN	= 0,	/* set policy: no ACL's */
2608a1b9b6aSSam Leffler 	IEEE80211_MACCMD_POLICY_ALLOW	= 1,	/* set policy: allow traffic */
2618a1b9b6aSSam Leffler 	IEEE80211_MACCMD_POLICY_DENY	= 2,	/* set policy: deny traffic */
2628a1b9b6aSSam Leffler 	IEEE80211_MACCMD_FLUSH		= 3,	/* flush ACL database */
2638a1b9b6aSSam Leffler 	IEEE80211_MACCMD_DETACH		= 4,	/* detach ACL policy */
264188757f5SSam Leffler 	IEEE80211_MACCMD_POLICY		= 5,	/* get ACL policy */
265188757f5SSam Leffler 	IEEE80211_MACCMD_LIST		= 6,	/* get ACL database */
266188757f5SSam Leffler };
267188757f5SSam Leffler 
268188757f5SSam Leffler struct ieee80211req_maclist {
26968e8e04eSSam Leffler 	uint8_t		ml_macaddr[IEEE80211_ADDR_LEN];
2708a1b9b6aSSam Leffler };
2718a1b9b6aSSam Leffler 
2728a1b9b6aSSam Leffler /*
2738a1b9b6aSSam Leffler  * Set the active channel list.  Note this list is
2748a1b9b6aSSam Leffler  * intersected with the available channel list in
2758a1b9b6aSSam Leffler  * calculating the set of channels actually used in
2768a1b9b6aSSam Leffler  * scanning.
2778a1b9b6aSSam Leffler  */
2788a1b9b6aSSam Leffler struct ieee80211req_chanlist {
27968e8e04eSSam Leffler 	uint8_t		ic_channels[IEEE80211_CHAN_BYTES];
2808a1b9b6aSSam Leffler };
2818a1b9b6aSSam Leffler 
2828a1b9b6aSSam Leffler /*
2838a1b9b6aSSam Leffler  * Get the active channel list info.
2848a1b9b6aSSam Leffler  */
2858a1b9b6aSSam Leffler struct ieee80211req_chaninfo {
2868a1b9b6aSSam Leffler 	u_int	ic_nchans;
2878a1b9b6aSSam Leffler 	struct ieee80211_channel ic_chans[IEEE80211_CHAN_MAX];
2888a1b9b6aSSam Leffler };
2898a1b9b6aSSam Leffler 
2908a1b9b6aSSam Leffler /*
2918a1b9b6aSSam Leffler  * Retrieve the WPA/RSN information element for an associated station.
2928a1b9b6aSSam Leffler  */
29368e8e04eSSam Leffler struct ieee80211req_wpaie {	/* old version w/ only one ie */
29468e8e04eSSam Leffler 	uint8_t		wpa_macaddr[IEEE80211_ADDR_LEN];
29568e8e04eSSam Leffler 	uint8_t		wpa_ie[IEEE80211_MAX_OPT_IE];
29668e8e04eSSam Leffler };
29768e8e04eSSam Leffler struct ieee80211req_wpaie2 {
29868e8e04eSSam Leffler 	uint8_t		wpa_macaddr[IEEE80211_ADDR_LEN];
29968e8e04eSSam Leffler 	uint8_t		wpa_ie[IEEE80211_MAX_OPT_IE];
30068e8e04eSSam Leffler 	uint8_t		rsn_ie[IEEE80211_MAX_OPT_IE];
3018a1b9b6aSSam Leffler };
3028a1b9b6aSSam Leffler 
3038a1b9b6aSSam Leffler /*
3048a1b9b6aSSam Leffler  * Retrieve per-node statistics.
3058a1b9b6aSSam Leffler  */
3068a1b9b6aSSam Leffler struct ieee80211req_sta_stats {
3078a1b9b6aSSam Leffler 	union {
3088a1b9b6aSSam Leffler 		/* NB: explicitly force 64-bit alignment */
30968e8e04eSSam Leffler 		uint8_t		macaddr[IEEE80211_ADDR_LEN];
31068e8e04eSSam Leffler 		uint64_t	pad;
3118a1b9b6aSSam Leffler 	} is_u;
3128a1b9b6aSSam Leffler 	struct ieee80211_nodestats is_stats;
3138a1b9b6aSSam Leffler };
3148a1b9b6aSSam Leffler 
3158a1b9b6aSSam Leffler /*
3168a1b9b6aSSam Leffler  * Station information block; the mac address is used
3178a1b9b6aSSam Leffler  * to retrieve other data like stats, unicast key, etc.
3188a1b9b6aSSam Leffler  */
3198a1b9b6aSSam Leffler struct ieee80211req_sta_info {
32068e8e04eSSam Leffler 	uint16_t	isi_len;		/* length (mult of 4) */
32168e8e04eSSam Leffler 	uint16_t	isi_ie_off;		/* offset to IE data */
32268e8e04eSSam Leffler 	uint16_t	isi_ie_len;		/* IE length */
32368e8e04eSSam Leffler 	uint16_t	isi_freq;		/* MHz */
32468e8e04eSSam Leffler 	uint16_t	isi_flags;		/* channel flags */
32568e8e04eSSam Leffler 	uint16_t	isi_state;		/* state flags */
32668e8e04eSSam Leffler 	uint8_t		isi_authmode;		/* authentication algorithm */
327d1c85daeSSam Leffler 	int8_t		isi_rssi;		/* receive signal strength */
328d1c85daeSSam Leffler 	int8_t		isi_noise;		/* noise floor */
32968e8e04eSSam Leffler 	uint8_t		isi_capinfo;		/* capabilities */
33068e8e04eSSam Leffler 	uint8_t		isi_erp;		/* ERP element */
33168e8e04eSSam Leffler 	uint8_t		isi_macaddr[IEEE80211_ADDR_LEN];
33268e8e04eSSam Leffler 	uint8_t		isi_nrates;
33368e8e04eSSam Leffler 						/* negotiated rates */
33468e8e04eSSam Leffler 	uint8_t		isi_rates[IEEE80211_RATE_MAXSIZE];
33568e8e04eSSam Leffler 	uint8_t		isi_txrate;		/* index to isi_rates[] */
33668e8e04eSSam Leffler 	uint16_t	isi_associd;		/* assoc response */
33768e8e04eSSam Leffler 	uint16_t	isi_txpower;		/* current tx power */
33868e8e04eSSam Leffler 	uint16_t	isi_vlan;		/* vlan tag */
33968e8e04eSSam Leffler 	uint16_t	isi_txseqs[17];		/* seq to be transmitted */
34068e8e04eSSam Leffler 	uint16_t	isi_rxseqs[17];		/* seq previous for qos frames*/
34168e8e04eSSam Leffler 	uint16_t	isi_inact;		/* inactivity timer */
3428a1b9b6aSSam Leffler 	/* XXX frag state? */
3438a1b9b6aSSam Leffler 	/* variable length IE data */
3448a1b9b6aSSam Leffler };
3458a1b9b6aSSam Leffler 
3468a1b9b6aSSam Leffler /*
3478a1b9b6aSSam Leffler  * Retrieve per-station information; to retrieve all
3488a1b9b6aSSam Leffler  * specify a mac address of ff:ff:ff:ff:ff:ff.
3498a1b9b6aSSam Leffler  */
3508a1b9b6aSSam Leffler struct ieee80211req_sta_req {
3518a1b9b6aSSam Leffler 	union {
3528a1b9b6aSSam Leffler 		/* NB: explicitly force 64-bit alignment */
35368e8e04eSSam Leffler 		uint8_t		macaddr[IEEE80211_ADDR_LEN];
35468e8e04eSSam Leffler 		uint64_t	pad;
3558a1b9b6aSSam Leffler 	} is_u;
3568a1b9b6aSSam Leffler 	struct ieee80211req_sta_info info[1];	/* variable length */
3578a1b9b6aSSam Leffler };
3588a1b9b6aSSam Leffler 
3598a1b9b6aSSam Leffler /*
3608a1b9b6aSSam Leffler  * Get/set per-station tx power cap.
3618a1b9b6aSSam Leffler  */
3628a1b9b6aSSam Leffler struct ieee80211req_sta_txpow {
36368e8e04eSSam Leffler 	uint8_t		it_macaddr[IEEE80211_ADDR_LEN];
36468e8e04eSSam Leffler 	uint8_t		it_txpow;
3658a1b9b6aSSam Leffler };
3668a1b9b6aSSam Leffler 
3678a1b9b6aSSam Leffler /*
3688a1b9b6aSSam Leffler  * WME parameters are set and return using i_val and i_len.
3698a1b9b6aSSam Leffler  * i_val holds the value itself.  i_len specifies the AC
3708a1b9b6aSSam Leffler  * and, as appropriate, then high bit specifies whether the
3718a1b9b6aSSam Leffler  * operation is to be applied to the BSS or ourself.
3728a1b9b6aSSam Leffler  */
3738a1b9b6aSSam Leffler #define	IEEE80211_WMEPARAM_SELF	0x0000		/* parameter applies to self */
3748a1b9b6aSSam Leffler #define	IEEE80211_WMEPARAM_BSS	0x8000		/* parameter applies to BSS */
3758a1b9b6aSSam Leffler #define	IEEE80211_WMEPARAM_VAL	0x7fff		/* parameter value */
3768a1b9b6aSSam Leffler 
3771a1e1d21SSam Leffler #ifdef __FreeBSD__
3781a1e1d21SSam Leffler /*
3791a1e1d21SSam Leffler  * FreeBSD-style ioctls.
3801a1e1d21SSam Leffler  */
3811a1e1d21SSam Leffler /* the first member must be matched with struct ifreq */
3821a1e1d21SSam Leffler struct ieee80211req {
3831a1e1d21SSam Leffler 	char		i_name[IFNAMSIZ];	/* if_name, e.g. "wi0" */
38468e8e04eSSam Leffler 	uint16_t	i_type;			/* req type */
3851a1e1d21SSam Leffler 	int16_t		i_val;			/* Index or simple value */
3861a1e1d21SSam Leffler 	int16_t		i_len;			/* Index or simple value */
3871a1e1d21SSam Leffler 	void		*i_data;		/* Extra data */
3881a1e1d21SSam Leffler };
3891a1e1d21SSam Leffler #define	SIOCS80211		 _IOW('i', 234, struct ieee80211req)
3901a1e1d21SSam Leffler #define	SIOCG80211		_IOWR('i', 235, struct ieee80211req)
39168e8e04eSSam Leffler #define	SIOCG80211STATS		_IOWR('i', 236, struct ifreq)
3921a1e1d21SSam Leffler 
3931a1e1d21SSam Leffler #define IEEE80211_IOC_SSID		1
3941a1e1d21SSam Leffler #define IEEE80211_IOC_NUMSSIDS		2
3951a1e1d21SSam Leffler #define IEEE80211_IOC_WEP		3
3961a1e1d21SSam Leffler #define 	IEEE80211_WEP_NOSUP	-1
3971a1e1d21SSam Leffler #define 	IEEE80211_WEP_OFF	0
3981a1e1d21SSam Leffler #define 	IEEE80211_WEP_ON	1
3991a1e1d21SSam Leffler #define 	IEEE80211_WEP_MIXED	2
4001a1e1d21SSam Leffler #define IEEE80211_IOC_WEPKEY		4
4011a1e1d21SSam Leffler #define IEEE80211_IOC_NUMWEPKEYS	5
4021a1e1d21SSam Leffler #define IEEE80211_IOC_WEPTXKEY		6
4031a1e1d21SSam Leffler #define IEEE80211_IOC_AUTHMODE		7
4041a1e1d21SSam Leffler #define IEEE80211_IOC_STATIONNAME	8
4051a1e1d21SSam Leffler #define IEEE80211_IOC_CHANNEL		9
4061a1e1d21SSam Leffler #define IEEE80211_IOC_POWERSAVE		10
4071a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_NOSUP	-1
4081a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_OFF		0
4091a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_CAM		1
4101a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_PSP		2
4111a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_PSP_CAM	3
4121a1e1d21SSam Leffler #define 	IEEE80211_POWERSAVE_ON		IEEE80211_POWERSAVE_CAM
4131a1e1d21SSam Leffler #define IEEE80211_IOC_POWERSAVESLEEP	11
41413604e6bSSam Leffler #define	IEEE80211_IOC_RTSTHRESHOLD	12
4152e79ca97SSam Leffler #define IEEE80211_IOC_PROTMODE		13
4162e79ca97SSam Leffler #define 	IEEE80211_PROTMODE_OFF		0
4172e79ca97SSam Leffler #define 	IEEE80211_PROTMODE_CTS		1
4182e79ca97SSam Leffler #define 	IEEE80211_PROTMODE_RTSCTS	2
4198a1b9b6aSSam Leffler #define	IEEE80211_IOC_TXPOWER		14	/* global tx power limit */
4208a1b9b6aSSam Leffler #define	IEEE80211_IOC_BSSID		15
4218a1b9b6aSSam Leffler #define	IEEE80211_IOC_ROAMING		16	/* roaming mode */
4228a1b9b6aSSam Leffler #define	IEEE80211_IOC_PRIVACY		17	/* privacy invoked */
4238a1b9b6aSSam Leffler #define	IEEE80211_IOC_DROPUNENCRYPTED	18	/* discard unencrypted frames */
4248a1b9b6aSSam Leffler #define	IEEE80211_IOC_WPAKEY		19
4258a1b9b6aSSam Leffler #define	IEEE80211_IOC_DELKEY		20
4268a1b9b6aSSam Leffler #define	IEEE80211_IOC_MLME		21
4278a1b9b6aSSam Leffler #define	IEEE80211_IOC_OPTIE		22	/* optional info. element */
4288a1b9b6aSSam Leffler #define	IEEE80211_IOC_SCAN_REQ		23
429239cc3b6SSam Leffler /* 24 was IEEE80211_IOC_SCAN_RESULTS */
4308a1b9b6aSSam Leffler #define	IEEE80211_IOC_COUNTERMEASURES	25	/* WPA/TKIP countermeasures */
4318a1b9b6aSSam Leffler #define	IEEE80211_IOC_WPA		26	/* WPA mode (0,1,2) */
4328a1b9b6aSSam Leffler #define	IEEE80211_IOC_CHANLIST		27	/* channel list */
4338a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME		28	/* WME mode (on, off) */
4348a1b9b6aSSam Leffler #define	IEEE80211_IOC_HIDESSID		29	/* hide SSID mode (on, off) */
4358a1b9b6aSSam Leffler #define	IEEE80211_IOC_APBRIDGE		30	/* AP inter-sta bridging */
4368a1b9b6aSSam Leffler #define	IEEE80211_IOC_MCASTCIPHER	31	/* multicast/default cipher */
4378a1b9b6aSSam Leffler #define	IEEE80211_IOC_MCASTKEYLEN	32	/* multicast key length */
4388a1b9b6aSSam Leffler #define	IEEE80211_IOC_UCASTCIPHERS	33	/* unicast cipher suites */
4398a1b9b6aSSam Leffler #define	IEEE80211_IOC_UCASTCIPHER	34	/* unicast cipher */
4408a1b9b6aSSam Leffler #define	IEEE80211_IOC_UCASTKEYLEN	35	/* unicast key length */
4418a1b9b6aSSam Leffler #define	IEEE80211_IOC_DRIVER_CAPS	36	/* driver capabilities */
4428a1b9b6aSSam Leffler #define	IEEE80211_IOC_KEYMGTALGS	37	/* key management algorithms */
4438a1b9b6aSSam Leffler #define	IEEE80211_IOC_RSNCAPS		38	/* RSN capabilities */
4448a1b9b6aSSam Leffler #define	IEEE80211_IOC_WPAIE		39	/* WPA information element */
4458a1b9b6aSSam Leffler #define	IEEE80211_IOC_STA_STATS		40	/* per-station statistics */
4468a1b9b6aSSam Leffler #define	IEEE80211_IOC_MACCMD		41	/* MAC ACL operation */
4478a1b9b6aSSam Leffler #define	IEEE80211_IOC_CHANINFO		42	/* channel info list */
4488a1b9b6aSSam Leffler #define	IEEE80211_IOC_TXPOWMAX		43	/* max tx power for channel */
4498a1b9b6aSSam Leffler #define	IEEE80211_IOC_STA_TXPOW		44	/* per-station tx power limit */
450d1c85daeSSam Leffler /* 45 was IEEE80211_IOC_STA_INFO */
4518a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_CWMIN		46	/* WME: ECWmin */
4528a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_CWMAX		47	/* WME: ECWmax */
4538a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_AIFS		48	/* WME: AIFSN */
4548a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_TXOPLIMIT	49	/* WME: txops limit */
4558a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_ACM		50	/* WME: ACM (bss only) */
4568a1b9b6aSSam Leffler #define	IEEE80211_IOC_WME_ACKPOLICY	51	/* WME: ACK policy (!bss only)*/
4578a1b9b6aSSam Leffler #define	IEEE80211_IOC_DTIM_PERIOD	52	/* DTIM period (beacons) */
4588a1b9b6aSSam Leffler #define	IEEE80211_IOC_BEACON_INTERVAL	53	/* beacon interval (ms) */
4598a1b9b6aSSam Leffler #define	IEEE80211_IOC_ADDMAC		54	/* add sta to MAC ACL table */
4608a1b9b6aSSam Leffler #define	IEEE80211_IOC_DELMAC		55	/* del sta from MAC ACL table */
461c4f040c3SSam Leffler #define	IEEE80211_IOC_PUREG		56	/* pure 11g (no 11b stations) */
46268e8e04eSSam Leffler #define	IEEE80211_IOC_FF		57	/* ATH fast frames (on, off) */
46368e8e04eSSam Leffler #define	IEEE80211_IOC_TURBOP		58	/* ATH turbo' (on, off) */
46468e8e04eSSam Leffler #define	IEEE80211_IOC_BGSCAN		59	/* bg scanning (on, off) */
46568e8e04eSSam Leffler #define	IEEE80211_IOC_BGSCAN_IDLE	60	/* bg scan idle threshold */
46668e8e04eSSam Leffler #define	IEEE80211_IOC_BGSCAN_INTERVAL	61	/* bg scan interval */
46768e8e04eSSam Leffler #define	IEEE80211_IOC_SCANVALID		65	/* scan cache valid threshold */
46868e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RSSI_11A	66	/* rssi threshold in 11a */
46968e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RSSI_11B	67	/* rssi threshold in 11b */
47068e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RSSI_11G	68	/* rssi threshold in 11g */
47168e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RATE_11A	69	/* tx rate threshold in 11a */
47268e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RATE_11B	70	/* tx rate threshold in 11b */
47368e8e04eSSam Leffler #define	IEEE80211_IOC_ROAM_RATE_11G	71	/* tx rate threshold in 11g */
47464353cb0SSam Leffler #define	IEEE80211_IOC_MCAST_RATE	72	/* tx rate for mcast frames */
47570231e3dSSam Leffler #define	IEEE80211_IOC_FRAGTHRESHOLD	73	/* tx fragmentation threshold */
476c27e4e31SSam Leffler #define	IEEE80211_IOC_BURST		75	/* packet bursting */
477239cc3b6SSam Leffler #define	IEEE80211_IOC_SCAN_RESULTS	76	/* get scan results */
478546786c9SSam Leffler #define	IEEE80211_IOC_BMISSTHRESHOLD	77	/* beacon miss threshold */
479d1c85daeSSam Leffler #define	IEEE80211_IOC_STA_INFO		78	/* station/neighbor info */
48068e8e04eSSam Leffler #define	IEEE80211_IOC_WPAIE2		79	/* WPA+RSN info elements */
48168e8e04eSSam Leffler #define	IEEE80211_IOC_CURCHAN		80	/* current channel */
48268e8e04eSSam Leffler #define	IEEE80211_IOC_SHORTGI		81	/* 802.11n half GI */
48368e8e04eSSam Leffler #define	IEEE80211_IOC_AMPDU		82	/* 802.11n A-MPDU (on, off) */
48468e8e04eSSam Leffler #define	IEEE80211_IOC_AMPDU_LIMIT	83	/* A-MPDU length limit */
48568e8e04eSSam Leffler #define	IEEE80211_IOC_AMPDU_DENSITY	84	/* A-MPDU density */
48668e8e04eSSam Leffler #define	IEEE80211_IOC_AMSDU		85	/* 802.11n A-MSDU (on, off) */
48768e8e04eSSam Leffler #define	IEEE80211_IOC_AMSDU_LIMIT	86	/* A-MSDU length limit */
48868e8e04eSSam Leffler #define	IEEE80211_IOC_PUREN		87	/* pure 11n (no legacy sta's) */
48968e8e04eSSam Leffler #define	IEEE80211_IOC_DOTH		88	/* 802.11h (on, off) */
49068e8e04eSSam Leffler #define	IEEE80211_IOC_REGDOMAIN		89	/* regulatory domain */
49168e8e04eSSam Leffler #define	IEEE80211_IOC_COUNTRYCODE	90	/* ISO country code */
49268e8e04eSSam Leffler #define	IEEE80211_IOC_LOCATION		91	/* indoor/outdoor/anywhere */
49368e8e04eSSam Leffler #define	IEEE80211_IOC_HTCOMPAT		92	/* support pre-D1.10 HT ie's */
494c066143cSSam Leffler #define	IEEE80211_IOC_INACTIVITY	94	/* sta inactivity handling */
4951a1e1d21SSam Leffler 
4968a1b9b6aSSam Leffler /*
4978a1b9b6aSSam Leffler  * Scan result data returned for IEEE80211_IOC_SCAN_RESULTS.
498239cc3b6SSam Leffler  * Each result is a fixed size structure followed by a variable
499239cc3b6SSam Leffler  * length SSID and one or more variable length information elements.
500239cc3b6SSam Leffler  * The size of each variable length item is found in the fixed
501239cc3b6SSam Leffler  * size structure and the entire length of the record is specified
502239cc3b6SSam Leffler  * in isr_len.  Result records are rounded to a multiple of 4 bytes.
5038a1b9b6aSSam Leffler  */
5048a1b9b6aSSam Leffler struct ieee80211req_scan_result {
50568e8e04eSSam Leffler 	uint16_t	isr_len;		/* length (mult of 4) */
50668e8e04eSSam Leffler 	uint16_t	isr_ie_off;		/* offset to IE data */
50768e8e04eSSam Leffler 	uint16_t	isr_ie_len;		/* IE length */
50868e8e04eSSam Leffler 	uint16_t	isr_freq;		/* MHz */
50968e8e04eSSam Leffler 	uint16_t	isr_flags;		/* channel flags */
510239cc3b6SSam Leffler 	int8_t		isr_noise;
511239cc3b6SSam Leffler 	int8_t		isr_rssi;
51268e8e04eSSam Leffler 	uint8_t		isr_intval;		/* beacon interval */
51368e8e04eSSam Leffler 	uint8_t		isr_capinfo;		/* capabilities */
51468e8e04eSSam Leffler 	uint8_t		isr_erp;		/* ERP element */
51568e8e04eSSam Leffler 	uint8_t		isr_bssid[IEEE80211_ADDR_LEN];
51668e8e04eSSam Leffler 	uint8_t		isr_nrates;
51768e8e04eSSam Leffler 	uint8_t		isr_rates[IEEE80211_RATE_MAXSIZE];
51868e8e04eSSam Leffler 	uint8_t		isr_ssid_len;		/* SSID length */
5198a1b9b6aSSam Leffler 	/* variable length SSID followed by IE data */
5208a1b9b6aSSam Leffler };
5211be50176SSam Leffler 
52268e8e04eSSam Leffler struct ieee80211_clone_params {
52368e8e04eSSam Leffler 	char	icp_parent[IFNAMSIZ];		/* parent device */
52468e8e04eSSam Leffler 	int	icp_opmode;			/* operating mode */
52568e8e04eSSam Leffler };
5261a1e1d21SSam Leffler #endif /* __FreeBSD__ */
5271a1e1d21SSam Leffler 
5281a1e1d21SSam Leffler #endif /* _NET80211_IEEE80211_IOCTL_H_ */
529