179bc1451SSam Leffler.\"- 279bc1451SSam Leffler.\" Copyright (c) 2009 Sam Leffler, Errno Consulting 379bc1451SSam Leffler.\" All rights reserved. 479bc1451SSam Leffler.\"" 579bc1451SSam Leffler.\" Redistribution and use in source and binary forms, with or without 679bc1451SSam Leffler.\" modification, are permitted provided that the following conditions 779bc1451SSam Leffler.\" are met: 879bc1451SSam Leffler.\" 1. Redistributions of source code must retain the above copyright 979bc1451SSam Leffler.\" notice, this list of conditions and the following disclaimer, 1079bc1451SSam Leffler.\" without modification. 1179bc1451SSam Leffler.\" 2. Redistributions in binary form must reproduce at minimum a disclaimer 1279bc1451SSam Leffler.\" similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 1379bc1451SSam Leffler.\" redistribution must be conditioned upon including a substantially 1479bc1451SSam Leffler.\" similar Disclaimer requirement for further binary redistribution. 1579bc1451SSam Leffler.\" 1679bc1451SSam Leffler.\" NO WARRANTY 1779bc1451SSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1879bc1451SSam Leffler.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1979bc1451SSam Leffler.\" LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 2079bc1451SSam Leffler.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 2179bc1451SSam Leffler.\" THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 2279bc1451SSam Leffler.\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2379bc1451SSam Leffler.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2479bc1451SSam Leffler.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 2579bc1451SSam Leffler.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2679bc1451SSam Leffler.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 2779bc1451SSam Leffler.\" THE POSSIBILITY OF SUCH DAMAGES. 2879bc1451SSam Leffler.\" 2979bc1451SSam Leffler.\" $FreeBSD$ 3079bc1451SSam Leffler.\" 3179bc1451SSam Leffler.Dd July 10, 2009 3279bc1451SSam Leffler.Dt NET80211 4 3379bc1451SSam Leffler.Os 3479bc1451SSam Leffler.Sh NAME 3579bc1451SSam Leffler.Nm net80211 3679bc1451SSam Leffler.Nd standard interface to IEEE 802.11 devices 3779bc1451SSam Leffler.Sh SYNOPSIS 3879bc1451SSam Leffler.In sys/types.h 3979bc1451SSam Leffler.In sys/socket.h 4079bc1451SSam Leffler.In net/if.h 4179bc1451SSam Leffler.In net/ethernet.h 4279bc1451SSam Leffler.In net80211/ieee80211_ioctl.h 4379bc1451SSam Leffler.Sh DESCRIPTION 4479bc1451SSam LefflerThis section describes the standard programming 4579bc1451SSam Lefflerinterface to configure and retrieve status information 4679bc1451SSam Lefflerfor IEEE 802.11 devices that depend on the 4779bc1451SSam Leffler.Xr wlan 4 4879bc1451SSam Lefflermodule for operation. 4979bc1451SSam LefflerThe interface is via one 5079bc1451SSam Lefflerof the following 5179bc1451SSam Leffler.Xr ioctl 2 5279bc1451SSam Lefflercalls on a socket: 5379bc1451SSam Leffler.Bl -tag -width ".Dv SIOCG80211" 5479bc1451SSam Leffler.It Dv SIOCG80211 5579bc1451SSam LefflerGet configuration or status information. 5679bc1451SSam Leffler.It Dv SIOCS80211 5779bc1451SSam LefflerSet configuration information. 5879bc1451SSam Leffler.El 5979bc1451SSam Leffler.Pp 6079bc1451SSam LefflerThese requests are made via a modified 6179bc1451SSam Leffler.Vt ifreq 6279bc1451SSam Lefflerstructure. 6379bc1451SSam LefflerThis structure is defined as follows: 6479bc1451SSam Leffler.Bd -literal 6579bc1451SSam Lefflerstruct ieee80211req { 6679bc1451SSam Leffler char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */ 676b99842aSEd Schouten uint16_t i_type; /* req type */ 6879bc1451SSam Leffler int16_t i_val; /* Index or simple value */ 6979bc1451SSam Leffler int16_t i_len; /* Index or simple value */ 7079bc1451SSam Leffler void *i_data; /* Extra data */ 7179bc1451SSam Leffler}; 7279bc1451SSam Leffler.Ed 7379bc1451SSam Leffler.Pp 7479bc1451SSam LefflerRequests that are not supported by the underlying device return 7579bc1451SSam Leffler-1 and set the global variable errno to 7679bc1451SSam Leffler.Er EOPNOTSUPP . 7779bc1451SSam Leffler.Dv SIOCG80211 7879bc1451SSam Lefflerrequests that return data to an application place small values in 7979bc1451SSam Leffler.Va i_val 8079bc1451SSam Leffleror in a user-specified buffer pointed to by 8179bc1451SSam Leffler.Va i_data . 8279bc1451SSam LefflerWhen an indirect buffer is used 8379bc1451SSam Leffler.Va i_len 8479bc1451SSam Lefflerspecifies how large the indirect buffer is and on return it is set by the 8579bc1451SSam Lefflersystem to the actual amount of data returned. 8679bc1451SSam Leffler.Dv SIOCS80211 8779bc1451SSam Lefflerrequests use a similar scheme with data passed to the system taken either 8879bc1451SSam Lefflerfrom 8979bc1451SSam Leffler.Va i_val 9079bc1451SSam Leffleror an indirect buffer pointed to by 9179bc1451SSam Leffler.Va i_data . 9279bc1451SSam Leffler.Pp 9379bc1451SSam LefflerFor 9479bc1451SSam Leffler.Dv SIOCG80211 9579bc1451SSam Lefflerthe following values of 9679bc1451SSam Leffler.Va i_type 9779bc1451SSam Lefflerare valid: 9879bc1451SSam Leffler.Bl -tag -width indent 9979bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU 10079bc1451SSam LefflerReturn whether or not AMPDU is enabled in 10179bc1451SSam Leffler.Va i_val . 10279bc1451SSam LefflerAMPDU is an aggregation scheme that is part of the 802.11n specification 10379bc1451SSam Lefflerand is used only when operating on an HT channel. 10479bc1451SSam LefflerThe value returned is one of: 10579bc1451SSam Leffler0 (AMPDU disabled), 10679bc1451SSam Leffler1 (AMPDU enabled for transmit), 10779bc1451SSam Leffler2 (AMPDU enabled for receive), 10879bc1451SSam Lefflerand 10979bc1451SSam Leffler3 (AMPDU enabled for transmit and receive). 11079bc1451SSam LefflerThe 802.11n specification says a compliant station must receive AMPDU but 11179bc1451SSam Lefflermay not support transmitting AMPDU frames. 11279bc1451SSam LefflerDisabling AMPDU receive is mainly useful for testing and working around bugs. 11379bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_DENSITY 11479bc1451SSam LefflerReturn the minimum density for bursting AMPDU frames in 11579bc1451SSam Leffler.Va i_val . 11679bc1451SSam LefflerThe value returned is one of: 11779bc1451SSam Leffler0 (no time restriction), 11879bc1451SSam Leffler1 (1/4 usec), 11979bc1451SSam Leffler2 (1/2 usec), 12079bc1451SSam Leffler3 (1 usec), 12179bc1451SSam Leffler4 (2 usec), 12279bc1451SSam Leffler5 (4 usec), 12379bc1451SSam Leffler6 (8 usec), 12479bc1451SSam Lefflerand 12579bc1451SSam Leffler7 (16 usec). 12679bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_LIMIT 12779bc1451SSam LefflerReturn the limit on the size of AMPDU frames in 12879bc1451SSam Leffler.Va i_val . 12979bc1451SSam LefflerThe value returned is one of: 13079bc1451SSam Leffler0 (8 kilobytes), 13179bc1451SSam Leffler1 (16 kilobytes), 13279bc1451SSam Leffler2 (32 kilobytes), 13379bc1451SSam Lefflerand 13479bc1451SSam Leffler3 (64 kilobytes). 13579bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU 13679bc1451SSam LefflerReturn whether or not AMSDU is enabled in 13779bc1451SSam Leffler.Va i_val . 13879bc1451SSam LefflerAMSDU is an aggregation scheme that is part of the 802.11n specification 13979bc1451SSam Lefflerand is used only when operating on an HT channel. 14079bc1451SSam LefflerThe value returned is one of: 14179bc1451SSam Leffler0 (AMSDU disabled), 14279bc1451SSam Leffler1 (AMSDU enabled for transmit), 14379bc1451SSam Leffler2 (AMSDU enabled for receive), 14479bc1451SSam Lefflerand 14579bc1451SSam Leffler3 (AMSDU enabled for transmit and receive). 14679bc1451SSam LefflerThe 802.11n specification says a compliant station must receive AMSDU but 14779bc1451SSam Lefflermay not support transmitting AMSDU frames. 14879bc1451SSam LefflerDisabling AMSDU receive is mainly useful for testing and working around bugs. 14979bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU_LIMIT 15079bc1451SSam LefflerReturn the limit on the size of AMSDU frames in 15179bc1451SSam Leffler.Va i_val . 15279bc1451SSam LefflerThe value returned is one of: 15379bc1451SSam Leffler3839 (bytes) 15479bc1451SSam Lefflerand 15579bc1451SSam Leffler7935 (bytes). 15679bc1451SSam LefflerNote these values are specified by 802.11n; arbitrary values are not allowed. 15779bc1451SSam Leffler.It Dv IEEE80211_IOC_APBRIDGE 15879bc1451SSam LefflerReturn whether AP bridging is enabled in 15979bc1451SSam Leffler.Va i_val . 16079bc1451SSam LefflerNormally packets sent between stations associated 16179bc1451SSam Lefflerto the same access point are delivered without going through system layers 16279bc1451SSam Lefflerthat do packet filtering; when AP bridging is disabled packets are 16379bc1451SSam Lefflerpassed up the system to be forwarded using some other mechanism. 16479bc1451SSam LefflerThis value will be non-zero when AP bridging is enabled and otherwise zero. 16579bc1451SSam Leffler.It Dv IEEE80211_IOC_APPIE 16679bc1451SSam LefflerReturn an application information element via 16779bc1451SSam Leffler.Va i_data . 16879bc1451SSam LefflerApplication IE's are maintained for many 802.11 frames; the 16979bc1451SSam Lefflerrequest must identify the frame to return an IE for in 17079bc1451SSam Leffler.Va i_val . 17179bc1451SSam LefflerFor example, to retrieve the IE sent in each Beacon frame 17279bc1451SSam Leffler.Va i_val 17379bc1451SSam Lefflerwould be set to 17479bc1451SSam Leffler.Va IEEE80211_FC0_SUBTYPE_BEACON | IEEE80211_FC0_TYPE_MGT . 17579bc1451SSam LefflerIf no information element is installed then 17679bc1451SSam Leffler.Er EINVAL 17779bc1451SSam Leffleris returned. 17879bc1451SSam LefflerIf the data buffer for returning data is too small to hold the information 17979bc1451SSam Lefflerelement the value is truncated; this permits querying the presence of 18079bc1451SSam Lefflerdata by requesting zero bytes of data be returned. 18179bc1451SSam Leffler.It Dv IEEE80211_IOC_AUTHMODE 18279bc1451SSam LefflerReturn the current authentication mode in 18379bc1451SSam Leffler.Va i_val . 18479bc1451SSam LefflerValid values are 18579bc1451SSam Leffler.Dv IEEE80211_AUTH_NONE 18679bc1451SSam Leffler(no authentication), 18779bc1451SSam Leffler.Dv IEEE80211_AUTH_OPEN 18879bc1451SSam Leffler(open authentication), 18979bc1451SSam Leffler.Dv IEEE80211_AUTH_SHARED 19079bc1451SSam Leffler(shared key authentication), 19179bc1451SSam Leffler.Dv IEEE80211_AUTH_8021X 19279bc1451SSam Leffler(802.1x only authentication), 19379bc1451SSam Lefflerand 19479bc1451SSam Leffler.Dv IEEE80211_AUTH_WPA 19579bc1451SSam Leffler(WPA/802.11i/802.1x authentication). 19679bc1451SSam Leffler.It Dv IEEE80211_IOC_BEACON_INTERVAL 19779bc1451SSam LefflerReturn the time between Beacon frames (in TU) in 19879bc1451SSam Leffler.Va i_val . 19979bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN 20079bc1451SSam LefflerReturn whether background scanning is enabled in 20179bc1451SSam Leffler.Va i_val . 20279bc1451SSam LefflerWhen this value is non-zero and operating in station mode 20379bc1451SSam Lefflerthe station will periodically leave 20479bc1451SSam Lefflerthe current channel and scan for neighboring stations. 20579bc1451SSam LefflerSee also 20679bc1451SSam Leffler.Dv IEEE80211_IOC_BGSCAN_IDLE 20779bc1451SSam Lefflerand 20879bc1451SSam Leffler.Dv IEEE80211_IOC_BGSCAN_INTERVAL . 20979bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_IDLE 21079bc1451SSam LefflerReturn in 21179bc1451SSam Leffler.Va i_val 21279bc1451SSam Lefflerthe minimum time (msecs) a station must be idle 21379bc1451SSam Leffler(i.e. not transmitting or receiving frames) 21479bc1451SSam Lefflerbefore it will do a background scan. 21579bc1451SSam LefflerSee also 21679bc1451SSam Leffler.Dv IEEE80211_IOC_BGSCAN_INTERVAL . 21779bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_INTERVAL 21879bc1451SSam LefflerReturn in 21979bc1451SSam Leffler.Va i_val 22079bc1451SSam Lefflerthe minimum time (seconds) between background scan operations. 22179bc1451SSam LefflerSee also 22279bc1451SSam Leffler.Dv IEEE80211_IOC_BGSCAN_IDLE . 22379bc1451SSam Leffler.It Dv IEEE80211_IOC_BMISSTHRESHOLD 22479bc1451SSam LefflerReturn in 22579bc1451SSam Leffler.Va i_val 22679bc1451SSam Lefflerthe number of consecutive missed Beacon frames before the system will 22779bc1451SSam Lefflerattempt to roam to a different/better access point. 22879bc1451SSam Leffler.It Dv IEEE80211_IOC_BSSID 22979bc1451SSam LefflerReturn the MAC address for the current BSS identifier via 23079bc1451SSam Leffler.Va i_data . 23179bc1451SSam LefflerWhen the interface is running, the bssid is either the value 23279bc1451SSam Lefflerconfigured locally (e.g. for an IBSS network started by the local station) 233c2025a76SJoel Dahlor the value adopted when joining an existing network. 23479bc1451SSam LefflerFor WDS interfaces this value is the address of the remote station. 23579bc1451SSam LefflerWhen the interface is not running, the bssid returned is the desired 23679bc1451SSam Lefflerbssid, if any, that has been configured. 23779bc1451SSam Leffler.It Dv IEEE80211_IOC_BURST 23879bc1451SSam LefflerReturn whether or not packet bursting is enabled in 23979bc1451SSam Leffler.Va i_val . 24079bc1451SSam LefflerIf this value is non-zero then the system will try to send packets closely 24179bc1451SSam Lefflerspaced to improve throughput. 24279bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANINFO 24379bc1451SSam LefflerReturn the set of available channels via 24479bc1451SSam Leffler.Va i_data . 24579bc1451SSam LefflerNote this data should be used by user applications to map between 24679bc1451SSam Lefflerchannel specifications (frequency and attributes) and IEEE channel numbers 24779bc1451SSam Leffleras user applications may not have the necessary information to do 24879bc1451SSam Lefflerthis directly (e.g. for 900MHz radios, operation in the Public Safety Band). 24979bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANLIST 25079bc1451SSam LefflerReturn the current list of usable channels via 25179bc1451SSam Leffler.Va i_data . 25279bc1451SSam LefflerThe channel list is returned as a bit vector with bit N set to 1 if 25379bc1451SSam LefflerIEEE channel number N is available for use. 25479bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANNEL 25579bc1451SSam LefflerReturn the IEEE channel number of the current channel in 25679bc1451SSam Leffler.Va i_val . 25779bc1451SSam LefflerNote this request is deprecated; use 25879bc1451SSam Leffler.Dv IEEE80211_IOC_CURCHAN 25979bc1451SSam Lefflerinstead. 26079bc1451SSam Leffler.It Dv IEEE80211_IOC_COUNTERMEASURES 26179bc1451SSam LefflerReturn whether TKIP Countermeasures are enabled in 26279bc1451SSam Leffler.Va i_val . 26379bc1451SSam LefflerThis value will be non-zero when Countermeasures are enabled and 26479bc1451SSam Lefflerotherwise zero. 26579bc1451SSam Leffler.It Dv IEEE80211_IOC_CURCHAN 26679bc1451SSam LefflerReturn information for the current channel via 26779bc1451SSam Leffler.Va i_data . 26879bc1451SSam LefflerThis information includes the IEEE channel number, the frequency, and 26979bc1451SSam Lefflerattributes that describe the operating constraints (e.g. Passive Scan, 27079bc1451SSam LefflerDFS, usage restrictions). 27179bc1451SSam Leffler.It Dv IEEE80211_IOC_DEVCAPS 27279bc1451SSam LefflerReturn device capabilities in the data buffer pointed at by 27379bc1451SSam Leffler.Va i_data . 27479bc1451SSam LefflerThe buffer must be large enough to return the number of available 27579bc1451SSam Lefflerchannels but otherwise may be made small to limit how much information 27679bc1451SSam Leffleris returned. 27779bc1451SSam Leffler.It Dv IEEE80211_IOC_DFS 27879bc1451SSam LefflerReturn whether or not Dynamic Frequency Selection (DFS) is enabled in 27979bc1451SSam Leffler.Va i_val . 28079bc1451SSam LefflerDFS embodies several facilities including detection of overlapping 28179bc1451SSam Lefflerradar signals, dynamic transmit power control, and channel selection 28279bc1451SSam Leffleraccording to a least-congested criteria. 283*1748d1e5SGavin AtkinsonDFS support is mandatory for some 5GHz frequencies in certain 28479bc1451SSam Lefflerlocales (e.g. ETSI). 28579bc1451SSam LefflerBy default DFS is enabled according to the regulatory definitions 286f6ac2391SJoel Dahland the current country code, regdomain, and channel. 28779bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTD 28879bc1451SSam LefflerReturn whether or not 802.11d support is enabled in 28979bc1451SSam Leffler.Va i_val . 29079bc1451SSam LefflerWhen 802.11d is enabled in station mode, Beacon frames that advertise 29179bc1451SSam Lefflera country code different than the currently configured country code will 29279bc1451SSam Lefflercause an event to be dispatched to user applications. 29379bc1451SSam LefflerThis event can be used by the station to adopt that country code and 29479bc1451SSam Leffleroperate according to the associated regulatory constraints. 29579bc1451SSam LefflerWhen operating as an access point with 802.11d enabled the Beacon and 29679bc1451SSam LefflerProbeResponse frames transmitted will advertise the current regulatory 29779bc1451SSam Lefflerdomain settings. 29879bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTH 29979bc1451SSam LefflerReturn whether 802.11h support is enabled in 30079bc1451SSam Leffler.Va i_val . 30179bc1451SSam LefflerWhen 802.11h is enabled Beacon and ProbeResponse frames will have 30279bc1451SSam Lefflerthe SpectrumMgt bit set in the capabilities field and 30379bc1451SSam Lefflercountry and power constraint information elements will be present. 30479bc1451SSam Leffler802.11h support also includes handling Channel Switch Announcements (CSA) 30579bc1451SSam Lefflerwhich are a mechanism to coordinate channel changes by an access point. 30679bc1451SSam LefflerBy default 802.11h is enabled if the device is capable. 30779bc1451SSam Leffler.It Dv IEEE80211_IOC_DROPUNENCRYPTED 30879bc1451SSam LefflerReturn, in 30979bc1451SSam Leffler.Va i_val , 31079bc1451SSam Lefflerwhether unencrypted packets transmit/received should be discarded. 311b06cfd40SJoel DahlThis value will be zero if unencrypted packets will be accepted and 31279bc1451SSam Lefflernon-zero if they are to be discarded. 31379bc1451SSam Leffler.It Dv IEEE80211_IOC_DTIM_PERIOD 31479bc1451SSam LefflerReturn the period (in beacon intervals) between DTIM events in 31579bc1451SSam Leffler.Va i_val . 31679bc1451SSam Leffler.It Dv IEEE80211_IOC_DWDS 31779bc1451SSam LefflerReturn, in 31879bc1451SSam Leffler.Va i_val , 31979bc1451SSam Lefflerwhether or not Dynamic WDS support is enabled. 32079bc1451SSam LefflerDynamic WDS is a facility by which packets may be tunneled over normal 32179bc1451SSam LefflerInfrastructure BSS associations using 4-address (WDS) frames. 32279bc1451SSam Leffler.It Dv IEEE80211_IOC_FF 32379bc1451SSam LefflerReturn, in 32479bc1451SSam Leffler.Va i_val , 32579bc1451SSam Lefflerwhether Atheros fast-frames support is enabled. 32679bc1451SSam LefflerFast-frames is a non-standard protocol extension that aggregates multiple 32779bc1451SSam Lefflerframes to improve throughput. 32879bc1451SSam LefflerNote that enabling fast-frames support does not guarantee use; 32979bc1451SSam Lefflerthe client and access point must negotiate its use. 33079bc1451SSam Leffler.It Dv IEEE80211_IOC_FRAGTHRESHOLD 33179bc1451SSam LefflerReturn, in 33279bc1451SSam Leffler.Va i_val , 33379bc1451SSam Lefflerthe threshold (in bytes) for enabling fragmentation frames. 33479bc1451SSam LefflerPackets larger than this value will automatically be split into multiple 33579bc1451SSam Lefflerfragmented frames that are sent one after the other. 33679bc1451SSam Leffler.It Dv IEEE80211_IOC_GREENFIELD 33779bc1451SSam LefflerReturn, in 33879bc1451SSam Leffler.Va i_val , 33979bc1451SSam Lefflerwhether or not Greenfield preamble use is enabled. 34079bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 34179bc1451SSam Leffler.It Dv IEEE80211_IOC_HIDESSID 34279bc1451SSam LefflerReturn, in 34379bc1451SSam Leffler.Va i_val , 34479bc1451SSam Lefflerwhether SSID hiding/cloaking is enabled. 34579bc1451SSam LefflerSSID hiding is only meaningful when operating as an access point. 34679bc1451SSam LefflerWhen this is enabled Beacon frames do not include the SSID and 34779bc1451SSam LefflerProbeRequest frames are not answered unless they include the AP's SSID. 34879bc1451SSam LefflerThis value will be non-zero when SSID hiding is enabled and otherwise zero. 34979bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCOMPAT 35079bc1451SSam LefflerReturn, in 35179bc1451SSam Leffler.Va i_val , 35279bc1451SSam Lefflerwhether or not 802.11n compatibility support is enabled. 35379bc1451SSam LefflerThe 802.11n protocol specification went through several incompatible iterations. 35479bc1451SSam LefflerSome vendors implemented 11n support to older specifications that 35579bc1451SSam Lefflerwill not interoperate with a purely 11n-compliant station. 35679bc1451SSam LefflerIn particular the information elements included in management frames 35779bc1451SSam Lefflerfor old devices are different. 35879bc1451SSam LefflerWhen compatibility support is enabled both standard and compatible data 35979bc1451SSam Lefflerwill be provided and/or accepted. 36079bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCONF 36179bc1451SSam LefflerReturn the setting for automatic promotion of HT channels in 36279bc1451SSam Leffler.Va i_val . 36379bc1451SSam LefflerPromotion happens when the system must select a channel and may choose 36479bc1451SSam Lefflerbetween legacy, HT20, and HT40 operation (e.g. when scanning). 36579bc1451SSam LefflerValid values are: 36679bc1451SSam Leffler0 (do not promote, use legacy), 36779bc1451SSam Leffler1 (promote to HT20), 36879bc1451SSam Lefflerand 36979bc1451SSam Leffler2 (promote to HT40), 37079bc1451SSam Leffler.It Dv IEEE80211_IOC_HTPROTMODE 37179bc1451SSam LefflerReturn, in 37279bc1451SSam Leffler.Va i_val , 37379bc1451SSam Lefflerthe technique used to protect HT frames in a mixed 802.11n network. 37479bc1451SSam LefflerValid values are: 37579bc1451SSam Leffler.Dv IEEE80211_PROTMODE_OFF 37679bc1451SSam Leffler(no protection enabled) 37779bc1451SSam Lefflerand 37879bc1451SSam Leffler.Dv IEEE80211_PROTMODE_RTSCTS 37979bc1451SSam Leffler(send RTS and wait for CTS). 38079bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_MAXHOPS 38179bc1451SSam LefflerReturn the maximum acceptable hop count in an HWMP path in 38279bc1451SSam Leffler.Va i_val . 38379bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_ROOTMODE 38479bc1451SSam LefflerReturn the setting for Mesh root mode operation in 38579bc1451SSam Leffler.Va i_val . 38679bc1451SSam LefflerValid values are: 38779bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_DISABLED 38879bc1451SSam Leffler(root mode is disabled), 38979bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_NORMAL 39079bc1451SSam Leffler(send broadcast Path Request frames), 39179bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_PROACTIVE 39279bc1451SSam Leffler(send broadcast Path Request frames and force replies) 39379bc1451SSam Lefflerand 39479bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_RANN 39579bc1451SSam Leffler(send broadcast Root Announcement (RANN) frames). 39679bc1451SSam Leffler.It Dv IEEE80211_IOC_INACTIVITY 39779bc1451SSam LefflerReturn whether or not the system handles inactivity processing in 39879bc1451SSam Leffler.Va i_val . 39979bc1451SSam LefflerWhen inactivity processing is enabled the system will track stations 400b06cfd40SJoel Dahlthat have not transmitted frames and periodically probe them to 40179bc1451SSam Lefflercheck if they are still present. 40279bc1451SSam LefflerStations that are inactive and do not respond to probes are dropped. 40379bc1451SSam Leffler.It Dv IEEE80211_IOC_MACCMD 40479bc1451SSam LefflerReturn information about the state of the MAC address 40579bc1451SSam Leffleraccess control list (ACL) system. 40679bc1451SSam LefflerThere are two requests supported: 40779bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY 40879bc1451SSam Leffler(to retrieve the current policy in 40979bc1451SSam Leffler.Va i_val ), 41079bc1451SSam Lefflerand 41179bc1451SSam Leffler.Dv IEEE80211_MACCMD_LIST 41279bc1451SSam Lefflerto retrieve the list installed/active ACL's via 41379bc1451SSam Leffler.Va i_data . 41479bc1451SSam LefflerThe 41579bc1451SSam Leffler.Xr wlan_acl 4 41679bc1451SSam Lefflermodule must be installed and enabled or 41779bc1451SSam Leffler.Er EINVAL 41879bc1451SSam Lefflerwill be returned. 41979bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_AP 42079bc1451SSam LefflerReturn whether or not Mesh AP support is enabled in 42179bc1451SSam Leffler.Va i_val . 42279bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_ID 42379bc1451SSam LefflerReturn the Mesh ID in the buffer pointed to by 42479bc1451SSam Leffler.Va i_data . 42579bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_FWRD 42679bc1451SSam LefflerReturn whether or not packet forwarding support is enabled in 42779bc1451SSam Leffler.Va i_val . 42879bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_METRIC 42979bc1451SSam LefflerReturn the link metric protocol in the buffer pointed to by 43079bc1451SSam Leffler.Va i_data . 43179bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_PATH 43279bc1451SSam LefflerReturn the path selection protocol in the buffer pointed to by 43379bc1451SSam Leffler.Va i_data . 43479bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_RTCMD 43579bc1451SSam LefflerReturn information about the state of the Mesh routing tables. 43679bc1451SSam LefflerOne request is supported: 43779bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_LIST 43879bc1451SSam Lefflerto retrieve the contents of the routing table in the buffer pointed to by 43979bc1451SSam Leffler.Va i_data . 44079bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_TTL 44179bc1451SSam LefflerReturn, in 44279bc1451SSam Leffler.Va i_val , 44379bc1451SSam Lefflerthe Mesh Time To Live (TTL) setting installed in packets 44479bc1451SSam Lefflertransmitted by this mesh node. 44579bc1451SSam Leffler.It Dv IEEE80211_IOC_NUMSSIDS 44679bc1451SSam LefflerReturn the number of SSIDs supported in 44779bc1451SSam Leffler.Va i_val . 44879bc1451SSam Leffler.It Dv IEEE80211_IOC_NUMWEPKEYS 44979bc1451SSam LefflerReturn the number of WEP keys supported in 45079bc1451SSam Leffler.Va i_val 45179bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVE 45279bc1451SSam LefflerReturn the current powersaving mode in 45379bc1451SSam Leffler.Va i_val . 45479bc1451SSam LefflerValid values are 45579bc1451SSam Leffler.Dv IEEE80211_POWERSAVE_OFF 45679bc1451SSam Leffler(power save operation is disabled) 45779bc1451SSam Lefflerand 45879bc1451SSam Leffler.Dv IEEE80211_POWERSAVE_ON 45979bc1451SSam Leffler(power save operation is enabled). 46079bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVESLEEP 46179bc1451SSam LefflerReturn the powersave sleep time in TU in 46279bc1451SSam Leffler.Va i_val . 46379bc1451SSam LefflerThis value is also termed the listen interval and represents the maximum time 46479bc1451SSam Lefflera station will sleep before waking to retrieve packets buffered by 46579bc1451SSam Leffleran access point. 46679bc1451SSam Leffler.It Dv IEEE80211_IOC_PRIVACY 46779bc1451SSam LefflerReturn the current MLME setting for PRIVACY in 46879bc1451SSam Leffler.Va i_val . 46979bc1451SSam LefflerWhen PRIVACY is enabled all data packets must be encrypted. 47079bc1451SSam LefflerThis value will be zero if PRIVACY is disabled and 47179bc1451SSam Lefflernon-zero when PRIVACY is enabled. 47279bc1451SSam Leffler.It Dv IEEE80211_IOC_PROTMODE 47379bc1451SSam LefflerReturn the current 802.11g protection mode in 47479bc1451SSam Leffler.Va i_val . 47579bc1451SSam LefflerProtection is the mechanism used to safeguard 802.11b stations operating 47679bc1451SSam Leffleron an 802.11g network. 47779bc1451SSam LefflerValid values are 47879bc1451SSam Leffler.Dv IEEE80211_PROTMODE_OFF 47979bc1451SSam Leffler(no protection enabled), 48079bc1451SSam Leffler.Dv IEEE80211_PROTMODE_CTS 48179bc1451SSam Leffler(send CTS to yourself), 48279bc1451SSam Lefflerand 48379bc1451SSam Leffler.Dv IEEE80211_PROTMODE_RTSCTS 48479bc1451SSam Leffler(send RTS and wait for CTS). 48579bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREG 48679bc1451SSam LefflerReturn whether ``pure 11g'' mode is enabled in 48779bc1451SSam Leffler.Va i_val . 488c2025a76SJoel DahlThis setting is meaningful only for access point operation; 48979bc1451SSam Lefflerwhen non-zero, 802.11b stations will not be allowed to associate. 49079bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREN 49179bc1451SSam LefflerReturn whether ``pure 11n'' mode is enabled in 49279bc1451SSam Leffler.Va i_val . 493c2025a76SJoel DahlThis setting is meaningful only for access point operation; 49479bc1451SSam Lefflerwhen non-zero, legacy (non-11n capable) stations will not be 49579bc1451SSam Lefflerallowed to associate. 49679bc1451SSam Leffler.It Dv IEEE80211_IOC_REGDOMAIN 49779bc1451SSam LefflerReturn the regulatory state in the buffer pointed to by 49879bc1451SSam Leffler.Va i_data . 49979bc1451SSam Leffler.It Dv IEEE80211_IOC_RIFS 50079bc1451SSam LefflerReturn whether or not Reduced InterFrame Spacing (RIFS) is enabled in 50179bc1451SSam Leffler.Va i_val . 50279bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 50379bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAM 50479bc1451SSam LefflerReturn station roaming parameters in the buffer pointed to by 50579bc1451SSam Leffler.Va i_data . 50679bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAMING 50779bc1451SSam LefflerReturn the current roaming mode in 50879bc1451SSam Leffler.Va i_val . 50979bc1451SSam LefflerRoaming mode specifies which entity controls operation of the MLME 51079bc1451SSam Lefflerstate machine when operating as a station in an Infrastructure BSS. 51179bc1451SSam LefflerValid values are: 51279bc1451SSam Leffler.Dv IEEE80211_ROAMING_DEVICE 51379bc1451SSam Leffler(driver/firmware is in control), 51479bc1451SSam Leffler.Dv IEEE80211_ROAMING_AUTO 51579bc1451SSam Leffler(host 802.11 layer is in control), 51679bc1451SSam Lefflerand 51779bc1451SSam Leffler.Dv IEEE80211_ROAMING_MANUAL 51879bc1451SSam Leffler(application is in control). 51979bc1451SSam Leffler.It Dv IEEE80211_IOC_RTSTHRESHOLD 52079bc1451SSam LefflerReturn the threshold (in bytes) for enabling transmission of RTS frames in 52179bc1451SSam Leffler.Va i_val . 52279bc1451SSam LefflerPackets larger than this value will automatically have an RTS frame 52379bc1451SSam Lefflersent preceding it to reduce the likelihood of packet loss. 52479bc1451SSam Leffler.It Dv IEEE80211_IOC_SCAN_RESULTS 52579bc1451SSam LefflerReturn the current contents of the scan cache in the data area pointed to by 52679bc1451SSam Leffler.Va i_data . 52779bc1451SSam Leffler.It Dv IEEE80211_IOC_SCANVALID 52879bc1451SSam LefflerReturn in 52979bc1451SSam Leffler.Va i_val 53079bc1451SSam Lefflerhow long (in seconds) results from a scan operation will be considered valid. 53179bc1451SSam LefflerWhen scan results are no longer valid and they are needed (e.g. to roam) the 53279bc1451SSam Lefflersystem will initiate a scan operation to replenish the scan cache. 53379bc1451SSam Leffler.It Dv IEEE80211_IOC_SHORTGI 53479bc1451SSam LefflerReturn whether or not Short Guard Interval (SGI) is enabled in 53579bc1451SSam Leffler.Va i_val . 53679bc1451SSam LefflerNote SGI is only used when operating with 802.11n on an HT channel. 53779bc1451SSam Leffler.It Dv IEEE80211_IOC_SMPS 53879bc1451SSam LefflerReturn the Spatial Multiplexing Power Save (SMPS) setting in 53979bc1451SSam Leffler.Va i_val . 54079bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 54179bc1451SSam LefflerValid values are: 54279bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_DYNAMIC 54379bc1451SSam Leffler(Dynamic SMPS is enabled), 54479bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_ENA 54579bc1451SSam Leffler(Static SMPS is enabled), 54679bc1451SSam Lefflerand 54779bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_OFF 54879bc1451SSam Leffler(SMPS is disabled). 54979bc1451SSam Leffler.It Dv IEEE80211_IOC_SSID 55079bc1451SSam LefflerReturn the requested SSID in the buffer pointed to by 55179bc1451SSam Leffler.Va i_data . 55279bc1451SSam LefflerIf 55379bc1451SSam Leffler.Va i_val 55479bc1451SSam Leffleris \(>= 0 then the request refers to the configured value for that slot. 55579bc1451SSam LefflerGenerally, 0 is the only valid value, but some interfaces support more 55679bc1451SSam LefflerSSIDs. 55779bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_INFO 55879bc1451SSam LefflerReturn information about the current state of the specified station(s) via 55979bc1451SSam Leffler.Va i_data . 56079bc1451SSam LefflerThe MAC address of a single station may be passed in or, if the broadcast 56179bc1451SSam Leffleraddress is supplied, information about all stations will be returned. 56279bc1451SSam LefflerIf a single station is requested and the MAC address is unknown then 56379bc1451SSam Leffler.Er ENOENT 56479bc1451SSam Lefflerwill be returned. 56579bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_STATS 56679bc1451SSam LefflerReturn collected statistics for the specified station via 56779bc1451SSam Leffler.Va i_data . 56879bc1451SSam LefflerThe MAC address of the desired station is passed in; if it is unknown 56979bc1451SSam Leffler.Er ENOENT 57079bc1451SSam Lefflerwill be returned. 57179bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_VLAN 57279bc1451SSam LefflerReturn any VLAN tag assigned to a station via 57379bc1451SSam Leffler.Va i_data . 57479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOT 57579bc1451SSam LefflerReturn the slot number for the station in 57679bc1451SSam Leffler.Va i_val . 57779bc1451SSam LefflerSlot number zero is the master station in a TDMA network. 57879bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTCNT 57979bc1451SSam LefflerReturn the count of slots in the TDMA network in 58079bc1451SSam Leffler.Va i_val . 58179bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTLEN 58279bc1451SSam LefflerReturn the length (in usecs) of the TDMA slot assigned to each 58379bc1451SSam Lefflerstation in the network in 58479bc1451SSam Leffler.Va i_val . 58579bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_BINTERVAL 58679bc1451SSam LefflerReturn the number of superframes between Beacon frames in 58779bc1451SSam Leffler.Va i_val . 58879bc1451SSam LefflerA TDMA network with N slots and slot length T has a superframe of NxT. 58979bc1451SSam Leffler.It Dv IEEE80211_IOC_TSN 59079bc1451SSam LefflerReturn whether or not Transitional Security Network (TSN) is enabled in 59179bc1451SSam Leffler.Va i_val . 59279bc1451SSam Leffler.It Dv IEEE80211_IOC_TURBOP 59379bc1451SSam LefflerReturn whether Atheros Dynamic Turbo mode is enabled in 59479bc1451SSam Leffler.Va i_val . 59579bc1451SSam LefflerDynamic Turbo mode is a non-standard protocol extension available only 59679bc1451SSam Leffleron Atheros devices where channel width is dynamically 59779bc1451SSam Lefflerchanged between 20MHz and 40MHz. 598c2025a76SJoel DahlNote that enabling Dynamic Turbo mode support does not guarantee use; 59979bc1451SSam Lefflerboth client and access point must use Atheros devices and support must 60079bc1451SSam Lefflerbe enabled on both sides. 60179bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPARAMS 60279bc1451SSam LefflerReturn transmit parameters in the buffer pointed to by 60379bc1451SSam Leffler.Va i_data . 60479bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWER 60579bc1451SSam LefflerReturn the transmit power limit in .5 dBm units in 60679bc1451SSam Leffler.Va i_val . 60779bc1451SSam LefflerThis value represents the effective maximum and is calculated according to 60879bc1451SSam Lefflerthe maximum power allowed by local regulations, any user-specified 60979bc1451SSam Lefflerpower limit, and the maximum power the device is capable of. 61079bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWMAX 61179bc1451SSam LefflerReturn the user-specified maximum transmit power in .5 dBm units in 61279bc1451SSam Leffler.Va i_val . 61379bc1451SSam LefflerThe maximum setting is applied after any regulatory cap. 61479bc1451SSam Leffler.It Dv IEEE80211_IOC_WEP 61579bc1451SSam LefflerReturn the current WEP status in 61679bc1451SSam Leffler.Va i_val . 61779bc1451SSam LefflerValid values are: 61879bc1451SSam Leffler.Dv IEEE80211_WEP_ON 61979bc1451SSam Leffler(enabled for all packets sent and received), 62079bc1451SSam Leffler.Dv IEEE80211_WEP_OFF 62179bc1451SSam Leffler(disabled), 62279bc1451SSam Lefflerand 62379bc1451SSam Leffler.Dv IEEE80211_WEP_MIXED 62479bc1451SSam Leffler(enabled for transmit and receive but also willing to receive 62579bc1451SSam Lefflerunencrypted frames). 62679bc1451SSam LefflerThis request is deprecated; use 62779bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 62879bc1451SSam Lefflerand 62979bc1451SSam Leffler.Dv IEEE80211_IOC_UNENCRYPTED 63079bc1451SSam Lefflerinstead. 63179bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPKEY 63279bc1451SSam LefflerReturn the requested WEP key via 63379bc1451SSam Leffler.Va i_data . 63479bc1451SSam LefflerThe key number is specified in 63579bc1451SSam Leffler.Va i_val 63679bc1451SSam Lefflerand may be 0-3. 63779bc1451SSam LefflerIf the device does not support returning the WEP key or the user is not 63879bc1451SSam Lefflerroot then the key may be returned as all zeros. 63979bc1451SSam LefflerThis request is deprecated in favor of 64079bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY . 64179bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPTXKEY 64279bc1451SSam LefflerReturn the number of the WEP key used for transmission in 64379bc1451SSam Leffler.Va i_val . 64479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME 64579bc1451SSam LefflerReturn whether 802.11e/WME/WMM support is enabled in 64679bc1451SSam Leffler.Va i_val . 64779bc1451SSam LefflerThis value will be non-zero when support is enabled and otherwise zero. 64879bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMIN 64979bc1451SSam LefflerReturn the WME CWmin setting (log2) for the specified Access Class (AC) in 65079bc1451SSam Leffler.Va i_val . 65179bc1451SSam LefflerThe AC is passed in through 65279bc1451SSam Leffler.Va i_len 65379bc1451SSam Lefflertogether with an optional IEEE80211_WMEPARAM_BSS flag to indicate if the 65479bc1451SSam Lefflerparameter for the BSS or the channel is desired. 65579bc1451SSam LefflerIf WME is not supported then 65679bc1451SSam Leffler.Er EINVAL 657c2025a76SJoel Dahlwill be returned. 65879bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMAX 65979bc1451SSam LefflerReturn the WME CWmax setting (log2) for the specified Access Class (AC) in 66079bc1451SSam Leffler.Va i_val . 66179bc1451SSam LefflerSee 66279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 66379bc1451SSam Lefflerabove for more details. 66479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_AIFS 66579bc1451SSam LefflerReturn the WME AIFS setting for the specified Access Class (AC) in 66679bc1451SSam Leffler.Va i_val . 66779bc1451SSam LefflerSee 66879bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 66979bc1451SSam Lefflerabove for more details. 67079bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_TXOPLIMIT 67179bc1451SSam LefflerReturn the WME TxOpLimit (msec) for the specified Access Class (AC) in 67279bc1451SSam Leffler.Va i_val . 67379bc1451SSam LefflerSee 67479bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 67579bc1451SSam Lefflerabove for more details. 67679bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACM 67779bc1451SSam LefflerReturn the WME Admission Control Mechanism (ACM) setting 67879bc1451SSam Lefflerfor the specified Access Class (AC) in 67979bc1451SSam Leffler.Va i_val . 68079bc1451SSam LefflerThis value is meaningful only for the BSS (not channel). 68179bc1451SSam LefflerSee 68279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 68379bc1451SSam Lefflerabove for more details. 68479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACKPOLICY 68579bc1451SSam LefflerReturn the WME ACK Policy setting 68679bc1451SSam Lefflerfor the specified Access Class (AC) in 68779bc1451SSam Leffler.Va i_val . 68879bc1451SSam LefflerWhen this value is zero frames will be transmitted without waiting for 68979bc1451SSam Leffleran Acknowledgement. 69079bc1451SSam LefflerThis value is meaningful only for the channel (not BSS). 69179bc1451SSam LefflerSee 69279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 69379bc1451SSam Lefflerabove for more details. 69479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPA 69579bc1451SSam LefflerReturn the WPA configuration in 69679bc1451SSam Leffler.Va i_val . 69779bc1451SSam LefflerValid values are 69879bc1451SSam Leffler0 (WPA is not enabled), 69979bc1451SSam Leffler1 (WPA1 is enabled), 70079bc1451SSam Leffler2 (WPA2/802.11i is enabled), 70179bc1451SSam Lefflerand 70279bc1451SSam Leffler3 (WPA1 and WPA2/802.11i are both enabled). 70379bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAIE 70479bc1451SSam LefflerReturn any WPA information element for an associated station via 70579bc1451SSam Leffler.Va i_data . 70679bc1451SSam LefflerThe request passed in through 70779bc1451SSam Leffler.Va i_data 70879bc1451SSam Leffleridentifies the MAC address of the desired station. 70979bc1451SSam LefflerIf an RSN (802.11i) element is present it is returned; otherwise any WPA 71079bc1451SSam Lefflerelement is returned. 71179bc1451SSam LefflerNote this request is deprecated; use 71279bc1451SSam Leffler.Dv IEEE80211_IOC_WPAIE2 71379bc1451SSam Lefflerinstead. 71479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAIE2 71579bc1451SSam LefflerReturn any WPA information elements for an associated station via 71679bc1451SSam Leffler.Va i_data . 71779bc1451SSam LefflerThe request passed in through 71879bc1451SSam Leffler.Va i_data 71979bc1451SSam Leffleridentifies the MAC address of the desired station. 72079bc1451SSam LefflerOne or both of RSN (802.11i) and WPA elements may be returned. 72179bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAKEY 72279bc1451SSam LefflerReturn the requested cryptographic key in the buffer pointed to by 72379bc1451SSam Leffler.Va i_data . 72479bc1451SSam LefflerThe key number is specified in 72579bc1451SSam Leffler.Va i_val 72679bc1451SSam Lefflerand may be 0-3. 72779bc1451SSam LefflerA key number of zero is used to retrieve a station's unicast cipher key 72879bc1451SSam Lefflerwhen operating with WPA enabled. 72979bc1451SSam LefflerIf the user is not root then the key data returned is all zeros. 73079bc1451SSam Leffler.It Dv IEEE80211_IOC_WPS 73179bc1451SSam LefflerReturn whether or not Wi-FI Protected Setup (WPS) is enabled in 73279bc1451SSam Leffler.Va i_val . 73379bc1451SSam Leffler.El 73479bc1451SSam Leffler.Pp 73579bc1451SSam LefflerFor 73679bc1451SSam Leffler.Dv SIOCS80211 73779bc1451SSam Lefflerthe following values of 73879bc1451SSam Leffler.Va i_type 73979bc1451SSam Lefflerare valid. 74079bc1451SSam LefflerNote that changing a value on an interface that is running may 74179bc1451SSam Lefflercause the interface to be 74279bc1451SSam Leffler.Sq reset . 74379bc1451SSam LefflerResets may be handled without altering the state if the parameter 74479bc1451SSam Lefflerdoes not affect the MLME state (e.g. RTS threshold), but in some 74579bc1451SSam Lefflercases the interface may need to scan for a new network or clear 74679bc1451SSam Lefflerstate (including any associated stations); in that case the interface 74779bc1451SSam Leffleris said to be 74879bc1451SSam Leffler.Sq restarted 74979bc1451SSam Leffler(it is equivalent to marking the interface down and back up). 75079bc1451SSam LefflerThe information below identifies whether changing a value affects the 75179bc1451SSam Lefflerstate of a running interface. 75279bc1451SSam Leffler.Bl -tag -width indent 75379bc1451SSam Leffler.It Dv IEEE80211_IOC_ADDMAC 75479bc1451SSam LefflerAdd an entry to the MAC address Access Control List (ACL) database using 75579bc1451SSam Lefflerthe value pointed to by 75679bc1451SSam Leffler.Va i_data . 75779bc1451SSam LefflerThe 75879bc1451SSam Leffler.Xr wlan_acl 4 75979bc1451SSam Lefflermodule must be installed and enabled or 76079bc1451SSam Leffler.Er EINVAL 76179bc1451SSam Lefflerwill be returned. 76279bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU 76379bc1451SSam LefflerSet whether or not AMPDU is enabled for transmit and/or receive 76479bc1451SSam Lefflerusing the value in 76579bc1451SSam Leffler.Va i_val . 76679bc1451SSam LefflerThis request causes a running interface operating on an HT channel 76779bc1451SSam Lefflerto be reset. 76879bc1451SSam LefflerSee 76979bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU 77079bc1451SSam Lefflerabove for details. 77179bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_DENSITY 77279bc1451SSam LefflerSet the minimum density for bursting AMPDU frames to the value in 77379bc1451SSam Leffler.Va i_val . 77479bc1451SSam LefflerThis request causes a running interface to be reset. 77579bc1451SSam LefflerSee 77679bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU_DENSITY 77779bc1451SSam Lefflerabove for details. 77879bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_LIMIT 77979bc1451SSam LefflerSet the limit on the size of AMPDU frames to the value in 78079bc1451SSam Leffler.Va i_val . 78179bc1451SSam LefflerThis request causes a running interface to be reset. 78279bc1451SSam LefflerSee 78379bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU_LIMIT 78479bc1451SSam Lefflerabove for details. 78579bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU 78679bc1451SSam LefflerSet whether or not AMSDU is enabled for transmit and/or receive 78779bc1451SSam Lefflerusing the value in 78879bc1451SSam Leffler.Va i_val . 78979bc1451SSam LefflerThis request causes a running interface operating on an HT channel 79079bc1451SSam Lefflerto be reset. 79179bc1451SSam LefflerSee 79279bc1451SSam Leffler.Dv IEEE80211_IOC_AMSDU 79379bc1451SSam Lefflerabove for details. 79479bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU_LIMIT 79579bc1451SSam LefflerSet the limit on the size of AMSDU frames to the value in 79679bc1451SSam Leffler.Va i_val . 79779bc1451SSam LefflerThis request causes a running interface to be reset. 79879bc1451SSam LefflerSee 79979bc1451SSam Leffler.Dv IEEE80211_IOC_AMSDU_LIMIT 80079bc1451SSam Lefflerabove for details. 80179bc1451SSam Leffler.It Dv IEEE80211_IOC_APBRIDGE 80279bc1451SSam LefflerSet whether AP bridging is enabled using the value in 80379bc1451SSam Leffler.Va i_val . 80479bc1451SSam LefflerSee 80579bc1451SSam Leffler.Dv IEEE80211_IOC_APBRIDGE 80679bc1451SSam Lefflerabove for details. 80779bc1451SSam Leffler.It Dv IEEE80211_IOC_APPIE 80879bc1451SSam LefflerSet an application information element using the data pointed to by 80979bc1451SSam Leffler.Va i_data . 81079bc1451SSam LefflerThis request causes a running interface to be restarted if the WPA 81179bc1451SSam Lefflerinformation element is changed. 81279bc1451SSam LefflerSee 81379bc1451SSam Leffler.Dv IEEE80211_IOC_APPIE 81479bc1451SSam Lefflerabove for details. 81579bc1451SSam Leffler.It Dv IEEE80211_IOC_AUTHMODE 81679bc1451SSam LefflerSet the current authentication mode using the value in 81779bc1451SSam Leffler.Va i_val . 81879bc1451SSam LefflerThis request causes a running interface to be restarted. 81979bc1451SSam LefflerSee 82079bc1451SSam Leffler.Dv IEEE80211_IOC_AUTHMODE 82179bc1451SSam Lefflerabove for details. 82279bc1451SSam LefflerThis request causes a running interface to be restarted. 82379bc1451SSam Leffler.It Dv IEEE80211_IOC_BEACON_INTERVAL 82479bc1451SSam LefflerSet the time between Beacon frames (in TU) to the value in 82579bc1451SSam Leffler.Va i_val . 82679bc1451SSam LefflerThis request causes a running interface to be restarted. 82779bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN 82879bc1451SSam LefflerSet whether background scanning is enabled using the value in 82979bc1451SSam Leffler.Va i_val . 83079bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_IDLE 83179bc1451SSam LefflerSet the minimum time (in msecs) a station must be idle 83279bc1451SSam Lefflerbefore it will do a background scan to the value in 83379bc1451SSam Leffler.Va i_val . 83479bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_INTERVAL 83579bc1451SSam LefflerSet the minimum time (seconds) between background scan operations to the value in 83679bc1451SSam Leffler.Va i_val . 83779bc1451SSam Leffler.It Dv IEEE80211_IOC_BMISSTHRESHOLD 83879bc1451SSam LefflerSet the number of consecutive missed Beacon frames before the system will 83979bc1451SSam Lefflerattempt to roam to the value in 84079bc1451SSam Leffler.Va i_val . 84179bc1451SSam LefflerThis request causes a running interface to be reset. 84279bc1451SSam Leffler.It Dv IEEE80211_IOC_BSSID 84379bc1451SSam LefflerSet the 802.11 MAC address for the desired BSS identifier according to 84479bc1451SSam Leffler.Va i_data . 84579bc1451SSam LefflerThis request causes a running interface to be restarted. 84679bc1451SSam Leffler.It Dv IEEE80211_IOC_BURST 84779bc1451SSam LefflerSet whether or not packet bursting is enabled using the value in 84879bc1451SSam Leffler.Va i_val . 84979bc1451SSam LefflerThis request causes a running interface to be reset. 85079bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANNEL 85179bc1451SSam LefflerSet the desired/current channel to the value given by 85279bc1451SSam Leffler.Va i_val . 85379bc1451SSam LefflerThis request causes a running interface to 85479bc1451SSam Lefflerimmediately change to the specified channel if possible; 85579bc1451SSam Lefflerotherwise the interface will be restarted. 85679bc1451SSam LefflerNote this request is deprecated; use 85779bc1451SSam Leffler.Dv IEEE80211_IOC_CURCHAN 85879bc1451SSam Lefflerinstead. 85979bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANLIST 86079bc1451SSam LefflerSet the list of available channels using the channel list pointed to by 86179bc1451SSam Leffler.Va i_data . 86279bc1451SSam LefflerThe channel list is a bit vector with bit N set to 1 if 86379bc1451SSam LefflerIEEE channel number N is available for use. 86479bc1451SSam LefflerThe specified channel list is checked against the set of supported 86579bc1451SSam Lefflerchannels and any channels not supported are silently ignored. 86679bc1451SSam LefflerIf the intersection of the channel list and the supported channels is empty 86779bc1451SSam Leffler.Er EINVAL 86879bc1451SSam Leffleris returned. 86979bc1451SSam LefflerNote the current channel may be marked invalid after installing a 87079bc1451SSam Lefflernew channel list. 87179bc1451SSam LefflerThis request causes a running interface to be restarted. 87279bc1451SSam Leffler.It Dv IEEE80211_IOC_COUNTERMEASURES 87379bc1451SSam LefflerSet whether TKIP Countermeasures are enabled using the value in 87479bc1451SSam Leffler.Va i_val . 87579bc1451SSam LefflerThis request can only be used when the authentication mode is set 87679bc1451SSam LefflerWPA; otherwise 87779bc1451SSam Leffler.Er EOPNOTSUPP 87879bc1451SSam Lefflerwill be returned. 87979bc1451SSam Leffler.It Dv IEEE80211_IOC_CURCHAN 88079bc1451SSam LefflerSet the current channel using the information referenced by 88179bc1451SSam Leffler.Va i_data . 88279bc1451SSam LefflerThis request causes a running interface to 88379bc1451SSam Lefflerimmediately change to the specified channel if possible; 88479bc1451SSam Lefflerotherwise the interface will be restarted. 88579bc1451SSam Leffler.It Dv IEEE80211_IOC_DELKEY 88679bc1451SSam LefflerDelete the key specified by the information referenced by 88779bc1451SSam Leffler.Va i_data . 88879bc1451SSam Leffler.It Dv IEEE80211_IOC_DELMAC 88979bc1451SSam LefflerRemove an entry in the MAC address Access Control List (ACL) database using 89079bc1451SSam Lefflerthe value pointed to by 89179bc1451SSam Leffler.Va i_data . 89279bc1451SSam LefflerThe 89379bc1451SSam Leffler.Xr wlan_acl 4 89479bc1451SSam Lefflermodule must be installed and enabled or 89579bc1451SSam Leffler.Er EINVAL 89679bc1451SSam Lefflerwill be returned. 89779bc1451SSam Leffler.It Dv IEEE80211_IOC_DFS 89879bc1451SSam LefflerSet whether or not Dynamic Frequency Selection (DFS) is enabled 89979bc1451SSam Lefflerusing the value in 90079bc1451SSam Leffler.Va i_val . 90179bc1451SSam LefflerThis request will fail with 90279bc1451SSam Leffler.Er EINVAL 90379bc1451SSam Lefflerif 802.11h support is not enabled. 90479bc1451SSam LefflerSee 90579bc1451SSam Leffler.Dv IEEE80211_IOC_DFS 90679bc1451SSam Lefflerabove for details. 90779bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTD 90879bc1451SSam LefflerSet whether or not 802.11d support is enabled using the value in 90979bc1451SSam Leffler.Va i_val . 91079bc1451SSam LefflerThis request causes a running interface to be restarted. 91179bc1451SSam LefflerSee 91279bc1451SSam Leffler.Dv IEEE80211_IOC_DOTD 91379bc1451SSam Lefflerabove for details. 91479bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTH 91579bc1451SSam LefflerReturn whether 802.11h support is enabled using the value in 91679bc1451SSam Leffler.Va i_val . 91779bc1451SSam LefflerSee 91879bc1451SSam Leffler.Dv IEEE80211_IOC_DOTH 91979bc1451SSam Lefflerabove for details. 92079bc1451SSam Leffler.It Dv IEEE80211_IOC_DROPUNENCRYPTED 92179bc1451SSam LefflerSet whether unencrypted packets transmit/received should be discarded 92279bc1451SSam Lefflerusing the value in 92379bc1451SSam Leffler.Va i_val . 92479bc1451SSam Leffler.It Dv IEEE80211_IOC_DTIM_PERIOD 92579bc1451SSam LefflerSet the period (in beacon intervals) between DTIM events to the value in 92679bc1451SSam LefflerThis request causes a running interface to be restarted. 92779bc1451SSam Leffler.Va i_val . 92879bc1451SSam Leffler.It Dv IEEE80211_IOC_DWDS 92979bc1451SSam LefflerSet whether or not Dynamic WDS support is enabled using the value in 93079bc1451SSam Leffler.Va i_val . 93179bc1451SSam LefflerSee 93279bc1451SSam Leffler.Dv IEEE80211_IOC_DWDS 93379bc1451SSam Lefflerabove for details. 93479bc1451SSam Leffler.It Dv IEEE80211_IOC_FF 93579bc1451SSam LefflerSet whether Atheros fast-frames support is enabled using the value in 93679bc1451SSam Leffler.Va i_val . 93779bc1451SSam LefflerThis request causes a running interface to be restarted. 93879bc1451SSam LefflerSee 93979bc1451SSam Leffler.Dv IEEE80211_IOC_FF 94079bc1451SSam Lefflerabove for details. 94179bc1451SSam Leffler.It Dv IEEE80211_IOC_FRAGTHRESHOLD 94279bc1451SSam LefflerSet the threshold (in bytes) for enabling fragmentation frames using the value in 94379bc1451SSam Leffler.Va i_val . 94479bc1451SSam LefflerThis request causes a running interface to be reset. 94579bc1451SSam LefflerSee 94679bc1451SSam Leffler.Dv IEEE80211_IOC_FRAGTHRESHOLD 94779bc1451SSam Lefflerabove for details. 94879bc1451SSam Leffler.It Dv IEEE80211_IOC_GREENFIELD 94979bc1451SSam LefflerSet whether or not Greenfield preamble use is enabled using the value in 95079bc1451SSam Leffler.Va i_val . 95179bc1451SSam LefflerThis request causes a running interface to be reset. 95279bc1451SSam LefflerSee 95379bc1451SSam Leffler.Dv IEEE80211_IOC_GREENFIELD 95479bc1451SSam Lefflerabove for details. 95579bc1451SSam Leffler.It Dv IEEE80211_IOC_HIDESSID 95679bc1451SSam LefflerSet whether SSID hiding/cloaking is enabled using the value in 95779bc1451SSam Leffler.Va i_val . 95879bc1451SSam LefflerThis request causes a running interface to be reset. 95979bc1451SSam LefflerSee 96079bc1451SSam Leffler.Dv IEEE80211_IOC_HIDESSID 96179bc1451SSam Lefflerabove for details. 96279bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCOMPAT 96379bc1451SSam LefflerSet whether or not 802.11n compatibility support is enabled using the value in 96479bc1451SSam Leffler.Va i_val . 96579bc1451SSam LefflerThis request causes a running interface to be reset if operating on HT channel. 96679bc1451SSam LefflerSee 96779bc1451SSam Leffler.Dv IEEE80211_IOC_HTCOMPAT 96879bc1451SSam Lefflerabove for details. 96979bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCONF 97079bc1451SSam LefflerSet automatic promotion of HT channels using the value in 97179bc1451SSam Leffler.Va i_val . 97279bc1451SSam LefflerThis request causes a running interface to be restarted. 97379bc1451SSam LefflerSee 97479bc1451SSam Leffler.Dv IEEE80211_IOC_HTCONF 97579bc1451SSam Lefflerabove for details. 97679bc1451SSam Leffler.It Dv IEEE80211_IOC_HTPROTMODE 97779bc1451SSam LefflerSet the technique used to protect HT frames in a mixed 802.11n network 97879bc1451SSam Lefflerusing the value in 97979bc1451SSam Leffler.Va i_val . 98079bc1451SSam LefflerThis request causes a running interface to be reset. 98179bc1451SSam LefflerSee 98279bc1451SSam Leffler.Dv IEEE80211_IOC_HTPROTMODE 98379bc1451SSam Lefflerabove for details. 98479bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_MAXHOPS 98579bc1451SSam LefflerSet the maximum acceptable hop count in an HWMP path according to 98679bc1451SSam Leffler.Va i_val . 98779bc1451SSam LefflerValues must be in the range [0-255]. 98879bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_ROOTMODE 98979bc1451SSam LefflerSet the Mesh root mode operation according to 99079bc1451SSam Leffler.Va i_val . 99179bc1451SSam LefflerValid values are 99279bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_DISABLED 99379bc1451SSam Leffler(root mode is disabled), 99479bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_NORMAL 99579bc1451SSam Leffler(send broadcast Path Request frames), 99679bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_PROACTIVE 99779bc1451SSam Leffler(send broadcast Path Request frames and force replies) 99879bc1451SSam Lefflerand 99979bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_RANN 100079bc1451SSam Leffler(send broadcast Root Announcement (RANN) frames). 100179bc1451SSam Leffler.It Dv IEEE80211_IOC_INACTIVITY 100279bc1451SSam LefflerSet whether or not the system handles inactivity processing using the value in 100379bc1451SSam Leffler.Va i_val . 100479bc1451SSam LefflerWhen inactivity processing is enabled the system will track stations 1005b06cfd40SJoel Dahlthat have not transmitted frames and periodically probe them to 100679bc1451SSam Lefflercheck if they are still present. 100779bc1451SSam LefflerStations that are inactive and do not respond to probes are dropped. 100879bc1451SSam Leffler.It Dv IEEE80211_IOC_MACCMD 100979bc1451SSam LefflerChange the state of the MAC address Access Control List (ACL) system. 101079bc1451SSam LefflerThere are several requests supported: 101179bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_OPEN 101279bc1451SSam Leffler(set the current policy to disable ACL use), 101379bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_ALLOW 101479bc1451SSam Leffler(set the current policy to allow only addresses listed in the database), 101579bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_DENY 101679bc1451SSam Leffler(set the current policy to deny addresses listed in the database), 101779bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_RADUS 101879bc1451SSam Leffler(set the current policy to enable use of a RADIUS backend), 101979bc1451SSam Leffler.Dv IEEE80211_MACCMD_FLUSH 102079bc1451SSam Leffler(flush all addresses from the database), 102179bc1451SSam Lefflerand 102279bc1451SSam Leffler.Dv IEEE80211_MACCMD_DETACH 102379bc1451SSam Leffler(detach the ACL subsystem, disabling it). 102479bc1451SSam LefflerThe 102579bc1451SSam Leffler.Xr wlan_acl 4 102679bc1451SSam Lefflermodule must be installed or 102779bc1451SSam Leffler.Er EINVAL 102879bc1451SSam Lefflerwill be returned. 102979bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_AP 103079bc1451SSam LefflerSet whether or not Mesh AP support is enabled using 103179bc1451SSam Leffler.Va i_val . 103279bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_FWRD 103379bc1451SSam LefflerSet whether or not packet forwarding support is enabled using 103479bc1451SSam Leffler.Va i_val . 103579bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_ID 103679bc1451SSam LefflerSet the Mesh ID using the value pointed to by 103779bc1451SSam Leffler.Va i_data . 103879bc1451SSam LefflerA Mesh ID can be up to 103979bc1451SSam Leffler.Dv IEEE80211_MESHID_LEN 104079bc1451SSam Lefflerbytes long. 104179bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_METRIC 104279bc1451SSam LefflerSet the link metric protocol using the value pointed to by 104379bc1451SSam Leffler.Va i_data . 104479bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_PATH 104579bc1451SSam LefflerSet the path selection protocol using the value pointed to by 104679bc1451SSam Leffler.Va i_data . 104779bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_RTCMD 104879bc1451SSam LefflerManipulate the state of the Mesh routing tables. 104979bc1451SSam LefflerSeveral requests are supported: 105079bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_FLUSH 105179bc1451SSam Leffler(flush the contents of the routing table), 105279bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_ADD 105379bc1451SSam Leffler(add an entry for the MAC address specified in 105479bc1451SSam Leffler.Va i_data 105579bc1451SSam Lefflerand start the Peer discovery process), 105679bc1451SSam Lefflerand 105779bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_DELETE 105879bc1451SSam Leffler(delete the entry corresponding to the MAC address specified in 105979bc1451SSam Leffler.Va i_data ). 106079bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_TTL 106179bc1451SSam LefflerSet the Mesh Time To Live (TTL) setting installed in packets 106279bc1451SSam Lefflertransmitted by this mesh node using 106379bc1451SSam Leffler.Va i_val . 106479bc1451SSam Leffler.It Dv IEEE80211_IOC_MLME 106579bc1451SSam LefflerExplicitly control the MLME state machine for a station using the 106679bc1451SSam LefflerMLME request pointed to by 106779bc1451SSam Leffler.Va i_data . 106879bc1451SSam LefflerThere are several MLME operations supported: 106979bc1451SSam Leffler.Dv IEEE80211_MLME_ASSOC 107079bc1451SSam Leffler(request association to an access point), 107179bc1451SSam Leffler.Dv IEEE80211_MLME_DIASSOC 107279bc1451SSam Leffler(diassociate the specified station), 107379bc1451SSam Leffler.Dv IEEE80211_MLME_DEAUTH 107479bc1451SSam Leffler(deauthenticate the specified station), 107579bc1451SSam Leffler.Dv IEEE80211_MLME_AUHORIZE 1076b06cfd40SJoel Dahl(mark the specified station authorized to pass data frames), 107779bc1451SSam Leffler.Dv IEEE80211_MLME_UNAUTHORIZE 107879bc1451SSam Leffler(revoke the specified station's ability to pass data frames), 107979bc1451SSam Lefflerand 108079bc1451SSam Leffler.Dv IEEE80211_MLME_AUTH 108179bc1451SSam Leffler(request authentication to an access point). 108279bc1451SSam LefflerNote when this facility is used for stations operating in infrastructure mode 108379bc1451SSam Lefflerthe roaming mode should be set to manual. 108479bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVE 108579bc1451SSam LefflerSet the current powersaving mode to the value in 108679bc1451SSam Leffler.Va i_val . 108779bc1451SSam LefflerSee 108879bc1451SSam Leffler.Dv IEEE80211_IOC_POWERSAVE 108979bc1451SSam Lefflerabove for valid values. 109079bc1451SSam LefflerThis request causes a running interface to be reset. 109179bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVESLEEP 109279bc1451SSam LefflerSet the powersave sleep time in TU to the value in 109379bc1451SSam Leffler.Va i_val . 109479bc1451SSam LefflerThis request causes a running interface to be reset. 109579bc1451SSam Leffler.It Dv IEEE80211_IOC_PRIVACY 109679bc1451SSam LefflerSet the current MLME setting for PRIVACY using the value in 109779bc1451SSam Leffler.Va i_val . 109879bc1451SSam LefflerSee 109979bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 110079bc1451SSam Lefflerabove for details. 110179bc1451SSam Leffler.It Dv IEEE80211_IOC_PROTMODE 110279bc1451SSam LefflerSet the current 802.11g protection mode to the value in 110379bc1451SSam Leffler.Va i_val . 110479bc1451SSam LefflerThis request causes a running interface to be reset. 110579bc1451SSam LefflerSee 110679bc1451SSam Leffler.Dv IEEE80211_IOC_PROTMODE 110779bc1451SSam Lefflerabove for details. 110879bc1451SSam LefflerThis request causes a running interface to be reset. 110979bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREG 111079bc1451SSam LefflerSet whether ``pure 11g'' mode is enabled using the value in 111179bc1451SSam Leffler.Va i_val . 111279bc1451SSam LefflerThis request causes a running interface to be restarted. 111379bc1451SSam LefflerSee 111479bc1451SSam Leffler.Dv IEEE80211_IOC_PUREG 111579bc1451SSam Lefflerabove for details. 111679bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREN 111779bc1451SSam LefflerSet whether ``pure 11n'' mode is enabled using the value in 111879bc1451SSam Leffler.Va i_val . 111979bc1451SSam LefflerThis request causes a running interface to be restarted. 112079bc1451SSam LefflerSee 112179bc1451SSam Leffler.Dv IEEE80211_IOC_PUREN 112279bc1451SSam Lefflerabove for details. 112379bc1451SSam Leffler.It Dv IEEE80211_IOC_REGDOMAIN 112479bc1451SSam LefflerSet the regulatory state using the data referenced by 112579bc1451SSam Leffler.Va i_data . 112679bc1451SSam LefflerThis request can only be issued when all interfaces cloned from the 112779bc1451SSam Lefflerunderlying physical device are marked down; otherwise 112879bc1451SSam Leffler.Er EBUSY 112979bc1451SSam Leffleris returned. 113079bc1451SSam LefflerNote the new regulatory data may invalidate any desired channel. 113179bc1451SSam Leffler.It Dv IEEE80211_IOC_RIFS 113279bc1451SSam LefflerSet whether or not Reduced InterFrame Spacing (RIFS) is enabled 113379bc1451SSam Lefflerusing the value in 113479bc1451SSam Leffler.Va i_val . 113579bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 113679bc1451SSam LefflerThis request causes a running interface to be reset. 113779bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAM 113879bc1451SSam LefflerSet station roaming parameters using the data pointed to by 113979bc1451SSam Leffler.Va i_data . 114079bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAMING 114179bc1451SSam LefflerSet the current roaming mode to the value in 114279bc1451SSam Leffler.Va i_val . 114379bc1451SSam LefflerSee 114479bc1451SSam Leffler.Dv IEEE80211_IOC_ROAMING 114579bc1451SSam Lefflerabove for details. 114679bc1451SSam Leffler.It Dv IEEE80211_IOC_RTSTHRESHOLD 114779bc1451SSam LefflerSet the threshold (in bytes) for enabling transmission of RTS frames 114879bc1451SSam Lefflerto the value in 114979bc1451SSam Leffler.Va i_val . 115079bc1451SSam LefflerThis request causes a running interface to be reset. 115179bc1451SSam LefflerSee 115279bc1451SSam Leffler.Dv IEEE80211_IOC_RTSTHRESHOLD 115379bc1451SSam Lefflerabove for details. 115479bc1451SSam Leffler.It Dv IEEE80211_IOC_SCANVALID 115579bc1451SSam LefflerSet the age (in seconds) that results from a scan operation will be 115679bc1451SSam Lefflerconsidered valid. 115779bc1451SSam LefflerWhen scan results are no longer valid and they are needed (e.g. to roam) the 115879bc1451SSam Lefflersystem will initiate a scan operation to replenish the scan cache. 1159ac609403SSam Leffler.It Dv IEEE80211_IOC_SCAN_REQ 1160ac609403SSam LefflerRequest a scan operation using the parameters pointed to by 1161ac609403SSam Leffler.Va i_val . 1162ac609403SSam LefflerThe underlying device must be running or 1163ac609403SSam Leffler.Er ENXIO 1164ac609403SSam Lefflerwill be returned. 1165ac609403SSam LefflerValues for 1166ac609403SSam Leffler.Va sr_duration , 1167ac609403SSam Leffler.Va sr_mindwell , 1168ac609403SSam Lefflerand 1169ac609403SSam Leffler.Va sr_maxdwell 1170ac609403SSam Lefflershorter than 1 clock tick are rounded up to a tick. 1171ac609403SSam LefflerIf more SSID's are supplied than the system is capable of handling 1172ac609403SSam Lefflerthe extra ones are silently ignored. 1173ac609403SSam LefflerIf a scan operation is already in progress the request will be 1174ac609403SSam Leffler(silently) ignored. 117579bc1451SSam Leffler.It Dv IEEE80211_IOC_SCAN_CANCEL 117679bc1451SSam LefflerCancel any pending/active scan operation. 117779bc1451SSam Leffler.It Dv IEEE80211_IOC_SHORTGI 117879bc1451SSam LefflerSet whether or not Short Guard Interval (SGI) is enabled using the value in 117979bc1451SSam Leffler.Va i_val . 118079bc1451SSam LefflerNote SGI is only used when operating on an HT (802.11n) channel. 118179bc1451SSam LefflerThis request causes a running interface to be reset. 118279bc1451SSam Leffler.It Dv IEEE80211_IOC_SMPS 118379bc1451SSam LefflerSet the Spatial Multiplexing Power Save (SMPS) setting to the value in 118479bc1451SSam Leffler.Va i_val . 118579bc1451SSam LefflerThis request causes a running interface to be reset. 118679bc1451SSam LefflerSee 118779bc1451SSam Leffler.Dv IEEE80211_IOC_SMPS 118879bc1451SSam Lefflerabove for details. 118979bc1451SSam Leffler.It Dv IEEE80211_IOC_SSID 119079bc1451SSam LefflerSet the desired SSID using the value pointed to by 119179bc1451SSam Leffler.Va i_data . 119279bc1451SSam LefflerThe string may be at most IEEE80211_NWID_LEN bytes. 119379bc1451SSam LefflerThis request causes a running interface to be restarted. 119479bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_STATS 119579bc1451SSam LefflerClear accumulated statistics for the specified station. 119679bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_VLAN 119779bc1451SSam LefflerSet the VLAN tag for the specified station using the information pointed to by 119879bc1451SSam Leffler.Va i_data . 119979bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_BINTERVAL 120079bc1451SSam LefflerSet the interval between Beacon frames to the value in 120179bc1451SSam Leffler.Va i_val . 120279bc1451SSam LefflerValues must be positive. 120379bc1451SSam LefflerThis request causes a running interface to be reset. 120479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOT 120579bc1451SSam LefflerSet the current TDMA slot to the value in 120679bc1451SSam Leffler.Va i_val . 120779bc1451SSam LefflerValues must be in the range [0-slotcnt]. 120879bc1451SSam LefflerSlot 0 identifies the master in the TDMA network; if it running it will 120979bc1451SSam Lefflerimmediately start sending Beacon frames. 121079bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTCNT 121179bc1451SSam LefflerSet the number of slots in the TDMA network to the value in 121279bc1451SSam Leffler.Va i_val . 121379bc1451SSam LefflerThis request causes a running interface to be reset. 121479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTLEN 121579bc1451SSam LefflerSet the length of the TDMA slot assigned to each station in the network 121679bc1451SSam Lefflerto the value in 121779bc1451SSam Leffler.Va i_val . 121879bc1451SSam LefflerSlot lengths must be in the range 200 usecs to 1024 milliseconds 121979bc1451SSam Leffler(though values outside the range 1-200ms are unlikely to work well). 122079bc1451SSam LefflerThis request causes a running interface to be reset. 122179bc1451SSam Leffler.It Dv IEEE80211_IOC_TSN 122279bc1451SSam LefflerSet whether or not Transitional Security Network (TSN) is enabled 122379bc1451SSam Lefflerusing the value in 122479bc1451SSam Leffler.Va i_val . 122579bc1451SSam Leffler.It Dv IEEE80211_IOC_TURBOP 122679bc1451SSam LefflerSet whether Atheros Dynamic Turbo mode is enabled using the value in 122779bc1451SSam Leffler.Va i_val . 122879bc1451SSam LefflerThis request causes a running interface to be restarted. 122979bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPARAMS 123079bc1451SSam LefflerSet transmit parameters using the data pointed to be 123179bc1451SSam Leffler.Va i_data . 123279bc1451SSam LefflerThis request causes a running interface to be restarted. 123379bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWER 123479bc1451SSam LefflerSet the maximum transmit power limit in .5 dBm units to the value in 123579bc1451SSam Leffler.Va i_val . 123679bc1451SSam LefflerThis request causes a running interface to be reset. 123779bc1451SSam Leffler.It Dv IEEE80211_IOC_WEP 123879bc1451SSam LefflerSet the current WEP mode to the value in 123979bc1451SSam Leffler.Va i_val . 124079bc1451SSam LefflerSee 124179bc1451SSam Leffler.Dv IEEE80211_IOC_WEP 124279bc1451SSam Lefflerabove for valid values. 124379bc1451SSam LefflerThis request causes a running interface to be restarted. 124479bc1451SSam LefflerNote this request is deprecated; use 124579bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 124679bc1451SSam Lefflerand 124779bc1451SSam Leffler.Dv IEEE80211_IOC_DROPUNENCRYPTED 124879bc1451SSam Lefflerinstead. 124979bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPKEY 125079bc1451SSam LefflerSet the WEP key indicated by 125179bc1451SSam Leffler.Va i_val 125279bc1451SSam Lefflerusing the data pointed to by 125379bc1451SSam Leffler.Va i_data . 125479bc1451SSam LefflerNote this request is deprecated; use 125579bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY 125679bc1451SSam Lefflerinstead. 125779bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPTXKEY 125879bc1451SSam LefflerSet the default transmit key used for transmission to the value in 125979bc1451SSam Leffler.Va i_val . 126079bc1451SSam Leffler.It Dv IEEE80211_IOC_WME 126179bc1451SSam LefflerSet whether or not WME/WMM support is enabled using the value in 126279bc1451SSam Leffler.Va i_val . 126379bc1451SSam LefflerThis request causes a running interface to be reset. 126479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACKPOLICY 126579bc1451SSam LefflerSet the WME ACK Policy for the Access Class (AC) specified in 126679bc1451SSam Leffler.Va i_len 126779bc1451SSam Lefflerusing the value in 126879bc1451SSam Leffler.Va i_val . 126979bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACM 127079bc1451SSam LefflerSet the WME Admission Control Mechanism for the Access Class (AC) specified in 127179bc1451SSam Leffler.Va i_len 127279bc1451SSam Lefflerusing the value in 127379bc1451SSam Leffler.Va i_val . 127479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_AIFS 127579bc1451SSam LefflerSet the WME AIFS parameter for the Access Class (AC) specified in 127679bc1451SSam Leffler.Va i_len 127779bc1451SSam Lefflerusing the value in 127879bc1451SSam Leffler.Va i_val . 127979bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMAX 128079bc1451SSam LefflerSet the WME CWmax parameter for the Access Class (AC) specified in 128179bc1451SSam Leffler.Va i_len 128279bc1451SSam Lefflerusing the value in 128379bc1451SSam Leffler.Va i_val . 128479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMIN 128579bc1451SSam LefflerSet the WME CWmin parameter for the Access Class (AC) specified in 128679bc1451SSam Leffler.Va i_len 128779bc1451SSam Lefflerusing the value in 128879bc1451SSam Leffler.Va i_val . 128979bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_TXOPLIMIT 129079bc1451SSam LefflerSet the WME TxOpLimit parameter for the Access Class (AC) specified in 129179bc1451SSam Leffler.Va i_len 129279bc1451SSam Lefflerusing the value in 129379bc1451SSam Leffler.Va i_val . 129479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPA 129579bc1451SSam LefflerSet the WPA configuration using the value in 129679bc1451SSam Leffler.Va i_val . 129779bc1451SSam LefflerThis request causes a running interface to be reset. 129879bc1451SSam LefflerSee 129979bc1451SSam Leffler.Dv IEEE80211_IOC_WPA 130079bc1451SSam Lefflerabove for details. 130179bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAKEY 130279bc1451SSam LefflerSet the requested cryptographic key using data in the buffer pointed to by 130379bc1451SSam Leffler.Va i_data . 130479bc1451SSam LefflerSee 130579bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY 130679bc1451SSam Lefflerfor details. 130779bc1451SSam Leffler.It Dv IEEE80211_IOC_WPS 130879bc1451SSam LefflerSet whether or not Wi-FI Protected Setup (WPS) is enabled using the value in 130979bc1451SSam Leffler.Va i_val . 131079bc1451SSam Leffler.El 131179bc1451SSam Leffler.Sh SEE ALSO 131279bc1451SSam Leffler.Xr ioctl 2 , 131379bc1451SSam Leffler.Xr wlan 4 , 131479bc1451SSam Leffler.Xr wlan_acl 4 , 131579bc1451SSam Leffler.Xr wlan_xauth 4 , 131679bc1451SSam Leffler.Xr ifconfig 8 , 131779bc1451SSam Leffler.Xr hostapd 8 , 131879bc1451SSam Leffler.Xr wpa_supplicant 8 . 1319