The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net80211/ieee80211_ioctl.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 851ba1eeca7a6a83f42185f7c9e2b323


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.