18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef __LINUX_NL80211_H
28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define __LINUX_NL80211_H
38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 802.11 netlink interface public header
58d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
68d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2008 Michael Wu <flamingice@sourmilk.net>
88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com>
91f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Copyright 2008 Michael Buesch <m@bues.ch>
108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com>
118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com>
128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright 2008 Colin McCabe <colin@cozybit.com>
138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Permission to use, copy, modify, and/or distribute this software for any
158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * purpose with or without fee is hereby granted, provided that the above
168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * copyright notice and this permission notice appear in all copies.
178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
28f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/*
29f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * This header file defines the userspace API to the wireless stack. Please
30f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * be careful not to break things - i.e. don't move anything around or so
31f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * unless you can demonstrate that it breaks neither API nor ABI.
32f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
33f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Additions to the API should be accompanied by actual implementations in
34f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * an upstream driver, so that example implementations exist in case there
35f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * are ever concerns about the precise semantics of the API or changes are
36f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * needed, and to ensure that code for dead (no longer implemented) API
37f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * can actually be identified and removed.
38f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Nonetheless, semantics should also be documented carefully in this file.
39f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */
40f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#include <linux/types.h>
428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
438bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt#define NL80211_GENL_NAME "nl80211"
448bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt
45f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_CONFIG		"config"
46f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_SCAN		"scan"
47f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_REG		"regulatory"
48f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_MLME		"mlme"
49f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_VENDOR		"vendor"
50f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_TESTMODE	"testmode"
51f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Station handling
548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Stations are added per interface, but a special case exists with VLAN
568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interfaces. When a station is bound to an AP interface, it may be moved
578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN).
588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The station is still assumed to belong to the AP interface it was added
598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to.
608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
612f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Station handling varies per interface type and depending on the driver's
622f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * capabilities.
632f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
642f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS
652f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows:
662f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *  - a setup station entry is added, not yet authorized, without any rate
672f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *    or capability information, this just exists to avoid race conditions
682f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *  - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid
692f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *    to add rate and capability information to the station and at the same
702f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *    time mark it authorized.
712f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *  - %NL80211_TDLS_ENABLE_LINK is then used
722f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *  - after this, the only valid operation is to remove it by tearing down
732f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *    the TDLS link (%NL80211_TDLS_DISABLE_LINK)
742f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
752f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * TODO: need more info for other interface types
768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Frame transmission/registration support
808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission and registration support exists to allow userspace
828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * management entities such as wpa_supplicant react to management frames
838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that are not being handled by the kernel. This includes, for example,
848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain classes of action frames that cannot be handled in the kernel
858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for various reasons.
868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame registration is done on a per-interface basis and registrations
888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cannot be removed other than by closing the socket. It is possible to
898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specify a registration filter to register, for example, only for a
908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain type of action frame. In particular with action frames, those
918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that userspace registers for will not be returned as unhandled by the
928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver, so that the registered application has to take responsibility
938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for doing that.
948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The type of frame that can be registered for is also dependent on the
968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver and interface type. The frame types are advertised in wiphy
978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes so applications know what to expect.
988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NOTE: When an interface changes type while registrations are active,
1008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *       these registrations are ignored until the interface type is
1018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *       changed again. This means that changing the interface type can
1028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *       lead to a situation that couldn't otherwise be produced, but
1038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *       any such registrations will be dormant in the sense that they
1048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *       will not be serviced, i.e. they will not receive any frames.
1058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
1068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission allows userspace to send for example the required
1078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * responses to action frames. It is subject to some sanity checking,
1088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * but many frames can be transmitted. When a frame was transmitted, its
1098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * status is indicated to the sending socket.
1108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
1118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * For more technical details, see the corresponding command descriptions
1128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * below.
1138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
1148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
1158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
1161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * DOC: Virtual interface / concurrency capabilities
1171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
1181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Some devices are able to operate with virtual MACs, they can have
1191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * more than one virtual interface. The capability handling for this
1201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is a bit complex though, as there may be a number of restrictions
1211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the types of concurrency that are supported.
1221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
1231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, each device supports the interface types listed in
1241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the
1251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * types there no concurrency is implied.
1261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
1271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Once concurrency is desired, more attributes must be observed:
1281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, since some interface types are purely managed in
1291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * software, like the AP-VLAN type in mac80211 for example, there's
1301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * an additional list of these, they can be added at any time and
1311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are only restricted by some semantic restrictions (e.g. AP-VLAN
1321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * cannot be added without a corresponding AP interface). This list
1331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute.
1341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
1351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Further, the list of supported combinations is exported. This is
1361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically,
1371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * it exports a list of "groups", and at any point in time the
1381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that are currently active must fall into any one of
1391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the advertised groups. Within each group, there are restrictions
1401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the number of interfaces of different types that are supported
1411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and also the number of different channels, along with potentially
1421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * some other restrictions. See &enum nl80211_if_combination_attrs.
1431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
1441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * All together, these attributes define the concurrency of virtual
1451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that a given device supports.
1461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
1471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
1481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
149e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * DOC: packet coalesce support
150e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
151e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * In most cases, host that receives IPv4 and IPv6 multicast/broadcast
152e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * packets does not do anything with these packets. Therefore the
153e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * reception of these unwanted packets causes unnecessary processing
154e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * and power consumption.
155e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
156e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Packet coalesce feature helps to reduce number of received interrupts
157e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * to host by buffering these packets in firmware/hardware for some
158e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * predefined time. Received interrupt will be generated when one of the
159e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * following events occur.
160e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Expiration of hardware timer whose expiration time is set to maximum
161e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * coalescing delay of matching coalesce rule.
162e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) Coalescing buffer in hardware reaches it's limit.
163e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Packet doesn't match any of the configured coalesce rules.
164e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
165e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * User needs to configure following parameters for creating a coalesce
166e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * rule.
167e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Maximum coalescing delay
168e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) List of packet patterns which needs to be matched
169e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Condition for coalescence. pattern 'match' or 'no match'
170e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Multiple such rules can be created.
171e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
172e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
173e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
1748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_commands - supported nl80211 commands
1758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
1768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNSPEC: unspecified command to catch errors
1778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
1788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request
1798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to get a list of all present wiphys.
1808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or
1818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME,
182a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	%NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the
183a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	attributes determining the channel width; this is used for setting
184a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	monitor mode channel),  %NL80211_ATTR_WIPHY_RETRY_SHORT,
1858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
1868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD.
1878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	However, for setting the channel, see %NL80211_CMD_SET_CHANNEL
1888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	instead, the support here is for backward compatibility only.
1898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request
1908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	or rename notification. Has attributes %NL80211_ATTR_WIPHY and
1918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_WIPHY_NAME.
1928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes
1938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME.
1948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
1958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration;
196f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	either a dump request for all interfaces or a specific get with a
197f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	single %NL80211_ATTR_IFINDEX is supported.
1988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires
1998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE.
2008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response
2018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX,
2028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also
2038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	be sent from userspace to request creation of a new virtual interface,
2048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and
2058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFNAME.
2068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes
2078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from
2088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	userspace to request deletion of a virtual interface, then requires
2098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	attribute %NL80211_ATTR_IFINDEX.
2108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
2118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified
2128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC.
2138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT,
2148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD.
2158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA,
2168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER,
2178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and %NL80211_ATTR_KEY_SEQ attributes.
2188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX
2198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	or %NL80211_ATTR_MAC.
2208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_BEACON: (not used)
22204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface
22304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL
22404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	attributes. For drivers that generate the beacon and probe responses
22504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	internally, the following attributes must be provided: %NL80211_ATTR_IE,
22604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	%NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP.
22704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters
22804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	are like for %NL80211_CMD_SET_BEACON, and additionally parameters that
22904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL,
23004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	%NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID,
2311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE,
2321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS,
2331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY,
234f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT,
235f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS.
23604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	The channel to use can be set on the interface or be given using the
237a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	%NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width.
23804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP
23904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface
24004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP
2418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
2428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_STATION: Get station attributes for station identified by
2438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
2448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_STATION: Set station attributes for station identified by
2458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
2468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the
2478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the interface identified by %NL80211_ATTR_IFINDEX.
2488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC
2498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	or, if no MAC address given, all stations, on the interface identified
2506c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and
2516c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_REASON_CODE can optionally be used to specify which type
2526c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	of disconnection indication should be sent to the station
2536c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	(Deauthentication or Disassociation frame and reason code for that
2546c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	frame).
2558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
2568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to
2578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	destination %NL80211_ATTR_MAC on the interface identified by
2588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_IFINDEX.
2598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MPATH:  Set mesh path attributes for mesh path to
2608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	destination %NL80211_ATTR_MAC on the interface identified by
2618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_IFINDEX.
2621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by
2631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP.
2641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by
2651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_MAC.
2668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the
2678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the interface identified by %NL80211_ATTR_IFINDEX.
2688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC
2698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	or, if no MAC address given, all mesh paths, on the interface identified
2708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	by %NL80211_ATTR_IFINDEX.
2718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by
2728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFINDEX.
2738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
2748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set
275f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device
276f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	has a private regulatory domain, it will be returned. Otherwise, the
277f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	global regdomain will be returned.
278f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	A device will have a private regulatory domain if it uses the
279f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	regulatory_hint() API. Even when a private regdomain is used the channel
280f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	information will still be mended according to further hints from
281f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	the regulatory core to help with compliance. A dump version of this API
282f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	is now available which will returns the global regdomain as well as
283f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	all private regdomains of present wiphys (for those that have it).
284f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then
285f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	its private regdomain is the only valid one for it. The regulatory
286f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	core is not used to help with compliance in this case.
2878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command
2888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	after being queried by the kernel. CRDA replies by sending a regulatory
2898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our
2908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	current alpha2 if it found a match. It also provides
2918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each
2928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	regulatory rule is a nested set of attributes  given by
2938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_REG_RULE_FREQ_[START|END] and
2948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by
2958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and
2968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_ATTR_REG_RULE_POWER_MAX_EIRP.
2978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain
2988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	to the specified ISO/IEC 3166-1 alpha2 country code. The core will
2998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	store this as a valid request and then query userspace for it.
3008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the
3028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	interface identified by %NL80211_ATTR_IFINDEX
3038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the
3058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      interface identified by %NL80211_ATTR_IFINDEX
3068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The
3088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	interface is identified with %NL80211_ATTR_IFINDEX and the management
3098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be
3108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	added to the end of the specified management frame is specified with
3118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IE. If the command succeeds, the requested data will be
3128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	added to all specified management frames generated by
3138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	kernel/firmware/driver.
3148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	Note: This command has been removed and it is only reserved at this
3158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	point to avoid re-using existing command number. The functionality this
3168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	command was planned for has been provided with cleaner design with the
3178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN,
3188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE,
3198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE.
3208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SCAN: get scan results
3228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters
3231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
3241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	probe requests at CCK rate or not.
3258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to
3268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_GET_SCAN and on the "scan" multicast group)
3278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons,
3288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	partial scan results may be available
3298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain
3311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	intervals, as specified by %NL80211_ATTR_SCHED_SCAN_INTERVAL.
3321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS)
3331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	are passed, they are used in the probe requests.  For
3341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	broadcast, a broadcast SSID must be passed (ie. an empty
3351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	string).  If no SSID is passed, no probe requests are sent and
3361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	a passive scan is performed.  %NL80211_ATTR_SCAN_FREQUENCIES,
3371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	if passed, define which channels should be scanned; if not
3381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	passed, all channels allowed for the current regulatory domain
3391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	are used.  Extra IEs can also be passed from the userspace by
340f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	using the %NL80211_ATTR_IE attribute.  The first cycle of the
341f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY
342f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	is supplied.
343df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if
344df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	scheduled scan is not running. The caller may assume that as soon
345df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	as the call returns, it is safe to start a new scheduled scan again.
3461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan
3471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	results available.
3481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has
3491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	stopped.  The driver may issue this event at any time during a
3501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	scheduled scan.  One reason for stopping the scan is if the hardware
3511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	does not support starting an association or a normal scan while running
3521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	a scheduled scan.  This event is also sent when the
3531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface
3541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is brought down while a scheduled scan was running.
3551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
3568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation
3578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      or noise level
3588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to
3598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_GET_SURVEY and on the "scan" multicast group)
3608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
36104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry, using %NL80211_ATTR_MAC
36204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	(for the BSSID) and %NL80211_ATTR_PMKID.
36304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC
36404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	(for the BSSID) and %NL80211_ATTR_PMKID.
36504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries.
36604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
3678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain
3688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	has been changed and provides details of the request information
3698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	that caused the change such as who initiated the regulatory request
3708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	(%NL80211_ATTR_REG_INITIATOR), the wiphy_idx
3718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	(%NL80211_ATTR_REG_ALPHA2) on which the request was made from if
3728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or
3738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain
3748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is
3758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	%NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on
3768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	to (%NL80211_ATTR_REG_ALPHA2).
3778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon
3788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	has been found while world roaming thus enabling active scan or
3798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	any mode of operation that initiates TX (beacons) on a channel
3808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	where we would not have been able to do either before. As an example
3818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	if you are world roaming (regulatory domain set to world or if your
3828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	driver is using a custom world roaming regulatory domain) and while
3838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	doing a passive scan on the 5 GHz band you find an AP there (if not
3848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	on a DFS channel) you will now be able to actively scan for that AP
3858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	or use AP mode on your card on that same channel. Note that this will
3868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	never be used for channels 1-11 on the 2 GHz band as they are always
3878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	enabled world wide. This beacon hint is only sent if your device had
3888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	either disabled active scanning or beaconing on a channel. We send to
3898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	userspace the wiphy on which we removed a restriction from
3908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	(%NL80211_ATTR_WIPHY) and the channel on which this occurred
3918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER)
3928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	the beacon hint was processed.
3938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_AUTHENTICATE: authentication request and notification.
3958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	This command is used both as a command (request to authenticate) and
3968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	as an event on the "mlme" multicast group indicating completion of the
3978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	authentication process.
3988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	When used as a command, %NL80211_ATTR_IFINDEX is used to identify the
3998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and
4008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify
4018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the SSID (mainly for association, but is included in authentication
4028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ is used
4038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to specify the frequence of the channel in MHz. %NL80211_ATTR_AUTH_TYPE
4048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	is used to specify the authentication type. %NL80211_ATTR_IE is used to
4058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	define IEs (VendorSpecificInfo, but also including RSN IE and FT IEs)
4068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to be added to the frame.
4078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	When used as an event, this reports reception of an Authentication
4088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	frame in station and IBSS modes when the local MLME processed the
4098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	frame, i.e., it was for the local STA and was received in correct
4108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	state. This is similar to MLME-AUTHENTICATE.confirm primitive in the
4118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	MLME SAP interface (kernel providing MLME, userspace SME). The
4128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	included %NL80211_ATTR_FRAME attribute contains the management frame
4138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(including both the header and frame body, but not FCS). This event is
4148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	also used to indicate if the authentication attempt timed out. In that
4158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	case the %NL80211_ATTR_FRAME attribute is replaced with a
4168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which
4178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	pending authentication timed out).
4188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ASSOCIATE: association request and notification; like
4198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_AUTHENTICATE but for Association and Reassociation
4208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request,
4218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives).
4228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like
4238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to
4248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication
4258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	primitives).
4268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like
4278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to
4288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives).
4298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael
4318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	MIC (part of TKIP) failure; sent on the "mlme" multicast group; the
4328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	event includes %NL80211_ATTR_MAC to describe the source MAC address of
4338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key
4348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and
4358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this
4368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	event matches with MLME-MICHAELMICFAILURE.indication() primitive
4378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a
4398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	FREQ attribute (for the initial frequency if no peer can be found)
4408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those
4418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	should be fixed rather than automatically determined. Can only be
4428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	executed on a network interface that is UP, and fixed BSSID/FREQ
4438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	may be rejected. Another optional parameter is the beacon interval,
4448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not
4458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	given defaults to 100 TU (102.4ms).
4468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is
4478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	determined by the network interface.
4488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute
4508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to identify the device, and the TESTDATA blob attribute to pass through
4518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to the driver.
4528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CONNECT: connection request and notification; this command
4548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	requests to connect to a specified network but without separating
4558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	auth and assoc steps. For this, you need to specify the SSID in a
4568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_SSID attribute, and can optionally specify the association
457f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP,
458f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT,
45996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	%NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
46096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	%NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and
46196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	%NL80211_ATTR_WIPHY_FREQ_HINT.
46296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
46396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	restrictions on BSS selection, i.e., they effectively prevent roaming
46496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT
46596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	can be included to provide a recommendation of the initial BSS while
46696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	allowing the driver to roam to other BSSes within the ESS and also to
46796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	ignore this recommendation if the indicated BSS is not ideal. Only one
46896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	set of BSSID,frequency parameters is used (i.e., either the enforcing
46996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	%NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict
47096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	%NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT).
47104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	Background scan period can optionally be
47204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	specified in %NL80211_ATTR_BG_SCAN_PERIOD,
47304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	if not specified default background scan configuration
47404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	in driver is used and if period value is 0, bg scan will be disabled.
47504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	This attribute is ignored if driver does not support roam scan.
4768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	It is also sent as an event, with the BSSID and response IEs when the
4778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	connection is established or failed to be established. This can be
4788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	determined by the STATUS_CODE attribute.
4798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ROAM: request that the card roam (currently not implemented),
4808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	sent as an event when the card/driver roamed by itself.
4818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify
4828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	userspace that a connection was dropped by the AP or due to other
4838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and
4848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_REASON_CODE attributes are used.
4858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices
4878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	associated with this wiphy must be down and will follow.
4888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
4898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified
4908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	channel for the specified amount of time. This can be used to do
4918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	off-channel operations like transmit a Public Action frame and wait for
4928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a response while being associated to an AP on another channel.
4938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_IFINDEX is used to specify which interface (and thus
4948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the
495a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	frequency for the operation.
4968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_DURATION is used to specify the duration in milliseconds
4978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to remain on the channel. This command is also used as an event to
4988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	notify when the requested duration starts (it may take a while for the
4998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	driver to schedule this time due to other concurrent needs for the
5008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	radio).
5018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	When called, this operation returns a cookie (%NL80211_ATTR_COOKIE)
5028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	that will be included with any events pertaining to this request;
5038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the cookie is also used to cancel the request.
5048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a
5058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	pending remain-on-channel duration if the desired operation has been
5068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	completed prior to expiration of the originally requested duration.
5078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the
5088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	radio. The %NL80211_ATTR_COOKIE attribute must be given as well to
5098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	uniquely identify the request.
5108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	This command is also used as an event to notify when a requested
5118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	remain-on-channel duration has expired.
5128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX
5148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface
5158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and @NL80211_ATTR_TX_RATES the set of allowed rates.
5168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames
5188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(via @NL80211_CMD_FRAME) for processing in userspace. This command
5198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	requires an interface index, a frame type attribute (optional for
5208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	backward compatibility reasons, if not given assumes action frames)
5218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and a match attribute containing the first few bytes of the frame
5228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	that should match, e.g. a single byte for only a category match or
5238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	four bytes for vendor frames including the OUI. The registration
5248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	cannot be dropped, but is removed automatically when the netlink
5258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	socket is closed. Multiple registrations can be made.
5268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for
5278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	backward compatibility
5288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This
5298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	command is used both as a request to transmit a management frame and
5308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	as an event indicating reception of a frame that was not processed in
5318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	kernel code, but is for us (i.e., which may need to be processed in a
5328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	user space application). %NL80211_ATTR_FRAME is used to specify the
533a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used
534a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	to indicate on which channel the frame is to be transmitted or was
535a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	received. If this channel is not the current channel (remain-on-channel
536a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	or the operational channel) the device will switch to the given channel
537a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	and transmit the frame, optionally waiting for a response for the time
5388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	specified using %NL80211_ATTR_DURATION. When called, this operation
5398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the
5408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	TX status event pertaining to the TX request.
5411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
5421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	management frames at CCK rate or not in 2GHz band.
5439ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	%NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA
5449ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	counters which will be updated to the current value. This attribute
5459ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	is used during CSA period.
5468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this
5478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	command may be used with the corresponding cookie to cancel the wait
5488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	time if it is known that it is no longer necessary.
5498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility.
5508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame
5518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies
5528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the TX command and %NL80211_ATTR_FRAME includes the contents of the
5538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged
5548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the frame.
5558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for
5568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	backward compatibility.
55704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
55804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE
55904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE
56004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
5618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command
5628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	is used to configure connection quality monitoring notification trigger
5638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	levels.
5648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This
5658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	command is used as an event to indicate the that a trigger level was
5668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	reached.
5678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ
568a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	and the attributes determining channel width) the given interface
569a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	(identifed by %NL80211_ATTR_IFINDEX) shall operate on.
5708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	In case multiple channels are supported by the device, the mechanism
5718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	with which it switches channels is implementation-defined.
5728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	When a monitor interface is given, it can only switch channel while
5738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	no other interfaces are operating to avoid disturbing the operation
5748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	of any other interfaces, and other interfaces will again take
5758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	precedence when they are used.
5768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface.
5788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial
5808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	mesh config parameters may be given.
5818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the
5828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	network is determined by the network interface.
5838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame
5858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	notification. This event is used to indicate that an unprotected
5868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	deauthentication frame was dropped when MFP is in use.
5878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame
5888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	notification. This event is used to indicate that an unprotected
5898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	disassociation frame was dropped when MFP is in use.
5908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a
5921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *      beacon or probe response from a compatible mesh peer.  This is only
5931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *      sent while no station information (sta_info) exists for the new peer
5942f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *      candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH,
5952f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *      @NL80211_MESH_SETUP_USERSPACE_AMPE, or
5962f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *      @NL80211_MESH_SETUP_USERSPACE_MPM is set.  On reception of this
5972f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *      notification, userspace may decide to create a new station
5982f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *      (@NL80211_CMD_NEW_STATION).  To stop this notification from
5991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *      reoccurring, the userspace authentication daemon may want to create the
6001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *      new station with the AUTHENTICATED flag unset and maybe change it later
6011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *      depending on the authentication result.
6021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings.
6041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings.
6051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Since wireless is more complex than wired ethernet, it supports
6061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	various triggers. These triggers can be configured through this
6071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For
6081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	more background information, see
6091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	http://wireless.kernel.org/en/users/Documentation/WoWLAN.
610f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	The @NL80211_CMD_SET_WOWLAN command can also be used as a notification
611f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	from the driver reporting the wakeup reason. In this case, the
612f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	@NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason
613f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	for the wakeup, if it was caused by wireless. If it is not present
614f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	in the wakeup notification, the wireless device didn't cause the
615f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	wakeup but reports that it was woken up.
6161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver
6181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the necessary information for supporting GTK rekey offload. This
6191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	feature is typically used during WoWLAN. The configuration data
6201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is contained in %NL80211_ATTR_REKEY_DATA (which is nested and
6211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	contains the data in sub-attributes). After rekeying happened,
6221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	this command may also be sent by the driver as an MLME event to
6231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	inform userspace of the new replay counter.
6241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace
6261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	of PMKSA caching dandidates.
6271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup).
629d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	In addition, this can be used as an event to request userspace to take
630d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	actions on TDLS links (set up a new link or tear down an existing one).
631d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested
632d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	operation, %NL80211_ATTR_MAC contains the peer MAC address, and
633d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	%NL80211_ATTR_REASON_CODE the reason code to be used (only with
634d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	%NL80211_TDLS_TEARDOWN).
635fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The
636fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	%NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be
637fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as
638fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	802.11 management frames, while TDLS action codes (802.11-2012
639fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	8.5.13.1) will be encapsulated and sent as data frames. The currently
640fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES
641fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	and the currently supported TDLS actions codes are given in
642fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	&enum ieee80211_tdls_actioncode.
6431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP
6451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(or GO) interface (i.e. hostapd) to ask for unexpected frames to
6461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	implement sending deauth to stations that send unexpected class 3
6471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	frames. Also used as the event sent by the kernel when such a frame
6481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is received.
6491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	For the event, the %NL80211_ATTR_MAC attribute carries the TA and
6501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	other attributes like the interface index are present.
6511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	If used as the command it must have an interface index and you can
6521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	only unsubscribe from the event by closing the socket. Subscription
6531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events.
6541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the
6561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	associated station identified by %NL80211_ATTR_MAC sent a 4addr frame
6571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	and wasn't already in a 4-addr VLAN. The event will be sent similarly
6581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener.
6591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface
6611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	by sending a null data frame to it and reporting when the frame is
6621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	acknowleged. This is used to allow timing out inactive clients. Uses
6631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a
6641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	direct reply with an %NL80211_ATTR_COOKIE that is later used to match
6651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	up the event with the request. The event includes the same data and
6661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	has %NL80211_ATTR_ACK set if the frame was ACKed.
6671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
6681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from
6691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	other BSSes when any interfaces are in AP mode. This helps implement
6701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME
6711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	messages. Note that per PHY only one application may register.
6721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
673c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether
674c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      No Acknowledgement Policy should be applied.
675c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
67604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels
67704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	independently of the userspace SME, send this event indicating
678a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	%NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the
6796c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	attributes determining channel width.  This indication may also be
6806c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	sent when a remotely-initiated switch (e.g., when a STA receives a CSA
6816c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	from the remote AP) is completed;
6826c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
6836c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch
6846c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	has been started on an interface, regardless of the initiator
6856c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	(ie. whether it was requested from a remote device or
6866c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	initiated on our own).  It indicates that
6876c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ
6886c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's.  The userspace may
6896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	decide to react to this indication by requesting other
6906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	interfaces to change channel as well.
69104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
692d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
693d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	its %NL80211_ATTR_WDEV identifier. It must have been created with
694d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	%NL80211_CMD_NEW_INTERFACE previously. After it has been started, the
695d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	P2P Device can be used for P2P operations, e.g. remain-on-channel and
696d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	public action frame TX.
697d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by
698d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	its %NL80211_ATTR_WDEV identifier.
699d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
700d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to
701d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	notify userspace that AP has rejected the connection request from a
702d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON
703d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	is used for this.
704d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
705d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames
706d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	for IBSS or MESH vif.
707d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
708f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control.
709f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	This is to be used with the drivers advertising the support of MAC
710f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	address based access control. List of MAC addresses is passed in
711f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_MAC_ADDRS and ACL policy is passed in
712f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it
713f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	is not already done. The new list will replace any existing list. Driver
714f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	will clear its ACL when the list of MAC addresses passed is empty. This
715f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	command is used in AP/P2P GO mode. Driver has to make sure to clear its
716f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	ACL list during %NL80211_CMD_STOP_AP.
717f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
718f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once
719f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	a radar is detected or the channel availability scan (CAC) has finished
720f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	or was aborted, or a radar was detected, usermode will be notified with
721f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	this event. This command is also used to notify userspace about radars
722f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	while operating on this channel.
723f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	%NL80211_ATTR_RADAR_EVENT is used to inform about the type of the
724f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	event.
725f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
7262f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features,
7272f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	i.e. features for the nl80211 protocol rather than device features.
7282f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap.
7292f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
7302f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition
7312f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	Information Element to the WLAN driver
7322f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
7332f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver
7342f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	to the supplicant. This will carry the target AP's MAC address along
7352f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	with the relevant Information Elements. This event is used to report
7362f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE).
7372f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
73851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running
73951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *	a critical protocol that needs more reliability in the connection to
74051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *	complete.
74151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *
74251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can
74351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *	return back to normal.
74451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *
745e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules.
746e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules.
747e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
748e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the
749e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	the new channel information (Channel Switch Announcement - CSA)
750e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	in the beacon for some time (as defined in the
751e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	%NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the
752e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	new channel. Userspace provides the new channel information (using
753e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	%NL80211_ATTR_WIPHY_FREQ and the attributes determining channel
754e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform
755e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	other station that transmission must be blocked until the channel
756e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	switch is complete.
757e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
758fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified
759fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in
760fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	%NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in
761fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	%NL80211_ATTR_VENDOR_DATA.
762fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is
763fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	used in the wiphy data as a nested attribute containing descriptions
764fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	(&struct nl80211_vendor_cmd_info) of the supported vendor commands.
765fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	This may also be sent as an event with the same attributes.
766fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
767fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values.
768fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If
769fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	that attribute is not included, QoS mapping is disabled. Since this
770fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	QoS mapping is relevant for IP packets, it is only valid during an
771fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	association. This is cleared on disassociation and AP restart.
772fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
7739ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given
7749ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	%NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO
7759ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	and %NL80211_ATTR_ADMITTED_TIME parameters.
7769ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	Note that the action frame handshake with the AP shall be handled by
7779ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	userspace via the normal management RX/TX framework, this only sets
7789ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	up the TX TS in the driver/device.
7799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	If the admitted time attribute is not added then the request just checks
7809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	if a subsequent setup could be successful, the intent is to use this to
7819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	avoid setting up a session with the AP when local restrictions would
7829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	make that impossible. However, the subsequent "real" setup may still
7839ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	fail even if the check was successful.
7849ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID
7859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	and %NL80211_ATTR_MAC parameters. It isn't necessary to call this
7869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	before removing a station entry entirely, or before disassociating
7879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	or similar, cleanup will happen in the driver/device in this case.
7889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
7896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to
7906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	destination %NL80211_ATTR_MAC on the interface identified by
7916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_IFINDEX.
7926c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
7936c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and
7946c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	bandwidth of a channel must be given.
7956c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the
7966c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	network is determined by the network interface.
7976c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
7986c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer,
7996c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	identified by the %NL80211_ATTR_MAC parameter. A target channel is
8006c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining
8016c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	channel width/type. The target operating class is given via
8026c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_OPER_CLASS.
8036c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	The driver is responsible for continually initiating channel-switching
8046c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	operations and returning to the base channel for communication with the
8056c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	AP.
8066c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS
8076c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel
8086c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	when this command completes.
8096c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
810f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used
811f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	as an event to indicate changes for devices with wiphy-specific regdom
812f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	management.
813f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
8148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MAX: highest used command number
8158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_CMD_AFTER_LAST: internal use
8168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
8178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_commands {
8181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */
8198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_UNSPEC,
8208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_WIPHY,		/* can dump */
8228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_WIPHY,
8238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_WIPHY,
8248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_WIPHY,
8258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_INTERFACE,	/* can dump */
8278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_INTERFACE,
8288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_INTERFACE,
8298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_INTERFACE,
8308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_KEY,
8328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_KEY,
8338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_KEY,
8348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_KEY,
8358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_BEACON,
8378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_BEACON,
83804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CMD_START_AP,
83904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP,
84004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CMD_STOP_AP,
84104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP,
8428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_STATION,
8448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_STATION,
8458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_STATION,
8468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_STATION,
8478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_MPATH,
8498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_MPATH,
8508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_MPATH,
8518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_MPATH,
8528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_BSS,
8548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_REG,
8568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REQ_SET_REG,
8578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_GET_MESH_CONFIG,
8591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_SET_MESH_CONFIG,
8608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */,
8628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_REG,
8648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_SCAN,
8668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_TRIGGER_SCAN,
8678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_SCAN_RESULTS,
8688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SCAN_ABORTED,
8698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REG_CHANGE,
8718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_AUTHENTICATE,
8738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_ASSOCIATE,
8748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEAUTHENTICATE,
8758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DISASSOCIATE,
8768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_MICHAEL_MIC_FAILURE,
8788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REG_BEACON_HINT,
8808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_JOIN_IBSS,
8828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_LEAVE_IBSS,
8838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_TESTMODE,
8858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_CONNECT,
8878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_ROAM,
8888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DISCONNECT,
8898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_WIPHY_NETNS,
8918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_SURVEY,
8938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NEW_SURVEY_RESULTS,
8948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_PMKSA,
8968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_DEL_PMKSA,
8978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_FLUSH_PMKSA,
8988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
8998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REMAIN_ON_CHANNEL,
9008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL,
9018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_TX_BITRATE_MASK,
9038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REGISTER_FRAME,
9058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME,
9068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_FRAME,
9078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_ACTION = NL80211_CMD_FRAME,
9088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_FRAME_TX_STATUS,
9098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS,
9108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_POWER_SAVE,
9128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_GET_POWER_SAVE,
9138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_CQM,
9158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_NOTIFY_CQM,
9168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_CHANNEL,
9188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_SET_WDS_PEER,
9198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_FRAME_WAIT_CANCEL,
9218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_JOIN_MESH,
9238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_LEAVE_MESH,
9248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_UNPROT_DEAUTHENTICATE,
9268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_UNPROT_DISASSOCIATE,
9278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
9281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_NEW_PEER_CANDIDATE,
9291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_GET_WOWLAN,
9311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_SET_WOWLAN,
9321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_START_SCHED_SCAN,
9341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_STOP_SCHED_SCAN,
9351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_SCHED_SCAN_RESULTS,
9361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_SCHED_SCAN_STOPPED,
9371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_SET_REKEY_OFFLOAD,
9391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_PMKSA_CANDIDATE,
9411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_TDLS_OPER,
9431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_TDLS_MGMT,
9441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_UNEXPECTED_FRAME,
9461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_PROBE_CLIENT,
9481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_REGISTER_BEACONS,
9501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
9511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_CMD_UNEXPECTED_4ADDR_FRAME,
9521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
953c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_CMD_SET_NOACK_MAP,
954c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
95504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CMD_CH_SWITCH_NOTIFY,
95604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
957d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CMD_START_P2P_DEVICE,
958d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CMD_STOP_P2P_DEVICE,
959d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
960d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CMD_CONN_FAILED,
961d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
962d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CMD_SET_MCAST_RATE,
963d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
964f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_CMD_SET_MAC_ACL,
965f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
966f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_CMD_RADAR_DETECT,
967f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
9682f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_CMD_GET_PROTOCOL_FEATURES,
9692f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
9702f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_CMD_UPDATE_FT_IES,
9712f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_CMD_FT_EVENT,
9722f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
97351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CMD_CRIT_PROTOCOL_START,
97451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CMD_CRIT_PROTOCOL_STOP,
97551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt
976e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_CMD_GET_COALESCE,
977e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_CMD_SET_COALESCE,
978e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
979e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_CMD_CHANNEL_SWITCH,
980e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
981fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_CMD_VENDOR,
982fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
983fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_CMD_SET_QOS_MAP,
984fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
9859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_CMD_ADD_TX_TS,
9869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_CMD_DEL_TX_TS,
9879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
9886c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_GET_MPP,
9896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
9906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_JOIN_OCB,
9916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_LEAVE_OCB,
9926c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
9936c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
9946c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
9956c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_TDLS_CHANNEL_SWITCH,
9966c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH,
9976c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
998f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_CMD_WIPHY_REG_CHANGE,
999f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
10008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* add new commands above here */
10018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
10028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* used to define NL80211_CMD_MAX below */
10038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_CMD_AFTER_LAST,
10048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
10058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
10068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
10078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
10088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new commands by defining them
10098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here
10108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
10118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
10128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE
10138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE
10148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE
10158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE
10168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE
10178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE
10188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT
10198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
10201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
10211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
10221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* source-level API compatibility */
10231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG
10241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG
10251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE
10261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
10278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
10288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attrs - nl80211 netlink attributes
10298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
10308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors
10318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
10328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf.
10338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	/sys/class/ieee80211/<phyname>/index
10348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming)
10358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters
1036a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz,
1037a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	defines the channel together with the (deprecated)
1038a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	%NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes
1039a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	%NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1
1040a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	and %NL80211_ATTR_CENTER_FREQ2
1041a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values
1042a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	of &enum nl80211_chan_width, describing the channel width. See the
1043a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	documentation of the enum for more information.
1044a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the
1045a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	channel, used for anything but 20 MHz bandwidth
1046a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the
1047a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	channel, used only for 80+80 MHz bandwidth
10488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ
1049a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	if HT20 or HT40 are to be used (i.e., HT disabled if not included):
10508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including
10518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *		this attribute)
10528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CHAN_HT20 = HT20 only
10538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel
10548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel
1055a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	This attribute is now deprecated.
10568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is
10578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	less than or equal to the RTS threshold; allowed range: 1..255;
10588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	dot11ShortRetryLimit; u8
10598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is
10608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	greater than the RTS threshold; allowed range: 1..255;
10618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	dot11ShortLongLimit; u8
10628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum
10638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	length in octets for frames; allowed range: 256..8000, disable
10648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	fragmentation with (u32)-1; dot11FragmentationThreshold; u32
10658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length
10668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	larger than or equal to this use RTS/CTS handshake); allowed range:
10678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	0..65536, disable with (u32)-1; dot11RTSThreshold; u32
10688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11
10698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	section 7.3.2.9; dot11CoverageClass; u8
10708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
10718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on
10728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFNAME: network interface name
10738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype
10748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
107561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices
107661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	that don't have a netdev (u64)
107761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *
10788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAC: MAC address (various uses)
10798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
10808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of
10818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	16 bytes encryption key followed by 8 bytes each for TX and RX MIC
10828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	keys
10838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3)
10848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
10858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	section 7.3.2.25.1, e.g. 0x000FAC04)
10868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
10878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	CCMP keys, each six bytes in little endian
108804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key
108904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the
109004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	default management key
109104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or
109204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	other commands, indicates which pairwise cipher suites are used
109304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or
109404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	other commands, indicates which group cipher suite is used
10958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
10968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU
10978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing
10988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE
10998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE
11008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_AID: Association ID for the station (u16)
11028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of
11038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	&enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2)
11048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by
11058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	IEEE 802.11 7.3.1.6 (u16).
11068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported
11078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	rates as defined by IEEE 802.11 7.3.2.2 but without the length
11088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	restriction (at most %NL80211_MAX_SUPP_RATES).
11098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station
11108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to, or the AP interface the station was originally added to to.
11118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_INFO: information about a station, part of station info
11128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	given for %NL80211_CMD_GET_STATION, nested attribute containing
11138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	info as possible, see &enum nl80211_sta_info.
11148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands,
11168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	consisting of a nested array.
11178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes).
11192f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link
11202f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	(see &enum nl80211_plink_action).
11218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path.
11228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path
11238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	info given for %NL80211_CMD_GET_MPATH, nested attribute described at
11248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	&enum nl80211_mpath_info.
11258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of
11278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      &enum nl80211_mntr_flags.
11288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the
11308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	current regulatory domain should be set to or is already set to.
11318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	For example, 'CR', for Costa Rica. This attribute is used by the kernel
11328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	to query the CRDA to retrieve one regulatory domain. This attribute can
11338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	also be used by userspace to query the kernel for the currently set
11348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	regulatory domain. We chose an alpha2 as that is also used by the
1135e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 	IEEE-802.11 country information element to identify a country.
11368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	Users can also simply ask the wireless core to set regulatory domain
11378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	to a specific alpha2.
11388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory
11398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	rules.
11408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1)
11428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled
11438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(u8, 0 or 1)
11448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled
11458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(u8, 0 or 1)
11468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic
11478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	rates in format defined by IEEE 802.11 7.3.2.2 but without the length
11488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	restriction (at most %NL80211_MAX_SUPP_RATES).
11498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from
11518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	association request when used with NL80211_CMD_NEW_STATION)
11528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all
11548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	supported interface types, each a flag attribute with the number
11558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	of the interface mode.
11568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for
11588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_CMD_SET_MGMT_EXTRA_IE.
11598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with
11618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_CMD_SET_MGMT_EXTRA_IE).
11628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with
11648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a single scan request, a wiphy attribute.
11651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can
11661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	scan with a single scheduled scan request, a wiphy attribute.
11678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements
11688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	that can be added to a scan request
11691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information
11701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	elements that can be added to a scheduled scan request
11711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be
11721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute.
11738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz)
11758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive
11768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	scanning and include a zero-length SSID (wildcard) for wildcard scan
11778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS: scan result BSS
11788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain
11808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_*
11818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently
11828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*)
11838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies
11858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	an array of command numbers (i.e. a mapping index to command number)
11868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	that the driver for the given wiphy supports.
11878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header
11898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and
11908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_ASSOCIATE events
11918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets)
11928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type,
11938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	represented as a u32
11948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and
11958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_CMD_DISASSOCIATE, u16
11968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
11978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as
11988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a u32
11998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change
12018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	due to considerations from a beacon hint. This attribute reflects
12028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	the state of the channel _before_ the beacon hint processing. This
12038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	attributes consists of a nested attribute containing
12048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	NL80211_FREQUENCY_ATTR_*
12058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change
12068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	due to considerations from a beacon hint. This attribute reflects
12078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	the state of the channel _after_ the beacon hint processing. This
12088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	attributes consists of a nested attribute containing
12098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	NL80211_FREQUENCY_ATTR_*
12108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported
12128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	cipher suites
12138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look
12158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	for other networks on different channels
12168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this
12188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	is used, e.g., with %NL80211_CMD_AUTHENTICATE event
12198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is
12218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	used for the association (&enum nl80211_mfp, represented as a u32);
12228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	this attribute can be used
1223f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests
12248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS2: Attribute containing a
12268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	&struct nl80211_sta_flag_update.
12278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls
12298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in
12308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	station mode. If the flag is included in %NL80211_CMD_ASSOCIATE
12318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	request, the driver will assume that the port is unauthorized until
12328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	authorized by user space. Otherwise, port is marked authorized by
12338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	default in station mode.
12348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the
12358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	ethertype that will be used for key negotiation. It can be
12368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	specified with the associate and connect commands. If it is not
12378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	specified, the value defaults to 0x888E (PAE, 802.1X). This
12388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	attribute is also used as a flag in the wiphy information to
12398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	indicate that protocols other than PAE are supported.
12408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with
12418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom
12428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	ethertype frames used for key negotiation must not be encrypted.
12438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver.
12458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	We recommend using nested, driver-specific attributes within this.
12468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT
12488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	event was due to the AP disconnecting the station, and not due to
12498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a local disconnect request.
12508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT
12518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	event (u16)
12528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating
12531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	that protected APs should be used. This is also used with NEW_BEACON to
12541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	indicate that the BSS is to use protection.
12558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON
12571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	to indicate which unicast key ciphers will be used with the connection
12588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(an array of u32).
12591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
12601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	indicate which group key cipher will be used with the connection (a
12611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	u32).
12621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
12631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	indicate which WPA version(s) the AP we want to associate with is using
12648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(a u32 with flags from &enum nl80211_wpa_versions).
12651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
12661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	indicate which key management algorithm(s) to use (an array of u32).
12678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REQ_IE: (Re)association request information elements as
12698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	sent out by the card, for ROAM and successful CONNECT events.
12708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RESP_IE: (Re)association response information elements as
12718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	sent by peer, for ROAM and successful CONNECT events.
12728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used by in ASSOCIATE
12748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	commands to specify using a reassociate frame
12758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY: key information in a nested attribute with
12778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_KEY_* sub-attributes
12788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect()
12798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	and join_ibss(), key information is in a nested attribute each
12808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	with %NL80211_KEY_* sub-attributes
12818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PID: Process ID of a network namespace.
12838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for
12858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	dumps. This number increases whenever the object list being
12868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	dumped changes, and as such userspace can verify that it has
12878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	obtained a complete and consistent snapshot by verifying that
12888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	all dump messages contain the same generation number. If it
12898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	changed then the list changed and the dump should be repeated
12908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	completely from scratch.
12918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface
12938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of
12958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      the survey response for %NL80211_CMD_GET_SURVEY, nested attribute
12968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      containing info as possible, see &enum survey_info.
12978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
12988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PMKID: PMK material for PMKSA caching.
12998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can
13008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	cache, a wiphy attribute.
13018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32.
13038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that
13048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	specifies the maximum duration that can be requested with the
13058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	remain-on-channel operation, in milliseconds, u32.
13068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects.
13088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_RATES: Nested set of attributes
13108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(enum nl80211_tx_rate_attributes) describing TX rates per band. The
13118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	enum nl80211_band value is used as the index (nla_type() of the nested
13128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	data. If a band is not included, it will be configured to allow all
13138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	rates based on negotiated supported rates information. This attribute
13148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	is used with %NL80211_CMD_SET_TX_BITRATE_MASK.
13158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain
13178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME.
13188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the
13198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	@NL80211_CMD_REGISTER_FRAME command.
13208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a
13218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
13228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	information about which frame types can be transmitted with
13238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_CMD_FRAME.
13248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a
13258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
13268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	information about which frame types can be registered for RX.
13278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was
13298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	acknowledged by the recipient.
13308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
133104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values.
133204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
13338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM: connection quality monitor configuration in a
13348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	nested attribute with %NL80211_ATTR_CQM_* sub-attributes.
13358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command
13378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	is requesting a local authentication/association state change without
13388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	invoking actual management frame exchange. This can be used with
13398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE,
13408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	NL80211_CMD_DISASSOCIATE.
13418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations
13438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	connected to this BSS.
13448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See
13468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      &enum nl80211_tx_power_setting for possible values.
13478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units.
13488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING
13498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      for non-automatic settings.
13508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly
13528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	means support for per-station GTKs.
13538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting.
13558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	This can be used to mask out antennas which are not attached or should
13568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	not be used for transmitting. If an antenna is not selected in this
13578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	bitmap the hardware is not allowed to transmit on this antenna.
13588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	Each bit represents one antenna, starting with antenna 1 at the first
13608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	bit. Depending on which antennas are selected in the bitmap, 802.11n
13618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	drivers can derive which chainmasks to use (if all antennas belonging to
13628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a particular chain are disabled this chain should be disabled) and if
13638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	a chain has diversity antennas wether diversity should be used or not.
13648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	HT capabilities (STBC, TX Beamforming, Antenna selection) can be
13658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	derived from the available chains after applying the antenna mask.
13668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	Non-802.11n drivers can derive wether to use diversity or not.
13678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	Drivers may reject configurations or RX/TX mask combinations they cannot
13688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	support by returning -EINVAL.
13698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving.
13718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	This can be used to mask out antennas which are not attached or should
13728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	not be used for receiving. If an antenna is not selected in this bitmap
13738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the hardware should not be configured to receive on this antenna.
13741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX.
13751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
13761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available
13771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	for configuration as TX antennas via the above parameters.
13781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
13791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available
13801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	for configuration as RX antennas via the above parameters.
13818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS
13838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be
13858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	transmitted on another channel when the channel given doesn't match
13868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the current channel. If the current channel doesn't match and this
13878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	flag isn't set, the frame will be rejected. This is also used as an
13888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	nl80211 capability flag.
13898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
139004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16)
13918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags
13938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	attributes, specifying what a key should be set as default as.
13948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	See &enum nl80211_key_default_types.
13958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
13961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters.  These cannot be
13971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	changed once the mesh is active.
13981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute
13991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	containing attributes from &enum nl80211_meshconf_params.
14001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver
14011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	allows auth frames in a mesh to be passed to userspace for processing via
14021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the @NL80211_MESH_SETUP_USERSPACE_AUTH flag.
14032f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in
14042f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	&enum nl80211_plink_state. Used when userspace is driving the peer link
14052f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	management state machine.  @NL80211_MESH_SETUP_USERSPACE_AMPE or
14062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	@NL80211_MESH_SETUP_USERSPACE_MPM must be enabled.
14071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy
14091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	capabilities, the supported WoWLAN triggers
14101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to
14111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	indicate which WoW triggers should be enabled. This is also
14121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN
14131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	triggers.
141404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
14151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan
14161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	cycles, in msecs.
141704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
14181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more
14191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	sets of attributes to match during scheduled scans.  Only BSSs
14201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	that match any of the sets will be reported.  These are
14211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	pass-thru filter rules.
14221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	For a match to succeed, the BSS must match all attributes of a
14231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	set.  Since not every hardware supports matching all types of
14241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	attributes, there is no guarantee that the reported BSSs are
14251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	fully complying with the match sets and userspace needs to be
14261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	able to ignore them by itself.
14271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Thus, the implementation is somewhat hardware-dependent, but
14281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	this is only an optimization and the userspace application
14291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	needs to handle all the non-filtered results anyway.
14301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	If the match attributes don't make sense when combined with
14311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID
14321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is included in the probe request, but the match attributes
14331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	will never let it go through), -EINVAL may be returned.
14341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	If ommited, no filtering is done.
14351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported
14371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	interface combinations. In each nested item, it contains attributes
14381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	defined in &enum nl80211_if_combination_attrs.
14391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like
14401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that
14411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	are managed in software: interfaces of these types aren't subject to
14421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	any restrictions in their number or combinations.
14431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
144404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information
14451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	necessary for GTK rekeying in the device, see &enum nl80211_rekey_data.
14461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan,
14481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	nested array attribute containing an entry for each band, with the entry
14491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but
14501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	without the length restriction (at most %NL80211_MAX_SUPP_RATES).
14511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon
14531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	and Probe Response (when response to wildcard Probe Request); see
14541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	&enum nl80211_hidden_ssid, represented as a u32
14551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame.
14571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to
14581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the
14591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	driver (or firmware) replies to Probe Request frames.
14601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association
14611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Response frames. This is used with %NL80211_CMD_NEW_BEACON and
14621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into
14631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(Re)Association Response frames when the driver (or firmware) replies to
14641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(Re)Association Request frames.
14651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration
14671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	of the station, see &enum nl80211_sta_wme_attr.
14681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working
14691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	as AP.
14701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of
14721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	roaming to another AP in the same ESS if the signal lever is low.
14731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching
14751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	candidate information, see &enum nl80211_pmksa_candidate_attr.
14761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not
14781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	for management frames transmission. In order to avoid p2p probe/action
14791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	frames are being transmitted at CCK rate in 2GHz band, the user space
14801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	applications use this attribute.
14811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	This attribute is used with %NL80211_CMD_TRIGGER_SCAN and
14821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_CMD_FRAME commands.
14831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup
14851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	request, link setup confirm, link teardown, etc.). Values are
14861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	described in the TDLS (802.11z) specification.
14871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a
14881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	TDLS conversation between two devices.
14891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see
14901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	&enum nl80211_tdls_operation, represented as a u8.
14911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate
14921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	as a TDLS peer sta.
14931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown
14941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	procedures should be performed by sending TDLS packets via
14951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	%NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be
14961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	used for asking the driver to perform a TDLS operation.
14971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
14981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices
14991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	that have AP support to indicate that they have the AP SME integrated
15001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	with support for the features listed in this attribute, see
15011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	&enum nl80211_ap_sme_features.
15021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
15031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells
15041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the driver to not wait for an acknowledgement. Note that due to this,
15051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	it will also not give a status callback nor return a cookie. This is
15061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	mostly useful for probe responses to save airtime.
15071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
15081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from
15091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	&enum nl80211_feature_flags and is advertised in wiphy information.
15101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe
15111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	requests while operating in AP-mode.
15121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	This attribute holds a bitmap of the supported protocols for
15131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	offloading (see &enum nl80211_probe_resp_offload_support_attr).
15141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
15151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire
15161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	probe-response frame. The DA field in the 802.11 header is zero-ed out,
15171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	to be filled by the FW.
1518c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DISABLE_HT:  Force HT capable interfaces to disable
1519c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      this feature.  Currently, only supported in mac80211 drivers.
1520c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the
1521c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      ATTR_HT_CAPABILITY to which attention should be paid.
1522c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      Currently, only mac80211 NICs support this feature.
1523c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      The values that may be configured are:
1524c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *       MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40
1525c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *       AMPDU density and AMPDU factor.
1526c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      All values are treated as suggestions and may be ignored
1527c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      by the driver as required.  The actual values may be seen in
1528c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      the station debugfs ht_caps file.
1529c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
1530c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country
1531c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *    abides to when initiating radiation on DFS channels. A country maps
1532c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *    to one DFS region.
1533c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
1534c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of
1535c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *      up to 16 TIDs.
15361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
153704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be
153804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	used by the drivers which has MLME in firmware and does not have support
153904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	to report per station tx/rx activity to free up the staion entry from
154004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	the list. This needs to be used when the driver advertises the
154104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	capability to timeout the stations.
154204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
154304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int);
154404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	this attribute is (depending on the driver capabilities) added to
154504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	received frames indicated with %NL80211_CMD_FRAME.
154604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
154704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds
154804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *      or 0 to disable background scan.
154904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
155061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from
155161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	userspace. If unset it is assumed the hint comes directly from
155261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	a user. If set code could specify exactly what type of source
155361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	was used to provide the hint. For the different types of
155461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	allowed user regulatory hints see nl80211_user_reg_hint_type.
155561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *
1556d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected
1557d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	the connection request from a station. nl80211_connect_failed_reason
1558d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	enum has different reasons of connection failure.
1559d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
1560d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_SAE_DATA: SAE elements in Authentication frames. This starts
1561d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	with the Authentication transaction sequence number field.
1562d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
1563d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from
1564d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	association request when used with NL80211_CMD_NEW_STATION)
1565d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
1566d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32)
1567d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
1568a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with
1569a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	the START_AP and SET_BSS commands
1570a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the
1571a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	START_AP and SET_BSS commands. This can have the values 0 or 1;
1572a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	if not given in START_AP 0 is assumed, if not given in SET_BSS
1573a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	no change is made.
1574a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *
1575f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode
1576f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	defined in &enum nl80211_mesh_power_mode.
1577f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1578f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy,
1579f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	carried in a u32 attribute
1580f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1581f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for
1582f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	MAC ACL.
1583f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1584f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum
1585f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	number of MAC addresses that a device can support for MAC
1586f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	ACL.
1587f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1588f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace,
1589f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	contains a value of enum nl80211_radar_event (u32).
1590f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1591f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver
1592f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	has and handles. The format is the same as the IE contents. See
1593f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	802.11-2012 8.4.2.29 for more information.
1594f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver
1595f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields.
1596f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1597f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to
1598f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	the driver, e.g., to enable TDLS power save (PU-APSD).
1599f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
1600f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are
1601f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	advertised to the driver, e.g., to enable TDLS off channel operations
1602f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	and PU-APSD.
1603f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
16042f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see
16052f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	&enum nl80211_protocol_features, the attribute is a u32.
16062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
16072f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports
16082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	receiving the data for a single wiphy split across multiple
16092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	messages, given with wiphy dump message
16102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
16112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_MDID: Mobility Domain Identifier
16122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
16132f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_IE_RIC: Resource Information Container Information
16142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	Element
16152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
161651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased
161751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *	reliability, see &enum nl80211_crit_proto_id (u16).
161851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which
161951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *      the connection should have increased reliability (u16).
162051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *
16218bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16).
16228bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	This is similar to @NL80211_ATTR_STA_AID but with a difference of being
16238bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	allowed to be used with the first @NL80211_CMD_SET_STATION command to
16248bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	update a TDLS peer STA entry.
16258bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *
1626e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information.
1627e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1628e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's
1629e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	until the channel switch event.
1630e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission
1631e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	must be blocked on the current channel (before the channel switch
1632e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	operation).
1633e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information
1634e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	for the time while performing a channel switch.
16359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel
16369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
16379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel
16389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	switch counters in the probe response (%NL80211_ATTR_PROBE_RESP).
1639e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1640e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
1641e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	As specified in the &enum nl80211_rxmgmt_flags.
1642e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1643e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels.
1644e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1645e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported
1646e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *      supported operating classes.
1647e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1648e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space
1649e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	controls DFS operation in IBSS mode. If the flag is included in
1650e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	%NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS
1651e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	channels and reports radar events to userspace. Userspace is required
1652e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	to react to radar events, e.g. initiate a channel switch or leave the
1653e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	IBSS network.
1654e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
1655fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports
1656fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	5 MHz channel bandwidth.
1657fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports
1658fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	10 MHz channel bandwidth.
1659fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
1660fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode
1661fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	Notification Element based on association request when used with
1662fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	%NL80211_CMD_NEW_STATION; u8 attribute.
1663fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
1664fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if
1665fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	%NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet)
1666fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command
1667fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this
1668fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	attribute is also used for vendor command feature advertisement
1669fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy
1670fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	info, containing a nested array of possible events
1671fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
1672fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This
1673fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	data is in the format defined for the payload of the QoS Map Set element
1674fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	in IEEE Std 802.11-2012, 8.4.2.97.
1675fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *
167696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
167796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
167896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *
167996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
168096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	associated stations are supported in AP mode (including P2P GO); u32.
168196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	Since drivers may not have a fixed limit on the maximum number (e.g.,
168296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	other concurrent operations may affect this), drivers are allowed to
168396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	advertise values that cannot always be met. In such cases, an attempt
168496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
168596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *
16869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which
16879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	should be updated when the frame is transmitted.
16889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum
16899ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	supported number of csa counters.
16909ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
1691df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32.
1692df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	As specified in the &enum nl80211_tdls_peer_capability.
1693df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *
16946c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface
16957832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	creation then the new interface will be owned by the netlink socket
16966c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	that created it and will be destroyed when the socket is closed.
1697f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	If set during scheduled scan start then the new scan req will be
1698f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	owned by the netlink socket that created it and the scheduled scan will
1699f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	be stopped when the socket is closed.
1700f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	If set during configuration of regulatory indoor operation then the
1701f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	regulatory indoor configuration would be owned by the netlink socket
1702f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	that configured the indoor setting, and the indoor operation would be
1703f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	cleared when the socket is closed.
17047832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *
17059ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is
17069ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	the TDLS link initiator.
17079ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
17089ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection
17099ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	shall support Radio Resource Measurements (11k). This attribute can be
17109ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests.
17119ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	User space applications are expected to use this flag only if the
17129ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	underlying device supports these minimal RRM features:
17139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *		%NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES,
17149ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *		%NL80211_FEATURE_QUIET,
17159ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	If this flag is used, driver must add the Power Capabilities IE to the
17169ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	association request. In addition, it must also set the RRM capability
17179ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	flag in the association request's Capability Info field.
17189ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
17199ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout
17209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	estimation algorithm (dynack). In order to activate dynack
17219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	%NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower
17229ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	drivers to indicate dynack capability. Dynack is automatically disabled
17239ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	setting valid value for coverage class.
17249ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
17259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TSID: a TSID value (u8 attribute)
17269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute)
17279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds
17289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	(per second) (u16 attribute)
17299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
17309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see
17319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	&enum nl80211_smps_mode.
17329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
17336c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_OPER_CLASS: operating class
17346c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
17356c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_MAC_MASK: MAC address mask
17366c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *
1737f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device
1738f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	is self-managing its regulatory information and any regulatory domain
1739f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	obtained from it is coming from the device's wiphy and not the global
1740f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	cfg80211 regdomain.
1741f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
1742f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte
1743f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	array. The feature flags are identified by their bit index (see &enum
1744f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	nl80211_ext_feature_index). The bit index is ordered starting at the
1745f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	least-significant bit of the first byte in the array, ie. bit index 0
1746f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	is located at bit 0 of byte 0. bit index 25 would be located at bit 1
1747f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	of byte 3 (u8 array).
1748f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
1749f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be
1750f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY
1751f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	may return a survey entry without a channel indicating global radio
1752f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	statistics (only some values are valid and make sense.)
1753f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	For devices that don't return such an entry even then, the information
1754f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	should be contained in the result as the sum of the respective counters
1755f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	over all channels.
1756f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
1757f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before a scheduled scan (or a
1758f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	WoWLAN net-detect scan) is started, u32 in seconds.
1759f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
1760f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device
1761f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *      is operating in an indoor environment.
1762f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
17636c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NUM_NL80211_ATTR: total number of nl80211_attrs available
17648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX: highest attribute number currently defined
17658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_AFTER_LAST: internal use
17668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
17678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attrs {
17681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */
17698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_UNSPEC,
17708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY,
17728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_NAME,
17738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_IFINDEX,
17758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_IFNAME,
17768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_IFTYPE,
17778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAC,
17798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_DATA,
17818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_IDX,
17828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_CIPHER,
17838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_SEQ,
17848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_DEFAULT,
17858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BEACON_INTERVAL,
17878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_DTIM_PERIOD,
17888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BEACON_HEAD,
17898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BEACON_TAIL,
17908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_AID,
17928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_FLAGS,
17938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_LISTEN_INTERVAL,
17948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_SUPPORTED_RATES,
17958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_VLAN,
17968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_INFO,
17978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
17988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_BANDS,
17998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MNTR_FLAGS,
18018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MESH_ID,
18038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_PLINK_ACTION,
18048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MPATH_NEXT_HOP,
18058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MPATH_INFO,
18068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS_CTS_PROT,
18088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS_SHORT_PREAMBLE,
18098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS_SHORT_SLOT_TIME,
18108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_HT_CAPABILITY,
18128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SUPPORTED_IFTYPES,
18148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REG_ALPHA2,
18168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REG_RULES,
18178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_MESH_CONFIG,
18198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS_BASIC_RATES,
18218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_TXQ_PARAMS,
18238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_FREQ,
18248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_CHANNEL_TYPE,
18258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_DEFAULT_MGMT,
18278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MGMT_SUBTYPE,
18298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_IE,
18308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAX_NUM_SCAN_SSIDS,
18328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SCAN_FREQUENCIES,
18348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SCAN_SSIDS,
18358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */
18368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS,
18378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REG_INITIATOR,
18398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REG_TYPE,
18408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SUPPORTED_COMMANDS,
18428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FRAME,
18448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SSID,
18458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_AUTH_TYPE,
18468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REASON_CODE,
18478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_TYPE,
18498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAX_SCAN_IE_LEN,
18518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CIPHER_SUITES,
18528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_BEFORE,
18548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_AFTER,
18558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_FIXED,
18578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_RETRY_SHORT,
18608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_RETRY_LONG,
18618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
18628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_RTS_THRESHOLD,
18638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_TIMED_OUT,
18658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_USE_MFP,
18678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STA_FLAGS2,
18698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CONTROL_PORT,
18718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_TESTDATA,
18738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_PRIVACY,
18758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_DISCONNECTED_BY_AP,
18778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_STATUS_CODE,
18788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CIPHER_SUITES_PAIRWISE,
18808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CIPHER_SUITE_GROUP,
18818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WPA_VERSIONS,
18828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_AKM_SUITES,
18838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REQ_IE,
18858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_RESP_IE,
18868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_PREV_BSSID,
18888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY,
18908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEYS,
18918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_PID,
18938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_4ADDR,
18958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SURVEY_INFO,
18978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
18988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_PMKID,
18998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAX_NUM_PMKIDS,
19008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_DURATION,
19028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_COOKIE,
19048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_COVERAGE_CLASS,
19068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_TX_RATES,
19088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FRAME_MATCH,
19108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_ACK,
19128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_PS_STATE,
19148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM,
19168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_LOCAL_STATE_CHANGE,
19188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_AP_ISOLATE,
19208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_TX_POWER_SETTING,
19228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_TX_POWER_LEVEL,
19238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_TX_FRAME_TYPES,
19258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_RX_FRAME_TYPES,
19268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FRAME_TYPE,
19278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
19298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
19308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_SUPPORT_IBSS_RSN,
19328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_ANTENNA_TX,
19348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_WIPHY_ANTENNA_RX,
19358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MCAST_RATE,
19378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_OFFCHANNEL_TX_OK,
19398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_BSS_HT_OPMODE,
19418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_KEY_DEFAULT_TYPES,
19438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION,
19458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
19461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_MESH_SETUP,
19471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX,
19491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX,
19501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SUPPORT_MESH_AUTH,
19521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_STA_PLINK_STATE,
19531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_WOWLAN_TRIGGERS,
19551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED,
19561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SCHED_SCAN_INTERVAL,
19581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_INTERFACE_COMBINATIONS,
19601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SOFTWARE_IFTYPES,
19611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_REKEY_DATA,
19631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS,
19651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN,
19661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SCAN_SUPP_RATES,
19681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_HIDDEN_SSID,
19701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_IE_PROBE_RESP,
19721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_IE_ASSOC_RESP,
19731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_STA_WME,
19751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SUPPORT_AP_UAPSD,
19761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_ROAM_SUPPORT,
19781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_SCHED_SCAN_MATCH,
19801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_MAX_MATCH_SETS,
19811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_PMKSA_CANDIDATE,
19831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TX_NO_CCK_RATE,
19851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TDLS_ACTION,
19871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TDLS_DIALOG_TOKEN,
19881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TDLS_OPERATION,
19891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TDLS_SUPPORT,
19901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_TDLS_EXTERNAL_SETUP,
19911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_DEVICE_AP_SME,
19931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_DONT_WAIT_FOR_ACK,
19951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_FEATURE_FLAGS,
19971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
19981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_PROBE_RESP_OFFLOAD,
19991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
20001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_ATTR_PROBE_RESP,
20011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
2002c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_ATTR_DFS_REGION,
2003c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
2004c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_ATTR_DISABLE_HT,
2005c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_ATTR_HT_CAPABILITY_MASK,
2006c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
2007c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_ATTR_NOACK_MAP,
2008c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
200904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_ATTR_INACTIVITY_TIMEOUT,
201004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
201104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_ATTR_RX_SIGNAL_DBM,
201204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
201304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_ATTR_BG_SCAN_PERIOD,
201404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
201561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_ATTR_WDEV,
201661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
201761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_ATTR_USER_REG_HINT_TYPE,
201861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
2019d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_ATTR_CONN_FAILED_REASON,
2020d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
2021d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_ATTR_SAE_DATA,
2022d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
2023d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_ATTR_VHT_CAPABILITY,
2024d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
2025d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_ATTR_SCAN_FLAGS,
2026d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
2027a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_ATTR_CHANNEL_WIDTH,
2028a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_ATTR_CENTER_FREQ1,
2029a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_ATTR_CENTER_FREQ2,
2030a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt
2031a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_ATTR_P2P_CTWINDOW,
2032a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_ATTR_P2P_OPPPS,
2033a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt
2034f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_LOCAL_MESH_POWER_MODE,
2035f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2036f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_ACL_POLICY,
2037f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2038f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_MAC_ADDRS,
2039f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2040f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_MAC_ACL_MAX,
2041f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2042f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_RADAR_EVENT,
2043f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2044f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_EXT_CAPA,
2045f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_EXT_CAPA_MASK,
2046f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
2047f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_STA_CAPABILITY,
2048f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ATTR_STA_EXT_CAPABILITY,
2049f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
20502f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_PROTOCOL_FEATURES,
20512f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_SPLIT_WIPHY_DUMP,
20522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
20532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_DISABLE_VHT,
20542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_VHT_CAPABILITY_MASK,
20552f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
20562f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_MDID,
20572f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_ATTR_IE_RIC,
20582f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
205951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_ATTR_CRIT_PROT_ID,
206051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_ATTR_MAX_CRIT_PROT_DURATION,
206151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt
20628bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt	NL80211_ATTR_PEER_AID,
20638bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt
2064e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_COALESCE_RULE,
2065e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2066e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_CH_SWITCH_COUNT,
2067e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_CH_SWITCH_BLOCK_TX,
2068e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_CSA_IES,
2069e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_CSA_C_OFF_BEACON,
2070e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_CSA_C_OFF_PRESP,
2071e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2072e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_RXMGMT_FLAGS,
2073e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2074e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_STA_SUPPORTED_CHANNELS,
2075e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2076e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES,
2077e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2078e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_HANDLE_DFS,
2079e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
2080fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_SUPPORT_5_MHZ,
2081fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_SUPPORT_10_MHZ,
2082fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
2083fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_OPMODE_NOTIF,
2084fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
2085fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_VENDOR_ID,
2086fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_VENDOR_SUBCMD,
2087fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_VENDOR_DATA,
2088fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_VENDOR_EVENTS,
2089fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
2090fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_ATTR_QOS_MAP,
2091fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
209296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_ATTR_MAC_HINT,
209396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_ATTR_WIPHY_FREQ_HINT,
209496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt
209596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_ATTR_MAX_AP_ASSOC_STA,
209696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt
2097df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_ATTR_TDLS_PEER_CAPABILITY,
2098df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt
20996c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_ATTR_SOCKET_OWNER,
21007832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt
21019ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_CSA_C_OFFSETS_TX,
21029ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_MAX_CSA_COUNTERS,
21039ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21049ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_TDLS_INITIATOR,
21059ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21069ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_USE_RRM,
21079ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21089ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_WIPHY_DYN_ACK,
21099ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21109ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_TSID,
21119ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_USER_PRIO,
21129ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_ADMITTED_TIME,
21139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21149ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_ATTR_SMPS_MODE,
21159ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
21166c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_ATTR_OPER_CLASS,
21176c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
21186c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_ATTR_MAC_MASK,
21196c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt
2120f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_WIPHY_SELF_MANAGED_REG,
2121f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2122f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_EXT_FEATURES,
2123f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2124f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_SURVEY_RADIO_STATS,
2125f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2126f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_NETNS_FD,
2127f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2128f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_SCHED_SCAN_DELAY,
2129f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2130f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_ATTR_REG_INDOOR,
2131f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
21328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* add attributes here, update the policy in nl80211.c */
21338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
21348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_ATTR_AFTER_LAST,
21356c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
21368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
21378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
21388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
21398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* source-level API compatibility */
21408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION
21411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define	NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG
21426c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt#define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER
21438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
21448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
21458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new attributes by defining them
21468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here
21478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
21488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_CONNECT NL80211_CMD_CONNECT
21498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
21508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
21518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS
21528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ
21538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE
21548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE
21558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_IE NL80211_ATTR_IE
21568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR
21578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE
21588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_FRAME NL80211_ATTR_FRAME
21598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SSID NL80211_ATTR_SSID
21608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE
21618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE
21628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE
21638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP
21648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS
21658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES
21668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEY NL80211_ATTR_KEY
21678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEYS NL80211_ATTR_KEYS
21681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
21698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
21708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_SUPP_RATES			32
217104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MAX_SUPP_HT_RATES		77
2172f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MAX_SUPP_REG_RULES		64
21738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY	0
21748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY	16
21758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY	24
21768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_HT_CAPABILITY_LEN		26
2177d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt#define NL80211_VHT_CAPABILITY_LEN		12
21788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
21798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_CIPHER_SUITES		5
21808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_AKM_SUITES		2
21818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
218204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MIN_REMAIN_ON_CHANNEL_TIME	10
218304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
218404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* default RSSI threshold for scan results if none specified. */
218504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_SCAN_RSSI_THOLD_OFF		-300
218604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
218761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt#define NL80211_CQM_TXE_MAX_INTVL		1800
218861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
21898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
21908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_iftype - (virtual) interface types
21918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
21928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides
21938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_ADHOC: independent BSS member
21948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_STATION: managed BSS member
21958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_AP: access point
21961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces
21971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	are a bit special in that they must always be tied to a pre-existing
21981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	AP type interface.
21998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_WDS: wireless distribution interface
22008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames
22018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MESH_POINT: mesh point
22028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_CLIENT: P2P client
22038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_GO: P2P group owner
2204d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev
2205d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	and therefore can't be created in the normal ways, use the
2206d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	%NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE
2207d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	commands to create and destroy one
22086c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_IF_TYPE_OCB: Outside Context of a BSS
22096c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	This mode corresponds to the MIB variable dot11OCBActivated=true
22108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MAX: highest interface type number currently defined
22118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_IFTYPES: number of defined interface types
22128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These values are used with the %NL80211_ATTR_IFTYPE
22148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to set the type of an interface.
22158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
22178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_iftype {
22188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_UNSPECIFIED,
22198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_ADHOC,
22208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_STATION,
22218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_AP,
22228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_AP_VLAN,
22238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_WDS,
22248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_MONITOR,
22258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_MESH_POINT,
22268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_P2P_CLIENT,
22278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_P2P_GO,
2228d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_IFTYPE_P2P_DEVICE,
22296c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_IFTYPE_OCB,
22308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
22318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
22328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NUM_NL80211_IFTYPES,
22338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
22348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
22358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
22368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
22378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_flags - station flags
22388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Station flags. When a station is added to an AP interface, it is
22408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * assumed to be already associated (and hence authenticated.)
22418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved
22438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X)
22448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
22458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	with short barker preamble
22468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_WME: station is WME/QoS capable
22478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MFP: station uses management frame protection
22481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated
2249c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should
2250c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *	only be used in managed mode (even in the flags mask). Note that the
2251c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *	flag can't be changed, it is only valid while adding a station, and
2252c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *	attempts to change it will silently be ignored (rather than rejected
2253c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *	as errors.)
2254f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers
2255f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a
2256f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	previously added station into associated state
22578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
22588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_AFTER_LAST: internal use
22598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
22608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_flags {
22618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_STA_FLAG_INVALID,
22628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_FLAG_AUTHORIZED,
22638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_FLAG_SHORT_PREAMBLE,
22648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_FLAG_WME,
22658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_FLAG_MFP,
22661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_FLAG_AUTHENTICATED,
22671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_FLAG_TDLS_PEER,
2268f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_FLAG_ASSOCIATED,
22698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
22708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
22718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_STA_FLAG_AFTER_LAST,
22728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1
22738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
22748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
227504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_STA_FLAG_MAX_OLD_API	NL80211_STA_FLAG_TDLS_PEER
227604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
22778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
22788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * struct nl80211_sta_flag_update - station flags mask/set
22798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @mask: mask of station flags to set
22808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @set: which values to set them to
22818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Both mask and set contain bits as per &enum nl80211_sta_flags.
22838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
22848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct nl80211_sta_flag_update {
22858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__u32 mask;
22868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__u32 set;
22878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} __attribute__((packed));
22888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
22898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
22908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_rate_info - bitrate information
22918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
22928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_TXRATE
22938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about the bitrate of a station.
229461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * There are 2 attributes for bitrate, a legacy one that represents
229561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * a 16-bit value, and new one that represents a 32-bit value.
229661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * If the rate value fits into 16 bit, both attributes are reported
229761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * with the same value. If the rate is too high to fit into 16 bits
229861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * (>6.5535Gbps) only 32-bit attribute is included.
229961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * User space tools encouraged to use the 32-bit attribute and fall
230061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * back to the 16-bit one for compatibility with older kernels.
23018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
23028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved
23038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s)
23048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8)
2305a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate
23068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval
230761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s)
23088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined
2309a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8)
2310a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8)
2311a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate
2312f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the
2313f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	same as 160 for purposes of the bitrates
2314a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate
2315f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is
2316f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	a legacy rate and will be reported as the actual bitrate, i.e.
2317f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	half the base (20 MHz) rate
2318f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is
2319f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	a legacy rate and will be reported as the actual bitrate, i.e.
2320f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	a quarter of the base (20 MHz) rate
23218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_AFTER_LAST: internal use
23228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
23238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_rate_info {
23248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_RATE_INFO_INVALID,
23258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RATE_INFO_BITRATE,
23268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RATE_INFO_MCS,
23278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RATE_INFO_40_MHZ_WIDTH,
23288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RATE_INFO_SHORT_GI,
232961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_RATE_INFO_BITRATE32,
2330a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_RATE_INFO_VHT_MCS,
2331a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_RATE_INFO_VHT_NSS,
2332a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_RATE_INFO_80_MHZ_WIDTH,
2333a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_RATE_INFO_80P80_MHZ_WIDTH,
2334a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_RATE_INFO_160_MHZ_WIDTH,
2335f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_RATE_INFO_10_MHZ_WIDTH,
2336f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_RATE_INFO_5_MHZ_WIDTH,
23378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
23388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
23398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_RATE_INFO_AFTER_LAST,
23408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1
23418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
23428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
23438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
23441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_bss_param - BSS information collected by STA
23451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
23461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM
23471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * when getting information about the bitrate of a station.
23481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
23491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved
23501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag)
23511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE:  whether short preamble is enabled
23521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(flag)
23531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME:  whether short slot time is enabled
23541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(flag)
23551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8)
23561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16)
23571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined
23581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use
23591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
23601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_bss_param {
23611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_STA_BSS_PARAM_INVALID,
23621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_CTS_PROT,
23631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_SHORT_PREAMBLE,
23641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME,
23651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_DTIM_PERIOD,
23661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_BEACON_INTERVAL,
23671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
23681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
23691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_STA_BSS_PARAM_AFTER_LAST,
23701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1
23711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
23721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
23731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
23748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_info - station information
23758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
23768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_STA_INFO
23778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a station.
23788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
23798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved
23808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs)
2381f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length)
2382f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u32, from this station)
2383f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length)
2384f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u32, to this station)
2385f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length)
2386f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u64, from this station)
2387f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length)
2388f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u64, to this station)
23898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
23908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
23911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 	containing info as possible, see &enum nl80211_rate_info
2392f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs)
2393f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u32, from this station)
2394f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs)
2395f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u32, to this station)
2396f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station)
2397f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs)
2398f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u32, to this station)
23998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
24001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_LLID: the station's mesh LLID
24011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLID: the station's mesh PLID
24021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station
24031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(see %enum nl80211_plink_state)
24041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested
24051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	attribute, like NL80211_STA_INFO_TX_BITRATE.
24061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute
24071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *     containing info as possible, see &enum nl80211_sta_bss_param
24081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected
24091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update.
2410c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32)
241104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64)
2412f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode
2413f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode
2414f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards
2415f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	non-peer STA
24168bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU
24178bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	Contains a nested array of signal strength attributes (u8, dBm)
24188bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
24198bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
24209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
24219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	802.11 header (u32, kbps)
2422f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons
2423f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(u64)
2424f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64)
2425f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average
2426f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	for beacons only (u8, dBm)
2427f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats)
2428f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	This is a nested attribute where each the inner attribute number is the
2429f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames;
2430f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	each one of those is again nested with &enum nl80211_tid_stats
2431f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	attributes carrying the actual values.
24321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_INFO_AFTER_LAST: internal
24331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_MAX: highest possible station info attribute
24348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
24358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_info {
24368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_STA_INFO_INVALID,
24378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_INACTIVE_TIME,
24388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_RX_BYTES,
24398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_TX_BYTES,
24408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_LLID,
24418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_PLID,
24428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_PLINK_STATE,
24438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_SIGNAL,
24448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_TX_BITRATE,
24458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_RX_PACKETS,
24468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_TX_PACKETS,
24478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_TX_RETRIES,
24488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_TX_FAILED,
24498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_SIGNAL_AVG,
24501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_INFO_RX_BITRATE,
24511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_INFO_BSS_PARAM,
24521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_INFO_CONNECTED_TIME,
24531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_INFO_STA_FLAGS,
2454c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_STA_INFO_BEACON_LOSS,
245504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_STA_INFO_T_OFFSET,
2456f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_INFO_LOCAL_PM,
2457f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_INFO_PEER_PM,
2458f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_INFO_NONPEER_PM,
2459f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_INFO_RX_BYTES64,
2460f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_STA_INFO_TX_BYTES64,
24618bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt	NL80211_STA_INFO_CHAIN_SIGNAL,
24628bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt	NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
24639ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_STA_INFO_EXPECTED_THROUGHPUT,
2464f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_STA_INFO_RX_DROP_MISC,
2465f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_STA_INFO_BEACON_RX,
2466f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_STA_INFO_BEACON_SIGNAL_AVG,
2467f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_STA_INFO_TID_STATS,
24688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
24698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
24708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_STA_INFO_AFTER_LAST,
24718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1
24728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
24738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
24748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
2475f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * enum nl80211_tid_stats - per TID statistics attributes
2476f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved
2477f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64)
2478f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or
2479f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	attempted to transmit; u64)
2480f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for
2481f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	transmitted MSDUs (not counting the first attempt; u64)
2482f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted
2483f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	MSDUs (u64)
2484f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NUM_NL80211_TID_STATS: number of attributes here
2485f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_MAX: highest numbered attribute here
2486f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */
2487f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidtenum nl80211_tid_stats {
2488f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	__NL80211_TID_STATS_INVALID,
2489f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_TID_STATS_RX_MSDU,
2490f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_TID_STATS_TX_MSDU,
2491f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_TID_STATS_TX_MSDU_RETRIES,
2492f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_TID_STATS_TX_MSDU_FAILED,
2493f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2494f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	/* keep last */
2495f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NUM_NL80211_TID_STATS,
2496f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1
2497f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt};
2498f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
2499f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/**
25008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_flags - nl80211 mesh path flags
25018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
25028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active
25038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running
25048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN
25058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set
25068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded
25078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
25088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_flags {
25098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_FLAG_ACTIVE =	1<<0,
25108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_FLAG_RESOLVING =	1<<1,
25118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_FLAG_SN_VALID =	1<<2,
25128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_FLAG_FIXED =	1<<3,
25138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_FLAG_RESOLVED =	1<<4,
25148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
25158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
25178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_info - mesh path information
25188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
25198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting
25208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about a mesh path.
25218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
25228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved
25238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination
25248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_SN: destination sequence number
25258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path
25268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now
25278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in
25288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	&enum nl80211_mpath_flags;
25298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
25308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries
25318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number
25328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	currently defind
25338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_AFTER_LAST: internal use
25348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
25358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_info {
25368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MPATH_INFO_INVALID,
25378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_FRAME_QLEN,
25388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_SN,
25398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_METRIC,
25408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_EXPTIME,
25418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_FLAGS,
25428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_DISCOVERY_TIMEOUT,
25438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_DISCOVERY_RETRIES,
25448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
25468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MPATH_INFO_AFTER_LAST,
25478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1
25488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
25498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
25518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band_attr - band attributes
25528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved
25538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band,
25548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	an array of nested frequency attributes
25558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_RATES: supported bitrates in this band,
25568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	an array of nested bitrate attributes
25578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as
25588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	defined in 802.11n
25598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE
25608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n
25618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n
256204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as
256304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	defined in 802.11ac
256404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE
25658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined
25668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_AFTER_LAST: internal use
25678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
25688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band_attr {
25698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BAND_ATTR_INVALID,
25708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_FREQS,
25718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_RATES,
25728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_HT_MCS_SET,
25748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_HT_CAPA,
25758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_HT_AMPDU_FACTOR,
25768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_HT_AMPDU_DENSITY,
25778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
257804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_BAND_ATTR_VHT_MCS_SET,
257904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_BAND_ATTR_VHT_CAPA,
258004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
25818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
25828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BAND_ATTR_AFTER_LAST,
25838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
25848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
25858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA
25878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
25888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
25898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_frequency_attr - frequency attributes
25908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved
25918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
25928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
25938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	regulatory domain.
2594fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation
2595fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 	are permitted on this channel, this includes sending probe
2596fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 	requests, or modes of operation that require beaconing.
25978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
25988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	on this channel in current regulatory domain.
25998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
26008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	(100 * dBm).
2601f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS
2602f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	(enum nl80211_dfs_state)
2603f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long
2604f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	this channel is in this DFS state.
2605f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this
2606f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	channel as the control channel
2607f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this
2608f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	channel as the control channel
2609f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel
2610f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	as the primary or any of the secondary channels isn't possible,
2611f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	this includes 80+80 channels
2612f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel
2613f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	using this channel as the primary or any of the secondary channels
2614f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	isn't possible
2615df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
26167832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this
26177832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	channel. A channel that has the INDOOR_ONLY attribute can only be
26187832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	used when there is a clear assessment that the device is operating in
26197832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	an indoor surroundings, i.e., it is connected to AC power (and not
26207832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	through portable DC inverters) or is under the control of a master
26217832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	that is acting as an AP and is connected to AC power.
26227832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_GO_CONCURRENT: GO operation is allowed on this
26237832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	channel if it's connected concurrently to a BSS on the same channel on
26247832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
26257832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO on a
26267832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	channel that has the GO_CONCURRENT attribute set can be done when there
26277832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	is a clear assessment that the device is operating under the guidance of
26287832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	an authorized master, i.e., setting up a GO while the device is also
26297832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	connected to an AP with DFS and radar detection on the UNII band (it is
26307832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	up to user-space, i.e., wpa_supplicant to perform the required
26317832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	verifications)
26327832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
26337832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	on this channel in current regulatory domain.
26347832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
26357832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	on this channel in current regulatory domain.
26368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
26378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	currently defined
26388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
26397832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *
26407832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
26417832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * for more information on the FCC description of the relaxations allowed
26427832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
26437832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * NL80211_FREQUENCY_ATTR_GO_CONCURRENT.
26448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
26458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_frequency_attr {
26468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_FREQUENCY_ATTR_INVALID,
26478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_FREQUENCY_ATTR_FREQ,
26488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_FREQUENCY_ATTR_DISABLED,
2649fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_IR,
2650fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	__NL80211_FREQUENCY_ATTR_NO_IBSS,
26518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_FREQUENCY_ATTR_RADAR,
26528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
2653f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_DFS_STATE,
2654f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_DFS_TIME,
2655f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_HT40_MINUS,
2656f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_HT40_PLUS,
2657f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_80MHZ,
2658f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_160MHZ,
2659df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
26607832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
26617832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_FREQUENCY_ATTR_GO_CONCURRENT,
26627832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_20MHZ,
26637832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_FREQUENCY_ATTR_NO_10MHZ,
26648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
26658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
26668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_FREQUENCY_ATTR_AFTER_LAST,
26678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
26688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
26698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
26708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
2671fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN	NL80211_FREQUENCY_ATTR_NO_IR
2672fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IBSS		NL80211_FREQUENCY_ATTR_NO_IR
2673fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IR		NL80211_FREQUENCY_ATTR_NO_IR
26748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
26758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
26768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bitrate_attr - bitrate attributes
26778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved
26788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
26798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
26808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	in 2.4 GHz band.
26818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number
26828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	currently defined
26838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use
26848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
26858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bitrate_attr {
26868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BITRATE_ATTR_INVALID,
26878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BITRATE_ATTR_RATE,
26888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
26898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
26908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
26918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BITRATE_ATTR_AFTER_LAST,
26928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
26938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
26948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
26958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
26968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_initiator - Indicates the initiator of a reg domain request
26978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world
26988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	regulatory domain.
26998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the
27008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	regulatory domain.
27018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the
27028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	wireless core it thinks its knows the regulatory domain we should be in.
27038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an
27048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	802.11 country information element with regulatory information it
27058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	thinks we should consider. cfg80211 only processes the country
27068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	code from the IE, and relies on the regulatory domain information
27071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	structure passed by userspace (CRDA) from our wireless-regdb.
27088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	If a channel is enabled but the country code indicates it should
27098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	be disabled we disable the channel and re-enable it upon disassociation.
27108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
27118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_initiator {
27128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_SET_BY_CORE,
27138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_SET_BY_USER,
27148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_SET_BY_DRIVER,
27158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_SET_BY_COUNTRY_IE,
27168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
27178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
27198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_type - specifies the type of regulatory domain
27208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains
27218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to a specific country. When this is set you can count on the
27228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	ISO / IEC 3166 alpha2 country code being valid.
27238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory
27248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	domain.
27258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom
27268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	driver specific world regulatory domain. These do not apply system-wide
27278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	and are only applicable to the individual devices which have requested
27288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	them to be applied.
27298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product
27308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	of an intersection between two regulatory domains -- the previously
27318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	set regulatory domain on the system and the last accepted regulatory
27328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	domain request to be processed.
27338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
27348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_type {
27358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_TYPE_COUNTRY,
27368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_TYPE_WORLD,
27378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_TYPE_CUSTOM_WORLD,
27388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REGDOM_TYPE_INTERSECTION,
27398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
27408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
27428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_attr - regulatory rule attributes
27438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved
27448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
27458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	considerations for a given frequency range. These are the
27468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	&enum nl80211_reg_rule_flags.
27478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory
27488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	rule in KHz. This is not a center of frequency but an actual regulatory
27498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	band edge.
27508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule
27518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	in KHz. This is not a center a frequency but an actual regulatory
27528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	band edge.
27538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
2754df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	frequency range, in KHz.
27558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
27568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	for a given frequency range. The value is in mBi (100 * dBi).
27578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	If you don't have one then don't send this.
27588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
27598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 	a given frequency range. The value is in mBm (100 * dBm).
2760df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
2761df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	If not present or 0 default CAC time will be used.
27628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
27638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	currently defined
27648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
27658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
27668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_attr {
27678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_REG_RULE_ATTR_INVALID,
27688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_REG_RULE_FLAGS,
27698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_RANGE_START,
27718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_RANGE_END,
27728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_FREQ_RANGE_MAX_BW,
27738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
27758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_POWER_RULE_MAX_EIRP,
27768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2777df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_ATTR_DFS_CAC_TIME,
2778df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt
27798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
27808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_REG_RULE_ATTR_AFTER_LAST,
27818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
27828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
27838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
27848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
27851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sched_scan_match_attr - scheduled scan match attributes
27861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
27871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
278896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	only report BSS with matching SSID.
278904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
279096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	BSS in scan results. Filtering is turned off if not specified. Note that
279196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	if this attribute is in a match set of its own, then it is treated as
279296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	the default value for all matchsets with an SSID, rather than being a
279396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	matchset of its own without an RSSI filter. This is due to problems with
279496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	how this API was implemented in the past. Also, due to the same problem,
279596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	the only way to create a matchset with only an RSSI filter (with this
279696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt *	attribute) is if there's only a single matchset with the RSSI attribute.
27971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
27981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	attribute number currently defined
27991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
28001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
28011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sched_scan_match_attr {
28021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID,
28031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
280404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_SCHED_SCAN_MATCH_ATTR_SSID,
280504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_SCHED_SCAN_MATCH_ATTR_RSSI,
28061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
28071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
28081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST,
28091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_SCHED_SCAN_MATCH_ATTR_MAX =
28101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt		__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1
28111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
28121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
281304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* only for backward compatibility */
281404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID
281504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
28161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
28178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_flags - regulatory rule flags
28188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
28198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed
28208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_CCK: CCK modulation not allowed
28218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_INDOOR: indoor operation not allowed
28228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed
28238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_DFS: DFS support is required to be used
28248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
28258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
2826fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed,
2827fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 	this includes probe requests or modes of operation that require
2828fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 	beaconing.
2829df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
2830df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	base on contiguous rules and wider channels will be allowed to cross
2831df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *	multiple contiguous/overlapping frequency ranges.
28326c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_GO_CONCURRENT: See &NL80211_FREQUENCY_ATTR_GO_CONCURRENT
28336c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation
28346c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation
28356c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed
28366c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed
28378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
28388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_flags {
28398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_NO_OFDM		= 1<<0,
28408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_NO_CCK		= 1<<1,
28418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_NO_INDOOR		= 1<<2,
28428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_NO_OUTDOOR		= 1<<3,
28438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_DFS			= 1<<4,
28448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_PTP_ONLY		= 1<<5,
28458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_RRF_PTMP_ONLY		= 1<<6,
2846fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_RRF_NO_IR		= 1<<7,
2847fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	__NL80211_RRF_NO_IBSS		= 1<<8,
2848df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_RRF_AUTO_BW		= 1<<11,
28496c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_RRF_GO_CONCURRENT	= 1<<12,
28506c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_RRF_NO_HT40MINUS	= 1<<13,
28516c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_RRF_NO_HT40PLUS		= 1<<14,
28526c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_RRF_NO_80MHZ		= 1<<15,
28536c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_RRF_NO_160MHZ		= 1<<16,
28548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
28558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2856fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_PASSIVE_SCAN	NL80211_RRF_NO_IR
2857fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IBSS		NL80211_RRF_NO_IR
2858fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR		NL80211_RRF_NO_IR
28596c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt#define NL80211_RRF_NO_HT40		(NL80211_RRF_NO_HT40MINUS |\
28606c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt					 NL80211_RRF_NO_HT40PLUS)
2861fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
2862fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/* For backport compatibility with older userspace */
2863fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR_ALL		(NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
2864fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
28658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
2866c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * enum nl80211_dfs_regions - regulatory DFS regions
2867c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
2868c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_DFS_UNSET: Country has no DFS master region specified
286904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_FCC: Country follows DFS master rules from FCC
287004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI
287104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec
2872c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt */
2873c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtenum nl80211_dfs_regions {
2874c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_DFS_UNSET	= 0,
2875c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_DFS_FCC		= 1,
2876c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_DFS_ETSI	= 2,
2877c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_DFS_JP		= 3,
2878c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt};
2879c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt
2880c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt/**
288161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * enum nl80211_user_reg_hint_type - type of user regulatory hint
288261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *
288361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always
288461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	assumed if the attribute is not set.
288561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular
288661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	base station. Device drivers that have been tested to work
288761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	properly to support this type of hint can enable these hints
288861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature
288961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	capability on the struct wiphy. The wireless core will
289061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	ignore all cell base station hints until at least one device
289161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	present has been registered with the wireless core that
289261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a
289361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	supported feature.
28947832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the
28957832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	platform is operating in an indoor environment.
289661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt */
289761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtenum nl80211_user_reg_hint_type {
289861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_USER_REG_HINT_USER	= 0,
289961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_USER_REG_HINT_CELL_BASE = 1,
29007832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_USER_REG_HINT_INDOOR    = 2,
290161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt};
290261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt
290361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt/**
29048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_survey_info - survey information
29058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_SURVEY_INFO
29078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a survey.
29088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved
29108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel
29118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm)
29128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used
2913f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio
2914f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	was turned on (on channel or globally)
2915f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary
29168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	channel was sensed busy (either due to activity or energy detect)
2917f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension
29188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	channel was sensed busy
2919f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent
2920f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	receiving data (on channel or globally)
2921f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent
2922f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	transmitting data (on channel or globally)
2923f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan
2924f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	(on this channel or globally)
29258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
29268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	currently defined
29278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
29288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
29298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_survey_info {
29308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_SURVEY_INFO_INVALID,
29318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_SURVEY_INFO_FREQUENCY,
29328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_SURVEY_INFO_NOISE,
29338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_SURVEY_INFO_IN_USE,
2934f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME,
2935f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME_BUSY,
2936f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME_EXT_BUSY,
2937f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME_RX,
2938f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME_TX,
2939f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_SURVEY_INFO_TIME_SCAN,
29408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
29418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
29428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_SURVEY_INFO_AFTER_LAST,
29438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1
29448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
29458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
2946f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/* keep old names for compatibility */
2947f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME		NL80211_SURVEY_INFO_TIME
2948f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY		NL80211_SURVEY_INFO_TIME_BUSY
2949f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY	NL80211_SURVEY_INFO_TIME_EXT_BUSY
2950f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_RX		NL80211_SURVEY_INFO_TIME_RX
2951f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_TX		NL80211_SURVEY_INFO_TIME_TX
2952f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
29538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
29548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mntr_flags - monitor configuration flags
29558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Monitor configuration flags.
29578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_INVALID: reserved
29598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
29618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
29628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_CONTROL: pass control frames
29638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
29648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
29658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	overrides all other flags.
2966e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
2967e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	and ACK incoming unicast packets.
29688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
29698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
29708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
29718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
29728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mntr_flags {
29738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MNTR_FLAG_INVALID,
29748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_FCSFAIL,
29758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_PLCPFAIL,
29768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_CONTROL,
29778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_OTHER_BSS,
29788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_COOK_FRAMES,
2979e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_MNTR_FLAG_ACTIVE,
29808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
29818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
29828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MNTR_FLAG_AFTER_LAST,
29838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
29848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
29858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
29868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
2987f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_mesh_power_mode - mesh power save modes
2988f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
2989f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is
2990f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	not known or has not been set yet.
2991f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is
2992f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	in Awake state all the time.
2993f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will
2994f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	alternate between Active and Doze states, but will wake up for
2995f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	neighbor's beacons.
2996f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will
2997f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	alternate between Active and Doze states, but may not wake up
2998f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	for neighbor's beacons.
2999f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3000f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_MESH_POWER_AFTER_LAST - internal use
3001f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_MAX - highest possible power save level
3002f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3003f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3004f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_mesh_power_mode {
3005f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESH_POWER_UNKNOWN,
3006f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESH_POWER_ACTIVE,
3007f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESH_POWER_LIGHT_SLEEP,
3008f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESH_POWER_DEEP_SLEEP,
3009f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3010f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__NL80211_MESH_POWER_AFTER_LAST,
3011f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1
3012f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
3013f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3014f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
30158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_meshconf_params - mesh configuration parameters
30168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh configuration parameters. These can be changed while the mesh is
30181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * active.
30198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_INVALID: internal use
30218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in
302304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	millisecond units, used by the Peer Link Open message
30248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in
302604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	millisecond units, used by the peer link management to close a peer link
30278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in
302904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	millisecond units
30308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed
303204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	on this mesh interface
30338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link
303504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	open retries that can be sent to establish a new peer link instance in a
303604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	mesh
30378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh
303904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	point.
30408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30412f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open
30422f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	peer links when we detect compatible mesh peers. Disabled if
30432f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	@NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are
30442f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	set.
30458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames
304704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	containing a PREQ that an MP can send to a particular destination (path
304804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	target)
30498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths
305104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	(in milliseconds)
30528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait
305404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	until giving up on a path discovery (in milliseconds)
30558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh
305704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	points receiving a PREQ shall consider the forwarding information from
305804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	the root to be valid. (TU = time unit)
30598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in
306104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	TUs) during which an MP can send only one action frame containing a PREQ
306204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	reference element
30638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs)
306504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	that it takes for an HWMP information element to propagate across the
306604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	mesh
30678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
30681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not
30691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
30701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a
307104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	source mesh point for path selection elements.
30721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
30731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_RANN_INTERVAL:  The interval of time (in TUs) between
307404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	root announcements are transmitted.
30751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
30761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
307704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	access to a broader network beyond the MBSS.  This is done via Root
307804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	Announcement frames.
30798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
3080c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in
308104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	TUs) during which a mesh STA can send only one Action frame containing a
308204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	PERR element.
3083c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
3084c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding
308504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	or forwarding entity (default is TRUE - forwarding entity)
308604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
308704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the
308804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	threshold for average signal strength of candidate station to establish
308904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	a peer link.
309004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
309104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors
309204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	to synchronize to for 11s default synchronization method
309304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	(see 11C.12.2.2)
309404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
309504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode.
3096c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt *
30978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
30988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
309904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for
310004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	which mesh STAs receiving a proactive PREQ shall consider the forwarding
310104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	information to the root mesh STA to be valid.
310204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
310304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between
310404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	proactive PREQs are transmitted.
310504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
310604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time
310704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	(in TUs) during which a mesh STA can send only one Action frame
310804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	containing a PREQ element for root path confirmation.
310904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
3110f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links.
3111f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	type &enum nl80211_mesh_power_mode (u32)
3112f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3113f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs)
3114f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3115e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've
3116e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	established peering with for longer than this time (in seconds), then
3117f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	remove it from the STA's list of peers. You may set this to 0 to disable
3118f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	the removal of the STA. Default is 30 minutes.
3119e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
31208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
31218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
31228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_meshconf_params {
31238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MESHCONF_INVALID,
31248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_RETRY_TIMEOUT,
31258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_CONFIRM_TIMEOUT,
31268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HOLDING_TIMEOUT,
31278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_MAX_PEER_LINKS,
31288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_MAX_RETRIES,
31298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_TTL,
31308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_AUTO_OPEN_PLINKS,
31318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
31328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_PATH_REFRESH_TIME,
31338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
31348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
31358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
31368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
31378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_HWMP_ROOTMODE,
31388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_ELEMENT_TTL,
31391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESHCONF_HWMP_RANN_INTERVAL,
31401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
3141c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
3142c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt	NL80211_MESHCONF_FORWARDING,
314304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_RSSI_THRESHOLD,
314404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
314504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_HT_OPMODE,
314604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
314704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
314804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
3149f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESHCONF_POWER_MODE,
3150f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_MESHCONF_AWAKE_WINDOW,
3151e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_MESHCONF_PLINK_TIMEOUT,
31528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
31538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
31548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_MESHCONF_ATTR_AFTER_LAST,
31558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1
31568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
31578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
31588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
31591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_mesh_setup_params - mesh setup parameters
31601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh setup parameters.  These are used to start/join a mesh and cannot be
31621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * changed while the mesh is active.
31631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_INVALID: Internal use
31651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a
316704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	vendor specific path selection algorithm or disable it to use the
316804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	default HWMP.
31691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a
317104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	vendor specific path metric or disable it to use the default Airtime
317204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	metric.
31731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a
317504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	robust security network ie, or a vendor specific information element
317604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	that vendors will use to identify the path selection methods and
317704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	metrics in use.
31781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication
318004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	daemon will be authenticating mesh candidates.
31811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication
318304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	daemon will be securing peer link frames.  AMPE is a secured version of
318404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	Mesh Peering Management (MPM) and is implemented with the assistance of
318504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	a userspace daemon.  When this flag is set, the kernel will send peer
318604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	management frames to a userspace daemon that will implement AMPE
318704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	functionality (security capabilities selection, key confirmation, and
318804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	key management).  When the flag is unset (default), the kernel can
318904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	autonomously complete (unsecured) mesh peering without the need of a
319004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	userspace daemon.
319104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
319204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a
319304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	vendor specific synchronization method or disable it to use the default
319404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	neighbor offset synchronization
31951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
31962f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will
31972f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	implement an MPM which handles peer allocation and state.
31982f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
31998bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication
32008bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE).
32018bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *	Default is no authentication method required.
32028bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt *
32031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number
320404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *
32051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use
32061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
32071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_mesh_setup_params {
32081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_MESH_SETUP_INVALID,
32091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,
32101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,
32111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_IE,
32121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_USERSPACE_AUTH,
32131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_USERSPACE_AMPE,
321404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,
32152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_MESH_SETUP_USERSPACE_MPM,
32168bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt	NL80211_MESH_SETUP_AUTH_PROTOCOL,
32171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
32181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
32191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_MESH_SETUP_ATTR_AFTER_LAST,
32201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1
32211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
32221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
32231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
32248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_txq_attr - TX queue parameter attributes
32258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved
322604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*)
32278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning
32288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	disabled
32298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form
32308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	2^n-1 in the range 1..32767]
32318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form
32328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	2^n-1 in the range 1..32767]
32338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255]
32348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
32358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number
32368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
32378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_txq_attr {
32388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_TXQ_ATTR_INVALID,
323904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_TXQ_ATTR_AC,
32408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXQ_ATTR_TXOP,
32418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXQ_ATTR_CWMIN,
32428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXQ_ATTR_CWMAX,
32438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXQ_ATTR_AIFS,
32448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
32458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
32468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_TXQ_ATTR_AFTER_LAST,
32478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1
32488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
32498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
325004949598a23f501be6eec21697465fd46a28840aDmitry Shmidtenum nl80211_ac {
325104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_AC_VO,
325204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_AC_VI,
325304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_AC_BE,
325404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_AC_BK,
325504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_NUM_ACS
32568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
32578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
325804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* backward compat */
325904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_ATTR_QUEUE	NL80211_TXQ_ATTR_AC
326004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VO	NL80211_AC_VO
326104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VI	NL80211_AC_VI
326204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BE	NL80211_AC_BE
326304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BK	NL80211_AC_BK
326404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt
3265a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/**
3266a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_channel_type - channel type
3267a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel
3268a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT20: 20 MHz HT channel
3269a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel
3270a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	below the control channel
3271a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel
3272a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	above the control channel
3273a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */
32748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_channel_type {
32758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CHAN_NO_HT,
32768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CHAN_HT20,
32778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CHAN_HT40MINUS,
32788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CHAN_HT40PLUS
32798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
32808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
32818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
3282a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_chan_width - channel width definitions
3283a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *
3284a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH
3285a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute.
3286a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *
3287a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel
3288a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel
3289a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
3290a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	attribute must be provided as well
3291a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
3292a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	attribute must be provided as well
3293a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
3294a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well
3295a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
3296a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	attribute must be provided as well
3297e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel
3298e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel
3299a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */
3300a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidtenum nl80211_chan_width {
3301a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_20_NOHT,
3302a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_20,
3303a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_40,
3304a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_80,
3305a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_80P80,
3306a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_CHAN_WIDTH_160,
3307e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_CHAN_WIDTH_5,
3308e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_CHAN_WIDTH_10,
3309e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt};
3310e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
3311e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
3312e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_bss_scan_width - control channel width for a BSS
3313e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
3314e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute.
3315e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
3316e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible
3317e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide
3318e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide
3319e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
3320e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_bss_scan_width {
3321e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_BSS_CHAN_WIDTH_20,
3322e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_BSS_CHAN_WIDTH_10,
3323e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_BSS_CHAN_WIDTH_5,
3324a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt};
3325a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt
3326a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/**
33278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss - netlink attributes for a BSS
33288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
33298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_INVALID: invalid
33308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets)
33318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_FREQUENCY: frequency in MHz (u32)
33328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64)
33339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	(if @NL80211_BSS_PRESP_DATA is present then this is known to be
33349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	from a probe response, otherwise it may be from the same beacon
33359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	that the NL80211_BSS_BEACON_TSF will be from)
33368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16)
33378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16)
33388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the
33398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	raw information elements from the probe response/beacon (bin);
33409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	if the %NL80211_BSS_BEACON_IES attribute is present and the data is
33419ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	different then the IEs here are from a Probe Response frame; otherwise
33429ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	they are from a Beacon frame.
33438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	However, if the driver does not indicate the source of the IEs, these
33448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	IEs may be from either frame subtype.
33459ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the
33469ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	data here is known to be from a probe response, without any heuristics.
33478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon
33488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	in mBm (100 * dBm) (s32)
33498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon
33508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	in unspecified units, scaled to 0..100 (u8)
33518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS: status, if this BSS is "used"
33528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms
33538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
33548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	elements from a Beacon frame (bin); not present if no Beacon frame has
33558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	yet been received
3356e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
3357e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	(u32, enum nl80211_bss_scan_width)
33589ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64)
33599ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	(not present if no beacon frame has been received yet)
33609ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and
33619ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	@NL80211_BSS_TSF is known to be from a probe response (flag attribute)
33628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_AFTER_LAST: internal
33638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_MAX: highest BSS attribute
33648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
33658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss {
33668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BSS_INVALID,
33678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_BSSID,
33688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_FREQUENCY,
33698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_TSF,
33708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_BEACON_INTERVAL,
33718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_CAPABILITY,
33728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_INFORMATION_ELEMENTS,
33738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_SIGNAL_MBM,
33748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_SIGNAL_UNSPEC,
33758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_STATUS,
33768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_SEEN_MS_AGO,
33778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_BEACON_IES,
3378e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_BSS_CHAN_WIDTH,
33799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_BSS_BEACON_TSF,
33809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_BSS_PRESP_DATA,
33818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
33828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
33838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_BSS_AFTER_LAST,
33848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1
33858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
33868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
33878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
33888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss_status - BSS "status"
33898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS.
3390f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	Note that this is no longer used since cfg80211 no longer
3391f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	keeps track of whether or not authentication was done with
3392f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	a given BSS.
33938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS.
33948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS.
33958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
33968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The BSS status is a BSS attribute in scan dumps, which
33978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * indicates the status the interface has wrt. this BSS.
33988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
33998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss_status {
34008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_STATUS_AUTHENTICATED,
34018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_STATUS_ASSOCIATED,
34028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BSS_STATUS_IBSS_JOINED,
34038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
34068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_auth_type - AuthenticationType
34078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
34088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication
34098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only)
34108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r)
34118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP)
3412d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals
34138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_AUTHTYPE_NUM: internal
34148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm
34158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by
34168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	trying multiple times); this is invalid in netlink -- leave out
34178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the attribute for this on CONNECT commands.
34188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
34198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_auth_type {
34208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_OPEN_SYSTEM,
34218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_SHARED_KEY,
34228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_FT,
34238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_NETWORK_EAP,
3424d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_AUTHTYPE_SAE,
34258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
34278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_AUTHTYPE_NUM,
34288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1,
34298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_AUTHTYPE_AUTOMATIC
34308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
34338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_type - Key Type
34348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key
34358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key
34368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS)
34378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEYTYPES: number of defined key types
34388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
34398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_type {
34408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEYTYPE_GROUP,
34418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEYTYPE_PAIRWISE,
34428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEYTYPE_PEERKEY,
34438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NUM_NL80211_KEYTYPES
34458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
34488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mfp - Management frame protection state
34498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_NO: Management frame protection not used
34508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_REQUIRED: Management frame protection required
34518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
34528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mfp {
34538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MFP_NO,
34548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_MFP_REQUIRED,
34558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_wpa_versions {
34588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_WPA_VERSION_1 = 1 << 0,
34598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_WPA_VERSION_2 = 1 << 1,
34608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
34638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_default_types - key default types
34648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid
34658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default
34668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	unicast key
34678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default
34688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	multicast key
34698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types
34708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
34718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_default_types {
34728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_KEY_DEFAULT_TYPE_INVALID,
34738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DEFAULT_TYPE_UNICAST,
34748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DEFAULT_TYPE_MULTICAST,
34758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NUM_NL80211_KEY_DEFAULT_TYPES
34778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
34788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
34798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
34808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_attributes - key attributes
34818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_INVALID: invalid
34828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of
34838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	16 bytes encryption key followed by 8 bytes each for TX and RX MIC
34848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	keys
34858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_IDX: key ID (u8, 0-3)
34868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
34878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	section 7.3.2.25.1, e.g. 0x000FAC04)
34888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
34898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	CCMP keys, each six bytes in little endian
34908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT: flag indicating default key
34918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key
34928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not
34938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	specified the default depends on whether a MAC address was
34948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	given with the command using the key or not (u32)
34958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags
34968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	attributes, specifying what a key should be set as default as.
34978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	See &enum nl80211_key_default_types.
34988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_AFTER_LAST: internal
34998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_MAX: highest key attribute
35008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
35018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_attributes {
35028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_KEY_INVALID,
35038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DATA,
35048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_IDX,
35058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_CIPHER,
35068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_SEQ,
35078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DEFAULT,
35088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DEFAULT_MGMT,
35098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_TYPE,
35108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_DEFAULT_TYPES,
35118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
35128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
35138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_KEY_AFTER_LAST,
35148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1
35158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
35168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
35178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
35188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_rate_attributes - TX rate set attributes
35198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_INVALID: invalid
35208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection
35218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with
35228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	1 = 500 kbps) but without the IE length restriction (at most
35238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	%NL80211_MAX_SUPP_RATES in a single array).
3524fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
352504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	in an array of MCS numbers.
3526fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
3527fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	see &struct nl80211_txrate_vht
352896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi
35298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_AFTER_LAST: internal
35308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_MAX: highest TX rate attribute
35318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
35328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_rate_attributes {
35338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_TXRATE_INVALID,
35348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXRATE_LEGACY,
3535fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_TXRATE_HT,
3536fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	NL80211_TXRATE_VHT,
353796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_TXRATE_GI,
35388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
35398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
35408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_TXRATE_AFTER_LAST,
35418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
35428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
35438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
3544fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_TXRATE_MCS NL80211_TXRATE_HT
3545fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VHT_NSS_MAX		8
3546fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
3547fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/**
3548fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap
3549fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.)
3550fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */
3551fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_txrate_vht {
3552fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	__u16 mcs[NL80211_VHT_NSS_MAX];
3553fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt};
3554fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
355596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidtenum nl80211_txrate_gi {
355696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_TXRATE_DEFAULT_GI,
355796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_TXRATE_FORCE_SGI,
355896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt	NL80211_TXRATE_FORCE_LGI,
355996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt};
356096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt
35618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
35628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band - Frequency band
35638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
35648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
356504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz)
35668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
35678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band {
35688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_2GHZ,
35698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_BAND_5GHZ,
357004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_BAND_60GHZ,
35718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
35728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
357304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/**
357404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * enum nl80211_ps_state - powersave state
357504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_DISABLED: powersave is disabled
357604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_ENABLED: powersave is enabled
357704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt */
35788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_ps_state {
35798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_PS_DISABLED,
35808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_PS_ENABLED,
35818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
35828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
35838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
35848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attr_cqm - connection quality monitor attributes
35858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_INVALID: invalid
35868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies
35878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the threshold for the RSSI level at which an event will be sent. Zero
35888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	to disable.
35898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies
35908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	the minimum amount the RSSI level must change after an event before a
35918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	new event may be issued (to reduce effects of RSSI oscillation).
35928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event
35938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many
35948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *	consecutive packets were not acknowledged by the peer
359561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures
359661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	during the given %NL80211_ATTR_CQM_TXE_INTVL before an
359761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	%NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and
359861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	%NL80211_ATTR_CQM_TXE_PKTS is generated.
359961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given
360061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	%NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is
360161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	checked.
360261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic
360361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	interval in which %NL80211_ATTR_CQM_TXE_PKTS and
360461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	%NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an
360561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	%NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting.
36066c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon
36076c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	loss event
36088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_AFTER_LAST: internal
36098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_MAX: highest key attribute
36108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
36118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attr_cqm {
36128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_ATTR_CQM_INVALID,
36138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM_RSSI_THOLD,
36148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM_RSSI_HYST,
36158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT,
36168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM_PKT_LOSS_EVENT,
361761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_ATTR_CQM_TXE_RATE,
361861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_ATTR_CQM_TXE_PKTS,
361961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt	NL80211_ATTR_CQM_TXE_INTVL,
36206c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_ATTR_CQM_BEACON_LOSS_EVENT,
36218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
36228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	/* keep last */
36238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	__NL80211_ATTR_CQM_AFTER_LAST,
36248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1
36258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
36268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
36278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
36288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event
36298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the
36308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      configured threshold
36318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
36328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *      configured threshold
36336c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent)
36348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
36358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_cqm_rssi_threshold_event {
36368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,
36378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
363804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt	NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
36398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
36408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
36418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
36428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/**
36438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_power_setting - TX power adjustment
36448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power
36458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter
36468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter
36478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
36488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_power_setting {
36498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TX_POWER_AUTOMATIC,
36508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TX_POWER_LIMITED,
36518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	NL80211_TX_POWER_FIXED,
36528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
36538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
36541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
3655e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_packet_pattern_attr - packet pattern attribute
3656e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute
3657e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has
36581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	a zero bit are ignored
3659e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have
36601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	a bit for each byte in the pattern. The lowest-order bit corresponds
36611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	to the first byte of the pattern, but the bytes of the pattern are
36621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	in a little-endian-like format, i.e. the 9th byte of the pattern
36631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	corresponds to the lowest-order bit in the second byte of the mask.
36641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where
36651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	xx indicates "don't care") would be represented by a pattern of
3666f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	twelve zero bytes, and a mask of "0xed,0x01".
36671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Note that the pattern matching is done as though frames were not
36681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	802.11 frames but 802.3 frames, i.e. the frame is fully unpacked
36691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	first (including SNAP header unpacking) and then matched.
3670e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after
3671f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	these fixed number of bytes of received packet
3672e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_PKTPAT: number of attributes
3673e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @MAX_NL80211_PKTPAT: max attribute number
36741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
3675e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_packet_pattern_attr {
3676e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	__NL80211_PKTPAT_INVALID,
3677e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_PKTPAT_MASK,
3678e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_PKTPAT_PATTERN,
3679e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_PKTPAT_OFFSET,
36801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
3681e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NUM_NL80211_PKTPAT,
3682e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1,
36831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
36841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
36851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
3686e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_pattern_support - packet pattern support information
36871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_patterns: maximum number of patterns supported
36881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @min_pattern_len: minimum length of each pattern
36891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_pattern_len: maximum length of each pattern
3690f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_pkt_offset: maximum Rx packet offset
36911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
36921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when
3693e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in
3694e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of
3695e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE in the capability information given
3696e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * by the kernel to userspace.
36971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
3698e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_pattern_support {
36991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__u32 max_patterns;
37001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__u32 min_pattern_len;
37011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__u32 max_pattern_len;
3702f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__u32 max_pkt_offset;
37031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt} __attribute__((packed));
37041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
3705e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/* only for backward compatibility */
3706e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID
3707e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK
3708e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN
3709e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET
3710e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT
3711e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT
3712e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define nl80211_wowlan_pattern_support nl80211_pattern_support
3713e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
37141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
37151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_wowlan_triggers - WoWLAN trigger definitions
37161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes
37171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put
37181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the chip into a special state -- works best with chips that have
37191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	support for low-power operation already (flag)
3720f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	Note that this mode is incompatible with all of the others, if
3721f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	any others are even supported by the device.
37221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect
37231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is detected is implementation-specific (flag)
37241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed
37251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	by 16 repetitions of MAC addr, anywhere in payload) (flag)
37261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns
37271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	which are passed in an array of nested attributes, each nested attribute
37281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern.
3729f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	Each pattern defines a wakeup packet. Packet offset is associated with
3730f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	each pattern which is used while matching the pattern. The matching is
3731f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	done on the MSDU, i.e. as though the packet was an 802.3 packet, so the
3732f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	pattern matching is done after the packet is converted to the MSDU.
37331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
37341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute
3735e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	carrying a &struct nl80211_pattern_support.
3736f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3737f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	When reporting wakeup. it is a u32 attribute containing the 0-based
3738f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	index of the pattern that caused the wakeup, in the patterns passed
3739f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	to the kernel when configuring.
37401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be
37411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	used when setting, used only to indicate that GTK rekeying is supported
37421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	by the device (flag)
37431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if
37441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	done by the device) (flag)
37451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request
37461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	packet (flag)
37471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag)
37481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released
37491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(on devices that have rfkill in the device) (flag)
3750f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains
3751f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame
3752f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN
3753f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	attribute contains the original length.
3754f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11
3755f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211
3756f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	attribute if the packet was truncated somewhere.
3757f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the
3758f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	802.11 packet that caused the wakeup, e.g. a magic packet. The frame may
3759f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute
3760f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	contains the original length.
3761f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3
3762f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023
3763f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	attribute if the packet was truncated somewhere.
3764f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section
3765f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	"TCP connection wakeup" for more details. This is a nested attribute
3766f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	containing the exact information for establishing and keeping alive
3767f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	the TCP connection.
3768f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the
3769f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	wakeup packet was received on the TCP connection
3770f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the
3771f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	TCP connection was lost or failed to be established
3772f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only,
3773f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	the TCP connection ran out of tokens to use for data to send to the
3774f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	service
37756c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network
37766c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	is detected.  This is a nested attribute that contains the
37776c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	same attributes used with @NL80211_CMD_START_SCHED_SCAN.  It
3778f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	specifies how the scan is performed (e.g. the interval, the
3779f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	channels to scan and the initial delay) as well as the scan
3780f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	results that will trigger a wake (i.e. the matchsets).  This
3781f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	attribute is also sent in a response to
3782f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	@NL80211_CMD_GET_WIPHY, indicating the number of match sets
3783f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *	supported by the driver (u32).
37846c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute
37856c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	containing an array with information about what triggered the
37866c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	wake up.  If no elements are present in the array, it means
37876c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	that the information is not available.  If more than one
37886c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	element is present, it means that more than one match
37896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	occurred.
37906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	Each element in the array is a nested attribute that contains
37916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	one optional %NL80211_ATTR_SSID attribute and one optional
37926c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_SCAN_FREQUENCIES attribute.  At least one of
37936c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	these attributes must be present.  If
37946c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_ATTR_SCAN_FREQUENCIES contains more than one
37956c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	frequency, it means that the match occurred in more than one
37966c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	channel.
37971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
37981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
3799f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3800f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * These nested attributes are used to configure the wakeup triggers and
3801f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * to report the wakeup reason(s).
38021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
38031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_wowlan_triggers {
38041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_WOWLAN_TRIG_INVALID,
38051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_ANY,
38061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_DISCONNECT,
38071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_MAGIC_PKT,
38081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_PKT_PATTERN,
38091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED,
38101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE,
38111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST,
38121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE,
38131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_WOWLAN_TRIG_RFKILL_RELEASE,
3814f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211,
3815f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN,
3816f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023,
3817f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN,
3818f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_TCP_CONNECTION,
3819f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
3820f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
3821f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
38226c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_WOWLAN_TRIG_NET_DETECT,
38236c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
38241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
38251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
38261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_WOWLAN_TRIG,
38271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1
38281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
38291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
38301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
3831f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * DOC: TCP connection wakeup
3832f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3833f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Some devices can establish a TCP connection in order to be woken up by a
3834f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet coming in from outside their network segment, or behind NAT. If
3835f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * configured, the device will establish a TCP connection to the given
3836f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * service, and periodically send data to that service. The first data
3837f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK.
3838f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * The data packets can optionally include a (little endian) sequence
3839f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * number (in the TCP payload!) that is generated by the device, and, also
3840f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * optionally, a token from a list of tokens. This serves as a keep-alive
3841f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * with the service, and for NATed connections, etc.
3842f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3843f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * During this keep-alive period, the server doesn't send any data to the
3844f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * client. When receiving data, it is compared against the wakeup pattern
3845f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (and mask) and if it matches, the host is woken up. Similarly, if the
3846f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * connection breaks or cannot be established to start with, the host is
3847f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * also woken up.
3848f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3849f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Developer's note: ARP offload is required for this, otherwise TCP
3850f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * response packets might not go through correctly.
3851f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3852f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3853f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
3854f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence
3855f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @start: starting value
3856f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of sequence number in packet
3857f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of the sequence value to write, 1 through 4
3858f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
3859f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Note: don't confuse with the TCP sequence number(s), this is for the
3860f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * keepalive packet payload. The actual value is written into the packet
3861f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in little endian.
3862f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3863f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_seq {
3864f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__u32 start, offset, len;
3865f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
3866f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3867f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
3868f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config
3869f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of token in packet
3870f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of each token
3871f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @token_stream: stream of data to be used for the tokens, the length must
3872f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	be a multiple of @len for this to make sense
3873f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3874f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token {
3875f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__u32 offset, len;
3876f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__u8 token_stream[];
3877f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
3878f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3879f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
3880f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token_feature - data token features
3881f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @min_len: minimum token length
3882f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_len: maximum token length
3883f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @bufsize: total available token buffer size (max size of @token_stream)
3884f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3885f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token_feature {
3886f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__u32 min_len, max_len, bufsize;
3887f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
3888f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3889f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
3890f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters
3891f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes
3892f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order)
3893f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address
3894f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	(in network byte order)
3895f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because
3896f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	route lookup when configured might be invalid by the time we suspend,
3897f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	and doing a route lookup when suspending is no longer possible as it
3898f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	might require ARP querying.
3899f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a
3900f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	socket and port will be allocated
3901f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16)
3902f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte.
3903f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	For feature advertising, a u32 attribute holding the maximum length
3904f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	of the data payload.
3905f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration
3906f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	(if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature
3907f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	advertising it is just a flag
3908f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration,
3909f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	see &struct nl80211_wowlan_tcp_data_token and for advertising see
3910f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	&struct nl80211_wowlan_tcp_data_token_feature.
3911f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum
3912f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	interval in feature advertising (u32)
3913f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a
3914f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	u32 attribute holding the maximum length
3915f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for
3916e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	feature advertising. The mask works like @NL80211_PKTPAT_MASK
3917f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	but on the TCP payload only.
3918f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes
3919f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @MAX_NL80211_WOWLAN_TCP: highest attribute number
3920f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
3921f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_wowlan_tcp_attrs {
3922f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	__NL80211_WOWLAN_TCP_INVALID,
3923f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_SRC_IPV4,
3924f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DST_IPV4,
3925f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DST_MAC,
3926f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_SRC_PORT,
3927f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DST_PORT,
3928f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DATA_PAYLOAD,
3929f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ,
3930f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN,
3931f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_DATA_INTERVAL,
3932f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_WAKE_PAYLOAD,
3933f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_WOWLAN_TCP_WAKE_MASK,
3934f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3935f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	/* keep last */
3936f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NUM_NL80211_WOWLAN_TCP,
3937f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1
3938f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
3939f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
3940f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
3941e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_coalesce_rule_support - coalesce rule support information
3942e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_rules: maximum number of rules supported
3943e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @pat: packet pattern support information
3944e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_delay: maximum supported coalescing delay in msecs
3945e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
3946e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the
3947e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * capability information given by the kernel to userspace.
3948e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
3949e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_coalesce_rule_support {
3950e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	__u32 max_rules;
3951e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	struct nl80211_pattern_support pat;
3952e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	__u32 max_delay;
3953e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt} __attribute__((packed));
3954e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
3955e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
3956e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_attr_coalesce_rule - coalesce rule attribute
3957e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute
3958e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing
3959e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence,
3960e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	see &enum nl80211_coalesce_condition.
3961e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched
3962e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	after these fixed number of bytes of received packet
3963e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes
3964e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number
3965e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
3966e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_attr_coalesce_rule {
3967e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	__NL80211_COALESCE_RULE_INVALID,
3968e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_COALESCE_RULE_DELAY,
3969e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_COALESCE_RULE_CONDITION,
3970e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,
3971e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
3972e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	/* keep last */
3973e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NUM_NL80211_ATTR_COALESCE_RULE,
3974e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1
3975e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt};
3976e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
3977e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
3978e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_coalesce_condition - coalesce rule conditions
3979e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns
3980e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	in a rule are matched.
3981e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns
3982e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	in a rule are not matched.
3983e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
3984e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_coalesce_condition {
3985e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_COALESCE_CONDITION_MATCH,
3986e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_COALESCE_CONDITION_NO_MATCH
3987e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt};
3988e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
3989e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
39901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_iface_limit_attrs - limit attributes
39911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_UNSPEC: (reserved)
39921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that
39931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	can be chosen from this set of interface types (u32)
39941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a
39951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	flag attribute for each interface type in this set
39961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_LIMIT: number of attributes
39971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_LIMIT: highest attribute number
39981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
39991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_iface_limit_attrs {
40001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_LIMIT_UNSPEC,
40011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_LIMIT_MAX,
40021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_LIMIT_TYPES,
40031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
40051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_IFACE_LIMIT,
40061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1
40071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
40081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
40101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_if_combination_attrs -- interface combination attributes
40111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_UNSPEC: (reserved)
40131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits
40141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	for given interface types, see &enum nl80211_iface_limit_attrs.
40151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of
40161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	interfaces that can be created in this group. This number doesn't
40171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	apply to interfaces purely managed in software, which are listed
40181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE.
40191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that
40201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	beacon intervals within this group must be all the same even for
40211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	infrastructure and AP/GO combinations, i.e. the GO(s) must adopt
40221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	the infrastructure network's beacon interval.
40231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many
40241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	different channels may be used within this group.
4025f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap
4026f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	of supported channel widths for radar detection.
40279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap
40289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	of supported regulatory regions for radar detection.
40291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_COMB: number of attributes
40301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_COMB: highest attribute number
40311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Examples:
40331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2
40341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	=> allows an AP and a STA that must match BIs
40351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	numbers = [ #{AP, P2P-GO} <= 8 ], channels = 1, max = 8
40371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	=> allows 8 of AP/GO
40381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	numbers = [ #{STA} <= 2 ], channels = 2, max = 2
40401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	=> allows two STAs on different channels
40411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4
40431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	=> allows a STA plus three P2P interfaces
40441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * The list of these four possiblities could completely be contained
40461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate
40471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that any of these groups must match.
40481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * "Combinations" of just a single interface will not be listed here,
40501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a single interface of any valid interface type is assumed to always
40511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * be possible by itself. This means that implicitly, for each valid
40521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interface type, the following group always exists:
40531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	numbers = [ #{<type>} <= 1 ], channels = 1, max = 1
40541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
40551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_if_combination_attrs {
40561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_COMB_UNSPEC,
40571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_COMB_LIMITS,
40581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_COMB_MAXNUM,
40591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_COMB_STA_AP_BI_MATCH,
40601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_IFACE_COMB_NUM_CHANNELS,
4061f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS,
40629ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_IFACE_COMB_RADAR_DETECT_REGIONS,
40631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
40651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_IFACE_COMB,
40661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1
40671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
40681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
40711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_plink_state - state of a mesh peer link finite state machine
40721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
40731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_LISTEN: initial state, considered the implicit
40741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	state of non existant mesh peer links
40751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to
40761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	this mesh peer
40771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received
40781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	from this mesh peer
40791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been
40801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	received from this mesh peer
40811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_ESTAB: mesh peer link is established
40821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled
40831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh
40841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	plink are discarded
40851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PLINK_STATES: number of peer link states
40861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states
40871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
40881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_plink_state {
40891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_LISTEN,
40901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_OPN_SNT,
40911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_OPN_RCVD,
40921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_CNF_RCVD,
40931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_ESTAB,
40941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_HOLDING,
40951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PLINK_BLOCKED,
40961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
40971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
40981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_PLINK_STATES,
40991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1
41001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
41011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41022f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/**
41032f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum nl80211_plink_action - actions to perform in mesh peers
41042f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *
41052f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_NO_ACTION: perform no action
41062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment
41072f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer
41082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NUM_NL80211_PLINK_ACTIONS: number of possible actions
41092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */
41102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum plink_actions {
41112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_PLINK_ACTION_NO_ACTION,
41122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_PLINK_ACTION_OPEN,
41132f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_PLINK_ACTION_BLOCK,
41142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
41152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NUM_NL80211_PLINK_ACTIONS,
41162f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt};
41172f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
41182f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
41191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KCK_LEN			16
41201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KEK_LEN			16
41211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_REPLAY_CTR_LEN		8
41221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
41241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_rekey_data - attributes for GTK rekey offload
41251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes
41261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KEK: key encryption key (binary)
41271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KCK: key confirmation key (binary)
41281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary)
41291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal)
41301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal)
41311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
41321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_rekey_data {
41331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_REKEY_DATA_INVALID,
41341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_REKEY_DATA_KEK,
41351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_REKEY_DATA_KCK,
41361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_REKEY_DATA_REPLAY_CTR,
41371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
41391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_REKEY_DATA,
41401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1
41411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
41421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
41441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID
41451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in
41461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Beacon frames)
41471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element
41481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	in Beacon frames
41491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID
41501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	element in Beacon frames but zero out each byte in the SSID
41511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
41521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_hidden_ssid {
41531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_HIDDEN_SSID_NOT_IN_USE,
41541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_HIDDEN_SSID_ZERO_LEN,
41551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_HIDDEN_SSID_ZERO_CONTENTS
41561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
41571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
41591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_wme_attr - station WME attributes
41601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_INVALID: invalid number for nested attribute
41611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format
41621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	is the same as the AC bitmap in the QoS info field.
41631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX_SP: max service period. the format is the same
41641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	as the MAX_SP field in the QoS info field (but already shifted down).
41651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_AFTER_LAST: internal
41661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX: highest station WME attribute
41671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
41681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_wme_attr {
41691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_STA_WME_INVALID,
41701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_WME_UAPSD_QUEUES,
41711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_WME_MAX_SP,
41721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
41741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_STA_WME_AFTER_LAST,
41751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
41761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
41771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
41791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates
41801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes
41811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher
41821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	priority)
41831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets)
41841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag)
41851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes
41861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(internal)
41871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute
41881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	(internal)
41891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
41901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_pmksa_candidate_attr {
41911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	__NL80211_PMKSA_CANDIDATE_INVALID,
41921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PMKSA_CANDIDATE_INDEX,
41931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PMKSA_CANDIDATE_BSSID,
41941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PMKSA_CANDIDATE_PREAUTH,
41951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
41961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	/* keep last */
41971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NUM_NL80211_PMKSA_CANDIDATE,
41981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1
41991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
42001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
42011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
42021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION
42031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request
42041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_SETUP: Setup TDLS link
42051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established
42061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link
42071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link
42081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
42091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_tdls_operation {
42101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_TDLS_DISCOVERY_REQ,
42111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_TDLS_SETUP,
42121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_TDLS_TEARDOWN,
42131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_TDLS_ENABLE_LINK,
42141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_TDLS_DISABLE_LINK,
42151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
42161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
42171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/*
42181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_ap_sme_features - device-integrated AP features
42191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Reserved for future use, no bits are defined in
42201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * NL80211_ATTR_DEVICE_AP_SME yet.
42211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_ap_sme_features {
42221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
42231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
42241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
42251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
42261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_feature_flags - device/driver features
42271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back
42281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	TX status to the socket error queue when requested with the
42291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	socket option.
4230c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates.
423104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up
423204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt *	the connected inactive stations in AP mode.
423361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested
423461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	to work properly to suppport receiving regulatory hints from
423561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt *	cellular base stations.
42369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only
42379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	here to reserve the value for API/ABI compatibility)
4238d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of
4239d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station
4240d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	mode
4241d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan
4242d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported
4243d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif
4244d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting
4245d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform
4246d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	OBSS scans and generate 20/40 BSS coex reports. This flag is used only
4247d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied.
4248a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window
4249a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	setting
4250a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic
4251a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt *	powersave
4252f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state
4253f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	transitions for AP clients. Without this flag (and if the driver
4254f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	doesn't have the AP SME in the device) the driver supports adding
4255f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	stations only when they're associated and adds them in associated
4256f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	state (to later be transitioned into authorized), with this flag
4257f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	they should be added before even sending the authentication reply
4258f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	and then transitioned into authenticated, associated and authorized
4259f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	states using station flags.
4260f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	Note that even for drivers that support this, the default is to add
4261f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	stations in authenticated/associated state, so to add unauthenticated
4262f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	stations the authenticated/associated bits have to be set in the mask.
4263f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits
4264f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	(HT40, VHT 80/160 MHz) if this flag is set
42652f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh
42662f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	Peering Management entity which may be implemented by registering for
42672f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is
42682f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	still generated by the driver.
4269e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor
4270e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	interface. An active monitor interface behaves like a normal monitor
4271e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	interface, but gets added to the driver. It ensures that incoming
4272e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *	unicast packets directed at the configured interface address get ACKed.
42737832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic
42747832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the
42757832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt *	lifetime of a BSS.
42769ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter
42779ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	Set IE to probe requests.
42789ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE
42799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	to probe requests.
42809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period
42819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	requests sent to it by an AP.
42829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the
42839ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	current tx power value into the TPC Report IE in the spectrum
42849ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	management TPC Report action frame, and in the Radio Measurement Link
42859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	Measurement Report action frame.
42869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout
42879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used
42889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	to enable dynack.
42899ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial
42909ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	multiplexing powersave, ie. can turn off all but one chain
42919ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	even on HT connections that should be using more chains.
42929ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial
42939ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	multiplexing powersave, ie. can turn off all but one chain
42949ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	and then wake the rest up as required after, for example,
42959ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	rts/cts handshake.
42966c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM
42976c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS
42986c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	command. Standard IEEE 802.11 TSPEC setup is not yet supported, it
42996c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	needs to be able to handle Block-Ack agreements and other things.
43006c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring
43016c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	the vif's MAC address upon creation.
43026c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	See 'macaddr' field in the vif_params (cfg80211.h).
43036c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when
43046c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	operating as a TDLS peer.
43056c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a
43066c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	random MAC address during scan (if the device is unassociated); the
43076c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	%NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC
43086c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	address mask/value will be used.
43096c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports
43106c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	using a random MAC address for every scan iteration during scheduled
43116c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may
43126c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	be set for scheduled scan and the MAC address mask/value will be used.
43136c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a
43146c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	random MAC address for every scan iteration during "net detect", i.e.
43156c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may
43166c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	be set for scheduled scan and the MAC address mask/value will be used.
43171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
43181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_feature_flags {
4319d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_SK_TX_STATUS			= 1 << 0,
4320d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_HT_IBSS				= 1 << 1,
4321d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_INACTIVITY_TIMER		= 1 << 2,
4322d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_CELL_BASE_REG_HINTS		= 1 << 3,
43239ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL	= 1 << 4,
4324d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_SAE				= 1 << 5,
4325d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_LOW_PRIORITY_SCAN		= 1 << 6,
4326d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_SCAN_FLUSH			= 1 << 7,
4327d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_AP_SCAN				= 1 << 8,
4328d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_VIF_TXPOWER			= 1 << 9,
4329d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_FEATURE_NEED_OBSS_SCAN			= 1 << 10,
4330a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_FEATURE_P2P_GO_CTWIN			= 1 << 11,
4331a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt	NL80211_FEATURE_P2P_GO_OPPPS			= 1 << 12,
4332f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	/* bit 13 is reserved */
4333f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FEATURE_ADVERTISE_CHAN_LIMITS		= 1 << 14,
4334f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_FEATURE_FULL_AP_CLIENT_STATE		= 1 << 15,
43352f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_FEATURE_USERSPACE_MPM			= 1 << 16,
4336e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_FEATURE_ACTIVE_MONITOR			= 1 << 17,
43377832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt	NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE	= 1 << 18,
43389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES	= 1 << 19,
43399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_WFA_TPC_IE_IN_PROBES		= 1 << 20,
43409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_QUIET				= 1 << 21,
43419ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_TX_POWER_INSERTION		= 1 << 22,
43429ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_ACKTO_ESTIMATION		= 1 << 23,
43439ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_STATIC_SMPS			= 1 << 24,
43449ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_FEATURE_DYNAMIC_SMPS			= 1 << 25,
43456c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_SUPPORTS_WMM_ADMISSION		= 1 << 26,
43466c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_MAC_ON_CREATE			= 1 << 27,
43476c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_TDLS_CHANNEL_SWITCH		= 1 << 28,
43486c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR		= 1 << 29,
43496c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR	= 1 << 30,
43506c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_FEATURE_ND_RANDOM_MAC_ADDR		= 1 << 31,
43511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
43521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
43531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/**
4354f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * enum nl80211_ext_feature_index - bit index of extended features.
4355f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates.
4356f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt *
4357f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NUM_NL80211_EXT_FEATURES: number of extended features.
4358f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
4359f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */
4360f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidtenum nl80211_ext_feature_index {
4361f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NL80211_EXT_FEATURE_VHT_IBSS,
4362f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
4363f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	/* add new features before the definition below */
4364f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	NUM_NL80211_EXT_FEATURES,
4365f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt	MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
4366f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt};
4367f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt
4368f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/**
43691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_probe_resp_offload_support_attr - optional supported
43701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	protocols for probe-response offloading by the driver/FW.
43711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute.
43721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	Each enum value represents a bit in the bitmap of supported
43731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	protocols. Typically a subset of probe-requests belonging to a
43741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	supported protocol will be excluded from offload and uploaded
43751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *	to the host.
43761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt *
43771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1
43781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2
43791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P
43801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u
43811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */
43821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_probe_resp_offload_support_attr {
43831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS =	1<<0,
43841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 =	1<<1,
43851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P =	1<<2,
43861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt	NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U =	1<<3,
43871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt};
43881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt
4389d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/**
4390d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_connect_failed_reason - connection request failed reasons
4391d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be
4392d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	handled by the AP is reached.
4393f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL.
4394d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */
4395d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_connect_failed_reason {
4396d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CONN_FAIL_MAX_CLIENTS,
4397d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_CONN_FAIL_BLOCKED_CLIENT,
4398d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt};
4399d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
4400d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/**
4401d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_scan_flags -  scan request control flags
4402d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
4403d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * Scan request control flags are used to control the handling
4404d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN
4405d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * requests.
4406d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *
4407d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority
4408d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning
4409d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured
4410d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	as AP and the beaconing has already been configured. This attribute is
4411d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	dangerous because will destroy stations performance as a lot of frames
4412d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	will be lost while scanning off-channel, therefore it must be used only
4413d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt *	when really needed
44146c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or
44156c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	for scheduled scan: a different one for every scan iteration). When the
44166c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	flag is set, depending on device capabilities the @NL80211_ATTR_MAC and
44176c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	@NL80211_ATTR_MAC_MASK attributes may also be given in which case only
44186c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	the masked bits will be preserved from the MAC address and the remainder
44196c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	randomised. If the attributes are not given full randomisation (46 bits,
44206c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	locally administered 1, multicast 0) is assumed.
44216c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	This flag must not be requested when the feature isn't supported, check
44226c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt *	the nl80211 feature flags for the device.
4423d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */
4424d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_scan_flags {
4425d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_SCAN_FLAG_LOW_PRIORITY			= 1<<0,
4426d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_SCAN_FLAG_FLUSH				= 1<<1,
4427d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt	NL80211_SCAN_FLAG_AP				= 1<<2,
44286c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt	NL80211_SCAN_FLAG_RANDOM_ADDR			= 1<<3,
4429d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt};
4430d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt
4431f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
4432f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_acl_policy - access control policy
4433f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4434f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Access control policy is applied on a MAC list set by
4435f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to
4436f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be used with %NL80211_ATTR_ACL_POLICY.
4437f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4438f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are
4439f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	listed in ACL, i.e. allow all the stations which are not listed
4440f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	in ACL to authenticate.
4441f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed
4442f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	in ACL, i.e. deny all the stations which are not listed in ACL.
4443f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
4444f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_acl_policy {
4445f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED,
4446f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_ACL_POLICY_DENY_UNLESS_LISTED,
4447f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
4448f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
4449f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
44509ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * enum nl80211_smps_mode - SMPS mode
44519ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
44529ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Requested SMPS mode (for AP mode)
44539ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *
44549ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_OFF: SMPS off (use all antennas).
44559ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_STATIC: static SMPS (use a single antenna)
44569ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and
44579ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt *	turn on other antennas after CTS/RTS).
44589ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt */
44599ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidtenum nl80211_smps_mode {
44609ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_SMPS_OFF,
44619ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_SMPS_STATIC,
44629ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_SMPS_DYNAMIC,
44639ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
44649ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	__NL80211_SMPS_AFTER_LAST,
44659ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt	NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1
44669ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt};
44679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt
44689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt/**
4469f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_radar_event - type of radar event for DFS operation
4470f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4471f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace
4472f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * about detected radars or success of the channel available check (CAC)
4473f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4474f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is
4475f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	now unusable.
4476f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished,
4477f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	the channel is now available.
4478f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no
4479f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	change to the channel status.
4480f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is
4481f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	over, channel becomes usable.
4482f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
4483f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_radar_event {
4484f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_RADAR_DETECTED,
4485f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_RADAR_CAC_FINISHED,
4486f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_RADAR_CAC_ABORTED,
4487f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_RADAR_NOP_FINISHED,
4488f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
4489f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
4490f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/**
4491f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_dfs_state - DFS states for channels
4492f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4493f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Channel states used by the DFS code.
4494f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
4495e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_USABLE: The channel can be used, but channel availability
4496f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	check (CAC) must be performed before using it for AP or IBSS.
4497e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it
4498f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *	is therefore marked as not available.
4499e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available.
4500f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
4501f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_dfs_state {
4502f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_DFS_USABLE,
4503f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_DFS_UNAVAILABLE,
4504f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	NL80211_DFS_AVAILABLE,
4505f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt};
4506f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
45072f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/**
45082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum enum nl80211_protocol_features - nl80211 protocol features
45092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting
45102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	wiphy dumps (if requested by the application with the attribute
45112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	%NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the
45122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or
45132f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt *	%NL80211_ATTR_WDEV.
45142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */
45152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum nl80211_protocol_features {
45162f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt	NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP =	1 << 0,
45172f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt};
45182f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt
451951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/**
452051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers
452151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt *
452251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified.
452351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol.
452451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol.
452551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_APIPA: APIPA protocol.
452651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NUM_NL80211_CRIT_PROTO: must be kept last.
452751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt */
452851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidtenum nl80211_crit_proto_id {
452951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CRIT_PROTO_UNSPEC,
453051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CRIT_PROTO_DHCP,
453151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CRIT_PROTO_EAPOL,
453251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NL80211_CRIT_PROTO_APIPA,
453351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	/* add other protocols before this one */
453451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt	NUM_NL80211_CRIT_PROTO
453551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt};
453651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt
453751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/* maximum duration for critical protocol measures */
453851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt#define NL80211_CRIT_PROTO_MAX_DURATION		5000 /* msec */
453951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt
4540e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/**
4541e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_rxmgmt_flags - flags for received management frame.
4542e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
4543e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Used by cfg80211_rx_mgmt()
4544e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt *
4545e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver.
4546e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */
4547e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_rxmgmt_flags {
4548e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt	NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
4549e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt};
4550e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt
4551fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/*
4552fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * If this flag is unset, the lower 24 bits are an OUI, if set
4553fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * a Linux nl80211 vendor ID is used (no such IDs are allocated
4554fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * yet, so that's not valid so far)
4555fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */
4556fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VENDOR_ID_IS_LINUX	0x80000000
4557fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
4558fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/**
4559fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_vendor_cmd_info - vendor command data
4560fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the
4561fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	value is a 24-bit OUI; if it is set then a separately allocated ID
4562fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	may be used, but no such IDs are allocated yet. New IDs should be
4563fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt *	added to this file when needed.
4564fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @subcmd: sub-command ID for the command
4565fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */
4566fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_vendor_cmd_info {
4567fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	__u32 vendor_id;
4568fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt	__u32 subcmd;
4569fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt};
4570fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt
4571df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt/**
4572df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * enum nl80211_tdls_peer_capability - TDLS peer flags.
4573df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *
4574df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * Used by tdls_mgmt() to determine which conditional elements need
4575df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * to be added to TDLS Setup frames.
4576df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt *
4577df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable.
4578df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable.
4579df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable.
4580df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt */
4581df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidtenum nl80211_tdls_peer_capability {
4582df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_TDLS_PEER_HT = 1<<0,
4583df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_TDLS_PEER_VHT = 1<<1,
4584df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt	NL80211_TDLS_PEER_WMM = 1<<2,
4585df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt};
4586df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt
45878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* __LINUX_NL80211_H */
4588