xref: /dflybsd-src/contrib/wpa_supplicant/src/drivers/nl80211_copy.h (revision 3a84a4273475ed07d0ab1c2dfeffdfedef35d9cd)
13ff40c12SJohn Marino #ifndef __LINUX_NL80211_H
23ff40c12SJohn Marino #define __LINUX_NL80211_H
33ff40c12SJohn Marino /*
43ff40c12SJohn Marino  * 802.11 netlink interface public header
53ff40c12SJohn Marino  *
63ff40c12SJohn Marino  * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
73ff40c12SJohn Marino  * Copyright 2008 Michael Wu <flamingice@sourmilk.net>
83ff40c12SJohn Marino  * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com>
93ff40c12SJohn Marino  * Copyright 2008 Michael Buesch <m@bues.ch>
103ff40c12SJohn Marino  * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com>
113ff40c12SJohn Marino  * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com>
123ff40c12SJohn Marino  * Copyright 2008 Colin McCabe <colin@cozybit.com>
13*a1157835SDaniel Fojt  * Copyright 2015-2017	Intel Deutschland GmbH
14*a1157835SDaniel Fojt  * Copyright (C) 2018-2019 Intel Corporation
153ff40c12SJohn Marino  *
163ff40c12SJohn Marino  * Permission to use, copy, modify, and/or distribute this software for any
173ff40c12SJohn Marino  * purpose with or without fee is hereby granted, provided that the above
183ff40c12SJohn Marino  * copyright notice and this permission notice appear in all copies.
193ff40c12SJohn Marino  *
203ff40c12SJohn Marino  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
213ff40c12SJohn Marino  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
223ff40c12SJohn Marino  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
233ff40c12SJohn Marino  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
243ff40c12SJohn Marino  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
253ff40c12SJohn Marino  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
263ff40c12SJohn Marino  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
273ff40c12SJohn Marino  *
283ff40c12SJohn Marino  */
293ff40c12SJohn Marino 
30*a1157835SDaniel Fojt /*
31*a1157835SDaniel Fojt  * This header file defines the userspace API to the wireless stack. Please
32*a1157835SDaniel Fojt  * be careful not to break things - i.e. don't move anything around or so
33*a1157835SDaniel Fojt  * unless you can demonstrate that it breaks neither API nor ABI.
34*a1157835SDaniel Fojt  *
35*a1157835SDaniel Fojt  * Additions to the API should be accompanied by actual implementations in
36*a1157835SDaniel Fojt  * an upstream driver, so that example implementations exist in case there
37*a1157835SDaniel Fojt  * are ever concerns about the precise semantics of the API or changes are
38*a1157835SDaniel Fojt  * needed, and to ensure that code for dead (no longer implemented) API
39*a1157835SDaniel Fojt  * can actually be identified and removed.
40*a1157835SDaniel Fojt  * Nonetheless, semantics should also be documented carefully in this file.
41*a1157835SDaniel Fojt  */
42*a1157835SDaniel Fojt 
433ff40c12SJohn Marino #include <linux/types.h>
443ff40c12SJohn Marino 
453ff40c12SJohn Marino #define NL80211_GENL_NAME "nl80211"
463ff40c12SJohn Marino 
47*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_CONFIG		"config"
48*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_SCAN		"scan"
49*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_REG		"regulatory"
50*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_MLME		"mlme"
51*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_VENDOR		"vendor"
52*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_NAN		"nan"
53*a1157835SDaniel Fojt #define NL80211_MULTICAST_GROUP_TESTMODE	"testmode"
54*a1157835SDaniel Fojt 
553ff40c12SJohn Marino /**
563ff40c12SJohn Marino  * DOC: Station handling
573ff40c12SJohn Marino  *
583ff40c12SJohn Marino  * Stations are added per interface, but a special case exists with VLAN
593ff40c12SJohn Marino  * interfaces. When a station is bound to an AP interface, it may be moved
603ff40c12SJohn Marino  * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN).
613ff40c12SJohn Marino  * The station is still assumed to belong to the AP interface it was added
623ff40c12SJohn Marino  * to.
633ff40c12SJohn Marino  *
643ff40c12SJohn Marino  * Station handling varies per interface type and depending on the driver's
653ff40c12SJohn Marino  * capabilities.
663ff40c12SJohn Marino  *
673ff40c12SJohn Marino  * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS
683ff40c12SJohn Marino  * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows:
693ff40c12SJohn Marino  *  - a setup station entry is added, not yet authorized, without any rate
703ff40c12SJohn Marino  *    or capability information, this just exists to avoid race conditions
713ff40c12SJohn Marino  *  - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid
723ff40c12SJohn Marino  *    to add rate and capability information to the station and at the same
733ff40c12SJohn Marino  *    time mark it authorized.
743ff40c12SJohn Marino  *  - %NL80211_TDLS_ENABLE_LINK is then used
753ff40c12SJohn Marino  *  - after this, the only valid operation is to remove it by tearing down
763ff40c12SJohn Marino  *    the TDLS link (%NL80211_TDLS_DISABLE_LINK)
773ff40c12SJohn Marino  *
783ff40c12SJohn Marino  * TODO: need more info for other interface types
793ff40c12SJohn Marino  */
803ff40c12SJohn Marino 
813ff40c12SJohn Marino /**
823ff40c12SJohn Marino  * DOC: Frame transmission/registration support
833ff40c12SJohn Marino  *
843ff40c12SJohn Marino  * Frame transmission and registration support exists to allow userspace
853ff40c12SJohn Marino  * management entities such as wpa_supplicant react to management frames
863ff40c12SJohn Marino  * that are not being handled by the kernel. This includes, for example,
873ff40c12SJohn Marino  * certain classes of action frames that cannot be handled in the kernel
883ff40c12SJohn Marino  * for various reasons.
893ff40c12SJohn Marino  *
903ff40c12SJohn Marino  * Frame registration is done on a per-interface basis and registrations
913ff40c12SJohn Marino  * cannot be removed other than by closing the socket. It is possible to
923ff40c12SJohn Marino  * specify a registration filter to register, for example, only for a
933ff40c12SJohn Marino  * certain type of action frame. In particular with action frames, those
943ff40c12SJohn Marino  * that userspace registers for will not be returned as unhandled by the
953ff40c12SJohn Marino  * driver, so that the registered application has to take responsibility
963ff40c12SJohn Marino  * for doing that.
973ff40c12SJohn Marino  *
983ff40c12SJohn Marino  * The type of frame that can be registered for is also dependent on the
993ff40c12SJohn Marino  * driver and interface type. The frame types are advertised in wiphy
1003ff40c12SJohn Marino  * attributes so applications know what to expect.
1013ff40c12SJohn Marino  *
1023ff40c12SJohn Marino  * NOTE: When an interface changes type while registrations are active,
1033ff40c12SJohn Marino  *       these registrations are ignored until the interface type is
1043ff40c12SJohn Marino  *       changed again. This means that changing the interface type can
1053ff40c12SJohn Marino  *       lead to a situation that couldn't otherwise be produced, but
1063ff40c12SJohn Marino  *       any such registrations will be dormant in the sense that they
1073ff40c12SJohn Marino  *       will not be serviced, i.e. they will not receive any frames.
1083ff40c12SJohn Marino  *
1093ff40c12SJohn Marino  * Frame transmission allows userspace to send for example the required
1103ff40c12SJohn Marino  * responses to action frames. It is subject to some sanity checking,
1113ff40c12SJohn Marino  * but many frames can be transmitted. When a frame was transmitted, its
1123ff40c12SJohn Marino  * status is indicated to the sending socket.
1133ff40c12SJohn Marino  *
1143ff40c12SJohn Marino  * For more technical details, see the corresponding command descriptions
1153ff40c12SJohn Marino  * below.
1163ff40c12SJohn Marino  */
1173ff40c12SJohn Marino 
1183ff40c12SJohn Marino /**
1193ff40c12SJohn Marino  * DOC: Virtual interface / concurrency capabilities
1203ff40c12SJohn Marino  *
1213ff40c12SJohn Marino  * Some devices are able to operate with virtual MACs, they can have
1223ff40c12SJohn Marino  * more than one virtual interface. The capability handling for this
1233ff40c12SJohn Marino  * is a bit complex though, as there may be a number of restrictions
1243ff40c12SJohn Marino  * on the types of concurrency that are supported.
1253ff40c12SJohn Marino  *
1263ff40c12SJohn Marino  * To start with, each device supports the interface types listed in
1273ff40c12SJohn Marino  * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the
1283ff40c12SJohn Marino  * types there no concurrency is implied.
1293ff40c12SJohn Marino  *
1303ff40c12SJohn Marino  * Once concurrency is desired, more attributes must be observed:
1313ff40c12SJohn Marino  * To start with, since some interface types are purely managed in
1323ff40c12SJohn Marino  * software, like the AP-VLAN type in mac80211 for example, there's
1333ff40c12SJohn Marino  * an additional list of these, they can be added at any time and
1343ff40c12SJohn Marino  * are only restricted by some semantic restrictions (e.g. AP-VLAN
1353ff40c12SJohn Marino  * cannot be added without a corresponding AP interface). This list
1363ff40c12SJohn Marino  * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute.
1373ff40c12SJohn Marino  *
1383ff40c12SJohn Marino  * Further, the list of supported combinations is exported. This is
1393ff40c12SJohn Marino  * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically,
1403ff40c12SJohn Marino  * it exports a list of "groups", and at any point in time the
1413ff40c12SJohn Marino  * interfaces that are currently active must fall into any one of
1423ff40c12SJohn Marino  * the advertised groups. Within each group, there are restrictions
1433ff40c12SJohn Marino  * on the number of interfaces of different types that are supported
1443ff40c12SJohn Marino  * and also the number of different channels, along with potentially
1453ff40c12SJohn Marino  * some other restrictions. See &enum nl80211_if_combination_attrs.
1463ff40c12SJohn Marino  *
1473ff40c12SJohn Marino  * All together, these attributes define the concurrency of virtual
1483ff40c12SJohn Marino  * interfaces that a given device supports.
1493ff40c12SJohn Marino  */
1503ff40c12SJohn Marino 
1513ff40c12SJohn Marino /**
1523ff40c12SJohn Marino  * DOC: packet coalesce support
1533ff40c12SJohn Marino  *
1543ff40c12SJohn Marino  * In most cases, host that receives IPv4 and IPv6 multicast/broadcast
1553ff40c12SJohn Marino  * packets does not do anything with these packets. Therefore the
1563ff40c12SJohn Marino  * reception of these unwanted packets causes unnecessary processing
1573ff40c12SJohn Marino  * and power consumption.
1583ff40c12SJohn Marino  *
1593ff40c12SJohn Marino  * Packet coalesce feature helps to reduce number of received interrupts
1603ff40c12SJohn Marino  * to host by buffering these packets in firmware/hardware for some
1613ff40c12SJohn Marino  * predefined time. Received interrupt will be generated when one of the
1623ff40c12SJohn Marino  * following events occur.
1633ff40c12SJohn Marino  * a) Expiration of hardware timer whose expiration time is set to maximum
1643ff40c12SJohn Marino  * coalescing delay of matching coalesce rule.
1653ff40c12SJohn Marino  * b) Coalescing buffer in hardware reaches it's limit.
1663ff40c12SJohn Marino  * c) Packet doesn't match any of the configured coalesce rules.
1673ff40c12SJohn Marino  *
1683ff40c12SJohn Marino  * User needs to configure following parameters for creating a coalesce
1693ff40c12SJohn Marino  * rule.
1703ff40c12SJohn Marino  * a) Maximum coalescing delay
1713ff40c12SJohn Marino  * b) List of packet patterns which needs to be matched
1723ff40c12SJohn Marino  * c) Condition for coalescence. pattern 'match' or 'no match'
1733ff40c12SJohn Marino  * Multiple such rules can be created.
1743ff40c12SJohn Marino  */
1753ff40c12SJohn Marino 
1763ff40c12SJohn Marino /**
177*a1157835SDaniel Fojt  * DOC: WPA/WPA2 EAPOL handshake offload
178*a1157835SDaniel Fojt  *
179*a1157835SDaniel Fojt  * By setting @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK flag drivers
180*a1157835SDaniel Fojt  * can indicate they support offloading EAPOL handshakes for WPA/WPA2
181*a1157835SDaniel Fojt  * preshared key authentication. In %NL80211_CMD_CONNECT the preshared
182*a1157835SDaniel Fojt  * key should be specified using %NL80211_ATTR_PMK. Drivers supporting
183*a1157835SDaniel Fojt  * this offload may reject the %NL80211_CMD_CONNECT when no preshared
184*a1157835SDaniel Fojt  * key material is provided, for example when that driver does not
185*a1157835SDaniel Fojt  * support setting the temporal keys through %CMD_NEW_KEY.
186*a1157835SDaniel Fojt  *
187*a1157835SDaniel Fojt  * Similarly @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X flag can be
188*a1157835SDaniel Fojt  * set by drivers indicating offload support of the PTK/GTK EAPOL
189*a1157835SDaniel Fojt  * handshakes during 802.1X authentication. In order to use the offload
190*a1157835SDaniel Fojt  * the %NL80211_CMD_CONNECT should have %NL80211_ATTR_WANT_1X_4WAY_HS
191*a1157835SDaniel Fojt  * attribute flag. Drivers supporting this offload may reject the
192*a1157835SDaniel Fojt  * %NL80211_CMD_CONNECT when the attribute flag is not present.
193*a1157835SDaniel Fojt  *
194*a1157835SDaniel Fojt  * For 802.1X the PMK or PMK-R0 are set by providing %NL80211_ATTR_PMK
195*a1157835SDaniel Fojt  * using %NL80211_CMD_SET_PMK. For offloaded FT support also
196*a1157835SDaniel Fojt  * %NL80211_ATTR_PMKR0_NAME must be provided.
197*a1157835SDaniel Fojt  */
198*a1157835SDaniel Fojt 
199*a1157835SDaniel Fojt /**
200*a1157835SDaniel Fojt  * DOC: FILS shared key authentication offload
201*a1157835SDaniel Fojt  *
202*a1157835SDaniel Fojt  * FILS shared key authentication offload can be advertized by drivers by
203*a1157835SDaniel Fojt  * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support
204*a1157835SDaniel Fojt  * FILS shared key authentication offload should be able to construct the
205*a1157835SDaniel Fojt  * authentication and association frames for FILS shared key authentication and
206*a1157835SDaniel Fojt  * eventually do a key derivation as per IEEE 802.11ai. The below additional
207*a1157835SDaniel Fojt  * parameters should be given to driver in %NL80211_CMD_CONNECT and/or in
208*a1157835SDaniel Fojt  * %NL80211_CMD_UPDATE_CONNECT_PARAMS.
209*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_USERNAME - used to construct keyname_nai
210*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_REALM - used to construct keyname_nai
211*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used to construct erp message
212*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_RRK - used to generate the rIK and rMSK
213*a1157835SDaniel Fojt  * rIK should be used to generate an authentication tag on the ERP message and
214*a1157835SDaniel Fojt  * rMSK should be used to derive a PMKSA.
215*a1157835SDaniel Fojt  * rIK, rMSK should be generated and keyname_nai, sequence number should be used
216*a1157835SDaniel Fojt  * as specified in IETF RFC 6696.
217*a1157835SDaniel Fojt  *
218*a1157835SDaniel Fojt  * When FILS shared key authentication is completed, driver needs to provide the
219*a1157835SDaniel Fojt  * below additional parameters to userspace, which can be either after setting
220*a1157835SDaniel Fojt  * up a connection or after roaming.
221*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_KEK - used for key renewal
222*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used in further EAP-RP exchanges
223*a1157835SDaniel Fojt  *	%NL80211_ATTR_PMKID - used to identify the PMKSA used/generated
224*a1157835SDaniel Fojt  *	%Nl80211_ATTR_PMK - used to update PMKSA cache in userspace
225*a1157835SDaniel Fojt  * The PMKSA can be maintained in userspace persistently so that it can be used
226*a1157835SDaniel Fojt  * later after reboots or wifi turn off/on also.
227*a1157835SDaniel Fojt  *
228*a1157835SDaniel Fojt  * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS
229*a1157835SDaniel Fojt  * capable AP supporting PMK caching. It specifies the scope within which the
230*a1157835SDaniel Fojt  * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and
231*a1157835SDaniel Fojt  * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based
232*a1157835SDaniel Fojt  * on FILS cache identifier. Additionally %NL80211_ATTR_PMK is used with
233*a1157835SDaniel Fojt  * %NL80211_SET_PMKSA to specify the PMK corresponding to a PMKSA for driver to
234*a1157835SDaniel Fojt  * use in a FILS shared key connection with PMKSA caching.
235*a1157835SDaniel Fojt  */
236*a1157835SDaniel Fojt 
237*a1157835SDaniel Fojt /**
2383ff40c12SJohn Marino  * enum nl80211_commands - supported nl80211 commands
2393ff40c12SJohn Marino  *
2403ff40c12SJohn Marino  * @NL80211_CMD_UNSPEC: unspecified command to catch errors
2413ff40c12SJohn Marino  *
2423ff40c12SJohn Marino  * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request
2433ff40c12SJohn Marino  *	to get a list of all present wiphys.
2443ff40c12SJohn Marino  * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or
2453ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME,
2463ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the
2473ff40c12SJohn Marino  *	attributes determining the channel width; this is used for setting
2483ff40c12SJohn Marino  *	monitor mode channel),  %NL80211_ATTR_WIPHY_RETRY_SHORT,
2493ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
2503ff40c12SJohn Marino  *	and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD.
2513ff40c12SJohn Marino  *	However, for setting the channel, see %NL80211_CMD_SET_CHANNEL
2523ff40c12SJohn Marino  *	instead, the support here is for backward compatibility only.
2533ff40c12SJohn Marino  * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request
2543ff40c12SJohn Marino  *	or rename notification. Has attributes %NL80211_ATTR_WIPHY and
2553ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_NAME.
2563ff40c12SJohn Marino  * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes
2573ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME.
2583ff40c12SJohn Marino  *
2593ff40c12SJohn Marino  * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration;
260*a1157835SDaniel Fojt  *	either a dump request for all interfaces or a specific get with a
261*a1157835SDaniel Fojt  *	single %NL80211_ATTR_IFINDEX is supported.
2623ff40c12SJohn Marino  * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires
2633ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE.
2643ff40c12SJohn Marino  * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response
2653ff40c12SJohn Marino  *	to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX,
2663ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also
2673ff40c12SJohn Marino  *	be sent from userspace to request creation of a new virtual interface,
2683ff40c12SJohn Marino  *	then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and
2693ff40c12SJohn Marino  *	%NL80211_ATTR_IFNAME.
2703ff40c12SJohn Marino  * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes
2713ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from
2723ff40c12SJohn Marino  *	userspace to request deletion of a virtual interface, then requires
2733ff40c12SJohn Marino  *	attribute %NL80211_ATTR_IFINDEX.
2743ff40c12SJohn Marino  *
2753ff40c12SJohn Marino  * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified
2763ff40c12SJohn Marino  *	by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC.
2773ff40c12SJohn Marino  * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT,
2783ff40c12SJohn Marino  *	%NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD.
2793ff40c12SJohn Marino  * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA,
2803ff40c12SJohn Marino  *	%NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER,
2813ff40c12SJohn Marino  *	and %NL80211_ATTR_KEY_SEQ attributes.
2823ff40c12SJohn Marino  * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX
2833ff40c12SJohn Marino  *	or %NL80211_ATTR_MAC.
2843ff40c12SJohn Marino  *
2853ff40c12SJohn Marino  * @NL80211_CMD_GET_BEACON: (not used)
2863ff40c12SJohn Marino  * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface
2873ff40c12SJohn Marino  *	using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL
2883ff40c12SJohn Marino  *	attributes. For drivers that generate the beacon and probe responses
2893ff40c12SJohn Marino  *	internally, the following attributes must be provided: %NL80211_ATTR_IE,
2903ff40c12SJohn Marino  *	%NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP.
2913ff40c12SJohn Marino  * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters
2923ff40c12SJohn Marino  *	are like for %NL80211_CMD_SET_BEACON, and additionally parameters that
2933ff40c12SJohn Marino  *	do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL,
2943ff40c12SJohn Marino  *	%NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID,
2953ff40c12SJohn Marino  *	%NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE,
2963ff40c12SJohn Marino  *	%NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS,
2973ff40c12SJohn Marino  *	%NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY,
2983ff40c12SJohn Marino  *	%NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT,
2993ff40c12SJohn Marino  *	%NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS.
3003ff40c12SJohn Marino  *	The channel to use can be set on the interface or be given using the
3013ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width.
3023ff40c12SJohn Marino  * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP
3033ff40c12SJohn Marino  * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface
3043ff40c12SJohn Marino  * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP
3053ff40c12SJohn Marino  *
3063ff40c12SJohn Marino  * @NL80211_CMD_GET_STATION: Get station attributes for station identified by
3073ff40c12SJohn Marino  *	%NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
3083ff40c12SJohn Marino  * @NL80211_CMD_SET_STATION: Set station attributes for station identified by
3093ff40c12SJohn Marino  *	%NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
3103ff40c12SJohn Marino  * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the
3113ff40c12SJohn Marino  *	the interface identified by %NL80211_ATTR_IFINDEX.
3123ff40c12SJohn Marino  * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC
3133ff40c12SJohn Marino  *	or, if no MAC address given, all stations, on the interface identified
314*a1157835SDaniel Fojt  *	by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and
315*a1157835SDaniel Fojt  *	%NL80211_ATTR_REASON_CODE can optionally be used to specify which type
316*a1157835SDaniel Fojt  *	of disconnection indication should be sent to the station
317*a1157835SDaniel Fojt  *	(Deauthentication or Disassociation frame and reason code for that
318*a1157835SDaniel Fojt  *	frame).
3193ff40c12SJohn Marino  *
3203ff40c12SJohn Marino  * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to
3213ff40c12SJohn Marino  * 	destination %NL80211_ATTR_MAC on the interface identified by
3223ff40c12SJohn Marino  * 	%NL80211_ATTR_IFINDEX.
3233ff40c12SJohn Marino  * @NL80211_CMD_SET_MPATH:  Set mesh path attributes for mesh path to
3243ff40c12SJohn Marino  * 	destination %NL80211_ATTR_MAC on the interface identified by
3253ff40c12SJohn Marino  * 	%NL80211_ATTR_IFINDEX.
3263ff40c12SJohn Marino  * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by
3273ff40c12SJohn Marino  *	%NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP.
3283ff40c12SJohn Marino  * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by
3293ff40c12SJohn Marino  *	%NL80211_ATTR_MAC.
3303ff40c12SJohn Marino  * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the
3313ff40c12SJohn Marino  *	the interface identified by %NL80211_ATTR_IFINDEX.
3323ff40c12SJohn Marino  * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC
3333ff40c12SJohn Marino  *	or, if no MAC address given, all mesh paths, on the interface identified
3343ff40c12SJohn Marino  *	by %NL80211_ATTR_IFINDEX.
3353ff40c12SJohn Marino  * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by
3363ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX.
3373ff40c12SJohn Marino  *
3383ff40c12SJohn Marino  * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set
339*a1157835SDaniel Fojt  *	regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device
340*a1157835SDaniel Fojt  *	has a private regulatory domain, it will be returned. Otherwise, the
341*a1157835SDaniel Fojt  *	global regdomain will be returned.
342*a1157835SDaniel Fojt  *	A device will have a private regulatory domain if it uses the
343*a1157835SDaniel Fojt  *	regulatory_hint() API. Even when a private regdomain is used the channel
344*a1157835SDaniel Fojt  *	information will still be mended according to further hints from
345*a1157835SDaniel Fojt  *	the regulatory core to help with compliance. A dump version of this API
346*a1157835SDaniel Fojt  *	is now available which will returns the global regdomain as well as
347*a1157835SDaniel Fojt  *	all private regdomains of present wiphys (for those that have it).
348*a1157835SDaniel Fojt  *	If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then
349*a1157835SDaniel Fojt  *	its private regdomain is the only valid one for it. The regulatory
350*a1157835SDaniel Fojt  *	core is not used to help with compliance in this case.
3513ff40c12SJohn Marino  * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command
3523ff40c12SJohn Marino  *	after being queried by the kernel. CRDA replies by sending a regulatory
3533ff40c12SJohn Marino  *	domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our
3543ff40c12SJohn Marino  *	current alpha2 if it found a match. It also provides
3553ff40c12SJohn Marino  * 	NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each
3563ff40c12SJohn Marino  * 	regulatory rule is a nested set of attributes  given by
3573ff40c12SJohn Marino  * 	%NL80211_ATTR_REG_RULE_FREQ_[START|END] and
3583ff40c12SJohn Marino  * 	%NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by
3593ff40c12SJohn Marino  * 	%NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and
3603ff40c12SJohn Marino  * 	%NL80211_ATTR_REG_RULE_POWER_MAX_EIRP.
3613ff40c12SJohn Marino  * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain
3623ff40c12SJohn Marino  * 	to the specified ISO/IEC 3166-1 alpha2 country code. The core will
3633ff40c12SJohn Marino  * 	store this as a valid request and then query userspace for it.
3643ff40c12SJohn Marino  *
3653ff40c12SJohn Marino  * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the
3663ff40c12SJohn Marino  *	interface identified by %NL80211_ATTR_IFINDEX
3673ff40c12SJohn Marino  *
3683ff40c12SJohn Marino  * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the
3693ff40c12SJohn Marino  *      interface identified by %NL80211_ATTR_IFINDEX
3703ff40c12SJohn Marino  *
3713ff40c12SJohn Marino  * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The
3723ff40c12SJohn Marino  *	interface is identified with %NL80211_ATTR_IFINDEX and the management
3733ff40c12SJohn Marino  *	frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be
3743ff40c12SJohn Marino  *	added to the end of the specified management frame is specified with
3753ff40c12SJohn Marino  *	%NL80211_ATTR_IE. If the command succeeds, the requested data will be
3763ff40c12SJohn Marino  *	added to all specified management frames generated by
3773ff40c12SJohn Marino  *	kernel/firmware/driver.
3783ff40c12SJohn Marino  *	Note: This command has been removed and it is only reserved at this
3793ff40c12SJohn Marino  *	point to avoid re-using existing command number. The functionality this
3803ff40c12SJohn Marino  *	command was planned for has been provided with cleaner design with the
3813ff40c12SJohn Marino  *	option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN,
3823ff40c12SJohn Marino  *	NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE,
3833ff40c12SJohn Marino  *	NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE.
3843ff40c12SJohn Marino  *
3853ff40c12SJohn Marino  * @NL80211_CMD_GET_SCAN: get scan results
3863ff40c12SJohn Marino  * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters
3873ff40c12SJohn Marino  *	%NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
388*a1157835SDaniel Fojt  *	probe requests at CCK rate or not. %NL80211_ATTR_BSSID can be used to
389*a1157835SDaniel Fojt  *	specify a BSSID to scan for; if not included, the wildcard BSSID will
390*a1157835SDaniel Fojt  *	be used.
3913ff40c12SJohn Marino  * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to
3923ff40c12SJohn Marino  *	NL80211_CMD_GET_SCAN and on the "scan" multicast group)
3933ff40c12SJohn Marino  * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons,
3943ff40c12SJohn Marino  *	partial scan results may be available
3953ff40c12SJohn Marino  *
3963ff40c12SJohn Marino  * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain
397*a1157835SDaniel Fojt  *	intervals and certain number of cycles, as specified by
398*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is
399*a1157835SDaniel Fojt  *	not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified,
400*a1157835SDaniel Fojt  *	scheduled scan will run in an infinite loop with the specified interval.
401*a1157835SDaniel Fojt  *	These attributes are mutually exculsive,
402*a1157835SDaniel Fojt  *	i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if
403*a1157835SDaniel Fojt  *	NL80211_ATTR_SCHED_SCAN_PLANS is defined.
404*a1157835SDaniel Fojt  *	If for some reason scheduled scan is aborted by the driver, all scan
405*a1157835SDaniel Fojt  *	plans are canceled (including scan plans that did not start yet).
4063ff40c12SJohn Marino  *	Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS)
4073ff40c12SJohn Marino  *	are passed, they are used in the probe requests.  For
4083ff40c12SJohn Marino  *	broadcast, a broadcast SSID must be passed (ie. an empty
4093ff40c12SJohn Marino  *	string).  If no SSID is passed, no probe requests are sent and
4103ff40c12SJohn Marino  *	a passive scan is performed.  %NL80211_ATTR_SCAN_FREQUENCIES,
4113ff40c12SJohn Marino  *	if passed, define which channels should be scanned; if not
4123ff40c12SJohn Marino  *	passed, all channels allowed for the current regulatory domain
4133ff40c12SJohn Marino  *	are used.  Extra IEs can also be passed from the userspace by
414*a1157835SDaniel Fojt  *	using the %NL80211_ATTR_IE attribute.  The first cycle of the
415*a1157835SDaniel Fojt  *	scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY
416*a1157835SDaniel Fojt  *	is supplied. If the device supports multiple concurrent scheduled
417*a1157835SDaniel Fojt  *	scans, it will allow such when the caller provides the flag attribute
418*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCHED_SCAN_MULTI to indicate user-space support for it.
419*a1157835SDaniel Fojt  * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if
420*a1157835SDaniel Fojt  *	scheduled scan is not running. The caller may assume that as soon
421*a1157835SDaniel Fojt  *	as the call returns, it is safe to start a new scheduled scan again.
4223ff40c12SJohn Marino  * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan
4233ff40c12SJohn Marino  *	results available.
4243ff40c12SJohn Marino  * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has
4253ff40c12SJohn Marino  *	stopped.  The driver may issue this event at any time during a
4263ff40c12SJohn Marino  *	scheduled scan.  One reason for stopping the scan is if the hardware
4273ff40c12SJohn Marino  *	does not support starting an association or a normal scan while running
4283ff40c12SJohn Marino  *	a scheduled scan.  This event is also sent when the
4293ff40c12SJohn Marino  *	%NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface
4303ff40c12SJohn Marino  *	is brought down while a scheduled scan was running.
4313ff40c12SJohn Marino  *
4323ff40c12SJohn Marino  * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation
4333ff40c12SJohn Marino  *      or noise level
4343ff40c12SJohn Marino  * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to
4353ff40c12SJohn Marino  *	NL80211_CMD_GET_SURVEY and on the "scan" multicast group)
4363ff40c12SJohn Marino  *
437*a1157835SDaniel Fojt  * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry using %NL80211_ATTR_MAC
438*a1157835SDaniel Fojt  *	(for the BSSID), %NL80211_ATTR_PMKID, and optionally %NL80211_ATTR_PMK
439*a1157835SDaniel Fojt  *	(PMK is used for PTKSA derivation in case of FILS shared key offload) or
440*a1157835SDaniel Fojt  *	using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID,
441*a1157835SDaniel Fojt  *	%NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS
442*a1157835SDaniel Fojt  *	authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier
443*a1157835SDaniel Fojt  *	advertized by a FILS capable AP identifying the scope of PMKSA in an
444*a1157835SDaniel Fojt  *	ESS.
4453ff40c12SJohn Marino  * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC
446*a1157835SDaniel Fojt  *	(for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID,
447*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS
448*a1157835SDaniel Fojt  *	authentication.
4493ff40c12SJohn Marino  * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries.
4503ff40c12SJohn Marino  *
4513ff40c12SJohn Marino  * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain
4523ff40c12SJohn Marino  * 	has been changed and provides details of the request information
4533ff40c12SJohn Marino  * 	that caused the change such as who initiated the regulatory request
4543ff40c12SJohn Marino  * 	(%NL80211_ATTR_REG_INITIATOR), the wiphy_idx
4553ff40c12SJohn Marino  * 	(%NL80211_ATTR_REG_ALPHA2) on which the request was made from if
4563ff40c12SJohn Marino  * 	the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or
4573ff40c12SJohn Marino  * 	%NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain
4583ff40c12SJohn Marino  * 	set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is
4593ff40c12SJohn Marino  * 	%NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on
4603ff40c12SJohn Marino  * 	to (%NL80211_ATTR_REG_ALPHA2).
4613ff40c12SJohn Marino  * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon
4623ff40c12SJohn Marino  * 	has been found while world roaming thus enabling active scan or
4633ff40c12SJohn Marino  * 	any mode of operation that initiates TX (beacons) on a channel
4643ff40c12SJohn Marino  * 	where we would not have been able to do either before. As an example
4653ff40c12SJohn Marino  * 	if you are world roaming (regulatory domain set to world or if your
4663ff40c12SJohn Marino  * 	driver is using a custom world roaming regulatory domain) and while
4673ff40c12SJohn Marino  * 	doing a passive scan on the 5 GHz band you find an AP there (if not
4683ff40c12SJohn Marino  * 	on a DFS channel) you will now be able to actively scan for that AP
4693ff40c12SJohn Marino  * 	or use AP mode on your card on that same channel. Note that this will
4703ff40c12SJohn Marino  * 	never be used for channels 1-11 on the 2 GHz band as they are always
4713ff40c12SJohn Marino  * 	enabled world wide. This beacon hint is only sent if your device had
4723ff40c12SJohn Marino  * 	either disabled active scanning or beaconing on a channel. We send to
4733ff40c12SJohn Marino  * 	userspace the wiphy on which we removed a restriction from
4743ff40c12SJohn Marino  * 	(%NL80211_ATTR_WIPHY) and the channel on which this occurred
4753ff40c12SJohn Marino  * 	before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER)
4763ff40c12SJohn Marino  * 	the beacon hint was processed.
4773ff40c12SJohn Marino  *
4783ff40c12SJohn Marino  * @NL80211_CMD_AUTHENTICATE: authentication request and notification.
4793ff40c12SJohn Marino  *	This command is used both as a command (request to authenticate) and
4803ff40c12SJohn Marino  *	as an event on the "mlme" multicast group indicating completion of the
4813ff40c12SJohn Marino  *	authentication process.
4823ff40c12SJohn Marino  *	When used as a command, %NL80211_ATTR_IFINDEX is used to identify the
4833ff40c12SJohn Marino  *	interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and
4843ff40c12SJohn Marino  *	BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify
4853ff40c12SJohn Marino  *	the SSID (mainly for association, but is included in authentication
4863ff40c12SJohn Marino  *	request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ is used
4873ff40c12SJohn Marino  *	to specify the frequence of the channel in MHz. %NL80211_ATTR_AUTH_TYPE
4883ff40c12SJohn Marino  *	is used to specify the authentication type. %NL80211_ATTR_IE is used to
4893ff40c12SJohn Marino  *	define IEs (VendorSpecificInfo, but also including RSN IE and FT IEs)
4903ff40c12SJohn Marino  *	to be added to the frame.
4913ff40c12SJohn Marino  *	When used as an event, this reports reception of an Authentication
4923ff40c12SJohn Marino  *	frame in station and IBSS modes when the local MLME processed the
4933ff40c12SJohn Marino  *	frame, i.e., it was for the local STA and was received in correct
4943ff40c12SJohn Marino  *	state. This is similar to MLME-AUTHENTICATE.confirm primitive in the
4953ff40c12SJohn Marino  *	MLME SAP interface (kernel providing MLME, userspace SME). The
4963ff40c12SJohn Marino  *	included %NL80211_ATTR_FRAME attribute contains the management frame
4973ff40c12SJohn Marino  *	(including both the header and frame body, but not FCS). This event is
4983ff40c12SJohn Marino  *	also used to indicate if the authentication attempt timed out. In that
4993ff40c12SJohn Marino  *	case the %NL80211_ATTR_FRAME attribute is replaced with a
5003ff40c12SJohn Marino  *	%NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which
5013ff40c12SJohn Marino  *	pending authentication timed out).
5023ff40c12SJohn Marino  * @NL80211_CMD_ASSOCIATE: association request and notification; like
5033ff40c12SJohn Marino  *	NL80211_CMD_AUTHENTICATE but for Association and Reassociation
5043ff40c12SJohn Marino  *	(similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request,
505*a1157835SDaniel Fojt  *	MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). The
506*a1157835SDaniel Fojt  *	%NL80211_ATTR_PREV_BSSID attribute is used to specify whether the
507*a1157835SDaniel Fojt  *	request is for the initial association to an ESS (that attribute not
508*a1157835SDaniel Fojt  *	included) or for reassociation within the ESS (that attribute is
509*a1157835SDaniel Fojt  *	included).
5103ff40c12SJohn Marino  * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like
5113ff40c12SJohn Marino  *	NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to
5123ff40c12SJohn Marino  *	MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication
5133ff40c12SJohn Marino  *	primitives).
5143ff40c12SJohn Marino  * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like
5153ff40c12SJohn Marino  *	NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to
5163ff40c12SJohn Marino  *	MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives).
5173ff40c12SJohn Marino  *
5183ff40c12SJohn Marino  * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael
5193ff40c12SJohn Marino  *	MIC (part of TKIP) failure; sent on the "mlme" multicast group; the
5203ff40c12SJohn Marino  *	event includes %NL80211_ATTR_MAC to describe the source MAC address of
5213ff40c12SJohn Marino  *	the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key
5223ff40c12SJohn Marino  *	type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and
5233ff40c12SJohn Marino  *	%NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this
5243ff40c12SJohn Marino  *	event matches with MLME-MICHAELMICFAILURE.indication() primitive
5253ff40c12SJohn Marino  *
5263ff40c12SJohn Marino  * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a
5273ff40c12SJohn Marino  *	FREQ attribute (for the initial frequency if no peer can be found)
5283ff40c12SJohn Marino  *	and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those
5293ff40c12SJohn Marino  *	should be fixed rather than automatically determined. Can only be
5303ff40c12SJohn Marino  *	executed on a network interface that is UP, and fixed BSSID/FREQ
5313ff40c12SJohn Marino  *	may be rejected. Another optional parameter is the beacon interval,
5323ff40c12SJohn Marino  *	given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not
5333ff40c12SJohn Marino  *	given defaults to 100 TU (102.4ms).
5343ff40c12SJohn Marino  * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is
5353ff40c12SJohn Marino  *	determined by the network interface.
5363ff40c12SJohn Marino  *
5373ff40c12SJohn Marino  * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute
5383ff40c12SJohn Marino  *	to identify the device, and the TESTDATA blob attribute to pass through
5393ff40c12SJohn Marino  *	to the driver.
5403ff40c12SJohn Marino  *
5413ff40c12SJohn Marino  * @NL80211_CMD_CONNECT: connection request and notification; this command
5423ff40c12SJohn Marino  *	requests to connect to a specified network but without separating
5433ff40c12SJohn Marino  *	auth and assoc steps. For this, you need to specify the SSID in a
5443ff40c12SJohn Marino  *	%NL80211_ATTR_SSID attribute, and can optionally specify the association
5453ff40c12SJohn Marino  *	IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP,
5463ff40c12SJohn Marino  *	%NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT,
547*a1157835SDaniel Fojt  *	%NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
548*a1157835SDaniel Fojt  *	%NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
549*a1157835SDaniel Fojt  *	%NL80211_ATTR_CONTROL_PORT_OVER_NL80211, %NL80211_ATTR_MAC_HINT, and
550*a1157835SDaniel Fojt  *	%NL80211_ATTR_WIPHY_FREQ_HINT.
551*a1157835SDaniel Fojt  *	If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
552*a1157835SDaniel Fojt  *	restrictions on BSS selection, i.e., they effectively prevent roaming
553*a1157835SDaniel Fojt  *	within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT
554*a1157835SDaniel Fojt  *	can be included to provide a recommendation of the initial BSS while
555*a1157835SDaniel Fojt  *	allowing the driver to roam to other BSSes within the ESS and also to
556*a1157835SDaniel Fojt  *	ignore this recommendation if the indicated BSS is not ideal. Only one
557*a1157835SDaniel Fojt  *	set of BSSID,frequency parameters is used (i.e., either the enforcing
558*a1157835SDaniel Fojt  *	%NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict
559*a1157835SDaniel Fojt  *	%NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT).
560*a1157835SDaniel Fojt  *	%NL80211_ATTR_PREV_BSSID can be used to request a reassociation within
561*a1157835SDaniel Fojt  *	the ESS in case the device is already associated and an association with
562*a1157835SDaniel Fojt  *	a different BSS is desired.
5633ff40c12SJohn Marino  *	Background scan period can optionally be
5643ff40c12SJohn Marino  *	specified in %NL80211_ATTR_BG_SCAN_PERIOD,
5653ff40c12SJohn Marino  *	if not specified default background scan configuration
5663ff40c12SJohn Marino  *	in driver is used and if period value is 0, bg scan will be disabled.
5673ff40c12SJohn Marino  *	This attribute is ignored if driver does not support roam scan.
5683ff40c12SJohn Marino  *	It is also sent as an event, with the BSSID and response IEs when the
5693ff40c12SJohn Marino  *	connection is established or failed to be established. This can be
570*a1157835SDaniel Fojt  *	determined by the %NL80211_ATTR_STATUS_CODE attribute (0 = success,
571*a1157835SDaniel Fojt  *	non-zero = failure). If %NL80211_ATTR_TIMED_OUT is included in the
572*a1157835SDaniel Fojt  *	event, the connection attempt failed due to not being able to initiate
573*a1157835SDaniel Fojt  *	authentication/association or not receiving a response from the AP.
574*a1157835SDaniel Fojt  *	Non-zero %NL80211_ATTR_STATUS_CODE value is indicated in that case as
575*a1157835SDaniel Fojt  *	well to remain backwards compatible.
576*a1157835SDaniel Fojt  *	When establishing a security association, drivers that support 4 way
577*a1157835SDaniel Fojt  *	handshake offload should send %NL80211_CMD_PORT_AUTHORIZED event when
578*a1157835SDaniel Fojt  *	the 4 way handshake is completed successfully.
579*a1157835SDaniel Fojt  * @NL80211_CMD_ROAM: Notification indicating the card/driver roamed by itself.
580*a1157835SDaniel Fojt  *	When a security association was established with the new AP (e.g. if
581*a1157835SDaniel Fojt  *	the FT protocol was used for roaming or the driver completed the 4 way
582*a1157835SDaniel Fojt  *	handshake), this event should be followed by an
583*a1157835SDaniel Fojt  *	%NL80211_CMD_PORT_AUTHORIZED event.
5843ff40c12SJohn Marino  * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify
5853ff40c12SJohn Marino  *	userspace that a connection was dropped by the AP or due to other
5863ff40c12SJohn Marino  *	reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and
5873ff40c12SJohn Marino  *	%NL80211_ATTR_REASON_CODE attributes are used.
5883ff40c12SJohn Marino  *
5893ff40c12SJohn Marino  * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices
5903ff40c12SJohn Marino  *	associated with this wiphy must be down and will follow.
5913ff40c12SJohn Marino  *
5923ff40c12SJohn Marino  * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified
5933ff40c12SJohn Marino  *	channel for the specified amount of time. This can be used to do
5943ff40c12SJohn Marino  *	off-channel operations like transmit a Public Action frame and wait for
5953ff40c12SJohn Marino  *	a response while being associated to an AP on another channel.
5963ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX is used to specify which interface (and thus
5973ff40c12SJohn Marino  *	radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the
5983ff40c12SJohn Marino  *	frequency for the operation.
5993ff40c12SJohn Marino  *	%NL80211_ATTR_DURATION is used to specify the duration in milliseconds
6003ff40c12SJohn Marino  *	to remain on the channel. This command is also used as an event to
6013ff40c12SJohn Marino  *	notify when the requested duration starts (it may take a while for the
6023ff40c12SJohn Marino  *	driver to schedule this time due to other concurrent needs for the
6033ff40c12SJohn Marino  *	radio).
6043ff40c12SJohn Marino  *	When called, this operation returns a cookie (%NL80211_ATTR_COOKIE)
6053ff40c12SJohn Marino  *	that will be included with any events pertaining to this request;
6063ff40c12SJohn Marino  *	the cookie is also used to cancel the request.
6073ff40c12SJohn Marino  * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a
6083ff40c12SJohn Marino  *	pending remain-on-channel duration if the desired operation has been
6093ff40c12SJohn Marino  *	completed prior to expiration of the originally requested duration.
6103ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the
6113ff40c12SJohn Marino  *	radio. The %NL80211_ATTR_COOKIE attribute must be given as well to
6123ff40c12SJohn Marino  *	uniquely identify the request.
6133ff40c12SJohn Marino  *	This command is also used as an event to notify when a requested
6143ff40c12SJohn Marino  *	remain-on-channel duration has expired.
6153ff40c12SJohn Marino  *
6163ff40c12SJohn Marino  * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX
6173ff40c12SJohn Marino  *	rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface
6183ff40c12SJohn Marino  *	and @NL80211_ATTR_TX_RATES the set of allowed rates.
6193ff40c12SJohn Marino  *
6203ff40c12SJohn Marino  * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames
6213ff40c12SJohn Marino  *	(via @NL80211_CMD_FRAME) for processing in userspace. This command
6223ff40c12SJohn Marino  *	requires an interface index, a frame type attribute (optional for
6233ff40c12SJohn Marino  *	backward compatibility reasons, if not given assumes action frames)
6243ff40c12SJohn Marino  *	and a match attribute containing the first few bytes of the frame
6253ff40c12SJohn Marino  *	that should match, e.g. a single byte for only a category match or
6263ff40c12SJohn Marino  *	four bytes for vendor frames including the OUI. The registration
6273ff40c12SJohn Marino  *	cannot be dropped, but is removed automatically when the netlink
6283ff40c12SJohn Marino  *	socket is closed. Multiple registrations can be made.
6293ff40c12SJohn Marino  * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for
6303ff40c12SJohn Marino  *	backward compatibility
6313ff40c12SJohn Marino  * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This
6323ff40c12SJohn Marino  *	command is used both as a request to transmit a management frame and
6333ff40c12SJohn Marino  *	as an event indicating reception of a frame that was not processed in
6343ff40c12SJohn Marino  *	kernel code, but is for us (i.e., which may need to be processed in a
6353ff40c12SJohn Marino  *	user space application). %NL80211_ATTR_FRAME is used to specify the
6363ff40c12SJohn Marino  *	frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used
6373ff40c12SJohn Marino  *	to indicate on which channel the frame is to be transmitted or was
6383ff40c12SJohn Marino  *	received. If this channel is not the current channel (remain-on-channel
6393ff40c12SJohn Marino  *	or the operational channel) the device will switch to the given channel
6403ff40c12SJohn Marino  *	and transmit the frame, optionally waiting for a response for the time
6413ff40c12SJohn Marino  *	specified using %NL80211_ATTR_DURATION. When called, this operation
6423ff40c12SJohn Marino  *	returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the
6433ff40c12SJohn Marino  *	TX status event pertaining to the TX request.
6443ff40c12SJohn Marino  *	%NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
6453ff40c12SJohn Marino  *	management frames at CCK rate or not in 2GHz band.
646*a1157835SDaniel Fojt  *	%NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA
647*a1157835SDaniel Fojt  *	counters which will be updated to the current value. This attribute
648*a1157835SDaniel Fojt  *	is used during CSA period.
6493ff40c12SJohn Marino  * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this
6503ff40c12SJohn Marino  *	command may be used with the corresponding cookie to cancel the wait
6513ff40c12SJohn Marino  *	time if it is known that it is no longer necessary.
6523ff40c12SJohn Marino  * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility.
6533ff40c12SJohn Marino  * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame
6543ff40c12SJohn Marino  *	transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies
6553ff40c12SJohn Marino  *	the TX command and %NL80211_ATTR_FRAME includes the contents of the
6563ff40c12SJohn Marino  *	frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged
6573ff40c12SJohn Marino  *	the frame.
6583ff40c12SJohn Marino  * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for
6593ff40c12SJohn Marino  *	backward compatibility.
6603ff40c12SJohn Marino  *
6613ff40c12SJohn Marino  * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE
6623ff40c12SJohn Marino  * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE
6633ff40c12SJohn Marino  *
6643ff40c12SJohn Marino  * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command
6653ff40c12SJohn Marino  *	is used to configure connection quality monitoring notification trigger
6663ff40c12SJohn Marino  *	levels.
6673ff40c12SJohn Marino  * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This
6683ff40c12SJohn Marino  *	command is used as an event to indicate the that a trigger level was
6693ff40c12SJohn Marino  *	reached.
6703ff40c12SJohn Marino  * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ
6713ff40c12SJohn Marino  *	and the attributes determining channel width) the given interface
6723ff40c12SJohn Marino  *	(identifed by %NL80211_ATTR_IFINDEX) shall operate on.
6733ff40c12SJohn Marino  *	In case multiple channels are supported by the device, the mechanism
6743ff40c12SJohn Marino  *	with which it switches channels is implementation-defined.
6753ff40c12SJohn Marino  *	When a monitor interface is given, it can only switch channel while
6763ff40c12SJohn Marino  *	no other interfaces are operating to avoid disturbing the operation
6773ff40c12SJohn Marino  *	of any other interfaces, and other interfaces will again take
6783ff40c12SJohn Marino  *	precedence when they are used.
6793ff40c12SJohn Marino  *
6803ff40c12SJohn Marino  * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface.
6813ff40c12SJohn Marino  *
682*a1157835SDaniel Fojt  * @NL80211_CMD_SET_MULTICAST_TO_UNICAST: Configure if this AP should perform
683*a1157835SDaniel Fojt  *	multicast to unicast conversion. When enabled, all multicast packets
684*a1157835SDaniel Fojt  *	with ethertype ARP, IPv4 or IPv6 (possibly within an 802.1Q header)
685*a1157835SDaniel Fojt  *	will be sent out to each station once with the destination (multicast)
686*a1157835SDaniel Fojt  *	MAC address replaced by the station's MAC address. Note that this may
687*a1157835SDaniel Fojt  *	break certain expectations of the receiver, e.g. the ability to drop
688*a1157835SDaniel Fojt  *	unicast IP packets encapsulated in multicast L2 frames, or the ability
689*a1157835SDaniel Fojt  *	to not send destination unreachable messages in such cases.
690*a1157835SDaniel Fojt  *	This can only be toggled per BSS. Configure this on an interface of
691*a1157835SDaniel Fojt  *	type %NL80211_IFTYPE_AP. It applies to all its VLAN interfaces
692*a1157835SDaniel Fojt  *	(%NL80211_IFTYPE_AP_VLAN), except for those in 4addr (WDS) mode.
693*a1157835SDaniel Fojt  *	If %NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED is not present with this
694*a1157835SDaniel Fojt  *	command, the feature is disabled.
695*a1157835SDaniel Fojt  *
6963ff40c12SJohn Marino  * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial
6973ff40c12SJohn Marino  *	mesh config parameters may be given.
6983ff40c12SJohn Marino  * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the
6993ff40c12SJohn Marino  *	network is determined by the network interface.
7003ff40c12SJohn Marino  *
7013ff40c12SJohn Marino  * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame
7023ff40c12SJohn Marino  *	notification. This event is used to indicate that an unprotected
7033ff40c12SJohn Marino  *	deauthentication frame was dropped when MFP is in use.
7043ff40c12SJohn Marino  * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame
7053ff40c12SJohn Marino  *	notification. This event is used to indicate that an unprotected
7063ff40c12SJohn Marino  *	disassociation frame was dropped when MFP is in use.
7073ff40c12SJohn Marino  *
7083ff40c12SJohn Marino  * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a
7093ff40c12SJohn Marino  *      beacon or probe response from a compatible mesh peer.  This is only
7103ff40c12SJohn Marino  *      sent while no station information (sta_info) exists for the new peer
7113ff40c12SJohn Marino  *      candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH,
7123ff40c12SJohn Marino  *      @NL80211_MESH_SETUP_USERSPACE_AMPE, or
7133ff40c12SJohn Marino  *      @NL80211_MESH_SETUP_USERSPACE_MPM is set.  On reception of this
7143ff40c12SJohn Marino  *      notification, userspace may decide to create a new station
7153ff40c12SJohn Marino  *      (@NL80211_CMD_NEW_STATION).  To stop this notification from
7163ff40c12SJohn Marino  *      reoccurring, the userspace authentication daemon may want to create the
7173ff40c12SJohn Marino  *      new station with the AUTHENTICATED flag unset and maybe change it later
7183ff40c12SJohn Marino  *      depending on the authentication result.
7193ff40c12SJohn Marino  *
7203ff40c12SJohn Marino  * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings.
7213ff40c12SJohn Marino  * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings.
7223ff40c12SJohn Marino  *	Since wireless is more complex than wired ethernet, it supports
7233ff40c12SJohn Marino  *	various triggers. These triggers can be configured through this
7243ff40c12SJohn Marino  *	command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For
7253ff40c12SJohn Marino  *	more background information, see
7263ff40c12SJohn Marino  *	http://wireless.kernel.org/en/users/Documentation/WoWLAN.
7273ff40c12SJohn Marino  *	The @NL80211_CMD_SET_WOWLAN command can also be used as a notification
7283ff40c12SJohn Marino  *	from the driver reporting the wakeup reason. In this case, the
7293ff40c12SJohn Marino  *	@NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason
7303ff40c12SJohn Marino  *	for the wakeup, if it was caused by wireless. If it is not present
7313ff40c12SJohn Marino  *	in the wakeup notification, the wireless device didn't cause the
7323ff40c12SJohn Marino  *	wakeup but reports that it was woken up.
7333ff40c12SJohn Marino  *
7343ff40c12SJohn Marino  * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver
7353ff40c12SJohn Marino  *	the necessary information for supporting GTK rekey offload. This
7363ff40c12SJohn Marino  *	feature is typically used during WoWLAN. The configuration data
7373ff40c12SJohn Marino  *	is contained in %NL80211_ATTR_REKEY_DATA (which is nested and
7383ff40c12SJohn Marino  *	contains the data in sub-attributes). After rekeying happened,
7393ff40c12SJohn Marino  *	this command may also be sent by the driver as an MLME event to
7403ff40c12SJohn Marino  *	inform userspace of the new replay counter.
7413ff40c12SJohn Marino  *
7423ff40c12SJohn Marino  * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace
7433ff40c12SJohn Marino  *	of PMKSA caching dandidates.
7443ff40c12SJohn Marino  *
7453ff40c12SJohn Marino  * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup).
7463ff40c12SJohn Marino  *	In addition, this can be used as an event to request userspace to take
7473ff40c12SJohn Marino  *	actions on TDLS links (set up a new link or tear down an existing one).
7483ff40c12SJohn Marino  *	In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested
7493ff40c12SJohn Marino  *	operation, %NL80211_ATTR_MAC contains the peer MAC address, and
7503ff40c12SJohn Marino  *	%NL80211_ATTR_REASON_CODE the reason code to be used (only with
7513ff40c12SJohn Marino  *	%NL80211_TDLS_TEARDOWN).
7523ff40c12SJohn Marino  * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The
7533ff40c12SJohn Marino  *	%NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be
7543ff40c12SJohn Marino  *	sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as
7553ff40c12SJohn Marino  *	802.11 management frames, while TDLS action codes (802.11-2012
7563ff40c12SJohn Marino  *	8.5.13.1) will be encapsulated and sent as data frames. The currently
7573ff40c12SJohn Marino  *	supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES
7583ff40c12SJohn Marino  *	and the currently supported TDLS actions codes are given in
7593ff40c12SJohn Marino  *	&enum ieee80211_tdls_actioncode.
7603ff40c12SJohn Marino  *
7613ff40c12SJohn Marino  * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP
7623ff40c12SJohn Marino  *	(or GO) interface (i.e. hostapd) to ask for unexpected frames to
7633ff40c12SJohn Marino  *	implement sending deauth to stations that send unexpected class 3
7643ff40c12SJohn Marino  *	frames. Also used as the event sent by the kernel when such a frame
7653ff40c12SJohn Marino  *	is received.
7663ff40c12SJohn Marino  *	For the event, the %NL80211_ATTR_MAC attribute carries the TA and
7673ff40c12SJohn Marino  *	other attributes like the interface index are present.
7683ff40c12SJohn Marino  *	If used as the command it must have an interface index and you can
7693ff40c12SJohn Marino  *	only unsubscribe from the event by closing the socket. Subscription
7703ff40c12SJohn Marino  *	is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events.
7713ff40c12SJohn Marino  *
7723ff40c12SJohn Marino  * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the
7733ff40c12SJohn Marino  *	associated station identified by %NL80211_ATTR_MAC sent a 4addr frame
7743ff40c12SJohn Marino  *	and wasn't already in a 4-addr VLAN. The event will be sent similarly
7753ff40c12SJohn Marino  *	to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener.
7763ff40c12SJohn Marino  *
7773ff40c12SJohn Marino  * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface
7783ff40c12SJohn Marino  *	by sending a null data frame to it and reporting when the frame is
7793ff40c12SJohn Marino  *	acknowleged. This is used to allow timing out inactive clients. Uses
7803ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a
7813ff40c12SJohn Marino  *	direct reply with an %NL80211_ATTR_COOKIE that is later used to match
7823ff40c12SJohn Marino  *	up the event with the request. The event includes the same data and
7833ff40c12SJohn Marino  *	has %NL80211_ATTR_ACK set if the frame was ACKed.
7843ff40c12SJohn Marino  *
7853ff40c12SJohn Marino  * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from
7863ff40c12SJohn Marino  *	other BSSes when any interfaces are in AP mode. This helps implement
7873ff40c12SJohn Marino  *	OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME
7883ff40c12SJohn Marino  *	messages. Note that per PHY only one application may register.
7893ff40c12SJohn Marino  *
7903ff40c12SJohn Marino  * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether
7913ff40c12SJohn Marino  *      No Acknowledgement Policy should be applied.
7923ff40c12SJohn Marino  *
7933ff40c12SJohn Marino  * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels
7943ff40c12SJohn Marino  *	independently of the userspace SME, send this event indicating
7953ff40c12SJohn Marino  *	%NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the
796*a1157835SDaniel Fojt  *	attributes determining channel width.  This indication may also be
797*a1157835SDaniel Fojt  *	sent when a remotely-initiated switch (e.g., when a STA receives a CSA
798*a1157835SDaniel Fojt  *	from the remote AP) is completed;
799*a1157835SDaniel Fojt  *
800*a1157835SDaniel Fojt  * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch
801*a1157835SDaniel Fojt  *	has been started on an interface, regardless of the initiator
802*a1157835SDaniel Fojt  *	(ie. whether it was requested from a remote device or
803*a1157835SDaniel Fojt  *	initiated on our own).  It indicates that
804*a1157835SDaniel Fojt  *	%NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ
805*a1157835SDaniel Fojt  *	after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's.  The userspace may
806*a1157835SDaniel Fojt  *	decide to react to this indication by requesting other
807*a1157835SDaniel Fojt  *	interfaces to change channel as well.
8083ff40c12SJohn Marino  *
8093ff40c12SJohn Marino  * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
8103ff40c12SJohn Marino  *	its %NL80211_ATTR_WDEV identifier. It must have been created with
8113ff40c12SJohn Marino  *	%NL80211_CMD_NEW_INTERFACE previously. After it has been started, the
8123ff40c12SJohn Marino  *	P2P Device can be used for P2P operations, e.g. remain-on-channel and
8133ff40c12SJohn Marino  *	public action frame TX.
8143ff40c12SJohn Marino  * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by
8153ff40c12SJohn Marino  *	its %NL80211_ATTR_WDEV identifier.
8163ff40c12SJohn Marino  *
8173ff40c12SJohn Marino  * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to
8183ff40c12SJohn Marino  *	notify userspace that AP has rejected the connection request from a
8193ff40c12SJohn Marino  *	station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON
8203ff40c12SJohn Marino  *	is used for this.
8213ff40c12SJohn Marino  *
8223ff40c12SJohn Marino  * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames
8233ff40c12SJohn Marino  *	for IBSS or MESH vif.
8243ff40c12SJohn Marino  *
8253ff40c12SJohn Marino  * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control.
8263ff40c12SJohn Marino  *	This is to be used with the drivers advertising the support of MAC
8273ff40c12SJohn Marino  *	address based access control. List of MAC addresses is passed in
8283ff40c12SJohn Marino  *	%NL80211_ATTR_MAC_ADDRS and ACL policy is passed in
8293ff40c12SJohn Marino  *	%NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it
8303ff40c12SJohn Marino  *	is not already done. The new list will replace any existing list. Driver
8313ff40c12SJohn Marino  *	will clear its ACL when the list of MAC addresses passed is empty. This
8323ff40c12SJohn Marino  *	command is used in AP/P2P GO mode. Driver has to make sure to clear its
8333ff40c12SJohn Marino  *	ACL list during %NL80211_CMD_STOP_AP.
8343ff40c12SJohn Marino  *
8353ff40c12SJohn Marino  * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once
8363ff40c12SJohn Marino  *	a radar is detected or the channel availability scan (CAC) has finished
8373ff40c12SJohn Marino  *	or was aborted, or a radar was detected, usermode will be notified with
8383ff40c12SJohn Marino  *	this event. This command is also used to notify userspace about radars
8393ff40c12SJohn Marino  *	while operating on this channel.
8403ff40c12SJohn Marino  *	%NL80211_ATTR_RADAR_EVENT is used to inform about the type of the
8413ff40c12SJohn Marino  *	event.
8423ff40c12SJohn Marino  *
8433ff40c12SJohn Marino  * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features,
8443ff40c12SJohn Marino  *	i.e. features for the nl80211 protocol rather than device features.
8453ff40c12SJohn Marino  *	Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap.
8463ff40c12SJohn Marino  *
8473ff40c12SJohn Marino  * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition
8483ff40c12SJohn Marino  *	Information Element to the WLAN driver
8493ff40c12SJohn Marino  *
8503ff40c12SJohn Marino  * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver
8513ff40c12SJohn Marino  *	to the supplicant. This will carry the target AP's MAC address along
8523ff40c12SJohn Marino  *	with the relevant Information Elements. This event is used to report
8533ff40c12SJohn Marino  *	received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE).
8543ff40c12SJohn Marino  *
8553ff40c12SJohn Marino  * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running
8563ff40c12SJohn Marino  *	a critical protocol that needs more reliability in the connection to
8573ff40c12SJohn Marino  *	complete.
8583ff40c12SJohn Marino  *
8593ff40c12SJohn Marino  * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can
8603ff40c12SJohn Marino  *	return back to normal.
8613ff40c12SJohn Marino  *
8623ff40c12SJohn Marino  * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules.
8633ff40c12SJohn Marino  * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules.
8643ff40c12SJohn Marino  *
8653ff40c12SJohn Marino  * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the
8663ff40c12SJohn Marino  *	the new channel information (Channel Switch Announcement - CSA)
8673ff40c12SJohn Marino  *	in the beacon for some time (as defined in the
8683ff40c12SJohn Marino  *	%NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the
8693ff40c12SJohn Marino  *	new channel. Userspace provides the new channel information (using
8703ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_FREQ and the attributes determining channel
8713ff40c12SJohn Marino  *	width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform
8723ff40c12SJohn Marino  *	other station that transmission must be blocked until the channel
8733ff40c12SJohn Marino  *	switch is complete.
8743ff40c12SJohn Marino  *
8753ff40c12SJohn Marino  * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified
8763ff40c12SJohn Marino  *	by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in
8773ff40c12SJohn Marino  *	%NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in
8783ff40c12SJohn Marino  *	%NL80211_ATTR_VENDOR_DATA.
8793ff40c12SJohn Marino  *	For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is
8803ff40c12SJohn Marino  *	used in the wiphy data as a nested attribute containing descriptions
8813ff40c12SJohn Marino  *	(&struct nl80211_vendor_cmd_info) of the supported vendor commands.
8823ff40c12SJohn Marino  *	This may also be sent as an event with the same attributes.
8833ff40c12SJohn Marino  *
8843ff40c12SJohn Marino  * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values.
8853ff40c12SJohn Marino  *	The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If
8863ff40c12SJohn Marino  *	that attribute is not included, QoS mapping is disabled. Since this
8873ff40c12SJohn Marino  *	QoS mapping is relevant for IP packets, it is only valid during an
8883ff40c12SJohn Marino  *	association. This is cleared on disassociation and AP restart.
8893ff40c12SJohn Marino  *
890*a1157835SDaniel Fojt  * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given
891*a1157835SDaniel Fojt  *	%NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO
892*a1157835SDaniel Fojt  *	and %NL80211_ATTR_ADMITTED_TIME parameters.
893*a1157835SDaniel Fojt  *	Note that the action frame handshake with the AP shall be handled by
894*a1157835SDaniel Fojt  *	userspace via the normal management RX/TX framework, this only sets
895*a1157835SDaniel Fojt  *	up the TX TS in the driver/device.
896*a1157835SDaniel Fojt  *	If the admitted time attribute is not added then the request just checks
897*a1157835SDaniel Fojt  *	if a subsequent setup could be successful, the intent is to use this to
898*a1157835SDaniel Fojt  *	avoid setting up a session with the AP when local restrictions would
899*a1157835SDaniel Fojt  *	make that impossible. However, the subsequent "real" setup may still
900*a1157835SDaniel Fojt  *	fail even if the check was successful.
901*a1157835SDaniel Fojt  * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID
902*a1157835SDaniel Fojt  *	and %NL80211_ATTR_MAC parameters. It isn't necessary to call this
903*a1157835SDaniel Fojt  *	before removing a station entry entirely, or before disassociating
904*a1157835SDaniel Fojt  *	or similar, cleanup will happen in the driver/device in this case.
905*a1157835SDaniel Fojt  *
906*a1157835SDaniel Fojt  * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to
907*a1157835SDaniel Fojt  *	destination %NL80211_ATTR_MAC on the interface identified by
908*a1157835SDaniel Fojt  *	%NL80211_ATTR_IFINDEX.
909*a1157835SDaniel Fojt  *
910*a1157835SDaniel Fojt  * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and
911*a1157835SDaniel Fojt  *	bandwidth of a channel must be given.
912*a1157835SDaniel Fojt  * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the
913*a1157835SDaniel Fojt  *	network is determined by the network interface.
914*a1157835SDaniel Fojt  *
915*a1157835SDaniel Fojt  * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer,
916*a1157835SDaniel Fojt  *	identified by the %NL80211_ATTR_MAC parameter. A target channel is
917*a1157835SDaniel Fojt  *	provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining
918*a1157835SDaniel Fojt  *	channel width/type. The target operating class is given via
919*a1157835SDaniel Fojt  *	%NL80211_ATTR_OPER_CLASS.
920*a1157835SDaniel Fojt  *	The driver is responsible for continually initiating channel-switching
921*a1157835SDaniel Fojt  *	operations and returning to the base channel for communication with the
922*a1157835SDaniel Fojt  *	AP.
923*a1157835SDaniel Fojt  * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS
924*a1157835SDaniel Fojt  *	peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel
925*a1157835SDaniel Fojt  *	when this command completes.
926*a1157835SDaniel Fojt  *
927*a1157835SDaniel Fojt  * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used
928*a1157835SDaniel Fojt  *	as an event to indicate changes for devices with wiphy-specific regdom
929*a1157835SDaniel Fojt  *	management.
930*a1157835SDaniel Fojt  *
931*a1157835SDaniel Fojt  * @NL80211_CMD_ABORT_SCAN: Stop an ongoing scan. Returns -ENOENT if a scan is
932*a1157835SDaniel Fojt  *	not running. The driver indicates the status of the scan through
933*a1157835SDaniel Fojt  *	cfg80211_scan_done().
934*a1157835SDaniel Fojt  *
935*a1157835SDaniel Fojt  * @NL80211_CMD_START_NAN: Start NAN operation, identified by its
936*a1157835SDaniel Fojt  *	%NL80211_ATTR_WDEV interface. This interface must have been
937*a1157835SDaniel Fojt  *	previously created with %NL80211_CMD_NEW_INTERFACE. After it
938*a1157835SDaniel Fojt  *	has been started, the NAN interface will create or join a
939*a1157835SDaniel Fojt  *	cluster. This command must have a valid
940*a1157835SDaniel Fojt  *	%NL80211_ATTR_NAN_MASTER_PREF attribute and optional
941*a1157835SDaniel Fojt  *	%NL80211_ATTR_BANDS attributes.  If %NL80211_ATTR_BANDS is
942*a1157835SDaniel Fojt  *	omitted or set to 0, it means don't-care and the device will
943*a1157835SDaniel Fojt  *	decide what to use.  After this command NAN functions can be
944*a1157835SDaniel Fojt  *	added.
945*a1157835SDaniel Fojt  * @NL80211_CMD_STOP_NAN: Stop the NAN operation, identified by
946*a1157835SDaniel Fojt  *	its %NL80211_ATTR_WDEV interface.
947*a1157835SDaniel Fojt  * @NL80211_CMD_ADD_NAN_FUNCTION: Add a NAN function. The function is defined
948*a1157835SDaniel Fojt  *	with %NL80211_ATTR_NAN_FUNC nested attribute. When called, this
949*a1157835SDaniel Fojt  *	operation returns the strictly positive and unique instance id
950*a1157835SDaniel Fojt  *	(%NL80211_ATTR_NAN_FUNC_INST_ID) and a cookie (%NL80211_ATTR_COOKIE)
951*a1157835SDaniel Fojt  *	of the function upon success.
952*a1157835SDaniel Fojt  *	Since instance ID's can be re-used, this cookie is the right
953*a1157835SDaniel Fojt  *	way to identify the function. This will avoid races when a termination
954*a1157835SDaniel Fojt  *	event is handled by the user space after it has already added a new
955*a1157835SDaniel Fojt  *	function that got the same instance id from the kernel as the one
956*a1157835SDaniel Fojt  *	which just terminated.
957*a1157835SDaniel Fojt  *	This cookie may be used in NAN events even before the command
958*a1157835SDaniel Fojt  *	returns, so userspace shouldn't process NAN events until it processes
959*a1157835SDaniel Fojt  *	the response to this command.
960*a1157835SDaniel Fojt  *	Look at %NL80211_ATTR_SOCKET_OWNER as well.
961*a1157835SDaniel Fojt  * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie.
962*a1157835SDaniel Fojt  *	This command is also used as a notification sent when a NAN function is
963*a1157835SDaniel Fojt  *	terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID
964*a1157835SDaniel Fojt  *	and %NL80211_ATTR_COOKIE attributes.
965*a1157835SDaniel Fojt  * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN
966*a1157835SDaniel Fojt  *	configuration. NAN must be operational (%NL80211_CMD_START_NAN
967*a1157835SDaniel Fojt  *	was executed).  It must contain at least one of the following
968*a1157835SDaniel Fojt  *	attributes: %NL80211_ATTR_NAN_MASTER_PREF,
969*a1157835SDaniel Fojt  *	%NL80211_ATTR_BANDS.  If %NL80211_ATTR_BANDS is omitted, the
970*a1157835SDaniel Fojt  *	current configuration is not changed.  If it is present but
971*a1157835SDaniel Fojt  *	set to zero, the configuration is changed to don't-care
972*a1157835SDaniel Fojt  *	(i.e. the device can decide what to do).
973*a1157835SDaniel Fojt  * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported.
974*a1157835SDaniel Fojt  *	This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and
975*a1157835SDaniel Fojt  *	%NL80211_ATTR_COOKIE.
976*a1157835SDaniel Fojt  *
977*a1157835SDaniel Fojt  * @NL80211_CMD_UPDATE_CONNECT_PARAMS: Update one or more connect parameters
978*a1157835SDaniel Fojt  *	for subsequent roaming cases if the driver or firmware uses internal
979*a1157835SDaniel Fojt  *	BSS selection. This command can be issued only while connected and it
980*a1157835SDaniel Fojt  *	does not result in a change for the current association. Currently,
981*a1157835SDaniel Fojt  *	only the %NL80211_ATTR_IE data is used and updated with this command.
982*a1157835SDaniel Fojt  *
983*a1157835SDaniel Fojt  * @NL80211_CMD_SET_PMK: For offloaded 4-Way handshake, set the PMK or PMK-R0
984*a1157835SDaniel Fojt  *	for the given authenticator address (specified with %NL80211_ATTR_MAC).
985*a1157835SDaniel Fojt  *	When %NL80211_ATTR_PMKR0_NAME is set, %NL80211_ATTR_PMK specifies the
986*a1157835SDaniel Fojt  *	PMK-R0, otherwise it specifies the PMK.
987*a1157835SDaniel Fojt  * @NL80211_CMD_DEL_PMK: For offloaded 4-Way handshake, delete the previously
988*a1157835SDaniel Fojt  *	configured PMK for the authenticator address identified by
989*a1157835SDaniel Fojt  *	%NL80211_ATTR_MAC.
990*a1157835SDaniel Fojt  * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates that the 4 way
991*a1157835SDaniel Fojt  *	handshake was completed successfully by the driver. The BSSID is
992*a1157835SDaniel Fojt  *	specified with %NL80211_ATTR_MAC. Drivers that support 4 way handshake
993*a1157835SDaniel Fojt  *	offload should send this event after indicating 802.11 association with
994*a1157835SDaniel Fojt  *	%NL80211_CMD_CONNECT or %NL80211_CMD_ROAM. If the 4 way handshake failed
995*a1157835SDaniel Fojt  *	%NL80211_CMD_DISCONNECT should be indicated instead.
996*a1157835SDaniel Fojt  *
997*a1157835SDaniel Fojt  * @NL80211_CMD_CONTROL_PORT_FRAME: Control Port (e.g. PAE) frame TX request
998*a1157835SDaniel Fojt  *	and RX notification.  This command is used both as a request to transmit
999*a1157835SDaniel Fojt  *	a control port frame and as a notification that a control port frame
1000*a1157835SDaniel Fojt  *	has been received. %NL80211_ATTR_FRAME is used to specify the
1001*a1157835SDaniel Fojt  *	frame contents.  The frame is the raw EAPoL data, without ethernet or
1002*a1157835SDaniel Fojt  *	802.11 headers.
1003*a1157835SDaniel Fojt  *	When used as an event indication %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
1004*a1157835SDaniel Fojt  *	%NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT and %NL80211_ATTR_MAC are added
1005*a1157835SDaniel Fojt  *	indicating the protocol type of the received frame; whether the frame
1006*a1157835SDaniel Fojt  *	was received unencrypted and the MAC address of the peer respectively.
1007*a1157835SDaniel Fojt  *
1008*a1157835SDaniel Fojt  * @NL80211_CMD_RELOAD_REGDB: Request that the regdb firmware file is reloaded.
1009*a1157835SDaniel Fojt  *
1010*a1157835SDaniel Fojt  * @NL80211_CMD_EXTERNAL_AUTH: This interface is exclusively defined for host
1011*a1157835SDaniel Fojt  *	drivers that do not define separate commands for authentication and
1012*a1157835SDaniel Fojt  *	association, but rely on user space for the authentication to happen.
1013*a1157835SDaniel Fojt  *	This interface acts both as the event request (driver to user space)
1014*a1157835SDaniel Fojt  *	to trigger the authentication and command response (userspace to
1015*a1157835SDaniel Fojt  *	driver) to indicate the authentication status.
1016*a1157835SDaniel Fojt  *
1017*a1157835SDaniel Fojt  *	User space uses the %NL80211_CMD_CONNECT command to the host driver to
1018*a1157835SDaniel Fojt  *	trigger a connection. The host driver selects a BSS and further uses
1019*a1157835SDaniel Fojt  *	this interface to offload only the authentication part to the user
1020*a1157835SDaniel Fojt  *	space. Authentication frames are passed between the driver and user
1021*a1157835SDaniel Fojt  *	space through the %NL80211_CMD_FRAME interface. Host driver proceeds
1022*a1157835SDaniel Fojt  *	further with the association after getting successful authentication
1023*a1157835SDaniel Fojt  *	status. User space indicates the authentication status through
1024*a1157835SDaniel Fojt  *	%NL80211_ATTR_STATUS_CODE attribute in %NL80211_CMD_EXTERNAL_AUTH
1025*a1157835SDaniel Fojt  *	command interface.
1026*a1157835SDaniel Fojt  *
1027*a1157835SDaniel Fojt  *	Host driver reports this status on an authentication failure to the
1028*a1157835SDaniel Fojt  *	user space through the connect result as the user space would have
1029*a1157835SDaniel Fojt  *	initiated the connection through the connect request.
1030*a1157835SDaniel Fojt  *
1031*a1157835SDaniel Fojt  * @NL80211_CMD_STA_OPMODE_CHANGED: An event that notify station's
1032*a1157835SDaniel Fojt  *	ht opmode or vht opmode changes using any of %NL80211_ATTR_SMPS_MODE,
1033*a1157835SDaniel Fojt  *	%NL80211_ATTR_CHANNEL_WIDTH,%NL80211_ATTR_NSS attributes with its
1034*a1157835SDaniel Fojt  *	address(specified in %NL80211_ATTR_MAC).
1035*a1157835SDaniel Fojt  *
1036*a1157835SDaniel Fojt  * @NL80211_CMD_GET_FTM_RESPONDER_STATS: Retrieve FTM responder statistics, in
1037*a1157835SDaniel Fojt  *	the %NL80211_ATTR_FTM_RESPONDER_STATS attribute.
1038*a1157835SDaniel Fojt  *
1039*a1157835SDaniel Fojt  * @NL80211_CMD_PEER_MEASUREMENT_START: start a (set of) peer measurement(s)
1040*a1157835SDaniel Fojt  *	with the given parameters, which are encapsulated in the nested
1041*a1157835SDaniel Fojt  *	%NL80211_ATTR_PEER_MEASUREMENTS attribute. Optionally, MAC address
1042*a1157835SDaniel Fojt  *	randomization may be enabled and configured by specifying the
1043*a1157835SDaniel Fojt  *	%NL80211_ATTR_MAC and %NL80211_ATTR_MAC_MASK attributes.
1044*a1157835SDaniel Fojt  *	If a timeout is requested, use the %NL80211_ATTR_TIMEOUT attribute.
1045*a1157835SDaniel Fojt  *	A u64 cookie for further %NL80211_ATTR_COOKIE use is is returned in
1046*a1157835SDaniel Fojt  *	the netlink extended ack message.
1047*a1157835SDaniel Fojt  *
1048*a1157835SDaniel Fojt  *	To cancel a measurement, close the socket that requested it.
1049*a1157835SDaniel Fojt  *
1050*a1157835SDaniel Fojt  *	Measurement results are reported to the socket that requested the
1051*a1157835SDaniel Fojt  *	measurement using @NL80211_CMD_PEER_MEASUREMENT_RESULT when they
1052*a1157835SDaniel Fojt  *	become available, so applications must ensure a large enough socket
1053*a1157835SDaniel Fojt  *	buffer size.
1054*a1157835SDaniel Fojt  *
1055*a1157835SDaniel Fojt  *	Depending on driver support it may or may not be possible to start
1056*a1157835SDaniel Fojt  *	multiple concurrent measurements.
1057*a1157835SDaniel Fojt  * @NL80211_CMD_PEER_MEASUREMENT_RESULT: This command number is used for the
1058*a1157835SDaniel Fojt  *	result notification from the driver to the requesting socket.
1059*a1157835SDaniel Fojt  * @NL80211_CMD_PEER_MEASUREMENT_COMPLETE: Notification only, indicating that
1060*a1157835SDaniel Fojt  *	the measurement completed, using the measurement cookie
1061*a1157835SDaniel Fojt  *	(%NL80211_ATTR_COOKIE).
1062*a1157835SDaniel Fojt  *
1063*a1157835SDaniel Fojt  * @NL80211_CMD_NOTIFY_RADAR: Notify the kernel that a radar signal was
1064*a1157835SDaniel Fojt  *	detected and reported by a neighboring device on the channel
1065*a1157835SDaniel Fojt  *	indicated by %NL80211_ATTR_WIPHY_FREQ and other attributes
1066*a1157835SDaniel Fojt  *	determining the width and type.
1067*a1157835SDaniel Fojt  *
1068*a1157835SDaniel Fojt  * @NL80211_CMD_UPDATE_OWE_INFO: This interface allows the host driver to
1069*a1157835SDaniel Fojt  *	offload OWE processing to user space. This intends to support
1070*a1157835SDaniel Fojt  *	OWE AKM by the host drivers that implement SME but rely
1071*a1157835SDaniel Fojt  *	on the user space for the cryptographic/DH IE processing in AP mode.
1072*a1157835SDaniel Fojt  *
1073*a1157835SDaniel Fojt  * @NL80211_CMD_PROBE_MESH_LINK: The requirement for mesh link metric
1074*a1157835SDaniel Fojt  *	refreshing, is that from one mesh point we be able to send some data
1075*a1157835SDaniel Fojt  *	frames to other mesh points which are not currently selected as a
1076*a1157835SDaniel Fojt  *	primary traffic path, but which are only 1 hop away. The absence of
1077*a1157835SDaniel Fojt  *	the primary path to the chosen node makes it necessary to apply some
1078*a1157835SDaniel Fojt  *	form of marking on a chosen packet stream so that the packets can be
1079*a1157835SDaniel Fojt  *	properly steered to the selected node for testing, and not by the
1080*a1157835SDaniel Fojt  *	regular mesh path lookup. Further, the packets must be of type data
1081*a1157835SDaniel Fojt  *	so that the rate control (often embedded in firmware) is used for
1082*a1157835SDaniel Fojt  *	rate selection.
1083*a1157835SDaniel Fojt  *
1084*a1157835SDaniel Fojt  *	Here attribute %NL80211_ATTR_MAC is used to specify connected mesh
1085*a1157835SDaniel Fojt  *	peer MAC address and %NL80211_ATTR_FRAME is used to specify the frame
1086*a1157835SDaniel Fojt  *	content. The frame is ethernet data.
1087*a1157835SDaniel Fojt  *
10883ff40c12SJohn Marino  * @NL80211_CMD_MAX: highest used command number
10893ff40c12SJohn Marino  * @__NL80211_CMD_AFTER_LAST: internal use
10903ff40c12SJohn Marino  */
10913ff40c12SJohn Marino enum nl80211_commands {
10923ff40c12SJohn Marino /* don't change the order or add anything between, this is ABI! */
10933ff40c12SJohn Marino 	NL80211_CMD_UNSPEC,
10943ff40c12SJohn Marino 
10953ff40c12SJohn Marino 	NL80211_CMD_GET_WIPHY,		/* can dump */
10963ff40c12SJohn Marino 	NL80211_CMD_SET_WIPHY,
10973ff40c12SJohn Marino 	NL80211_CMD_NEW_WIPHY,
10983ff40c12SJohn Marino 	NL80211_CMD_DEL_WIPHY,
10993ff40c12SJohn Marino 
11003ff40c12SJohn Marino 	NL80211_CMD_GET_INTERFACE,	/* can dump */
11013ff40c12SJohn Marino 	NL80211_CMD_SET_INTERFACE,
11023ff40c12SJohn Marino 	NL80211_CMD_NEW_INTERFACE,
11033ff40c12SJohn Marino 	NL80211_CMD_DEL_INTERFACE,
11043ff40c12SJohn Marino 
11053ff40c12SJohn Marino 	NL80211_CMD_GET_KEY,
11063ff40c12SJohn Marino 	NL80211_CMD_SET_KEY,
11073ff40c12SJohn Marino 	NL80211_CMD_NEW_KEY,
11083ff40c12SJohn Marino 	NL80211_CMD_DEL_KEY,
11093ff40c12SJohn Marino 
11103ff40c12SJohn Marino 	NL80211_CMD_GET_BEACON,
11113ff40c12SJohn Marino 	NL80211_CMD_SET_BEACON,
11123ff40c12SJohn Marino 	NL80211_CMD_START_AP,
11133ff40c12SJohn Marino 	NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP,
11143ff40c12SJohn Marino 	NL80211_CMD_STOP_AP,
11153ff40c12SJohn Marino 	NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP,
11163ff40c12SJohn Marino 
11173ff40c12SJohn Marino 	NL80211_CMD_GET_STATION,
11183ff40c12SJohn Marino 	NL80211_CMD_SET_STATION,
11193ff40c12SJohn Marino 	NL80211_CMD_NEW_STATION,
11203ff40c12SJohn Marino 	NL80211_CMD_DEL_STATION,
11213ff40c12SJohn Marino 
11223ff40c12SJohn Marino 	NL80211_CMD_GET_MPATH,
11233ff40c12SJohn Marino 	NL80211_CMD_SET_MPATH,
11243ff40c12SJohn Marino 	NL80211_CMD_NEW_MPATH,
11253ff40c12SJohn Marino 	NL80211_CMD_DEL_MPATH,
11263ff40c12SJohn Marino 
11273ff40c12SJohn Marino 	NL80211_CMD_SET_BSS,
11283ff40c12SJohn Marino 
11293ff40c12SJohn Marino 	NL80211_CMD_SET_REG,
11303ff40c12SJohn Marino 	NL80211_CMD_REQ_SET_REG,
11313ff40c12SJohn Marino 
11323ff40c12SJohn Marino 	NL80211_CMD_GET_MESH_CONFIG,
11333ff40c12SJohn Marino 	NL80211_CMD_SET_MESH_CONFIG,
11343ff40c12SJohn Marino 
11353ff40c12SJohn Marino 	NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */,
11363ff40c12SJohn Marino 
11373ff40c12SJohn Marino 	NL80211_CMD_GET_REG,
11383ff40c12SJohn Marino 
11393ff40c12SJohn Marino 	NL80211_CMD_GET_SCAN,
11403ff40c12SJohn Marino 	NL80211_CMD_TRIGGER_SCAN,
11413ff40c12SJohn Marino 	NL80211_CMD_NEW_SCAN_RESULTS,
11423ff40c12SJohn Marino 	NL80211_CMD_SCAN_ABORTED,
11433ff40c12SJohn Marino 
11443ff40c12SJohn Marino 	NL80211_CMD_REG_CHANGE,
11453ff40c12SJohn Marino 
11463ff40c12SJohn Marino 	NL80211_CMD_AUTHENTICATE,
11473ff40c12SJohn Marino 	NL80211_CMD_ASSOCIATE,
11483ff40c12SJohn Marino 	NL80211_CMD_DEAUTHENTICATE,
11493ff40c12SJohn Marino 	NL80211_CMD_DISASSOCIATE,
11503ff40c12SJohn Marino 
11513ff40c12SJohn Marino 	NL80211_CMD_MICHAEL_MIC_FAILURE,
11523ff40c12SJohn Marino 
11533ff40c12SJohn Marino 	NL80211_CMD_REG_BEACON_HINT,
11543ff40c12SJohn Marino 
11553ff40c12SJohn Marino 	NL80211_CMD_JOIN_IBSS,
11563ff40c12SJohn Marino 	NL80211_CMD_LEAVE_IBSS,
11573ff40c12SJohn Marino 
11583ff40c12SJohn Marino 	NL80211_CMD_TESTMODE,
11593ff40c12SJohn Marino 
11603ff40c12SJohn Marino 	NL80211_CMD_CONNECT,
11613ff40c12SJohn Marino 	NL80211_CMD_ROAM,
11623ff40c12SJohn Marino 	NL80211_CMD_DISCONNECT,
11633ff40c12SJohn Marino 
11643ff40c12SJohn Marino 	NL80211_CMD_SET_WIPHY_NETNS,
11653ff40c12SJohn Marino 
11663ff40c12SJohn Marino 	NL80211_CMD_GET_SURVEY,
11673ff40c12SJohn Marino 	NL80211_CMD_NEW_SURVEY_RESULTS,
11683ff40c12SJohn Marino 
11693ff40c12SJohn Marino 	NL80211_CMD_SET_PMKSA,
11703ff40c12SJohn Marino 	NL80211_CMD_DEL_PMKSA,
11713ff40c12SJohn Marino 	NL80211_CMD_FLUSH_PMKSA,
11723ff40c12SJohn Marino 
11733ff40c12SJohn Marino 	NL80211_CMD_REMAIN_ON_CHANNEL,
11743ff40c12SJohn Marino 	NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL,
11753ff40c12SJohn Marino 
11763ff40c12SJohn Marino 	NL80211_CMD_SET_TX_BITRATE_MASK,
11773ff40c12SJohn Marino 
11783ff40c12SJohn Marino 	NL80211_CMD_REGISTER_FRAME,
11793ff40c12SJohn Marino 	NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME,
11803ff40c12SJohn Marino 	NL80211_CMD_FRAME,
11813ff40c12SJohn Marino 	NL80211_CMD_ACTION = NL80211_CMD_FRAME,
11823ff40c12SJohn Marino 	NL80211_CMD_FRAME_TX_STATUS,
11833ff40c12SJohn Marino 	NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS,
11843ff40c12SJohn Marino 
11853ff40c12SJohn Marino 	NL80211_CMD_SET_POWER_SAVE,
11863ff40c12SJohn Marino 	NL80211_CMD_GET_POWER_SAVE,
11873ff40c12SJohn Marino 
11883ff40c12SJohn Marino 	NL80211_CMD_SET_CQM,
11893ff40c12SJohn Marino 	NL80211_CMD_NOTIFY_CQM,
11903ff40c12SJohn Marino 
11913ff40c12SJohn Marino 	NL80211_CMD_SET_CHANNEL,
11923ff40c12SJohn Marino 	NL80211_CMD_SET_WDS_PEER,
11933ff40c12SJohn Marino 
11943ff40c12SJohn Marino 	NL80211_CMD_FRAME_WAIT_CANCEL,
11953ff40c12SJohn Marino 
11963ff40c12SJohn Marino 	NL80211_CMD_JOIN_MESH,
11973ff40c12SJohn Marino 	NL80211_CMD_LEAVE_MESH,
11983ff40c12SJohn Marino 
11993ff40c12SJohn Marino 	NL80211_CMD_UNPROT_DEAUTHENTICATE,
12003ff40c12SJohn Marino 	NL80211_CMD_UNPROT_DISASSOCIATE,
12013ff40c12SJohn Marino 
12023ff40c12SJohn Marino 	NL80211_CMD_NEW_PEER_CANDIDATE,
12033ff40c12SJohn Marino 
12043ff40c12SJohn Marino 	NL80211_CMD_GET_WOWLAN,
12053ff40c12SJohn Marino 	NL80211_CMD_SET_WOWLAN,
12063ff40c12SJohn Marino 
12073ff40c12SJohn Marino 	NL80211_CMD_START_SCHED_SCAN,
12083ff40c12SJohn Marino 	NL80211_CMD_STOP_SCHED_SCAN,
12093ff40c12SJohn Marino 	NL80211_CMD_SCHED_SCAN_RESULTS,
12103ff40c12SJohn Marino 	NL80211_CMD_SCHED_SCAN_STOPPED,
12113ff40c12SJohn Marino 
12123ff40c12SJohn Marino 	NL80211_CMD_SET_REKEY_OFFLOAD,
12133ff40c12SJohn Marino 
12143ff40c12SJohn Marino 	NL80211_CMD_PMKSA_CANDIDATE,
12153ff40c12SJohn Marino 
12163ff40c12SJohn Marino 	NL80211_CMD_TDLS_OPER,
12173ff40c12SJohn Marino 	NL80211_CMD_TDLS_MGMT,
12183ff40c12SJohn Marino 
12193ff40c12SJohn Marino 	NL80211_CMD_UNEXPECTED_FRAME,
12203ff40c12SJohn Marino 
12213ff40c12SJohn Marino 	NL80211_CMD_PROBE_CLIENT,
12223ff40c12SJohn Marino 
12233ff40c12SJohn Marino 	NL80211_CMD_REGISTER_BEACONS,
12243ff40c12SJohn Marino 
12253ff40c12SJohn Marino 	NL80211_CMD_UNEXPECTED_4ADDR_FRAME,
12263ff40c12SJohn Marino 
12273ff40c12SJohn Marino 	NL80211_CMD_SET_NOACK_MAP,
12283ff40c12SJohn Marino 
12293ff40c12SJohn Marino 	NL80211_CMD_CH_SWITCH_NOTIFY,
12303ff40c12SJohn Marino 
12313ff40c12SJohn Marino 	NL80211_CMD_START_P2P_DEVICE,
12323ff40c12SJohn Marino 	NL80211_CMD_STOP_P2P_DEVICE,
12333ff40c12SJohn Marino 
12343ff40c12SJohn Marino 	NL80211_CMD_CONN_FAILED,
12353ff40c12SJohn Marino 
12363ff40c12SJohn Marino 	NL80211_CMD_SET_MCAST_RATE,
12373ff40c12SJohn Marino 
12383ff40c12SJohn Marino 	NL80211_CMD_SET_MAC_ACL,
12393ff40c12SJohn Marino 
12403ff40c12SJohn Marino 	NL80211_CMD_RADAR_DETECT,
12413ff40c12SJohn Marino 
12423ff40c12SJohn Marino 	NL80211_CMD_GET_PROTOCOL_FEATURES,
12433ff40c12SJohn Marino 
12443ff40c12SJohn Marino 	NL80211_CMD_UPDATE_FT_IES,
12453ff40c12SJohn Marino 	NL80211_CMD_FT_EVENT,
12463ff40c12SJohn Marino 
12473ff40c12SJohn Marino 	NL80211_CMD_CRIT_PROTOCOL_START,
12483ff40c12SJohn Marino 	NL80211_CMD_CRIT_PROTOCOL_STOP,
12493ff40c12SJohn Marino 
12503ff40c12SJohn Marino 	NL80211_CMD_GET_COALESCE,
12513ff40c12SJohn Marino 	NL80211_CMD_SET_COALESCE,
12523ff40c12SJohn Marino 
12533ff40c12SJohn Marino 	NL80211_CMD_CHANNEL_SWITCH,
12543ff40c12SJohn Marino 
12553ff40c12SJohn Marino 	NL80211_CMD_VENDOR,
12563ff40c12SJohn Marino 
12573ff40c12SJohn Marino 	NL80211_CMD_SET_QOS_MAP,
12583ff40c12SJohn Marino 
1259*a1157835SDaniel Fojt 	NL80211_CMD_ADD_TX_TS,
1260*a1157835SDaniel Fojt 	NL80211_CMD_DEL_TX_TS,
1261*a1157835SDaniel Fojt 
1262*a1157835SDaniel Fojt 	NL80211_CMD_GET_MPP,
1263*a1157835SDaniel Fojt 
1264*a1157835SDaniel Fojt 	NL80211_CMD_JOIN_OCB,
1265*a1157835SDaniel Fojt 	NL80211_CMD_LEAVE_OCB,
1266*a1157835SDaniel Fojt 
1267*a1157835SDaniel Fojt 	NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
1268*a1157835SDaniel Fojt 
1269*a1157835SDaniel Fojt 	NL80211_CMD_TDLS_CHANNEL_SWITCH,
1270*a1157835SDaniel Fojt 	NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH,
1271*a1157835SDaniel Fojt 
1272*a1157835SDaniel Fojt 	NL80211_CMD_WIPHY_REG_CHANGE,
1273*a1157835SDaniel Fojt 
1274*a1157835SDaniel Fojt 	NL80211_CMD_ABORT_SCAN,
1275*a1157835SDaniel Fojt 
1276*a1157835SDaniel Fojt 	NL80211_CMD_START_NAN,
1277*a1157835SDaniel Fojt 	NL80211_CMD_STOP_NAN,
1278*a1157835SDaniel Fojt 	NL80211_CMD_ADD_NAN_FUNCTION,
1279*a1157835SDaniel Fojt 	NL80211_CMD_DEL_NAN_FUNCTION,
1280*a1157835SDaniel Fojt 	NL80211_CMD_CHANGE_NAN_CONFIG,
1281*a1157835SDaniel Fojt 	NL80211_CMD_NAN_MATCH,
1282*a1157835SDaniel Fojt 
1283*a1157835SDaniel Fojt 	NL80211_CMD_SET_MULTICAST_TO_UNICAST,
1284*a1157835SDaniel Fojt 
1285*a1157835SDaniel Fojt 	NL80211_CMD_UPDATE_CONNECT_PARAMS,
1286*a1157835SDaniel Fojt 
1287*a1157835SDaniel Fojt 	NL80211_CMD_SET_PMK,
1288*a1157835SDaniel Fojt 	NL80211_CMD_DEL_PMK,
1289*a1157835SDaniel Fojt 
1290*a1157835SDaniel Fojt 	NL80211_CMD_PORT_AUTHORIZED,
1291*a1157835SDaniel Fojt 
1292*a1157835SDaniel Fojt 	NL80211_CMD_RELOAD_REGDB,
1293*a1157835SDaniel Fojt 
1294*a1157835SDaniel Fojt 	NL80211_CMD_EXTERNAL_AUTH,
1295*a1157835SDaniel Fojt 
1296*a1157835SDaniel Fojt 	NL80211_CMD_STA_OPMODE_CHANGED,
1297*a1157835SDaniel Fojt 
1298*a1157835SDaniel Fojt 	NL80211_CMD_CONTROL_PORT_FRAME,
1299*a1157835SDaniel Fojt 
1300*a1157835SDaniel Fojt 	NL80211_CMD_GET_FTM_RESPONDER_STATS,
1301*a1157835SDaniel Fojt 
1302*a1157835SDaniel Fojt 	NL80211_CMD_PEER_MEASUREMENT_START,
1303*a1157835SDaniel Fojt 	NL80211_CMD_PEER_MEASUREMENT_RESULT,
1304*a1157835SDaniel Fojt 	NL80211_CMD_PEER_MEASUREMENT_COMPLETE,
1305*a1157835SDaniel Fojt 
1306*a1157835SDaniel Fojt 	NL80211_CMD_NOTIFY_RADAR,
1307*a1157835SDaniel Fojt 
1308*a1157835SDaniel Fojt 	NL80211_CMD_UPDATE_OWE_INFO,
1309*a1157835SDaniel Fojt 
1310*a1157835SDaniel Fojt 	NL80211_CMD_PROBE_MESH_LINK,
1311*a1157835SDaniel Fojt 
13123ff40c12SJohn Marino 	/* add new commands above here */
13133ff40c12SJohn Marino 
13143ff40c12SJohn Marino 	/* used to define NL80211_CMD_MAX below */
13153ff40c12SJohn Marino 	__NL80211_CMD_AFTER_LAST,
13163ff40c12SJohn Marino 	NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
13173ff40c12SJohn Marino };
13183ff40c12SJohn Marino 
13193ff40c12SJohn Marino /*
13203ff40c12SJohn Marino  * Allow user space programs to use #ifdef on new commands by defining them
13213ff40c12SJohn Marino  * here
13223ff40c12SJohn Marino  */
13233ff40c12SJohn Marino #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
13243ff40c12SJohn Marino #define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE
13253ff40c12SJohn Marino #define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE
13263ff40c12SJohn Marino #define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE
13273ff40c12SJohn Marino #define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE
13283ff40c12SJohn Marino #define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE
13293ff40c12SJohn Marino #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE
13303ff40c12SJohn Marino #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT
13313ff40c12SJohn Marino 
13323ff40c12SJohn Marino #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
13333ff40c12SJohn Marino 
13343ff40c12SJohn Marino /* source-level API compatibility */
13353ff40c12SJohn Marino #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG
13363ff40c12SJohn Marino #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG
13373ff40c12SJohn Marino #define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE
13383ff40c12SJohn Marino 
13393ff40c12SJohn Marino /**
13403ff40c12SJohn Marino  * enum nl80211_attrs - nl80211 netlink attributes
13413ff40c12SJohn Marino  *
13423ff40c12SJohn Marino  * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors
13433ff40c12SJohn Marino  *
13443ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf.
13453ff40c12SJohn Marino  *	/sys/class/ieee80211/<phyname>/index
13463ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming)
13473ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters
13483ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz,
13493ff40c12SJohn Marino  *	defines the channel together with the (deprecated)
13503ff40c12SJohn Marino  *	%NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes
13513ff40c12SJohn Marino  *	%NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1
13523ff40c12SJohn Marino  *	and %NL80211_ATTR_CENTER_FREQ2
13533ff40c12SJohn Marino  * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values
13543ff40c12SJohn Marino  *	of &enum nl80211_chan_width, describing the channel width. See the
13553ff40c12SJohn Marino  *	documentation of the enum for more information.
13563ff40c12SJohn Marino  * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the
13573ff40c12SJohn Marino  *	channel, used for anything but 20 MHz bandwidth
13583ff40c12SJohn Marino  * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the
13593ff40c12SJohn Marino  *	channel, used only for 80+80 MHz bandwidth
13603ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ
13613ff40c12SJohn Marino  *	if HT20 or HT40 are to be used (i.e., HT disabled if not included):
13623ff40c12SJohn Marino  *	NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including
13633ff40c12SJohn Marino  *		this attribute)
13643ff40c12SJohn Marino  *	NL80211_CHAN_HT20 = HT20 only
13653ff40c12SJohn Marino  *	NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel
13663ff40c12SJohn Marino  *	NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel
13673ff40c12SJohn Marino  *	This attribute is now deprecated.
13683ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is
13693ff40c12SJohn Marino  *	less than or equal to the RTS threshold; allowed range: 1..255;
13703ff40c12SJohn Marino  *	dot11ShortRetryLimit; u8
13713ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is
13723ff40c12SJohn Marino  *	greater than the RTS threshold; allowed range: 1..255;
13733ff40c12SJohn Marino  *	dot11ShortLongLimit; u8
13743ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum
13753ff40c12SJohn Marino  *	length in octets for frames; allowed range: 256..8000, disable
13763ff40c12SJohn Marino  *	fragmentation with (u32)-1; dot11FragmentationThreshold; u32
13773ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length
13783ff40c12SJohn Marino  *	larger than or equal to this use RTS/CTS handshake); allowed range:
13793ff40c12SJohn Marino  *	0..65536, disable with (u32)-1; dot11RTSThreshold; u32
13803ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11
13813ff40c12SJohn Marino  *	section 7.3.2.9; dot11CoverageClass; u8
13823ff40c12SJohn Marino  *
13833ff40c12SJohn Marino  * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on
13843ff40c12SJohn Marino  * @NL80211_ATTR_IFNAME: network interface name
13853ff40c12SJohn Marino  * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype
13863ff40c12SJohn Marino  *
13873ff40c12SJohn Marino  * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices
13883ff40c12SJohn Marino  *	that don't have a netdev (u64)
13893ff40c12SJohn Marino  *
13903ff40c12SJohn Marino  * @NL80211_ATTR_MAC: MAC address (various uses)
13913ff40c12SJohn Marino  *
13923ff40c12SJohn Marino  * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of
13933ff40c12SJohn Marino  *	16 bytes encryption key followed by 8 bytes each for TX and RX MIC
13943ff40c12SJohn Marino  *	keys
13953ff40c12SJohn Marino  * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3)
13963ff40c12SJohn Marino  * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
13973ff40c12SJohn Marino  *	section 7.3.2.25.1, e.g. 0x000FAC04)
13983ff40c12SJohn Marino  * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
13993ff40c12SJohn Marino  *	CCMP keys, each six bytes in little endian
14003ff40c12SJohn Marino  * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key
14013ff40c12SJohn Marino  * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the
14023ff40c12SJohn Marino  *	default management key
14033ff40c12SJohn Marino  * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or
14043ff40c12SJohn Marino  *	other commands, indicates which pairwise cipher suites are used
14053ff40c12SJohn Marino  * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or
14063ff40c12SJohn Marino  *	other commands, indicates which group cipher suite is used
14073ff40c12SJohn Marino  *
14083ff40c12SJohn Marino  * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU
14093ff40c12SJohn Marino  * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing
14103ff40c12SJohn Marino  * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE
14113ff40c12SJohn Marino  * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE
14123ff40c12SJohn Marino  *
14133ff40c12SJohn Marino  * @NL80211_ATTR_STA_AID: Association ID for the station (u16)
14143ff40c12SJohn Marino  * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of
14153ff40c12SJohn Marino  *	&enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2)
14163ff40c12SJohn Marino  * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by
14173ff40c12SJohn Marino  *	IEEE 802.11 7.3.1.6 (u16).
14183ff40c12SJohn Marino  * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported
14193ff40c12SJohn Marino  *	rates as defined by IEEE 802.11 7.3.2.2 but without the length
14203ff40c12SJohn Marino  *	restriction (at most %NL80211_MAX_SUPP_RATES).
14213ff40c12SJohn Marino  * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station
14223ff40c12SJohn Marino  *	to, or the AP interface the station was originally added to to.
14233ff40c12SJohn Marino  * @NL80211_ATTR_STA_INFO: information about a station, part of station info
14243ff40c12SJohn Marino  *	given for %NL80211_CMD_GET_STATION, nested attribute containing
14253ff40c12SJohn Marino  *	info as possible, see &enum nl80211_sta_info.
14263ff40c12SJohn Marino  *
14273ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands,
14283ff40c12SJohn Marino  *	consisting of a nested array.
14293ff40c12SJohn Marino  *
14303ff40c12SJohn Marino  * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes).
14313ff40c12SJohn Marino  * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link
14323ff40c12SJohn Marino  *	(see &enum nl80211_plink_action).
14333ff40c12SJohn Marino  * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path.
14343ff40c12SJohn Marino  * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path
14353ff40c12SJohn Marino  * 	info given for %NL80211_CMD_GET_MPATH, nested attribute described at
14363ff40c12SJohn Marino  *	&enum nl80211_mpath_info.
14373ff40c12SJohn Marino  *
14383ff40c12SJohn Marino  * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of
14393ff40c12SJohn Marino  *      &enum nl80211_mntr_flags.
14403ff40c12SJohn Marino  *
14413ff40c12SJohn Marino  * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the
14423ff40c12SJohn Marino  * 	current regulatory domain should be set to or is already set to.
14433ff40c12SJohn Marino  * 	For example, 'CR', for Costa Rica. This attribute is used by the kernel
14443ff40c12SJohn Marino  * 	to query the CRDA to retrieve one regulatory domain. This attribute can
14453ff40c12SJohn Marino  * 	also be used by userspace to query the kernel for the currently set
14463ff40c12SJohn Marino  * 	regulatory domain. We chose an alpha2 as that is also used by the
14473ff40c12SJohn Marino  * 	IEEE-802.11 country information element to identify a country.
14483ff40c12SJohn Marino  * 	Users can also simply ask the wireless core to set regulatory domain
14493ff40c12SJohn Marino  * 	to a specific alpha2.
14503ff40c12SJohn Marino  * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory
14513ff40c12SJohn Marino  *	rules.
14523ff40c12SJohn Marino  *
14533ff40c12SJohn Marino  * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1)
14543ff40c12SJohn Marino  * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled
14553ff40c12SJohn Marino  *	(u8, 0 or 1)
14563ff40c12SJohn Marino  * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled
14573ff40c12SJohn Marino  *	(u8, 0 or 1)
14583ff40c12SJohn Marino  * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic
14593ff40c12SJohn Marino  *	rates in format defined by IEEE 802.11 7.3.2.2 but without the length
14603ff40c12SJohn Marino  *	restriction (at most %NL80211_MAX_SUPP_RATES).
14613ff40c12SJohn Marino  *
14623ff40c12SJohn Marino  * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from
14633ff40c12SJohn Marino  *	association request when used with NL80211_CMD_NEW_STATION)
14643ff40c12SJohn Marino  *
14653ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all
14663ff40c12SJohn Marino  *	supported interface types, each a flag attribute with the number
14673ff40c12SJohn Marino  *	of the interface mode.
14683ff40c12SJohn Marino  *
14693ff40c12SJohn Marino  * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for
14703ff40c12SJohn Marino  *	%NL80211_CMD_SET_MGMT_EXTRA_IE.
14713ff40c12SJohn Marino  *
14723ff40c12SJohn Marino  * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with
14733ff40c12SJohn Marino  *	%NL80211_CMD_SET_MGMT_EXTRA_IE).
14743ff40c12SJohn Marino  *
14753ff40c12SJohn Marino  * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with
14763ff40c12SJohn Marino  *	a single scan request, a wiphy attribute.
14773ff40c12SJohn Marino  * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can
14783ff40c12SJohn Marino  *	scan with a single scheduled scan request, a wiphy attribute.
14793ff40c12SJohn Marino  * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements
14803ff40c12SJohn Marino  *	that can be added to a scan request
14813ff40c12SJohn Marino  * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information
14823ff40c12SJohn Marino  *	elements that can be added to a scheduled scan request
14833ff40c12SJohn Marino  * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be
14843ff40c12SJohn Marino  *	used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute.
14853ff40c12SJohn Marino  *
14863ff40c12SJohn Marino  * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz)
14873ff40c12SJohn Marino  * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive
14883ff40c12SJohn Marino  *	scanning and include a zero-length SSID (wildcard) for wildcard scan
14893ff40c12SJohn Marino  * @NL80211_ATTR_BSS: scan result BSS
14903ff40c12SJohn Marino  *
14913ff40c12SJohn Marino  * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain
14923ff40c12SJohn Marino  * 	currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_*
14933ff40c12SJohn Marino  * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently
14943ff40c12SJohn Marino  * 	set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*)
14953ff40c12SJohn Marino  *
14963ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies
14973ff40c12SJohn Marino  *	an array of command numbers (i.e. a mapping index to command number)
14983ff40c12SJohn Marino  *	that the driver for the given wiphy supports.
14993ff40c12SJohn Marino  *
15003ff40c12SJohn Marino  * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header
15013ff40c12SJohn Marino  *	and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and
15023ff40c12SJohn Marino  *	NL80211_CMD_ASSOCIATE events
15033ff40c12SJohn Marino  * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets)
15043ff40c12SJohn Marino  * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type,
15053ff40c12SJohn Marino  *	represented as a u32
15063ff40c12SJohn Marino  * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and
15073ff40c12SJohn Marino  *	%NL80211_CMD_DISASSOCIATE, u16
15083ff40c12SJohn Marino  *
15093ff40c12SJohn Marino  * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as
15103ff40c12SJohn Marino  *	a u32
15113ff40c12SJohn Marino  *
15123ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change
15133ff40c12SJohn Marino  * 	due to considerations from a beacon hint. This attribute reflects
15143ff40c12SJohn Marino  * 	the state of the channel _before_ the beacon hint processing. This
15153ff40c12SJohn Marino  * 	attributes consists of a nested attribute containing
15163ff40c12SJohn Marino  * 	NL80211_FREQUENCY_ATTR_*
15173ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change
15183ff40c12SJohn Marino  * 	due to considerations from a beacon hint. This attribute reflects
15193ff40c12SJohn Marino  * 	the state of the channel _after_ the beacon hint processing. This
15203ff40c12SJohn Marino  * 	attributes consists of a nested attribute containing
15213ff40c12SJohn Marino  * 	NL80211_FREQUENCY_ATTR_*
15223ff40c12SJohn Marino  *
15233ff40c12SJohn Marino  * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported
15243ff40c12SJohn Marino  *	cipher suites
15253ff40c12SJohn Marino  *
15263ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look
15273ff40c12SJohn Marino  *	for other networks on different channels
15283ff40c12SJohn Marino  *
15293ff40c12SJohn Marino  * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this
15303ff40c12SJohn Marino  *	is used, e.g., with %NL80211_CMD_AUTHENTICATE event
15313ff40c12SJohn Marino  *
15323ff40c12SJohn Marino  * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is
15333ff40c12SJohn Marino  *	used for the association (&enum nl80211_mfp, represented as a u32);
1534*a1157835SDaniel Fojt  *	this attribute can be used with %NL80211_CMD_ASSOCIATE and
1535*a1157835SDaniel Fojt  *	%NL80211_CMD_CONNECT requests. %NL80211_MFP_OPTIONAL is not allowed for
1536*a1157835SDaniel Fojt  *	%NL80211_CMD_ASSOCIATE since user space SME is expected and hence, it
1537*a1157835SDaniel Fojt  *	must have decided whether to use management frame protection or not.
1538*a1157835SDaniel Fojt  *	Setting %NL80211_MFP_OPTIONAL with a %NL80211_CMD_CONNECT request will
1539*a1157835SDaniel Fojt  *	let the driver (or the firmware) decide whether to use MFP or not.
15403ff40c12SJohn Marino  *
15413ff40c12SJohn Marino  * @NL80211_ATTR_STA_FLAGS2: Attribute containing a
15423ff40c12SJohn Marino  *	&struct nl80211_sta_flag_update.
15433ff40c12SJohn Marino  *
15443ff40c12SJohn Marino  * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls
15453ff40c12SJohn Marino  *	IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in
15463ff40c12SJohn Marino  *	station mode. If the flag is included in %NL80211_CMD_ASSOCIATE
15473ff40c12SJohn Marino  *	request, the driver will assume that the port is unauthorized until
15483ff40c12SJohn Marino  *	authorized by user space. Otherwise, port is marked authorized by
15493ff40c12SJohn Marino  *	default in station mode.
15503ff40c12SJohn Marino  * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the
15513ff40c12SJohn Marino  *	ethertype that will be used for key negotiation. It can be
15523ff40c12SJohn Marino  *	specified with the associate and connect commands. If it is not
15533ff40c12SJohn Marino  *	specified, the value defaults to 0x888E (PAE, 802.1X). This
15543ff40c12SJohn Marino  *	attribute is also used as a flag in the wiphy information to
15553ff40c12SJohn Marino  *	indicate that protocols other than PAE are supported.
15563ff40c12SJohn Marino  * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with
15573ff40c12SJohn Marino  *	%NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom
15583ff40c12SJohn Marino  *	ethertype frames used for key negotiation must not be encrypted.
1559*a1157835SDaniel Fojt  * @NL80211_ATTR_CONTROL_PORT_OVER_NL80211: A flag indicating whether control
1560*a1157835SDaniel Fojt  *	port frames (e.g. of type given in %NL80211_ATTR_CONTROL_PORT_ETHERTYPE)
1561*a1157835SDaniel Fojt  *	will be sent directly to the network interface or sent via the NL80211
1562*a1157835SDaniel Fojt  *	socket.  If this attribute is missing, then legacy behavior of sending
1563*a1157835SDaniel Fojt  *	control port frames directly to the network interface is used.  If the
1564*a1157835SDaniel Fojt  *	flag is included, then control port frames are sent over NL80211 instead
1565*a1157835SDaniel Fojt  *	using %CMD_CONTROL_PORT_FRAME.  If control port routing over NL80211 is
1566*a1157835SDaniel Fojt  *	to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER
1567*a1157835SDaniel Fojt  *	flag.
15683ff40c12SJohn Marino  *
15693ff40c12SJohn Marino  * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver.
15703ff40c12SJohn Marino  *	We recommend using nested, driver-specific attributes within this.
15713ff40c12SJohn Marino  *
15723ff40c12SJohn Marino  * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT
15733ff40c12SJohn Marino  *	event was due to the AP disconnecting the station, and not due to
15743ff40c12SJohn Marino  *	a local disconnect request.
15753ff40c12SJohn Marino  * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT
15763ff40c12SJohn Marino  *	event (u16)
15773ff40c12SJohn Marino  * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating
15783ff40c12SJohn Marino  *	that protected APs should be used. This is also used with NEW_BEACON to
15793ff40c12SJohn Marino  *	indicate that the BSS is to use protection.
15803ff40c12SJohn Marino  *
15813ff40c12SJohn Marino  * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON
15823ff40c12SJohn Marino  *	to indicate which unicast key ciphers will be used with the connection
15833ff40c12SJohn Marino  *	(an array of u32).
15843ff40c12SJohn Marino  * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
15853ff40c12SJohn Marino  *	indicate which group key cipher will be used with the connection (a
15863ff40c12SJohn Marino  *	u32).
15873ff40c12SJohn Marino  * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
15883ff40c12SJohn Marino  *	indicate which WPA version(s) the AP we want to associate with is using
15893ff40c12SJohn Marino  *	(a u32 with flags from &enum nl80211_wpa_versions).
15903ff40c12SJohn Marino  * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
15913ff40c12SJohn Marino  *	indicate which key management algorithm(s) to use (an array of u32).
1592*a1157835SDaniel Fojt  *	This attribute is also sent in response to @NL80211_CMD_GET_WIPHY,
1593*a1157835SDaniel Fojt  *	indicating the supported AKM suites, intended for specific drivers which
1594*a1157835SDaniel Fojt  *	implement SME and have constraints on which AKMs are supported and also
1595*a1157835SDaniel Fojt  *	the cases where an AKM support is offloaded to the driver/firmware.
1596*a1157835SDaniel Fojt  *	If there is no such notification from the driver, user space should
1597*a1157835SDaniel Fojt  *	assume the driver supports all the AKM suites.
15983ff40c12SJohn Marino  *
15993ff40c12SJohn Marino  * @NL80211_ATTR_REQ_IE: (Re)association request information elements as
16003ff40c12SJohn Marino  *	sent out by the card, for ROAM and successful CONNECT events.
16013ff40c12SJohn Marino  * @NL80211_ATTR_RESP_IE: (Re)association response information elements as
16023ff40c12SJohn Marino  *	sent by peer, for ROAM and successful CONNECT events.
16033ff40c12SJohn Marino  *
1604*a1157835SDaniel Fojt  * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used in ASSOCIATE and CONNECT
1605*a1157835SDaniel Fojt  *	commands to specify a request to reassociate within an ESS, i.e., to use
1606*a1157835SDaniel Fojt  *	Reassociate Request frame (with the value of this attribute in the
1607*a1157835SDaniel Fojt  *	Current AP address field) instead of Association Request frame which is
1608*a1157835SDaniel Fojt  *	used for the initial association to an ESS.
16093ff40c12SJohn Marino  *
16103ff40c12SJohn Marino  * @NL80211_ATTR_KEY: key information in a nested attribute with
16113ff40c12SJohn Marino  *	%NL80211_KEY_* sub-attributes
16123ff40c12SJohn Marino  * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect()
16133ff40c12SJohn Marino  *	and join_ibss(), key information is in a nested attribute each
16143ff40c12SJohn Marino  *	with %NL80211_KEY_* sub-attributes
16153ff40c12SJohn Marino  *
16163ff40c12SJohn Marino  * @NL80211_ATTR_PID: Process ID of a network namespace.
16173ff40c12SJohn Marino  *
16183ff40c12SJohn Marino  * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for
16193ff40c12SJohn Marino  *	dumps. This number increases whenever the object list being
16203ff40c12SJohn Marino  *	dumped changes, and as such userspace can verify that it has
16213ff40c12SJohn Marino  *	obtained a complete and consistent snapshot by verifying that
16223ff40c12SJohn Marino  *	all dump messages contain the same generation number. If it
16233ff40c12SJohn Marino  *	changed then the list changed and the dump should be repeated
16243ff40c12SJohn Marino  *	completely from scratch.
16253ff40c12SJohn Marino  *
16263ff40c12SJohn Marino  * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface
16273ff40c12SJohn Marino  *
16283ff40c12SJohn Marino  * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of
16293ff40c12SJohn Marino  *      the survey response for %NL80211_CMD_GET_SURVEY, nested attribute
16303ff40c12SJohn Marino  *      containing info as possible, see &enum survey_info.
16313ff40c12SJohn Marino  *
16323ff40c12SJohn Marino  * @NL80211_ATTR_PMKID: PMK material for PMKSA caching.
16333ff40c12SJohn Marino  * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can
16343ff40c12SJohn Marino  *	cache, a wiphy attribute.
16353ff40c12SJohn Marino  *
16363ff40c12SJohn Marino  * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32.
16373ff40c12SJohn Marino  * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that
16383ff40c12SJohn Marino  *	specifies the maximum duration that can be requested with the
16393ff40c12SJohn Marino  *	remain-on-channel operation, in milliseconds, u32.
16403ff40c12SJohn Marino  *
16413ff40c12SJohn Marino  * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects.
16423ff40c12SJohn Marino  *
16433ff40c12SJohn Marino  * @NL80211_ATTR_TX_RATES: Nested set of attributes
16443ff40c12SJohn Marino  *	(enum nl80211_tx_rate_attributes) describing TX rates per band. The
16453ff40c12SJohn Marino  *	enum nl80211_band value is used as the index (nla_type() of the nested
16463ff40c12SJohn Marino  *	data. If a band is not included, it will be configured to allow all
16473ff40c12SJohn Marino  *	rates based on negotiated supported rates information. This attribute
1648*a1157835SDaniel Fojt  *	is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP,
1649*a1157835SDaniel Fojt  *	and joining mesh networks (not IBSS yet). In the later case, it must
1650*a1157835SDaniel Fojt  *	specify just a single bitrate, which is to be used for the beacon.
1651*a1157835SDaniel Fojt  *	The driver must also specify support for this with the extended
1652*a1157835SDaniel Fojt  *	features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
1653*a1157835SDaniel Fojt  *	NL80211_EXT_FEATURE_BEACON_RATE_HT and
1654*a1157835SDaniel Fojt  *	NL80211_EXT_FEATURE_BEACON_RATE_VHT.
16553ff40c12SJohn Marino  *
16563ff40c12SJohn Marino  * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain
16573ff40c12SJohn Marino  *	at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME.
16583ff40c12SJohn Marino  * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the
16593ff40c12SJohn Marino  *	@NL80211_CMD_REGISTER_FRAME command.
16603ff40c12SJohn Marino  * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a
16613ff40c12SJohn Marino  *	nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
16623ff40c12SJohn Marino  *	information about which frame types can be transmitted with
16633ff40c12SJohn Marino  *	%NL80211_CMD_FRAME.
16643ff40c12SJohn Marino  * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a
16653ff40c12SJohn Marino  *	nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
16663ff40c12SJohn Marino  *	information about which frame types can be registered for RX.
16673ff40c12SJohn Marino  *
16683ff40c12SJohn Marino  * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was
16693ff40c12SJohn Marino  *	acknowledged by the recipient.
16703ff40c12SJohn Marino  *
16713ff40c12SJohn Marino  * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values.
16723ff40c12SJohn Marino  *
16733ff40c12SJohn Marino  * @NL80211_ATTR_CQM: connection quality monitor configuration in a
16743ff40c12SJohn Marino  *	nested attribute with %NL80211_ATTR_CQM_* sub-attributes.
16753ff40c12SJohn Marino  *
16763ff40c12SJohn Marino  * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command
16773ff40c12SJohn Marino  *	is requesting a local authentication/association state change without
16783ff40c12SJohn Marino  *	invoking actual management frame exchange. This can be used with
16793ff40c12SJohn Marino  *	NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE,
16803ff40c12SJohn Marino  *	NL80211_CMD_DISASSOCIATE.
16813ff40c12SJohn Marino  *
16823ff40c12SJohn Marino  * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations
16833ff40c12SJohn Marino  *	connected to this BSS.
16843ff40c12SJohn Marino  *
16853ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See
16863ff40c12SJohn Marino  *      &enum nl80211_tx_power_setting for possible values.
16873ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units.
16883ff40c12SJohn Marino  *      This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING
16893ff40c12SJohn Marino  *      for non-automatic settings.
16903ff40c12SJohn Marino  *
16913ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly
16923ff40c12SJohn Marino  *	means support for per-station GTKs.
16933ff40c12SJohn Marino  *
16943ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting.
16953ff40c12SJohn Marino  *	This can be used to mask out antennas which are not attached or should
16963ff40c12SJohn Marino  *	not be used for transmitting. If an antenna is not selected in this
16973ff40c12SJohn Marino  *	bitmap the hardware is not allowed to transmit on this antenna.
16983ff40c12SJohn Marino  *
16993ff40c12SJohn Marino  *	Each bit represents one antenna, starting with antenna 1 at the first
17003ff40c12SJohn Marino  *	bit. Depending on which antennas are selected in the bitmap, 802.11n
17013ff40c12SJohn Marino  *	drivers can derive which chainmasks to use (if all antennas belonging to
17023ff40c12SJohn Marino  *	a particular chain are disabled this chain should be disabled) and if
17033ff40c12SJohn Marino  *	a chain has diversity antennas wether diversity should be used or not.
17043ff40c12SJohn Marino  *	HT capabilities (STBC, TX Beamforming, Antenna selection) can be
17053ff40c12SJohn Marino  *	derived from the available chains after applying the antenna mask.
17063ff40c12SJohn Marino  *	Non-802.11n drivers can derive wether to use diversity or not.
17073ff40c12SJohn Marino  *	Drivers may reject configurations or RX/TX mask combinations they cannot
17083ff40c12SJohn Marino  *	support by returning -EINVAL.
17093ff40c12SJohn Marino  *
17103ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving.
17113ff40c12SJohn Marino  *	This can be used to mask out antennas which are not attached or should
17123ff40c12SJohn Marino  *	not be used for receiving. If an antenna is not selected in this bitmap
17133ff40c12SJohn Marino  *	the hardware should not be configured to receive on this antenna.
17143ff40c12SJohn Marino  *	For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX.
17153ff40c12SJohn Marino  *
17163ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available
17173ff40c12SJohn Marino  *	for configuration as TX antennas via the above parameters.
17183ff40c12SJohn Marino  *
17193ff40c12SJohn Marino  * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available
17203ff40c12SJohn Marino  *	for configuration as RX antennas via the above parameters.
17213ff40c12SJohn Marino  *
17223ff40c12SJohn Marino  * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS
17233ff40c12SJohn Marino  *
17243ff40c12SJohn Marino  * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be
17253ff40c12SJohn Marino  *	transmitted on another channel when the channel given doesn't match
17263ff40c12SJohn Marino  *	the current channel. If the current channel doesn't match and this
17273ff40c12SJohn Marino  *	flag isn't set, the frame will be rejected. This is also used as an
17283ff40c12SJohn Marino  *	nl80211 capability flag.
17293ff40c12SJohn Marino  *
17303ff40c12SJohn Marino  * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16)
17313ff40c12SJohn Marino  *
17323ff40c12SJohn Marino  * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags
17333ff40c12SJohn Marino  *	attributes, specifying what a key should be set as default as.
17343ff40c12SJohn Marino  *	See &enum nl80211_key_default_types.
17353ff40c12SJohn Marino  *
17363ff40c12SJohn Marino  * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters.  These cannot be
17373ff40c12SJohn Marino  *	changed once the mesh is active.
17383ff40c12SJohn Marino  * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute
17393ff40c12SJohn Marino  *	containing attributes from &enum nl80211_meshconf_params.
17403ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver
17413ff40c12SJohn Marino  *	allows auth frames in a mesh to be passed to userspace for processing via
17423ff40c12SJohn Marino  *	the @NL80211_MESH_SETUP_USERSPACE_AUTH flag.
17433ff40c12SJohn Marino  * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in
17443ff40c12SJohn Marino  *	&enum nl80211_plink_state. Used when userspace is driving the peer link
17453ff40c12SJohn Marino  *	management state machine.  @NL80211_MESH_SETUP_USERSPACE_AMPE or
17463ff40c12SJohn Marino  *	@NL80211_MESH_SETUP_USERSPACE_MPM must be enabled.
17473ff40c12SJohn Marino  *
17483ff40c12SJohn Marino  * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy
17493ff40c12SJohn Marino  *	capabilities, the supported WoWLAN triggers
17503ff40c12SJohn Marino  * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to
17513ff40c12SJohn Marino  *	indicate which WoW triggers should be enabled. This is also
17523ff40c12SJohn Marino  *	used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN
17533ff40c12SJohn Marino  *	triggers.
17543ff40c12SJohn Marino  *
17553ff40c12SJohn Marino  * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan
17563ff40c12SJohn Marino  *	cycles, in msecs.
17573ff40c12SJohn Marino  *
17583ff40c12SJohn Marino  * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more
17593ff40c12SJohn Marino  *	sets of attributes to match during scheduled scans.  Only BSSs
17603ff40c12SJohn Marino  *	that match any of the sets will be reported.  These are
17613ff40c12SJohn Marino  *	pass-thru filter rules.
17623ff40c12SJohn Marino  *	For a match to succeed, the BSS must match all attributes of a
17633ff40c12SJohn Marino  *	set.  Since not every hardware supports matching all types of
17643ff40c12SJohn Marino  *	attributes, there is no guarantee that the reported BSSs are
17653ff40c12SJohn Marino  *	fully complying with the match sets and userspace needs to be
17663ff40c12SJohn Marino  *	able to ignore them by itself.
17673ff40c12SJohn Marino  *	Thus, the implementation is somewhat hardware-dependent, but
17683ff40c12SJohn Marino  *	this is only an optimization and the userspace application
17693ff40c12SJohn Marino  *	needs to handle all the non-filtered results anyway.
17703ff40c12SJohn Marino  *	If the match attributes don't make sense when combined with
17713ff40c12SJohn Marino  *	the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID
17723ff40c12SJohn Marino  *	is included in the probe request, but the match attributes
17733ff40c12SJohn Marino  *	will never let it go through), -EINVAL may be returned.
1774*a1157835SDaniel Fojt  *	If omitted, no filtering is done.
17753ff40c12SJohn Marino  *
17763ff40c12SJohn Marino  * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported
17773ff40c12SJohn Marino  *	interface combinations. In each nested item, it contains attributes
17783ff40c12SJohn Marino  *	defined in &enum nl80211_if_combination_attrs.
17793ff40c12SJohn Marino  * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like
17803ff40c12SJohn Marino  *	%NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that
17813ff40c12SJohn Marino  *	are managed in software: interfaces of these types aren't subject to
17823ff40c12SJohn Marino  *	any restrictions in their number or combinations.
17833ff40c12SJohn Marino  *
17843ff40c12SJohn Marino  * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information
17853ff40c12SJohn Marino  *	necessary for GTK rekeying in the device, see &enum nl80211_rekey_data.
17863ff40c12SJohn Marino  *
17873ff40c12SJohn Marino  * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan,
17883ff40c12SJohn Marino  *	nested array attribute containing an entry for each band, with the entry
17893ff40c12SJohn Marino  *	being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but
17903ff40c12SJohn Marino  *	without the length restriction (at most %NL80211_MAX_SUPP_RATES).
17913ff40c12SJohn Marino  *
17923ff40c12SJohn Marino  * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon
17933ff40c12SJohn Marino  *	and Probe Response (when response to wildcard Probe Request); see
17943ff40c12SJohn Marino  *	&enum nl80211_hidden_ssid, represented as a u32
17953ff40c12SJohn Marino  *
17963ff40c12SJohn Marino  * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame.
17973ff40c12SJohn Marino  *	This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to
17983ff40c12SJohn Marino  *	provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the
17993ff40c12SJohn Marino  *	driver (or firmware) replies to Probe Request frames.
18003ff40c12SJohn Marino  * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association
18013ff40c12SJohn Marino  *	Response frames. This is used with %NL80211_CMD_NEW_BEACON and
18023ff40c12SJohn Marino  *	%NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into
18033ff40c12SJohn Marino  *	(Re)Association Response frames when the driver (or firmware) replies to
18043ff40c12SJohn Marino  *	(Re)Association Request frames.
18053ff40c12SJohn Marino  *
18063ff40c12SJohn Marino  * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration
18073ff40c12SJohn Marino  *	of the station, see &enum nl80211_sta_wme_attr.
18083ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working
18093ff40c12SJohn Marino  *	as AP.
18103ff40c12SJohn Marino  *
18113ff40c12SJohn Marino  * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of
18123ff40c12SJohn Marino  *	roaming to another AP in the same ESS if the signal lever is low.
18133ff40c12SJohn Marino  *
18143ff40c12SJohn Marino  * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching
18153ff40c12SJohn Marino  *	candidate information, see &enum nl80211_pmksa_candidate_attr.
18163ff40c12SJohn Marino  *
18173ff40c12SJohn Marino  * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not
18183ff40c12SJohn Marino  *	for management frames transmission. In order to avoid p2p probe/action
18193ff40c12SJohn Marino  *	frames are being transmitted at CCK rate in 2GHz band, the user space
18203ff40c12SJohn Marino  *	applications use this attribute.
18213ff40c12SJohn Marino  *	This attribute is used with %NL80211_CMD_TRIGGER_SCAN and
18223ff40c12SJohn Marino  *	%NL80211_CMD_FRAME commands.
18233ff40c12SJohn Marino  *
18243ff40c12SJohn Marino  * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup
18253ff40c12SJohn Marino  *	request, link setup confirm, link teardown, etc.). Values are
18263ff40c12SJohn Marino  *	described in the TDLS (802.11z) specification.
18273ff40c12SJohn Marino  * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a
18283ff40c12SJohn Marino  *	TDLS conversation between two devices.
18293ff40c12SJohn Marino  * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see
18303ff40c12SJohn Marino  *	&enum nl80211_tdls_operation, represented as a u8.
18313ff40c12SJohn Marino  * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate
18323ff40c12SJohn Marino  *	as a TDLS peer sta.
18333ff40c12SJohn Marino  * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown
18343ff40c12SJohn Marino  *	procedures should be performed by sending TDLS packets via
18353ff40c12SJohn Marino  *	%NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be
18363ff40c12SJohn Marino  *	used for asking the driver to perform a TDLS operation.
18373ff40c12SJohn Marino  *
18383ff40c12SJohn Marino  * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices
18393ff40c12SJohn Marino  *	that have AP support to indicate that they have the AP SME integrated
18403ff40c12SJohn Marino  *	with support for the features listed in this attribute, see
18413ff40c12SJohn Marino  *	&enum nl80211_ap_sme_features.
18423ff40c12SJohn Marino  *
18433ff40c12SJohn Marino  * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells
18443ff40c12SJohn Marino  *	the driver to not wait for an acknowledgement. Note that due to this,
18453ff40c12SJohn Marino  *	it will also not give a status callback nor return a cookie. This is
18463ff40c12SJohn Marino  *	mostly useful for probe responses to save airtime.
18473ff40c12SJohn Marino  *
18483ff40c12SJohn Marino  * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from
18493ff40c12SJohn Marino  *	&enum nl80211_feature_flags and is advertised in wiphy information.
18503ff40c12SJohn Marino  * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe
18513ff40c12SJohn Marino  *	requests while operating in AP-mode.
18523ff40c12SJohn Marino  *	This attribute holds a bitmap of the supported protocols for
18533ff40c12SJohn Marino  *	offloading (see &enum nl80211_probe_resp_offload_support_attr).
18543ff40c12SJohn Marino  *
18553ff40c12SJohn Marino  * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire
18563ff40c12SJohn Marino  *	probe-response frame. The DA field in the 802.11 header is zero-ed out,
18573ff40c12SJohn Marino  *	to be filled by the FW.
18583ff40c12SJohn Marino  * @NL80211_ATTR_DISABLE_HT:  Force HT capable interfaces to disable
18593ff40c12SJohn Marino  *      this feature.  Currently, only supported in mac80211 drivers.
18603ff40c12SJohn Marino  * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the
18613ff40c12SJohn Marino  *      ATTR_HT_CAPABILITY to which attention should be paid.
18623ff40c12SJohn Marino  *      Currently, only mac80211 NICs support this feature.
18633ff40c12SJohn Marino  *      The values that may be configured are:
18643ff40c12SJohn Marino  *       MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40
18653ff40c12SJohn Marino  *       AMPDU density and AMPDU factor.
18663ff40c12SJohn Marino  *      All values are treated as suggestions and may be ignored
18673ff40c12SJohn Marino  *      by the driver as required.  The actual values may be seen in
18683ff40c12SJohn Marino  *      the station debugfs ht_caps file.
18693ff40c12SJohn Marino  *
18703ff40c12SJohn Marino  * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country
18713ff40c12SJohn Marino  *    abides to when initiating radiation on DFS channels. A country maps
18723ff40c12SJohn Marino  *    to one DFS region.
18733ff40c12SJohn Marino  *
18743ff40c12SJohn Marino  * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of
18753ff40c12SJohn Marino  *      up to 16 TIDs.
18763ff40c12SJohn Marino  *
18773ff40c12SJohn Marino  * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be
18783ff40c12SJohn Marino  *	used by the drivers which has MLME in firmware and does not have support
1879*a1157835SDaniel Fojt  *	to report per station tx/rx activity to free up the station entry from
18803ff40c12SJohn Marino  *	the list. This needs to be used when the driver advertises the
18813ff40c12SJohn Marino  *	capability to timeout the stations.
18823ff40c12SJohn Marino  *
18833ff40c12SJohn Marino  * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int);
18843ff40c12SJohn Marino  *	this attribute is (depending on the driver capabilities) added to
18853ff40c12SJohn Marino  *	received frames indicated with %NL80211_CMD_FRAME.
18863ff40c12SJohn Marino  *
18873ff40c12SJohn Marino  * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds
18883ff40c12SJohn Marino  *      or 0 to disable background scan.
18893ff40c12SJohn Marino  *
18903ff40c12SJohn Marino  * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from
18913ff40c12SJohn Marino  *	userspace. If unset it is assumed the hint comes directly from
18923ff40c12SJohn Marino  *	a user. If set code could specify exactly what type of source
18933ff40c12SJohn Marino  *	was used to provide the hint. For the different types of
18943ff40c12SJohn Marino  *	allowed user regulatory hints see nl80211_user_reg_hint_type.
18953ff40c12SJohn Marino  *
18963ff40c12SJohn Marino  * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected
18973ff40c12SJohn Marino  *	the connection request from a station. nl80211_connect_failed_reason
18983ff40c12SJohn Marino  *	enum has different reasons of connection failure.
18993ff40c12SJohn Marino  *
1900*a1157835SDaniel Fojt  * @NL80211_ATTR_AUTH_DATA: Fields and elements in Authentication frames.
1901*a1157835SDaniel Fojt  *	This contains the authentication frame body (non-IE and IE data),
1902*a1157835SDaniel Fojt  *	excluding the Authentication algorithm number, i.e., starting at the
1903*a1157835SDaniel Fojt  *	Authentication transaction sequence number field. It is used with
1904*a1157835SDaniel Fojt  *	authentication algorithms that need special fields to be added into
1905*a1157835SDaniel Fojt  *	the frames (SAE and FILS). Currently, only the SAE cases use the
1906*a1157835SDaniel Fojt  *	initial two fields (Authentication transaction sequence number and
1907*a1157835SDaniel Fojt  *	Status code). However, those fields are included in the attribute data
1908*a1157835SDaniel Fojt  *	for all authentication algorithms to keep the attribute definition
1909*a1157835SDaniel Fojt  *	consistent.
19103ff40c12SJohn Marino  *
19113ff40c12SJohn Marino  * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from
19123ff40c12SJohn Marino  *	association request when used with NL80211_CMD_NEW_STATION)
19133ff40c12SJohn Marino  *
19143ff40c12SJohn Marino  * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32)
19153ff40c12SJohn Marino  *
19163ff40c12SJohn Marino  * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with
19173ff40c12SJohn Marino  *	the START_AP and SET_BSS commands
19183ff40c12SJohn Marino  * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the
19193ff40c12SJohn Marino  *	START_AP and SET_BSS commands. This can have the values 0 or 1;
19203ff40c12SJohn Marino  *	if not given in START_AP 0 is assumed, if not given in SET_BSS
19213ff40c12SJohn Marino  *	no change is made.
19223ff40c12SJohn Marino  *
19233ff40c12SJohn Marino  * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode
19243ff40c12SJohn Marino  *	defined in &enum nl80211_mesh_power_mode.
19253ff40c12SJohn Marino  *
19263ff40c12SJohn Marino  * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy,
19273ff40c12SJohn Marino  *	carried in a u32 attribute
19283ff40c12SJohn Marino  *
19293ff40c12SJohn Marino  * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for
19303ff40c12SJohn Marino  *	MAC ACL.
19313ff40c12SJohn Marino  *
19323ff40c12SJohn Marino  * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum
19333ff40c12SJohn Marino  *	number of MAC addresses that a device can support for MAC
19343ff40c12SJohn Marino  *	ACL.
19353ff40c12SJohn Marino  *
19363ff40c12SJohn Marino  * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace,
19373ff40c12SJohn Marino  *	contains a value of enum nl80211_radar_event (u32).
19383ff40c12SJohn Marino  *
19393ff40c12SJohn Marino  * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver
19403ff40c12SJohn Marino  *	has and handles. The format is the same as the IE contents. See
19413ff40c12SJohn Marino  *	802.11-2012 8.4.2.29 for more information.
19423ff40c12SJohn Marino  * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver
19433ff40c12SJohn Marino  *	has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields.
19443ff40c12SJohn Marino  *
19453ff40c12SJohn Marino  * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to
19463ff40c12SJohn Marino  *	the driver, e.g., to enable TDLS power save (PU-APSD).
19473ff40c12SJohn Marino  *
19483ff40c12SJohn Marino  * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are
19493ff40c12SJohn Marino  *	advertised to the driver, e.g., to enable TDLS off channel operations
19503ff40c12SJohn Marino  *	and PU-APSD.
19513ff40c12SJohn Marino  *
19523ff40c12SJohn Marino  * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see
19533ff40c12SJohn Marino  *	&enum nl80211_protocol_features, the attribute is a u32.
19543ff40c12SJohn Marino  *
19553ff40c12SJohn Marino  * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports
19563ff40c12SJohn Marino  *	receiving the data for a single wiphy split across multiple
19573ff40c12SJohn Marino  *	messages, given with wiphy dump message
19583ff40c12SJohn Marino  *
19593ff40c12SJohn Marino  * @NL80211_ATTR_MDID: Mobility Domain Identifier
19603ff40c12SJohn Marino  *
19613ff40c12SJohn Marino  * @NL80211_ATTR_IE_RIC: Resource Information Container Information
19623ff40c12SJohn Marino  *	Element
19633ff40c12SJohn Marino  *
19643ff40c12SJohn Marino  * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased
19653ff40c12SJohn Marino  *	reliability, see &enum nl80211_crit_proto_id (u16).
19663ff40c12SJohn Marino  * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which
19673ff40c12SJohn Marino  *      the connection should have increased reliability (u16).
19683ff40c12SJohn Marino  *
19693ff40c12SJohn Marino  * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16).
19703ff40c12SJohn Marino  *	This is similar to @NL80211_ATTR_STA_AID but with a difference of being
19713ff40c12SJohn Marino  *	allowed to be used with the first @NL80211_CMD_SET_STATION command to
19723ff40c12SJohn Marino  *	update a TDLS peer STA entry.
19733ff40c12SJohn Marino  *
19743ff40c12SJohn Marino  * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information.
19753ff40c12SJohn Marino  *
19763ff40c12SJohn Marino  * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's
19773ff40c12SJohn Marino  *	until the channel switch event.
19783ff40c12SJohn Marino  * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission
19793ff40c12SJohn Marino  *	must be blocked on the current channel (before the channel switch
19803ff40c12SJohn Marino  *	operation).
19813ff40c12SJohn Marino  * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information
19823ff40c12SJohn Marino  *	for the time while performing a channel switch.
1983*a1157835SDaniel Fojt  * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel
1984*a1157835SDaniel Fojt  *	switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
1985*a1157835SDaniel Fojt  * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel
1986*a1157835SDaniel Fojt  *	switch counters in the probe response (%NL80211_ATTR_PROBE_RESP).
19873ff40c12SJohn Marino  *
19883ff40c12SJohn Marino  * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
19893ff40c12SJohn Marino  *	As specified in the &enum nl80211_rxmgmt_flags.
19903ff40c12SJohn Marino  *
19913ff40c12SJohn Marino  * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels.
19923ff40c12SJohn Marino  *
19933ff40c12SJohn Marino  * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported
19943ff40c12SJohn Marino  *      supported operating classes.
19953ff40c12SJohn Marino  *
19963ff40c12SJohn Marino  * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space
19973ff40c12SJohn Marino  *	controls DFS operation in IBSS mode. If the flag is included in
19983ff40c12SJohn Marino  *	%NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS
19993ff40c12SJohn Marino  *	channels and reports radar events to userspace. Userspace is required
20003ff40c12SJohn Marino  *	to react to radar events, e.g. initiate a channel switch or leave the
20013ff40c12SJohn Marino  *	IBSS network.
20023ff40c12SJohn Marino  *
20033ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports
20043ff40c12SJohn Marino  *	5 MHz channel bandwidth.
20053ff40c12SJohn Marino  * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports
20063ff40c12SJohn Marino  *	10 MHz channel bandwidth.
20073ff40c12SJohn Marino  *
20083ff40c12SJohn Marino  * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode
20093ff40c12SJohn Marino  *	Notification Element based on association request when used with
2010*a1157835SDaniel Fojt  *	%NL80211_CMD_NEW_STATION or %NL80211_CMD_SET_STATION (only when
2011*a1157835SDaniel Fojt  *	%NL80211_FEATURE_FULL_AP_CLIENT_STATE is supported, or with TDLS);
2012*a1157835SDaniel Fojt  *	u8 attribute.
20133ff40c12SJohn Marino  *
20143ff40c12SJohn Marino  * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if
20153ff40c12SJohn Marino  *	%NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet)
20163ff40c12SJohn Marino  * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command
20173ff40c12SJohn Marino  * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this
20183ff40c12SJohn Marino  *	attribute is also used for vendor command feature advertisement
20193ff40c12SJohn Marino  * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy
20203ff40c12SJohn Marino  *	info, containing a nested array of possible events
20213ff40c12SJohn Marino  *
20223ff40c12SJohn Marino  * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This
20233ff40c12SJohn Marino  *	data is in the format defined for the payload of the QoS Map Set element
20243ff40c12SJohn Marino  *	in IEEE Std 802.11-2012, 8.4.2.97.
20253ff40c12SJohn Marino  *
2026*a1157835SDaniel Fojt  * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
2027*a1157835SDaniel Fojt  * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
2028*a1157835SDaniel Fojt  *
2029*a1157835SDaniel Fojt  * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
2030*a1157835SDaniel Fojt  *	associated stations are supported in AP mode (including P2P GO); u32.
2031*a1157835SDaniel Fojt  *	Since drivers may not have a fixed limit on the maximum number (e.g.,
2032*a1157835SDaniel Fojt  *	other concurrent operations may affect this), drivers are allowed to
2033*a1157835SDaniel Fojt  *	advertise values that cannot always be met. In such cases, an attempt
2034*a1157835SDaniel Fojt  *	to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
2035*a1157835SDaniel Fojt  *
2036*a1157835SDaniel Fojt  * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which
2037*a1157835SDaniel Fojt  *	should be updated when the frame is transmitted.
2038*a1157835SDaniel Fojt  * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum
2039*a1157835SDaniel Fojt  *	supported number of csa counters.
2040*a1157835SDaniel Fojt  *
2041*a1157835SDaniel Fojt  * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32.
2042*a1157835SDaniel Fojt  *	As specified in the &enum nl80211_tdls_peer_capability.
2043*a1157835SDaniel Fojt  *
2044*a1157835SDaniel Fojt  * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface
2045*a1157835SDaniel Fojt  *	creation then the new interface will be owned by the netlink socket
2046*a1157835SDaniel Fojt  *	that created it and will be destroyed when the socket is closed.
2047*a1157835SDaniel Fojt  *	If set during scheduled scan start then the new scan req will be
2048*a1157835SDaniel Fojt  *	owned by the netlink socket that created it and the scheduled scan will
2049*a1157835SDaniel Fojt  *	be stopped when the socket is closed.
2050*a1157835SDaniel Fojt  *	If set during configuration of regulatory indoor operation then the
2051*a1157835SDaniel Fojt  *	regulatory indoor configuration would be owned by the netlink socket
2052*a1157835SDaniel Fojt  *	that configured the indoor setting, and the indoor operation would be
2053*a1157835SDaniel Fojt  *	cleared when the socket is closed.
2054*a1157835SDaniel Fojt  *	If set during NAN interface creation, the interface will be destroyed
2055*a1157835SDaniel Fojt  *	if the socket is closed just like any other interface. Moreover, NAN
2056*a1157835SDaniel Fojt  *	notifications will be sent in unicast to that socket. Without this
2057*a1157835SDaniel Fojt  *	attribute, the notifications will be sent to the %NL80211_MCGRP_NAN
2058*a1157835SDaniel Fojt  *	multicast group.
2059*a1157835SDaniel Fojt  *	If set during %NL80211_CMD_ASSOCIATE or %NL80211_CMD_CONNECT the
2060*a1157835SDaniel Fojt  *	station will deauthenticate when the socket is closed.
2061*a1157835SDaniel Fojt  *	If set during %NL80211_CMD_JOIN_IBSS the IBSS will be automatically
2062*a1157835SDaniel Fojt  *	torn down when the socket is closed.
2063*a1157835SDaniel Fojt  *	If set during %NL80211_CMD_JOIN_MESH the mesh setup will be
2064*a1157835SDaniel Fojt  *	automatically torn down when the socket is closed.
2065*a1157835SDaniel Fojt  *	If set during %NL80211_CMD_START_AP the AP will be automatically
2066*a1157835SDaniel Fojt  *	disabled when the socket is closed.
2067*a1157835SDaniel Fojt  *
2068*a1157835SDaniel Fojt  * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is
2069*a1157835SDaniel Fojt  *	the TDLS link initiator.
2070*a1157835SDaniel Fojt  *
2071*a1157835SDaniel Fojt  * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection
2072*a1157835SDaniel Fojt  *	shall support Radio Resource Measurements (11k). This attribute can be
2073*a1157835SDaniel Fojt  *	used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests.
2074*a1157835SDaniel Fojt  *	User space applications are expected to use this flag only if the
2075*a1157835SDaniel Fojt  *	underlying device supports these minimal RRM features:
2076*a1157835SDaniel Fojt  *		%NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES,
2077*a1157835SDaniel Fojt  *		%NL80211_FEATURE_QUIET,
2078*a1157835SDaniel Fojt  *	Or, if global RRM is supported, see:
2079*a1157835SDaniel Fojt  *		%NL80211_EXT_FEATURE_RRM
2080*a1157835SDaniel Fojt  *	If this flag is used, driver must add the Power Capabilities IE to the
2081*a1157835SDaniel Fojt  *	association request. In addition, it must also set the RRM capability
2082*a1157835SDaniel Fojt  *	flag in the association request's Capability Info field.
2083*a1157835SDaniel Fojt  *
2084*a1157835SDaniel Fojt  * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout
2085*a1157835SDaniel Fojt  *	estimation algorithm (dynack). In order to activate dynack
2086*a1157835SDaniel Fojt  *	%NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower
2087*a1157835SDaniel Fojt  *	drivers to indicate dynack capability. Dynack is automatically disabled
2088*a1157835SDaniel Fojt  *	setting valid value for coverage class.
2089*a1157835SDaniel Fojt  *
2090*a1157835SDaniel Fojt  * @NL80211_ATTR_TSID: a TSID value (u8 attribute)
2091*a1157835SDaniel Fojt  * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute)
2092*a1157835SDaniel Fojt  * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds
2093*a1157835SDaniel Fojt  *	(per second) (u16 attribute)
2094*a1157835SDaniel Fojt  *
2095*a1157835SDaniel Fojt  * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see
2096*a1157835SDaniel Fojt  *	&enum nl80211_smps_mode.
2097*a1157835SDaniel Fojt  *
2098*a1157835SDaniel Fojt  * @NL80211_ATTR_OPER_CLASS: operating class
2099*a1157835SDaniel Fojt  *
2100*a1157835SDaniel Fojt  * @NL80211_ATTR_MAC_MASK: MAC address mask
2101*a1157835SDaniel Fojt  *
2102*a1157835SDaniel Fojt  * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device
2103*a1157835SDaniel Fojt  *	is self-managing its regulatory information and any regulatory domain
2104*a1157835SDaniel Fojt  *	obtained from it is coming from the device's wiphy and not the global
2105*a1157835SDaniel Fojt  *	cfg80211 regdomain.
2106*a1157835SDaniel Fojt  *
2107*a1157835SDaniel Fojt  * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte
2108*a1157835SDaniel Fojt  *	array. The feature flags are identified by their bit index (see &enum
2109*a1157835SDaniel Fojt  *	nl80211_ext_feature_index). The bit index is ordered starting at the
2110*a1157835SDaniel Fojt  *	least-significant bit of the first byte in the array, ie. bit index 0
2111*a1157835SDaniel Fojt  *	is located at bit 0 of byte 0. bit index 25 would be located at bit 1
2112*a1157835SDaniel Fojt  *	of byte 3 (u8 array).
2113*a1157835SDaniel Fojt  *
2114*a1157835SDaniel Fojt  * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be
2115*a1157835SDaniel Fojt  *	returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY
2116*a1157835SDaniel Fojt  *	may return a survey entry without a channel indicating global radio
2117*a1157835SDaniel Fojt  *	statistics (only some values are valid and make sense.)
2118*a1157835SDaniel Fojt  *	For devices that don't return such an entry even then, the information
2119*a1157835SDaniel Fojt  *	should be contained in the result as the sum of the respective counters
2120*a1157835SDaniel Fojt  *	over all channels.
2121*a1157835SDaniel Fojt  *
2122*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before the first cycle of a
2123*a1157835SDaniel Fojt  *	scheduled scan is started.  Or the delay before a WoWLAN
2124*a1157835SDaniel Fojt  *	net-detect scan is started, counting from the moment the
2125*a1157835SDaniel Fojt  *	system is suspended.  This value is a u32, in seconds.
2126*a1157835SDaniel Fojt 
2127*a1157835SDaniel Fojt  * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device
2128*a1157835SDaniel Fojt  *      is operating in an indoor environment.
2129*a1157835SDaniel Fojt  *
2130*a1157835SDaniel Fojt  * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for
2131*a1157835SDaniel Fojt  *	scheduled scan supported by the device (u32), a wiphy attribute.
2132*a1157835SDaniel Fojt  * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for
2133*a1157835SDaniel Fojt  *	a scan plan (u32), a wiphy attribute.
2134*a1157835SDaniel Fojt  * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in
2135*a1157835SDaniel Fojt  *	a scan plan (u32), a wiphy attribute.
2136*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan.
2137*a1157835SDaniel Fojt  *	Each scan plan defines the number of scan iterations and the interval
2138*a1157835SDaniel Fojt  *	between scans. The last scan plan will always run infinitely,
2139*a1157835SDaniel Fojt  *	thus it must not specify the number of iterations, only the interval
2140*a1157835SDaniel Fojt  *	between scans. The scan plans are executed sequentially.
2141*a1157835SDaniel Fojt  *	Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan.
2142*a1157835SDaniel Fojt  * @NL80211_ATTR_PBSS: flag attribute. If set it means operate
2143*a1157835SDaniel Fojt  *	in a PBSS. Specified in %NL80211_CMD_CONNECT to request
2144*a1157835SDaniel Fojt  *	connecting to a PCP, and in %NL80211_CMD_START_AP to start
2145*a1157835SDaniel Fojt  *	a PCP instead of AP. Relevant for DMG networks only.
2146*a1157835SDaniel Fojt  * @NL80211_ATTR_BSS_SELECT: nested attribute for driver supporting the
2147*a1157835SDaniel Fojt  *	BSS selection feature. When used with %NL80211_CMD_GET_WIPHY it contains
2148*a1157835SDaniel Fojt  *	attributes according &enum nl80211_bss_select_attr to indicate what
2149*a1157835SDaniel Fojt  *	BSS selection behaviours are supported. When used with %NL80211_CMD_CONNECT
2150*a1157835SDaniel Fojt  *	it contains the behaviour-specific attribute containing the parameters for
2151*a1157835SDaniel Fojt  *	BSS selection to be done by driver and/or firmware.
2152*a1157835SDaniel Fojt  *
2153*a1157835SDaniel Fojt  * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported
2154*a1157835SDaniel Fojt  *	or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status
2155*a1157835SDaniel Fojt  *
2156*a1157835SDaniel Fojt  * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment
2157*a1157835SDaniel Fojt  *
2158*a1157835SDaniel Fojt  * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes:
2159*a1157835SDaniel Fojt  *	%NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA,
2160*a1157835SDaniel Fojt  *	%NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities per
2161*a1157835SDaniel Fojt  *	interface type.
2162*a1157835SDaniel Fojt  *
2163*a1157835SDaniel Fojt  * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO
2164*a1157835SDaniel Fojt  *	groupID for monitor mode.
2165*a1157835SDaniel Fojt  *	The first 8 bytes are a mask that defines the membership in each
2166*a1157835SDaniel Fojt  *	group (there are 64 groups, group 0 and 63 are reserved),
2167*a1157835SDaniel Fojt  *	each bit represents a group and set to 1 for being a member in
2168*a1157835SDaniel Fojt  *	that group and 0 for not being a member.
2169*a1157835SDaniel Fojt  *	The remaining 16 bytes define the position in each group: 2 bits for
2170*a1157835SDaniel Fojt  *	each group.
2171*a1157835SDaniel Fojt  *	(smaller group numbers represented on most significant bits and bigger
2172*a1157835SDaniel Fojt  *	group numbers on least significant bits.)
2173*a1157835SDaniel Fojt  *	This attribute is used only if all interfaces are in monitor mode.
2174*a1157835SDaniel Fojt  *	Set this attribute in order to monitor packets using the given MU-MIMO
2175*a1157835SDaniel Fojt  *	groupID data.
2176*a1157835SDaniel Fojt  *	to turn off that feature set all the bits of the groupID to zero.
2177*a1157835SDaniel Fojt  * @NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR: mac address for the sniffer to follow
2178*a1157835SDaniel Fojt  *	when using MU-MIMO air sniffer.
2179*a1157835SDaniel Fojt  *	to turn that feature off set an invalid mac address
2180*a1157835SDaniel Fojt  *	(e.g. FF:FF:FF:FF:FF:FF)
2181*a1157835SDaniel Fojt  *
2182*a1157835SDaniel Fojt  * @NL80211_ATTR_SCAN_START_TIME_TSF: The time at which the scan was actually
2183*a1157835SDaniel Fojt  *	started (u64). The time is the TSF of the BSS the interface that
2184*a1157835SDaniel Fojt  *	requested the scan is connected to (if available, otherwise this
2185*a1157835SDaniel Fojt  *	attribute must not be included).
2186*a1157835SDaniel Fojt  * @NL80211_ATTR_SCAN_START_TIME_TSF_BSSID: The BSS according to which
2187*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCAN_START_TIME_TSF is set.
2188*a1157835SDaniel Fojt  * @NL80211_ATTR_MEASUREMENT_DURATION: measurement duration in TUs (u16). If
2189*a1157835SDaniel Fojt  *	%NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY is not set, this is the
2190*a1157835SDaniel Fojt  *	maximum measurement duration allowed. This attribute is used with
2191*a1157835SDaniel Fojt  *	measurement requests. It can also be used with %NL80211_CMD_TRIGGER_SCAN
2192*a1157835SDaniel Fojt  *	if the scan is used for beacon report radio measurement.
2193*a1157835SDaniel Fojt  * @NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY: flag attribute that indicates
2194*a1157835SDaniel Fojt  *	that the duration specified with %NL80211_ATTR_MEASUREMENT_DURATION is
2195*a1157835SDaniel Fojt  *	mandatory. If this flag is not set, the duration is the maximum duration
2196*a1157835SDaniel Fojt  *	and the actual measurement duration may be shorter.
2197*a1157835SDaniel Fojt  *
2198*a1157835SDaniel Fojt  * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer (u16). This is
2199*a1157835SDaniel Fojt  *	used to pull the stored data for mesh peer in power save state.
2200*a1157835SDaniel Fojt  *
2201*a1157835SDaniel Fojt  * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by
2202*a1157835SDaniel Fojt  *	%NL80211_CMD_START_NAN and optionally with
2203*a1157835SDaniel Fojt  *	%NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0.
2204*a1157835SDaniel Fojt  *	Also, values 1 and 255 are reserved for certification purposes and
2205*a1157835SDaniel Fojt  *	should not be used during a normal device operation.
2206*a1157835SDaniel Fojt  * @NL80211_ATTR_BANDS: operating bands configuration.  This is a u32
2207*a1157835SDaniel Fojt  *	bitmask of BIT(NL80211_BAND_*) as described in %enum
2208*a1157835SDaniel Fojt  *	nl80211_band.  For instance, for NL80211_BAND_2GHZ, bit 0
2209*a1157835SDaniel Fojt  *	would be set.  This attribute is used with
2210*a1157835SDaniel Fojt  *	%NL80211_CMD_START_NAN and %NL80211_CMD_CHANGE_NAN_CONFIG, and
2211*a1157835SDaniel Fojt  *	it is optional.  If no bands are set, it means don't-care and
2212*a1157835SDaniel Fojt  *	the device will decide what to use.
2213*a1157835SDaniel Fojt  * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See
2214*a1157835SDaniel Fojt  *	&enum nl80211_nan_func_attributes for description of this nested
2215*a1157835SDaniel Fojt  *	attribute.
2216*a1157835SDaniel Fojt  * @NL80211_ATTR_NAN_MATCH: used to report a match. This is a nested attribute.
2217*a1157835SDaniel Fojt  *	See &enum nl80211_nan_match_attributes.
2218*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_KEK: KEK for FILS (Re)Association Request/Response frame
2219*a1157835SDaniel Fojt  *	protection.
2220*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_NONCES: Nonces (part of AAD) for FILS (Re)Association
2221*a1157835SDaniel Fojt  *	Request/Response frame protection. This attribute contains the 16 octet
2222*a1157835SDaniel Fojt  *	STA Nonce followed by 16 octets of AP Nonce.
2223*a1157835SDaniel Fojt  *
2224*a1157835SDaniel Fojt  * @NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED: Indicates whether or not multicast
2225*a1157835SDaniel Fojt  *	packets should be send out as unicast to all stations (flag attribute).
2226*a1157835SDaniel Fojt  *
2227*a1157835SDaniel Fojt  * @NL80211_ATTR_BSSID: The BSSID of the AP. Note that %NL80211_ATTR_MAC is also
2228*a1157835SDaniel Fojt  *	used in various commands/events for specifying the BSSID.
2229*a1157835SDaniel Fojt  *
2230*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI: Relative RSSI threshold by which
2231*a1157835SDaniel Fojt  *	other BSSs has to be better or slightly worse than the current
2232*a1157835SDaniel Fojt  *	connected BSS so that they get reported to user space.
2233*a1157835SDaniel Fojt  *	This will give an opportunity to userspace to consider connecting to
2234*a1157835SDaniel Fojt  *	other matching BSSs which have better or slightly worse RSSI than
2235*a1157835SDaniel Fojt  *	the current connected BSS by using an offloaded operation to avoid
2236*a1157835SDaniel Fojt  *	unnecessary wakeups.
2237*a1157835SDaniel Fojt  *
2238*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST: When present the RSSI level for BSSs in
2239*a1157835SDaniel Fojt  *	the specified band is to be adjusted before doing
2240*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI based comparison to figure out
2241*a1157835SDaniel Fojt  *	better BSSs. The attribute value is a packed structure
2242*a1157835SDaniel Fojt  *	value as specified by &struct nl80211_bss_select_rssi_adjust.
2243*a1157835SDaniel Fojt  *
2244*a1157835SDaniel Fojt  * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out.
2245*a1157835SDaniel Fojt  *	u32 attribute with an &enum nl80211_timeout_reason value. This is used,
2246*a1157835SDaniel Fojt  *	e.g., with %NL80211_CMD_CONNECT event.
2247*a1157835SDaniel Fojt  *
2248*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_ERP_USERNAME: EAP Re-authentication Protocol (ERP)
2249*a1157835SDaniel Fojt  *	username part of NAI used to refer keys rRK and rIK. This is used with
2250*a1157835SDaniel Fojt  *	%NL80211_CMD_CONNECT.
2251*a1157835SDaniel Fojt  *
2252*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_ERP_REALM: EAP Re-authentication Protocol (ERP) realm part
2253*a1157835SDaniel Fojt  *	of NAI specifying the domain name of the ER server. This is used with
2254*a1157835SDaniel Fojt  *	%NL80211_CMD_CONNECT.
2255*a1157835SDaniel Fojt  *
2256*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM: Unsigned 16-bit ERP next sequence number
2257*a1157835SDaniel Fojt  *	to use in ERP messages. This is used in generating the FILS wrapped data
2258*a1157835SDaniel Fojt  *	for FILS authentication and is used with %NL80211_CMD_CONNECT.
2259*a1157835SDaniel Fojt  *
2260*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_ERP_RRK: ERP re-authentication Root Key (rRK) for the
2261*a1157835SDaniel Fojt  *	NAI specified by %NL80211_ATTR_FILS_ERP_USERNAME and
2262*a1157835SDaniel Fojt  *	%NL80211_ATTR_FILS_ERP_REALM. This is used for generating rIK and rMSK
2263*a1157835SDaniel Fojt  *	from successful FILS authentication and is used with
2264*a1157835SDaniel Fojt  *	%NL80211_CMD_CONNECT.
2265*a1157835SDaniel Fojt  *
2266*a1157835SDaniel Fojt  * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP
2267*a1157835SDaniel Fojt  *	identifying the scope of PMKSAs. This is used with
2268*a1157835SDaniel Fojt  *	@NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA.
2269*a1157835SDaniel Fojt  *
2270*a1157835SDaniel Fojt  * @NL80211_ATTR_PMK: attribute for passing PMK key material. Used with
2271*a1157835SDaniel Fojt  *	%NL80211_CMD_SET_PMKSA for the PMKSA identified by %NL80211_ATTR_PMKID.
2272*a1157835SDaniel Fojt  *	For %NL80211_CMD_CONNECT it is used to provide PSK for offloading 4-way
2273*a1157835SDaniel Fojt  *	handshake for WPA/WPA2-PSK networks. For 802.1X authentication it is
2274*a1157835SDaniel Fojt  *	used with %NL80211_CMD_SET_PMK. For offloaded FT support this attribute
2275*a1157835SDaniel Fojt  *	specifies the PMK-R0 if NL80211_ATTR_PMKR0_NAME is included as well.
2276*a1157835SDaniel Fojt  *
2277*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_MULTI: flag attribute which user-space shall use to
2278*a1157835SDaniel Fojt  *	indicate that it supports multiple active scheduled scan requests.
2279*a1157835SDaniel Fojt  * @NL80211_ATTR_SCHED_SCAN_MAX_REQS: indicates maximum number of scheduled
2280*a1157835SDaniel Fojt  *	scan request that may be active for the device (u32).
2281*a1157835SDaniel Fojt  *
2282*a1157835SDaniel Fojt  * @NL80211_ATTR_WANT_1X_4WAY_HS: flag attribute which user-space can include
2283*a1157835SDaniel Fojt  *	in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it
2284*a1157835SDaniel Fojt  *	wants to use the supported offload of the 4-way handshake.
2285*a1157835SDaniel Fojt  * @NL80211_ATTR_PMKR0_NAME: PMK-R0 Name for offloaded FT.
2286*a1157835SDaniel Fojt  * @NL80211_ATTR_PORT_AUTHORIZED: (reserved)
2287*a1157835SDaniel Fojt  *
2288*a1157835SDaniel Fojt  * @NL80211_ATTR_EXTERNAL_AUTH_ACTION: Identify the requested external
2289*a1157835SDaniel Fojt  *     authentication operation (u32 attribute with an
2290*a1157835SDaniel Fojt  *     &enum nl80211_external_auth_action value). This is used with the
2291*a1157835SDaniel Fojt  *     %NL80211_CMD_EXTERNAL_AUTH request event.
2292*a1157835SDaniel Fojt  * @NL80211_ATTR_EXTERNAL_AUTH_SUPPORT: Flag attribute indicating that the user
2293*a1157835SDaniel Fojt  *	space supports external authentication. This attribute shall be used
2294*a1157835SDaniel Fojt  *	with %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP request. The driver
2295*a1157835SDaniel Fojt  *	may offload authentication processing to user space if this capability
2296*a1157835SDaniel Fojt  *	is indicated in the respective requests from the user space.
2297*a1157835SDaniel Fojt  *
2298*a1157835SDaniel Fojt  * @NL80211_ATTR_NSS: Station's New/updated  RX_NSS value notified using this
2299*a1157835SDaniel Fojt  *	u8 attribute. This is used with %NL80211_CMD_STA_OPMODE_CHANGED.
2300*a1157835SDaniel Fojt  *
2301*a1157835SDaniel Fojt  * @NL80211_ATTR_TXQ_STATS: TXQ statistics (nested attribute, see &enum
2302*a1157835SDaniel Fojt  *      nl80211_txq_stats)
2303*a1157835SDaniel Fojt  * @NL80211_ATTR_TXQ_LIMIT: Total packet limit for the TXQ queues for this phy.
2304*a1157835SDaniel Fojt  *      The smaller of this and the memory limit is enforced.
2305*a1157835SDaniel Fojt  * @NL80211_ATTR_TXQ_MEMORY_LIMIT: Total memory memory limit (in bytes) for the
2306*a1157835SDaniel Fojt  *      TXQ queues for this phy. The smaller of this and the packet limit is
2307*a1157835SDaniel Fojt  *      enforced.
2308*a1157835SDaniel Fojt  * @NL80211_ATTR_TXQ_QUANTUM: TXQ scheduler quantum (bytes). Number of bytes
2309*a1157835SDaniel Fojt  *      a flow is assigned on each round of the DRR scheduler.
2310*a1157835SDaniel Fojt  * @NL80211_ATTR_HE_CAPABILITY: HE Capability information element (from
2311*a1157835SDaniel Fojt  *	association request when used with NL80211_CMD_NEW_STATION). Can be set
2312*a1157835SDaniel Fojt  *	only if %NL80211_STA_FLAG_WME is set.
2313*a1157835SDaniel Fojt  *
2314*a1157835SDaniel Fojt  * @NL80211_ATTR_FTM_RESPONDER: nested attribute which user-space can include
2315*a1157835SDaniel Fojt  *	in %NL80211_CMD_START_AP or %NL80211_CMD_SET_BEACON for fine timing
2316*a1157835SDaniel Fojt  *	measurement (FTM) responder functionality and containing parameters as
2317*a1157835SDaniel Fojt  *	possible, see &enum nl80211_ftm_responder_attr
2318*a1157835SDaniel Fojt  *
2319*a1157835SDaniel Fojt  * @NL80211_ATTR_FTM_RESPONDER_STATS: Nested attribute with FTM responder
2320*a1157835SDaniel Fojt  *	statistics, see &enum nl80211_ftm_responder_stats.
2321*a1157835SDaniel Fojt  *
2322*a1157835SDaniel Fojt  * @NL80211_ATTR_TIMEOUT: Timeout for the given operation in milliseconds (u32),
2323*a1157835SDaniel Fojt  *	if the attribute is not given no timeout is requested. Note that 0 is an
2324*a1157835SDaniel Fojt  *	invalid value.
2325*a1157835SDaniel Fojt  *
2326*a1157835SDaniel Fojt  * @NL80211_ATTR_PEER_MEASUREMENTS: peer measurements request (and result)
2327*a1157835SDaniel Fojt  *	data, uses nested attributes specified in
2328*a1157835SDaniel Fojt  *	&enum nl80211_peer_measurement_attrs.
2329*a1157835SDaniel Fojt  *	This is also used for capability advertisement in the wiphy information,
2330*a1157835SDaniel Fojt  *	with the appropriate sub-attributes.
2331*a1157835SDaniel Fojt  *
2332*a1157835SDaniel Fojt  * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime
2333*a1157835SDaniel Fojt  *	scheduler.
2334*a1157835SDaniel Fojt  *
2335*a1157835SDaniel Fojt  * @NL80211_ATTR_STA_TX_POWER_SETTING: Transmit power setting type (u8) for
2336*a1157835SDaniel Fojt  *	station associated with the AP. See &enum nl80211_tx_power_setting for
2337*a1157835SDaniel Fojt  *	possible values.
2338*a1157835SDaniel Fojt  * @NL80211_ATTR_STA_TX_POWER: Transmit power level (s16) in dBm units. This
2339*a1157835SDaniel Fojt  *	allows to set Tx power for a station. If this attribute is not included,
2340*a1157835SDaniel Fojt  *	the default per-interface tx power setting will be overriding. Driver
2341*a1157835SDaniel Fojt  *	should be picking up the lowest tx power, either tx power per-interface
2342*a1157835SDaniel Fojt  *	or per-station.
2343*a1157835SDaniel Fojt  *
2344*a1157835SDaniel Fojt  * @NUM_NL80211_ATTR: total number of nl80211_attrs available
23453ff40c12SJohn Marino  * @NL80211_ATTR_MAX: highest attribute number currently defined
23463ff40c12SJohn Marino  * @__NL80211_ATTR_AFTER_LAST: internal use
23473ff40c12SJohn Marino  */
23483ff40c12SJohn Marino enum nl80211_attrs {
23493ff40c12SJohn Marino /* don't change the order or add anything between, this is ABI! */
23503ff40c12SJohn Marino 	NL80211_ATTR_UNSPEC,
23513ff40c12SJohn Marino 
23523ff40c12SJohn Marino 	NL80211_ATTR_WIPHY,
23533ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_NAME,
23543ff40c12SJohn Marino 
23553ff40c12SJohn Marino 	NL80211_ATTR_IFINDEX,
23563ff40c12SJohn Marino 	NL80211_ATTR_IFNAME,
23573ff40c12SJohn Marino 	NL80211_ATTR_IFTYPE,
23583ff40c12SJohn Marino 
23593ff40c12SJohn Marino 	NL80211_ATTR_MAC,
23603ff40c12SJohn Marino 
23613ff40c12SJohn Marino 	NL80211_ATTR_KEY_DATA,
23623ff40c12SJohn Marino 	NL80211_ATTR_KEY_IDX,
23633ff40c12SJohn Marino 	NL80211_ATTR_KEY_CIPHER,
23643ff40c12SJohn Marino 	NL80211_ATTR_KEY_SEQ,
23653ff40c12SJohn Marino 	NL80211_ATTR_KEY_DEFAULT,
23663ff40c12SJohn Marino 
23673ff40c12SJohn Marino 	NL80211_ATTR_BEACON_INTERVAL,
23683ff40c12SJohn Marino 	NL80211_ATTR_DTIM_PERIOD,
23693ff40c12SJohn Marino 	NL80211_ATTR_BEACON_HEAD,
23703ff40c12SJohn Marino 	NL80211_ATTR_BEACON_TAIL,
23713ff40c12SJohn Marino 
23723ff40c12SJohn Marino 	NL80211_ATTR_STA_AID,
23733ff40c12SJohn Marino 	NL80211_ATTR_STA_FLAGS,
23743ff40c12SJohn Marino 	NL80211_ATTR_STA_LISTEN_INTERVAL,
23753ff40c12SJohn Marino 	NL80211_ATTR_STA_SUPPORTED_RATES,
23763ff40c12SJohn Marino 	NL80211_ATTR_STA_VLAN,
23773ff40c12SJohn Marino 	NL80211_ATTR_STA_INFO,
23783ff40c12SJohn Marino 
23793ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_BANDS,
23803ff40c12SJohn Marino 
23813ff40c12SJohn Marino 	NL80211_ATTR_MNTR_FLAGS,
23823ff40c12SJohn Marino 
23833ff40c12SJohn Marino 	NL80211_ATTR_MESH_ID,
23843ff40c12SJohn Marino 	NL80211_ATTR_STA_PLINK_ACTION,
23853ff40c12SJohn Marino 	NL80211_ATTR_MPATH_NEXT_HOP,
23863ff40c12SJohn Marino 	NL80211_ATTR_MPATH_INFO,
23873ff40c12SJohn Marino 
23883ff40c12SJohn Marino 	NL80211_ATTR_BSS_CTS_PROT,
23893ff40c12SJohn Marino 	NL80211_ATTR_BSS_SHORT_PREAMBLE,
23903ff40c12SJohn Marino 	NL80211_ATTR_BSS_SHORT_SLOT_TIME,
23913ff40c12SJohn Marino 
23923ff40c12SJohn Marino 	NL80211_ATTR_HT_CAPABILITY,
23933ff40c12SJohn Marino 
23943ff40c12SJohn Marino 	NL80211_ATTR_SUPPORTED_IFTYPES,
23953ff40c12SJohn Marino 
23963ff40c12SJohn Marino 	NL80211_ATTR_REG_ALPHA2,
23973ff40c12SJohn Marino 	NL80211_ATTR_REG_RULES,
23983ff40c12SJohn Marino 
23993ff40c12SJohn Marino 	NL80211_ATTR_MESH_CONFIG,
24003ff40c12SJohn Marino 
24013ff40c12SJohn Marino 	NL80211_ATTR_BSS_BASIC_RATES,
24023ff40c12SJohn Marino 
24033ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_TXQ_PARAMS,
24043ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_FREQ,
24053ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_CHANNEL_TYPE,
24063ff40c12SJohn Marino 
24073ff40c12SJohn Marino 	NL80211_ATTR_KEY_DEFAULT_MGMT,
24083ff40c12SJohn Marino 
24093ff40c12SJohn Marino 	NL80211_ATTR_MGMT_SUBTYPE,
24103ff40c12SJohn Marino 	NL80211_ATTR_IE,
24113ff40c12SJohn Marino 
24123ff40c12SJohn Marino 	NL80211_ATTR_MAX_NUM_SCAN_SSIDS,
24133ff40c12SJohn Marino 
24143ff40c12SJohn Marino 	NL80211_ATTR_SCAN_FREQUENCIES,
24153ff40c12SJohn Marino 	NL80211_ATTR_SCAN_SSIDS,
24163ff40c12SJohn Marino 	NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */
24173ff40c12SJohn Marino 	NL80211_ATTR_BSS,
24183ff40c12SJohn Marino 
24193ff40c12SJohn Marino 	NL80211_ATTR_REG_INITIATOR,
24203ff40c12SJohn Marino 	NL80211_ATTR_REG_TYPE,
24213ff40c12SJohn Marino 
24223ff40c12SJohn Marino 	NL80211_ATTR_SUPPORTED_COMMANDS,
24233ff40c12SJohn Marino 
24243ff40c12SJohn Marino 	NL80211_ATTR_FRAME,
24253ff40c12SJohn Marino 	NL80211_ATTR_SSID,
24263ff40c12SJohn Marino 	NL80211_ATTR_AUTH_TYPE,
24273ff40c12SJohn Marino 	NL80211_ATTR_REASON_CODE,
24283ff40c12SJohn Marino 
24293ff40c12SJohn Marino 	NL80211_ATTR_KEY_TYPE,
24303ff40c12SJohn Marino 
24313ff40c12SJohn Marino 	NL80211_ATTR_MAX_SCAN_IE_LEN,
24323ff40c12SJohn Marino 	NL80211_ATTR_CIPHER_SUITES,
24333ff40c12SJohn Marino 
24343ff40c12SJohn Marino 	NL80211_ATTR_FREQ_BEFORE,
24353ff40c12SJohn Marino 	NL80211_ATTR_FREQ_AFTER,
24363ff40c12SJohn Marino 
24373ff40c12SJohn Marino 	NL80211_ATTR_FREQ_FIXED,
24383ff40c12SJohn Marino 
24393ff40c12SJohn Marino 
24403ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_RETRY_SHORT,
24413ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_RETRY_LONG,
24423ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
24433ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_RTS_THRESHOLD,
24443ff40c12SJohn Marino 
24453ff40c12SJohn Marino 	NL80211_ATTR_TIMED_OUT,
24463ff40c12SJohn Marino 
24473ff40c12SJohn Marino 	NL80211_ATTR_USE_MFP,
24483ff40c12SJohn Marino 
24493ff40c12SJohn Marino 	NL80211_ATTR_STA_FLAGS2,
24503ff40c12SJohn Marino 
24513ff40c12SJohn Marino 	NL80211_ATTR_CONTROL_PORT,
24523ff40c12SJohn Marino 
24533ff40c12SJohn Marino 	NL80211_ATTR_TESTDATA,
24543ff40c12SJohn Marino 
24553ff40c12SJohn Marino 	NL80211_ATTR_PRIVACY,
24563ff40c12SJohn Marino 
24573ff40c12SJohn Marino 	NL80211_ATTR_DISCONNECTED_BY_AP,
24583ff40c12SJohn Marino 	NL80211_ATTR_STATUS_CODE,
24593ff40c12SJohn Marino 
24603ff40c12SJohn Marino 	NL80211_ATTR_CIPHER_SUITES_PAIRWISE,
24613ff40c12SJohn Marino 	NL80211_ATTR_CIPHER_SUITE_GROUP,
24623ff40c12SJohn Marino 	NL80211_ATTR_WPA_VERSIONS,
24633ff40c12SJohn Marino 	NL80211_ATTR_AKM_SUITES,
24643ff40c12SJohn Marino 
24653ff40c12SJohn Marino 	NL80211_ATTR_REQ_IE,
24663ff40c12SJohn Marino 	NL80211_ATTR_RESP_IE,
24673ff40c12SJohn Marino 
24683ff40c12SJohn Marino 	NL80211_ATTR_PREV_BSSID,
24693ff40c12SJohn Marino 
24703ff40c12SJohn Marino 	NL80211_ATTR_KEY,
24713ff40c12SJohn Marino 	NL80211_ATTR_KEYS,
24723ff40c12SJohn Marino 
24733ff40c12SJohn Marino 	NL80211_ATTR_PID,
24743ff40c12SJohn Marino 
24753ff40c12SJohn Marino 	NL80211_ATTR_4ADDR,
24763ff40c12SJohn Marino 
24773ff40c12SJohn Marino 	NL80211_ATTR_SURVEY_INFO,
24783ff40c12SJohn Marino 
24793ff40c12SJohn Marino 	NL80211_ATTR_PMKID,
24803ff40c12SJohn Marino 	NL80211_ATTR_MAX_NUM_PMKIDS,
24813ff40c12SJohn Marino 
24823ff40c12SJohn Marino 	NL80211_ATTR_DURATION,
24833ff40c12SJohn Marino 
24843ff40c12SJohn Marino 	NL80211_ATTR_COOKIE,
24853ff40c12SJohn Marino 
24863ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_COVERAGE_CLASS,
24873ff40c12SJohn Marino 
24883ff40c12SJohn Marino 	NL80211_ATTR_TX_RATES,
24893ff40c12SJohn Marino 
24903ff40c12SJohn Marino 	NL80211_ATTR_FRAME_MATCH,
24913ff40c12SJohn Marino 
24923ff40c12SJohn Marino 	NL80211_ATTR_ACK,
24933ff40c12SJohn Marino 
24943ff40c12SJohn Marino 	NL80211_ATTR_PS_STATE,
24953ff40c12SJohn Marino 
24963ff40c12SJohn Marino 	NL80211_ATTR_CQM,
24973ff40c12SJohn Marino 
24983ff40c12SJohn Marino 	NL80211_ATTR_LOCAL_STATE_CHANGE,
24993ff40c12SJohn Marino 
25003ff40c12SJohn Marino 	NL80211_ATTR_AP_ISOLATE,
25013ff40c12SJohn Marino 
25023ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_TX_POWER_SETTING,
25033ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_TX_POWER_LEVEL,
25043ff40c12SJohn Marino 
25053ff40c12SJohn Marino 	NL80211_ATTR_TX_FRAME_TYPES,
25063ff40c12SJohn Marino 	NL80211_ATTR_RX_FRAME_TYPES,
25073ff40c12SJohn Marino 	NL80211_ATTR_FRAME_TYPE,
25083ff40c12SJohn Marino 
25093ff40c12SJohn Marino 	NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
25103ff40c12SJohn Marino 	NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
25113ff40c12SJohn Marino 
25123ff40c12SJohn Marino 	NL80211_ATTR_SUPPORT_IBSS_RSN,
25133ff40c12SJohn Marino 
25143ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_ANTENNA_TX,
25153ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_ANTENNA_RX,
25163ff40c12SJohn Marino 
25173ff40c12SJohn Marino 	NL80211_ATTR_MCAST_RATE,
25183ff40c12SJohn Marino 
25193ff40c12SJohn Marino 	NL80211_ATTR_OFFCHANNEL_TX_OK,
25203ff40c12SJohn Marino 
25213ff40c12SJohn Marino 	NL80211_ATTR_BSS_HT_OPMODE,
25223ff40c12SJohn Marino 
25233ff40c12SJohn Marino 	NL80211_ATTR_KEY_DEFAULT_TYPES,
25243ff40c12SJohn Marino 
25253ff40c12SJohn Marino 	NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION,
25263ff40c12SJohn Marino 
25273ff40c12SJohn Marino 	NL80211_ATTR_MESH_SETUP,
25283ff40c12SJohn Marino 
25293ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX,
25303ff40c12SJohn Marino 	NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX,
25313ff40c12SJohn Marino 
25323ff40c12SJohn Marino 	NL80211_ATTR_SUPPORT_MESH_AUTH,
25333ff40c12SJohn Marino 	NL80211_ATTR_STA_PLINK_STATE,
25343ff40c12SJohn Marino 
25353ff40c12SJohn Marino 	NL80211_ATTR_WOWLAN_TRIGGERS,
25363ff40c12SJohn Marino 	NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED,
25373ff40c12SJohn Marino 
25383ff40c12SJohn Marino 	NL80211_ATTR_SCHED_SCAN_INTERVAL,
25393ff40c12SJohn Marino 
25403ff40c12SJohn Marino 	NL80211_ATTR_INTERFACE_COMBINATIONS,
25413ff40c12SJohn Marino 	NL80211_ATTR_SOFTWARE_IFTYPES,
25423ff40c12SJohn Marino 
25433ff40c12SJohn Marino 	NL80211_ATTR_REKEY_DATA,
25443ff40c12SJohn Marino 
25453ff40c12SJohn Marino 	NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS,
25463ff40c12SJohn Marino 	NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN,
25473ff40c12SJohn Marino 
25483ff40c12SJohn Marino 	NL80211_ATTR_SCAN_SUPP_RATES,
25493ff40c12SJohn Marino 
25503ff40c12SJohn Marino 	NL80211_ATTR_HIDDEN_SSID,
25513ff40c12SJohn Marino 
25523ff40c12SJohn Marino 	NL80211_ATTR_IE_PROBE_RESP,
25533ff40c12SJohn Marino 	NL80211_ATTR_IE_ASSOC_RESP,
25543ff40c12SJohn Marino 
25553ff40c12SJohn Marino 	NL80211_ATTR_STA_WME,
25563ff40c12SJohn Marino 	NL80211_ATTR_SUPPORT_AP_UAPSD,
25573ff40c12SJohn Marino 
25583ff40c12SJohn Marino 	NL80211_ATTR_ROAM_SUPPORT,
25593ff40c12SJohn Marino 
25603ff40c12SJohn Marino 	NL80211_ATTR_SCHED_SCAN_MATCH,
25613ff40c12SJohn Marino 	NL80211_ATTR_MAX_MATCH_SETS,
25623ff40c12SJohn Marino 
25633ff40c12SJohn Marino 	NL80211_ATTR_PMKSA_CANDIDATE,
25643ff40c12SJohn Marino 
25653ff40c12SJohn Marino 	NL80211_ATTR_TX_NO_CCK_RATE,
25663ff40c12SJohn Marino 
25673ff40c12SJohn Marino 	NL80211_ATTR_TDLS_ACTION,
25683ff40c12SJohn Marino 	NL80211_ATTR_TDLS_DIALOG_TOKEN,
25693ff40c12SJohn Marino 	NL80211_ATTR_TDLS_OPERATION,
25703ff40c12SJohn Marino 	NL80211_ATTR_TDLS_SUPPORT,
25713ff40c12SJohn Marino 	NL80211_ATTR_TDLS_EXTERNAL_SETUP,
25723ff40c12SJohn Marino 
25733ff40c12SJohn Marino 	NL80211_ATTR_DEVICE_AP_SME,
25743ff40c12SJohn Marino 
25753ff40c12SJohn Marino 	NL80211_ATTR_DONT_WAIT_FOR_ACK,
25763ff40c12SJohn Marino 
25773ff40c12SJohn Marino 	NL80211_ATTR_FEATURE_FLAGS,
25783ff40c12SJohn Marino 
25793ff40c12SJohn Marino 	NL80211_ATTR_PROBE_RESP_OFFLOAD,
25803ff40c12SJohn Marino 
25813ff40c12SJohn Marino 	NL80211_ATTR_PROBE_RESP,
25823ff40c12SJohn Marino 
25833ff40c12SJohn Marino 	NL80211_ATTR_DFS_REGION,
25843ff40c12SJohn Marino 
25853ff40c12SJohn Marino 	NL80211_ATTR_DISABLE_HT,
25863ff40c12SJohn Marino 	NL80211_ATTR_HT_CAPABILITY_MASK,
25873ff40c12SJohn Marino 
25883ff40c12SJohn Marino 	NL80211_ATTR_NOACK_MAP,
25893ff40c12SJohn Marino 
25903ff40c12SJohn Marino 	NL80211_ATTR_INACTIVITY_TIMEOUT,
25913ff40c12SJohn Marino 
25923ff40c12SJohn Marino 	NL80211_ATTR_RX_SIGNAL_DBM,
25933ff40c12SJohn Marino 
25943ff40c12SJohn Marino 	NL80211_ATTR_BG_SCAN_PERIOD,
25953ff40c12SJohn Marino 
25963ff40c12SJohn Marino 	NL80211_ATTR_WDEV,
25973ff40c12SJohn Marino 
25983ff40c12SJohn Marino 	NL80211_ATTR_USER_REG_HINT_TYPE,
25993ff40c12SJohn Marino 
26003ff40c12SJohn Marino 	NL80211_ATTR_CONN_FAILED_REASON,
26013ff40c12SJohn Marino 
2602*a1157835SDaniel Fojt 	NL80211_ATTR_AUTH_DATA,
26033ff40c12SJohn Marino 
26043ff40c12SJohn Marino 	NL80211_ATTR_VHT_CAPABILITY,
26053ff40c12SJohn Marino 
26063ff40c12SJohn Marino 	NL80211_ATTR_SCAN_FLAGS,
26073ff40c12SJohn Marino 
26083ff40c12SJohn Marino 	NL80211_ATTR_CHANNEL_WIDTH,
26093ff40c12SJohn Marino 	NL80211_ATTR_CENTER_FREQ1,
26103ff40c12SJohn Marino 	NL80211_ATTR_CENTER_FREQ2,
26113ff40c12SJohn Marino 
26123ff40c12SJohn Marino 	NL80211_ATTR_P2P_CTWINDOW,
26133ff40c12SJohn Marino 	NL80211_ATTR_P2P_OPPPS,
26143ff40c12SJohn Marino 
26153ff40c12SJohn Marino 	NL80211_ATTR_LOCAL_MESH_POWER_MODE,
26163ff40c12SJohn Marino 
26173ff40c12SJohn Marino 	NL80211_ATTR_ACL_POLICY,
26183ff40c12SJohn Marino 
26193ff40c12SJohn Marino 	NL80211_ATTR_MAC_ADDRS,
26203ff40c12SJohn Marino 
26213ff40c12SJohn Marino 	NL80211_ATTR_MAC_ACL_MAX,
26223ff40c12SJohn Marino 
26233ff40c12SJohn Marino 	NL80211_ATTR_RADAR_EVENT,
26243ff40c12SJohn Marino 
26253ff40c12SJohn Marino 	NL80211_ATTR_EXT_CAPA,
26263ff40c12SJohn Marino 	NL80211_ATTR_EXT_CAPA_MASK,
26273ff40c12SJohn Marino 
26283ff40c12SJohn Marino 	NL80211_ATTR_STA_CAPABILITY,
26293ff40c12SJohn Marino 	NL80211_ATTR_STA_EXT_CAPABILITY,
26303ff40c12SJohn Marino 
26313ff40c12SJohn Marino 	NL80211_ATTR_PROTOCOL_FEATURES,
26323ff40c12SJohn Marino 	NL80211_ATTR_SPLIT_WIPHY_DUMP,
26333ff40c12SJohn Marino 
26343ff40c12SJohn Marino 	NL80211_ATTR_DISABLE_VHT,
26353ff40c12SJohn Marino 	NL80211_ATTR_VHT_CAPABILITY_MASK,
26363ff40c12SJohn Marino 
26373ff40c12SJohn Marino 	NL80211_ATTR_MDID,
26383ff40c12SJohn Marino 	NL80211_ATTR_IE_RIC,
26393ff40c12SJohn Marino 
26403ff40c12SJohn Marino 	NL80211_ATTR_CRIT_PROT_ID,
26413ff40c12SJohn Marino 	NL80211_ATTR_MAX_CRIT_PROT_DURATION,
26423ff40c12SJohn Marino 
26433ff40c12SJohn Marino 	NL80211_ATTR_PEER_AID,
26443ff40c12SJohn Marino 
26453ff40c12SJohn Marino 	NL80211_ATTR_COALESCE_RULE,
26463ff40c12SJohn Marino 
26473ff40c12SJohn Marino 	NL80211_ATTR_CH_SWITCH_COUNT,
26483ff40c12SJohn Marino 	NL80211_ATTR_CH_SWITCH_BLOCK_TX,
26493ff40c12SJohn Marino 	NL80211_ATTR_CSA_IES,
26503ff40c12SJohn Marino 	NL80211_ATTR_CSA_C_OFF_BEACON,
26513ff40c12SJohn Marino 	NL80211_ATTR_CSA_C_OFF_PRESP,
26523ff40c12SJohn Marino 
26533ff40c12SJohn Marino 	NL80211_ATTR_RXMGMT_FLAGS,
26543ff40c12SJohn Marino 
26553ff40c12SJohn Marino 	NL80211_ATTR_STA_SUPPORTED_CHANNELS,
26563ff40c12SJohn Marino 
26573ff40c12SJohn Marino 	NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES,
26583ff40c12SJohn Marino 
26593ff40c12SJohn Marino 	NL80211_ATTR_HANDLE_DFS,
26603ff40c12SJohn Marino 
26613ff40c12SJohn Marino 	NL80211_ATTR_SUPPORT_5_MHZ,
26623ff40c12SJohn Marino 	NL80211_ATTR_SUPPORT_10_MHZ,
26633ff40c12SJohn Marino 
26643ff40c12SJohn Marino 	NL80211_ATTR_OPMODE_NOTIF,
26653ff40c12SJohn Marino 
26663ff40c12SJohn Marino 	NL80211_ATTR_VENDOR_ID,
26673ff40c12SJohn Marino 	NL80211_ATTR_VENDOR_SUBCMD,
26683ff40c12SJohn Marino 	NL80211_ATTR_VENDOR_DATA,
26693ff40c12SJohn Marino 	NL80211_ATTR_VENDOR_EVENTS,
26703ff40c12SJohn Marino 
26713ff40c12SJohn Marino 	NL80211_ATTR_QOS_MAP,
26723ff40c12SJohn Marino 
2673*a1157835SDaniel Fojt 	NL80211_ATTR_MAC_HINT,
2674*a1157835SDaniel Fojt 	NL80211_ATTR_WIPHY_FREQ_HINT,
2675*a1157835SDaniel Fojt 
2676*a1157835SDaniel Fojt 	NL80211_ATTR_MAX_AP_ASSOC_STA,
2677*a1157835SDaniel Fojt 
2678*a1157835SDaniel Fojt 	NL80211_ATTR_TDLS_PEER_CAPABILITY,
2679*a1157835SDaniel Fojt 
2680*a1157835SDaniel Fojt 	NL80211_ATTR_SOCKET_OWNER,
2681*a1157835SDaniel Fojt 
2682*a1157835SDaniel Fojt 	NL80211_ATTR_CSA_C_OFFSETS_TX,
2683*a1157835SDaniel Fojt 	NL80211_ATTR_MAX_CSA_COUNTERS,
2684*a1157835SDaniel Fojt 
2685*a1157835SDaniel Fojt 	NL80211_ATTR_TDLS_INITIATOR,
2686*a1157835SDaniel Fojt 
2687*a1157835SDaniel Fojt 	NL80211_ATTR_USE_RRM,
2688*a1157835SDaniel Fojt 
2689*a1157835SDaniel Fojt 	NL80211_ATTR_WIPHY_DYN_ACK,
2690*a1157835SDaniel Fojt 
2691*a1157835SDaniel Fojt 	NL80211_ATTR_TSID,
2692*a1157835SDaniel Fojt 	NL80211_ATTR_USER_PRIO,
2693*a1157835SDaniel Fojt 	NL80211_ATTR_ADMITTED_TIME,
2694*a1157835SDaniel Fojt 
2695*a1157835SDaniel Fojt 	NL80211_ATTR_SMPS_MODE,
2696*a1157835SDaniel Fojt 
2697*a1157835SDaniel Fojt 	NL80211_ATTR_OPER_CLASS,
2698*a1157835SDaniel Fojt 
2699*a1157835SDaniel Fojt 	NL80211_ATTR_MAC_MASK,
2700*a1157835SDaniel Fojt 
2701*a1157835SDaniel Fojt 	NL80211_ATTR_WIPHY_SELF_MANAGED_REG,
2702*a1157835SDaniel Fojt 
2703*a1157835SDaniel Fojt 	NL80211_ATTR_EXT_FEATURES,
2704*a1157835SDaniel Fojt 
2705*a1157835SDaniel Fojt 	NL80211_ATTR_SURVEY_RADIO_STATS,
2706*a1157835SDaniel Fojt 
2707*a1157835SDaniel Fojt 	NL80211_ATTR_NETNS_FD,
2708*a1157835SDaniel Fojt 
2709*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_DELAY,
2710*a1157835SDaniel Fojt 
2711*a1157835SDaniel Fojt 	NL80211_ATTR_REG_INDOOR,
2712*a1157835SDaniel Fojt 
2713*a1157835SDaniel Fojt 	NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS,
2714*a1157835SDaniel Fojt 	NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL,
2715*a1157835SDaniel Fojt 	NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS,
2716*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_PLANS,
2717*a1157835SDaniel Fojt 
2718*a1157835SDaniel Fojt 	NL80211_ATTR_PBSS,
2719*a1157835SDaniel Fojt 
2720*a1157835SDaniel Fojt 	NL80211_ATTR_BSS_SELECT,
2721*a1157835SDaniel Fojt 
2722*a1157835SDaniel Fojt 	NL80211_ATTR_STA_SUPPORT_P2P_PS,
2723*a1157835SDaniel Fojt 
2724*a1157835SDaniel Fojt 	NL80211_ATTR_PAD,
2725*a1157835SDaniel Fojt 
2726*a1157835SDaniel Fojt 	NL80211_ATTR_IFTYPE_EXT_CAPA,
2727*a1157835SDaniel Fojt 
2728*a1157835SDaniel Fojt 	NL80211_ATTR_MU_MIMO_GROUP_DATA,
2729*a1157835SDaniel Fojt 	NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR,
2730*a1157835SDaniel Fojt 
2731*a1157835SDaniel Fojt 	NL80211_ATTR_SCAN_START_TIME_TSF,
2732*a1157835SDaniel Fojt 	NL80211_ATTR_SCAN_START_TIME_TSF_BSSID,
2733*a1157835SDaniel Fojt 	NL80211_ATTR_MEASUREMENT_DURATION,
2734*a1157835SDaniel Fojt 	NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY,
2735*a1157835SDaniel Fojt 
2736*a1157835SDaniel Fojt 	NL80211_ATTR_MESH_PEER_AID,
2737*a1157835SDaniel Fojt 
2738*a1157835SDaniel Fojt 	NL80211_ATTR_NAN_MASTER_PREF,
2739*a1157835SDaniel Fojt 	NL80211_ATTR_BANDS,
2740*a1157835SDaniel Fojt 	NL80211_ATTR_NAN_FUNC,
2741*a1157835SDaniel Fojt 	NL80211_ATTR_NAN_MATCH,
2742*a1157835SDaniel Fojt 
2743*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_KEK,
2744*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_NONCES,
2745*a1157835SDaniel Fojt 
2746*a1157835SDaniel Fojt 	NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED,
2747*a1157835SDaniel Fojt 
2748*a1157835SDaniel Fojt 	NL80211_ATTR_BSSID,
2749*a1157835SDaniel Fojt 
2750*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI,
2751*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST,
2752*a1157835SDaniel Fojt 
2753*a1157835SDaniel Fojt 	NL80211_ATTR_TIMEOUT_REASON,
2754*a1157835SDaniel Fojt 
2755*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_ERP_USERNAME,
2756*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_ERP_REALM,
2757*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM,
2758*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_ERP_RRK,
2759*a1157835SDaniel Fojt 	NL80211_ATTR_FILS_CACHE_ID,
2760*a1157835SDaniel Fojt 
2761*a1157835SDaniel Fojt 	NL80211_ATTR_PMK,
2762*a1157835SDaniel Fojt 
2763*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_MULTI,
2764*a1157835SDaniel Fojt 	NL80211_ATTR_SCHED_SCAN_MAX_REQS,
2765*a1157835SDaniel Fojt 
2766*a1157835SDaniel Fojt 	NL80211_ATTR_WANT_1X_4WAY_HS,
2767*a1157835SDaniel Fojt 	NL80211_ATTR_PMKR0_NAME,
2768*a1157835SDaniel Fojt 	NL80211_ATTR_PORT_AUTHORIZED,
2769*a1157835SDaniel Fojt 
2770*a1157835SDaniel Fojt 	NL80211_ATTR_EXTERNAL_AUTH_ACTION,
2771*a1157835SDaniel Fojt 	NL80211_ATTR_EXTERNAL_AUTH_SUPPORT,
2772*a1157835SDaniel Fojt 
2773*a1157835SDaniel Fojt 	NL80211_ATTR_NSS,
2774*a1157835SDaniel Fojt 	NL80211_ATTR_ACK_SIGNAL,
2775*a1157835SDaniel Fojt 
2776*a1157835SDaniel Fojt 	NL80211_ATTR_CONTROL_PORT_OVER_NL80211,
2777*a1157835SDaniel Fojt 
2778*a1157835SDaniel Fojt 	NL80211_ATTR_TXQ_STATS,
2779*a1157835SDaniel Fojt 	NL80211_ATTR_TXQ_LIMIT,
2780*a1157835SDaniel Fojt 	NL80211_ATTR_TXQ_MEMORY_LIMIT,
2781*a1157835SDaniel Fojt 	NL80211_ATTR_TXQ_QUANTUM,
2782*a1157835SDaniel Fojt 
2783*a1157835SDaniel Fojt 	NL80211_ATTR_HE_CAPABILITY,
2784*a1157835SDaniel Fojt 
2785*a1157835SDaniel Fojt 	NL80211_ATTR_FTM_RESPONDER,
2786*a1157835SDaniel Fojt 
2787*a1157835SDaniel Fojt 	NL80211_ATTR_FTM_RESPONDER_STATS,
2788*a1157835SDaniel Fojt 
2789*a1157835SDaniel Fojt 	NL80211_ATTR_TIMEOUT,
2790*a1157835SDaniel Fojt 
2791*a1157835SDaniel Fojt 	NL80211_ATTR_PEER_MEASUREMENTS,
2792*a1157835SDaniel Fojt 
2793*a1157835SDaniel Fojt 	NL80211_ATTR_AIRTIME_WEIGHT,
2794*a1157835SDaniel Fojt 	NL80211_ATTR_STA_TX_POWER_SETTING,
2795*a1157835SDaniel Fojt 	NL80211_ATTR_STA_TX_POWER,
2796*a1157835SDaniel Fojt 
27973ff40c12SJohn Marino 	/* add attributes here, update the policy in nl80211.c */
27983ff40c12SJohn Marino 
27993ff40c12SJohn Marino 	__NL80211_ATTR_AFTER_LAST,
2800*a1157835SDaniel Fojt 	NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
28013ff40c12SJohn Marino 	NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
28023ff40c12SJohn Marino };
28033ff40c12SJohn Marino 
28043ff40c12SJohn Marino /* source-level API compatibility */
28053ff40c12SJohn Marino #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION
28063ff40c12SJohn Marino #define	NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG
2807*a1157835SDaniel Fojt #define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER
2808*a1157835SDaniel Fojt #define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA
28093ff40c12SJohn Marino 
28103ff40c12SJohn Marino /*
28113ff40c12SJohn Marino  * Allow user space programs to use #ifdef on new attributes by defining them
28123ff40c12SJohn Marino  * here
28133ff40c12SJohn Marino  */
28143ff40c12SJohn Marino #define NL80211_CMD_CONNECT NL80211_CMD_CONNECT
28153ff40c12SJohn Marino #define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
28163ff40c12SJohn Marino #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
28173ff40c12SJohn Marino #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS
28183ff40c12SJohn Marino #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ
28193ff40c12SJohn Marino #define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE
28203ff40c12SJohn Marino #define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE
28213ff40c12SJohn Marino #define NL80211_ATTR_IE NL80211_ATTR_IE
28223ff40c12SJohn Marino #define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR
28233ff40c12SJohn Marino #define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE
28243ff40c12SJohn Marino #define NL80211_ATTR_FRAME NL80211_ATTR_FRAME
28253ff40c12SJohn Marino #define NL80211_ATTR_SSID NL80211_ATTR_SSID
28263ff40c12SJohn Marino #define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE
28273ff40c12SJohn Marino #define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE
28283ff40c12SJohn Marino #define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE
28293ff40c12SJohn Marino #define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP
28303ff40c12SJohn Marino #define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS
28313ff40c12SJohn Marino #define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES
28323ff40c12SJohn Marino #define NL80211_ATTR_KEY NL80211_ATTR_KEY
28333ff40c12SJohn Marino #define NL80211_ATTR_KEYS NL80211_ATTR_KEYS
28343ff40c12SJohn Marino #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
28353ff40c12SJohn Marino 
2836*a1157835SDaniel Fojt #define NL80211_WIPHY_NAME_MAXLEN		64
2837*a1157835SDaniel Fojt 
28383ff40c12SJohn Marino #define NL80211_MAX_SUPP_RATES			32
28393ff40c12SJohn Marino #define NL80211_MAX_SUPP_HT_RATES		77
2840*a1157835SDaniel Fojt #define NL80211_MAX_SUPP_REG_RULES		128
28413ff40c12SJohn Marino #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY	0
28423ff40c12SJohn Marino #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY	16
28433ff40c12SJohn Marino #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY	24
28443ff40c12SJohn Marino #define NL80211_HT_CAPABILITY_LEN		26
28453ff40c12SJohn Marino #define NL80211_VHT_CAPABILITY_LEN		12
2846*a1157835SDaniel Fojt #define NL80211_HE_MIN_CAPABILITY_LEN           16
2847*a1157835SDaniel Fojt #define NL80211_HE_MAX_CAPABILITY_LEN           51
28483ff40c12SJohn Marino #define NL80211_MAX_NR_CIPHER_SUITES		5
28493ff40c12SJohn Marino #define NL80211_MAX_NR_AKM_SUITES		2
28503ff40c12SJohn Marino 
28513ff40c12SJohn Marino #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME	10
28523ff40c12SJohn Marino 
28533ff40c12SJohn Marino /* default RSSI threshold for scan results if none specified. */
28543ff40c12SJohn Marino #define NL80211_SCAN_RSSI_THOLD_OFF		-300
28553ff40c12SJohn Marino 
28563ff40c12SJohn Marino #define NL80211_CQM_TXE_MAX_INTVL		1800
28573ff40c12SJohn Marino 
28583ff40c12SJohn Marino /**
28593ff40c12SJohn Marino  * enum nl80211_iftype - (virtual) interface types
28603ff40c12SJohn Marino  *
28613ff40c12SJohn Marino  * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides
28623ff40c12SJohn Marino  * @NL80211_IFTYPE_ADHOC: independent BSS member
28633ff40c12SJohn Marino  * @NL80211_IFTYPE_STATION: managed BSS member
28643ff40c12SJohn Marino  * @NL80211_IFTYPE_AP: access point
28653ff40c12SJohn Marino  * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces
28663ff40c12SJohn Marino  *	are a bit special in that they must always be tied to a pre-existing
28673ff40c12SJohn Marino  *	AP type interface.
28683ff40c12SJohn Marino  * @NL80211_IFTYPE_WDS: wireless distribution interface
28693ff40c12SJohn Marino  * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames
28703ff40c12SJohn Marino  * @NL80211_IFTYPE_MESH_POINT: mesh point
28713ff40c12SJohn Marino  * @NL80211_IFTYPE_P2P_CLIENT: P2P client
28723ff40c12SJohn Marino  * @NL80211_IFTYPE_P2P_GO: P2P group owner
28733ff40c12SJohn Marino  * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev
28743ff40c12SJohn Marino  *	and therefore can't be created in the normal ways, use the
28753ff40c12SJohn Marino  *	%NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE
28763ff40c12SJohn Marino  *	commands to create and destroy one
2877*a1157835SDaniel Fojt  * @NL80211_IF_TYPE_OCB: Outside Context of a BSS
2878*a1157835SDaniel Fojt  *	This mode corresponds to the MIB variable dot11OCBActivated=true
2879*a1157835SDaniel Fojt  * @NL80211_IFTYPE_NAN: NAN device interface type (not a netdev)
28803ff40c12SJohn Marino  * @NL80211_IFTYPE_MAX: highest interface type number currently defined
28813ff40c12SJohn Marino  * @NUM_NL80211_IFTYPES: number of defined interface types
28823ff40c12SJohn Marino  *
28833ff40c12SJohn Marino  * These values are used with the %NL80211_ATTR_IFTYPE
28843ff40c12SJohn Marino  * to set the type of an interface.
28853ff40c12SJohn Marino  *
28863ff40c12SJohn Marino  */
28873ff40c12SJohn Marino enum nl80211_iftype {
28883ff40c12SJohn Marino 	NL80211_IFTYPE_UNSPECIFIED,
28893ff40c12SJohn Marino 	NL80211_IFTYPE_ADHOC,
28903ff40c12SJohn Marino 	NL80211_IFTYPE_STATION,
28913ff40c12SJohn Marino 	NL80211_IFTYPE_AP,
28923ff40c12SJohn Marino 	NL80211_IFTYPE_AP_VLAN,
28933ff40c12SJohn Marino 	NL80211_IFTYPE_WDS,
28943ff40c12SJohn Marino 	NL80211_IFTYPE_MONITOR,
28953ff40c12SJohn Marino 	NL80211_IFTYPE_MESH_POINT,
28963ff40c12SJohn Marino 	NL80211_IFTYPE_P2P_CLIENT,
28973ff40c12SJohn Marino 	NL80211_IFTYPE_P2P_GO,
28983ff40c12SJohn Marino 	NL80211_IFTYPE_P2P_DEVICE,
2899*a1157835SDaniel Fojt 	NL80211_IFTYPE_OCB,
2900*a1157835SDaniel Fojt 	NL80211_IFTYPE_NAN,
29013ff40c12SJohn Marino 
29023ff40c12SJohn Marino 	/* keep last */
29033ff40c12SJohn Marino 	NUM_NL80211_IFTYPES,
29043ff40c12SJohn Marino 	NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
29053ff40c12SJohn Marino };
29063ff40c12SJohn Marino 
29073ff40c12SJohn Marino /**
29083ff40c12SJohn Marino  * enum nl80211_sta_flags - station flags
29093ff40c12SJohn Marino  *
29103ff40c12SJohn Marino  * Station flags. When a station is added to an AP interface, it is
29113ff40c12SJohn Marino  * assumed to be already associated (and hence authenticated.)
29123ff40c12SJohn Marino  *
29133ff40c12SJohn Marino  * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved
29143ff40c12SJohn Marino  * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X)
29153ff40c12SJohn Marino  * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
29163ff40c12SJohn Marino  *	with short barker preamble
29173ff40c12SJohn Marino  * @NL80211_STA_FLAG_WME: station is WME/QoS capable
29183ff40c12SJohn Marino  * @NL80211_STA_FLAG_MFP: station uses management frame protection
29193ff40c12SJohn Marino  * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated
29203ff40c12SJohn Marino  * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should
29213ff40c12SJohn Marino  *	only be used in managed mode (even in the flags mask). Note that the
29223ff40c12SJohn Marino  *	flag can't be changed, it is only valid while adding a station, and
29233ff40c12SJohn Marino  *	attempts to change it will silently be ignored (rather than rejected
29243ff40c12SJohn Marino  *	as errors.)
29253ff40c12SJohn Marino  * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers
29263ff40c12SJohn Marino  *	that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a
29273ff40c12SJohn Marino  *	previously added station into associated state
29283ff40c12SJohn Marino  * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
29293ff40c12SJohn Marino  * @__NL80211_STA_FLAG_AFTER_LAST: internal use
29303ff40c12SJohn Marino  */
29313ff40c12SJohn Marino enum nl80211_sta_flags {
29323ff40c12SJohn Marino 	__NL80211_STA_FLAG_INVALID,
29333ff40c12SJohn Marino 	NL80211_STA_FLAG_AUTHORIZED,
29343ff40c12SJohn Marino 	NL80211_STA_FLAG_SHORT_PREAMBLE,
29353ff40c12SJohn Marino 	NL80211_STA_FLAG_WME,
29363ff40c12SJohn Marino 	NL80211_STA_FLAG_MFP,
29373ff40c12SJohn Marino 	NL80211_STA_FLAG_AUTHENTICATED,
29383ff40c12SJohn Marino 	NL80211_STA_FLAG_TDLS_PEER,
29393ff40c12SJohn Marino 	NL80211_STA_FLAG_ASSOCIATED,
29403ff40c12SJohn Marino 
29413ff40c12SJohn Marino 	/* keep last */
29423ff40c12SJohn Marino 	__NL80211_STA_FLAG_AFTER_LAST,
29433ff40c12SJohn Marino 	NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1
29443ff40c12SJohn Marino };
29453ff40c12SJohn Marino 
2946*a1157835SDaniel Fojt /**
2947*a1157835SDaniel Fojt  * enum nl80211_sta_p2p_ps_status - station support of P2P PS
2948*a1157835SDaniel Fojt  *
2949*a1157835SDaniel Fojt  * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism
2950*a1157835SDaniel Fojt  * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism
2951*a1157835SDaniel Fojt  * @NUM_NL80211_P2P_PS_STATUS: number of values
2952*a1157835SDaniel Fojt  */
2953*a1157835SDaniel Fojt enum nl80211_sta_p2p_ps_status {
2954*a1157835SDaniel Fojt 	NL80211_P2P_PS_UNSUPPORTED = 0,
2955*a1157835SDaniel Fojt 	NL80211_P2P_PS_SUPPORTED,
2956*a1157835SDaniel Fojt 
2957*a1157835SDaniel Fojt 	NUM_NL80211_P2P_PS_STATUS,
2958*a1157835SDaniel Fojt };
2959*a1157835SDaniel Fojt 
29603ff40c12SJohn Marino #define NL80211_STA_FLAG_MAX_OLD_API	NL80211_STA_FLAG_TDLS_PEER
29613ff40c12SJohn Marino 
29623ff40c12SJohn Marino /**
29633ff40c12SJohn Marino  * struct nl80211_sta_flag_update - station flags mask/set
29643ff40c12SJohn Marino  * @mask: mask of station flags to set
29653ff40c12SJohn Marino  * @set: which values to set them to
29663ff40c12SJohn Marino  *
29673ff40c12SJohn Marino  * Both mask and set contain bits as per &enum nl80211_sta_flags.
29683ff40c12SJohn Marino  */
29693ff40c12SJohn Marino struct nl80211_sta_flag_update {
29703ff40c12SJohn Marino 	__u32 mask;
29713ff40c12SJohn Marino 	__u32 set;
29723ff40c12SJohn Marino } __attribute__((packed));
29733ff40c12SJohn Marino 
29743ff40c12SJohn Marino /**
2975*a1157835SDaniel Fojt  * enum nl80211_he_gi - HE guard interval
2976*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_GI_0_8: 0.8 usec
2977*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_GI_1_6: 1.6 usec
2978*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_GI_3_2: 3.2 usec
2979*a1157835SDaniel Fojt  */
2980*a1157835SDaniel Fojt enum nl80211_he_gi {
2981*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_GI_0_8,
2982*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_GI_1_6,
2983*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_GI_3_2,
2984*a1157835SDaniel Fojt };
2985*a1157835SDaniel Fojt 
2986*a1157835SDaniel Fojt /**
2987*a1157835SDaniel Fojt  * enum nl80211_he_ru_alloc - HE RU allocation values
2988*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_26: 26-tone RU allocation
2989*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_52: 52-tone RU allocation
2990*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_106: 106-tone RU allocation
2991*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_242: 242-tone RU allocation
2992*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_484: 484-tone RU allocation
2993*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_996: 996-tone RU allocation
2994*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_RU_ALLOC_2x996: 2x996-tone RU allocation
2995*a1157835SDaniel Fojt  */
2996*a1157835SDaniel Fojt enum nl80211_he_ru_alloc {
2997*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_26,
2998*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_52,
2999*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_106,
3000*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_242,
3001*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_484,
3002*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_996,
3003*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC_2x996,
3004*a1157835SDaniel Fojt };
3005*a1157835SDaniel Fojt 
3006*a1157835SDaniel Fojt /**
30073ff40c12SJohn Marino  * enum nl80211_rate_info - bitrate information
30083ff40c12SJohn Marino  *
30093ff40c12SJohn Marino  * These attribute types are used with %NL80211_STA_INFO_TXRATE
30103ff40c12SJohn Marino  * when getting information about the bitrate of a station.
30113ff40c12SJohn Marino  * There are 2 attributes for bitrate, a legacy one that represents
30123ff40c12SJohn Marino  * a 16-bit value, and new one that represents a 32-bit value.
30133ff40c12SJohn Marino  * If the rate value fits into 16 bit, both attributes are reported
30143ff40c12SJohn Marino  * with the same value. If the rate is too high to fit into 16 bits
30153ff40c12SJohn Marino  * (>6.5535Gbps) only 32-bit attribute is included.
30163ff40c12SJohn Marino  * User space tools encouraged to use the 32-bit attribute and fall
30173ff40c12SJohn Marino  * back to the 16-bit one for compatibility with older kernels.
30183ff40c12SJohn Marino  *
30193ff40c12SJohn Marino  * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved
30203ff40c12SJohn Marino  * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s)
30213ff40c12SJohn Marino  * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8)
30223ff40c12SJohn Marino  * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate
30233ff40c12SJohn Marino  * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval
30243ff40c12SJohn Marino  * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s)
30253ff40c12SJohn Marino  * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined
30263ff40c12SJohn Marino  * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8)
30273ff40c12SJohn Marino  * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8)
30283ff40c12SJohn Marino  * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate
3029*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the
3030*a1157835SDaniel Fojt  *	same as 160 for purposes of the bitrates
30313ff40c12SJohn Marino  * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate
3032*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is
3033*a1157835SDaniel Fojt  *	a legacy rate and will be reported as the actual bitrate, i.e.
3034*a1157835SDaniel Fojt  *	half the base (20 MHz) rate
3035*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is
3036*a1157835SDaniel Fojt  *	a legacy rate and will be reported as the actual bitrate, i.e.
3037*a1157835SDaniel Fojt  *	a quarter of the base (20 MHz) rate
3038*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_MCS: HE MCS index (u8, 0-11)
3039*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_NSS: HE NSS value (u8, 1-8)
3040*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier
3041*a1157835SDaniel Fojt  *	(u8, see &enum nl80211_he_gi)
3042*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1)
3043*a1157835SDaniel Fojt  * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then
3044*a1157835SDaniel Fojt  *	non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc)
30453ff40c12SJohn Marino  * @__NL80211_RATE_INFO_AFTER_LAST: internal use
30463ff40c12SJohn Marino  */
30473ff40c12SJohn Marino enum nl80211_rate_info {
30483ff40c12SJohn Marino 	__NL80211_RATE_INFO_INVALID,
30493ff40c12SJohn Marino 	NL80211_RATE_INFO_BITRATE,
30503ff40c12SJohn Marino 	NL80211_RATE_INFO_MCS,
30513ff40c12SJohn Marino 	NL80211_RATE_INFO_40_MHZ_WIDTH,
30523ff40c12SJohn Marino 	NL80211_RATE_INFO_SHORT_GI,
30533ff40c12SJohn Marino 	NL80211_RATE_INFO_BITRATE32,
30543ff40c12SJohn Marino 	NL80211_RATE_INFO_VHT_MCS,
30553ff40c12SJohn Marino 	NL80211_RATE_INFO_VHT_NSS,
30563ff40c12SJohn Marino 	NL80211_RATE_INFO_80_MHZ_WIDTH,
30573ff40c12SJohn Marino 	NL80211_RATE_INFO_80P80_MHZ_WIDTH,
30583ff40c12SJohn Marino 	NL80211_RATE_INFO_160_MHZ_WIDTH,
3059*a1157835SDaniel Fojt 	NL80211_RATE_INFO_10_MHZ_WIDTH,
3060*a1157835SDaniel Fojt 	NL80211_RATE_INFO_5_MHZ_WIDTH,
3061*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_MCS,
3062*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_NSS,
3063*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_GI,
3064*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_DCM,
3065*a1157835SDaniel Fojt 	NL80211_RATE_INFO_HE_RU_ALLOC,
30663ff40c12SJohn Marino 
30673ff40c12SJohn Marino 	/* keep last */
30683ff40c12SJohn Marino 	__NL80211_RATE_INFO_AFTER_LAST,
30693ff40c12SJohn Marino 	NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1
30703ff40c12SJohn Marino };
30713ff40c12SJohn Marino 
30723ff40c12SJohn Marino /**
30733ff40c12SJohn Marino  * enum nl80211_sta_bss_param - BSS information collected by STA
30743ff40c12SJohn Marino  *
30753ff40c12SJohn Marino  * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM
30763ff40c12SJohn Marino  * when getting information about the bitrate of a station.
30773ff40c12SJohn Marino  *
30783ff40c12SJohn Marino  * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved
30793ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag)
30803ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE:  whether short preamble is enabled
30813ff40c12SJohn Marino  *	(flag)
30823ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME:  whether short slot time is enabled
30833ff40c12SJohn Marino  *	(flag)
30843ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8)
30853ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16)
30863ff40c12SJohn Marino  * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined
30873ff40c12SJohn Marino  * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use
30883ff40c12SJohn Marino  */
30893ff40c12SJohn Marino enum nl80211_sta_bss_param {
30903ff40c12SJohn Marino 	__NL80211_STA_BSS_PARAM_INVALID,
30913ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_CTS_PROT,
30923ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_SHORT_PREAMBLE,
30933ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME,
30943ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_DTIM_PERIOD,
30953ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_BEACON_INTERVAL,
30963ff40c12SJohn Marino 
30973ff40c12SJohn Marino 	/* keep last */
30983ff40c12SJohn Marino 	__NL80211_STA_BSS_PARAM_AFTER_LAST,
30993ff40c12SJohn Marino 	NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1
31003ff40c12SJohn Marino };
31013ff40c12SJohn Marino 
31023ff40c12SJohn Marino /**
31033ff40c12SJohn Marino  * enum nl80211_sta_info - station information
31043ff40c12SJohn Marino  *
31053ff40c12SJohn Marino  * These attribute types are used with %NL80211_ATTR_STA_INFO
31063ff40c12SJohn Marino  * when getting information about a station.
31073ff40c12SJohn Marino  *
31083ff40c12SJohn Marino  * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved
31093ff40c12SJohn Marino  * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs)
3110*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length)
3111*a1157835SDaniel Fojt  *	(u32, from this station)
3112*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length)
3113*a1157835SDaniel Fojt  *	(u32, to this station)
3114*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length)
3115*a1157835SDaniel Fojt  *	(u64, from this station)
3116*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length)
3117*a1157835SDaniel Fojt  *	(u64, to this station)
31183ff40c12SJohn Marino  * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
31193ff40c12SJohn Marino  * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
31203ff40c12SJohn Marino  * 	containing info as possible, see &enum nl80211_rate_info
3121*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs)
3122*a1157835SDaniel Fojt  *	(u32, from this station)
3123*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs)
3124*a1157835SDaniel Fojt  *	(u32, to this station)
3125*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station)
3126*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs)
3127*a1157835SDaniel Fojt  *	(u32, to this station)
31283ff40c12SJohn Marino  * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
31293ff40c12SJohn Marino  * @NL80211_STA_INFO_LLID: the station's mesh LLID
31303ff40c12SJohn Marino  * @NL80211_STA_INFO_PLID: the station's mesh PLID
31313ff40c12SJohn Marino  * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station
31323ff40c12SJohn Marino  *	(see %enum nl80211_plink_state)
31333ff40c12SJohn Marino  * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested
31343ff40c12SJohn Marino  *	attribute, like NL80211_STA_INFO_TX_BITRATE.
31353ff40c12SJohn Marino  * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute
31363ff40c12SJohn Marino  *     containing info as possible, see &enum nl80211_sta_bss_param
31373ff40c12SJohn Marino  * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected
31383ff40c12SJohn Marino  * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update.
31393ff40c12SJohn Marino  * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32)
31403ff40c12SJohn Marino  * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64)
31413ff40c12SJohn Marino  * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode
31423ff40c12SJohn Marino  * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode
31433ff40c12SJohn Marino  * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards
31443ff40c12SJohn Marino  *	non-peer STA
31453ff40c12SJohn Marino  * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU
31463ff40c12SJohn Marino  *	Contains a nested array of signal strength attributes (u8, dBm)
31473ff40c12SJohn Marino  * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
31483ff40c12SJohn Marino  *	Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
3149*a1157835SDaniel Fojt  * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
3150*a1157835SDaniel Fojt  *	802.11 header (u32, kbps)
3151*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons
3152*a1157835SDaniel Fojt  *	(u64)
3153*a1157835SDaniel Fojt  * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64)
3154*a1157835SDaniel Fojt  * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average
3155*a1157835SDaniel Fojt  *	for beacons only (u8, dBm)
3156*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats)
3157*a1157835SDaniel Fojt  *	This is a nested attribute where each the inner attribute number is the
3158*a1157835SDaniel Fojt  *	TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames;
3159*a1157835SDaniel Fojt  *	each one of those is again nested with &enum nl80211_tid_stats
3160*a1157835SDaniel Fojt  *	attributes carrying the actual values.
3161*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames
3162*a1157835SDaniel Fojt  *	received from the station (u64, usec)
3163*a1157835SDaniel Fojt  * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment
3164*a1157835SDaniel Fojt  * @NL80211_STA_INFO_ACK_SIGNAL: signal strength of the last ACK frame(u8, dBm)
3165*a1157835SDaniel Fojt  * @NL80211_STA_INFO_ACK_SIGNAL_AVG: avg signal strength of ACK frames (s8, dBm)
3166*a1157835SDaniel Fojt  * @NL80211_STA_INFO_RX_MPDUS: total number of received packets (MPDUs)
3167*a1157835SDaniel Fojt  *	(u32, from this station)
3168*a1157835SDaniel Fojt  * @NL80211_STA_INFO_FCS_ERROR_COUNT: total number of packets (MPDUs) received
3169*a1157835SDaniel Fojt  *	with an FCS error (u32, from this station). This count may not include
3170*a1157835SDaniel Fojt  *	some packets with an FCS error due to TA corruption. Hence this counter
3171*a1157835SDaniel Fojt  *	might not be fully accurate.
3172*a1157835SDaniel Fojt  * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a
3173*a1157835SDaniel Fojt  *	mesh gate (u8, 0 or 1)
3174*a1157835SDaniel Fojt  * @NL80211_STA_INFO_TX_DURATION: aggregate PPDU duration for all frames
3175*a1157835SDaniel Fojt  *	sent to the station (u64, usec)
3176*a1157835SDaniel Fojt  * @NL80211_STA_INFO_AIRTIME_WEIGHT: current airtime weight for station (u16)
3177*a1157835SDaniel Fojt  * @NL80211_STA_INFO_AIRTIME_LINK_METRIC: airtime link metric for mesh station
31783ff40c12SJohn Marino  * @__NL80211_STA_INFO_AFTER_LAST: internal
31793ff40c12SJohn Marino  * @NL80211_STA_INFO_MAX: highest possible station info attribute
31803ff40c12SJohn Marino  */
31813ff40c12SJohn Marino enum nl80211_sta_info {
31823ff40c12SJohn Marino 	__NL80211_STA_INFO_INVALID,
31833ff40c12SJohn Marino 	NL80211_STA_INFO_INACTIVE_TIME,
31843ff40c12SJohn Marino 	NL80211_STA_INFO_RX_BYTES,
31853ff40c12SJohn Marino 	NL80211_STA_INFO_TX_BYTES,
31863ff40c12SJohn Marino 	NL80211_STA_INFO_LLID,
31873ff40c12SJohn Marino 	NL80211_STA_INFO_PLID,
31883ff40c12SJohn Marino 	NL80211_STA_INFO_PLINK_STATE,
31893ff40c12SJohn Marino 	NL80211_STA_INFO_SIGNAL,
31903ff40c12SJohn Marino 	NL80211_STA_INFO_TX_BITRATE,
31913ff40c12SJohn Marino 	NL80211_STA_INFO_RX_PACKETS,
31923ff40c12SJohn Marino 	NL80211_STA_INFO_TX_PACKETS,
31933ff40c12SJohn Marino 	NL80211_STA_INFO_TX_RETRIES,
31943ff40c12SJohn Marino 	NL80211_STA_INFO_TX_FAILED,
31953ff40c12SJohn Marino 	NL80211_STA_INFO_SIGNAL_AVG,
31963ff40c12SJohn Marino 	NL80211_STA_INFO_RX_BITRATE,
31973ff40c12SJohn Marino 	NL80211_STA_INFO_BSS_PARAM,
31983ff40c12SJohn Marino 	NL80211_STA_INFO_CONNECTED_TIME,
31993ff40c12SJohn Marino 	NL80211_STA_INFO_STA_FLAGS,
32003ff40c12SJohn Marino 	NL80211_STA_INFO_BEACON_LOSS,
32013ff40c12SJohn Marino 	NL80211_STA_INFO_T_OFFSET,
32023ff40c12SJohn Marino 	NL80211_STA_INFO_LOCAL_PM,
32033ff40c12SJohn Marino 	NL80211_STA_INFO_PEER_PM,
32043ff40c12SJohn Marino 	NL80211_STA_INFO_NONPEER_PM,
32053ff40c12SJohn Marino 	NL80211_STA_INFO_RX_BYTES64,
32063ff40c12SJohn Marino 	NL80211_STA_INFO_TX_BYTES64,
32073ff40c12SJohn Marino 	NL80211_STA_INFO_CHAIN_SIGNAL,
32083ff40c12SJohn Marino 	NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
3209*a1157835SDaniel Fojt 	NL80211_STA_INFO_EXPECTED_THROUGHPUT,
3210*a1157835SDaniel Fojt 	NL80211_STA_INFO_RX_DROP_MISC,
3211*a1157835SDaniel Fojt 	NL80211_STA_INFO_BEACON_RX,
3212*a1157835SDaniel Fojt 	NL80211_STA_INFO_BEACON_SIGNAL_AVG,
3213*a1157835SDaniel Fojt 	NL80211_STA_INFO_TID_STATS,
3214*a1157835SDaniel Fojt 	NL80211_STA_INFO_RX_DURATION,
3215*a1157835SDaniel Fojt 	NL80211_STA_INFO_PAD,
3216*a1157835SDaniel Fojt 	NL80211_STA_INFO_ACK_SIGNAL,
3217*a1157835SDaniel Fojt 	NL80211_STA_INFO_ACK_SIGNAL_AVG,
3218*a1157835SDaniel Fojt 	NL80211_STA_INFO_RX_MPDUS,
3219*a1157835SDaniel Fojt 	NL80211_STA_INFO_FCS_ERROR_COUNT,
3220*a1157835SDaniel Fojt 	NL80211_STA_INFO_CONNECTED_TO_GATE,
3221*a1157835SDaniel Fojt 	NL80211_STA_INFO_TX_DURATION,
3222*a1157835SDaniel Fojt 	NL80211_STA_INFO_AIRTIME_WEIGHT,
3223*a1157835SDaniel Fojt 	NL80211_STA_INFO_AIRTIME_LINK_METRIC,
32243ff40c12SJohn Marino 
32253ff40c12SJohn Marino 	/* keep last */
32263ff40c12SJohn Marino 	__NL80211_STA_INFO_AFTER_LAST,
32273ff40c12SJohn Marino 	NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1
32283ff40c12SJohn Marino };
32293ff40c12SJohn Marino 
3230*a1157835SDaniel Fojt /* we renamed this - stay compatible */
3231*a1157835SDaniel Fojt #define NL80211_STA_INFO_DATA_ACK_SIGNAL_AVG NL80211_STA_INFO_ACK_SIGNAL_AVG
3232*a1157835SDaniel Fojt 
3233*a1157835SDaniel Fojt 
3234*a1157835SDaniel Fojt /**
3235*a1157835SDaniel Fojt  * enum nl80211_tid_stats - per TID statistics attributes
3236*a1157835SDaniel Fojt  * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved
3237*a1157835SDaniel Fojt  * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64)
3238*a1157835SDaniel Fojt  * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or
3239*a1157835SDaniel Fojt  *	attempted to transmit; u64)
3240*a1157835SDaniel Fojt  * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for
3241*a1157835SDaniel Fojt  *	transmitted MSDUs (not counting the first attempt; u64)
3242*a1157835SDaniel Fojt  * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted
3243*a1157835SDaniel Fojt  *	MSDUs (u64)
3244*a1157835SDaniel Fojt  * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment
3245*a1157835SDaniel Fojt  * @NL80211_TID_STATS_TXQ_STATS: TXQ stats (nested attribute)
3246*a1157835SDaniel Fojt  * @NUM_NL80211_TID_STATS: number of attributes here
3247*a1157835SDaniel Fojt  * @NL80211_TID_STATS_MAX: highest numbered attribute here
3248*a1157835SDaniel Fojt  */
3249*a1157835SDaniel Fojt enum nl80211_tid_stats {
3250*a1157835SDaniel Fojt 	__NL80211_TID_STATS_INVALID,
3251*a1157835SDaniel Fojt 	NL80211_TID_STATS_RX_MSDU,
3252*a1157835SDaniel Fojt 	NL80211_TID_STATS_TX_MSDU,
3253*a1157835SDaniel Fojt 	NL80211_TID_STATS_TX_MSDU_RETRIES,
3254*a1157835SDaniel Fojt 	NL80211_TID_STATS_TX_MSDU_FAILED,
3255*a1157835SDaniel Fojt 	NL80211_TID_STATS_PAD,
3256*a1157835SDaniel Fojt 	NL80211_TID_STATS_TXQ_STATS,
3257*a1157835SDaniel Fojt 
3258*a1157835SDaniel Fojt 	/* keep last */
3259*a1157835SDaniel Fojt 	NUM_NL80211_TID_STATS,
3260*a1157835SDaniel Fojt 	NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1
3261*a1157835SDaniel Fojt };
3262*a1157835SDaniel Fojt 
3263*a1157835SDaniel Fojt /**
3264*a1157835SDaniel Fojt  * enum nl80211_txq_stats - per TXQ statistics attributes
3265*a1157835SDaniel Fojt  * @__NL80211_TXQ_STATS_INVALID: attribute number 0 is reserved
3266*a1157835SDaniel Fojt  * @NUM_NL80211_TXQ_STATS: number of attributes here
3267*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_BACKLOG_BYTES: number of bytes currently backlogged
3268*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_BACKLOG_PACKETS: number of packets currently
3269*a1157835SDaniel Fojt  *      backlogged
3270*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_FLOWS: total number of new flows seen
3271*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_DROPS: total number of packet drops
3272*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_ECN_MARKS: total number of packet ECN marks
3273*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_OVERLIMIT: number of drops due to queue space overflow
3274*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_OVERMEMORY: number of drops due to memory limit overflow
3275*a1157835SDaniel Fojt  *      (only for per-phy stats)
3276*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_COLLISIONS: number of hash collisions
3277*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_TX_BYTES: total number of bytes dequeued from TXQ
3278*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_TX_PACKETS: total number of packets dequeued from TXQ
3279*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_MAX_FLOWS: number of flow buckets for PHY
3280*a1157835SDaniel Fojt  * @NL80211_TXQ_STATS_MAX: highest numbered attribute here
3281*a1157835SDaniel Fojt  */
3282*a1157835SDaniel Fojt enum nl80211_txq_stats {
3283*a1157835SDaniel Fojt 	__NL80211_TXQ_STATS_INVALID,
3284*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_BACKLOG_BYTES,
3285*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_BACKLOG_PACKETS,
3286*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_FLOWS,
3287*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_DROPS,
3288*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_ECN_MARKS,
3289*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_OVERLIMIT,
3290*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_OVERMEMORY,
3291*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_COLLISIONS,
3292*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_TX_BYTES,
3293*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_TX_PACKETS,
3294*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_MAX_FLOWS,
3295*a1157835SDaniel Fojt 
3296*a1157835SDaniel Fojt 	/* keep last */
3297*a1157835SDaniel Fojt 	NUM_NL80211_TXQ_STATS,
3298*a1157835SDaniel Fojt 	NL80211_TXQ_STATS_MAX = NUM_NL80211_TXQ_STATS - 1
3299*a1157835SDaniel Fojt };
3300*a1157835SDaniel Fojt 
33013ff40c12SJohn Marino /**
33023ff40c12SJohn Marino  * enum nl80211_mpath_flags - nl80211 mesh path flags
33033ff40c12SJohn Marino  *
33043ff40c12SJohn Marino  * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active
33053ff40c12SJohn Marino  * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running
33063ff40c12SJohn Marino  * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN
33073ff40c12SJohn Marino  * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set
33083ff40c12SJohn Marino  * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded
33093ff40c12SJohn Marino  */
33103ff40c12SJohn Marino enum nl80211_mpath_flags {
33113ff40c12SJohn Marino 	NL80211_MPATH_FLAG_ACTIVE =	1<<0,
33123ff40c12SJohn Marino 	NL80211_MPATH_FLAG_RESOLVING =	1<<1,
33133ff40c12SJohn Marino 	NL80211_MPATH_FLAG_SN_VALID =	1<<2,
33143ff40c12SJohn Marino 	NL80211_MPATH_FLAG_FIXED =	1<<3,
33153ff40c12SJohn Marino 	NL80211_MPATH_FLAG_RESOLVED =	1<<4,
33163ff40c12SJohn Marino };
33173ff40c12SJohn Marino 
33183ff40c12SJohn Marino /**
33193ff40c12SJohn Marino  * enum nl80211_mpath_info - mesh path information
33203ff40c12SJohn Marino  *
33213ff40c12SJohn Marino  * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting
33223ff40c12SJohn Marino  * information about a mesh path.
33233ff40c12SJohn Marino  *
33243ff40c12SJohn Marino  * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved
33253ff40c12SJohn Marino  * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination
33263ff40c12SJohn Marino  * @NL80211_MPATH_INFO_SN: destination sequence number
33273ff40c12SJohn Marino  * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path
33283ff40c12SJohn Marino  * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now
33293ff40c12SJohn Marino  * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in
33303ff40c12SJohn Marino  * 	&enum nl80211_mpath_flags;
33313ff40c12SJohn Marino  * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
33323ff40c12SJohn Marino  * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries
3333*a1157835SDaniel Fojt  * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination
3334*a1157835SDaniel Fojt  * @NL80211_MPATH_INFO_PATH_CHANGE: total number of path changes to destination
33353ff40c12SJohn Marino  * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number
3336*a1157835SDaniel Fojt  *	currently defined
33373ff40c12SJohn Marino  * @__NL80211_MPATH_INFO_AFTER_LAST: internal use
33383ff40c12SJohn Marino  */
33393ff40c12SJohn Marino enum nl80211_mpath_info {
33403ff40c12SJohn Marino 	__NL80211_MPATH_INFO_INVALID,
33413ff40c12SJohn Marino 	NL80211_MPATH_INFO_FRAME_QLEN,
33423ff40c12SJohn Marino 	NL80211_MPATH_INFO_SN,
33433ff40c12SJohn Marino 	NL80211_MPATH_INFO_METRIC,
33443ff40c12SJohn Marino 	NL80211_MPATH_INFO_EXPTIME,
33453ff40c12SJohn Marino 	NL80211_MPATH_INFO_FLAGS,
33463ff40c12SJohn Marino 	NL80211_MPATH_INFO_DISCOVERY_TIMEOUT,
33473ff40c12SJohn Marino 	NL80211_MPATH_INFO_DISCOVERY_RETRIES,
3348*a1157835SDaniel Fojt 	NL80211_MPATH_INFO_HOP_COUNT,
3349*a1157835SDaniel Fojt 	NL80211_MPATH_INFO_PATH_CHANGE,
33503ff40c12SJohn Marino 
33513ff40c12SJohn Marino 	/* keep last */
33523ff40c12SJohn Marino 	__NL80211_MPATH_INFO_AFTER_LAST,
33533ff40c12SJohn Marino 	NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1
33543ff40c12SJohn Marino };
33553ff40c12SJohn Marino 
33563ff40c12SJohn Marino /**
3357*a1157835SDaniel Fojt  * enum nl80211_band_iftype_attr - Interface type data attributes
3358*a1157835SDaniel Fojt  *
3359*a1157835SDaniel Fojt  * @__NL80211_BAND_IFTYPE_ATTR_INVALID: attribute number 0 is reserved
3360*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_IFTYPES: nested attribute containing a flag attribute
3361*a1157835SDaniel Fojt  *     for each interface type that supports the band data
3362*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC: HE MAC capabilities as in HE
3363*a1157835SDaniel Fojt  *     capabilities IE
3364*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY: HE PHY capabilities as in HE
3365*a1157835SDaniel Fojt  *     capabilities IE
3366*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET: HE supported NSS/MCS as in HE
3367*a1157835SDaniel Fojt  *     capabilities IE
3368*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE: HE PPE thresholds information as
3369*a1157835SDaniel Fojt  *     defined in HE capabilities IE
3370*a1157835SDaniel Fojt  * @NL80211_BAND_IFTYPE_ATTR_MAX: highest band HE capability attribute currently
3371*a1157835SDaniel Fojt  *     defined
3372*a1157835SDaniel Fojt  * @__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST: internal use
3373*a1157835SDaniel Fojt  */
3374*a1157835SDaniel Fojt enum nl80211_band_iftype_attr {
3375*a1157835SDaniel Fojt 	__NL80211_BAND_IFTYPE_ATTR_INVALID,
3376*a1157835SDaniel Fojt 
3377*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_IFTYPES,
3378*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC,
3379*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY,
3380*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET,
3381*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE,
3382*a1157835SDaniel Fojt 
3383*a1157835SDaniel Fojt 	/* keep last */
3384*a1157835SDaniel Fojt 	__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST,
3385*a1157835SDaniel Fojt 	NL80211_BAND_IFTYPE_ATTR_MAX = __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST - 1
3386*a1157835SDaniel Fojt };
3387*a1157835SDaniel Fojt 
3388*a1157835SDaniel Fojt /**
33893ff40c12SJohn Marino  * enum nl80211_band_attr - band attributes
33903ff40c12SJohn Marino  * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved
33913ff40c12SJohn Marino  * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band,
33923ff40c12SJohn Marino  *	an array of nested frequency attributes
33933ff40c12SJohn Marino  * @NL80211_BAND_ATTR_RATES: supported bitrates in this band,
33943ff40c12SJohn Marino  *	an array of nested bitrate attributes
33953ff40c12SJohn Marino  * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as
33963ff40c12SJohn Marino  *	defined in 802.11n
33973ff40c12SJohn Marino  * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE
33983ff40c12SJohn Marino  * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n
33993ff40c12SJohn Marino  * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n
34003ff40c12SJohn Marino  * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as
34013ff40c12SJohn Marino  *	defined in 802.11ac
34023ff40c12SJohn Marino  * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE
3403*a1157835SDaniel Fojt  * @NL80211_BAND_ATTR_IFTYPE_DATA: nested array attribute, with each entry using
3404*a1157835SDaniel Fojt  *	attributes from &enum nl80211_band_iftype_attr
34053ff40c12SJohn Marino  * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined
34063ff40c12SJohn Marino  * @__NL80211_BAND_ATTR_AFTER_LAST: internal use
34073ff40c12SJohn Marino  */
34083ff40c12SJohn Marino enum nl80211_band_attr {
34093ff40c12SJohn Marino 	__NL80211_BAND_ATTR_INVALID,
34103ff40c12SJohn Marino 	NL80211_BAND_ATTR_FREQS,
34113ff40c12SJohn Marino 	NL80211_BAND_ATTR_RATES,
34123ff40c12SJohn Marino 
34133ff40c12SJohn Marino 	NL80211_BAND_ATTR_HT_MCS_SET,
34143ff40c12SJohn Marino 	NL80211_BAND_ATTR_HT_CAPA,
34153ff40c12SJohn Marino 	NL80211_BAND_ATTR_HT_AMPDU_FACTOR,
34163ff40c12SJohn Marino 	NL80211_BAND_ATTR_HT_AMPDU_DENSITY,
34173ff40c12SJohn Marino 
34183ff40c12SJohn Marino 	NL80211_BAND_ATTR_VHT_MCS_SET,
34193ff40c12SJohn Marino 	NL80211_BAND_ATTR_VHT_CAPA,
3420*a1157835SDaniel Fojt 	NL80211_BAND_ATTR_IFTYPE_DATA,
34213ff40c12SJohn Marino 
34223ff40c12SJohn Marino 	/* keep last */
34233ff40c12SJohn Marino 	__NL80211_BAND_ATTR_AFTER_LAST,
34243ff40c12SJohn Marino 	NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
34253ff40c12SJohn Marino };
34263ff40c12SJohn Marino 
34273ff40c12SJohn Marino #define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA
34283ff40c12SJohn Marino 
34293ff40c12SJohn Marino /**
3430*a1157835SDaniel Fojt  * enum nl80211_wmm_rule - regulatory wmm rule
3431*a1157835SDaniel Fojt  *
3432*a1157835SDaniel Fojt  * @__NL80211_WMMR_INVALID: attribute number 0 is reserved
3433*a1157835SDaniel Fojt  * @NL80211_WMMR_CW_MIN: Minimum contention window slot.
3434*a1157835SDaniel Fojt  * @NL80211_WMMR_CW_MAX: Maximum contention window slot.
3435*a1157835SDaniel Fojt  * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space.
3436*a1157835SDaniel Fojt  * @NL80211_WMMR_TXOP: Maximum allowed tx operation time.
3437*a1157835SDaniel Fojt  * @nl80211_WMMR_MAX: highest possible wmm rule.
3438*a1157835SDaniel Fojt  * @__NL80211_WMMR_LAST: Internal use.
3439*a1157835SDaniel Fojt  */
3440*a1157835SDaniel Fojt enum nl80211_wmm_rule {
3441*a1157835SDaniel Fojt 	__NL80211_WMMR_INVALID,
3442*a1157835SDaniel Fojt 	NL80211_WMMR_CW_MIN,
3443*a1157835SDaniel Fojt 	NL80211_WMMR_CW_MAX,
3444*a1157835SDaniel Fojt 	NL80211_WMMR_AIFSN,
3445*a1157835SDaniel Fojt 	NL80211_WMMR_TXOP,
3446*a1157835SDaniel Fojt 
3447*a1157835SDaniel Fojt 	/* keep last */
3448*a1157835SDaniel Fojt 	__NL80211_WMMR_LAST,
3449*a1157835SDaniel Fojt 	NL80211_WMMR_MAX = __NL80211_WMMR_LAST - 1
3450*a1157835SDaniel Fojt };
3451*a1157835SDaniel Fojt 
3452*a1157835SDaniel Fojt /**
34533ff40c12SJohn Marino  * enum nl80211_frequency_attr - frequency attributes
34543ff40c12SJohn Marino  * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved
34553ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
34563ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
34573ff40c12SJohn Marino  *	regulatory domain.
34583ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation
34593ff40c12SJohn Marino  * 	are permitted on this channel, this includes sending probe
34603ff40c12SJohn Marino  * 	requests, or modes of operation that require beaconing.
34613ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
34623ff40c12SJohn Marino  *	on this channel in current regulatory domain.
34633ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
34643ff40c12SJohn Marino  *	(100 * dBm).
34653ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS
34663ff40c12SJohn Marino  *	(enum nl80211_dfs_state)
34673ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long
34683ff40c12SJohn Marino  *	this channel is in this DFS state.
34693ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this
34703ff40c12SJohn Marino  *	channel as the control channel
34713ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this
34723ff40c12SJohn Marino  *	channel as the control channel
34733ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel
34743ff40c12SJohn Marino  *	as the primary or any of the secondary channels isn't possible,
34753ff40c12SJohn Marino  *	this includes 80+80 channels
34763ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel
34773ff40c12SJohn Marino  *	using this channel as the primary or any of the secondary channels
34783ff40c12SJohn Marino  *	isn't possible
3479*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
3480*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this
3481*a1157835SDaniel Fojt  *	channel. A channel that has the INDOOR_ONLY attribute can only be
3482*a1157835SDaniel Fojt  *	used when there is a clear assessment that the device is operating in
3483*a1157835SDaniel Fojt  *	an indoor surroundings, i.e., it is connected to AC power (and not
3484*a1157835SDaniel Fojt  *	through portable DC inverters) or is under the control of a master
3485*a1157835SDaniel Fojt  *	that is acting as an AP and is connected to AC power.
3486*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this
3487*a1157835SDaniel Fojt  *	channel if it's connected concurrently to a BSS on the same channel on
3488*a1157835SDaniel Fojt  *	the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
3489*a1157835SDaniel Fojt  *	band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS
3490*a1157835SDaniel Fojt  *	off-channel on a channel that has the IR_CONCURRENT attribute set can be
3491*a1157835SDaniel Fojt  *	done when there is a clear assessment that the device is operating under
3492*a1157835SDaniel Fojt  *	the guidance of an authorized master, i.e., setting up a GO or TDLS
3493*a1157835SDaniel Fojt  *	off-channel while the device is also connected to an AP with DFS and
3494*a1157835SDaniel Fojt  *	radar detection on the UNII band (it is up to user-space, i.e.,
3495*a1157835SDaniel Fojt  *	wpa_supplicant to perform the required verifications). Using this
3496*a1157835SDaniel Fojt  *	attribute for IR is disallowed for master interfaces (IBSS, AP).
3497*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
3498*a1157835SDaniel Fojt  *	on this channel in current regulatory domain.
3499*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
3500*a1157835SDaniel Fojt  *	on this channel in current regulatory domain.
3501*a1157835SDaniel Fojt  * @NL80211_FREQUENCY_ATTR_WMM: this channel has wmm limitations.
3502*a1157835SDaniel Fojt  *	This is a nested attribute that contains the wmm limitation per AC.
3503*a1157835SDaniel Fojt  *	(see &enum nl80211_wmm_rule)
35043ff40c12SJohn Marino  * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
35053ff40c12SJohn Marino  *	currently defined
35063ff40c12SJohn Marino  * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
3507*a1157835SDaniel Fojt  *
3508*a1157835SDaniel Fojt  * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
3509*a1157835SDaniel Fojt  * for more information on the FCC description of the relaxations allowed
3510*a1157835SDaniel Fojt  * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
3511*a1157835SDaniel Fojt  * NL80211_FREQUENCY_ATTR_IR_CONCURRENT.
35123ff40c12SJohn Marino  */
35133ff40c12SJohn Marino enum nl80211_frequency_attr {
35143ff40c12SJohn Marino 	__NL80211_FREQUENCY_ATTR_INVALID,
35153ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_FREQ,
35163ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_DISABLED,
35173ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_NO_IR,
35183ff40c12SJohn Marino 	__NL80211_FREQUENCY_ATTR_NO_IBSS,
35193ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_RADAR,
35203ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
35213ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_DFS_STATE,
35223ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_DFS_TIME,
35233ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_NO_HT40_MINUS,
35243ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_NO_HT40_PLUS,
35253ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_NO_80MHZ,
35263ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_NO_160MHZ,
3527*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
3528*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
3529*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_IR_CONCURRENT,
3530*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_NO_20MHZ,
3531*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_NO_10MHZ,
3532*a1157835SDaniel Fojt 	NL80211_FREQUENCY_ATTR_WMM,
35333ff40c12SJohn Marino 
35343ff40c12SJohn Marino 	/* keep last */
35353ff40c12SJohn Marino 	__NL80211_FREQUENCY_ATTR_AFTER_LAST,
35363ff40c12SJohn Marino 	NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
35373ff40c12SJohn Marino };
35383ff40c12SJohn Marino 
35393ff40c12SJohn Marino #define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
35403ff40c12SJohn Marino #define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN	NL80211_FREQUENCY_ATTR_NO_IR
35413ff40c12SJohn Marino #define NL80211_FREQUENCY_ATTR_NO_IBSS		NL80211_FREQUENCY_ATTR_NO_IR
35423ff40c12SJohn Marino #define NL80211_FREQUENCY_ATTR_NO_IR		NL80211_FREQUENCY_ATTR_NO_IR
3543*a1157835SDaniel Fojt #define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \
3544*a1157835SDaniel Fojt 					NL80211_FREQUENCY_ATTR_IR_CONCURRENT
35453ff40c12SJohn Marino 
35463ff40c12SJohn Marino /**
35473ff40c12SJohn Marino  * enum nl80211_bitrate_attr - bitrate attributes
35483ff40c12SJohn Marino  * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved
35493ff40c12SJohn Marino  * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
35503ff40c12SJohn Marino  * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
35513ff40c12SJohn Marino  *	in 2.4 GHz band.
35523ff40c12SJohn Marino  * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number
35533ff40c12SJohn Marino  *	currently defined
35543ff40c12SJohn Marino  * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use
35553ff40c12SJohn Marino  */
35563ff40c12SJohn Marino enum nl80211_bitrate_attr {
35573ff40c12SJohn Marino 	__NL80211_BITRATE_ATTR_INVALID,
35583ff40c12SJohn Marino 	NL80211_BITRATE_ATTR_RATE,
35593ff40c12SJohn Marino 	NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
35603ff40c12SJohn Marino 
35613ff40c12SJohn Marino 	/* keep last */
35623ff40c12SJohn Marino 	__NL80211_BITRATE_ATTR_AFTER_LAST,
35633ff40c12SJohn Marino 	NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
35643ff40c12SJohn Marino };
35653ff40c12SJohn Marino 
35663ff40c12SJohn Marino /**
35673ff40c12SJohn Marino  * enum nl80211_initiator - Indicates the initiator of a reg domain request
35683ff40c12SJohn Marino  * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world
35693ff40c12SJohn Marino  * 	regulatory domain.
35703ff40c12SJohn Marino  * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the
35713ff40c12SJohn Marino  * 	regulatory domain.
35723ff40c12SJohn Marino  * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the
35733ff40c12SJohn Marino  * 	wireless core it thinks its knows the regulatory domain we should be in.
35743ff40c12SJohn Marino  * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an
35753ff40c12SJohn Marino  * 	802.11 country information element with regulatory information it
35763ff40c12SJohn Marino  * 	thinks we should consider. cfg80211 only processes the country
35773ff40c12SJohn Marino  *	code from the IE, and relies on the regulatory domain information
35783ff40c12SJohn Marino  *	structure passed by userspace (CRDA) from our wireless-regdb.
35793ff40c12SJohn Marino  *	If a channel is enabled but the country code indicates it should
35803ff40c12SJohn Marino  *	be disabled we disable the channel and re-enable it upon disassociation.
35813ff40c12SJohn Marino  */
35823ff40c12SJohn Marino enum nl80211_reg_initiator {
35833ff40c12SJohn Marino 	NL80211_REGDOM_SET_BY_CORE,
35843ff40c12SJohn Marino 	NL80211_REGDOM_SET_BY_USER,
35853ff40c12SJohn Marino 	NL80211_REGDOM_SET_BY_DRIVER,
35863ff40c12SJohn Marino 	NL80211_REGDOM_SET_BY_COUNTRY_IE,
35873ff40c12SJohn Marino };
35883ff40c12SJohn Marino 
35893ff40c12SJohn Marino /**
35903ff40c12SJohn Marino  * enum nl80211_reg_type - specifies the type of regulatory domain
35913ff40c12SJohn Marino  * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains
35923ff40c12SJohn Marino  *	to a specific country. When this is set you can count on the
35933ff40c12SJohn Marino  *	ISO / IEC 3166 alpha2 country code being valid.
35943ff40c12SJohn Marino  * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory
35953ff40c12SJohn Marino  * 	domain.
35963ff40c12SJohn Marino  * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom
35973ff40c12SJohn Marino  * 	driver specific world regulatory domain. These do not apply system-wide
35983ff40c12SJohn Marino  * 	and are only applicable to the individual devices which have requested
35993ff40c12SJohn Marino  * 	them to be applied.
36003ff40c12SJohn Marino  * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product
36013ff40c12SJohn Marino  *	of an intersection between two regulatory domains -- the previously
36023ff40c12SJohn Marino  *	set regulatory domain on the system and the last accepted regulatory
36033ff40c12SJohn Marino  *	domain request to be processed.
36043ff40c12SJohn Marino  */
36053ff40c12SJohn Marino enum nl80211_reg_type {
36063ff40c12SJohn Marino 	NL80211_REGDOM_TYPE_COUNTRY,
36073ff40c12SJohn Marino 	NL80211_REGDOM_TYPE_WORLD,
36083ff40c12SJohn Marino 	NL80211_REGDOM_TYPE_CUSTOM_WORLD,
36093ff40c12SJohn Marino 	NL80211_REGDOM_TYPE_INTERSECTION,
36103ff40c12SJohn Marino };
36113ff40c12SJohn Marino 
36123ff40c12SJohn Marino /**
36133ff40c12SJohn Marino  * enum nl80211_reg_rule_attr - regulatory rule attributes
36143ff40c12SJohn Marino  * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved
36153ff40c12SJohn Marino  * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
36163ff40c12SJohn Marino  * 	considerations for a given frequency range. These are the
36173ff40c12SJohn Marino  * 	&enum nl80211_reg_rule_flags.
36183ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory
36193ff40c12SJohn Marino  * 	rule in KHz. This is not a center of frequency but an actual regulatory
36203ff40c12SJohn Marino  * 	band edge.
36213ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule
36223ff40c12SJohn Marino  * 	in KHz. This is not a center a frequency but an actual regulatory
36233ff40c12SJohn Marino  * 	band edge.
36243ff40c12SJohn Marino  * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
36253ff40c12SJohn Marino  *	frequency range, in KHz.
36263ff40c12SJohn Marino  * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
36273ff40c12SJohn Marino  * 	for a given frequency range. The value is in mBi (100 * dBi).
36283ff40c12SJohn Marino  * 	If you don't have one then don't send this.
36293ff40c12SJohn Marino  * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
36303ff40c12SJohn Marino  * 	a given frequency range. The value is in mBm (100 * dBm).
3631*a1157835SDaniel Fojt  * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
3632*a1157835SDaniel Fojt  *	If not present or 0 default CAC time will be used.
36333ff40c12SJohn Marino  * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
36343ff40c12SJohn Marino  *	currently defined
36353ff40c12SJohn Marino  * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
36363ff40c12SJohn Marino  */
36373ff40c12SJohn Marino enum nl80211_reg_rule_attr {
36383ff40c12SJohn Marino 	__NL80211_REG_RULE_ATTR_INVALID,
36393ff40c12SJohn Marino 	NL80211_ATTR_REG_RULE_FLAGS,
36403ff40c12SJohn Marino 
36413ff40c12SJohn Marino 	NL80211_ATTR_FREQ_RANGE_START,
36423ff40c12SJohn Marino 	NL80211_ATTR_FREQ_RANGE_END,
36433ff40c12SJohn Marino 	NL80211_ATTR_FREQ_RANGE_MAX_BW,
36443ff40c12SJohn Marino 
36453ff40c12SJohn Marino 	NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
36463ff40c12SJohn Marino 	NL80211_ATTR_POWER_RULE_MAX_EIRP,
36473ff40c12SJohn Marino 
3648*a1157835SDaniel Fojt 	NL80211_ATTR_DFS_CAC_TIME,
3649*a1157835SDaniel Fojt 
36503ff40c12SJohn Marino 	/* keep last */
36513ff40c12SJohn Marino 	__NL80211_REG_RULE_ATTR_AFTER_LAST,
36523ff40c12SJohn Marino 	NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
36533ff40c12SJohn Marino };
36543ff40c12SJohn Marino 
36553ff40c12SJohn Marino /**
36563ff40c12SJohn Marino  * enum nl80211_sched_scan_match_attr - scheduled scan match attributes
36573ff40c12SJohn Marino  * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
36583ff40c12SJohn Marino  * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
36593ff40c12SJohn Marino  *	only report BSS with matching SSID.
3660*a1157835SDaniel Fojt  *	(This cannot be used together with BSSID.)
36613ff40c12SJohn Marino  * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
3662*a1157835SDaniel Fojt  *	BSS in scan results. Filtering is turned off if not specified. Note that
3663*a1157835SDaniel Fojt  *	if this attribute is in a match set of its own, then it is treated as
3664*a1157835SDaniel Fojt  *	the default value for all matchsets with an SSID, rather than being a
3665*a1157835SDaniel Fojt  *	matchset of its own without an RSSI filter. This is due to problems with
3666*a1157835SDaniel Fojt  *	how this API was implemented in the past. Also, due to the same problem,
3667*a1157835SDaniel Fojt  *	the only way to create a matchset with only an RSSI filter (with this
3668*a1157835SDaniel Fojt  *	attribute) is if there's only a single matchset with the RSSI attribute.
3669*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI: Flag indicating whether
3670*a1157835SDaniel Fojt  *	%NL80211_SCHED_SCAN_MATCH_ATTR_RSSI to be used as absolute RSSI or
3671*a1157835SDaniel Fojt  *	relative to current bss's RSSI.
3672*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST: When present the RSSI level for
3673*a1157835SDaniel Fojt  *	BSS-es in the specified band is to be adjusted before doing
3674*a1157835SDaniel Fojt  *	RSSI-based BSS selection. The attribute value is a packed structure
3675*a1157835SDaniel Fojt  *	value as specified by &struct nl80211_bss_select_rssi_adjust.
3676*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching
3677*a1157835SDaniel Fojt  *	(this cannot be used together with SSID).
3678*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the
3679*a1157835SDaniel Fojt  *	band specific minimum rssi thresholds for the bands defined in
3680*a1157835SDaniel Fojt  *	enum nl80211_band. The minimum rssi threshold value(s32) specific to a
3681*a1157835SDaniel Fojt  *	band shall be encapsulated in attribute with type value equals to one
3682*a1157835SDaniel Fojt  *	of the NL80211_BAND_* defined in enum nl80211_band. For example, the
3683*a1157835SDaniel Fojt  *	minimum rssi threshold value for 2.4GHZ band shall be encapsulated
3684*a1157835SDaniel Fojt  *	within an attribute of type NL80211_BAND_2GHZ. And one or more of such
3685*a1157835SDaniel Fojt  *	attributes will be nested within this attribute.
36863ff40c12SJohn Marino  * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
36873ff40c12SJohn Marino  *	attribute number currently defined
36883ff40c12SJohn Marino  * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
36893ff40c12SJohn Marino  */
36903ff40c12SJohn Marino enum nl80211_sched_scan_match_attr {
36913ff40c12SJohn Marino 	__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID,
36923ff40c12SJohn Marino 
36933ff40c12SJohn Marino 	NL80211_SCHED_SCAN_MATCH_ATTR_SSID,
36943ff40c12SJohn Marino 	NL80211_SCHED_SCAN_MATCH_ATTR_RSSI,
3695*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI,
3696*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST,
3697*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_MATCH_ATTR_BSSID,
3698*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI,
36993ff40c12SJohn Marino 
37003ff40c12SJohn Marino 	/* keep last */
37013ff40c12SJohn Marino 	__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST,
37023ff40c12SJohn Marino 	NL80211_SCHED_SCAN_MATCH_ATTR_MAX =
37033ff40c12SJohn Marino 		__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1
37043ff40c12SJohn Marino };
37053ff40c12SJohn Marino 
37063ff40c12SJohn Marino /* only for backward compatibility */
37073ff40c12SJohn Marino #define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID
37083ff40c12SJohn Marino 
37093ff40c12SJohn Marino /**
37103ff40c12SJohn Marino  * enum nl80211_reg_rule_flags - regulatory rule flags
37113ff40c12SJohn Marino  *
37123ff40c12SJohn Marino  * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed
37133ff40c12SJohn Marino  * @NL80211_RRF_NO_CCK: CCK modulation not allowed
37143ff40c12SJohn Marino  * @NL80211_RRF_NO_INDOOR: indoor operation not allowed
37153ff40c12SJohn Marino  * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed
37163ff40c12SJohn Marino  * @NL80211_RRF_DFS: DFS support is required to be used
37173ff40c12SJohn Marino  * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
37183ff40c12SJohn Marino  * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
37193ff40c12SJohn Marino  * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed,
37203ff40c12SJohn Marino  * 	this includes probe requests or modes of operation that require
37213ff40c12SJohn Marino  * 	beaconing.
3722*a1157835SDaniel Fojt  * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
3723*a1157835SDaniel Fojt  *	base on contiguous rules and wider channels will be allowed to cross
3724*a1157835SDaniel Fojt  *	multiple contiguous/overlapping frequency ranges.
3725*a1157835SDaniel Fojt  * @NL80211_RRF_IR_CONCURRENT: See %NL80211_FREQUENCY_ATTR_IR_CONCURRENT
3726*a1157835SDaniel Fojt  * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation
3727*a1157835SDaniel Fojt  * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation
3728*a1157835SDaniel Fojt  * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed
3729*a1157835SDaniel Fojt  * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed
37303ff40c12SJohn Marino  */
37313ff40c12SJohn Marino enum nl80211_reg_rule_flags {
37323ff40c12SJohn Marino 	NL80211_RRF_NO_OFDM		= 1<<0,
37333ff40c12SJohn Marino 	NL80211_RRF_NO_CCK		= 1<<1,
37343ff40c12SJohn Marino 	NL80211_RRF_NO_INDOOR		= 1<<2,
37353ff40c12SJohn Marino 	NL80211_RRF_NO_OUTDOOR		= 1<<3,
37363ff40c12SJohn Marino 	NL80211_RRF_DFS			= 1<<4,
37373ff40c12SJohn Marino 	NL80211_RRF_PTP_ONLY		= 1<<5,
37383ff40c12SJohn Marino 	NL80211_RRF_PTMP_ONLY		= 1<<6,
37393ff40c12SJohn Marino 	NL80211_RRF_NO_IR		= 1<<7,
37403ff40c12SJohn Marino 	__NL80211_RRF_NO_IBSS		= 1<<8,
3741*a1157835SDaniel Fojt 	NL80211_RRF_AUTO_BW		= 1<<11,
3742*a1157835SDaniel Fojt 	NL80211_RRF_IR_CONCURRENT	= 1<<12,
3743*a1157835SDaniel Fojt 	NL80211_RRF_NO_HT40MINUS	= 1<<13,
3744*a1157835SDaniel Fojt 	NL80211_RRF_NO_HT40PLUS		= 1<<14,
3745*a1157835SDaniel Fojt 	NL80211_RRF_NO_80MHZ		= 1<<15,
3746*a1157835SDaniel Fojt 	NL80211_RRF_NO_160MHZ		= 1<<16,
37473ff40c12SJohn Marino };
37483ff40c12SJohn Marino 
37493ff40c12SJohn Marino #define NL80211_RRF_PASSIVE_SCAN	NL80211_RRF_NO_IR
37503ff40c12SJohn Marino #define NL80211_RRF_NO_IBSS		NL80211_RRF_NO_IR
37513ff40c12SJohn Marino #define NL80211_RRF_NO_IR		NL80211_RRF_NO_IR
3752*a1157835SDaniel Fojt #define NL80211_RRF_NO_HT40		(NL80211_RRF_NO_HT40MINUS |\
3753*a1157835SDaniel Fojt 					 NL80211_RRF_NO_HT40PLUS)
3754*a1157835SDaniel Fojt #define NL80211_RRF_GO_CONCURRENT	NL80211_RRF_IR_CONCURRENT
37553ff40c12SJohn Marino 
37563ff40c12SJohn Marino /* For backport compatibility with older userspace */
37573ff40c12SJohn Marino #define NL80211_RRF_NO_IR_ALL		(NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
37583ff40c12SJohn Marino 
37593ff40c12SJohn Marino /**
37603ff40c12SJohn Marino  * enum nl80211_dfs_regions - regulatory DFS regions
37613ff40c12SJohn Marino  *
37623ff40c12SJohn Marino  * @NL80211_DFS_UNSET: Country has no DFS master region specified
37633ff40c12SJohn Marino  * @NL80211_DFS_FCC: Country follows DFS master rules from FCC
37643ff40c12SJohn Marino  * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI
37653ff40c12SJohn Marino  * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec
37663ff40c12SJohn Marino  */
37673ff40c12SJohn Marino enum nl80211_dfs_regions {
37683ff40c12SJohn Marino 	NL80211_DFS_UNSET	= 0,
37693ff40c12SJohn Marino 	NL80211_DFS_FCC		= 1,
37703ff40c12SJohn Marino 	NL80211_DFS_ETSI	= 2,
37713ff40c12SJohn Marino 	NL80211_DFS_JP		= 3,
37723ff40c12SJohn Marino };
37733ff40c12SJohn Marino 
37743ff40c12SJohn Marino /**
37753ff40c12SJohn Marino  * enum nl80211_user_reg_hint_type - type of user regulatory hint
37763ff40c12SJohn Marino  *
37773ff40c12SJohn Marino  * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always
37783ff40c12SJohn Marino  *	assumed if the attribute is not set.
37793ff40c12SJohn Marino  * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular
37803ff40c12SJohn Marino  *	base station. Device drivers that have been tested to work
37813ff40c12SJohn Marino  *	properly to support this type of hint can enable these hints
37823ff40c12SJohn Marino  *	by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature
37833ff40c12SJohn Marino  *	capability on the struct wiphy. The wireless core will
37843ff40c12SJohn Marino  *	ignore all cell base station hints until at least one device
37853ff40c12SJohn Marino  *	present has been registered with the wireless core that
37863ff40c12SJohn Marino  *	has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a
37873ff40c12SJohn Marino  *	supported feature.
3788*a1157835SDaniel Fojt  * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the
3789*a1157835SDaniel Fojt  *	platform is operating in an indoor environment.
37903ff40c12SJohn Marino  */
37913ff40c12SJohn Marino enum nl80211_user_reg_hint_type {
37923ff40c12SJohn Marino 	NL80211_USER_REG_HINT_USER	= 0,
37933ff40c12SJohn Marino 	NL80211_USER_REG_HINT_CELL_BASE = 1,
3794*a1157835SDaniel Fojt 	NL80211_USER_REG_HINT_INDOOR    = 2,
37953ff40c12SJohn Marino };
37963ff40c12SJohn Marino 
37973ff40c12SJohn Marino /**
37983ff40c12SJohn Marino  * enum nl80211_survey_info - survey information
37993ff40c12SJohn Marino  *
38003ff40c12SJohn Marino  * These attribute types are used with %NL80211_ATTR_SURVEY_INFO
38013ff40c12SJohn Marino  * when getting information about a survey.
38023ff40c12SJohn Marino  *
38033ff40c12SJohn Marino  * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved
38043ff40c12SJohn Marino  * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel
38053ff40c12SJohn Marino  * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm)
38063ff40c12SJohn Marino  * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used
3807*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio
3808*a1157835SDaniel Fojt  *	was turned on (on channel or globally)
3809*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary
38103ff40c12SJohn Marino  *	channel was sensed busy (either due to activity or energy detect)
3811*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension
38123ff40c12SJohn Marino  *	channel was sensed busy
3813*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent
3814*a1157835SDaniel Fojt  *	receiving data (on channel or globally)
3815*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent
3816*a1157835SDaniel Fojt  *	transmitting data (on channel or globally)
3817*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan
3818*a1157835SDaniel Fojt  *	(on this channel or globally)
3819*a1157835SDaniel Fojt  * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment
38203ff40c12SJohn Marino  * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
38213ff40c12SJohn Marino  *	currently defined
38223ff40c12SJohn Marino  * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
38233ff40c12SJohn Marino  */
38243ff40c12SJohn Marino enum nl80211_survey_info {
38253ff40c12SJohn Marino 	__NL80211_SURVEY_INFO_INVALID,
38263ff40c12SJohn Marino 	NL80211_SURVEY_INFO_FREQUENCY,
38273ff40c12SJohn Marino 	NL80211_SURVEY_INFO_NOISE,
38283ff40c12SJohn Marino 	NL80211_SURVEY_INFO_IN_USE,
3829*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME,
3830*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME_BUSY,
3831*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME_EXT_BUSY,
3832*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME_RX,
3833*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME_TX,
3834*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_TIME_SCAN,
3835*a1157835SDaniel Fojt 	NL80211_SURVEY_INFO_PAD,
38363ff40c12SJohn Marino 
38373ff40c12SJohn Marino 	/* keep last */
38383ff40c12SJohn Marino 	__NL80211_SURVEY_INFO_AFTER_LAST,
38393ff40c12SJohn Marino 	NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1
38403ff40c12SJohn Marino };
38413ff40c12SJohn Marino 
3842*a1157835SDaniel Fojt /* keep old names for compatibility */
3843*a1157835SDaniel Fojt #define NL80211_SURVEY_INFO_CHANNEL_TIME		NL80211_SURVEY_INFO_TIME
3844*a1157835SDaniel Fojt #define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY		NL80211_SURVEY_INFO_TIME_BUSY
3845*a1157835SDaniel Fojt #define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY	NL80211_SURVEY_INFO_TIME_EXT_BUSY
3846*a1157835SDaniel Fojt #define NL80211_SURVEY_INFO_CHANNEL_TIME_RX		NL80211_SURVEY_INFO_TIME_RX
3847*a1157835SDaniel Fojt #define NL80211_SURVEY_INFO_CHANNEL_TIME_TX		NL80211_SURVEY_INFO_TIME_TX
3848*a1157835SDaniel Fojt 
38493ff40c12SJohn Marino /**
38503ff40c12SJohn Marino  * enum nl80211_mntr_flags - monitor configuration flags
38513ff40c12SJohn Marino  *
38523ff40c12SJohn Marino  * Monitor configuration flags.
38533ff40c12SJohn Marino  *
38543ff40c12SJohn Marino  * @__NL80211_MNTR_FLAG_INVALID: reserved
38553ff40c12SJohn Marino  *
38563ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
38573ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
38583ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_CONTROL: pass control frames
38593ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
38603ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
38613ff40c12SJohn Marino  *	overrides all other flags.
38623ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
38633ff40c12SJohn Marino  *	and ACK incoming unicast packets.
38643ff40c12SJohn Marino  *
38653ff40c12SJohn Marino  * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
38663ff40c12SJohn Marino  * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
38673ff40c12SJohn Marino  */
38683ff40c12SJohn Marino enum nl80211_mntr_flags {
38693ff40c12SJohn Marino 	__NL80211_MNTR_FLAG_INVALID,
38703ff40c12SJohn Marino 	NL80211_MNTR_FLAG_FCSFAIL,
38713ff40c12SJohn Marino 	NL80211_MNTR_FLAG_PLCPFAIL,
38723ff40c12SJohn Marino 	NL80211_MNTR_FLAG_CONTROL,
38733ff40c12SJohn Marino 	NL80211_MNTR_FLAG_OTHER_BSS,
38743ff40c12SJohn Marino 	NL80211_MNTR_FLAG_COOK_FRAMES,
38753ff40c12SJohn Marino 	NL80211_MNTR_FLAG_ACTIVE,
38763ff40c12SJohn Marino 
38773ff40c12SJohn Marino 	/* keep last */
38783ff40c12SJohn Marino 	__NL80211_MNTR_FLAG_AFTER_LAST,
38793ff40c12SJohn Marino 	NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
38803ff40c12SJohn Marino };
38813ff40c12SJohn Marino 
38823ff40c12SJohn Marino /**
38833ff40c12SJohn Marino  * enum nl80211_mesh_power_mode - mesh power save modes
38843ff40c12SJohn Marino  *
38853ff40c12SJohn Marino  * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is
38863ff40c12SJohn Marino  *	not known or has not been set yet.
38873ff40c12SJohn Marino  * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is
38883ff40c12SJohn Marino  *	in Awake state all the time.
38893ff40c12SJohn Marino  * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will
38903ff40c12SJohn Marino  *	alternate between Active and Doze states, but will wake up for
38913ff40c12SJohn Marino  *	neighbor's beacons.
38923ff40c12SJohn Marino  * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will
38933ff40c12SJohn Marino  *	alternate between Active and Doze states, but may not wake up
38943ff40c12SJohn Marino  *	for neighbor's beacons.
38953ff40c12SJohn Marino  *
38963ff40c12SJohn Marino  * @__NL80211_MESH_POWER_AFTER_LAST - internal use
38973ff40c12SJohn Marino  * @NL80211_MESH_POWER_MAX - highest possible power save level
38983ff40c12SJohn Marino  */
38993ff40c12SJohn Marino 
39003ff40c12SJohn Marino enum nl80211_mesh_power_mode {
39013ff40c12SJohn Marino 	NL80211_MESH_POWER_UNKNOWN,
39023ff40c12SJohn Marino 	NL80211_MESH_POWER_ACTIVE,
39033ff40c12SJohn Marino 	NL80211_MESH_POWER_LIGHT_SLEEP,
39043ff40c12SJohn Marino 	NL80211_MESH_POWER_DEEP_SLEEP,
39053ff40c12SJohn Marino 
39063ff40c12SJohn Marino 	__NL80211_MESH_POWER_AFTER_LAST,
39073ff40c12SJohn Marino 	NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1
39083ff40c12SJohn Marino };
39093ff40c12SJohn Marino 
39103ff40c12SJohn Marino /**
39113ff40c12SJohn Marino  * enum nl80211_meshconf_params - mesh configuration parameters
39123ff40c12SJohn Marino  *
39133ff40c12SJohn Marino  * Mesh configuration parameters. These can be changed while the mesh is
39143ff40c12SJohn Marino  * active.
39153ff40c12SJohn Marino  *
39163ff40c12SJohn Marino  * @__NL80211_MESHCONF_INVALID: internal use
39173ff40c12SJohn Marino  *
39183ff40c12SJohn Marino  * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in
39193ff40c12SJohn Marino  *	millisecond units, used by the Peer Link Open message
39203ff40c12SJohn Marino  *
39213ff40c12SJohn Marino  * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in
39223ff40c12SJohn Marino  *	millisecond units, used by the peer link management to close a peer link
39233ff40c12SJohn Marino  *
39243ff40c12SJohn Marino  * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in
39253ff40c12SJohn Marino  *	millisecond units
39263ff40c12SJohn Marino  *
39273ff40c12SJohn Marino  * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed
39283ff40c12SJohn Marino  *	on this mesh interface
39293ff40c12SJohn Marino  *
39303ff40c12SJohn Marino  * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link
39313ff40c12SJohn Marino  *	open retries that can be sent to establish a new peer link instance in a
39323ff40c12SJohn Marino  *	mesh
39333ff40c12SJohn Marino  *
39343ff40c12SJohn Marino  * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh
39353ff40c12SJohn Marino  *	point.
39363ff40c12SJohn Marino  *
39373ff40c12SJohn Marino  * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open
39383ff40c12SJohn Marino  *	peer links when we detect compatible mesh peers. Disabled if
39393ff40c12SJohn Marino  *	@NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are
39403ff40c12SJohn Marino  *	set.
39413ff40c12SJohn Marino  *
39423ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames
39433ff40c12SJohn Marino  *	containing a PREQ that an MP can send to a particular destination (path
39443ff40c12SJohn Marino  *	target)
39453ff40c12SJohn Marino  *
39463ff40c12SJohn Marino  * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths
39473ff40c12SJohn Marino  *	(in milliseconds)
39483ff40c12SJohn Marino  *
39493ff40c12SJohn Marino  * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait
39503ff40c12SJohn Marino  *	until giving up on a path discovery (in milliseconds)
39513ff40c12SJohn Marino  *
39523ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh
39533ff40c12SJohn Marino  *	points receiving a PREQ shall consider the forwarding information from
39543ff40c12SJohn Marino  *	the root to be valid. (TU = time unit)
39553ff40c12SJohn Marino  *
39563ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in
39573ff40c12SJohn Marino  *	TUs) during which an MP can send only one action frame containing a PREQ
39583ff40c12SJohn Marino  *	reference element
39593ff40c12SJohn Marino  *
39603ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs)
39613ff40c12SJohn Marino  *	that it takes for an HWMP information element to propagate across the
39623ff40c12SJohn Marino  *	mesh
39633ff40c12SJohn Marino  *
39643ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not
39653ff40c12SJohn Marino  *
39663ff40c12SJohn Marino  * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a
39673ff40c12SJohn Marino  *	source mesh point for path selection elements.
39683ff40c12SJohn Marino  *
39693ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_RANN_INTERVAL:  The interval of time (in TUs) between
39703ff40c12SJohn Marino  *	root announcements are transmitted.
39713ff40c12SJohn Marino  *
39723ff40c12SJohn Marino  * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
39733ff40c12SJohn Marino  *	access to a broader network beyond the MBSS.  This is done via Root
39743ff40c12SJohn Marino  *	Announcement frames.
39753ff40c12SJohn Marino  *
39763ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in
39773ff40c12SJohn Marino  *	TUs) during which a mesh STA can send only one Action frame containing a
39783ff40c12SJohn Marino  *	PERR element.
39793ff40c12SJohn Marino  *
39803ff40c12SJohn Marino  * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding
39813ff40c12SJohn Marino  *	or forwarding entity (default is TRUE - forwarding entity)
39823ff40c12SJohn Marino  *
39833ff40c12SJohn Marino  * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the
39843ff40c12SJohn Marino  *	threshold for average signal strength of candidate station to establish
39853ff40c12SJohn Marino  *	a peer link.
39863ff40c12SJohn Marino  *
39873ff40c12SJohn Marino  * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors
39883ff40c12SJohn Marino  *	to synchronize to for 11s default synchronization method
39893ff40c12SJohn Marino  *	(see 11C.12.2.2)
39903ff40c12SJohn Marino  *
39913ff40c12SJohn Marino  * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode.
39923ff40c12SJohn Marino  *
39933ff40c12SJohn Marino  * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
39943ff40c12SJohn Marino  *
39953ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for
39963ff40c12SJohn Marino  *	which mesh STAs receiving a proactive PREQ shall consider the forwarding
39973ff40c12SJohn Marino  *	information to the root mesh STA to be valid.
39983ff40c12SJohn Marino  *
39993ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between
40003ff40c12SJohn Marino  *	proactive PREQs are transmitted.
40013ff40c12SJohn Marino  *
40023ff40c12SJohn Marino  * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time
40033ff40c12SJohn Marino  *	(in TUs) during which a mesh STA can send only one Action frame
40043ff40c12SJohn Marino  *	containing a PREQ element for root path confirmation.
40053ff40c12SJohn Marino  *
40063ff40c12SJohn Marino  * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links.
40073ff40c12SJohn Marino  *	type &enum nl80211_mesh_power_mode (u32)
40083ff40c12SJohn Marino  *
40093ff40c12SJohn Marino  * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs)
40103ff40c12SJohn Marino  *
40113ff40c12SJohn Marino  * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've
40123ff40c12SJohn Marino  *	established peering with for longer than this time (in seconds), then
4013*a1157835SDaniel Fojt  *	remove it from the STA's list of peers. You may set this to 0 to disable
4014*a1157835SDaniel Fojt  *	the removal of the STA. Default is 30 minutes.
4015*a1157835SDaniel Fojt  *
4016*a1157835SDaniel Fojt  * @NL80211_MESHCONF_CONNECTED_TO_GATE: If set to true then this mesh STA
4017*a1157835SDaniel Fojt  *	will advertise that it is connected to a gate in the mesh formation
4018*a1157835SDaniel Fojt  *	field.  If left unset then the mesh formation field will only
4019*a1157835SDaniel Fojt  *	advertise such if there is an active root mesh path.
40203ff40c12SJohn Marino  *
40213ff40c12SJohn Marino  * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
40223ff40c12SJohn Marino  */
40233ff40c12SJohn Marino enum nl80211_meshconf_params {
40243ff40c12SJohn Marino 	__NL80211_MESHCONF_INVALID,
40253ff40c12SJohn Marino 	NL80211_MESHCONF_RETRY_TIMEOUT,
40263ff40c12SJohn Marino 	NL80211_MESHCONF_CONFIRM_TIMEOUT,
40273ff40c12SJohn Marino 	NL80211_MESHCONF_HOLDING_TIMEOUT,
40283ff40c12SJohn Marino 	NL80211_MESHCONF_MAX_PEER_LINKS,
40293ff40c12SJohn Marino 	NL80211_MESHCONF_MAX_RETRIES,
40303ff40c12SJohn Marino 	NL80211_MESHCONF_TTL,
40313ff40c12SJohn Marino 	NL80211_MESHCONF_AUTO_OPEN_PLINKS,
40323ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
40333ff40c12SJohn Marino 	NL80211_MESHCONF_PATH_REFRESH_TIME,
40343ff40c12SJohn Marino 	NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
40353ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
40363ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
40373ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
40383ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_ROOTMODE,
40393ff40c12SJohn Marino 	NL80211_MESHCONF_ELEMENT_TTL,
40403ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_RANN_INTERVAL,
40413ff40c12SJohn Marino 	NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
40423ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
40433ff40c12SJohn Marino 	NL80211_MESHCONF_FORWARDING,
40443ff40c12SJohn Marino 	NL80211_MESHCONF_RSSI_THRESHOLD,
40453ff40c12SJohn Marino 	NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
40463ff40c12SJohn Marino 	NL80211_MESHCONF_HT_OPMODE,
40473ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
40483ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
40493ff40c12SJohn Marino 	NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
40503ff40c12SJohn Marino 	NL80211_MESHCONF_POWER_MODE,
40513ff40c12SJohn Marino 	NL80211_MESHCONF_AWAKE_WINDOW,
40523ff40c12SJohn Marino 	NL80211_MESHCONF_PLINK_TIMEOUT,
4053*a1157835SDaniel Fojt 	NL80211_MESHCONF_CONNECTED_TO_GATE,
40543ff40c12SJohn Marino 
40553ff40c12SJohn Marino 	/* keep last */
40563ff40c12SJohn Marino 	__NL80211_MESHCONF_ATTR_AFTER_LAST,
40573ff40c12SJohn Marino 	NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1
40583ff40c12SJohn Marino };
40593ff40c12SJohn Marino 
40603ff40c12SJohn Marino /**
40613ff40c12SJohn Marino  * enum nl80211_mesh_setup_params - mesh setup parameters
40623ff40c12SJohn Marino  *
40633ff40c12SJohn Marino  * Mesh setup parameters.  These are used to start/join a mesh and cannot be
40643ff40c12SJohn Marino  * changed while the mesh is active.
40653ff40c12SJohn Marino  *
40663ff40c12SJohn Marino  * @__NL80211_MESH_SETUP_INVALID: Internal use
40673ff40c12SJohn Marino  *
40683ff40c12SJohn Marino  * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a
40693ff40c12SJohn Marino  *	vendor specific path selection algorithm or disable it to use the
40703ff40c12SJohn Marino  *	default HWMP.
40713ff40c12SJohn Marino  *
40723ff40c12SJohn Marino  * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a
40733ff40c12SJohn Marino  *	vendor specific path metric or disable it to use the default Airtime
40743ff40c12SJohn Marino  *	metric.
40753ff40c12SJohn Marino  *
40763ff40c12SJohn Marino  * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a
40773ff40c12SJohn Marino  *	robust security network ie, or a vendor specific information element
40783ff40c12SJohn Marino  *	that vendors will use to identify the path selection methods and
40793ff40c12SJohn Marino  *	metrics in use.
40803ff40c12SJohn Marino  *
40813ff40c12SJohn Marino  * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication
40823ff40c12SJohn Marino  *	daemon will be authenticating mesh candidates.
40833ff40c12SJohn Marino  *
40843ff40c12SJohn Marino  * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication
40853ff40c12SJohn Marino  *	daemon will be securing peer link frames.  AMPE is a secured version of
40863ff40c12SJohn Marino  *	Mesh Peering Management (MPM) and is implemented with the assistance of
40873ff40c12SJohn Marino  *	a userspace daemon.  When this flag is set, the kernel will send peer
40883ff40c12SJohn Marino  *	management frames to a userspace daemon that will implement AMPE
40893ff40c12SJohn Marino  *	functionality (security capabilities selection, key confirmation, and
40903ff40c12SJohn Marino  *	key management).  When the flag is unset (default), the kernel can
40913ff40c12SJohn Marino  *	autonomously complete (unsecured) mesh peering without the need of a
40923ff40c12SJohn Marino  *	userspace daemon.
40933ff40c12SJohn Marino  *
40943ff40c12SJohn Marino  * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a
40953ff40c12SJohn Marino  *	vendor specific synchronization method or disable it to use the default
40963ff40c12SJohn Marino  *	neighbor offset synchronization
40973ff40c12SJohn Marino  *
40983ff40c12SJohn Marino  * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will
40993ff40c12SJohn Marino  *	implement an MPM which handles peer allocation and state.
41003ff40c12SJohn Marino  *
41013ff40c12SJohn Marino  * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication
41023ff40c12SJohn Marino  *	method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE).
41033ff40c12SJohn Marino  *	Default is no authentication method required.
41043ff40c12SJohn Marino  *
41053ff40c12SJohn Marino  * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number
41063ff40c12SJohn Marino  *
41073ff40c12SJohn Marino  * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use
41083ff40c12SJohn Marino  */
41093ff40c12SJohn Marino enum nl80211_mesh_setup_params {
41103ff40c12SJohn Marino 	__NL80211_MESH_SETUP_INVALID,
41113ff40c12SJohn Marino 	NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,
41123ff40c12SJohn Marino 	NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,
41133ff40c12SJohn Marino 	NL80211_MESH_SETUP_IE,
41143ff40c12SJohn Marino 	NL80211_MESH_SETUP_USERSPACE_AUTH,
41153ff40c12SJohn Marino 	NL80211_MESH_SETUP_USERSPACE_AMPE,
41163ff40c12SJohn Marino 	NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,
41173ff40c12SJohn Marino 	NL80211_MESH_SETUP_USERSPACE_MPM,
41183ff40c12SJohn Marino 	NL80211_MESH_SETUP_AUTH_PROTOCOL,
41193ff40c12SJohn Marino 
41203ff40c12SJohn Marino 	/* keep last */
41213ff40c12SJohn Marino 	__NL80211_MESH_SETUP_ATTR_AFTER_LAST,
41223ff40c12SJohn Marino 	NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1
41233ff40c12SJohn Marino };
41243ff40c12SJohn Marino 
41253ff40c12SJohn Marino /**
41263ff40c12SJohn Marino  * enum nl80211_txq_attr - TX queue parameter attributes
41273ff40c12SJohn Marino  * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved
41283ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*)
41293ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning
41303ff40c12SJohn Marino  *	disabled
41313ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form
41323ff40c12SJohn Marino  *	2^n-1 in the range 1..32767]
41333ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form
41343ff40c12SJohn Marino  *	2^n-1 in the range 1..32767]
41353ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255]
41363ff40c12SJohn Marino  * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
41373ff40c12SJohn Marino  * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number
41383ff40c12SJohn Marino  */
41393ff40c12SJohn Marino enum nl80211_txq_attr {
41403ff40c12SJohn Marino 	__NL80211_TXQ_ATTR_INVALID,
41413ff40c12SJohn Marino 	NL80211_TXQ_ATTR_AC,
41423ff40c12SJohn Marino 	NL80211_TXQ_ATTR_TXOP,
41433ff40c12SJohn Marino 	NL80211_TXQ_ATTR_CWMIN,
41443ff40c12SJohn Marino 	NL80211_TXQ_ATTR_CWMAX,
41453ff40c12SJohn Marino 	NL80211_TXQ_ATTR_AIFS,
41463ff40c12SJohn Marino 
41473ff40c12SJohn Marino 	/* keep last */
41483ff40c12SJohn Marino 	__NL80211_TXQ_ATTR_AFTER_LAST,
41493ff40c12SJohn Marino 	NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1
41503ff40c12SJohn Marino };
41513ff40c12SJohn Marino 
41523ff40c12SJohn Marino enum nl80211_ac {
41533ff40c12SJohn Marino 	NL80211_AC_VO,
41543ff40c12SJohn Marino 	NL80211_AC_VI,
41553ff40c12SJohn Marino 	NL80211_AC_BE,
41563ff40c12SJohn Marino 	NL80211_AC_BK,
41573ff40c12SJohn Marino 	NL80211_NUM_ACS
41583ff40c12SJohn Marino };
41593ff40c12SJohn Marino 
41603ff40c12SJohn Marino /* backward compat */
41613ff40c12SJohn Marino #define NL80211_TXQ_ATTR_QUEUE	NL80211_TXQ_ATTR_AC
41623ff40c12SJohn Marino #define NL80211_TXQ_Q_VO	NL80211_AC_VO
41633ff40c12SJohn Marino #define NL80211_TXQ_Q_VI	NL80211_AC_VI
41643ff40c12SJohn Marino #define NL80211_TXQ_Q_BE	NL80211_AC_BE
41653ff40c12SJohn Marino #define NL80211_TXQ_Q_BK	NL80211_AC_BK
41663ff40c12SJohn Marino 
41673ff40c12SJohn Marino /**
41683ff40c12SJohn Marino  * enum nl80211_channel_type - channel type
41693ff40c12SJohn Marino  * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel
41703ff40c12SJohn Marino  * @NL80211_CHAN_HT20: 20 MHz HT channel
41713ff40c12SJohn Marino  * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel
41723ff40c12SJohn Marino  *	below the control channel
41733ff40c12SJohn Marino  * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel
41743ff40c12SJohn Marino  *	above the control channel
41753ff40c12SJohn Marino  */
41763ff40c12SJohn Marino enum nl80211_channel_type {
41773ff40c12SJohn Marino 	NL80211_CHAN_NO_HT,
41783ff40c12SJohn Marino 	NL80211_CHAN_HT20,
41793ff40c12SJohn Marino 	NL80211_CHAN_HT40MINUS,
41803ff40c12SJohn Marino 	NL80211_CHAN_HT40PLUS
41813ff40c12SJohn Marino };
41823ff40c12SJohn Marino 
41833ff40c12SJohn Marino /**
4184*a1157835SDaniel Fojt  * enum nl80211_key_mode - Key mode
4185*a1157835SDaniel Fojt  *
4186*a1157835SDaniel Fojt  * @NL80211_KEY_RX_TX: (Default)
4187*a1157835SDaniel Fojt  *	Key can be used for Rx and Tx immediately
4188*a1157835SDaniel Fojt  *
4189*a1157835SDaniel Fojt  * The following modes can only be selected for unicast keys and when the
4190*a1157835SDaniel Fojt  * driver supports @NL80211_EXT_FEATURE_EXT_KEY_ID:
4191*a1157835SDaniel Fojt  *
4192*a1157835SDaniel Fojt  * @NL80211_KEY_NO_TX: Only allowed in combination with @NL80211_CMD_NEW_KEY:
4193*a1157835SDaniel Fojt  *	Unicast key can only be used for Rx, Tx not allowed, yet
4194*a1157835SDaniel Fojt  * @NL80211_KEY_SET_TX: Only allowed in combination with @NL80211_CMD_SET_KEY:
4195*a1157835SDaniel Fojt  *	The unicast key identified by idx and mac is cleared for Tx and becomes
4196*a1157835SDaniel Fojt  *	the preferred Tx key for the station.
4197*a1157835SDaniel Fojt  */
4198*a1157835SDaniel Fojt enum nl80211_key_mode {
4199*a1157835SDaniel Fojt 	NL80211_KEY_RX_TX,
4200*a1157835SDaniel Fojt 	NL80211_KEY_NO_TX,
4201*a1157835SDaniel Fojt 	NL80211_KEY_SET_TX
4202*a1157835SDaniel Fojt };
4203*a1157835SDaniel Fojt 
4204*a1157835SDaniel Fojt /**
42053ff40c12SJohn Marino  * enum nl80211_chan_width - channel width definitions
42063ff40c12SJohn Marino  *
42073ff40c12SJohn Marino  * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH
42083ff40c12SJohn Marino  * attribute.
42093ff40c12SJohn Marino  *
42103ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel
42113ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel
42123ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
42133ff40c12SJohn Marino  *	attribute must be provided as well
42143ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
42153ff40c12SJohn Marino  *	attribute must be provided as well
42163ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
42173ff40c12SJohn Marino  *	and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well
42183ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
42193ff40c12SJohn Marino  *	attribute must be provided as well
42203ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel
42213ff40c12SJohn Marino  * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel
42223ff40c12SJohn Marino  */
42233ff40c12SJohn Marino enum nl80211_chan_width {
42243ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_20_NOHT,
42253ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_20,
42263ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_40,
42273ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_80,
42283ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_80P80,
42293ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_160,
42303ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_5,
42313ff40c12SJohn Marino 	NL80211_CHAN_WIDTH_10,
42323ff40c12SJohn Marino };
42333ff40c12SJohn Marino 
42343ff40c12SJohn Marino /**
42353ff40c12SJohn Marino  * enum nl80211_bss_scan_width - control channel width for a BSS
42363ff40c12SJohn Marino  *
42373ff40c12SJohn Marino  * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute.
42383ff40c12SJohn Marino  *
42393ff40c12SJohn Marino  * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible
42403ff40c12SJohn Marino  * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide
42413ff40c12SJohn Marino  * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide
42423ff40c12SJohn Marino  */
42433ff40c12SJohn Marino enum nl80211_bss_scan_width {
42443ff40c12SJohn Marino 	NL80211_BSS_CHAN_WIDTH_20,
42453ff40c12SJohn Marino 	NL80211_BSS_CHAN_WIDTH_10,
42463ff40c12SJohn Marino 	NL80211_BSS_CHAN_WIDTH_5,
42473ff40c12SJohn Marino };
42483ff40c12SJohn Marino 
42493ff40c12SJohn Marino /**
42503ff40c12SJohn Marino  * enum nl80211_bss - netlink attributes for a BSS
42513ff40c12SJohn Marino  *
42523ff40c12SJohn Marino  * @__NL80211_BSS_INVALID: invalid
42533ff40c12SJohn Marino  * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets)
42543ff40c12SJohn Marino  * @NL80211_BSS_FREQUENCY: frequency in MHz (u32)
42553ff40c12SJohn Marino  * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64)
4256*a1157835SDaniel Fojt  *	(if @NL80211_BSS_PRESP_DATA is present then this is known to be
4257*a1157835SDaniel Fojt  *	from a probe response, otherwise it may be from the same beacon
4258*a1157835SDaniel Fojt  *	that the NL80211_BSS_BEACON_TSF will be from)
42593ff40c12SJohn Marino  * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16)
42603ff40c12SJohn Marino  * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16)
42613ff40c12SJohn Marino  * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the
42623ff40c12SJohn Marino  *	raw information elements from the probe response/beacon (bin);
4263*a1157835SDaniel Fojt  *	if the %NL80211_BSS_BEACON_IES attribute is present and the data is
4264*a1157835SDaniel Fojt  *	different then the IEs here are from a Probe Response frame; otherwise
4265*a1157835SDaniel Fojt  *	they are from a Beacon frame.
42663ff40c12SJohn Marino  *	However, if the driver does not indicate the source of the IEs, these
42673ff40c12SJohn Marino  *	IEs may be from either frame subtype.
4268*a1157835SDaniel Fojt  *	If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the
4269*a1157835SDaniel Fojt  *	data here is known to be from a probe response, without any heuristics.
42703ff40c12SJohn Marino  * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon
42713ff40c12SJohn Marino  *	in mBm (100 * dBm) (s32)
42723ff40c12SJohn Marino  * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon
42733ff40c12SJohn Marino  *	in unspecified units, scaled to 0..100 (u8)
42743ff40c12SJohn Marino  * @NL80211_BSS_STATUS: status, if this BSS is "used"
42753ff40c12SJohn Marino  * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms
42763ff40c12SJohn Marino  * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
42773ff40c12SJohn Marino  *	elements from a Beacon frame (bin); not present if no Beacon frame has
42783ff40c12SJohn Marino  *	yet been received
42793ff40c12SJohn Marino  * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
42803ff40c12SJohn Marino  *	(u32, enum nl80211_bss_scan_width)
4281*a1157835SDaniel Fojt  * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64)
4282*a1157835SDaniel Fojt  *	(not present if no beacon frame has been received yet)
4283*a1157835SDaniel Fojt  * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and
4284*a1157835SDaniel Fojt  *	@NL80211_BSS_TSF is known to be from a probe response (flag attribute)
4285*a1157835SDaniel Fojt  * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry
4286*a1157835SDaniel Fojt  *	was last updated by a received frame. The value is expected to be
4287*a1157835SDaniel Fojt  *	accurate to about 10ms. (u64, nanoseconds)
4288*a1157835SDaniel Fojt  * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment
4289*a1157835SDaniel Fojt  * @NL80211_BSS_PARENT_TSF: the time at the start of reception of the first
4290*a1157835SDaniel Fojt  *	octet of the timestamp field of the last beacon/probe received for
4291*a1157835SDaniel Fojt  *	this BSS. The time is the TSF of the BSS specified by
4292*a1157835SDaniel Fojt  *	@NL80211_BSS_PARENT_BSSID. (u64).
4293*a1157835SDaniel Fojt  * @NL80211_BSS_PARENT_BSSID: the BSS according to which @NL80211_BSS_PARENT_TSF
4294*a1157835SDaniel Fojt  *	is set.
4295*a1157835SDaniel Fojt  * @NL80211_BSS_CHAIN_SIGNAL: per-chain signal strength of last BSS update.
4296*a1157835SDaniel Fojt  *	Contains a nested array of signal strength attributes (u8, dBm),
4297*a1157835SDaniel Fojt  *	using the nesting index as the antenna number.
42983ff40c12SJohn Marino  * @__NL80211_BSS_AFTER_LAST: internal
42993ff40c12SJohn Marino  * @NL80211_BSS_MAX: highest BSS attribute
43003ff40c12SJohn Marino  */
43013ff40c12SJohn Marino enum nl80211_bss {
43023ff40c12SJohn Marino 	__NL80211_BSS_INVALID,
43033ff40c12SJohn Marino 	NL80211_BSS_BSSID,
43043ff40c12SJohn Marino 	NL80211_BSS_FREQUENCY,
43053ff40c12SJohn Marino 	NL80211_BSS_TSF,
43063ff40c12SJohn Marino 	NL80211_BSS_BEACON_INTERVAL,
43073ff40c12SJohn Marino 	NL80211_BSS_CAPABILITY,
43083ff40c12SJohn Marino 	NL80211_BSS_INFORMATION_ELEMENTS,
43093ff40c12SJohn Marino 	NL80211_BSS_SIGNAL_MBM,
43103ff40c12SJohn Marino 	NL80211_BSS_SIGNAL_UNSPEC,
43113ff40c12SJohn Marino 	NL80211_BSS_STATUS,
43123ff40c12SJohn Marino 	NL80211_BSS_SEEN_MS_AGO,
43133ff40c12SJohn Marino 	NL80211_BSS_BEACON_IES,
43143ff40c12SJohn Marino 	NL80211_BSS_CHAN_WIDTH,
4315*a1157835SDaniel Fojt 	NL80211_BSS_BEACON_TSF,
4316*a1157835SDaniel Fojt 	NL80211_BSS_PRESP_DATA,
4317*a1157835SDaniel Fojt 	NL80211_BSS_LAST_SEEN_BOOTTIME,
4318*a1157835SDaniel Fojt 	NL80211_BSS_PAD,
4319*a1157835SDaniel Fojt 	NL80211_BSS_PARENT_TSF,
4320*a1157835SDaniel Fojt 	NL80211_BSS_PARENT_BSSID,
4321*a1157835SDaniel Fojt 	NL80211_BSS_CHAIN_SIGNAL,
43223ff40c12SJohn Marino 
43233ff40c12SJohn Marino 	/* keep last */
43243ff40c12SJohn Marino 	__NL80211_BSS_AFTER_LAST,
43253ff40c12SJohn Marino 	NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1
43263ff40c12SJohn Marino };
43273ff40c12SJohn Marino 
43283ff40c12SJohn Marino /**
43293ff40c12SJohn Marino  * enum nl80211_bss_status - BSS "status"
43303ff40c12SJohn Marino  * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS.
4331*a1157835SDaniel Fojt  *	Note that this is no longer used since cfg80211 no longer
4332*a1157835SDaniel Fojt  *	keeps track of whether or not authentication was done with
4333*a1157835SDaniel Fojt  *	a given BSS.
43343ff40c12SJohn Marino  * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS.
43353ff40c12SJohn Marino  * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS.
43363ff40c12SJohn Marino  *
43373ff40c12SJohn Marino  * The BSS status is a BSS attribute in scan dumps, which
43383ff40c12SJohn Marino  * indicates the status the interface has wrt. this BSS.
43393ff40c12SJohn Marino  */
43403ff40c12SJohn Marino enum nl80211_bss_status {
43413ff40c12SJohn Marino 	NL80211_BSS_STATUS_AUTHENTICATED,
43423ff40c12SJohn Marino 	NL80211_BSS_STATUS_ASSOCIATED,
43433ff40c12SJohn Marino 	NL80211_BSS_STATUS_IBSS_JOINED,
43443ff40c12SJohn Marino };
43453ff40c12SJohn Marino 
43463ff40c12SJohn Marino /**
43473ff40c12SJohn Marino  * enum nl80211_auth_type - AuthenticationType
43483ff40c12SJohn Marino  *
43493ff40c12SJohn Marino  * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication
43503ff40c12SJohn Marino  * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only)
43513ff40c12SJohn Marino  * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r)
43523ff40c12SJohn Marino  * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP)
43533ff40c12SJohn Marino  * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals
4354*a1157835SDaniel Fojt  * @NL80211_AUTHTYPE_FILS_SK: Fast Initial Link Setup shared key
4355*a1157835SDaniel Fojt  * @NL80211_AUTHTYPE_FILS_SK_PFS: Fast Initial Link Setup shared key with PFS
4356*a1157835SDaniel Fojt  * @NL80211_AUTHTYPE_FILS_PK: Fast Initial Link Setup public key
43573ff40c12SJohn Marino  * @__NL80211_AUTHTYPE_NUM: internal
43583ff40c12SJohn Marino  * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm
43593ff40c12SJohn Marino  * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by
43603ff40c12SJohn Marino  *	trying multiple times); this is invalid in netlink -- leave out
43613ff40c12SJohn Marino  *	the attribute for this on CONNECT commands.
43623ff40c12SJohn Marino  */
43633ff40c12SJohn Marino enum nl80211_auth_type {
43643ff40c12SJohn Marino 	NL80211_AUTHTYPE_OPEN_SYSTEM,
43653ff40c12SJohn Marino 	NL80211_AUTHTYPE_SHARED_KEY,
43663ff40c12SJohn Marino 	NL80211_AUTHTYPE_FT,
43673ff40c12SJohn Marino 	NL80211_AUTHTYPE_NETWORK_EAP,
43683ff40c12SJohn Marino 	NL80211_AUTHTYPE_SAE,
4369*a1157835SDaniel Fojt 	NL80211_AUTHTYPE_FILS_SK,
4370*a1157835SDaniel Fojt 	NL80211_AUTHTYPE_FILS_SK_PFS,
4371*a1157835SDaniel Fojt 	NL80211_AUTHTYPE_FILS_PK,
43723ff40c12SJohn Marino 
43733ff40c12SJohn Marino 	/* keep last */
43743ff40c12SJohn Marino 	__NL80211_AUTHTYPE_NUM,
43753ff40c12SJohn Marino 	NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1,
43763ff40c12SJohn Marino 	NL80211_AUTHTYPE_AUTOMATIC
43773ff40c12SJohn Marino };
43783ff40c12SJohn Marino 
43793ff40c12SJohn Marino /**
43803ff40c12SJohn Marino  * enum nl80211_key_type - Key Type
43813ff40c12SJohn Marino  * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key
43823ff40c12SJohn Marino  * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key
43833ff40c12SJohn Marino  * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS)
43843ff40c12SJohn Marino  * @NUM_NL80211_KEYTYPES: number of defined key types
43853ff40c12SJohn Marino  */
43863ff40c12SJohn Marino enum nl80211_key_type {
43873ff40c12SJohn Marino 	NL80211_KEYTYPE_GROUP,
43883ff40c12SJohn Marino 	NL80211_KEYTYPE_PAIRWISE,
43893ff40c12SJohn Marino 	NL80211_KEYTYPE_PEERKEY,
43903ff40c12SJohn Marino 
43913ff40c12SJohn Marino 	NUM_NL80211_KEYTYPES
43923ff40c12SJohn Marino };
43933ff40c12SJohn Marino 
43943ff40c12SJohn Marino /**
43953ff40c12SJohn Marino  * enum nl80211_mfp - Management frame protection state
43963ff40c12SJohn Marino  * @NL80211_MFP_NO: Management frame protection not used
43973ff40c12SJohn Marino  * @NL80211_MFP_REQUIRED: Management frame protection required
4398*a1157835SDaniel Fojt  * @NL80211_MFP_OPTIONAL: Management frame protection is optional
43993ff40c12SJohn Marino  */
44003ff40c12SJohn Marino enum nl80211_mfp {
44013ff40c12SJohn Marino 	NL80211_MFP_NO,
44023ff40c12SJohn Marino 	NL80211_MFP_REQUIRED,
4403*a1157835SDaniel Fojt 	NL80211_MFP_OPTIONAL,
44043ff40c12SJohn Marino };
44053ff40c12SJohn Marino 
44063ff40c12SJohn Marino enum nl80211_wpa_versions {
44073ff40c12SJohn Marino 	NL80211_WPA_VERSION_1 = 1 << 0,
44083ff40c12SJohn Marino 	NL80211_WPA_VERSION_2 = 1 << 1,
44093ff40c12SJohn Marino };
44103ff40c12SJohn Marino 
44113ff40c12SJohn Marino /**
44123ff40c12SJohn Marino  * enum nl80211_key_default_types - key default types
44133ff40c12SJohn Marino  * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid
44143ff40c12SJohn Marino  * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default
44153ff40c12SJohn Marino  *	unicast key
44163ff40c12SJohn Marino  * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default
44173ff40c12SJohn Marino  *	multicast key
44183ff40c12SJohn Marino  * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types
44193ff40c12SJohn Marino  */
44203ff40c12SJohn Marino enum nl80211_key_default_types {
44213ff40c12SJohn Marino 	__NL80211_KEY_DEFAULT_TYPE_INVALID,
44223ff40c12SJohn Marino 	NL80211_KEY_DEFAULT_TYPE_UNICAST,
44233ff40c12SJohn Marino 	NL80211_KEY_DEFAULT_TYPE_MULTICAST,
44243ff40c12SJohn Marino 
44253ff40c12SJohn Marino 	NUM_NL80211_KEY_DEFAULT_TYPES
44263ff40c12SJohn Marino };
44273ff40c12SJohn Marino 
44283ff40c12SJohn Marino /**
44293ff40c12SJohn Marino  * enum nl80211_key_attributes - key attributes
44303ff40c12SJohn Marino  * @__NL80211_KEY_INVALID: invalid
44313ff40c12SJohn Marino  * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of
44323ff40c12SJohn Marino  *	16 bytes encryption key followed by 8 bytes each for TX and RX MIC
44333ff40c12SJohn Marino  *	keys
44343ff40c12SJohn Marino  * @NL80211_KEY_IDX: key ID (u8, 0-3)
44353ff40c12SJohn Marino  * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
44363ff40c12SJohn Marino  *	section 7.3.2.25.1, e.g. 0x000FAC04)
44373ff40c12SJohn Marino  * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
44383ff40c12SJohn Marino  *	CCMP keys, each six bytes in little endian
44393ff40c12SJohn Marino  * @NL80211_KEY_DEFAULT: flag indicating default key
44403ff40c12SJohn Marino  * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key
44413ff40c12SJohn Marino  * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not
44423ff40c12SJohn Marino  *	specified the default depends on whether a MAC address was
44433ff40c12SJohn Marino  *	given with the command using the key or not (u32)
44443ff40c12SJohn Marino  * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags
44453ff40c12SJohn Marino  *	attributes, specifying what a key should be set as default as.
44463ff40c12SJohn Marino  *	See &enum nl80211_key_default_types.
4447*a1157835SDaniel Fojt  * @NL80211_KEY_MODE: the mode from enum nl80211_key_mode.
4448*a1157835SDaniel Fojt  *	Defaults to @NL80211_KEY_RX_TX.
4449*a1157835SDaniel Fojt  *
44503ff40c12SJohn Marino  * @__NL80211_KEY_AFTER_LAST: internal
44513ff40c12SJohn Marino  * @NL80211_KEY_MAX: highest key attribute
44523ff40c12SJohn Marino  */
44533ff40c12SJohn Marino enum nl80211_key_attributes {
44543ff40c12SJohn Marino 	__NL80211_KEY_INVALID,
44553ff40c12SJohn Marino 	NL80211_KEY_DATA,
44563ff40c12SJohn Marino 	NL80211_KEY_IDX,
44573ff40c12SJohn Marino 	NL80211_KEY_CIPHER,
44583ff40c12SJohn Marino 	NL80211_KEY_SEQ,
44593ff40c12SJohn Marino 	NL80211_KEY_DEFAULT,
44603ff40c12SJohn Marino 	NL80211_KEY_DEFAULT_MGMT,
44613ff40c12SJohn Marino 	NL80211_KEY_TYPE,
44623ff40c12SJohn Marino 	NL80211_KEY_DEFAULT_TYPES,
4463*a1157835SDaniel Fojt 	NL80211_KEY_MODE,
44643ff40c12SJohn Marino 
44653ff40c12SJohn Marino 	/* keep last */
44663ff40c12SJohn Marino 	__NL80211_KEY_AFTER_LAST,
44673ff40c12SJohn Marino 	NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1
44683ff40c12SJohn Marino };
44693ff40c12SJohn Marino 
44703ff40c12SJohn Marino /**
44713ff40c12SJohn Marino  * enum nl80211_tx_rate_attributes - TX rate set attributes
44723ff40c12SJohn Marino  * @__NL80211_TXRATE_INVALID: invalid
44733ff40c12SJohn Marino  * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection
44743ff40c12SJohn Marino  *	in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with
44753ff40c12SJohn Marino  *	1 = 500 kbps) but without the IE length restriction (at most
44763ff40c12SJohn Marino  *	%NL80211_MAX_SUPP_RATES in a single array).
44773ff40c12SJohn Marino  * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
44783ff40c12SJohn Marino  *	in an array of MCS numbers.
44793ff40c12SJohn Marino  * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
44803ff40c12SJohn Marino  *	see &struct nl80211_txrate_vht
4481*a1157835SDaniel Fojt  * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi
44823ff40c12SJohn Marino  * @__NL80211_TXRATE_AFTER_LAST: internal
44833ff40c12SJohn Marino  * @NL80211_TXRATE_MAX: highest TX rate attribute
44843ff40c12SJohn Marino  */
44853ff40c12SJohn Marino enum nl80211_tx_rate_attributes {
44863ff40c12SJohn Marino 	__NL80211_TXRATE_INVALID,
44873ff40c12SJohn Marino 	NL80211_TXRATE_LEGACY,
44883ff40c12SJohn Marino 	NL80211_TXRATE_HT,
44893ff40c12SJohn Marino 	NL80211_TXRATE_VHT,
4490*a1157835SDaniel Fojt 	NL80211_TXRATE_GI,
44913ff40c12SJohn Marino 
44923ff40c12SJohn Marino 	/* keep last */
44933ff40c12SJohn Marino 	__NL80211_TXRATE_AFTER_LAST,
44943ff40c12SJohn Marino 	NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
44953ff40c12SJohn Marino };
44963ff40c12SJohn Marino 
44973ff40c12SJohn Marino #define NL80211_TXRATE_MCS NL80211_TXRATE_HT
44983ff40c12SJohn Marino #define NL80211_VHT_NSS_MAX		8
44993ff40c12SJohn Marino 
45003ff40c12SJohn Marino /**
45013ff40c12SJohn Marino  * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap
45023ff40c12SJohn Marino  * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.)
45033ff40c12SJohn Marino  */
45043ff40c12SJohn Marino struct nl80211_txrate_vht {
45053ff40c12SJohn Marino 	__u16 mcs[NL80211_VHT_NSS_MAX];
45063ff40c12SJohn Marino };
45073ff40c12SJohn Marino 
4508*a1157835SDaniel Fojt enum nl80211_txrate_gi {
4509*a1157835SDaniel Fojt 	NL80211_TXRATE_DEFAULT_GI,
4510*a1157835SDaniel Fojt 	NL80211_TXRATE_FORCE_SGI,
4511*a1157835SDaniel Fojt 	NL80211_TXRATE_FORCE_LGI,
4512*a1157835SDaniel Fojt };
4513*a1157835SDaniel Fojt 
45143ff40c12SJohn Marino /**
45153ff40c12SJohn Marino  * enum nl80211_band - Frequency band
45163ff40c12SJohn Marino  * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
45173ff40c12SJohn Marino  * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
4518*a1157835SDaniel Fojt  * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 69.12 GHz)
4519*a1157835SDaniel Fojt  * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace
4520*a1157835SDaniel Fojt  *	since newer kernel versions may support more bands
45213ff40c12SJohn Marino  */
45223ff40c12SJohn Marino enum nl80211_band {
45233ff40c12SJohn Marino 	NL80211_BAND_2GHZ,
45243ff40c12SJohn Marino 	NL80211_BAND_5GHZ,
45253ff40c12SJohn Marino 	NL80211_BAND_60GHZ,
4526*a1157835SDaniel Fojt 
4527*a1157835SDaniel Fojt 	NUM_NL80211_BANDS,
45283ff40c12SJohn Marino };
45293ff40c12SJohn Marino 
45303ff40c12SJohn Marino /**
45313ff40c12SJohn Marino  * enum nl80211_ps_state - powersave state
45323ff40c12SJohn Marino  * @NL80211_PS_DISABLED: powersave is disabled
45333ff40c12SJohn Marino  * @NL80211_PS_ENABLED: powersave is enabled
45343ff40c12SJohn Marino  */
45353ff40c12SJohn Marino enum nl80211_ps_state {
45363ff40c12SJohn Marino 	NL80211_PS_DISABLED,
45373ff40c12SJohn Marino 	NL80211_PS_ENABLED,
45383ff40c12SJohn Marino };
45393ff40c12SJohn Marino 
45403ff40c12SJohn Marino /**
45413ff40c12SJohn Marino  * enum nl80211_attr_cqm - connection quality monitor attributes
45423ff40c12SJohn Marino  * @__NL80211_ATTR_CQM_INVALID: invalid
45433ff40c12SJohn Marino  * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies
45443ff40c12SJohn Marino  *	the threshold for the RSSI level at which an event will be sent. Zero
4545*a1157835SDaniel Fojt  *	to disable.  Alternatively, if %NL80211_EXT_FEATURE_CQM_RSSI_LIST is
4546*a1157835SDaniel Fojt  *	set, multiple values can be supplied as a low-to-high sorted array of
4547*a1157835SDaniel Fojt  *	threshold values in dBm.  Events will be sent when the RSSI value
4548*a1157835SDaniel Fojt  *	crosses any of the thresholds.
45493ff40c12SJohn Marino  * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies
45503ff40c12SJohn Marino  *	the minimum amount the RSSI level must change after an event before a
45513ff40c12SJohn Marino  *	new event may be issued (to reduce effects of RSSI oscillation).
45523ff40c12SJohn Marino  * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event
45533ff40c12SJohn Marino  * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many
45543ff40c12SJohn Marino  *	consecutive packets were not acknowledged by the peer
45553ff40c12SJohn Marino  * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures
45563ff40c12SJohn Marino  *	during the given %NL80211_ATTR_CQM_TXE_INTVL before an
45573ff40c12SJohn Marino  *	%NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and
45583ff40c12SJohn Marino  *	%NL80211_ATTR_CQM_TXE_PKTS is generated.
45593ff40c12SJohn Marino  * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given
45603ff40c12SJohn Marino  *	%NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is
45613ff40c12SJohn Marino  *	checked.
45623ff40c12SJohn Marino  * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic
45633ff40c12SJohn Marino  *	interval in which %NL80211_ATTR_CQM_TXE_PKTS and
45643ff40c12SJohn Marino  *	%NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an
45653ff40c12SJohn Marino  *	%NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting.
4566*a1157835SDaniel Fojt  * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon
4567*a1157835SDaniel Fojt  *	loss event
4568*a1157835SDaniel Fojt  * @NL80211_ATTR_CQM_RSSI_LEVEL: the RSSI value in dBm that triggered the
4569*a1157835SDaniel Fojt  *	RSSI threshold event.
45703ff40c12SJohn Marino  * @__NL80211_ATTR_CQM_AFTER_LAST: internal
45713ff40c12SJohn Marino  * @NL80211_ATTR_CQM_MAX: highest key attribute
45723ff40c12SJohn Marino  */
45733ff40c12SJohn Marino enum nl80211_attr_cqm {
45743ff40c12SJohn Marino 	__NL80211_ATTR_CQM_INVALID,
45753ff40c12SJohn Marino 	NL80211_ATTR_CQM_RSSI_THOLD,
45763ff40c12SJohn Marino 	NL80211_ATTR_CQM_RSSI_HYST,
45773ff40c12SJohn Marino 	NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT,
45783ff40c12SJohn Marino 	NL80211_ATTR_CQM_PKT_LOSS_EVENT,
45793ff40c12SJohn Marino 	NL80211_ATTR_CQM_TXE_RATE,
45803ff40c12SJohn Marino 	NL80211_ATTR_CQM_TXE_PKTS,
45813ff40c12SJohn Marino 	NL80211_ATTR_CQM_TXE_INTVL,
4582*a1157835SDaniel Fojt 	NL80211_ATTR_CQM_BEACON_LOSS_EVENT,
4583*a1157835SDaniel Fojt 	NL80211_ATTR_CQM_RSSI_LEVEL,
45843ff40c12SJohn Marino 
45853ff40c12SJohn Marino 	/* keep last */
45863ff40c12SJohn Marino 	__NL80211_ATTR_CQM_AFTER_LAST,
45873ff40c12SJohn Marino 	NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1
45883ff40c12SJohn Marino };
45893ff40c12SJohn Marino 
45903ff40c12SJohn Marino /**
45913ff40c12SJohn Marino  * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event
45923ff40c12SJohn Marino  * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the
45933ff40c12SJohn Marino  *      configured threshold
45943ff40c12SJohn Marino  * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
45953ff40c12SJohn Marino  *      configured threshold
4596*a1157835SDaniel Fojt  * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent)
45973ff40c12SJohn Marino  */
45983ff40c12SJohn Marino enum nl80211_cqm_rssi_threshold_event {
45993ff40c12SJohn Marino 	NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,
46003ff40c12SJohn Marino 	NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
46013ff40c12SJohn Marino 	NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
46023ff40c12SJohn Marino };
46033ff40c12SJohn Marino 
46043ff40c12SJohn Marino 
46053ff40c12SJohn Marino /**
46063ff40c12SJohn Marino  * enum nl80211_tx_power_setting - TX power adjustment
46073ff40c12SJohn Marino  * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power
46083ff40c12SJohn Marino  * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter
46093ff40c12SJohn Marino  * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter
46103ff40c12SJohn Marino  */
46113ff40c12SJohn Marino enum nl80211_tx_power_setting {
46123ff40c12SJohn Marino 	NL80211_TX_POWER_AUTOMATIC,
46133ff40c12SJohn Marino 	NL80211_TX_POWER_LIMITED,
46143ff40c12SJohn Marino 	NL80211_TX_POWER_FIXED,
46153ff40c12SJohn Marino };
46163ff40c12SJohn Marino 
46173ff40c12SJohn Marino /**
46183ff40c12SJohn Marino  * enum nl80211_packet_pattern_attr - packet pattern attribute
46193ff40c12SJohn Marino  * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute
46203ff40c12SJohn Marino  * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has
46213ff40c12SJohn Marino  *	a zero bit are ignored
46223ff40c12SJohn Marino  * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have
46233ff40c12SJohn Marino  *	a bit for each byte in the pattern. The lowest-order bit corresponds
46243ff40c12SJohn Marino  *	to the first byte of the pattern, but the bytes of the pattern are
46253ff40c12SJohn Marino  *	in a little-endian-like format, i.e. the 9th byte of the pattern
46263ff40c12SJohn Marino  *	corresponds to the lowest-order bit in the second byte of the mask.
46273ff40c12SJohn Marino  *	For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where
46283ff40c12SJohn Marino  *	xx indicates "don't care") would be represented by a pattern of
46293ff40c12SJohn Marino  *	twelve zero bytes, and a mask of "0xed,0x01".
46303ff40c12SJohn Marino  *	Note that the pattern matching is done as though frames were not
46313ff40c12SJohn Marino  *	802.11 frames but 802.3 frames, i.e. the frame is fully unpacked
46323ff40c12SJohn Marino  *	first (including SNAP header unpacking) and then matched.
46333ff40c12SJohn Marino  * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after
46343ff40c12SJohn Marino  *	these fixed number of bytes of received packet
46353ff40c12SJohn Marino  * @NUM_NL80211_PKTPAT: number of attributes
46363ff40c12SJohn Marino  * @MAX_NL80211_PKTPAT: max attribute number
46373ff40c12SJohn Marino  */
46383ff40c12SJohn Marino enum nl80211_packet_pattern_attr {
46393ff40c12SJohn Marino 	__NL80211_PKTPAT_INVALID,
46403ff40c12SJohn Marino 	NL80211_PKTPAT_MASK,
46413ff40c12SJohn Marino 	NL80211_PKTPAT_PATTERN,
46423ff40c12SJohn Marino 	NL80211_PKTPAT_OFFSET,
46433ff40c12SJohn Marino 
46443ff40c12SJohn Marino 	NUM_NL80211_PKTPAT,
46453ff40c12SJohn Marino 	MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1,
46463ff40c12SJohn Marino };
46473ff40c12SJohn Marino 
46483ff40c12SJohn Marino /**
46493ff40c12SJohn Marino  * struct nl80211_pattern_support - packet pattern support information
46503ff40c12SJohn Marino  * @max_patterns: maximum number of patterns supported
46513ff40c12SJohn Marino  * @min_pattern_len: minimum length of each pattern
46523ff40c12SJohn Marino  * @max_pattern_len: maximum length of each pattern
46533ff40c12SJohn Marino  * @max_pkt_offset: maximum Rx packet offset
46543ff40c12SJohn Marino  *
46553ff40c12SJohn Marino  * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when
46563ff40c12SJohn Marino  * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in
46573ff40c12SJohn Marino  * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of
46583ff40c12SJohn Marino  * %NL80211_ATTR_COALESCE_RULE in the capability information given
46593ff40c12SJohn Marino  * by the kernel to userspace.
46603ff40c12SJohn Marino  */
46613ff40c12SJohn Marino struct nl80211_pattern_support {
46623ff40c12SJohn Marino 	__u32 max_patterns;
46633ff40c12SJohn Marino 	__u32 min_pattern_len;
46643ff40c12SJohn Marino 	__u32 max_pattern_len;
46653ff40c12SJohn Marino 	__u32 max_pkt_offset;
46663ff40c12SJohn Marino } __attribute__((packed));
46673ff40c12SJohn Marino 
46683ff40c12SJohn Marino /* only for backward compatibility */
46693ff40c12SJohn Marino #define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID
46703ff40c12SJohn Marino #define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK
46713ff40c12SJohn Marino #define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN
46723ff40c12SJohn Marino #define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET
46733ff40c12SJohn Marino #define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT
46743ff40c12SJohn Marino #define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT
46753ff40c12SJohn Marino #define nl80211_wowlan_pattern_support nl80211_pattern_support
46763ff40c12SJohn Marino 
46773ff40c12SJohn Marino /**
46783ff40c12SJohn Marino  * enum nl80211_wowlan_triggers - WoWLAN trigger definitions
46793ff40c12SJohn Marino  * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes
46803ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put
46813ff40c12SJohn Marino  *	the chip into a special state -- works best with chips that have
46823ff40c12SJohn Marino  *	support for low-power operation already (flag)
4683*a1157835SDaniel Fojt  *	Note that this mode is incompatible with all of the others, if
4684*a1157835SDaniel Fojt  *	any others are even supported by the device.
46853ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect
46863ff40c12SJohn Marino  *	is detected is implementation-specific (flag)
46873ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed
46883ff40c12SJohn Marino  *	by 16 repetitions of MAC addr, anywhere in payload) (flag)
46893ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns
46903ff40c12SJohn Marino  *	which are passed in an array of nested attributes, each nested attribute
46913ff40c12SJohn Marino  *	defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern.
46923ff40c12SJohn Marino  *	Each pattern defines a wakeup packet. Packet offset is associated with
46933ff40c12SJohn Marino  *	each pattern which is used while matching the pattern. The matching is
46943ff40c12SJohn Marino  *	done on the MSDU, i.e. as though the packet was an 802.3 packet, so the
46953ff40c12SJohn Marino  *	pattern matching is done after the packet is converted to the MSDU.
46963ff40c12SJohn Marino  *
46973ff40c12SJohn Marino  *	In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute
46983ff40c12SJohn Marino  *	carrying a &struct nl80211_pattern_support.
46993ff40c12SJohn Marino  *
47003ff40c12SJohn Marino  *	When reporting wakeup. it is a u32 attribute containing the 0-based
47013ff40c12SJohn Marino  *	index of the pattern that caused the wakeup, in the patterns passed
47023ff40c12SJohn Marino  *	to the kernel when configuring.
47033ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be
47043ff40c12SJohn Marino  *	used when setting, used only to indicate that GTK rekeying is supported
47053ff40c12SJohn Marino  *	by the device (flag)
47063ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if
47073ff40c12SJohn Marino  *	done by the device) (flag)
47083ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request
47093ff40c12SJohn Marino  *	packet (flag)
47103ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag)
47113ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released
47123ff40c12SJohn Marino  *	(on devices that have rfkill in the device) (flag)
47133ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains
47143ff40c12SJohn Marino  *	the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame
47153ff40c12SJohn Marino  *	may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN
47163ff40c12SJohn Marino  *	attribute contains the original length.
47173ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11
47183ff40c12SJohn Marino  *	packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211
47193ff40c12SJohn Marino  *	attribute if the packet was truncated somewhere.
47203ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the
47213ff40c12SJohn Marino  *	802.11 packet that caused the wakeup, e.g. a magic packet. The frame may
47223ff40c12SJohn Marino  *	be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute
47233ff40c12SJohn Marino  *	contains the original length.
47243ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3
47253ff40c12SJohn Marino  *	packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023
47263ff40c12SJohn Marino  *	attribute if the packet was truncated somewhere.
47273ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section
47283ff40c12SJohn Marino  *	"TCP connection wakeup" for more details. This is a nested attribute
47293ff40c12SJohn Marino  *	containing the exact information for establishing and keeping alive
47303ff40c12SJohn Marino  *	the TCP connection.
47313ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the
47323ff40c12SJohn Marino  *	wakeup packet was received on the TCP connection
47333ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the
47343ff40c12SJohn Marino  *	TCP connection was lost or failed to be established
47353ff40c12SJohn Marino  * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only,
47363ff40c12SJohn Marino  *	the TCP connection ran out of tokens to use for data to send to the
47373ff40c12SJohn Marino  *	service
4738*a1157835SDaniel Fojt  * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network
4739*a1157835SDaniel Fojt  *	is detected.  This is a nested attribute that contains the
4740*a1157835SDaniel Fojt  *	same attributes used with @NL80211_CMD_START_SCHED_SCAN.  It
4741*a1157835SDaniel Fojt  *	specifies how the scan is performed (e.g. the interval, the
4742*a1157835SDaniel Fojt  *	channels to scan and the initial delay) as well as the scan
4743*a1157835SDaniel Fojt  *	results that will trigger a wake (i.e. the matchsets).  This
4744*a1157835SDaniel Fojt  *	attribute is also sent in a response to
4745*a1157835SDaniel Fojt  *	@NL80211_CMD_GET_WIPHY, indicating the number of match sets
4746*a1157835SDaniel Fojt  *	supported by the driver (u32).
4747*a1157835SDaniel Fojt  * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute
4748*a1157835SDaniel Fojt  *	containing an array with information about what triggered the
4749*a1157835SDaniel Fojt  *	wake up.  If no elements are present in the array, it means
4750*a1157835SDaniel Fojt  *	that the information is not available.  If more than one
4751*a1157835SDaniel Fojt  *	element is present, it means that more than one match
4752*a1157835SDaniel Fojt  *	occurred.
4753*a1157835SDaniel Fojt  *	Each element in the array is a nested attribute that contains
4754*a1157835SDaniel Fojt  *	one optional %NL80211_ATTR_SSID attribute and one optional
4755*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCAN_FREQUENCIES attribute.  At least one of
4756*a1157835SDaniel Fojt  *	these attributes must be present.  If
4757*a1157835SDaniel Fojt  *	%NL80211_ATTR_SCAN_FREQUENCIES contains more than one
4758*a1157835SDaniel Fojt  *	frequency, it means that the match occurred in more than one
4759*a1157835SDaniel Fojt  *	channel.
47603ff40c12SJohn Marino  * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
47613ff40c12SJohn Marino  * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
47623ff40c12SJohn Marino  *
47633ff40c12SJohn Marino  * These nested attributes are used to configure the wakeup triggers and
47643ff40c12SJohn Marino  * to report the wakeup reason(s).
47653ff40c12SJohn Marino  */
47663ff40c12SJohn Marino enum nl80211_wowlan_triggers {
47673ff40c12SJohn Marino 	__NL80211_WOWLAN_TRIG_INVALID,
47683ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_ANY,
47693ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_DISCONNECT,
47703ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_MAGIC_PKT,
47713ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_PKT_PATTERN,
47723ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED,
47733ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE,
47743ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST,
47753ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE,
47763ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_RFKILL_RELEASE,
47773ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211,
47783ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN,
47793ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023,
47803ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN,
47813ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_TCP_CONNECTION,
47823ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
47833ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
47843ff40c12SJohn Marino 	NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
4785*a1157835SDaniel Fojt 	NL80211_WOWLAN_TRIG_NET_DETECT,
4786*a1157835SDaniel Fojt 	NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
47873ff40c12SJohn Marino 
47883ff40c12SJohn Marino 	/* keep last */
47893ff40c12SJohn Marino 	NUM_NL80211_WOWLAN_TRIG,
47903ff40c12SJohn Marino 	MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1
47913ff40c12SJohn Marino };
47923ff40c12SJohn Marino 
47933ff40c12SJohn Marino /**
47943ff40c12SJohn Marino  * DOC: TCP connection wakeup
47953ff40c12SJohn Marino  *
47963ff40c12SJohn Marino  * Some devices can establish a TCP connection in order to be woken up by a
47973ff40c12SJohn Marino  * packet coming in from outside their network segment, or behind NAT. If
47983ff40c12SJohn Marino  * configured, the device will establish a TCP connection to the given
47993ff40c12SJohn Marino  * service, and periodically send data to that service. The first data
48003ff40c12SJohn Marino  * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK.
48013ff40c12SJohn Marino  * The data packets can optionally include a (little endian) sequence
48023ff40c12SJohn Marino  * number (in the TCP payload!) that is generated by the device, and, also
48033ff40c12SJohn Marino  * optionally, a token from a list of tokens. This serves as a keep-alive
48043ff40c12SJohn Marino  * with the service, and for NATed connections, etc.
48053ff40c12SJohn Marino  *
48063ff40c12SJohn Marino  * During this keep-alive period, the server doesn't send any data to the
48073ff40c12SJohn Marino  * client. When receiving data, it is compared against the wakeup pattern
48083ff40c12SJohn Marino  * (and mask) and if it matches, the host is woken up. Similarly, if the
48093ff40c12SJohn Marino  * connection breaks or cannot be established to start with, the host is
48103ff40c12SJohn Marino  * also woken up.
48113ff40c12SJohn Marino  *
48123ff40c12SJohn Marino  * Developer's note: ARP offload is required for this, otherwise TCP
48133ff40c12SJohn Marino  * response packets might not go through correctly.
48143ff40c12SJohn Marino  */
48153ff40c12SJohn Marino 
48163ff40c12SJohn Marino /**
48173ff40c12SJohn Marino  * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence
48183ff40c12SJohn Marino  * @start: starting value
48193ff40c12SJohn Marino  * @offset: offset of sequence number in packet
48203ff40c12SJohn Marino  * @len: length of the sequence value to write, 1 through 4
48213ff40c12SJohn Marino  *
48223ff40c12SJohn Marino  * Note: don't confuse with the TCP sequence number(s), this is for the
48233ff40c12SJohn Marino  * keepalive packet payload. The actual value is written into the packet
48243ff40c12SJohn Marino  * in little endian.
48253ff40c12SJohn Marino  */
48263ff40c12SJohn Marino struct nl80211_wowlan_tcp_data_seq {
48273ff40c12SJohn Marino 	__u32 start, offset, len;
48283ff40c12SJohn Marino };
48293ff40c12SJohn Marino 
48303ff40c12SJohn Marino /**
48313ff40c12SJohn Marino  * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config
48323ff40c12SJohn Marino  * @offset: offset of token in packet
48333ff40c12SJohn Marino  * @len: length of each token
48343ff40c12SJohn Marino  * @token_stream: stream of data to be used for the tokens, the length must
48353ff40c12SJohn Marino  *	be a multiple of @len for this to make sense
48363ff40c12SJohn Marino  */
48373ff40c12SJohn Marino struct nl80211_wowlan_tcp_data_token {
48383ff40c12SJohn Marino 	__u32 offset, len;
48393ff40c12SJohn Marino 	__u8 token_stream[];
48403ff40c12SJohn Marino };
48413ff40c12SJohn Marino 
48423ff40c12SJohn Marino /**
48433ff40c12SJohn Marino  * struct nl80211_wowlan_tcp_data_token_feature - data token features
48443ff40c12SJohn Marino  * @min_len: minimum token length
48453ff40c12SJohn Marino  * @max_len: maximum token length
48463ff40c12SJohn Marino  * @bufsize: total available token buffer size (max size of @token_stream)
48473ff40c12SJohn Marino  */
48483ff40c12SJohn Marino struct nl80211_wowlan_tcp_data_token_feature {
48493ff40c12SJohn Marino 	__u32 min_len, max_len, bufsize;
48503ff40c12SJohn Marino };
48513ff40c12SJohn Marino 
48523ff40c12SJohn Marino /**
48533ff40c12SJohn Marino  * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters
48543ff40c12SJohn Marino  * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes
48553ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order)
48563ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address
48573ff40c12SJohn Marino  *	(in network byte order)
48583ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because
48593ff40c12SJohn Marino  *	route lookup when configured might be invalid by the time we suspend,
48603ff40c12SJohn Marino  *	and doing a route lookup when suspending is no longer possible as it
48613ff40c12SJohn Marino  *	might require ARP querying.
48623ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a
48633ff40c12SJohn Marino  *	socket and port will be allocated
48643ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16)
48653ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte.
48663ff40c12SJohn Marino  *	For feature advertising, a u32 attribute holding the maximum length
48673ff40c12SJohn Marino  *	of the data payload.
48683ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration
48693ff40c12SJohn Marino  *	(if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature
48703ff40c12SJohn Marino  *	advertising it is just a flag
48713ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration,
48723ff40c12SJohn Marino  *	see &struct nl80211_wowlan_tcp_data_token and for advertising see
48733ff40c12SJohn Marino  *	&struct nl80211_wowlan_tcp_data_token_feature.
48743ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum
48753ff40c12SJohn Marino  *	interval in feature advertising (u32)
48763ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a
48773ff40c12SJohn Marino  *	u32 attribute holding the maximum length
48783ff40c12SJohn Marino  * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for
48793ff40c12SJohn Marino  *	feature advertising. The mask works like @NL80211_PKTPAT_MASK
48803ff40c12SJohn Marino  *	but on the TCP payload only.
48813ff40c12SJohn Marino  * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes
48823ff40c12SJohn Marino  * @MAX_NL80211_WOWLAN_TCP: highest attribute number
48833ff40c12SJohn Marino  */
48843ff40c12SJohn Marino enum nl80211_wowlan_tcp_attrs {
48853ff40c12SJohn Marino 	__NL80211_WOWLAN_TCP_INVALID,
48863ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_SRC_IPV4,
48873ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DST_IPV4,
48883ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DST_MAC,
48893ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_SRC_PORT,
48903ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DST_PORT,
48913ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DATA_PAYLOAD,
48923ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ,
48933ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN,
48943ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_DATA_INTERVAL,
48953ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_WAKE_PAYLOAD,
48963ff40c12SJohn Marino 	NL80211_WOWLAN_TCP_WAKE_MASK,
48973ff40c12SJohn Marino 
48983ff40c12SJohn Marino 	/* keep last */
48993ff40c12SJohn Marino 	NUM_NL80211_WOWLAN_TCP,
49003ff40c12SJohn Marino 	MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1
49013ff40c12SJohn Marino };
49023ff40c12SJohn Marino 
49033ff40c12SJohn Marino /**
49043ff40c12SJohn Marino  * struct nl80211_coalesce_rule_support - coalesce rule support information
49053ff40c12SJohn Marino  * @max_rules: maximum number of rules supported
49063ff40c12SJohn Marino  * @pat: packet pattern support information
49073ff40c12SJohn Marino  * @max_delay: maximum supported coalescing delay in msecs
49083ff40c12SJohn Marino  *
49093ff40c12SJohn Marino  * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the
49103ff40c12SJohn Marino  * capability information given by the kernel to userspace.
49113ff40c12SJohn Marino  */
49123ff40c12SJohn Marino struct nl80211_coalesce_rule_support {
49133ff40c12SJohn Marino 	__u32 max_rules;
49143ff40c12SJohn Marino 	struct nl80211_pattern_support pat;
49153ff40c12SJohn Marino 	__u32 max_delay;
49163ff40c12SJohn Marino } __attribute__((packed));
49173ff40c12SJohn Marino 
49183ff40c12SJohn Marino /**
49193ff40c12SJohn Marino  * enum nl80211_attr_coalesce_rule - coalesce rule attribute
49203ff40c12SJohn Marino  * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute
49213ff40c12SJohn Marino  * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing
49223ff40c12SJohn Marino  * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence,
49233ff40c12SJohn Marino  *	see &enum nl80211_coalesce_condition.
49243ff40c12SJohn Marino  * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched
49253ff40c12SJohn Marino  *	after these fixed number of bytes of received packet
49263ff40c12SJohn Marino  * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes
49273ff40c12SJohn Marino  * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number
49283ff40c12SJohn Marino  */
49293ff40c12SJohn Marino enum nl80211_attr_coalesce_rule {
49303ff40c12SJohn Marino 	__NL80211_COALESCE_RULE_INVALID,
49313ff40c12SJohn Marino 	NL80211_ATTR_COALESCE_RULE_DELAY,
49323ff40c12SJohn Marino 	NL80211_ATTR_COALESCE_RULE_CONDITION,
49333ff40c12SJohn Marino 	NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,
49343ff40c12SJohn Marino 
49353ff40c12SJohn Marino 	/* keep last */
49363ff40c12SJohn Marino 	NUM_NL80211_ATTR_COALESCE_RULE,
49373ff40c12SJohn Marino 	NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1
49383ff40c12SJohn Marino };
49393ff40c12SJohn Marino 
49403ff40c12SJohn Marino /**
49413ff40c12SJohn Marino  * enum nl80211_coalesce_condition - coalesce rule conditions
49423ff40c12SJohn Marino  * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns
49433ff40c12SJohn Marino  *	in a rule are matched.
49443ff40c12SJohn Marino  * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns
49453ff40c12SJohn Marino  *	in a rule are not matched.
49463ff40c12SJohn Marino  */
49473ff40c12SJohn Marino enum nl80211_coalesce_condition {
49483ff40c12SJohn Marino 	NL80211_COALESCE_CONDITION_MATCH,
49493ff40c12SJohn Marino 	NL80211_COALESCE_CONDITION_NO_MATCH
49503ff40c12SJohn Marino };
49513ff40c12SJohn Marino 
49523ff40c12SJohn Marino /**
49533ff40c12SJohn Marino  * enum nl80211_iface_limit_attrs - limit attributes
49543ff40c12SJohn Marino  * @NL80211_IFACE_LIMIT_UNSPEC: (reserved)
49553ff40c12SJohn Marino  * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that
49563ff40c12SJohn Marino  *	can be chosen from this set of interface types (u32)
49573ff40c12SJohn Marino  * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a
49583ff40c12SJohn Marino  *	flag attribute for each interface type in this set
49593ff40c12SJohn Marino  * @NUM_NL80211_IFACE_LIMIT: number of attributes
49603ff40c12SJohn Marino  * @MAX_NL80211_IFACE_LIMIT: highest attribute number
49613ff40c12SJohn Marino  */
49623ff40c12SJohn Marino enum nl80211_iface_limit_attrs {
49633ff40c12SJohn Marino 	NL80211_IFACE_LIMIT_UNSPEC,
49643ff40c12SJohn Marino 	NL80211_IFACE_LIMIT_MAX,
49653ff40c12SJohn Marino 	NL80211_IFACE_LIMIT_TYPES,
49663ff40c12SJohn Marino 
49673ff40c12SJohn Marino 	/* keep last */
49683ff40c12SJohn Marino 	NUM_NL80211_IFACE_LIMIT,
49693ff40c12SJohn Marino 	MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1
49703ff40c12SJohn Marino };
49713ff40c12SJohn Marino 
49723ff40c12SJohn Marino /**
49733ff40c12SJohn Marino  * enum nl80211_if_combination_attrs -- interface combination attributes
49743ff40c12SJohn Marino  *
49753ff40c12SJohn Marino  * @NL80211_IFACE_COMB_UNSPEC: (reserved)
49763ff40c12SJohn Marino  * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits
49773ff40c12SJohn Marino  *	for given interface types, see &enum nl80211_iface_limit_attrs.
49783ff40c12SJohn Marino  * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of
49793ff40c12SJohn Marino  *	interfaces that can be created in this group. This number doesn't
49803ff40c12SJohn Marino  *	apply to interfaces purely managed in software, which are listed
49813ff40c12SJohn Marino  *	in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE.
49823ff40c12SJohn Marino  * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that
49833ff40c12SJohn Marino  *	beacon intervals within this group must be all the same even for
49843ff40c12SJohn Marino  *	infrastructure and AP/GO combinations, i.e. the GO(s) must adopt
49853ff40c12SJohn Marino  *	the infrastructure network's beacon interval.
49863ff40c12SJohn Marino  * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many
49873ff40c12SJohn Marino  *	different channels may be used within this group.
49883ff40c12SJohn Marino  * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap
49893ff40c12SJohn Marino  *	of supported channel widths for radar detection.
4990*a1157835SDaniel Fojt  * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap
4991*a1157835SDaniel Fojt  *	of supported regulatory regions for radar detection.
4992*a1157835SDaniel Fojt  * @NL80211_IFACE_COMB_BI_MIN_GCD: u32 attribute specifying the minimum GCD of
4993*a1157835SDaniel Fojt  *	different beacon intervals supported by all the interface combinations
4994*a1157835SDaniel Fojt  *	in this group (if not present, all beacon intervals be identical).
49953ff40c12SJohn Marino  * @NUM_NL80211_IFACE_COMB: number of attributes
49963ff40c12SJohn Marino  * @MAX_NL80211_IFACE_COMB: highest attribute number
49973ff40c12SJohn Marino  *
49983ff40c12SJohn Marino  * Examples:
49993ff40c12SJohn Marino  *	limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2
50003ff40c12SJohn Marino  *	=> allows an AP and a STA that must match BIs
50013ff40c12SJohn Marino  *
5002*a1157835SDaniel Fojt  *	numbers = [ #{AP, P2P-GO} <= 8 ], BI min gcd, channels = 1, max = 8,
5003*a1157835SDaniel Fojt  *	=> allows 8 of AP/GO that can have BI gcd >= min gcd
50043ff40c12SJohn Marino  *
50053ff40c12SJohn Marino  *	numbers = [ #{STA} <= 2 ], channels = 2, max = 2
50063ff40c12SJohn Marino  *	=> allows two STAs on different channels
50073ff40c12SJohn Marino  *
50083ff40c12SJohn Marino  *	numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4
50093ff40c12SJohn Marino  *	=> allows a STA plus three P2P interfaces
50103ff40c12SJohn Marino  *
5011*a1157835SDaniel Fojt  * The list of these four possibilities could completely be contained
50123ff40c12SJohn Marino  * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate
50133ff40c12SJohn Marino  * that any of these groups must match.
50143ff40c12SJohn Marino  *
50153ff40c12SJohn Marino  * "Combinations" of just a single interface will not be listed here,
50163ff40c12SJohn Marino  * a single interface of any valid interface type is assumed to always
50173ff40c12SJohn Marino  * be possible by itself. This means that implicitly, for each valid
50183ff40c12SJohn Marino  * interface type, the following group always exists:
50193ff40c12SJohn Marino  *	numbers = [ #{<type>} <= 1 ], channels = 1, max = 1
50203ff40c12SJohn Marino  */
50213ff40c12SJohn Marino enum nl80211_if_combination_attrs {
50223ff40c12SJohn Marino 	NL80211_IFACE_COMB_UNSPEC,
50233ff40c12SJohn Marino 	NL80211_IFACE_COMB_LIMITS,
50243ff40c12SJohn Marino 	NL80211_IFACE_COMB_MAXNUM,
50253ff40c12SJohn Marino 	NL80211_IFACE_COMB_STA_AP_BI_MATCH,
50263ff40c12SJohn Marino 	NL80211_IFACE_COMB_NUM_CHANNELS,
50273ff40c12SJohn Marino 	NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS,
5028*a1157835SDaniel Fojt 	NL80211_IFACE_COMB_RADAR_DETECT_REGIONS,
5029*a1157835SDaniel Fojt 	NL80211_IFACE_COMB_BI_MIN_GCD,
50303ff40c12SJohn Marino 
50313ff40c12SJohn Marino 	/* keep last */
50323ff40c12SJohn Marino 	NUM_NL80211_IFACE_COMB,
50333ff40c12SJohn Marino 	MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1
50343ff40c12SJohn Marino };
50353ff40c12SJohn Marino 
50363ff40c12SJohn Marino 
50373ff40c12SJohn Marino /**
50383ff40c12SJohn Marino  * enum nl80211_plink_state - state of a mesh peer link finite state machine
50393ff40c12SJohn Marino  *
50403ff40c12SJohn Marino  * @NL80211_PLINK_LISTEN: initial state, considered the implicit
5041*a1157835SDaniel Fojt  *	state of non existent mesh peer links
50423ff40c12SJohn Marino  * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to
50433ff40c12SJohn Marino  *	this mesh peer
50443ff40c12SJohn Marino  * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received
50453ff40c12SJohn Marino  *	from this mesh peer
50463ff40c12SJohn Marino  * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been
50473ff40c12SJohn Marino  *	received from this mesh peer
50483ff40c12SJohn Marino  * @NL80211_PLINK_ESTAB: mesh peer link is established
50493ff40c12SJohn Marino  * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled
50503ff40c12SJohn Marino  * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh
50513ff40c12SJohn Marino  *	plink are discarded
50523ff40c12SJohn Marino  * @NUM_NL80211_PLINK_STATES: number of peer link states
50533ff40c12SJohn Marino  * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states
50543ff40c12SJohn Marino  */
50553ff40c12SJohn Marino enum nl80211_plink_state {
50563ff40c12SJohn Marino 	NL80211_PLINK_LISTEN,
50573ff40c12SJohn Marino 	NL80211_PLINK_OPN_SNT,
50583ff40c12SJohn Marino 	NL80211_PLINK_OPN_RCVD,
50593ff40c12SJohn Marino 	NL80211_PLINK_CNF_RCVD,
50603ff40c12SJohn Marino 	NL80211_PLINK_ESTAB,
50613ff40c12SJohn Marino 	NL80211_PLINK_HOLDING,
50623ff40c12SJohn Marino 	NL80211_PLINK_BLOCKED,
50633ff40c12SJohn Marino 
50643ff40c12SJohn Marino 	/* keep last */
50653ff40c12SJohn Marino 	NUM_NL80211_PLINK_STATES,
50663ff40c12SJohn Marino 	MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1
50673ff40c12SJohn Marino };
50683ff40c12SJohn Marino 
50693ff40c12SJohn Marino /**
50703ff40c12SJohn Marino  * enum nl80211_plink_action - actions to perform in mesh peers
50713ff40c12SJohn Marino  *
50723ff40c12SJohn Marino  * @NL80211_PLINK_ACTION_NO_ACTION: perform no action
50733ff40c12SJohn Marino  * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment
50743ff40c12SJohn Marino  * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer
50753ff40c12SJohn Marino  * @NUM_NL80211_PLINK_ACTIONS: number of possible actions
50763ff40c12SJohn Marino  */
50773ff40c12SJohn Marino enum plink_actions {
50783ff40c12SJohn Marino 	NL80211_PLINK_ACTION_NO_ACTION,
50793ff40c12SJohn Marino 	NL80211_PLINK_ACTION_OPEN,
50803ff40c12SJohn Marino 	NL80211_PLINK_ACTION_BLOCK,
50813ff40c12SJohn Marino 
50823ff40c12SJohn Marino 	NUM_NL80211_PLINK_ACTIONS,
50833ff40c12SJohn Marino };
50843ff40c12SJohn Marino 
50853ff40c12SJohn Marino 
50863ff40c12SJohn Marino #define NL80211_KCK_LEN			16
50873ff40c12SJohn Marino #define NL80211_KEK_LEN			16
50883ff40c12SJohn Marino #define NL80211_REPLAY_CTR_LEN		8
50893ff40c12SJohn Marino 
50903ff40c12SJohn Marino /**
50913ff40c12SJohn Marino  * enum nl80211_rekey_data - attributes for GTK rekey offload
50923ff40c12SJohn Marino  * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes
50933ff40c12SJohn Marino  * @NL80211_REKEY_DATA_KEK: key encryption key (binary)
50943ff40c12SJohn Marino  * @NL80211_REKEY_DATA_KCK: key confirmation key (binary)
50953ff40c12SJohn Marino  * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary)
50963ff40c12SJohn Marino  * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal)
50973ff40c12SJohn Marino  * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal)
50983ff40c12SJohn Marino  */
50993ff40c12SJohn Marino enum nl80211_rekey_data {
51003ff40c12SJohn Marino 	__NL80211_REKEY_DATA_INVALID,
51013ff40c12SJohn Marino 	NL80211_REKEY_DATA_KEK,
51023ff40c12SJohn Marino 	NL80211_REKEY_DATA_KCK,
51033ff40c12SJohn Marino 	NL80211_REKEY_DATA_REPLAY_CTR,
51043ff40c12SJohn Marino 
51053ff40c12SJohn Marino 	/* keep last */
51063ff40c12SJohn Marino 	NUM_NL80211_REKEY_DATA,
51073ff40c12SJohn Marino 	MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1
51083ff40c12SJohn Marino };
51093ff40c12SJohn Marino 
51103ff40c12SJohn Marino /**
51113ff40c12SJohn Marino  * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID
51123ff40c12SJohn Marino  * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in
51133ff40c12SJohn Marino  *	Beacon frames)
51143ff40c12SJohn Marino  * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element
51153ff40c12SJohn Marino  *	in Beacon frames
51163ff40c12SJohn Marino  * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID
51173ff40c12SJohn Marino  *	element in Beacon frames but zero out each byte in the SSID
51183ff40c12SJohn Marino  */
51193ff40c12SJohn Marino enum nl80211_hidden_ssid {
51203ff40c12SJohn Marino 	NL80211_HIDDEN_SSID_NOT_IN_USE,
51213ff40c12SJohn Marino 	NL80211_HIDDEN_SSID_ZERO_LEN,
51223ff40c12SJohn Marino 	NL80211_HIDDEN_SSID_ZERO_CONTENTS
51233ff40c12SJohn Marino };
51243ff40c12SJohn Marino 
51253ff40c12SJohn Marino /**
51263ff40c12SJohn Marino  * enum nl80211_sta_wme_attr - station WME attributes
51273ff40c12SJohn Marino  * @__NL80211_STA_WME_INVALID: invalid number for nested attribute
51283ff40c12SJohn Marino  * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format
51293ff40c12SJohn Marino  *	is the same as the AC bitmap in the QoS info field.
51303ff40c12SJohn Marino  * @NL80211_STA_WME_MAX_SP: max service period. the format is the same
51313ff40c12SJohn Marino  *	as the MAX_SP field in the QoS info field (but already shifted down).
51323ff40c12SJohn Marino  * @__NL80211_STA_WME_AFTER_LAST: internal
51333ff40c12SJohn Marino  * @NL80211_STA_WME_MAX: highest station WME attribute
51343ff40c12SJohn Marino  */
51353ff40c12SJohn Marino enum nl80211_sta_wme_attr {
51363ff40c12SJohn Marino 	__NL80211_STA_WME_INVALID,
51373ff40c12SJohn Marino 	NL80211_STA_WME_UAPSD_QUEUES,
51383ff40c12SJohn Marino 	NL80211_STA_WME_MAX_SP,
51393ff40c12SJohn Marino 
51403ff40c12SJohn Marino 	/* keep last */
51413ff40c12SJohn Marino 	__NL80211_STA_WME_AFTER_LAST,
51423ff40c12SJohn Marino 	NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
51433ff40c12SJohn Marino };
51443ff40c12SJohn Marino 
51453ff40c12SJohn Marino /**
51463ff40c12SJohn Marino  * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates
51473ff40c12SJohn Marino  * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes
51483ff40c12SJohn Marino  * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher
51493ff40c12SJohn Marino  *	priority)
51503ff40c12SJohn Marino  * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets)
51513ff40c12SJohn Marino  * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag)
51523ff40c12SJohn Marino  * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes
51533ff40c12SJohn Marino  *	(internal)
51543ff40c12SJohn Marino  * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute
51553ff40c12SJohn Marino  *	(internal)
51563ff40c12SJohn Marino  */
51573ff40c12SJohn Marino enum nl80211_pmksa_candidate_attr {
51583ff40c12SJohn Marino 	__NL80211_PMKSA_CANDIDATE_INVALID,
51593ff40c12SJohn Marino 	NL80211_PMKSA_CANDIDATE_INDEX,
51603ff40c12SJohn Marino 	NL80211_PMKSA_CANDIDATE_BSSID,
51613ff40c12SJohn Marino 	NL80211_PMKSA_CANDIDATE_PREAUTH,
51623ff40c12SJohn Marino 
51633ff40c12SJohn Marino 	/* keep last */
51643ff40c12SJohn Marino 	NUM_NL80211_PMKSA_CANDIDATE,
51653ff40c12SJohn Marino 	MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1
51663ff40c12SJohn Marino };
51673ff40c12SJohn Marino 
51683ff40c12SJohn Marino /**
51693ff40c12SJohn Marino  * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION
51703ff40c12SJohn Marino  * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request
51713ff40c12SJohn Marino  * @NL80211_TDLS_SETUP: Setup TDLS link
51723ff40c12SJohn Marino  * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established
51733ff40c12SJohn Marino  * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link
51743ff40c12SJohn Marino  * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link
51753ff40c12SJohn Marino  */
51763ff40c12SJohn Marino enum nl80211_tdls_operation {
51773ff40c12SJohn Marino 	NL80211_TDLS_DISCOVERY_REQ,
51783ff40c12SJohn Marino 	NL80211_TDLS_SETUP,
51793ff40c12SJohn Marino 	NL80211_TDLS_TEARDOWN,
51803ff40c12SJohn Marino 	NL80211_TDLS_ENABLE_LINK,
51813ff40c12SJohn Marino 	NL80211_TDLS_DISABLE_LINK,
51823ff40c12SJohn Marino };
51833ff40c12SJohn Marino 
51843ff40c12SJohn Marino /*
51853ff40c12SJohn Marino  * enum nl80211_ap_sme_features - device-integrated AP features
51863ff40c12SJohn Marino  * Reserved for future use, no bits are defined in
51873ff40c12SJohn Marino  * NL80211_ATTR_DEVICE_AP_SME yet.
51883ff40c12SJohn Marino enum nl80211_ap_sme_features {
51893ff40c12SJohn Marino };
51903ff40c12SJohn Marino  */
51913ff40c12SJohn Marino 
51923ff40c12SJohn Marino /**
51933ff40c12SJohn Marino  * enum nl80211_feature_flags - device/driver features
51943ff40c12SJohn Marino  * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back
51953ff40c12SJohn Marino  *	TX status to the socket error queue when requested with the
51963ff40c12SJohn Marino  *	socket option.
51973ff40c12SJohn Marino  * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates.
51983ff40c12SJohn Marino  * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up
51993ff40c12SJohn Marino  *	the connected inactive stations in AP mode.
52003ff40c12SJohn Marino  * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested
52013ff40c12SJohn Marino  *	to work properly to suppport receiving regulatory hints from
52023ff40c12SJohn Marino  *	cellular base stations.
5203*a1157835SDaniel Fojt  * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only
5204*a1157835SDaniel Fojt  *	here to reserve the value for API/ABI compatibility)
52053ff40c12SJohn Marino  * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of
52063ff40c12SJohn Marino  *	equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station
52073ff40c12SJohn Marino  *	mode
52083ff40c12SJohn Marino  * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan
52093ff40c12SJohn Marino  * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported
52103ff40c12SJohn Marino  * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif
52113ff40c12SJohn Marino  * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting
52123ff40c12SJohn Marino  * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform
52133ff40c12SJohn Marino  *	OBSS scans and generate 20/40 BSS coex reports. This flag is used only
52143ff40c12SJohn Marino  *	for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied.
52153ff40c12SJohn Marino  * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window
52163ff40c12SJohn Marino  *	setting
52173ff40c12SJohn Marino  * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic
52183ff40c12SJohn Marino  *	powersave
52193ff40c12SJohn Marino  * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state
52203ff40c12SJohn Marino  *	transitions for AP clients. Without this flag (and if the driver
52213ff40c12SJohn Marino  *	doesn't have the AP SME in the device) the driver supports adding
52223ff40c12SJohn Marino  *	stations only when they're associated and adds them in associated
52233ff40c12SJohn Marino  *	state (to later be transitioned into authorized), with this flag
52243ff40c12SJohn Marino  *	they should be added before even sending the authentication reply
52253ff40c12SJohn Marino  *	and then transitioned into authenticated, associated and authorized
52263ff40c12SJohn Marino  *	states using station flags.
52273ff40c12SJohn Marino  *	Note that even for drivers that support this, the default is to add
52283ff40c12SJohn Marino  *	stations in authenticated/associated state, so to add unauthenticated
52293ff40c12SJohn Marino  *	stations the authenticated/associated bits have to be set in the mask.
52303ff40c12SJohn Marino  * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits
52313ff40c12SJohn Marino  *	(HT40, VHT 80/160 MHz) if this flag is set
52323ff40c12SJohn Marino  * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh
52333ff40c12SJohn Marino  *	Peering Management entity which may be implemented by registering for
52343ff40c12SJohn Marino  *	beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is
52353ff40c12SJohn Marino  *	still generated by the driver.
52363ff40c12SJohn Marino  * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor
52373ff40c12SJohn Marino  *	interface. An active monitor interface behaves like a normal monitor
52383ff40c12SJohn Marino  *	interface, but gets added to the driver. It ensures that incoming
52393ff40c12SJohn Marino  *	unicast packets directed at the configured interface address get ACKed.
5240*a1157835SDaniel Fojt  * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic
5241*a1157835SDaniel Fojt  *	channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the
5242*a1157835SDaniel Fojt  *	lifetime of a BSS.
5243*a1157835SDaniel Fojt  * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter
5244*a1157835SDaniel Fojt  *	Set IE to probe requests.
5245*a1157835SDaniel Fojt  * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE
5246*a1157835SDaniel Fojt  *	to probe requests.
5247*a1157835SDaniel Fojt  * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period
5248*a1157835SDaniel Fojt  *	requests sent to it by an AP.
5249*a1157835SDaniel Fojt  * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the
5250*a1157835SDaniel Fojt  *	current tx power value into the TPC Report IE in the spectrum
5251*a1157835SDaniel Fojt  *	management TPC Report action frame, and in the Radio Measurement Link
5252*a1157835SDaniel Fojt  *	Measurement Report action frame.
5253*a1157835SDaniel Fojt  * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout
5254*a1157835SDaniel Fojt  *	estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used
5255*a1157835SDaniel Fojt  *	to enable dynack.
5256*a1157835SDaniel Fojt  * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial
5257*a1157835SDaniel Fojt  *	multiplexing powersave, ie. can turn off all but one chain
5258*a1157835SDaniel Fojt  *	even on HT connections that should be using more chains.
5259*a1157835SDaniel Fojt  * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial
5260*a1157835SDaniel Fojt  *	multiplexing powersave, ie. can turn off all but one chain
5261*a1157835SDaniel Fojt  *	and then wake the rest up as required after, for example,
5262*a1157835SDaniel Fojt  *	rts/cts handshake.
5263*a1157835SDaniel Fojt  * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM
5264*a1157835SDaniel Fojt  *	TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS
5265*a1157835SDaniel Fojt  *	command. Standard IEEE 802.11 TSPEC setup is not yet supported, it
5266*a1157835SDaniel Fojt  *	needs to be able to handle Block-Ack agreements and other things.
5267*a1157835SDaniel Fojt  * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring
5268*a1157835SDaniel Fojt  *	the vif's MAC address upon creation.
5269*a1157835SDaniel Fojt  *	See 'macaddr' field in the vif_params (cfg80211.h).
5270*a1157835SDaniel Fojt  * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when
5271*a1157835SDaniel Fojt  *	operating as a TDLS peer.
5272*a1157835SDaniel Fojt  * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a
5273*a1157835SDaniel Fojt  *	random MAC address during scan (if the device is unassociated); the
5274*a1157835SDaniel Fojt  *	%NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC
5275*a1157835SDaniel Fojt  *	address mask/value will be used.
5276*a1157835SDaniel Fojt  * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports
5277*a1157835SDaniel Fojt  *	using a random MAC address for every scan iteration during scheduled
5278*a1157835SDaniel Fojt  *	scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may
5279*a1157835SDaniel Fojt  *	be set for scheduled scan and the MAC address mask/value will be used.
5280*a1157835SDaniel Fojt  * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a
5281*a1157835SDaniel Fojt  *	random MAC address for every scan iteration during "net detect", i.e.
5282*a1157835SDaniel Fojt  *	scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may
5283*a1157835SDaniel Fojt  *	be set for scheduled scan and the MAC address mask/value will be used.
52843ff40c12SJohn Marino  */
52853ff40c12SJohn Marino enum nl80211_feature_flags {
52863ff40c12SJohn Marino 	NL80211_FEATURE_SK_TX_STATUS			= 1 << 0,
52873ff40c12SJohn Marino 	NL80211_FEATURE_HT_IBSS				= 1 << 1,
52883ff40c12SJohn Marino 	NL80211_FEATURE_INACTIVITY_TIMER		= 1 << 2,
52893ff40c12SJohn Marino 	NL80211_FEATURE_CELL_BASE_REG_HINTS		= 1 << 3,
52903ff40c12SJohn Marino 	NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL	= 1 << 4,
52913ff40c12SJohn Marino 	NL80211_FEATURE_SAE				= 1 << 5,
52923ff40c12SJohn Marino 	NL80211_FEATURE_LOW_PRIORITY_SCAN		= 1 << 6,
52933ff40c12SJohn Marino 	NL80211_FEATURE_SCAN_FLUSH			= 1 << 7,
52943ff40c12SJohn Marino 	NL80211_FEATURE_AP_SCAN				= 1 << 8,
52953ff40c12SJohn Marino 	NL80211_FEATURE_VIF_TXPOWER			= 1 << 9,
52963ff40c12SJohn Marino 	NL80211_FEATURE_NEED_OBSS_SCAN			= 1 << 10,
52973ff40c12SJohn Marino 	NL80211_FEATURE_P2P_GO_CTWIN			= 1 << 11,
52983ff40c12SJohn Marino 	NL80211_FEATURE_P2P_GO_OPPPS			= 1 << 12,
52993ff40c12SJohn Marino 	/* bit 13 is reserved */
53003ff40c12SJohn Marino 	NL80211_FEATURE_ADVERTISE_CHAN_LIMITS		= 1 << 14,
53013ff40c12SJohn Marino 	NL80211_FEATURE_FULL_AP_CLIENT_STATE		= 1 << 15,
53023ff40c12SJohn Marino 	NL80211_FEATURE_USERSPACE_MPM			= 1 << 16,
53033ff40c12SJohn Marino 	NL80211_FEATURE_ACTIVE_MONITOR			= 1 << 17,
5304*a1157835SDaniel Fojt 	NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE	= 1 << 18,
5305*a1157835SDaniel Fojt 	NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES	= 1 << 19,
5306*a1157835SDaniel Fojt 	NL80211_FEATURE_WFA_TPC_IE_IN_PROBES		= 1 << 20,
5307*a1157835SDaniel Fojt 	NL80211_FEATURE_QUIET				= 1 << 21,
5308*a1157835SDaniel Fojt 	NL80211_FEATURE_TX_POWER_INSERTION		= 1 << 22,
5309*a1157835SDaniel Fojt 	NL80211_FEATURE_ACKTO_ESTIMATION		= 1 << 23,
5310*a1157835SDaniel Fojt 	NL80211_FEATURE_STATIC_SMPS			= 1 << 24,
5311*a1157835SDaniel Fojt 	NL80211_FEATURE_DYNAMIC_SMPS			= 1 << 25,
5312*a1157835SDaniel Fojt 	NL80211_FEATURE_SUPPORTS_WMM_ADMISSION		= 1 << 26,
5313*a1157835SDaniel Fojt 	NL80211_FEATURE_MAC_ON_CREATE			= 1 << 27,
5314*a1157835SDaniel Fojt 	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
5315*a1157835SDaniel Fojt 	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
5316*a1157835SDaniel Fojt 	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
5317*a1157835SDaniel Fojt 	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
5318*a1157835SDaniel Fojt };
5319*a1157835SDaniel Fojt 
5320*a1157835SDaniel Fojt /**
5321*a1157835SDaniel Fojt  * enum nl80211_ext_feature_index - bit index of extended features.
5322*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates.
5323*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_RRM: This driver supports RRM. When featured, user can
5324*a1157835SDaniel Fojt  *	can request to use RRM (see %NL80211_ATTR_USE_RRM) with
5325*a1157835SDaniel Fojt  *	%NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set
5326*a1157835SDaniel Fojt  *	the ASSOC_REQ_USE_RRM flag in the association request even if
5327*a1157835SDaniel Fojt  *	NL80211_FEATURE_QUIET is not advertized.
5328*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air
5329*a1157835SDaniel Fojt  *	sniffer which means that it can be configured to hear packets from
5330*a1157835SDaniel Fojt  *	certain groups which can be configured by the
5331*a1157835SDaniel Fojt  *	%NL80211_ATTR_MU_MIMO_GROUP_DATA attribute,
5332*a1157835SDaniel Fojt  *	or can be configured to follow a station by configuring the
5333*a1157835SDaniel Fojt  *	%NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR attribute.
5334*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SCAN_START_TIME: This driver includes the actual
5335*a1157835SDaniel Fojt  *	time the scan started in scan results event. The time is the TSF of
5336*a1157835SDaniel Fojt  *	the BSS that the interface that requested the scan is connected to
5337*a1157835SDaniel Fojt  *	(if available).
5338*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the
5339*a1157835SDaniel Fojt  *	time the last beacon/probe was received. The time is the TSF of the
5340*a1157835SDaniel Fojt  *	BSS that the interface that requested the scan is connected to
5341*a1157835SDaniel Fojt  *	(if available).
5342*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of
5343*a1157835SDaniel Fojt  *	channel dwell time.
5344*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate
5345*a1157835SDaniel Fojt  *	configuration (AP/mesh), supporting a legacy (non HT/VHT) rate.
5346*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate
5347*a1157835SDaniel Fojt  *	configuration (AP/mesh) with HT rates.
5348*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate
5349*a1157835SDaniel Fojt  *	configuration (AP/mesh) with VHT rates.
5350*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup
5351*a1157835SDaniel Fojt  *	with user space SME (NL80211_CMD_AUTHENTICATE) in station mode.
5352*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA
5353*a1157835SDaniel Fojt  *	in @NL80211_CMD_FRAME while not associated.
5354*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports
5355*a1157835SDaniel Fojt  *	randomized TA in @NL80211_CMD_FRAME while associated.
5356*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI: The driver supports sched_scan
5357*a1157835SDaniel Fojt  *	for reporting BSSs with better RSSI than the current connected BSS
5358*a1157835SDaniel Fojt  *	(%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI).
5359*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_CQM_RSSI_LIST: With this driver the
5360*a1157835SDaniel Fojt  *	%NL80211_ATTR_CQM_RSSI_THOLD attribute accepts a list of zero or more
5361*a1157835SDaniel Fojt  *	RSSI threshold values to monitor rather than exactly one threshold.
5362*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD: Driver SME supports FILS shared key
5363*a1157835SDaniel Fojt  *	authentication with %NL80211_CMD_CONNECT.
5364*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK: Device wants to do 4-way
5365*a1157835SDaniel Fojt  *	handshake with PSK in station mode (PSK is passed as part of the connect
5366*a1157835SDaniel Fojt  *	and associate commands), doing it in the host might not be supported.
5367*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X: Device wants to do doing 4-way
5368*a1157835SDaniel Fojt  *	handshake with 802.1X in station mode (will pass EAP frames to the host
5369*a1157835SDaniel Fojt  *	and accept the set_pmk/del_pmk commands), doing it in the host might not
5370*a1157835SDaniel Fojt  *	be supported.
5371*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME: Driver is capable of overriding
5372*a1157835SDaniel Fojt  *	the max channel attribute in the FILS request params IE with the
5373*a1157835SDaniel Fojt  *	actual dwell time.
5374*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP: Driver accepts broadcast probe
5375*a1157835SDaniel Fojt  *	response
5376*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE: Driver supports sending
5377*a1157835SDaniel Fojt  *	the first probe request in each channel at rate of at least 5.5Mbps.
5378*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports
5379*a1157835SDaniel Fojt  *	probe request tx deferral and suppression
5380*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_MFP_OPTIONAL: Driver supports the %NL80211_MFP_OPTIONAL
5381*a1157835SDaniel Fojt  *	value in %NL80211_ATTR_USE_MFP.
5382*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_LOW_SPAN_SCAN: Driver supports low span scan.
5383*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_LOW_POWER_SCAN: Driver supports low power scan.
5384*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN: Driver supports high accuracy scan.
5385*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_DFS_OFFLOAD: HW/driver will offload DFS actions.
5386*a1157835SDaniel Fojt  *	Device or driver will do all DFS-related actions by itself,
5387*a1157835SDaniel Fojt  *	informing user-space about CAC progress, radar detection event,
5388*a1157835SDaniel Fojt  *	channel change triggered by radar detection event.
5389*a1157835SDaniel Fojt  *	No need to start CAC from user-space, no need to react to
5390*a1157835SDaniel Fojt  *	"radar detected" event.
5391*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211: Driver supports sending and
5392*a1157835SDaniel Fojt  *	receiving control port frames over nl80211 instead of the netdevice.
5393*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports
5394*a1157835SDaniel Fojt  *	(average) ACK signal strength reporting.
5395*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate
5396*a1157835SDaniel Fojt  *      TXQs.
5397*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the
5398*a1157835SDaniel Fojt  *	SN in probe request frames if requested by %NL80211_SCAN_FLAG_RANDOM_SN.
5399*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT: Driver/device can omit all data
5400*a1157835SDaniel Fojt  *	except for supported rates from the probe request content if requested
5401*a1157835SDaniel Fojt  *	by the %NL80211_SCAN_FLAG_MIN_PREQ_CONTENT flag.
5402*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER: Driver supports enabling fine
5403*a1157835SDaniel Fojt  *	timing measurement responder role.
5404*a1157835SDaniel Fojt  *
5405*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_CAN_REPLACE_PTK0: Driver/device confirm that they are
5406*a1157835SDaniel Fojt  *      able to rekey an in-use key correctly. Userspace must not rekey PTK keys
5407*a1157835SDaniel Fojt  *      if this flag is not set. Ignoring this can leak clear text packets and/or
5408*a1157835SDaniel Fojt  *      freeze the connection.
5409*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_EXT_KEY_ID: Driver supports "Extended Key ID for
5410*a1157835SDaniel Fojt  *      Individually Addressed Frames" from IEEE802.11-2016.
5411*a1157835SDaniel Fojt  *
5412*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_AIRTIME_FAIRNESS: Driver supports getting airtime
5413*a1157835SDaniel Fojt  *	fairness for transmitted packets and has enabled airtime fairness
5414*a1157835SDaniel Fojt  *	scheduling.
5415*a1157835SDaniel Fojt  *
5416*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching
5417*a1157835SDaniel Fojt  *	(set/del PMKSA operations) in AP mode.
5418*a1157835SDaniel Fojt  *
5419*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports
5420*a1157835SDaniel Fojt  *	filtering of sched scan results using band specific RSSI thresholds.
5421*a1157835SDaniel Fojt  *
5422*a1157835SDaniel Fojt  * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power
5423*a1157835SDaniel Fojt  *	to a station.
5424*a1157835SDaniel Fojt  *
5425*a1157835SDaniel Fojt  * @NUM_NL80211_EXT_FEATURES: number of extended features.
5426*a1157835SDaniel Fojt  * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
5427*a1157835SDaniel Fojt  */
5428*a1157835SDaniel Fojt enum nl80211_ext_feature_index {
5429*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_VHT_IBSS,
5430*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_RRM,
5431*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER,
5432*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SCAN_START_TIME,
5433*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_BSS_PARENT_TSF,
5434*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SET_SCAN_DWELL,
5435*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
5436*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_BEACON_RATE_HT,
5437*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_BEACON_RATE_VHT,
5438*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_FILS_STA,
5439*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA,
5440*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED,
5441*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI,
5442*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_CQM_RSSI_LIST,
5443*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_FILS_SK_OFFLOAD,
5444*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK,
5445*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X,
5446*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME,
5447*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP,
5448*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE,
5449*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION,
5450*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_MFP_OPTIONAL,
5451*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_LOW_SPAN_SCAN,
5452*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_LOW_POWER_SCAN,
5453*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN,
5454*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_DFS_OFFLOAD,
5455*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211,
5456*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT,
5457*a1157835SDaniel Fojt 	/* we renamed this - stay compatible */
5458*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT,
5459*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_TXQS,
5460*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SCAN_RANDOM_SN,
5461*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT,
5462*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_CAN_REPLACE_PTK0,
5463*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER,
5464*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_AIRTIME_FAIRNESS,
5465*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_AP_PMKSA_CACHING,
5466*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,
5467*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_EXT_KEY_ID,
5468*a1157835SDaniel Fojt 	NL80211_EXT_FEATURE_STA_TX_PWR,
5469*a1157835SDaniel Fojt 
5470*a1157835SDaniel Fojt 	/* add new features before the definition below */
5471*a1157835SDaniel Fojt 	NUM_NL80211_EXT_FEATURES,
5472*a1157835SDaniel Fojt 	MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
54733ff40c12SJohn Marino };
54743ff40c12SJohn Marino 
54753ff40c12SJohn Marino /**
54763ff40c12SJohn Marino  * enum nl80211_probe_resp_offload_support_attr - optional supported
54773ff40c12SJohn Marino  *	protocols for probe-response offloading by the driver/FW.
54783ff40c12SJohn Marino  *	To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute.
54793ff40c12SJohn Marino  *	Each enum value represents a bit in the bitmap of supported
54803ff40c12SJohn Marino  *	protocols. Typically a subset of probe-requests belonging to a
54813ff40c12SJohn Marino  *	supported protocol will be excluded from offload and uploaded
54823ff40c12SJohn Marino  *	to the host.
54833ff40c12SJohn Marino  *
54843ff40c12SJohn Marino  * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1
54853ff40c12SJohn Marino  * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2
54863ff40c12SJohn Marino  * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P
54873ff40c12SJohn Marino  * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u
54883ff40c12SJohn Marino  */
54893ff40c12SJohn Marino enum nl80211_probe_resp_offload_support_attr {
54903ff40c12SJohn Marino 	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS =	1<<0,
54913ff40c12SJohn Marino 	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 =	1<<1,
54923ff40c12SJohn Marino 	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P =	1<<2,
54933ff40c12SJohn Marino 	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U =	1<<3,
54943ff40c12SJohn Marino };
54953ff40c12SJohn Marino 
54963ff40c12SJohn Marino /**
54973ff40c12SJohn Marino  * enum nl80211_connect_failed_reason - connection request failed reasons
54983ff40c12SJohn Marino  * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be
54993ff40c12SJohn Marino  *	handled by the AP is reached.
55003ff40c12SJohn Marino  * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL.
55013ff40c12SJohn Marino  */
55023ff40c12SJohn Marino enum nl80211_connect_failed_reason {
55033ff40c12SJohn Marino 	NL80211_CONN_FAIL_MAX_CLIENTS,
55043ff40c12SJohn Marino 	NL80211_CONN_FAIL_BLOCKED_CLIENT,
55053ff40c12SJohn Marino };
55063ff40c12SJohn Marino 
55073ff40c12SJohn Marino /**
5508*a1157835SDaniel Fojt  * enum nl80211_timeout_reason - timeout reasons
5509*a1157835SDaniel Fojt  *
5510*a1157835SDaniel Fojt  * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified.
5511*a1157835SDaniel Fojt  * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out.
5512*a1157835SDaniel Fojt  * @NL80211_TIMEOUT_AUTH: Authentication timed out.
5513*a1157835SDaniel Fojt  * @NL80211_TIMEOUT_ASSOC: Association timed out.
5514*a1157835SDaniel Fojt  */
5515*a1157835SDaniel Fojt enum nl80211_timeout_reason {
5516*a1157835SDaniel Fojt 	NL80211_TIMEOUT_UNSPECIFIED,
5517*a1157835SDaniel Fojt 	NL80211_TIMEOUT_SCAN,
5518*a1157835SDaniel Fojt 	NL80211_TIMEOUT_AUTH,
5519*a1157835SDaniel Fojt 	NL80211_TIMEOUT_ASSOC,
5520*a1157835SDaniel Fojt };
5521*a1157835SDaniel Fojt 
5522*a1157835SDaniel Fojt /**
55233ff40c12SJohn Marino  * enum nl80211_scan_flags -  scan request control flags
55243ff40c12SJohn Marino  *
55253ff40c12SJohn Marino  * Scan request control flags are used to control the handling
55263ff40c12SJohn Marino  * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN
55273ff40c12SJohn Marino  * requests.
55283ff40c12SJohn Marino  *
5529*a1157835SDaniel Fojt  * NL80211_SCAN_FLAG_LOW_SPAN, NL80211_SCAN_FLAG_LOW_POWER, and
5530*a1157835SDaniel Fojt  * NL80211_SCAN_FLAG_HIGH_ACCURACY flags are exclusive of each other, i.e., only
5531*a1157835SDaniel Fojt  * one of them can be used in the request.
5532*a1157835SDaniel Fojt  *
55333ff40c12SJohn Marino  * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority
55343ff40c12SJohn Marino  * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning
55353ff40c12SJohn Marino  * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured
55363ff40c12SJohn Marino  *	as AP and the beaconing has already been configured. This attribute is
55373ff40c12SJohn Marino  *	dangerous because will destroy stations performance as a lot of frames
55383ff40c12SJohn Marino  *	will be lost while scanning off-channel, therefore it must be used only
55393ff40c12SJohn Marino  *	when really needed
5540*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or
5541*a1157835SDaniel Fojt  *	for scheduled scan: a different one for every scan iteration). When the
5542*a1157835SDaniel Fojt  *	flag is set, depending on device capabilities the @NL80211_ATTR_MAC and
5543*a1157835SDaniel Fojt  *	@NL80211_ATTR_MAC_MASK attributes may also be given in which case only
5544*a1157835SDaniel Fojt  *	the masked bits will be preserved from the MAC address and the remainder
5545*a1157835SDaniel Fojt  *	randomised. If the attributes are not given full randomisation (46 bits,
5546*a1157835SDaniel Fojt  *	locally administered 1, multicast 0) is assumed.
5547*a1157835SDaniel Fojt  *	This flag must not be requested when the feature isn't supported, check
5548*a1157835SDaniel Fojt  *	the nl80211 feature flags for the device.
5549*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME: fill the dwell time in the FILS
5550*a1157835SDaniel Fojt  *	request parameters IE in the probe request
5551*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses
5552*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at
5553*a1157835SDaniel Fojt  *	rate of at least 5.5M. In case non OCE AP is discovered in the channel,
5554*a1157835SDaniel Fojt  *	only the first probe req in the channel will be sent in high rate.
5555*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request
5556*a1157835SDaniel Fojt  *	tx deferral (dot11FILSProbeDelay shall be set to 15ms)
5557*a1157835SDaniel Fojt  *	and suppression (if it has received a broadcast Probe Response frame,
5558*a1157835SDaniel Fojt  *	Beacon frame or FILS Discovery frame from an AP that the STA considers
5559*a1157835SDaniel Fojt  *	a suitable candidate for (re-)association - suitable in terms of
5560*a1157835SDaniel Fojt  *	SSID and/or RSSI.
5561*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_LOW_SPAN: Span corresponds to the total time taken to
5562*a1157835SDaniel Fojt  *	accomplish the scan. Thus, this flag intends the driver to perform the
5563*a1157835SDaniel Fojt  *	scan request with lesser span/duration. It is specific to the driver
5564*a1157835SDaniel Fojt  *	implementations on how this is accomplished. Scan accuracy may get
5565*a1157835SDaniel Fojt  *	impacted with this flag.
5566*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_LOW_POWER: This flag intends the scan attempts to consume
5567*a1157835SDaniel Fojt  *	optimal possible power. Drivers can resort to their specific means to
5568*a1157835SDaniel Fojt  *	optimize the power. Scan accuracy may get impacted with this flag.
5569*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_HIGH_ACCURACY: Accuracy here intends to the extent of scan
5570*a1157835SDaniel Fojt  *	results obtained. Thus HIGH_ACCURACY scan flag aims to get maximum
5571*a1157835SDaniel Fojt  *	possible scan results. This flag hints the driver to use the best
5572*a1157835SDaniel Fojt  *	possible scan configuration to improve the accuracy in scanning.
5573*a1157835SDaniel Fojt  *	Latency and power use may get impacted with this flag.
5574*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_RANDOM_SN: randomize the sequence number in probe
5575*a1157835SDaniel Fojt  *	request frames from this scan to avoid correlation/tracking being
5576*a1157835SDaniel Fojt  *	possible.
5577*a1157835SDaniel Fojt  * @NL80211_SCAN_FLAG_MIN_PREQ_CONTENT: minimize probe request content to
5578*a1157835SDaniel Fojt  *	only have supported rates and no additional capabilities (unless
5579*a1157835SDaniel Fojt  *	added by userspace explicitly.)
55803ff40c12SJohn Marino  */
55813ff40c12SJohn Marino enum nl80211_scan_flags {
55823ff40c12SJohn Marino 	NL80211_SCAN_FLAG_LOW_PRIORITY				= 1<<0,
55833ff40c12SJohn Marino 	NL80211_SCAN_FLAG_FLUSH					= 1<<1,
55843ff40c12SJohn Marino 	NL80211_SCAN_FLAG_AP					= 1<<2,
5585*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_RANDOM_ADDR				= 1<<3,
5586*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME			= 1<<4,
5587*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP		= 1<<5,
5588*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE		= 1<<6,
5589*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION	= 1<<7,
5590*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_LOW_SPAN				= 1<<8,
5591*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_LOW_POWER				= 1<<9,
5592*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_HIGH_ACCURACY				= 1<<10,
5593*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_RANDOM_SN				= 1<<11,
5594*a1157835SDaniel Fojt 	NL80211_SCAN_FLAG_MIN_PREQ_CONTENT			= 1<<12,
55953ff40c12SJohn Marino };
55963ff40c12SJohn Marino 
55973ff40c12SJohn Marino /**
55983ff40c12SJohn Marino  * enum nl80211_acl_policy - access control policy
55993ff40c12SJohn Marino  *
56003ff40c12SJohn Marino  * Access control policy is applied on a MAC list set by
56013ff40c12SJohn Marino  * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to
56023ff40c12SJohn Marino  * be used with %NL80211_ATTR_ACL_POLICY.
56033ff40c12SJohn Marino  *
56043ff40c12SJohn Marino  * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are
56053ff40c12SJohn Marino  *	listed in ACL, i.e. allow all the stations which are not listed
56063ff40c12SJohn Marino  *	in ACL to authenticate.
56073ff40c12SJohn Marino  * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed
56083ff40c12SJohn Marino  *	in ACL, i.e. deny all the stations which are not listed in ACL.
56093ff40c12SJohn Marino  */
56103ff40c12SJohn Marino enum nl80211_acl_policy {
56113ff40c12SJohn Marino 	NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED,
56123ff40c12SJohn Marino 	NL80211_ACL_POLICY_DENY_UNLESS_LISTED,
56133ff40c12SJohn Marino };
56143ff40c12SJohn Marino 
56153ff40c12SJohn Marino /**
5616*a1157835SDaniel Fojt  * enum nl80211_smps_mode - SMPS mode
5617*a1157835SDaniel Fojt  *
5618*a1157835SDaniel Fojt  * Requested SMPS mode (for AP mode)
5619*a1157835SDaniel Fojt  *
5620*a1157835SDaniel Fojt  * @NL80211_SMPS_OFF: SMPS off (use all antennas).
5621*a1157835SDaniel Fojt  * @NL80211_SMPS_STATIC: static SMPS (use a single antenna)
5622*a1157835SDaniel Fojt  * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and
5623*a1157835SDaniel Fojt  *	turn on other antennas after CTS/RTS).
5624*a1157835SDaniel Fojt  */
5625*a1157835SDaniel Fojt enum nl80211_smps_mode {
5626*a1157835SDaniel Fojt 	NL80211_SMPS_OFF,
5627*a1157835SDaniel Fojt 	NL80211_SMPS_STATIC,
5628*a1157835SDaniel Fojt 	NL80211_SMPS_DYNAMIC,
5629*a1157835SDaniel Fojt 
5630*a1157835SDaniel Fojt 	__NL80211_SMPS_AFTER_LAST,
5631*a1157835SDaniel Fojt 	NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1
5632*a1157835SDaniel Fojt };
5633*a1157835SDaniel Fojt 
5634*a1157835SDaniel Fojt /**
56353ff40c12SJohn Marino  * enum nl80211_radar_event - type of radar event for DFS operation
56363ff40c12SJohn Marino  *
56373ff40c12SJohn Marino  * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace
56383ff40c12SJohn Marino  * about detected radars or success of the channel available check (CAC)
56393ff40c12SJohn Marino  *
56403ff40c12SJohn Marino  * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is
56413ff40c12SJohn Marino  *	now unusable.
56423ff40c12SJohn Marino  * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished,
56433ff40c12SJohn Marino  *	the channel is now available.
56443ff40c12SJohn Marino  * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no
56453ff40c12SJohn Marino  *	change to the channel status.
56463ff40c12SJohn Marino  * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is
56473ff40c12SJohn Marino  *	over, channel becomes usable.
5648*a1157835SDaniel Fojt  * @NL80211_RADAR_PRE_CAC_EXPIRED: Channel Availability Check done on this
5649*a1157835SDaniel Fojt  *	non-operating channel is expired and no longer valid. New CAC must
5650*a1157835SDaniel Fojt  *	be done on this channel before starting the operation. This is not
5651*a1157835SDaniel Fojt  *	applicable for ETSI dfs domain where pre-CAC is valid for ever.
5652*a1157835SDaniel Fojt  * @NL80211_RADAR_CAC_STARTED: Channel Availability Check has been started,
5653*a1157835SDaniel Fojt  *	should be generated by HW if NL80211_EXT_FEATURE_DFS_OFFLOAD is enabled.
56543ff40c12SJohn Marino  */
56553ff40c12SJohn Marino enum nl80211_radar_event {
56563ff40c12SJohn Marino 	NL80211_RADAR_DETECTED,
56573ff40c12SJohn Marino 	NL80211_RADAR_CAC_FINISHED,
56583ff40c12SJohn Marino 	NL80211_RADAR_CAC_ABORTED,
56593ff40c12SJohn Marino 	NL80211_RADAR_NOP_FINISHED,
5660*a1157835SDaniel Fojt 	NL80211_RADAR_PRE_CAC_EXPIRED,
5661*a1157835SDaniel Fojt 	NL80211_RADAR_CAC_STARTED,
56623ff40c12SJohn Marino };
56633ff40c12SJohn Marino 
56643ff40c12SJohn Marino /**
56653ff40c12SJohn Marino  * enum nl80211_dfs_state - DFS states for channels
56663ff40c12SJohn Marino  *
56673ff40c12SJohn Marino  * Channel states used by the DFS code.
56683ff40c12SJohn Marino  *
56693ff40c12SJohn Marino  * @NL80211_DFS_USABLE: The channel can be used, but channel availability
56703ff40c12SJohn Marino  *	check (CAC) must be performed before using it for AP or IBSS.
56713ff40c12SJohn Marino  * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it
56723ff40c12SJohn Marino  *	is therefore marked as not available.
56733ff40c12SJohn Marino  * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available.
56743ff40c12SJohn Marino  */
56753ff40c12SJohn Marino enum nl80211_dfs_state {
56763ff40c12SJohn Marino 	NL80211_DFS_USABLE,
56773ff40c12SJohn Marino 	NL80211_DFS_UNAVAILABLE,
56783ff40c12SJohn Marino 	NL80211_DFS_AVAILABLE,
56793ff40c12SJohn Marino };
56803ff40c12SJohn Marino 
56813ff40c12SJohn Marino /**
56823ff40c12SJohn Marino  * enum enum nl80211_protocol_features - nl80211 protocol features
56833ff40c12SJohn Marino  * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting
56843ff40c12SJohn Marino  *	wiphy dumps (if requested by the application with the attribute
56853ff40c12SJohn Marino  *	%NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the
56863ff40c12SJohn Marino  *	wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or
56873ff40c12SJohn Marino  *	%NL80211_ATTR_WDEV.
56883ff40c12SJohn Marino  */
56893ff40c12SJohn Marino enum nl80211_protocol_features {
56903ff40c12SJohn Marino 	NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP =	1 << 0,
56913ff40c12SJohn Marino };
56923ff40c12SJohn Marino 
56933ff40c12SJohn Marino /**
56943ff40c12SJohn Marino  * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers
56953ff40c12SJohn Marino  *
56963ff40c12SJohn Marino  * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified.
56973ff40c12SJohn Marino  * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol.
56983ff40c12SJohn Marino  * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol.
56993ff40c12SJohn Marino  * @NL80211_CRIT_PROTO_APIPA: APIPA protocol.
57003ff40c12SJohn Marino  * @NUM_NL80211_CRIT_PROTO: must be kept last.
57013ff40c12SJohn Marino  */
57023ff40c12SJohn Marino enum nl80211_crit_proto_id {
57033ff40c12SJohn Marino 	NL80211_CRIT_PROTO_UNSPEC,
57043ff40c12SJohn Marino 	NL80211_CRIT_PROTO_DHCP,
57053ff40c12SJohn Marino 	NL80211_CRIT_PROTO_EAPOL,
57063ff40c12SJohn Marino 	NL80211_CRIT_PROTO_APIPA,
57073ff40c12SJohn Marino 	/* add other protocols before this one */
57083ff40c12SJohn Marino 	NUM_NL80211_CRIT_PROTO
57093ff40c12SJohn Marino };
57103ff40c12SJohn Marino 
57113ff40c12SJohn Marino /* maximum duration for critical protocol measures */
57123ff40c12SJohn Marino #define NL80211_CRIT_PROTO_MAX_DURATION		5000 /* msec */
57133ff40c12SJohn Marino 
57143ff40c12SJohn Marino /**
57153ff40c12SJohn Marino  * enum nl80211_rxmgmt_flags - flags for received management frame.
57163ff40c12SJohn Marino  *
57173ff40c12SJohn Marino  * Used by cfg80211_rx_mgmt()
57183ff40c12SJohn Marino  *
57193ff40c12SJohn Marino  * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver.
5720*a1157835SDaniel Fojt  * @NL80211_RXMGMT_FLAG_EXTERNAL_AUTH: Host driver intends to offload
5721*a1157835SDaniel Fojt  *	the authentication. Exclusively defined for host drivers that
5722*a1157835SDaniel Fojt  *	advertises the SME functionality but would like the userspace
5723*a1157835SDaniel Fojt  *	to handle certain authentication algorithms (e.g. SAE).
57243ff40c12SJohn Marino  */
57253ff40c12SJohn Marino enum nl80211_rxmgmt_flags {
57263ff40c12SJohn Marino 	NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
5727*a1157835SDaniel Fojt 	NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 1 << 1,
57283ff40c12SJohn Marino };
57293ff40c12SJohn Marino 
57303ff40c12SJohn Marino /*
57313ff40c12SJohn Marino  * If this flag is unset, the lower 24 bits are an OUI, if set
57323ff40c12SJohn Marino  * a Linux nl80211 vendor ID is used (no such IDs are allocated
57333ff40c12SJohn Marino  * yet, so that's not valid so far)
57343ff40c12SJohn Marino  */
57353ff40c12SJohn Marino #define NL80211_VENDOR_ID_IS_LINUX	0x80000000
57363ff40c12SJohn Marino 
57373ff40c12SJohn Marino /**
57383ff40c12SJohn Marino  * struct nl80211_vendor_cmd_info - vendor command data
57393ff40c12SJohn Marino  * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the
57403ff40c12SJohn Marino  *	value is a 24-bit OUI; if it is set then a separately allocated ID
57413ff40c12SJohn Marino  *	may be used, but no such IDs are allocated yet. New IDs should be
57423ff40c12SJohn Marino  *	added to this file when needed.
57433ff40c12SJohn Marino  * @subcmd: sub-command ID for the command
57443ff40c12SJohn Marino  */
57453ff40c12SJohn Marino struct nl80211_vendor_cmd_info {
57463ff40c12SJohn Marino 	__u32 vendor_id;
57473ff40c12SJohn Marino 	__u32 subcmd;
57483ff40c12SJohn Marino };
57493ff40c12SJohn Marino 
5750*a1157835SDaniel Fojt /**
5751*a1157835SDaniel Fojt  * enum nl80211_tdls_peer_capability - TDLS peer flags.
5752*a1157835SDaniel Fojt  *
5753*a1157835SDaniel Fojt  * Used by tdls_mgmt() to determine which conditional elements need
5754*a1157835SDaniel Fojt  * to be added to TDLS Setup frames.
5755*a1157835SDaniel Fojt  *
5756*a1157835SDaniel Fojt  * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable.
5757*a1157835SDaniel Fojt  * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable.
5758*a1157835SDaniel Fojt  * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable.
5759*a1157835SDaniel Fojt  */
5760*a1157835SDaniel Fojt enum nl80211_tdls_peer_capability {
5761*a1157835SDaniel Fojt 	NL80211_TDLS_PEER_HT = 1<<0,
5762*a1157835SDaniel Fojt 	NL80211_TDLS_PEER_VHT = 1<<1,
5763*a1157835SDaniel Fojt 	NL80211_TDLS_PEER_WMM = 1<<2,
5764*a1157835SDaniel Fojt };
5765*a1157835SDaniel Fojt 
5766*a1157835SDaniel Fojt /**
5767*a1157835SDaniel Fojt  * enum nl80211_sched_scan_plan - scanning plan for scheduled scan
5768*a1157835SDaniel Fojt  * @__NL80211_SCHED_SCAN_PLAN_INVALID: attribute number 0 is reserved
5769*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_PLAN_INTERVAL: interval between scan iterations. In
5770*a1157835SDaniel Fojt  *	seconds (u32).
5771*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_PLAN_ITERATIONS: number of scan iterations in this
5772*a1157835SDaniel Fojt  *	scan plan (u32). The last scan plan must not specify this attribute
5773*a1157835SDaniel Fojt  *	because it will run infinitely. A value of zero is invalid as it will
5774*a1157835SDaniel Fojt  *	make the scan plan meaningless.
5775*a1157835SDaniel Fojt  * @NL80211_SCHED_SCAN_PLAN_MAX: highest scheduled scan plan attribute number
5776*a1157835SDaniel Fojt  *	currently defined
5777*a1157835SDaniel Fojt  * @__NL80211_SCHED_SCAN_PLAN_AFTER_LAST: internal use
5778*a1157835SDaniel Fojt  */
5779*a1157835SDaniel Fojt enum nl80211_sched_scan_plan {
5780*a1157835SDaniel Fojt 	__NL80211_SCHED_SCAN_PLAN_INVALID,
5781*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_PLAN_INTERVAL,
5782*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_PLAN_ITERATIONS,
5783*a1157835SDaniel Fojt 
5784*a1157835SDaniel Fojt 	/* keep last */
5785*a1157835SDaniel Fojt 	__NL80211_SCHED_SCAN_PLAN_AFTER_LAST,
5786*a1157835SDaniel Fojt 	NL80211_SCHED_SCAN_PLAN_MAX =
5787*a1157835SDaniel Fojt 		__NL80211_SCHED_SCAN_PLAN_AFTER_LAST - 1
5788*a1157835SDaniel Fojt };
5789*a1157835SDaniel Fojt 
5790*a1157835SDaniel Fojt /**
5791*a1157835SDaniel Fojt  * struct nl80211_bss_select_rssi_adjust - RSSI adjustment parameters.
5792*a1157835SDaniel Fojt  *
5793*a1157835SDaniel Fojt  * @band: band of BSS that must match for RSSI value adjustment. The value
5794*a1157835SDaniel Fojt  *	of this field is according to &enum nl80211_band.
5795*a1157835SDaniel Fojt  * @delta: value used to adjust the RSSI value of matching BSS in dB.
5796*a1157835SDaniel Fojt  */
5797*a1157835SDaniel Fojt struct nl80211_bss_select_rssi_adjust {
5798*a1157835SDaniel Fojt 	__u8 band;
5799*a1157835SDaniel Fojt 	__s8 delta;
5800*a1157835SDaniel Fojt } __attribute__((packed));
5801*a1157835SDaniel Fojt 
5802*a1157835SDaniel Fojt /**
5803*a1157835SDaniel Fojt  * enum nl80211_bss_select_attr - attributes for bss selection.
5804*a1157835SDaniel Fojt  *
5805*a1157835SDaniel Fojt  * @__NL80211_BSS_SELECT_ATTR_INVALID: reserved.
5806*a1157835SDaniel Fojt  * @NL80211_BSS_SELECT_ATTR_RSSI: Flag indicating only RSSI-based BSS selection
5807*a1157835SDaniel Fojt  *	is requested.
5808*a1157835SDaniel Fojt  * @NL80211_BSS_SELECT_ATTR_BAND_PREF: attribute indicating BSS
5809*a1157835SDaniel Fojt  *	selection should be done such that the specified band is preferred.
5810*a1157835SDaniel Fojt  *	When there are multiple BSS-es in the preferred band, the driver
5811*a1157835SDaniel Fojt  *	shall use RSSI-based BSS selection as a second step. The value of
5812*a1157835SDaniel Fojt  *	this attribute is according to &enum nl80211_band (u32).
5813*a1157835SDaniel Fojt  * @NL80211_BSS_SELECT_ATTR_RSSI_ADJUST: When present the RSSI level for
5814*a1157835SDaniel Fojt  *	BSS-es in the specified band is to be adjusted before doing
5815*a1157835SDaniel Fojt  *	RSSI-based BSS selection. The attribute value is a packed structure
5816*a1157835SDaniel Fojt  *	value as specified by &struct nl80211_bss_select_rssi_adjust.
5817*a1157835SDaniel Fojt  * @NL80211_BSS_SELECT_ATTR_MAX: highest bss select attribute number.
5818*a1157835SDaniel Fojt  * @__NL80211_BSS_SELECT_ATTR_AFTER_LAST: internal use.
5819*a1157835SDaniel Fojt  *
5820*a1157835SDaniel Fojt  * One and only one of these attributes are found within %NL80211_ATTR_BSS_SELECT
5821*a1157835SDaniel Fojt  * for %NL80211_CMD_CONNECT. It specifies the required BSS selection behaviour
5822*a1157835SDaniel Fojt  * which the driver shall use.
5823*a1157835SDaniel Fojt  */
5824*a1157835SDaniel Fojt enum nl80211_bss_select_attr {
5825*a1157835SDaniel Fojt 	__NL80211_BSS_SELECT_ATTR_INVALID,
5826*a1157835SDaniel Fojt 	NL80211_BSS_SELECT_ATTR_RSSI,
5827*a1157835SDaniel Fojt 	NL80211_BSS_SELECT_ATTR_BAND_PREF,
5828*a1157835SDaniel Fojt 	NL80211_BSS_SELECT_ATTR_RSSI_ADJUST,
5829*a1157835SDaniel Fojt 
5830*a1157835SDaniel Fojt 	/* keep last */
5831*a1157835SDaniel Fojt 	__NL80211_BSS_SELECT_ATTR_AFTER_LAST,
5832*a1157835SDaniel Fojt 	NL80211_BSS_SELECT_ATTR_MAX = __NL80211_BSS_SELECT_ATTR_AFTER_LAST - 1
5833*a1157835SDaniel Fojt };
5834*a1157835SDaniel Fojt 
5835*a1157835SDaniel Fojt /**
5836*a1157835SDaniel Fojt  * enum nl80211_nan_function_type - NAN function type
5837*a1157835SDaniel Fojt  *
5838*a1157835SDaniel Fojt  * Defines the function type of a NAN function
5839*a1157835SDaniel Fojt  *
5840*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_PUBLISH: function is publish
5841*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe
5842*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up
5843*a1157835SDaniel Fojt  */
5844*a1157835SDaniel Fojt enum nl80211_nan_function_type {
5845*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_PUBLISH,
5846*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_SUBSCRIBE,
5847*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_FOLLOW_UP,
5848*a1157835SDaniel Fojt 
5849*a1157835SDaniel Fojt 	/* keep last */
5850*a1157835SDaniel Fojt 	__NL80211_NAN_FUNC_TYPE_AFTER_LAST,
5851*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_MAX_TYPE = __NL80211_NAN_FUNC_TYPE_AFTER_LAST - 1,
5852*a1157835SDaniel Fojt };
5853*a1157835SDaniel Fojt 
5854*a1157835SDaniel Fojt /**
5855*a1157835SDaniel Fojt  * enum nl80211_nan_publish_type - NAN publish tx type
5856*a1157835SDaniel Fojt  *
5857*a1157835SDaniel Fojt  * Defines how to send publish Service Discovery Frames
5858*a1157835SDaniel Fojt  *
5859*a1157835SDaniel Fojt  * @NL80211_NAN_SOLICITED_PUBLISH: publish function is solicited
5860*a1157835SDaniel Fojt  * @NL80211_NAN_UNSOLICITED_PUBLISH: publish function is unsolicited
5861*a1157835SDaniel Fojt  */
5862*a1157835SDaniel Fojt enum nl80211_nan_publish_type {
5863*a1157835SDaniel Fojt 	NL80211_NAN_SOLICITED_PUBLISH = 1 << 0,
5864*a1157835SDaniel Fojt 	NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1,
5865*a1157835SDaniel Fojt };
5866*a1157835SDaniel Fojt 
5867*a1157835SDaniel Fojt /**
5868*a1157835SDaniel Fojt  * enum nl80211_nan_func_term_reason - NAN functions termination reason
5869*a1157835SDaniel Fojt  *
5870*a1157835SDaniel Fojt  * Defines termination reasons of a NAN function
5871*a1157835SDaniel Fojt  *
5872*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user
5873*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout
5874*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored
5875*a1157835SDaniel Fojt  */
5876*a1157835SDaniel Fojt enum nl80211_nan_func_term_reason {
5877*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST,
5878*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED,
5879*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TERM_REASON_ERROR,
5880*a1157835SDaniel Fojt };
5881*a1157835SDaniel Fojt 
5882*a1157835SDaniel Fojt #define NL80211_NAN_FUNC_SERVICE_ID_LEN 6
5883*a1157835SDaniel Fojt #define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff
5884*a1157835SDaniel Fojt #define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff
5885*a1157835SDaniel Fojt 
5886*a1157835SDaniel Fojt /**
5887*a1157835SDaniel Fojt  * enum nl80211_nan_func_attributes - NAN function attributes
5888*a1157835SDaniel Fojt  * @__NL80211_NAN_FUNC_INVALID: invalid
5889*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TYPE: &enum nl80211_nan_function_type (u8).
5890*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_SERVICE_ID: 6 bytes of the service ID hash as
5891*a1157835SDaniel Fojt  *	specified in NAN spec. This is a binary attribute.
5892*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_PUBLISH_TYPE: relevant if the function's type is
5893*a1157835SDaniel Fojt  *	publish. Defines the transmission type for the publish Service Discovery
5894*a1157835SDaniel Fojt  *	Frame, see &enum nl80211_nan_publish_type. Its type is u8.
5895*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_PUBLISH_BCAST: relevant if the function is a solicited
5896*a1157835SDaniel Fojt  *	publish. Should the solicited publish Service Discovery Frame be sent to
5897*a1157835SDaniel Fojt  *	the NAN Broadcast address. This is a flag.
5898*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE: relevant if the function's type is
5899*a1157835SDaniel Fojt  *	subscribe. Is the subscribe active. This is a flag.
5900*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_FOLLOW_UP_ID: relevant if the function's type is follow up.
5901*a1157835SDaniel Fojt  *	The instance ID for the follow up Service Discovery Frame. This is u8.
5902*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type
5903*a1157835SDaniel Fojt  *	is follow up. This is a u8.
5904*a1157835SDaniel Fojt  *	The requestor instance ID for the follow up Service Discovery Frame.
5905*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the
5906*a1157835SDaniel Fojt  *	follow up Service Discovery Frame. This is a binary attribute.
5907*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a
5908*a1157835SDaniel Fojt  *	close range. The range itself (RSSI) is defined by the device.
5909*a1157835SDaniel Fojt  *	This is a flag.
5910*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TTL: strictly positive number of DWs this function should
5911*a1157835SDaniel Fojt  *	stay active. If not present infinite TTL is assumed. This is a u32.
5912*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_SERVICE_INFO: array of bytes describing the service
5913*a1157835SDaniel Fojt  *	specific info. This is a binary attribute.
5914*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_SRF: Service Receive Filter. This is a nested attribute.
5915*a1157835SDaniel Fojt  *	See &enum nl80211_nan_srf_attributes.
5916*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_RX_MATCH_FILTER: Receive Matching filter. This is a nested
5917*a1157835SDaniel Fojt  *	attribute. It is a list of binary values.
5918*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TX_MATCH_FILTER: Transmit Matching filter. This is a
5919*a1157835SDaniel Fojt  *	nested attribute. It is a list of binary values.
5920*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_INSTANCE_ID: The instance ID of the function.
5921*a1157835SDaniel Fojt  *	Its type is u8 and it cannot be 0.
5922*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_TERM_REASON: NAN function termination reason.
5923*a1157835SDaniel Fojt  *	See &enum nl80211_nan_func_term_reason.
5924*a1157835SDaniel Fojt  *
5925*a1157835SDaniel Fojt  * @NUM_NL80211_NAN_FUNC_ATTR: internal
5926*a1157835SDaniel Fojt  * @NL80211_NAN_FUNC_ATTR_MAX: highest NAN function attribute
5927*a1157835SDaniel Fojt  */
5928*a1157835SDaniel Fojt enum nl80211_nan_func_attributes {
5929*a1157835SDaniel Fojt 	__NL80211_NAN_FUNC_INVALID,
5930*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TYPE,
5931*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_SERVICE_ID,
5932*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_PUBLISH_TYPE,
5933*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_PUBLISH_BCAST,
5934*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE,
5935*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_FOLLOW_UP_ID,
5936*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID,
5937*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_FOLLOW_UP_DEST,
5938*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_CLOSE_RANGE,
5939*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TTL,
5940*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_SERVICE_INFO,
5941*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_SRF,
5942*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_RX_MATCH_FILTER,
5943*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TX_MATCH_FILTER,
5944*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_INSTANCE_ID,
5945*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_TERM_REASON,
5946*a1157835SDaniel Fojt 
5947*a1157835SDaniel Fojt 	/* keep last */
5948*a1157835SDaniel Fojt 	NUM_NL80211_NAN_FUNC_ATTR,
5949*a1157835SDaniel Fojt 	NL80211_NAN_FUNC_ATTR_MAX = NUM_NL80211_NAN_FUNC_ATTR - 1
5950*a1157835SDaniel Fojt };
5951*a1157835SDaniel Fojt 
5952*a1157835SDaniel Fojt /**
5953*a1157835SDaniel Fojt  * enum nl80211_nan_srf_attributes - NAN Service Response filter attributes
5954*a1157835SDaniel Fojt  * @__NL80211_NAN_SRF_INVALID: invalid
5955*a1157835SDaniel Fojt  * @NL80211_NAN_SRF_INCLUDE: present if the include bit of the SRF set.
5956*a1157835SDaniel Fojt  *	This is a flag.
5957*a1157835SDaniel Fojt  * @NL80211_NAN_SRF_BF: Bloom Filter. Present if and only if
5958*a1157835SDaniel Fojt  *	%NL80211_NAN_SRF_MAC_ADDRS isn't present. This attribute is binary.
5959*a1157835SDaniel Fojt  * @NL80211_NAN_SRF_BF_IDX: index of the Bloom Filter. Mandatory if
5960*a1157835SDaniel Fojt  *	%NL80211_NAN_SRF_BF is present. This is a u8.
5961*a1157835SDaniel Fojt  * @NL80211_NAN_SRF_MAC_ADDRS: list of MAC addresses for the SRF. Present if
5962*a1157835SDaniel Fojt  *	and only if %NL80211_NAN_SRF_BF isn't present. This is a nested
5963*a1157835SDaniel Fojt  *	attribute. Each nested attribute is a MAC address.
5964*a1157835SDaniel Fojt  * @NUM_NL80211_NAN_SRF_ATTR: internal
5965*a1157835SDaniel Fojt  * @NL80211_NAN_SRF_ATTR_MAX: highest NAN SRF attribute
5966*a1157835SDaniel Fojt  */
5967*a1157835SDaniel Fojt enum nl80211_nan_srf_attributes {
5968*a1157835SDaniel Fojt 	__NL80211_NAN_SRF_INVALID,
5969*a1157835SDaniel Fojt 	NL80211_NAN_SRF_INCLUDE,
5970*a1157835SDaniel Fojt 	NL80211_NAN_SRF_BF,
5971*a1157835SDaniel Fojt 	NL80211_NAN_SRF_BF_IDX,
5972*a1157835SDaniel Fojt 	NL80211_NAN_SRF_MAC_ADDRS,
5973*a1157835SDaniel Fojt 
5974*a1157835SDaniel Fojt 	/* keep last */
5975*a1157835SDaniel Fojt 	NUM_NL80211_NAN_SRF_ATTR,
5976*a1157835SDaniel Fojt 	NL80211_NAN_SRF_ATTR_MAX = NUM_NL80211_NAN_SRF_ATTR - 1,
5977*a1157835SDaniel Fojt };
5978*a1157835SDaniel Fojt 
5979*a1157835SDaniel Fojt /**
5980*a1157835SDaniel Fojt  * enum nl80211_nan_match_attributes - NAN match attributes
5981*a1157835SDaniel Fojt  * @__NL80211_NAN_MATCH_INVALID: invalid
5982*a1157835SDaniel Fojt  * @NL80211_NAN_MATCH_FUNC_LOCAL: the local function that had the
5983*a1157835SDaniel Fojt  *	match. This is a nested attribute.
5984*a1157835SDaniel Fojt  *	See &enum nl80211_nan_func_attributes.
5985*a1157835SDaniel Fojt  * @NL80211_NAN_MATCH_FUNC_PEER: the peer function
5986*a1157835SDaniel Fojt  *	that caused the match. This is a nested attribute.
5987*a1157835SDaniel Fojt  *	See &enum nl80211_nan_func_attributes.
5988*a1157835SDaniel Fojt  *
5989*a1157835SDaniel Fojt  * @NUM_NL80211_NAN_MATCH_ATTR: internal
5990*a1157835SDaniel Fojt  * @NL80211_NAN_MATCH_ATTR_MAX: highest NAN match attribute
5991*a1157835SDaniel Fojt  */
5992*a1157835SDaniel Fojt enum nl80211_nan_match_attributes {
5993*a1157835SDaniel Fojt 	__NL80211_NAN_MATCH_INVALID,
5994*a1157835SDaniel Fojt 	NL80211_NAN_MATCH_FUNC_LOCAL,
5995*a1157835SDaniel Fojt 	NL80211_NAN_MATCH_FUNC_PEER,
5996*a1157835SDaniel Fojt 
5997*a1157835SDaniel Fojt 	/* keep last */
5998*a1157835SDaniel Fojt 	NUM_NL80211_NAN_MATCH_ATTR,
5999*a1157835SDaniel Fojt 	NL80211_NAN_MATCH_ATTR_MAX = NUM_NL80211_NAN_MATCH_ATTR - 1
6000*a1157835SDaniel Fojt };
6001*a1157835SDaniel Fojt 
6002*a1157835SDaniel Fojt /**
6003*a1157835SDaniel Fojt  * nl80211_external_auth_action - Action to perform with external
6004*a1157835SDaniel Fojt  *     authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION.
6005*a1157835SDaniel Fojt  * @NL80211_EXTERNAL_AUTH_START: Start the authentication.
6006*a1157835SDaniel Fojt  * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication.
6007*a1157835SDaniel Fojt  */
6008*a1157835SDaniel Fojt enum nl80211_external_auth_action {
6009*a1157835SDaniel Fojt 	NL80211_EXTERNAL_AUTH_START,
6010*a1157835SDaniel Fojt 	NL80211_EXTERNAL_AUTH_ABORT,
6011*a1157835SDaniel Fojt };
6012*a1157835SDaniel Fojt 
6013*a1157835SDaniel Fojt /**
6014*a1157835SDaniel Fojt  * enum nl80211_ftm_responder_attributes - fine timing measurement
6015*a1157835SDaniel Fojt  *	responder attributes
6016*a1157835SDaniel Fojt  * @__NL80211_FTM_RESP_ATTR_INVALID: Invalid
6017*a1157835SDaniel Fojt  * @NL80211_FTM_RESP_ATTR_ENABLED: FTM responder is enabled
6018*a1157835SDaniel Fojt  * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element
6019*a1157835SDaniel Fojt  *	(9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10),
6020*a1157835SDaniel Fojt  *	i.e. starting with the measurement token
6021*a1157835SDaniel Fojt  * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element
6022*a1157835SDaniel Fojt  *	(9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13),
6023*a1157835SDaniel Fojt  *	i.e. starting with the measurement token
6024*a1157835SDaniel Fojt  * @__NL80211_FTM_RESP_ATTR_LAST: Internal
6025*a1157835SDaniel Fojt  * @NL80211_FTM_RESP_ATTR_MAX: highest FTM responder attribute.
6026*a1157835SDaniel Fojt  */
6027*a1157835SDaniel Fojt enum nl80211_ftm_responder_attributes {
6028*a1157835SDaniel Fojt 	__NL80211_FTM_RESP_ATTR_INVALID,
6029*a1157835SDaniel Fojt 
6030*a1157835SDaniel Fojt 	NL80211_FTM_RESP_ATTR_ENABLED,
6031*a1157835SDaniel Fojt 	NL80211_FTM_RESP_ATTR_LCI,
6032*a1157835SDaniel Fojt 	NL80211_FTM_RESP_ATTR_CIVICLOC,
6033*a1157835SDaniel Fojt 
6034*a1157835SDaniel Fojt 	/* keep last */
6035*a1157835SDaniel Fojt 	__NL80211_FTM_RESP_ATTR_LAST,
6036*a1157835SDaniel Fojt 	NL80211_FTM_RESP_ATTR_MAX = __NL80211_FTM_RESP_ATTR_LAST - 1,
6037*a1157835SDaniel Fojt };
6038*a1157835SDaniel Fojt 
6039*a1157835SDaniel Fojt /*
6040*a1157835SDaniel Fojt  * enum nl80211_ftm_responder_stats - FTM responder statistics
6041*a1157835SDaniel Fojt  *
6042*a1157835SDaniel Fojt  * These attribute types are used with %NL80211_ATTR_FTM_RESPONDER_STATS
6043*a1157835SDaniel Fojt  * when getting FTM responder statistics.
6044*a1157835SDaniel Fojt  *
6045*a1157835SDaniel Fojt  * @__NL80211_FTM_STATS_INVALID: attribute number 0 is reserved
6046*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_SUCCESS_NUM: number of FTM sessions in which all frames
6047*a1157835SDaniel Fojt  *	were ssfully answered (u32)
6048*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_PARTIAL_NUM: number of FTM sessions in which part of the
6049*a1157835SDaniel Fojt  *	frames were successfully answered (u32)
6050*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_FAILED_NUM: number of failed FTM sessions (u32)
6051*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_ASAP_NUM: number of ASAP sessions (u32)
6052*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_NON_ASAP_NUM: number of non-ASAP sessions (u32)
6053*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_TOTAL_DURATION_MSEC: total sessions durations - gives an
6054*a1157835SDaniel Fojt  *	indication of how much time the responder was busy (u64, msec)
6055*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM: number of unknown FTM triggers -
6056*a1157835SDaniel Fojt  *	triggers from initiators that didn't finish successfully the negotiation
6057*a1157835SDaniel Fojt  *	phase with the responder (u32)
6058*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM: number of FTM reschedule requests
6059*a1157835SDaniel Fojt  *	- initiator asks for a new scheduling although it already has scheduled
6060*a1157835SDaniel Fojt  *	FTM slot (u32)
6061*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM: number of FTM triggers out of
6062*a1157835SDaniel Fojt  *	scheduled window (u32)
6063*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_PAD: used for padding, ignore
6064*a1157835SDaniel Fojt  * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
6065*a1157835SDaniel Fojt  * @NL80211_FTM_STATS_MAX: highest possible FTM responder stats attribute
6066*a1157835SDaniel Fojt  */
6067*a1157835SDaniel Fojt enum nl80211_ftm_responder_stats {
6068*a1157835SDaniel Fojt 	__NL80211_FTM_STATS_INVALID,
6069*a1157835SDaniel Fojt 	NL80211_FTM_STATS_SUCCESS_NUM,
6070*a1157835SDaniel Fojt 	NL80211_FTM_STATS_PARTIAL_NUM,
6071*a1157835SDaniel Fojt 	NL80211_FTM_STATS_FAILED_NUM,
6072*a1157835SDaniel Fojt 	NL80211_FTM_STATS_ASAP_NUM,
6073*a1157835SDaniel Fojt 	NL80211_FTM_STATS_NON_ASAP_NUM,
6074*a1157835SDaniel Fojt 	NL80211_FTM_STATS_TOTAL_DURATION_MSEC,
6075*a1157835SDaniel Fojt 	NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM,
6076*a1157835SDaniel Fojt 	NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM,
6077*a1157835SDaniel Fojt 	NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM,
6078*a1157835SDaniel Fojt 	NL80211_FTM_STATS_PAD,
6079*a1157835SDaniel Fojt 
6080*a1157835SDaniel Fojt 	/* keep last */
6081*a1157835SDaniel Fojt 	__NL80211_FTM_STATS_AFTER_LAST,
6082*a1157835SDaniel Fojt 	NL80211_FTM_STATS_MAX = __NL80211_FTM_STATS_AFTER_LAST - 1
6083*a1157835SDaniel Fojt };
6084*a1157835SDaniel Fojt 
6085*a1157835SDaniel Fojt /**
6086*a1157835SDaniel Fojt  * enum nl80211_preamble - frame preamble types
6087*a1157835SDaniel Fojt  * @NL80211_PREAMBLE_LEGACY: legacy (HR/DSSS, OFDM, ERP PHY) preamble
6088*a1157835SDaniel Fojt  * @NL80211_PREAMBLE_HT: HT preamble
6089*a1157835SDaniel Fojt  * @NL80211_PREAMBLE_VHT: VHT preamble
6090*a1157835SDaniel Fojt  * @NL80211_PREAMBLE_DMG: DMG preamble
6091*a1157835SDaniel Fojt  */
6092*a1157835SDaniel Fojt enum nl80211_preamble {
6093*a1157835SDaniel Fojt 	NL80211_PREAMBLE_LEGACY,
6094*a1157835SDaniel Fojt 	NL80211_PREAMBLE_HT,
6095*a1157835SDaniel Fojt 	NL80211_PREAMBLE_VHT,
6096*a1157835SDaniel Fojt 	NL80211_PREAMBLE_DMG,
6097*a1157835SDaniel Fojt };
6098*a1157835SDaniel Fojt 
6099*a1157835SDaniel Fojt /**
6100*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_type - peer measurement types
6101*a1157835SDaniel Fojt  * @NL80211_PMSR_TYPE_INVALID: invalid/unused, needed as we use
6102*a1157835SDaniel Fojt  *	these numbers also for attributes
6103*a1157835SDaniel Fojt  *
6104*a1157835SDaniel Fojt  * @NL80211_PMSR_TYPE_FTM: flight time measurement
6105*a1157835SDaniel Fojt  *
6106*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_TYPES: internal
6107*a1157835SDaniel Fojt  * @NL80211_PMSR_TYPE_MAX: highest type number
6108*a1157835SDaniel Fojt  */
6109*a1157835SDaniel Fojt enum nl80211_peer_measurement_type {
6110*a1157835SDaniel Fojt 	NL80211_PMSR_TYPE_INVALID,
6111*a1157835SDaniel Fojt 
6112*a1157835SDaniel Fojt 	NL80211_PMSR_TYPE_FTM,
6113*a1157835SDaniel Fojt 
6114*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_TYPES,
6115*a1157835SDaniel Fojt 	NL80211_PMSR_TYPE_MAX = NUM_NL80211_PMSR_TYPES - 1
6116*a1157835SDaniel Fojt };
6117*a1157835SDaniel Fojt 
6118*a1157835SDaniel Fojt /**
6119*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_status - peer measurement status
6120*a1157835SDaniel Fojt  * @NL80211_PMSR_STATUS_SUCCESS: measurement completed successfully
6121*a1157835SDaniel Fojt  * @NL80211_PMSR_STATUS_REFUSED: measurement was locally refused
6122*a1157835SDaniel Fojt  * @NL80211_PMSR_STATUS_TIMEOUT: measurement timed out
6123*a1157835SDaniel Fojt  * @NL80211_PMSR_STATUS_FAILURE: measurement failed, a type-dependent
6124*a1157835SDaniel Fojt  *	reason may be available in the response data
6125*a1157835SDaniel Fojt  */
6126*a1157835SDaniel Fojt enum nl80211_peer_measurement_status {
6127*a1157835SDaniel Fojt 	NL80211_PMSR_STATUS_SUCCESS,
6128*a1157835SDaniel Fojt 	NL80211_PMSR_STATUS_REFUSED,
6129*a1157835SDaniel Fojt 	NL80211_PMSR_STATUS_TIMEOUT,
6130*a1157835SDaniel Fojt 	NL80211_PMSR_STATUS_FAILURE,
6131*a1157835SDaniel Fojt };
6132*a1157835SDaniel Fojt 
6133*a1157835SDaniel Fojt /**
6134*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_req - peer measurement request attributes
6135*a1157835SDaniel Fojt  * @__NL80211_PMSR_REQ_ATTR_INVALID: invalid
6136*a1157835SDaniel Fojt  *
6137*a1157835SDaniel Fojt  * @NL80211_PMSR_REQ_ATTR_DATA: This is a nested attribute with measurement
6138*a1157835SDaniel Fojt  *	type-specific request data inside. The attributes used are from the
6139*a1157835SDaniel Fojt  *	enums named nl80211_peer_measurement_<type>_req.
6140*a1157835SDaniel Fojt  * @NL80211_PMSR_REQ_ATTR_GET_AP_TSF: include AP TSF timestamp, if supported
6141*a1157835SDaniel Fojt  *	(flag attribute)
6142*a1157835SDaniel Fojt  *
6143*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_REQ_ATTRS: internal
6144*a1157835SDaniel Fojt  * @NL80211_PMSR_REQ_ATTR_MAX: highest attribute number
6145*a1157835SDaniel Fojt  */
6146*a1157835SDaniel Fojt enum nl80211_peer_measurement_req {
6147*a1157835SDaniel Fojt 	__NL80211_PMSR_REQ_ATTR_INVALID,
6148*a1157835SDaniel Fojt 
6149*a1157835SDaniel Fojt 	NL80211_PMSR_REQ_ATTR_DATA,
6150*a1157835SDaniel Fojt 	NL80211_PMSR_REQ_ATTR_GET_AP_TSF,
6151*a1157835SDaniel Fojt 
6152*a1157835SDaniel Fojt 	/* keep last */
6153*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_REQ_ATTRS,
6154*a1157835SDaniel Fojt 	NL80211_PMSR_REQ_ATTR_MAX = NUM_NL80211_PMSR_REQ_ATTRS - 1
6155*a1157835SDaniel Fojt };
6156*a1157835SDaniel Fojt 
6157*a1157835SDaniel Fojt /**
6158*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_resp - peer measurement response attributes
6159*a1157835SDaniel Fojt  * @__NL80211_PMSR_RESP_ATTR_INVALID: invalid
6160*a1157835SDaniel Fojt  *
6161*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_DATA: This is a nested attribute with measurement
6162*a1157835SDaniel Fojt  *	type-specific results inside. The attributes used are from the enums
6163*a1157835SDaniel Fojt  *	named nl80211_peer_measurement_<type>_resp.
6164*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_STATUS: u32 value with the measurement status
6165*a1157835SDaniel Fojt  *	(using values from &enum nl80211_peer_measurement_status.)
6166*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_HOST_TIME: host time (%CLOCK_BOOTTIME) when the
6167*a1157835SDaniel Fojt  *	result was measured; this value is not expected to be accurate to
6168*a1157835SDaniel Fojt  *	more than 20ms. (u64, nanoseconds)
6169*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_AP_TSF: TSF of the AP that the interface
6170*a1157835SDaniel Fojt  *	doing the measurement is connected to when the result was measured.
6171*a1157835SDaniel Fojt  *	This shall be accurately reported if supported and requested
6172*a1157835SDaniel Fojt  *	(u64, usec)
6173*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_FINAL: If results are sent to the host partially
6174*a1157835SDaniel Fojt  *	(*e.g. with FTM per-burst data) this flag will be cleared on all but
6175*a1157835SDaniel Fojt  *	the last result; if all results are combined it's set on the single
6176*a1157835SDaniel Fojt  *	result.
6177*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_PAD: padding for 64-bit attributes, ignore
6178*a1157835SDaniel Fojt  *
6179*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_RESP_ATTRS: internal
6180*a1157835SDaniel Fojt  * @NL80211_PMSR_RESP_ATTR_MAX: highest attribute number
6181*a1157835SDaniel Fojt  */
6182*a1157835SDaniel Fojt enum nl80211_peer_measurement_resp {
6183*a1157835SDaniel Fojt 	__NL80211_PMSR_RESP_ATTR_INVALID,
6184*a1157835SDaniel Fojt 
6185*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_DATA,
6186*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_STATUS,
6187*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_HOST_TIME,
6188*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_AP_TSF,
6189*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_FINAL,
6190*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_PAD,
6191*a1157835SDaniel Fojt 
6192*a1157835SDaniel Fojt 	/* keep last */
6193*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_RESP_ATTRS,
6194*a1157835SDaniel Fojt 	NL80211_PMSR_RESP_ATTR_MAX = NUM_NL80211_PMSR_RESP_ATTRS - 1
6195*a1157835SDaniel Fojt };
6196*a1157835SDaniel Fojt 
6197*a1157835SDaniel Fojt /**
6198*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_peer_attrs - peer attributes for measurement
6199*a1157835SDaniel Fojt  * @__NL80211_PMSR_PEER_ATTR_INVALID: invalid
6200*a1157835SDaniel Fojt  *
6201*a1157835SDaniel Fojt  * @NL80211_PMSR_PEER_ATTR_ADDR: peer's MAC address
6202*a1157835SDaniel Fojt  * @NL80211_PMSR_PEER_ATTR_CHAN: channel definition, nested, using top-level
6203*a1157835SDaniel Fojt  *	attributes like %NL80211_ATTR_WIPHY_FREQ etc.
6204*a1157835SDaniel Fojt  * @NL80211_PMSR_PEER_ATTR_REQ: This is a nested attribute indexed by
6205*a1157835SDaniel Fojt  *	measurement type, with attributes from the
6206*a1157835SDaniel Fojt  *	&enum nl80211_peer_measurement_req inside.
6207*a1157835SDaniel Fojt  * @NL80211_PMSR_PEER_ATTR_RESP: This is a nested attribute indexed by
6208*a1157835SDaniel Fojt  *	measurement type, with attributes from the
6209*a1157835SDaniel Fojt  *	&enum nl80211_peer_measurement_resp inside.
6210*a1157835SDaniel Fojt  *
6211*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_PEER_ATTRS: internal
6212*a1157835SDaniel Fojt  * @NL80211_PMSR_PEER_ATTR_MAX: highest attribute number
6213*a1157835SDaniel Fojt  */
6214*a1157835SDaniel Fojt enum nl80211_peer_measurement_peer_attrs {
6215*a1157835SDaniel Fojt 	__NL80211_PMSR_PEER_ATTR_INVALID,
6216*a1157835SDaniel Fojt 
6217*a1157835SDaniel Fojt 	NL80211_PMSR_PEER_ATTR_ADDR,
6218*a1157835SDaniel Fojt 	NL80211_PMSR_PEER_ATTR_CHAN,
6219*a1157835SDaniel Fojt 	NL80211_PMSR_PEER_ATTR_REQ,
6220*a1157835SDaniel Fojt 	NL80211_PMSR_PEER_ATTR_RESP,
6221*a1157835SDaniel Fojt 
6222*a1157835SDaniel Fojt 	/* keep last */
6223*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_PEER_ATTRS,
6224*a1157835SDaniel Fojt 	NL80211_PMSR_PEER_ATTR_MAX = NUM_NL80211_PMSR_PEER_ATTRS - 1,
6225*a1157835SDaniel Fojt };
6226*a1157835SDaniel Fojt 
6227*a1157835SDaniel Fojt /**
6228*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_attrs - peer measurement attributes
6229*a1157835SDaniel Fojt  * @__NL80211_PMSR_ATTR_INVALID: invalid
6230*a1157835SDaniel Fojt  *
6231*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_MAX_PEERS: u32 attribute used for capability
6232*a1157835SDaniel Fojt  *	advertisement only, indicates the maximum number of peers
6233*a1157835SDaniel Fojt  *	measurements can be done with in a single request
6234*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_REPORT_AP_TSF: flag attribute in capability
6235*a1157835SDaniel Fojt  *	indicating that the connected AP's TSF can be reported in
6236*a1157835SDaniel Fojt  *	measurement results
6237*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR: flag attribute in capability
6238*a1157835SDaniel Fojt  *	indicating that MAC address randomization is supported.
6239*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_TYPE_CAPA: capabilities reported by the device,
6240*a1157835SDaniel Fojt  *	this contains a nesting indexed by measurement type, and
6241*a1157835SDaniel Fojt  *	type-specific capabilities inside, which are from the enums
6242*a1157835SDaniel Fojt  *	named nl80211_peer_measurement_<type>_capa.
6243*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_PEERS: nested attribute, the nesting index is
6244*a1157835SDaniel Fojt  *	meaningless, just a list of peers to measure with, with the
6245*a1157835SDaniel Fojt  *	sub-attributes taken from
6246*a1157835SDaniel Fojt  *	&enum nl80211_peer_measurement_peer_attrs.
6247*a1157835SDaniel Fojt  *
6248*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_ATTR: internal
6249*a1157835SDaniel Fojt  * @NL80211_PMSR_ATTR_MAX: highest attribute number
6250*a1157835SDaniel Fojt  */
6251*a1157835SDaniel Fojt enum nl80211_peer_measurement_attrs {
6252*a1157835SDaniel Fojt 	__NL80211_PMSR_ATTR_INVALID,
6253*a1157835SDaniel Fojt 
6254*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_MAX_PEERS,
6255*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_REPORT_AP_TSF,
6256*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR,
6257*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_TYPE_CAPA,
6258*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_PEERS,
6259*a1157835SDaniel Fojt 
6260*a1157835SDaniel Fojt 	/* keep last */
6261*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_ATTR,
6262*a1157835SDaniel Fojt 	NL80211_PMSR_ATTR_MAX = NUM_NL80211_PMSR_ATTR - 1
6263*a1157835SDaniel Fojt };
6264*a1157835SDaniel Fojt 
6265*a1157835SDaniel Fojt /**
6266*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_ftm_capa - FTM capabilities
6267*a1157835SDaniel Fojt  * @__NL80211_PMSR_FTM_CAPA_ATTR_INVALID: invalid
6268*a1157835SDaniel Fojt  *
6269*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_ASAP: flag attribute indicating ASAP mode
6270*a1157835SDaniel Fojt  *	is supported
6271*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP: flag attribute indicating non-ASAP
6272*a1157835SDaniel Fojt  *	mode is supported
6273*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI: flag attribute indicating if LCI
6274*a1157835SDaniel Fojt  *	data can be requested during the measurement
6275*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC: flag attribute indicating if civic
6276*a1157835SDaniel Fojt  *	location data can be requested during the measurement
6277*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES: u32 bitmap attribute of bits
6278*a1157835SDaniel Fojt  *	from &enum nl80211_preamble.
6279*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS: bitmap of values from
6280*a1157835SDaniel Fojt  *	&enum nl80211_chan_width indicating the supported channel
6281*a1157835SDaniel Fojt  *	bandwidths for FTM. Note that a higher channel bandwidth may be
6282*a1157835SDaniel Fojt  *	configured to allow for other measurements types with different
6283*a1157835SDaniel Fojt  *	bandwidth requirement in the same measurement.
6284*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT: u32 attribute indicating
6285*a1157835SDaniel Fojt  *	the maximum bursts exponent that can be used (if not present anything
6286*a1157835SDaniel Fojt  *	is valid)
6287*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST: u32 attribute indicating
6288*a1157835SDaniel Fojt  *	the maximum FTMs per burst (if not present anything is valid)
6289*a1157835SDaniel Fojt  *
6290*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal
6291*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number
6292*a1157835SDaniel Fojt  */
6293*a1157835SDaniel Fojt enum nl80211_peer_measurement_ftm_capa {
6294*a1157835SDaniel Fojt 	__NL80211_PMSR_FTM_CAPA_ATTR_INVALID,
6295*a1157835SDaniel Fojt 
6296*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_ASAP,
6297*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP,
6298*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI,
6299*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC,
6300*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES,
6301*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS,
6302*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT,
6303*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST,
6304*a1157835SDaniel Fojt 
6305*a1157835SDaniel Fojt 	/* keep last */
6306*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_FTM_CAPA_ATTR,
6307*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_CAPA_ATTR_MAX = NUM_NL80211_PMSR_FTM_CAPA_ATTR - 1
6308*a1157835SDaniel Fojt };
6309*a1157835SDaniel Fojt 
6310*a1157835SDaniel Fojt /**
6311*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_ftm_req - FTM request attributes
6312*a1157835SDaniel Fojt  * @__NL80211_PMSR_FTM_REQ_ATTR_INVALID: invalid
6313*a1157835SDaniel Fojt  *
6314*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_ASAP: ASAP mode requested (flag)
6315*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE: preamble type (see
6316*a1157835SDaniel Fojt  *	&enum nl80211_preamble), optional for DMG (u32)
6317*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP: number of bursts exponent as in
6318*a1157835SDaniel Fojt  *	802.11-2016 9.4.2.168 "Fine Timing Measurement Parameters element"
6319*a1157835SDaniel Fojt  *	(u8, 0-15, optional with default 15 i.e. "no preference")
6320*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD: interval between bursts in units
6321*a1157835SDaniel Fojt  *	of 100ms (u16, optional with default 0)
6322*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION: burst duration, as in 802.11-2016
6323*a1157835SDaniel Fojt  *	Table 9-257 "Burst Duration field encoding" (u8, 0-15, optional with
6324*a1157835SDaniel Fojt  *	default 15 i.e. "no preference")
6325*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST: number of successful FTM frames
6326*a1157835SDaniel Fojt  *	requested per burst
6327*a1157835SDaniel Fojt  *	(u8, 0-31, optional with default 0 i.e. "no preference")
6328*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES: number of FTMR frame retries
6329*a1157835SDaniel Fojt  *	(u8, default 3)
6330*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI: request LCI data (flag)
6331*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC: request civic location data
6332*a1157835SDaniel Fojt  *	(flag)
6333*a1157835SDaniel Fojt  *
6334*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_FTM_REQ_ATTR: internal
6335*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_REQ_ATTR_MAX: highest attribute number
6336*a1157835SDaniel Fojt  */
6337*a1157835SDaniel Fojt enum nl80211_peer_measurement_ftm_req {
6338*a1157835SDaniel Fojt 	__NL80211_PMSR_FTM_REQ_ATTR_INVALID,
6339*a1157835SDaniel Fojt 
6340*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_ASAP,
6341*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE,
6342*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP,
6343*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD,
6344*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION,
6345*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST,
6346*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES,
6347*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI,
6348*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC,
6349*a1157835SDaniel Fojt 
6350*a1157835SDaniel Fojt 	/* keep last */
6351*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_FTM_REQ_ATTR,
6352*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_REQ_ATTR_MAX = NUM_NL80211_PMSR_FTM_REQ_ATTR - 1
6353*a1157835SDaniel Fojt };
6354*a1157835SDaniel Fojt 
6355*a1157835SDaniel Fojt /**
6356*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_ftm_failure_reasons - FTM failure reasons
6357*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_UNSPECIFIED: unspecified failure, not used
6358*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_NO_RESPONSE: no response from the FTM responder
6359*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_REJECTED: FTM responder rejected measurement
6360*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL: we already know the peer is
6361*a1157835SDaniel Fojt  *	on a different channel, so can't measure (if we didn't know, we'd
6362*a1157835SDaniel Fojt  *	try and get no response)
6363*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE: peer can't actually do FTM
6364*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP: invalid T1/T4 timestamps
6365*a1157835SDaniel Fojt  *	received
6366*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_PEER_BUSY: peer reports busy, you may retry
6367*a1157835SDaniel Fojt  *	later (see %NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME)
6368*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS: parameters were changed
6369*a1157835SDaniel Fojt  *	by the peer and are no longer supported
6370*a1157835SDaniel Fojt  */
6371*a1157835SDaniel Fojt enum nl80211_peer_measurement_ftm_failure_reasons {
6372*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_UNSPECIFIED,
6373*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_NO_RESPONSE,
6374*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_REJECTED,
6375*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL,
6376*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE,
6377*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP,
6378*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_PEER_BUSY,
6379*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS,
6380*a1157835SDaniel Fojt };
6381*a1157835SDaniel Fojt 
6382*a1157835SDaniel Fojt /**
6383*a1157835SDaniel Fojt  * enum nl80211_peer_measurement_ftm_resp - FTM response attributes
6384*a1157835SDaniel Fojt  * @__NL80211_PMSR_FTM_RESP_ATTR_INVALID: invalid
6385*a1157835SDaniel Fojt  *
6386*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON: FTM-specific failure reason
6387*a1157835SDaniel Fojt  *	(u32, optional)
6388*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX: optional, if bursts are reported
6389*a1157835SDaniel Fojt  *	as separate results then it will be the burst index 0...(N-1) and
6390*a1157835SDaniel Fojt  *	the top level will indicate partial results (u32)
6391*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames
6392*a1157835SDaniel Fojt  *	transmitted (u32, optional)
6393*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames
6394*a1157835SDaniel Fojt  *	that were acknowleged (u32, optional)
6395*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the
6396*a1157835SDaniel Fojt  *	busy peer (u32, seconds)
6397*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent
6398*a1157835SDaniel Fojt  *	used by the responder (similar to request, u8)
6399*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION: actual burst duration used by
6400*a1157835SDaniel Fojt  *	the responder (similar to request, u8)
6401*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST: actual FTMs per burst used
6402*a1157835SDaniel Fojt  *	by the responder (similar to request, u8)
6403*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG: average RSSI across all FTM action
6404*a1157835SDaniel Fojt  *	frames (optional, s32, 1/2 dBm)
6405*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD: RSSI spread across all FTM action
6406*a1157835SDaniel Fojt  *	frames (optional, s32, 1/2 dBm)
6407*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_TX_RATE: bitrate we used for the response to the
6408*a1157835SDaniel Fojt  *	FTM action frame (optional, nested, using &enum nl80211_rate_info
6409*a1157835SDaniel Fojt  *	attributes)
6410*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RX_RATE: bitrate the responder used for the FTM
6411*a1157835SDaniel Fojt  *	action frame (optional, nested, using &enum nl80211_rate_info attrs)
6412*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG: average RTT (s64, picoseconds, optional
6413*a1157835SDaniel Fojt  *	but one of RTT/DIST must be present)
6414*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE: RTT variance (u64, ps^2, note that
6415*a1157835SDaniel Fojt  *	standard deviation is the square root of variance, optional)
6416*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD: RTT spread (u64, picoseconds,
6417*a1157835SDaniel Fojt  *	optional)
6418*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG: average distance (s64, mm, optional
6419*a1157835SDaniel Fojt  *	but one of RTT/DIST must be present)
6420*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE: distance variance (u64, mm^2, note
6421*a1157835SDaniel Fojt  *	that standard deviation is the square root of variance, optional)
6422*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD: distance spread (u64, mm, optional)
6423*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_LCI: LCI data from peer (binary, optional);
6424*a1157835SDaniel Fojt  *	this is the contents of the Measurement Report Element (802.11-2016
6425*a1157835SDaniel Fojt  *	9.4.2.22.1) starting with the Measurement Token, with Measurement
6426*a1157835SDaniel Fojt  *	Type 8.
6427*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC: civic location data from peer
6428*a1157835SDaniel Fojt  *	(binary, optional);
6429*a1157835SDaniel Fojt  *	this is the contents of the Measurement Report Element (802.11-2016
6430*a1157835SDaniel Fojt  *	9.4.2.22.1) starting with the Measurement Token, with Measurement
6431*a1157835SDaniel Fojt  *	Type 11.
6432*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_PAD: ignore, for u64/s64 padding only
6433*a1157835SDaniel Fojt  *
6434*a1157835SDaniel Fojt  * @NUM_NL80211_PMSR_FTM_RESP_ATTR: internal
6435*a1157835SDaniel Fojt  * @NL80211_PMSR_FTM_RESP_ATTR_MAX: highest attribute number
6436*a1157835SDaniel Fojt  */
6437*a1157835SDaniel Fojt enum nl80211_peer_measurement_ftm_resp {
6438*a1157835SDaniel Fojt 	__NL80211_PMSR_FTM_RESP_ATTR_INVALID,
6439*a1157835SDaniel Fojt 
6440*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON,
6441*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX,
6442*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS,
6443*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES,
6444*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME,
6445*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP,
6446*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION,
6447*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST,
6448*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG,
6449*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD,
6450*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_TX_RATE,
6451*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RX_RATE,
6452*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG,
6453*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE,
6454*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD,
6455*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG,
6456*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE,
6457*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD,
6458*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_LCI,
6459*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC,
6460*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_PAD,
6461*a1157835SDaniel Fojt 
6462*a1157835SDaniel Fojt 	/* keep last */
6463*a1157835SDaniel Fojt 	NUM_NL80211_PMSR_FTM_RESP_ATTR,
6464*a1157835SDaniel Fojt 	NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1
6465*a1157835SDaniel Fojt };
6466*a1157835SDaniel Fojt 
64673ff40c12SJohn Marino #endif /* __LINUX_NL80211_H */
6468