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