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.\" 31*7d1d4407SBjoern A. Zeeb.Dd August 7, 2020 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. 2831748d1e5SGavin 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 36950d922a0SGlen Barber2 (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). 396*7d1d4407SBjoern A. Zeeb.It Dv IEEE80211_IOC_IC_NAME 397*7d1d4407SBjoern A. ZeebReturn the underlying hardware 398*7d1d4407SBjoern A. Zeeb.Xr device 9 399*7d1d4407SBjoern A. Zeebname in the buffer pointed to by 400*7d1d4407SBjoern A. Zeeb.Va i_data 401*7d1d4407SBjoern A. Zeeband the name length including terminating NUL character in 402*7d1d4407SBjoern A. Zeeb.Va i_len . 403*7d1d4407SBjoern A. ZeebIf the buffer length is too small to hold the full name 404*7d1d4407SBjoern A. Zeeb.Er EINVAL 405*7d1d4407SBjoern A. Zeebwill be returned. 40679bc1451SSam Leffler.It Dv IEEE80211_IOC_INACTIVITY 40779bc1451SSam LefflerReturn whether or not the system handles inactivity processing in 40879bc1451SSam Leffler.Va i_val . 40979bc1451SSam LefflerWhen inactivity processing is enabled the system will track stations 410b06cfd40SJoel Dahlthat have not transmitted frames and periodically probe them to 41179bc1451SSam Lefflercheck if they are still present. 41279bc1451SSam LefflerStations that are inactive and do not respond to probes are dropped. 41379bc1451SSam Leffler.It Dv IEEE80211_IOC_MACCMD 41479bc1451SSam LefflerReturn information about the state of the MAC address 41579bc1451SSam Leffleraccess control list (ACL) system. 41679bc1451SSam LefflerThere are two requests supported: 41779bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY 41879bc1451SSam Leffler(to retrieve the current policy in 41979bc1451SSam Leffler.Va i_val ), 42079bc1451SSam Lefflerand 42179bc1451SSam Leffler.Dv IEEE80211_MACCMD_LIST 42279bc1451SSam Lefflerto retrieve the list installed/active ACL's via 42379bc1451SSam Leffler.Va i_data . 42479bc1451SSam LefflerThe 42579bc1451SSam Leffler.Xr wlan_acl 4 42679bc1451SSam Lefflermodule must be installed and enabled or 42779bc1451SSam Leffler.Er EINVAL 42879bc1451SSam Lefflerwill be returned. 42979bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_AP 43079bc1451SSam LefflerReturn whether or not Mesh AP support is enabled in 43179bc1451SSam Leffler.Va i_val . 43279bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_ID 43379bc1451SSam LefflerReturn the Mesh ID in the buffer pointed to by 43479bc1451SSam Leffler.Va i_data . 43579bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_FWRD 43679bc1451SSam LefflerReturn whether or not packet forwarding support is enabled in 43779bc1451SSam Leffler.Va i_val . 43879bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_METRIC 43979bc1451SSam LefflerReturn the link metric protocol in the buffer pointed to by 44079bc1451SSam Leffler.Va i_data . 44179bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_PATH 44279bc1451SSam LefflerReturn the path selection protocol in the buffer pointed to by 44379bc1451SSam Leffler.Va i_data . 44479bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_RTCMD 44579bc1451SSam LefflerReturn information about the state of the Mesh routing tables. 44679bc1451SSam LefflerOne request is supported: 44779bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_LIST 44879bc1451SSam Lefflerto retrieve the contents of the routing table in the buffer pointed to by 44979bc1451SSam Leffler.Va i_data . 45079bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_TTL 45179bc1451SSam LefflerReturn, in 45279bc1451SSam Leffler.Va i_val , 45379bc1451SSam Lefflerthe Mesh Time To Live (TTL) setting installed in packets 45479bc1451SSam Lefflertransmitted by this mesh node. 45579bc1451SSam Leffler.It Dv IEEE80211_IOC_NUMSSIDS 45679bc1451SSam LefflerReturn the number of SSIDs supported in 45779bc1451SSam Leffler.Va i_val . 45879bc1451SSam Leffler.It Dv IEEE80211_IOC_NUMWEPKEYS 45979bc1451SSam LefflerReturn the number of WEP keys supported in 46050d922a0SGlen Barber.Va i_val . 46179bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVE 46279bc1451SSam LefflerReturn the current powersaving mode in 46379bc1451SSam Leffler.Va i_val . 46479bc1451SSam LefflerValid values are 46579bc1451SSam Leffler.Dv IEEE80211_POWERSAVE_OFF 46679bc1451SSam Leffler(power save operation is disabled) 46779bc1451SSam Lefflerand 46879bc1451SSam Leffler.Dv IEEE80211_POWERSAVE_ON 46979bc1451SSam Leffler(power save operation is enabled). 47079bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVESLEEP 47179bc1451SSam LefflerReturn the powersave sleep time in TU in 47279bc1451SSam Leffler.Va i_val . 47379bc1451SSam LefflerThis value is also termed the listen interval and represents the maximum time 47479bc1451SSam Lefflera station will sleep before waking to retrieve packets buffered by 47579bc1451SSam Leffleran access point. 47679bc1451SSam Leffler.It Dv IEEE80211_IOC_PRIVACY 47779bc1451SSam LefflerReturn the current MLME setting for PRIVACY in 47879bc1451SSam Leffler.Va i_val . 47979bc1451SSam LefflerWhen PRIVACY is enabled all data packets must be encrypted. 48079bc1451SSam LefflerThis value will be zero if PRIVACY is disabled and 48179bc1451SSam Lefflernon-zero when PRIVACY is enabled. 48279bc1451SSam Leffler.It Dv IEEE80211_IOC_PROTMODE 48379bc1451SSam LefflerReturn the current 802.11g protection mode in 48479bc1451SSam Leffler.Va i_val . 48579bc1451SSam LefflerProtection is the mechanism used to safeguard 802.11b stations operating 48679bc1451SSam Leffleron an 802.11g network. 48779bc1451SSam LefflerValid values are 48879bc1451SSam Leffler.Dv IEEE80211_PROTMODE_OFF 48979bc1451SSam Leffler(no protection enabled), 49079bc1451SSam Leffler.Dv IEEE80211_PROTMODE_CTS 49179bc1451SSam Leffler(send CTS to yourself), 49279bc1451SSam Lefflerand 49379bc1451SSam Leffler.Dv IEEE80211_PROTMODE_RTSCTS 49479bc1451SSam Leffler(send RTS and wait for CTS). 49579bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREG 49679bc1451SSam LefflerReturn whether ``pure 11g'' mode is enabled in 49779bc1451SSam Leffler.Va i_val . 498c2025a76SJoel DahlThis setting is meaningful only for access point operation; 49979bc1451SSam Lefflerwhen non-zero, 802.11b stations will not be allowed to associate. 50079bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREN 50179bc1451SSam LefflerReturn whether ``pure 11n'' mode is enabled in 50279bc1451SSam Leffler.Va i_val . 503c2025a76SJoel DahlThis setting is meaningful only for access point operation; 50479bc1451SSam Lefflerwhen non-zero, legacy (non-11n capable) stations will not be 50579bc1451SSam Lefflerallowed to associate. 50679bc1451SSam Leffler.It Dv IEEE80211_IOC_REGDOMAIN 50779bc1451SSam LefflerReturn the regulatory state in the buffer pointed to by 50879bc1451SSam Leffler.Va i_data . 50979bc1451SSam Leffler.It Dv IEEE80211_IOC_RIFS 51079bc1451SSam LefflerReturn whether or not Reduced InterFrame Spacing (RIFS) is enabled in 51179bc1451SSam Leffler.Va i_val . 51279bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 51379bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAM 51479bc1451SSam LefflerReturn station roaming parameters in the buffer pointed to by 51579bc1451SSam Leffler.Va i_data . 51679bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAMING 51779bc1451SSam LefflerReturn the current roaming mode in 51879bc1451SSam Leffler.Va i_val . 51979bc1451SSam LefflerRoaming mode specifies which entity controls operation of the MLME 52079bc1451SSam Lefflerstate machine when operating as a station in an Infrastructure BSS. 52179bc1451SSam LefflerValid values are: 52279bc1451SSam Leffler.Dv IEEE80211_ROAMING_DEVICE 52379bc1451SSam Leffler(driver/firmware is in control), 52479bc1451SSam Leffler.Dv IEEE80211_ROAMING_AUTO 52579bc1451SSam Leffler(host 802.11 layer is in control), 52679bc1451SSam Lefflerand 52779bc1451SSam Leffler.Dv IEEE80211_ROAMING_MANUAL 52879bc1451SSam Leffler(application is in control). 52979bc1451SSam Leffler.It Dv IEEE80211_IOC_RTSTHRESHOLD 53079bc1451SSam LefflerReturn the threshold (in bytes) for enabling transmission of RTS frames in 53179bc1451SSam Leffler.Va i_val . 53279bc1451SSam LefflerPackets larger than this value will automatically have an RTS frame 53379bc1451SSam Lefflersent preceding it to reduce the likelihood of packet loss. 53479bc1451SSam Leffler.It Dv IEEE80211_IOC_SCAN_RESULTS 53579bc1451SSam LefflerReturn the current contents of the scan cache in the data area pointed to by 53679bc1451SSam Leffler.Va i_data . 53779bc1451SSam Leffler.It Dv IEEE80211_IOC_SCANVALID 53879bc1451SSam LefflerReturn in 53979bc1451SSam Leffler.Va i_val 54079bc1451SSam Lefflerhow long (in seconds) results from a scan operation will be considered valid. 54179bc1451SSam LefflerWhen scan results are no longer valid and they are needed (e.g. to roam) the 54279bc1451SSam Lefflersystem will initiate a scan operation to replenish the scan cache. 54379bc1451SSam Leffler.It Dv IEEE80211_IOC_SHORTGI 54479bc1451SSam LefflerReturn whether or not Short Guard Interval (SGI) is enabled in 54579bc1451SSam Leffler.Va i_val . 54679bc1451SSam LefflerNote SGI is only used when operating with 802.11n on an HT channel. 54779bc1451SSam Leffler.It Dv IEEE80211_IOC_SMPS 54879bc1451SSam LefflerReturn the Spatial Multiplexing Power Save (SMPS) setting in 54979bc1451SSam Leffler.Va i_val . 55079bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 55179bc1451SSam LefflerValid values are: 55279bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_DYNAMIC 55379bc1451SSam Leffler(Dynamic SMPS is enabled), 55479bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_ENA 55579bc1451SSam Leffler(Static SMPS is enabled), 55679bc1451SSam Lefflerand 55779bc1451SSam Leffler.Dv IEEE80211_HTCAP_SMPS_OFF 55879bc1451SSam Leffler(SMPS is disabled). 55979bc1451SSam Leffler.It Dv IEEE80211_IOC_SSID 56079bc1451SSam LefflerReturn the requested SSID in the buffer pointed to by 56179bc1451SSam Leffler.Va i_data . 56279bc1451SSam LefflerIf 56379bc1451SSam Leffler.Va i_val 56479bc1451SSam Leffleris \(>= 0 then the request refers to the configured value for that slot. 56579bc1451SSam LefflerGenerally, 0 is the only valid value, but some interfaces support more 56679bc1451SSam LefflerSSIDs. 56779bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_INFO 56879bc1451SSam LefflerReturn information about the current state of the specified station(s) via 56979bc1451SSam Leffler.Va i_data . 57079bc1451SSam LefflerThe MAC address of a single station may be passed in or, if the broadcast 57179bc1451SSam Leffleraddress is supplied, information about all stations will be returned. 57279bc1451SSam LefflerIf a single station is requested and the MAC address is unknown then 57379bc1451SSam Leffler.Er ENOENT 57479bc1451SSam Lefflerwill be returned. 57579bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_STATS 57679bc1451SSam LefflerReturn collected statistics for the specified station via 57779bc1451SSam Leffler.Va i_data . 57879bc1451SSam LefflerThe MAC address of the desired station is passed in; if it is unknown 57979bc1451SSam Leffler.Er ENOENT 58079bc1451SSam Lefflerwill be returned. 58179bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_VLAN 58279bc1451SSam LefflerReturn any VLAN tag assigned to a station via 58379bc1451SSam Leffler.Va i_data . 58479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOT 58579bc1451SSam LefflerReturn the slot number for the station in 58679bc1451SSam Leffler.Va i_val . 58779bc1451SSam LefflerSlot number zero is the master station in a TDMA network. 58879bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTCNT 58979bc1451SSam LefflerReturn the count of slots in the TDMA network in 59079bc1451SSam Leffler.Va i_val . 59179bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTLEN 59279bc1451SSam LefflerReturn the length (in usecs) of the TDMA slot assigned to each 59379bc1451SSam Lefflerstation in the network in 59479bc1451SSam Leffler.Va i_val . 59579bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_BINTERVAL 59679bc1451SSam LefflerReturn the number of superframes between Beacon frames in 59779bc1451SSam Leffler.Va i_val . 59879bc1451SSam LefflerA TDMA network with N slots and slot length T has a superframe of NxT. 59979bc1451SSam Leffler.It Dv IEEE80211_IOC_TSN 60079bc1451SSam LefflerReturn whether or not Transitional Security Network (TSN) is enabled in 60179bc1451SSam Leffler.Va i_val . 60279bc1451SSam Leffler.It Dv IEEE80211_IOC_TURBOP 60379bc1451SSam LefflerReturn whether Atheros Dynamic Turbo mode is enabled in 60479bc1451SSam Leffler.Va i_val . 60579bc1451SSam LefflerDynamic Turbo mode is a non-standard protocol extension available only 60679bc1451SSam Leffleron Atheros devices where channel width is dynamically 60779bc1451SSam Lefflerchanged between 20MHz and 40MHz. 608c2025a76SJoel DahlNote that enabling Dynamic Turbo mode support does not guarantee use; 60979bc1451SSam Lefflerboth client and access point must use Atheros devices and support must 61079bc1451SSam Lefflerbe enabled on both sides. 61179bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPARAMS 61279bc1451SSam LefflerReturn transmit parameters in the buffer pointed to by 61379bc1451SSam Leffler.Va i_data . 61479bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWER 61579bc1451SSam LefflerReturn the transmit power limit in .5 dBm units in 61679bc1451SSam Leffler.Va i_val . 61779bc1451SSam LefflerThis value represents the effective maximum and is calculated according to 61879bc1451SSam Lefflerthe maximum power allowed by local regulations, any user-specified 61979bc1451SSam Lefflerpower limit, and the maximum power the device is capable of. 62079bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWMAX 62179bc1451SSam LefflerReturn the user-specified maximum transmit power in .5 dBm units in 62279bc1451SSam Leffler.Va i_val . 62379bc1451SSam LefflerThe maximum setting is applied after any regulatory cap. 62479bc1451SSam Leffler.It Dv IEEE80211_IOC_WEP 62579bc1451SSam LefflerReturn the current WEP status in 62679bc1451SSam Leffler.Va i_val . 62779bc1451SSam LefflerValid values are: 62879bc1451SSam Leffler.Dv IEEE80211_WEP_ON 62979bc1451SSam Leffler(enabled for all packets sent and received), 63079bc1451SSam Leffler.Dv IEEE80211_WEP_OFF 63179bc1451SSam Leffler(disabled), 63279bc1451SSam Lefflerand 63379bc1451SSam Leffler.Dv IEEE80211_WEP_MIXED 63479bc1451SSam Leffler(enabled for transmit and receive but also willing to receive 63579bc1451SSam Lefflerunencrypted frames). 63679bc1451SSam LefflerThis request is deprecated; use 63779bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 63879bc1451SSam Lefflerand 63979bc1451SSam Leffler.Dv IEEE80211_IOC_UNENCRYPTED 64079bc1451SSam Lefflerinstead. 64179bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPKEY 64279bc1451SSam LefflerReturn the requested WEP key via 64379bc1451SSam Leffler.Va i_data . 64479bc1451SSam LefflerThe key number is specified in 64579bc1451SSam Leffler.Va i_val 64679bc1451SSam Lefflerand may be 0-3. 64779bc1451SSam LefflerIf the device does not support returning the WEP key or the user is not 64879bc1451SSam Lefflerroot then the key may be returned as all zeros. 64979bc1451SSam LefflerThis request is deprecated in favor of 65079bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY . 65179bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPTXKEY 65279bc1451SSam LefflerReturn the number of the WEP key used for transmission in 65379bc1451SSam Leffler.Va i_val . 65479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME 65579bc1451SSam LefflerReturn whether 802.11e/WME/WMM support is enabled in 65679bc1451SSam Leffler.Va i_val . 65779bc1451SSam LefflerThis value will be non-zero when support is enabled and otherwise zero. 65879bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMIN 65979bc1451SSam LefflerReturn the WME CWmin setting (log2) for the specified Access Class (AC) in 66079bc1451SSam Leffler.Va i_val . 66179bc1451SSam LefflerThe AC is passed in through 66279bc1451SSam Leffler.Va i_len 66379bc1451SSam Lefflertogether with an optional IEEE80211_WMEPARAM_BSS flag to indicate if the 66479bc1451SSam Lefflerparameter for the BSS or the channel is desired. 66579bc1451SSam LefflerIf WME is not supported then 66679bc1451SSam Leffler.Er EINVAL 667c2025a76SJoel Dahlwill be returned. 66879bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_CWMAX 66979bc1451SSam LefflerReturn the WME CWmax setting (log2) for the specified Access Class (AC) in 67079bc1451SSam Leffler.Va i_val . 67179bc1451SSam LefflerSee 67279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 67379bc1451SSam Lefflerabove for more details. 67479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_AIFS 67579bc1451SSam LefflerReturn the WME AIFS setting for the specified Access Class (AC) in 67679bc1451SSam Leffler.Va i_val . 67779bc1451SSam LefflerSee 67879bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 67979bc1451SSam Lefflerabove for more details. 68079bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_TXOPLIMIT 68179bc1451SSam LefflerReturn the WME TxOpLimit (msec) for the specified Access Class (AC) in 68279bc1451SSam Leffler.Va i_val . 68379bc1451SSam LefflerSee 68479bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 68579bc1451SSam Lefflerabove for more details. 68679bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACM 68779bc1451SSam LefflerReturn the WME Admission Control Mechanism (ACM) setting 68879bc1451SSam Lefflerfor the specified Access Class (AC) in 68979bc1451SSam Leffler.Va i_val . 69079bc1451SSam LefflerThis value is meaningful only for the BSS (not channel). 69179bc1451SSam LefflerSee 69279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 69379bc1451SSam Lefflerabove for more details. 69479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACKPOLICY 69579bc1451SSam LefflerReturn the WME ACK Policy setting 69679bc1451SSam Lefflerfor the specified Access Class (AC) in 69779bc1451SSam Leffler.Va i_val . 69879bc1451SSam LefflerWhen this value is zero frames will be transmitted without waiting for 69979bc1451SSam Leffleran Acknowledgement. 70079bc1451SSam LefflerThis value is meaningful only for the channel (not BSS). 70179bc1451SSam LefflerSee 70279bc1451SSam Leffler.Dv IEEE80211_IOC_WME_CWMIN 70379bc1451SSam Lefflerabove for more details. 70479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPA 70579bc1451SSam LefflerReturn the WPA configuration in 70679bc1451SSam Leffler.Va i_val . 70779bc1451SSam LefflerValid values are 70879bc1451SSam Leffler0 (WPA is not enabled), 70979bc1451SSam Leffler1 (WPA1 is enabled), 71079bc1451SSam Leffler2 (WPA2/802.11i is enabled), 71179bc1451SSam Lefflerand 71279bc1451SSam Leffler3 (WPA1 and WPA2/802.11i are both enabled). 71379bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAIE 71479bc1451SSam LefflerReturn any WPA information element for an associated station via 71579bc1451SSam Leffler.Va i_data . 71679bc1451SSam LefflerThe request passed in through 71779bc1451SSam Leffler.Va i_data 71879bc1451SSam Leffleridentifies the MAC address of the desired station. 71979bc1451SSam LefflerIf an RSN (802.11i) element is present it is returned; otherwise any WPA 72079bc1451SSam Lefflerelement is returned. 72179bc1451SSam LefflerNote this request is deprecated; use 72279bc1451SSam Leffler.Dv IEEE80211_IOC_WPAIE2 72379bc1451SSam Lefflerinstead. 72479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAIE2 72579bc1451SSam LefflerReturn any WPA information elements for an associated station via 72679bc1451SSam Leffler.Va i_data . 72779bc1451SSam LefflerThe request passed in through 72879bc1451SSam Leffler.Va i_data 72979bc1451SSam Leffleridentifies the MAC address of the desired station. 73079bc1451SSam LefflerOne or both of RSN (802.11i) and WPA elements may be returned. 73179bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAKEY 73279bc1451SSam LefflerReturn the requested cryptographic key in the buffer pointed to by 73379bc1451SSam Leffler.Va i_data . 73479bc1451SSam LefflerThe key number is specified in 73579bc1451SSam Leffler.Va i_val 73679bc1451SSam Lefflerand may be 0-3. 73779bc1451SSam LefflerA key number of zero is used to retrieve a station's unicast cipher key 73879bc1451SSam Lefflerwhen operating with WPA enabled. 73979bc1451SSam LefflerIf the user is not root then the key data returned is all zeros. 74079bc1451SSam Leffler.It Dv IEEE80211_IOC_WPS 74179bc1451SSam LefflerReturn whether or not Wi-FI Protected Setup (WPS) is enabled in 74279bc1451SSam Leffler.Va i_val . 74379bc1451SSam Leffler.El 74479bc1451SSam Leffler.Pp 74579bc1451SSam LefflerFor 74679bc1451SSam Leffler.Dv SIOCS80211 74779bc1451SSam Lefflerthe following values of 74879bc1451SSam Leffler.Va i_type 74979bc1451SSam Lefflerare valid. 75079bc1451SSam LefflerNote that changing a value on an interface that is running may 75179bc1451SSam Lefflercause the interface to be 75279bc1451SSam Leffler.Sq reset . 75379bc1451SSam LefflerResets may be handled without altering the state if the parameter 75479bc1451SSam Lefflerdoes not affect the MLME state (e.g. RTS threshold), but in some 75579bc1451SSam Lefflercases the interface may need to scan for a new network or clear 75679bc1451SSam Lefflerstate (including any associated stations); in that case the interface 75779bc1451SSam Leffleris said to be 75879bc1451SSam Leffler.Sq restarted 75979bc1451SSam Leffler(it is equivalent to marking the interface down and back up). 76079bc1451SSam LefflerThe information below identifies whether changing a value affects the 76179bc1451SSam Lefflerstate of a running interface. 76279bc1451SSam Leffler.Bl -tag -width indent 76379bc1451SSam Leffler.It Dv IEEE80211_IOC_ADDMAC 76479bc1451SSam LefflerAdd an entry to the MAC address Access Control List (ACL) database using 76579bc1451SSam Lefflerthe value pointed to by 76679bc1451SSam Leffler.Va i_data . 76779bc1451SSam LefflerThe 76879bc1451SSam Leffler.Xr wlan_acl 4 76979bc1451SSam Lefflermodule must be installed and enabled or 77079bc1451SSam Leffler.Er EINVAL 77179bc1451SSam Lefflerwill be returned. 77279bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU 77379bc1451SSam LefflerSet whether or not AMPDU is enabled for transmit and/or receive 77479bc1451SSam Lefflerusing the value in 77579bc1451SSam Leffler.Va i_val . 77679bc1451SSam LefflerThis request causes a running interface operating on an HT channel 77779bc1451SSam Lefflerto be reset. 77879bc1451SSam LefflerSee 77979bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU 78079bc1451SSam Lefflerabove for details. 78179bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_DENSITY 78279bc1451SSam LefflerSet the minimum density for bursting AMPDU frames to the value in 78379bc1451SSam Leffler.Va i_val . 78479bc1451SSam LefflerThis request causes a running interface to be reset. 78579bc1451SSam LefflerSee 78679bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU_DENSITY 78779bc1451SSam Lefflerabove for details. 78879bc1451SSam Leffler.It Dv IEEE80211_IOC_AMPDU_LIMIT 78979bc1451SSam LefflerSet the limit on the size of AMPDU frames to the value in 79079bc1451SSam Leffler.Va i_val . 79179bc1451SSam LefflerThis request causes a running interface to be reset. 79279bc1451SSam LefflerSee 79379bc1451SSam Leffler.Dv IEEE80211_IOC_AMPDU_LIMIT 79479bc1451SSam Lefflerabove for details. 79579bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU 79679bc1451SSam LefflerSet whether or not AMSDU is enabled for transmit and/or receive 79779bc1451SSam Lefflerusing the value in 79879bc1451SSam Leffler.Va i_val . 79979bc1451SSam LefflerThis request causes a running interface operating on an HT channel 80079bc1451SSam Lefflerto be reset. 80179bc1451SSam LefflerSee 80279bc1451SSam Leffler.Dv IEEE80211_IOC_AMSDU 80379bc1451SSam Lefflerabove for details. 80479bc1451SSam Leffler.It Dv IEEE80211_IOC_AMSDU_LIMIT 80579bc1451SSam LefflerSet the limit on the size of AMSDU frames to the value in 80679bc1451SSam Leffler.Va i_val . 80779bc1451SSam LefflerThis request causes a running interface to be reset. 80879bc1451SSam LefflerSee 80979bc1451SSam Leffler.Dv IEEE80211_IOC_AMSDU_LIMIT 81079bc1451SSam Lefflerabove for details. 81179bc1451SSam Leffler.It Dv IEEE80211_IOC_APBRIDGE 81279bc1451SSam LefflerSet whether AP bridging is enabled using the value in 81379bc1451SSam Leffler.Va i_val . 81479bc1451SSam LefflerSee 81579bc1451SSam Leffler.Dv IEEE80211_IOC_APBRIDGE 81679bc1451SSam Lefflerabove for details. 81779bc1451SSam Leffler.It Dv IEEE80211_IOC_APPIE 81879bc1451SSam LefflerSet an application information element using the data pointed to by 81979bc1451SSam Leffler.Va i_data . 82079bc1451SSam LefflerThis request causes a running interface to be restarted if the WPA 82179bc1451SSam Lefflerinformation element is changed. 82279bc1451SSam LefflerSee 82379bc1451SSam Leffler.Dv IEEE80211_IOC_APPIE 82479bc1451SSam Lefflerabove for details. 82579bc1451SSam Leffler.It Dv IEEE80211_IOC_AUTHMODE 82679bc1451SSam LefflerSet the current authentication mode using the value in 82779bc1451SSam Leffler.Va i_val . 82879bc1451SSam LefflerThis request causes a running interface to be restarted. 82979bc1451SSam LefflerSee 83079bc1451SSam Leffler.Dv IEEE80211_IOC_AUTHMODE 83179bc1451SSam Lefflerabove for details. 83279bc1451SSam LefflerThis request causes a running interface to be restarted. 83379bc1451SSam Leffler.It Dv IEEE80211_IOC_BEACON_INTERVAL 83479bc1451SSam LefflerSet the time between Beacon frames (in TU) to the value in 83579bc1451SSam Leffler.Va i_val . 83679bc1451SSam LefflerThis request causes a running interface to be restarted. 83779bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN 83879bc1451SSam LefflerSet whether background scanning is enabled using the value in 83979bc1451SSam Leffler.Va i_val . 84079bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_IDLE 84179bc1451SSam LefflerSet the minimum time (in msecs) a station must be idle 84279bc1451SSam Lefflerbefore it will do a background scan to the value in 84379bc1451SSam Leffler.Va i_val . 84479bc1451SSam Leffler.It Dv IEEE80211_IOC_BGSCAN_INTERVAL 84579bc1451SSam LefflerSet the minimum time (seconds) between background scan operations to the value in 84679bc1451SSam Leffler.Va i_val . 84779bc1451SSam Leffler.It Dv IEEE80211_IOC_BMISSTHRESHOLD 84879bc1451SSam LefflerSet the number of consecutive missed Beacon frames before the system will 84979bc1451SSam Lefflerattempt to roam to the value in 85079bc1451SSam Leffler.Va i_val . 85179bc1451SSam LefflerThis request causes a running interface to be reset. 85279bc1451SSam Leffler.It Dv IEEE80211_IOC_BSSID 85379bc1451SSam LefflerSet the 802.11 MAC address for the desired BSS identifier according to 85479bc1451SSam Leffler.Va i_data . 85579bc1451SSam LefflerThis request causes a running interface to be restarted. 85679bc1451SSam Leffler.It Dv IEEE80211_IOC_BURST 85779bc1451SSam LefflerSet whether or not packet bursting is enabled using the value in 85879bc1451SSam Leffler.Va i_val . 85979bc1451SSam LefflerThis request causes a running interface to be reset. 86079bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANNEL 86179bc1451SSam LefflerSet the desired/current channel to the value given by 86279bc1451SSam Leffler.Va i_val . 86379bc1451SSam LefflerThis request causes a running interface to 86479bc1451SSam Lefflerimmediately change to the specified channel if possible; 86579bc1451SSam Lefflerotherwise the interface will be restarted. 86679bc1451SSam LefflerNote this request is deprecated; use 86779bc1451SSam Leffler.Dv IEEE80211_IOC_CURCHAN 86879bc1451SSam Lefflerinstead. 86979bc1451SSam Leffler.It Dv IEEE80211_IOC_CHANLIST 87079bc1451SSam LefflerSet the list of available channels using the channel list pointed to by 87179bc1451SSam Leffler.Va i_data . 87279bc1451SSam LefflerThe channel list is a bit vector with bit N set to 1 if 87379bc1451SSam LefflerIEEE channel number N is available for use. 87479bc1451SSam LefflerThe specified channel list is checked against the set of supported 87579bc1451SSam Lefflerchannels and any channels not supported are silently ignored. 87679bc1451SSam LefflerIf the intersection of the channel list and the supported channels is empty 87779bc1451SSam Leffler.Er EINVAL 87879bc1451SSam Leffleris returned. 87979bc1451SSam LefflerNote the current channel may be marked invalid after installing a 88079bc1451SSam Lefflernew channel list. 88179bc1451SSam LefflerThis request causes a running interface to be restarted. 88279bc1451SSam Leffler.It Dv IEEE80211_IOC_COUNTERMEASURES 88379bc1451SSam LefflerSet whether TKIP Countermeasures are enabled using the value in 88479bc1451SSam Leffler.Va i_val . 88579bc1451SSam LefflerThis request can only be used when the authentication mode is set 88679bc1451SSam LefflerWPA; otherwise 88779bc1451SSam Leffler.Er EOPNOTSUPP 88879bc1451SSam Lefflerwill be returned. 88979bc1451SSam Leffler.It Dv IEEE80211_IOC_CURCHAN 89079bc1451SSam LefflerSet the current channel using the information referenced by 89179bc1451SSam Leffler.Va i_data . 89279bc1451SSam LefflerThis request causes a running interface to 89379bc1451SSam Lefflerimmediately change to the specified channel if possible; 89479bc1451SSam Lefflerotherwise the interface will be restarted. 89579bc1451SSam Leffler.It Dv IEEE80211_IOC_DELKEY 89679bc1451SSam LefflerDelete the key specified by the information referenced by 89779bc1451SSam Leffler.Va i_data . 89879bc1451SSam Leffler.It Dv IEEE80211_IOC_DELMAC 89979bc1451SSam LefflerRemove an entry in the MAC address Access Control List (ACL) database using 90079bc1451SSam Lefflerthe value pointed to by 90179bc1451SSam Leffler.Va i_data . 90279bc1451SSam LefflerThe 90379bc1451SSam Leffler.Xr wlan_acl 4 90479bc1451SSam Lefflermodule must be installed and enabled or 90579bc1451SSam Leffler.Er EINVAL 90679bc1451SSam Lefflerwill be returned. 90779bc1451SSam Leffler.It Dv IEEE80211_IOC_DFS 90879bc1451SSam LefflerSet whether or not Dynamic Frequency Selection (DFS) is enabled 90979bc1451SSam Lefflerusing the value in 91079bc1451SSam Leffler.Va i_val . 91179bc1451SSam LefflerThis request will fail with 91279bc1451SSam Leffler.Er EINVAL 91379bc1451SSam Lefflerif 802.11h support is not enabled. 91479bc1451SSam LefflerSee 91579bc1451SSam Leffler.Dv IEEE80211_IOC_DFS 91679bc1451SSam Lefflerabove for details. 91779bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTD 91879bc1451SSam LefflerSet whether or not 802.11d support is enabled using the value in 91979bc1451SSam Leffler.Va i_val . 92079bc1451SSam LefflerThis request causes a running interface to be restarted. 92179bc1451SSam LefflerSee 92279bc1451SSam Leffler.Dv IEEE80211_IOC_DOTD 92379bc1451SSam Lefflerabove for details. 92479bc1451SSam Leffler.It Dv IEEE80211_IOC_DOTH 92579bc1451SSam LefflerReturn whether 802.11h support is enabled using the value in 92679bc1451SSam Leffler.Va i_val . 92779bc1451SSam LefflerSee 92879bc1451SSam Leffler.Dv IEEE80211_IOC_DOTH 92979bc1451SSam Lefflerabove for details. 93079bc1451SSam Leffler.It Dv IEEE80211_IOC_DROPUNENCRYPTED 93179bc1451SSam LefflerSet whether unencrypted packets transmit/received should be discarded 93279bc1451SSam Lefflerusing the value in 93379bc1451SSam Leffler.Va i_val . 93479bc1451SSam Leffler.It Dv IEEE80211_IOC_DTIM_PERIOD 93579bc1451SSam LefflerSet the period (in beacon intervals) between DTIM events to the value in 93679bc1451SSam Leffler.Va i_val . 93750d922a0SGlen BarberThis request causes a running interface to be restarted. 93879bc1451SSam Leffler.It Dv IEEE80211_IOC_DWDS 93979bc1451SSam LefflerSet whether or not Dynamic WDS support is enabled using the value in 94079bc1451SSam Leffler.Va i_val . 94179bc1451SSam LefflerSee 94279bc1451SSam Leffler.Dv IEEE80211_IOC_DWDS 94379bc1451SSam Lefflerabove for details. 94479bc1451SSam Leffler.It Dv IEEE80211_IOC_FF 94579bc1451SSam LefflerSet whether Atheros fast-frames support is enabled using the value in 94679bc1451SSam Leffler.Va i_val . 94779bc1451SSam LefflerThis request causes a running interface to be restarted. 94879bc1451SSam LefflerSee 94979bc1451SSam Leffler.Dv IEEE80211_IOC_FF 95079bc1451SSam Lefflerabove for details. 95179bc1451SSam Leffler.It Dv IEEE80211_IOC_FRAGTHRESHOLD 95279bc1451SSam LefflerSet the threshold (in bytes) for enabling fragmentation frames using the value in 95379bc1451SSam Leffler.Va i_val . 95479bc1451SSam LefflerThis request causes a running interface to be reset. 95579bc1451SSam LefflerSee 95679bc1451SSam Leffler.Dv IEEE80211_IOC_FRAGTHRESHOLD 95779bc1451SSam Lefflerabove for details. 95879bc1451SSam Leffler.It Dv IEEE80211_IOC_GREENFIELD 95979bc1451SSam LefflerSet whether or not Greenfield preamble use is enabled using the value in 96079bc1451SSam Leffler.Va i_val . 96179bc1451SSam LefflerThis request causes a running interface to be reset. 96279bc1451SSam LefflerSee 96379bc1451SSam Leffler.Dv IEEE80211_IOC_GREENFIELD 96479bc1451SSam Lefflerabove for details. 96579bc1451SSam Leffler.It Dv IEEE80211_IOC_HIDESSID 96679bc1451SSam LefflerSet whether SSID hiding/cloaking is enabled using the value in 96779bc1451SSam Leffler.Va i_val . 96879bc1451SSam LefflerThis request causes a running interface to be reset. 96979bc1451SSam LefflerSee 97079bc1451SSam Leffler.Dv IEEE80211_IOC_HIDESSID 97179bc1451SSam Lefflerabove for details. 97279bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCOMPAT 97379bc1451SSam LefflerSet whether or not 802.11n compatibility support is enabled using the value in 97479bc1451SSam Leffler.Va i_val . 97579bc1451SSam LefflerThis request causes a running interface to be reset if operating on HT channel. 97679bc1451SSam LefflerSee 97779bc1451SSam Leffler.Dv IEEE80211_IOC_HTCOMPAT 97879bc1451SSam Lefflerabove for details. 97979bc1451SSam Leffler.It Dv IEEE80211_IOC_HTCONF 98079bc1451SSam LefflerSet automatic promotion of HT channels using the value in 98179bc1451SSam Leffler.Va i_val . 98279bc1451SSam LefflerThis request causes a running interface to be restarted. 98379bc1451SSam LefflerSee 98479bc1451SSam Leffler.Dv IEEE80211_IOC_HTCONF 98579bc1451SSam Lefflerabove for details. 98679bc1451SSam Leffler.It Dv IEEE80211_IOC_HTPROTMODE 98779bc1451SSam LefflerSet the technique used to protect HT frames in a mixed 802.11n network 98879bc1451SSam Lefflerusing the value in 98979bc1451SSam Leffler.Va i_val . 99079bc1451SSam LefflerThis request causes a running interface to be reset. 99179bc1451SSam LefflerSee 99279bc1451SSam Leffler.Dv IEEE80211_IOC_HTPROTMODE 99379bc1451SSam Lefflerabove for details. 99479bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_MAXHOPS 99579bc1451SSam LefflerSet the maximum acceptable hop count in an HWMP path according to 99679bc1451SSam Leffler.Va i_val . 99779bc1451SSam LefflerValues must be in the range [0-255]. 99879bc1451SSam Leffler.It Dv IEEE80211_IOC_HWMP_ROOTMODE 99979bc1451SSam LefflerSet the Mesh root mode operation according to 100079bc1451SSam Leffler.Va i_val . 100179bc1451SSam LefflerValid values are 100279bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_DISABLED 100379bc1451SSam Leffler(root mode is disabled), 100479bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_NORMAL 100579bc1451SSam Leffler(send broadcast Path Request frames), 100679bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_PROACTIVE 100779bc1451SSam Leffler(send broadcast Path Request frames and force replies) 100879bc1451SSam Lefflerand 100979bc1451SSam Leffler.Dv IEEE80211_HWMP_ROOTMODE_RANN 101079bc1451SSam Leffler(send broadcast Root Announcement (RANN) frames). 101179bc1451SSam Leffler.It Dv IEEE80211_IOC_INACTIVITY 101279bc1451SSam LefflerSet whether or not the system handles inactivity processing using the value in 101379bc1451SSam Leffler.Va i_val . 101479bc1451SSam LefflerWhen inactivity processing is enabled the system will track stations 1015b06cfd40SJoel Dahlthat have not transmitted frames and periodically probe them to 101679bc1451SSam Lefflercheck if they are still present. 101779bc1451SSam LefflerStations that are inactive and do not respond to probes are dropped. 101879bc1451SSam Leffler.It Dv IEEE80211_IOC_MACCMD 101979bc1451SSam LefflerChange the state of the MAC address Access Control List (ACL) system. 102079bc1451SSam LefflerThere are several requests supported: 102179bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_OPEN 102279bc1451SSam Leffler(set the current policy to disable ACL use), 102379bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_ALLOW 102479bc1451SSam Leffler(set the current policy to allow only addresses listed in the database), 102579bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_DENY 102679bc1451SSam Leffler(set the current policy to deny addresses listed in the database), 102779bc1451SSam Leffler.Dv IEEE80211_MACCMD_POLICY_RADUS 102879bc1451SSam Leffler(set the current policy to enable use of a RADIUS backend), 102979bc1451SSam Leffler.Dv IEEE80211_MACCMD_FLUSH 103079bc1451SSam Leffler(flush all addresses from the database), 103179bc1451SSam Lefflerand 103279bc1451SSam Leffler.Dv IEEE80211_MACCMD_DETACH 103379bc1451SSam Leffler(detach the ACL subsystem, disabling it). 103479bc1451SSam LefflerThe 103579bc1451SSam Leffler.Xr wlan_acl 4 103679bc1451SSam Lefflermodule must be installed or 103779bc1451SSam Leffler.Er EINVAL 103879bc1451SSam Lefflerwill be returned. 103979bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_AP 104079bc1451SSam LefflerSet whether or not Mesh AP support is enabled using 104179bc1451SSam Leffler.Va i_val . 104279bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_FWRD 104379bc1451SSam LefflerSet whether or not packet forwarding support is enabled using 104479bc1451SSam Leffler.Va i_val . 104579bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_ID 104679bc1451SSam LefflerSet the Mesh ID using the value pointed to by 104779bc1451SSam Leffler.Va i_data . 104879bc1451SSam LefflerA Mesh ID can be up to 104979bc1451SSam Leffler.Dv IEEE80211_MESHID_LEN 105079bc1451SSam Lefflerbytes long. 105179bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_METRIC 105279bc1451SSam LefflerSet the link metric protocol using the value pointed to by 105379bc1451SSam Leffler.Va i_data . 105479bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_PP_PATH 105579bc1451SSam LefflerSet the path selection protocol using the value pointed to by 105679bc1451SSam Leffler.Va i_data . 105779bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_RTCMD 105879bc1451SSam LefflerManipulate the state of the Mesh routing tables. 105979bc1451SSam LefflerSeveral requests are supported: 106079bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_FLUSH 106179bc1451SSam Leffler(flush the contents of the routing table), 106279bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_ADD 106379bc1451SSam Leffler(add an entry for the MAC address specified in 106479bc1451SSam Leffler.Va i_data 106579bc1451SSam Lefflerand start the Peer discovery process), 106679bc1451SSam Lefflerand 106779bc1451SSam Leffler.Dv IEEE80211_MESH_RTCMD_DELETE 106879bc1451SSam Leffler(delete the entry corresponding to the MAC address specified in 106979bc1451SSam Leffler.Va i_data ). 107079bc1451SSam Leffler.It Dv IEEE80211_IOC_MESH_TTL 107179bc1451SSam LefflerSet the Mesh Time To Live (TTL) setting installed in packets 107279bc1451SSam Lefflertransmitted by this mesh node using 107379bc1451SSam Leffler.Va i_val . 107479bc1451SSam Leffler.It Dv IEEE80211_IOC_MLME 107579bc1451SSam LefflerExplicitly control the MLME state machine for a station using the 107679bc1451SSam LefflerMLME request pointed to by 107779bc1451SSam Leffler.Va i_data . 107879bc1451SSam LefflerThere are several MLME operations supported: 107979bc1451SSam Leffler.Dv IEEE80211_MLME_ASSOC 108079bc1451SSam Leffler(request association to an access point), 108179bc1451SSam Leffler.Dv IEEE80211_MLME_DIASSOC 108279bc1451SSam Leffler(diassociate the specified station), 108379bc1451SSam Leffler.Dv IEEE80211_MLME_DEAUTH 108479bc1451SSam Leffler(deauthenticate the specified station), 108579bc1451SSam Leffler.Dv IEEE80211_MLME_AUHORIZE 1086b06cfd40SJoel Dahl(mark the specified station authorized to pass data frames), 108779bc1451SSam Leffler.Dv IEEE80211_MLME_UNAUTHORIZE 108879bc1451SSam Leffler(revoke the specified station's ability to pass data frames), 108979bc1451SSam Lefflerand 109079bc1451SSam Leffler.Dv IEEE80211_MLME_AUTH 109179bc1451SSam Leffler(request authentication to an access point). 109279bc1451SSam LefflerNote when this facility is used for stations operating in infrastructure mode 109379bc1451SSam Lefflerthe roaming mode should be set to manual. 109479bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVE 109579bc1451SSam LefflerSet the current powersaving mode to the value in 109679bc1451SSam Leffler.Va i_val . 109779bc1451SSam LefflerSee 109879bc1451SSam Leffler.Dv IEEE80211_IOC_POWERSAVE 109979bc1451SSam Lefflerabove for valid values. 110079bc1451SSam LefflerThis request causes a running interface to be reset. 110179bc1451SSam Leffler.It Dv IEEE80211_IOC_POWERSAVESLEEP 110279bc1451SSam LefflerSet the powersave sleep time in TU to the value in 110379bc1451SSam Leffler.Va i_val . 110479bc1451SSam LefflerThis request causes a running interface to be reset. 110579bc1451SSam Leffler.It Dv IEEE80211_IOC_PRIVACY 110679bc1451SSam LefflerSet the current MLME setting for PRIVACY using the value in 110779bc1451SSam Leffler.Va i_val . 110879bc1451SSam LefflerSee 110979bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 111079bc1451SSam Lefflerabove for details. 111179bc1451SSam Leffler.It Dv IEEE80211_IOC_PROTMODE 111279bc1451SSam LefflerSet the current 802.11g protection mode to the value in 111379bc1451SSam Leffler.Va i_val . 111479bc1451SSam LefflerThis request causes a running interface to be reset. 111579bc1451SSam LefflerSee 111679bc1451SSam Leffler.Dv IEEE80211_IOC_PROTMODE 111779bc1451SSam Lefflerabove for details. 111879bc1451SSam LefflerThis request causes a running interface to be reset. 111979bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREG 112079bc1451SSam LefflerSet whether ``pure 11g'' mode is enabled using the value in 112179bc1451SSam Leffler.Va i_val . 112279bc1451SSam LefflerThis request causes a running interface to be restarted. 112379bc1451SSam LefflerSee 112479bc1451SSam Leffler.Dv IEEE80211_IOC_PUREG 112579bc1451SSam Lefflerabove for details. 112679bc1451SSam Leffler.It Dv IEEE80211_IOC_PUREN 112779bc1451SSam LefflerSet whether ``pure 11n'' mode is enabled using the value in 112879bc1451SSam Leffler.Va i_val . 112979bc1451SSam LefflerThis request causes a running interface to be restarted. 113079bc1451SSam LefflerSee 113179bc1451SSam Leffler.Dv IEEE80211_IOC_PUREN 113279bc1451SSam Lefflerabove for details. 113379bc1451SSam Leffler.It Dv IEEE80211_IOC_REGDOMAIN 113479bc1451SSam LefflerSet the regulatory state using the data referenced by 113579bc1451SSam Leffler.Va i_data . 113679bc1451SSam LefflerThis request can only be issued when all interfaces cloned from the 113779bc1451SSam Lefflerunderlying physical device are marked down; otherwise 113879bc1451SSam Leffler.Er EBUSY 113979bc1451SSam Leffleris returned. 114079bc1451SSam LefflerNote the new regulatory data may invalidate any desired channel. 114179bc1451SSam Leffler.It Dv IEEE80211_IOC_RIFS 114279bc1451SSam LefflerSet whether or not Reduced InterFrame Spacing (RIFS) is enabled 114379bc1451SSam Lefflerusing the value in 114479bc1451SSam Leffler.Va i_val . 114579bc1451SSam LefflerThis setting is meaningful only when operating with 802.11n on an HT channel. 114679bc1451SSam LefflerThis request causes a running interface to be reset. 114779bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAM 114879bc1451SSam LefflerSet station roaming parameters using the data pointed to by 114979bc1451SSam Leffler.Va i_data . 115079bc1451SSam Leffler.It Dv IEEE80211_IOC_ROAMING 115179bc1451SSam LefflerSet the current roaming mode to the value in 115279bc1451SSam Leffler.Va i_val . 115379bc1451SSam LefflerSee 115479bc1451SSam Leffler.Dv IEEE80211_IOC_ROAMING 115579bc1451SSam Lefflerabove for details. 115679bc1451SSam Leffler.It Dv IEEE80211_IOC_RTSTHRESHOLD 115779bc1451SSam LefflerSet the threshold (in bytes) for enabling transmission of RTS frames 115879bc1451SSam Lefflerto the value in 115979bc1451SSam Leffler.Va i_val . 116079bc1451SSam LefflerThis request causes a running interface to be reset. 116179bc1451SSam LefflerSee 116279bc1451SSam Leffler.Dv IEEE80211_IOC_RTSTHRESHOLD 116379bc1451SSam Lefflerabove for details. 116479bc1451SSam Leffler.It Dv IEEE80211_IOC_SCANVALID 116579bc1451SSam LefflerSet the age (in seconds) that results from a scan operation will be 116679bc1451SSam Lefflerconsidered valid. 116779bc1451SSam LefflerWhen scan results are no longer valid and they are needed (e.g. to roam) the 116879bc1451SSam Lefflersystem will initiate a scan operation to replenish the scan cache. 1169ac609403SSam Leffler.It Dv IEEE80211_IOC_SCAN_REQ 1170ac609403SSam LefflerRequest a scan operation using the parameters pointed to by 1171ac609403SSam Leffler.Va i_val . 1172ac609403SSam LefflerThe underlying device must be running or 1173ac609403SSam Leffler.Er ENXIO 1174ac609403SSam Lefflerwill be returned. 1175ac609403SSam LefflerValues for 1176ac609403SSam Leffler.Va sr_duration , 1177ac609403SSam Leffler.Va sr_mindwell , 1178ac609403SSam Lefflerand 1179ac609403SSam Leffler.Va sr_maxdwell 1180ac609403SSam Lefflershorter than 1 clock tick are rounded up to a tick. 1181ac609403SSam LefflerIf more SSID's are supplied than the system is capable of handling 1182ac609403SSam Lefflerthe extra ones are silently ignored. 1183ac609403SSam LefflerIf a scan operation is already in progress the request will be 1184ac609403SSam Leffler(silently) ignored. 118579bc1451SSam Leffler.It Dv IEEE80211_IOC_SCAN_CANCEL 118679bc1451SSam LefflerCancel any pending/active scan operation. 118779bc1451SSam Leffler.It Dv IEEE80211_IOC_SHORTGI 118879bc1451SSam LefflerSet whether or not Short Guard Interval (SGI) is enabled using the value in 118979bc1451SSam Leffler.Va i_val . 119079bc1451SSam LefflerNote SGI is only used when operating on an HT (802.11n) channel. 119179bc1451SSam LefflerThis request causes a running interface to be reset. 119279bc1451SSam Leffler.It Dv IEEE80211_IOC_SMPS 119379bc1451SSam LefflerSet the Spatial Multiplexing Power Save (SMPS) setting to the value in 119479bc1451SSam Leffler.Va i_val . 119579bc1451SSam LefflerThis request causes a running interface to be reset. 119679bc1451SSam LefflerSee 119779bc1451SSam Leffler.Dv IEEE80211_IOC_SMPS 119879bc1451SSam Lefflerabove for details. 119979bc1451SSam Leffler.It Dv IEEE80211_IOC_SSID 120079bc1451SSam LefflerSet the desired SSID using the value pointed to by 120179bc1451SSam Leffler.Va i_data . 120279bc1451SSam LefflerThe string may be at most IEEE80211_NWID_LEN bytes. 120379bc1451SSam LefflerThis request causes a running interface to be restarted. 120479bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_STATS 120579bc1451SSam LefflerClear accumulated statistics for the specified station. 120679bc1451SSam Leffler.It Dv IEEE80211_IOC_STA_VLAN 120779bc1451SSam LefflerSet the VLAN tag for the specified station using the information pointed to by 120879bc1451SSam Leffler.Va i_data . 120979bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_BINTERVAL 121079bc1451SSam LefflerSet the interval between Beacon frames to the value in 121179bc1451SSam Leffler.Va i_val . 121279bc1451SSam LefflerValues must be positive. 121379bc1451SSam LefflerThis request causes a running interface to be reset. 121479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOT 121579bc1451SSam LefflerSet the current TDMA slot to the value in 121679bc1451SSam Leffler.Va i_val . 121779bc1451SSam LefflerValues must be in the range [0-slotcnt]. 121879bc1451SSam LefflerSlot 0 identifies the master in the TDMA network; if it running it will 121979bc1451SSam Lefflerimmediately start sending Beacon frames. 122079bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTCNT 122179bc1451SSam LefflerSet the number of slots in the TDMA network to the value in 122279bc1451SSam Leffler.Va i_val . 122379bc1451SSam LefflerThis request causes a running interface to be reset. 122479bc1451SSam Leffler.It Dv IEEE80211_IOC_TDMA_SLOTLEN 122579bc1451SSam LefflerSet the length of the TDMA slot assigned to each station in the network 122679bc1451SSam Lefflerto the value in 122779bc1451SSam Leffler.Va i_val . 122879bc1451SSam LefflerSlot lengths must be in the range 200 usecs to 1024 milliseconds 122979bc1451SSam Leffler(though values outside the range 1-200ms are unlikely to work well). 123079bc1451SSam LefflerThis request causes a running interface to be reset. 123179bc1451SSam Leffler.It Dv IEEE80211_IOC_TSN 123279bc1451SSam LefflerSet whether or not Transitional Security Network (TSN) is enabled 123379bc1451SSam Lefflerusing the value in 123479bc1451SSam Leffler.Va i_val . 123579bc1451SSam Leffler.It Dv IEEE80211_IOC_TURBOP 123679bc1451SSam LefflerSet whether Atheros Dynamic Turbo mode is enabled using the value in 123779bc1451SSam Leffler.Va i_val . 123879bc1451SSam LefflerThis request causes a running interface to be restarted. 123979bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPARAMS 124079bc1451SSam LefflerSet transmit parameters using the data pointed to be 124179bc1451SSam Leffler.Va i_data . 124279bc1451SSam LefflerThis request causes a running interface to be restarted. 124379bc1451SSam Leffler.It Dv IEEE80211_IOC_TXPOWER 124479bc1451SSam LefflerSet the maximum transmit power limit in .5 dBm units to the value in 124579bc1451SSam Leffler.Va i_val . 124679bc1451SSam LefflerThis request causes a running interface to be reset. 124779bc1451SSam Leffler.It Dv IEEE80211_IOC_WEP 124879bc1451SSam LefflerSet the current WEP mode to the value in 124979bc1451SSam Leffler.Va i_val . 125079bc1451SSam LefflerSee 125179bc1451SSam Leffler.Dv IEEE80211_IOC_WEP 125279bc1451SSam Lefflerabove for valid values. 125379bc1451SSam LefflerThis request causes a running interface to be restarted. 125479bc1451SSam LefflerNote this request is deprecated; use 125579bc1451SSam Leffler.Dv IEEE80211_IOC_PRIVACY 125679bc1451SSam Lefflerand 125779bc1451SSam Leffler.Dv IEEE80211_IOC_DROPUNENCRYPTED 125879bc1451SSam Lefflerinstead. 125979bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPKEY 126079bc1451SSam LefflerSet the WEP key indicated by 126179bc1451SSam Leffler.Va i_val 126279bc1451SSam Lefflerusing the data pointed to by 126379bc1451SSam Leffler.Va i_data . 126479bc1451SSam LefflerNote this request is deprecated; use 126579bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY 126679bc1451SSam Lefflerinstead. 126779bc1451SSam Leffler.It Dv IEEE80211_IOC_WEPTXKEY 126879bc1451SSam LefflerSet the default transmit key used for transmission to the value in 126979bc1451SSam Leffler.Va i_val . 127079bc1451SSam Leffler.It Dv IEEE80211_IOC_WME 127179bc1451SSam LefflerSet whether or not WME/WMM support is enabled using the value in 127279bc1451SSam Leffler.Va i_val . 127379bc1451SSam LefflerThis request causes a running interface to be reset. 127479bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_ACKPOLICY 127579bc1451SSam LefflerSet the WME ACK Policy 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_ACM 128079bc1451SSam LefflerSet the WME Admission Control Mechanism 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_AIFS 128579bc1451SSam LefflerSet the WME AIFS 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_CWMAX 129079bc1451SSam LefflerSet the WME CWmax 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_WME_CWMIN 129579bc1451SSam LefflerSet the WME CWmin parameter for the Access Class (AC) specified in 129679bc1451SSam Leffler.Va i_len 129779bc1451SSam Lefflerusing the value in 129879bc1451SSam Leffler.Va i_val . 129979bc1451SSam Leffler.It Dv IEEE80211_IOC_WME_TXOPLIMIT 130079bc1451SSam LefflerSet the WME TxOpLimit parameter for the Access Class (AC) specified in 130179bc1451SSam Leffler.Va i_len 130279bc1451SSam Lefflerusing the value in 130379bc1451SSam Leffler.Va i_val . 130479bc1451SSam Leffler.It Dv IEEE80211_IOC_WPA 130579bc1451SSam LefflerSet the WPA configuration using the value in 130679bc1451SSam Leffler.Va i_val . 130779bc1451SSam LefflerThis request causes a running interface to be reset. 130879bc1451SSam LefflerSee 130979bc1451SSam Leffler.Dv IEEE80211_IOC_WPA 131079bc1451SSam Lefflerabove for details. 131179bc1451SSam Leffler.It Dv IEEE80211_IOC_WPAKEY 131279bc1451SSam LefflerSet the requested cryptographic key using data in the buffer pointed to by 131379bc1451SSam Leffler.Va i_data . 131479bc1451SSam LefflerSee 131579bc1451SSam Leffler.Dv IEEE80211_IOC_WPAKEY 131679bc1451SSam Lefflerfor details. 131779bc1451SSam Leffler.It Dv IEEE80211_IOC_WPS 131879bc1451SSam LefflerSet whether or not Wi-FI Protected Setup (WPS) is enabled using the value in 131979bc1451SSam Leffler.Va i_val . 132079bc1451SSam Leffler.El 132179bc1451SSam Leffler.Sh SEE ALSO 132279bc1451SSam Leffler.Xr ioctl 2 , 132379bc1451SSam Leffler.Xr wlan 4 , 132479bc1451SSam Leffler.Xr wlan_acl 4 , 132579bc1451SSam Leffler.Xr wlan_xauth 4 , 132679bc1451SSam Leffler.Xr hostapd 8 , 13270b3504fdSChristian Brueffer.Xr ifconfig 8 , 13280b3504fdSChristian Brueffer.Xr wpa_supplicant 8 1329