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 288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#include <linux/types.h> 298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 308bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt#define NL80211_GENL_NAME "nl80211" 318bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt 328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Station handling 348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Stations are added per interface, but a special case exists with VLAN 368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interfaces. When a station is bound to an AP interface, it may be moved 378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN). 388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The station is still assumed to belong to the AP interface it was added 398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to. 408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 412f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Station handling varies per interface type and depending on the driver's 422f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * capabilities. 432f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 442f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS 452f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: 462f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - a setup station entry is added, not yet authorized, without any rate 472f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * or capability information, this just exists to avoid race conditions 482f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 492f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * to add rate and capability information to the station and at the same 502f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * time mark it authorized. 512f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - %NL80211_TDLS_ENABLE_LINK is then used 522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - after this, the only valid operation is to remove it by tearing down 532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * the TDLS link (%NL80211_TDLS_DISABLE_LINK) 542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 552f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * TODO: need more info for other interface types 568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Frame transmission/registration support 608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission and registration support exists to allow userspace 628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * management entities such as wpa_supplicant react to management frames 638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that are not being handled by the kernel. This includes, for example, 648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain classes of action frames that cannot be handled in the kernel 658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for various reasons. 668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame registration is done on a per-interface basis and registrations 688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cannot be removed other than by closing the socket. It is possible to 698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specify a registration filter to register, for example, only for a 708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain type of action frame. In particular with action frames, those 718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that userspace registers for will not be returned as unhandled by the 728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver, so that the registered application has to take responsibility 738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for doing that. 748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The type of frame that can be registered for is also dependent on the 768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver and interface type. The frame types are advertised in wiphy 778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes so applications know what to expect. 788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NOTE: When an interface changes type while registrations are active, 808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * these registrations are ignored until the interface type is 818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * changed again. This means that changing the interface type can 828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * lead to a situation that couldn't otherwise be produced, but 838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * any such registrations will be dormant in the sense that they 848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * will not be serviced, i.e. they will not receive any frames. 858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission allows userspace to send for example the required 878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * responses to action frames. It is subject to some sanity checking, 888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * but many frames can be transmitted. When a frame was transmitted, its 898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * status is indicated to the sending socket. 908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * For more technical details, see the corresponding command descriptions 928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * below. 938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * DOC: Virtual interface / concurrency capabilities 971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Some devices are able to operate with virtual MACs, they can have 991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * more than one virtual interface. The capability handling for this 1001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is a bit complex though, as there may be a number of restrictions 1011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the types of concurrency that are supported. 1021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, each device supports the interface types listed in 1041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the 1051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * types there no concurrency is implied. 1061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Once concurrency is desired, more attributes must be observed: 1081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, since some interface types are purely managed in 1091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * software, like the AP-VLAN type in mac80211 for example, there's 1101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * an additional list of these, they can be added at any time and 1111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are only restricted by some semantic restrictions (e.g. AP-VLAN 1121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * cannot be added without a corresponding AP interface). This list 1131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. 1141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Further, the list of supported combinations is exported. This is 1161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically, 1171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * it exports a list of "groups", and at any point in time the 1181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that are currently active must fall into any one of 1191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the advertised groups. Within each group, there are restrictions 1201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the number of interfaces of different types that are supported 1211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and also the number of different channels, along with potentially 1221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * some other restrictions. See &enum nl80211_if_combination_attrs. 1231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * All together, these attributes define the concurrency of virtual 1251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that a given device supports. 1261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 1271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 1281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 129e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * DOC: packet coalesce support 130e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 131e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * In most cases, host that receives IPv4 and IPv6 multicast/broadcast 132e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * packets does not do anything with these packets. Therefore the 133e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * reception of these unwanted packets causes unnecessary processing 134e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * and power consumption. 135e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 136e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Packet coalesce feature helps to reduce number of received interrupts 137e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * to host by buffering these packets in firmware/hardware for some 138e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * predefined time. Received interrupt will be generated when one of the 139e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * following events occur. 140e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Expiration of hardware timer whose expiration time is set to maximum 141e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * coalescing delay of matching coalesce rule. 142e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) Coalescing buffer in hardware reaches it's limit. 143e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Packet doesn't match any of the configured coalesce rules. 144e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 145e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * User needs to configure following parameters for creating a coalesce 146e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * rule. 147e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Maximum coalescing delay 148e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) List of packet patterns which needs to be matched 149e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Condition for coalescence. pattern 'match' or 'no match' 150e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Multiple such rules can be created. 151e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 152e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 153e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 1548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_commands - supported nl80211 commands 1558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNSPEC: unspecified command to catch errors 1578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request 1598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to get a list of all present wiphys. 1608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or 1618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, 162a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the 163a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attributes determining the channel width; this is used for setting 164a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * monitor mode channel), %NL80211_ATTR_WIPHY_RETRY_SHORT, 1658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 1668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD. 1678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * However, for setting the channel, see %NL80211_CMD_SET_CHANNEL 1688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * instead, the support here is for backward compatibility only. 1698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request 1708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or rename notification. Has attributes %NL80211_ATTR_WIPHY and 1718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY_NAME. 1728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes 1738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME. 1748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration; 1768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * either a dump request on a %NL80211_ATTR_WIPHY or a specific get 1778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * on an %NL80211_ATTR_IFINDEX is supported. 1788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires 1798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE. 1808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response 1818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX, 1828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also 1838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * be sent from userspace to request creation of a new virtual interface, 1848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and 1858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFNAME. 1868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes 1878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from 1888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace to request deletion of a virtual interface, then requires 1898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attribute %NL80211_ATTR_IFINDEX. 1908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified 1928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. 1938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, 1948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. 1958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, 1968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER, 1978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and %NL80211_ATTR_KEY_SEQ attributes. 1988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX 1998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or %NL80211_ATTR_MAC. 2008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_BEACON: (not used) 20204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface 20304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL 20404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * attributes. For drivers that generate the beacon and probe responses 20504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * internally, the following attributes must be provided: %NL80211_ATTR_IE, 20604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. 20704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters 20804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that 20904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, 21004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, 2111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, 2121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, 2131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, 214f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, 215f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. 21604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * The channel to use can be set on the interface or be given using the 217a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width. 21804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP 21904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface 22004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP 2218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_STATION: Get station attributes for station identified by 2238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_STATION: Set station attributes for station identified by 2258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the 2278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the interface identified by %NL80211_ATTR_IFINDEX. 2288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC 2298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or, if no MAC address given, all stations, on the interface identified 2308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * by %NL80211_ATTR_IFINDEX. 2318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to 2338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * destination %NL80211_ATTR_MAC on the interface identified by 2348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 2358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to 2368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * destination %NL80211_ATTR_MAC on the interface identified by 2378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 2381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by 2391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. 2401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by 2411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_MAC. 2428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the 2438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the interface identified by %NL80211_ATTR_IFINDEX. 2448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC 2458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or, if no MAC address given, all mesh paths, on the interface identified 2468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * by %NL80211_ATTR_IFINDEX. 2478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by 2488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 2498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set 2518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 2528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command 2538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * after being queried by the kernel. CRDA replies by sending a regulatory 2548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our 2558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * current alpha2 if it found a match. It also provides 2568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each 2578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory rule is a nested set of attributes given by 2588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and 2598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by 2608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and 2618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. 2628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain 2638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to the specified ISO/IEC 3166-1 alpha2 country code. The core will 2648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * store this as a valid request and then query userspace for it. 2658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the 2678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface identified by %NL80211_ATTR_IFINDEX 2688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the 2708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface identified by %NL80211_ATTR_IFINDEX 2718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The 2738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface is identified with %NL80211_ATTR_IFINDEX and the management 2748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be 2758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * added to the end of the specified management frame is specified with 2768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IE. If the command succeeds, the requested data will be 2778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * added to all specified management frames generated by 2788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * kernel/firmware/driver. 2798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Note: This command has been removed and it is only reserved at this 2808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * point to avoid re-using existing command number. The functionality this 2818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command was planned for has been provided with cleaner design with the 2828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN, 2838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE, 2848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE. 2858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SCAN: get scan results 2878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters 2881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 2891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * probe requests at CCK rate or not. 2908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to 2918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_GET_SCAN and on the "scan" multicast group) 2928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, 2938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * partial scan results may be available 2948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain 2961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * intervals, as specified by %NL80211_ATTR_SCHED_SCAN_INTERVAL. 2971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS) 2981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are passed, they are used in the probe requests. For 2991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * broadcast, a broadcast SSID must be passed (ie. an empty 3001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * string). If no SSID is passed, no probe requests are sent and 3011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a passive scan is performed. %NL80211_ATTR_SCAN_FREQUENCIES, 3021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * if passed, define which channels should be scanned; if not 3031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * passed, all channels allowed for the current regulatory domain 3041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are used. Extra IEs can also be passed from the userspace by 3051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * using the %NL80211_ATTR_IE attribute. 306df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if 307df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * scheduled scan is not running. The caller may assume that as soon 308df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * as the call returns, it is safe to start a new scheduled scan again. 3091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan 3101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * results available. 3111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has 3121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * stopped. The driver may issue this event at any time during a 3131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * scheduled scan. One reason for stopping the scan is if the hardware 3141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * does not support starting an association or a normal scan while running 3151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a scheduled scan. This event is also sent when the 3161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface 3171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is brought down while a scheduled scan was running. 3181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 3198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation 3208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or noise level 3218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to 3228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) 3238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 32404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry, using %NL80211_ATTR_MAC 32504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (for the BSSID) and %NL80211_ATTR_PMKID. 32604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC 32704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (for the BSSID) and %NL80211_ATTR_PMKID. 32804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. 32904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 3308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain 3318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * has been changed and provides details of the request information 3328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that caused the change such as who initiated the regulatory request 3338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx 3348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if 3358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or 3368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain 3378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is 3388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on 3398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to (%NL80211_ATTR_REG_ALPHA2). 3408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon 3418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * has been found while world roaming thus enabling active scan or 3428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * any mode of operation that initiates TX (beacons) on a channel 3438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * where we would not have been able to do either before. As an example 3448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * if you are world roaming (regulatory domain set to world or if your 3458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver is using a custom world roaming regulatory domain) and while 3468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * doing a passive scan on the 5 GHz band you find an AP there (if not 3478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * on a DFS channel) you will now be able to actively scan for that AP 3488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or use AP mode on your card on that same channel. Note that this will 3498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * never be used for channels 1-11 on the 2 GHz band as they are always 3508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enabled world wide. This beacon hint is only sent if your device had 3518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * either disabled active scanning or beaconing on a channel. We send to 3528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace the wiphy on which we removed a restriction from 3538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_WIPHY) and the channel on which this occurred 3548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) 3558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the beacon hint was processed. 3568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_AUTHENTICATE: authentication request and notification. 3588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This command is used both as a command (request to authenticate) and 3598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * as an event on the "mlme" multicast group indicating completion of the 3608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * authentication process. 3618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When used as a command, %NL80211_ATTR_IFINDEX is used to identify the 3628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and 3638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify 3648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the SSID (mainly for association, but is included in authentication 3658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ is used 3668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to specify the frequence of the channel in MHz. %NL80211_ATTR_AUTH_TYPE 3678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used to specify the authentication type. %NL80211_ATTR_IE is used to 3688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * define IEs (VendorSpecificInfo, but also including RSN IE and FT IEs) 3698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to be added to the frame. 3708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When used as an event, this reports reception of an Authentication 3718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame in station and IBSS modes when the local MLME processed the 3728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame, i.e., it was for the local STA and was received in correct 3738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * state. This is similar to MLME-AUTHENTICATE.confirm primitive in the 3748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME SAP interface (kernel providing MLME, userspace SME). The 3758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * included %NL80211_ATTR_FRAME attribute contains the management frame 3768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (including both the header and frame body, but not FCS). This event is 3778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * also used to indicate if the authentication attempt timed out. In that 3788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * case the %NL80211_ATTR_FRAME attribute is replaced with a 3798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which 3808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * pending authentication timed out). 3818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ASSOCIATE: association request and notification; like 3828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Association and Reassociation 3838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request, 3848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). 3858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like 3868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to 3878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication 3888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * primitives). 3898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like 3908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to 3918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives). 3928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael 3948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MIC (part of TKIP) failure; sent on the "mlme" multicast group; the 3958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event includes %NL80211_ATTR_MAC to describe the source MAC address of 3968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key 3978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and 3988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this 3998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event matches with MLME-MICHAELMICFAILURE.indication() primitive 4008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a 4028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * FREQ attribute (for the initial frequency if no peer can be found) 4038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those 4048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * should be fixed rather than automatically determined. Can only be 4058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * executed on a network interface that is UP, and fixed BSSID/FREQ 4068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * may be rejected. Another optional parameter is the beacon interval, 4078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not 4088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given defaults to 100 TU (102.4ms). 4098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is 4108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * determined by the network interface. 4118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute 4138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to identify the device, and the TESTDATA blob attribute to pass through 4148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to the driver. 4158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CONNECT: connection request and notification; this command 4178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * requests to connect to a specified network but without separating 4188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * auth and assoc steps. For this, you need to specify the SSID in a 4198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_SSID attribute, and can optionally specify the association 420f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP, 421f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, 42296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 42396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and 42496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ_HINT. 42596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are 42696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * restrictions on BSS selection, i.e., they effectively prevent roaming 42796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT 42896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * can be included to provide a recommendation of the initial BSS while 42996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * allowing the driver to roam to other BSSes within the ESS and also to 43096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * ignore this recommendation if the indicated BSS is not ideal. Only one 43196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * set of BSSID,frequency parameters is used (i.e., either the enforcing 43296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict 43396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT). 43404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Background scan period can optionally be 43504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * specified in %NL80211_ATTR_BG_SCAN_PERIOD, 43604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * if not specified default background scan configuration 43704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * in driver is used and if period value is 0, bg scan will be disabled. 43804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * This attribute is ignored if driver does not support roam scan. 4398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * It is also sent as an event, with the BSSID and response IEs when the 4408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * connection is established or failed to be established. This can be 4418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * determined by the STATUS_CODE attribute. 4428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ROAM: request that the card roam (currently not implemented), 4438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent as an event when the card/driver roamed by itself. 4448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify 4458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace that a connection was dropped by the AP or due to other 4468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and 4478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REASON_CODE attributes are used. 4488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices 4508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * associated with this wiphy must be down and will follow. 4518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified 4538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel for the specified amount of time. This can be used to do 4548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * off-channel operations like transmit a Public Action frame and wait for 4558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a response while being associated to an AP on another channel. 4568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus 4578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the 458a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * frequency for the operation. 4598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds 4608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to remain on the channel. This command is also used as an event to 4618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notify when the requested duration starts (it may take a while for the 4628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver to schedule this time due to other concurrent needs for the 4638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio). 4648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE) 4658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that will be included with any events pertaining to this request; 4668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the cookie is also used to cancel the request. 4678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a 4688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * pending remain-on-channel duration if the desired operation has been 4698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * completed prior to expiration of the originally requested duration. 4708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the 4718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to 4728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * uniquely identify the request. 4738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This command is also used as an event to notify when a requested 4748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * remain-on-channel duration has expired. 4758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX 4778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface 4788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and @NL80211_ATTR_TX_RATES the set of allowed rates. 4798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames 4818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (via @NL80211_CMD_FRAME) for processing in userspace. This command 4828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * requires an interface index, a frame type attribute (optional for 4838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility reasons, if not given assumes action frames) 4848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and a match attribute containing the first few bytes of the frame 4858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that should match, e.g. a single byte for only a category match or 4868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * four bytes for vendor frames including the OUI. The registration 4878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cannot be dropped, but is removed automatically when the netlink 4888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * socket is closed. Multiple registrations can be made. 4898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for 4908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility 4918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This 4928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command is used both as a request to transmit a management frame and 4938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * as an event indicating reception of a frame that was not processed in 4948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * kernel code, but is for us (i.e., which may need to be processed in a 4958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * user space application). %NL80211_ATTR_FRAME is used to specify the 496a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used 497a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * to indicate on which channel the frame is to be transmitted or was 498a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * received. If this channel is not the current channel (remain-on-channel 499a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * or the operational channel) the device will switch to the given channel 500a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and transmit the frame, optionally waiting for a response for the time 5018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified using %NL80211_ATTR_DURATION. When called, this operation 5028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the 5038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * TX status event pertaining to the TX request. 5041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 5051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * management frames at CCK rate or not in 2GHz band. 5069ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA 5079ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * counters which will be updated to the current value. This attribute 5089ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * is used during CSA period. 5098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this 5108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command may be used with the corresponding cookie to cancel the wait 5118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * time if it is known that it is no longer necessary. 5128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility. 5138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame 5148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies 5158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the TX command and %NL80211_ATTR_FRAME includes the contents of the 5168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged 5178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the frame. 5188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for 5198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility. 52004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 52104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE 52204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE 52304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 5248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command 5258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used to configure connection quality monitoring notification trigger 5268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * levels. 5278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This 5288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command is used as an event to indicate the that a trigger level was 5298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * reached. 5308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ 531a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and the attributes determining channel width) the given interface 532a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. 5338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * In case multiple channels are supported by the device, the mechanism 5348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with which it switches channels is implementation-defined. 5358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When a monitor interface is given, it can only switch channel while 5368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * no other interfaces are operating to avoid disturbing the operation 5378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of any other interfaces, and other interfaces will again take 5388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * precedence when they are used. 5398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. 5418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial 5438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * mesh config parameters may be given. 5448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the 5458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * network is determined by the network interface. 5468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame 5488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notification. This event is used to indicate that an unprotected 5498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * deauthentication frame was dropped when MFP is in use. 5508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame 5518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notification. This event is used to indicate that an unprotected 5528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * disassociation frame was dropped when MFP is in use. 5538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a 5551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * beacon or probe response from a compatible mesh peer. This is only 5561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * sent while no station information (sta_info) exists for the new peer 5572f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH, 5582f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AMPE, or 5592f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM is set. On reception of this 5602f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * notification, userspace may decide to create a new station 5612f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * (@NL80211_CMD_NEW_STATION). To stop this notification from 5621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * reoccurring, the userspace authentication daemon may want to create the 5631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * new station with the AUTHENTICATED flag unset and maybe change it later 5641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * depending on the authentication result. 5651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 5661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings. 5671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings. 5681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Since wireless is more complex than wired ethernet, it supports 5691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * various triggers. These triggers can be configured through this 5701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For 5711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * more background information, see 5721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * http://wireless.kernel.org/en/users/Documentation/WoWLAN. 573f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * The @NL80211_CMD_SET_WOWLAN command can also be used as a notification 574f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * from the driver reporting the wakeup reason. In this case, the 575f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason 576f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * for the wakeup, if it was caused by wireless. If it is not present 577f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in the wakeup notification, the wireless device didn't cause the 578f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * wakeup but reports that it was woken up. 5791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 5801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver 5811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the necessary information for supporting GTK rekey offload. This 5821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * feature is typically used during WoWLAN. The configuration data 5831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is contained in %NL80211_ATTR_REKEY_DATA (which is nested and 5841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * contains the data in sub-attributes). After rekeying happened, 5851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this command may also be sent by the driver as an MLME event to 5861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * inform userspace of the new replay counter. 5871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 5881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace 5891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * of PMKSA caching dandidates. 5901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 5911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). 592d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * In addition, this can be used as an event to request userspace to take 593d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * actions on TDLS links (set up a new link or tear down an existing one). 594d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested 595d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * operation, %NL80211_ATTR_MAC contains the peer MAC address, and 596d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_ATTR_REASON_CODE the reason code to be used (only with 597d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_TDLS_TEARDOWN). 598fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The 599fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be 600fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as 601fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 802.11 management frames, while TDLS action codes (802.11-2012 602fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 8.5.13.1) will be encapsulated and sent as data frames. The currently 603fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES 604fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * and the currently supported TDLS actions codes are given in 605fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * &enum ieee80211_tdls_actioncode. 6061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP 6081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (or GO) interface (i.e. hostapd) to ask for unexpected frames to 6091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * implement sending deauth to stations that send unexpected class 3 6101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * frames. Also used as the event sent by the kernel when such a frame 6111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is received. 6121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For the event, the %NL80211_ATTR_MAC attribute carries the TA and 6131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * other attributes like the interface index are present. 6141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If used as the command it must have an interface index and you can 6151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * only unsubscribe from the event by closing the socket. Subscription 6161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events. 6171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the 6191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * associated station identified by %NL80211_ATTR_MAC sent a 4addr frame 6201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and wasn't already in a 4-addr VLAN. The event will be sent similarly 6211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener. 6221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface 6241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by sending a null data frame to it and reporting when the frame is 6251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * acknowleged. This is used to allow timing out inactive clients. Uses 6261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a 6271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * direct reply with an %NL80211_ATTR_COOKIE that is later used to match 6281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * up the event with the request. The event includes the same data and 6291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * has %NL80211_ATTR_ACK set if the frame was ACKed. 6301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from 6321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * other BSSes when any interfaces are in AP mode. This helps implement 6331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME 6341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * messages. Note that per PHY only one application may register. 6351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 636c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether 637c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * No Acknowledgement Policy should be applied. 638c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 63904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels 64004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * independently of the userspace SME, send this event indicating 641a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the 642a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attributes determining channel width. 64304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 644d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by 645d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * its %NL80211_ATTR_WDEV identifier. It must have been created with 646d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the 647d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * P2P Device can be used for P2P operations, e.g. remain-on-channel and 648d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * public action frame TX. 649d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by 650d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * its %NL80211_ATTR_WDEV identifier. 651d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 652d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to 653d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * notify userspace that AP has rejected the connection request from a 654d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON 655d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * is used for this. 656d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 657d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames 658d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * for IBSS or MESH vif. 659d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 660f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control. 661f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * This is to be used with the drivers advertising the support of MAC 662f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * address based access control. List of MAC addresses is passed in 663f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_MAC_ADDRS and ACL policy is passed in 664f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it 665f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * is not already done. The new list will replace any existing list. Driver 666f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * will clear its ACL when the list of MAC addresses passed is empty. This 667f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * command is used in AP/P2P GO mode. Driver has to make sure to clear its 668f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * ACL list during %NL80211_CMD_STOP_AP. 669f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 670f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once 671f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * a radar is detected or the channel availability scan (CAC) has finished 672f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * or was aborted, or a radar was detected, usermode will be notified with 673f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this event. This command is also used to notify userspace about radars 674f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * while operating on this channel. 675f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_RADAR_EVENT is used to inform about the type of the 676f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * event. 677f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 6782f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features, 6792f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * i.e. features for the nl80211 protocol rather than device features. 6802f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. 6812f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 6822f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition 6832f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Information Element to the WLAN driver 6842f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 6852f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver 6862f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * to the supplicant. This will carry the target AP's MAC address along 6872f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * with the relevant Information Elements. This event is used to report 6882f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE). 6892f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 69051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running 69151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * a critical protocol that needs more reliability in the connection to 69251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * complete. 69351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 69451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can 69551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * return back to normal. 69651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 697e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules. 698e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules. 699e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 700e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the 701e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * the new channel information (Channel Switch Announcement - CSA) 702e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in the beacon for some time (as defined in the 703e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the 704e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * new channel. Userspace provides the new channel information (using 705e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel 706e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform 707e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * other station that transmission must be blocked until the channel 708e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * switch is complete. 709e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 710fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified 711fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in 712fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in 713fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_VENDOR_DATA. 714fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is 715fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * used in the wiphy data as a nested attribute containing descriptions 716fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * (&struct nl80211_vendor_cmd_info) of the supported vendor commands. 717fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * This may also be sent as an event with the same attributes. 718fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 719fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values. 720fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If 721fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * that attribute is not included, QoS mapping is disabled. Since this 722fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * QoS mapping is relevant for IP packets, it is only valid during an 723fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * association. This is cleared on disassociation and AP restart. 724fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 7259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given 7269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO 7279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and %NL80211_ATTR_ADMITTED_TIME parameters. 7289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Note that the action frame handshake with the AP shall be handled by 7299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * userspace via the normal management RX/TX framework, this only sets 7309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * up the TX TS in the driver/device. 7319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If the admitted time attribute is not added then the request just checks 7329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * if a subsequent setup could be successful, the intent is to use this to 7339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * avoid setting up a session with the AP when local restrictions would 7349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * make that impossible. However, the subsequent "real" setup may still 7359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * fail even if the check was successful. 7369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID 7379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this 7389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * before removing a station entry entirely, or before disassociating 7399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * or similar, cleanup will happen in the driver/device in this case. 7409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 7418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MAX: highest used command number 7428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_CMD_AFTER_LAST: internal use 7438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 7448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_commands { 7451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */ 7468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNSPEC, 7478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_WIPHY, /* can dump */ 7498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WIPHY, 7508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_WIPHY, 7518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_WIPHY, 7528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_INTERFACE, /* can dump */ 7548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_INTERFACE, 7558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_INTERFACE, 7568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_INTERFACE, 7578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_KEY, 7598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_KEY, 7608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_KEY, 7618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_KEY, 7628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_BEACON, 7648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_BEACON, 76504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_START_AP, 76604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, 76704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_STOP_AP, 76804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, 7698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_STATION, 7718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_STATION, 7728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_STATION, 7738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_STATION, 7748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_MPATH, 7768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_MPATH, 7778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_MPATH, 7788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_MPATH, 7798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_BSS, 7818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_REG, 7838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REQ_SET_REG, 7848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_GET_MESH_CONFIG, 7861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_MESH_CONFIG, 7878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, 7898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_REG, 7918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_SCAN, 7938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_TRIGGER_SCAN, 7948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_SCAN_RESULTS, 7958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SCAN_ABORTED, 7968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REG_CHANGE, 7988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 7998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_AUTHENTICATE, 8008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ASSOCIATE, 8018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEAUTHENTICATE, 8028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DISASSOCIATE, 8038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_MICHAEL_MIC_FAILURE, 8058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REG_BEACON_HINT, 8078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_JOIN_IBSS, 8098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_LEAVE_IBSS, 8108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_TESTMODE, 8128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_CONNECT, 8148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ROAM, 8158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DISCONNECT, 8168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WIPHY_NETNS, 8188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_SURVEY, 8208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_SURVEY_RESULTS, 8218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_PMKSA, 8238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_PMKSA, 8248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FLUSH_PMKSA, 8258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REMAIN_ON_CHANNEL, 8278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL, 8288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_TX_BITRATE_MASK, 8308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REGISTER_FRAME, 8328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME, 8338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME, 8348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ACTION = NL80211_CMD_FRAME, 8358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME_TX_STATUS, 8368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS, 8378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_POWER_SAVE, 8398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_POWER_SAVE, 8408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_CQM, 8428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NOTIFY_CQM, 8438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_CHANNEL, 8458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WDS_PEER, 8468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME_WAIT_CANCEL, 8488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_JOIN_MESH, 8508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_LEAVE_MESH, 8518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNPROT_DEAUTHENTICATE, 8538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNPROT_DISASSOCIATE, 8548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 8551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_NEW_PEER_CANDIDATE, 8561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_GET_WOWLAN, 8581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_WOWLAN, 8591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_START_SCHED_SCAN, 8611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_STOP_SCHED_SCAN, 8621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SCHED_SCAN_RESULTS, 8631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SCHED_SCAN_STOPPED, 8641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_REKEY_OFFLOAD, 8661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_PMKSA_CANDIDATE, 8681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_TDLS_OPER, 8701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_TDLS_MGMT, 8711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_UNEXPECTED_FRAME, 8731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_PROBE_CLIENT, 8751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_REGISTER_BEACONS, 8771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 8781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_UNEXPECTED_4ADDR_FRAME, 8791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 880c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_CMD_SET_NOACK_MAP, 881c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 88204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_CH_SWITCH_NOTIFY, 88304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 884d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_START_P2P_DEVICE, 885d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_STOP_P2P_DEVICE, 886d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 887d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_CONN_FAILED, 888d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 889d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_SET_MCAST_RATE, 890d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 891f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_CMD_SET_MAC_ACL, 892f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 893f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_CMD_RADAR_DETECT, 894f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 8952f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_GET_PROTOCOL_FEATURES, 8962f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 8972f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_UPDATE_FT_IES, 8982f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_FT_EVENT, 8992f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 90051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CMD_CRIT_PROTOCOL_START, 90151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CMD_CRIT_PROTOCOL_STOP, 90251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 903e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_GET_COALESCE, 904e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_SET_COALESCE, 905e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 906e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_CHANNEL_SWITCH, 907e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 908fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_CMD_VENDOR, 909fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 910fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_CMD_SET_QOS_MAP, 911fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 9129ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_CMD_ADD_TX_TS, 9139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_CMD_DEL_TX_TS, 9149ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 9158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* add new commands above here */ 9168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* used to define NL80211_CMD_MAX below */ 9188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_CMD_AFTER_LAST, 9198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 9208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 9218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 9238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new commands by defining them 9248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here 9258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 9268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS 9278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE 9288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE 9298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE 9308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE 9318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE 9328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE 9338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT 9348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 9361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 9371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* source-level API compatibility */ 9381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG 9391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG 9401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE 9411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 9428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 9438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attrs - nl80211 netlink attributes 9448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 9458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors 9468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 9478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf. 9488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * /sys/class/ieee80211/<phyname>/index 9498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) 9508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters 951a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz, 952a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * defines the channel together with the (deprecated) 953a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes 954a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1 955a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and %NL80211_ATTR_CENTER_FREQ2 956a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values 957a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * of &enum nl80211_chan_width, describing the channel width. See the 958a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * documentation of the enum for more information. 959a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the 960a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * channel, used for anything but 20 MHz bandwidth 961a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the 962a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * channel, used only for 80+80 MHz bandwidth 9638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ 964a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * if HT20 or HT40 are to be used (i.e., HT disabled if not included): 9658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including 9668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * this attribute) 9678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT20 = HT20 only 9688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel 9698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel 970a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * This attribute is now deprecated. 9718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is 9728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * less than or equal to the RTS threshold; allowed range: 1..255; 9738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dot11ShortRetryLimit; u8 9748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is 9758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * greater than the RTS threshold; allowed range: 1..255; 9768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dot11ShortLongLimit; u8 9778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum 9788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * length in octets for frames; allowed range: 256..8000, disable 9798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * fragmentation with (u32)-1; dot11FragmentationThreshold; u32 9808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length 9818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * larger than or equal to this use RTS/CTS handshake); allowed range: 9828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 9838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11 9848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.9; dot11CoverageClass; u8 9858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 9868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on 9878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFNAME: network interface name 9888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype 9898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 99061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices 99161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * that don't have a netdev (u64) 99261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 9938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAC: MAC address (various uses) 9948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 9958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of 9968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 9978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * keys 9988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3) 9998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 10008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.25.1, e.g. 0x000FAC04) 10018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 10028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * CCMP keys, each six bytes in little endian 100304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key 100404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the 100504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * default management key 100604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or 100704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * other commands, indicates which pairwise cipher suites are used 100804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or 100904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * other commands, indicates which group cipher suite is used 10108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU 10128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing 10138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE 10148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE 10158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_AID: Association ID for the station (u16) 10178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of 10188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2) 10198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by 10208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEEE 802.11 7.3.1.6 (u16). 10218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported 10228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates as defined by IEEE 802.11 7.3.2.2 but without the length 10238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * restriction (at most %NL80211_MAX_SUPP_RATES). 10248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station 10258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to, or the AP interface the station was originally added to to. 10268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_INFO: information about a station, part of station info 10278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given for %NL80211_CMD_GET_STATION, nested attribute containing 10288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * info as possible, see &enum nl80211_sta_info. 10298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, 10318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * consisting of a nested array. 10328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes). 10342f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link 10352f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * (see &enum nl80211_plink_action). 10368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. 10378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path 10388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * info given for %NL80211_CMD_GET_MPATH, nested attribute described at 10398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mpath_info. 10408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of 10428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mntr_flags. 10438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the 10458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * current regulatory domain should be set to or is already set to. 10468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * For example, 'CR', for Costa Rica. This attribute is used by the kernel 10478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to query the CRDA to retrieve one regulatory domain. This attribute can 10488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * also be used by userspace to query the kernel for the currently set 10498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. We chose an alpha2 as that is also used by the 1050e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * IEEE-802.11 country information element to identify a country. 10518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Users can also simply ask the wireless core to set regulatory domain 10528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to a specific alpha2. 10538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory 10548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rules. 10558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) 10578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled 10588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (u8, 0 or 1) 10598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled 10608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (u8, 0 or 1) 10618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic 10628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates in format defined by IEEE 802.11 7.3.2.2 but without the length 10638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * restriction (at most %NL80211_MAX_SUPP_RATES). 10648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from 10668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * association request when used with NL80211_CMD_NEW_STATION) 10678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all 10698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * supported interface types, each a flag attribute with the number 10708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of the interface mode. 10718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for 10738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_SET_MGMT_EXTRA_IE. 10748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with 10768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_SET_MGMT_EXTRA_IE). 10778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with 10798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a single scan request, a wiphy attribute. 10801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can 10811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * scan with a single scheduled scan request, a wiphy attribute. 10828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements 10838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that can be added to a scan request 10841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information 10851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * elements that can be added to a scheduled scan request 10861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be 10871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute. 10888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz) 10908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive 10918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * scanning and include a zero-length SSID (wildcard) for wildcard scan 10928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS: scan result BSS 10938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain 10958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* 10968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently 10978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) 10988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 10998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies 11008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of command numbers (i.e. a mapping index to command number) 11018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that the driver for the given wiphy supports. 11028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header 11048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and 11058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_ASSOCIATE events 11068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets) 11078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type, 11088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * represented as a u32 11098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and 11108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_DISASSOCIATE, u16 11118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as 11138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a u32 11148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change 11168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * due to considerations from a beacon hint. This attribute reflects 11178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the state of the channel _before_ the beacon hint processing. This 11188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes consists of a nested attribute containing 11198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_FREQUENCY_ATTR_* 11208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change 11218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * due to considerations from a beacon hint. This attribute reflects 11228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the state of the channel _after_ the beacon hint processing. This 11238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes consists of a nested attribute containing 11248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_FREQUENCY_ATTR_* 11258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported 11278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cipher suites 11288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look 11308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for other networks on different channels 11318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this 11338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used, e.g., with %NL80211_CMD_AUTHENTICATE event 11348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is 11368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * used for the association (&enum nl80211_mfp, represented as a u32); 11378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * this attribute can be used 1138f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests 11398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS2: Attribute containing a 11418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &struct nl80211_sta_flag_update. 11428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls 11448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in 11458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE 11468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * request, the driver will assume that the port is unauthorized until 11478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * authorized by user space. Otherwise, port is marked authorized by 11488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * default in station mode. 11498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the 11508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ethertype that will be used for key negotiation. It can be 11518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified with the associate and connect commands. If it is not 11528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified, the value defaults to 0x888E (PAE, 802.1X). This 11538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attribute is also used as a flag in the wiphy information to 11548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * indicate that protocols other than PAE are supported. 11558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with 11568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom 11578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ethertype frames used for key negotiation must not be encrypted. 11588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. 11608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * We recommend using nested, driver-specific attributes within this. 11618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT 11638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event was due to the AP disconnecting the station, and not due to 11648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a local disconnect request. 11658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT 11668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event (u16) 11678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating 11681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that protected APs should be used. This is also used with NEW_BEACON to 11691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate that the BSS is to use protection. 11708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON 11721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to indicate which unicast key ciphers will be used with the connection 11738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (an array of u32). 11741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 11751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which group key cipher will be used with the connection (a 11761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * u32). 11771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 11781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which WPA version(s) the AP we want to associate with is using 11798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (a u32 with flags from &enum nl80211_wpa_versions). 11801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 11811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which key management algorithm(s) to use (an array of u32). 11828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REQ_IE: (Re)association request information elements as 11848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent out by the card, for ROAM and successful CONNECT events. 11858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RESP_IE: (Re)association response information elements as 11868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent by peer, for ROAM and successful CONNECT events. 11878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used by in ASSOCIATE 11898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * commands to specify using a reassociate frame 11908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY: key information in a nested attribute with 11928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_KEY_* sub-attributes 11938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect() 11948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and join_ibss(), key information is in a nested attribute each 11958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with %NL80211_KEY_* sub-attributes 11968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PID: Process ID of a network namespace. 11988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for 12008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dumps. This number increases whenever the object list being 12018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dumped changes, and as such userspace can verify that it has 12028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * obtained a complete and consistent snapshot by verifying that 12038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * all dump messages contain the same generation number. If it 12048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * changed then the list changed and the dump should be repeated 12058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * completely from scratch. 12068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface 12088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of 12108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute 12118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * containing info as possible, see &enum survey_info. 12128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PMKID: PMK material for PMKSA caching. 12148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can 12158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cache, a wiphy attribute. 12168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32. 12188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that 12198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specifies the maximum duration that can be requested with the 12208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * remain-on-channel operation, in milliseconds, u32. 12218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects. 12238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_RATES: Nested set of attributes 12258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (enum nl80211_tx_rate_attributes) describing TX rates per band. The 12268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band value is used as the index (nla_type() of the nested 12278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * data. If a band is not included, it will be configured to allow all 12288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates based on negotiated supported rates information. This attribute 12298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used with %NL80211_CMD_SET_TX_BITRATE_MASK. 12308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain 12328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME. 12338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the 12348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_FRAME command. 12358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a 12368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 12378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about which frame types can be transmitted with 12388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_FRAME. 12398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a 12408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 12418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about which frame types can be registered for RX. 12428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was 12448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * acknowledged by the recipient. 12458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 124604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. 124704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 12488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM: connection quality monitor configuration in a 12498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute with %NL80211_ATTR_CQM_* sub-attributes. 12508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command 12528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is requesting a local authentication/association state change without 12538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * invoking actual management frame exchange. This can be used with 12548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE, 12558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_DISASSOCIATE. 12568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations 12588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * connected to this BSS. 12598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See 12618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_tx_power_setting for possible values. 12628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units. 12638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING 12648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for non-automatic settings. 12658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly 12678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * means support for per-station GTKs. 12688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting. 12708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This can be used to mask out antennas which are not attached or should 12718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * not be used for transmitting. If an antenna is not selected in this 12728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * bitmap the hardware is not allowed to transmit on this antenna. 12738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Each bit represents one antenna, starting with antenna 1 at the first 12758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * bit. Depending on which antennas are selected in the bitmap, 802.11n 12768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * drivers can derive which chainmasks to use (if all antennas belonging to 12778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a particular chain are disabled this chain should be disabled) and if 12788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a chain has diversity antennas wether diversity should be used or not. 12798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * HT capabilities (STBC, TX Beamforming, Antenna selection) can be 12808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * derived from the available chains after applying the antenna mask. 12818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Non-802.11n drivers can derive wether to use diversity or not. 12828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Drivers may reject configurations or RX/TX mask combinations they cannot 12838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * support by returning -EINVAL. 12848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving. 12868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This can be used to mask out antennas which are not attached or should 12878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * not be used for receiving. If an antenna is not selected in this bitmap 12888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the hardware should not be configured to receive on this antenna. 12891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX. 12901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 12911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available 12921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for configuration as TX antennas via the above parameters. 12931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 12941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available 12951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for configuration as RX antennas via the above parameters. 12968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS 12988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be 13008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * transmitted on another channel when the channel given doesn't match 13018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the current channel. If the current channel doesn't match and this 13028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * flag isn't set, the frame will be rejected. This is also used as an 13038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nl80211 capability flag. 13048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 130504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16) 13068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags 13088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes, specifying what a key should be set as default as. 13098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * See &enum nl80211_key_default_types. 13108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters. These cannot be 13121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * changed once the mesh is active. 13131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute 13141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing attributes from &enum nl80211_meshconf_params. 13151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver 13161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * allows auth frames in a mesh to be passed to userspace for processing via 13171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. 13182f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in 13192f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * &enum nl80211_plink_state. Used when userspace is driving the peer link 13202f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * management state machine. @NL80211_MESH_SETUP_USERSPACE_AMPE or 13212f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM must be enabled. 13221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy 13241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * capabilities, the supported WoWLAN triggers 13251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to 13261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which WoW triggers should be enabled. This is also 13271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN 13281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * triggers. 132904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 13301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan 13311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * cycles, in msecs. 133204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 13331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more 13341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * sets of attributes to match during scheduled scans. Only BSSs 13351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that match any of the sets will be reported. These are 13361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * pass-thru filter rules. 13371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For a match to succeed, the BSS must match all attributes of a 13381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * set. Since not every hardware supports matching all types of 13391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attributes, there is no guarantee that the reported BSSs are 13401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * fully complying with the match sets and userspace needs to be 13411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * able to ignore them by itself. 13421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Thus, the implementation is somewhat hardware-dependent, but 13431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this is only an optimization and the userspace application 13441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * needs to handle all the non-filtered results anyway. 13451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If the match attributes don't make sense when combined with 13461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID 13471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is included in the probe request, but the match attributes 13481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * will never let it go through), -EINVAL may be returned. 13491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If ommited, no filtering is done. 13501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported 13521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interface combinations. In each nested item, it contains attributes 13531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * defined in &enum nl80211_if_combination_attrs. 13541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like 13551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that 13561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are managed in software: interfaces of these types aren't subject to 13571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * any restrictions in their number or combinations. 13581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 135904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information 13601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * necessary for GTK rekeying in the device, see &enum nl80211_rekey_data. 13611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan, 13631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * nested array attribute containing an entry for each band, with the entry 13641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but 13651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * without the length restriction (at most %NL80211_MAX_SUPP_RATES). 13661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon 13681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and Probe Response (when response to wildcard Probe Request); see 13691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_hidden_ssid, represented as a u32 13701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame. 13721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to 13731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the 13741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * driver (or firmware) replies to Probe Request frames. 13751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association 13761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Response frames. This is used with %NL80211_CMD_NEW_BEACON and 13771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into 13781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (Re)Association Response frames when the driver (or firmware) replies to 13791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (Re)Association Request frames. 13801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration 13821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * of the station, see &enum nl80211_sta_wme_attr. 13831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working 13841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as AP. 13851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of 13871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * roaming to another AP in the same ESS if the signal lever is low. 13881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching 13901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * candidate information, see &enum nl80211_pmksa_candidate_attr. 13911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not 13931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for management frames transmission. In order to avoid p2p probe/action 13941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * frames are being transmitted at CCK rate in 2GHz band, the user space 13951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * applications use this attribute. 13961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and 13971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_FRAME commands. 13981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 13991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup 14001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * request, link setup confirm, link teardown, etc.). Values are 14011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * described in the TDLS (802.11z) specification. 14021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a 14031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * TDLS conversation between two devices. 14041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see 14051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_tdls_operation, represented as a u8. 14061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate 14071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as a TDLS peer sta. 14081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown 14091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * procedures should be performed by sending TDLS packets via 14101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be 14111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used for asking the driver to perform a TDLS operation. 14121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 14131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices 14141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that have AP support to indicate that they have the AP SME integrated 14151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * with support for the features listed in this attribute, see 14161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_ap_sme_features. 14171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 14181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells 14191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the driver to not wait for an acknowledgement. Note that due to this, 14201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * it will also not give a status callback nor return a cookie. This is 14211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * mostly useful for probe responses to save airtime. 14221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 14231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from 14241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_feature_flags and is advertised in wiphy information. 14251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe 14261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * requests while operating in AP-mode. 14271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This attribute holds a bitmap of the supported protocols for 14281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * offloading (see &enum nl80211_probe_resp_offload_support_attr). 14291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 14301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire 14311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * probe-response frame. The DA field in the 802.11 header is zero-ed out, 14321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to be filled by the FW. 1433c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable 1434c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * this feature. Currently, only supported in mac80211 drivers. 1435c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the 1436c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * ATTR_HT_CAPABILITY to which attention should be paid. 1437c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * Currently, only mac80211 NICs support this feature. 1438c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * The values that may be configured are: 1439c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40 1440c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * AMPDU density and AMPDU factor. 1441c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * All values are treated as suggestions and may be ignored 1442c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * by the driver as required. The actual values may be seen in 1443c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * the station debugfs ht_caps file. 1444c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 1445c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country 1446c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * abides to when initiating radiation on DFS channels. A country maps 1447c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * to one DFS region. 1448c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 1449c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of 1450c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * up to 16 TIDs. 14511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 145204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be 145304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * used by the drivers which has MLME in firmware and does not have support 145404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * to report per station tx/rx activity to free up the staion entry from 145504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the list. This needs to be used when the driver advertises the 145604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * capability to timeout the stations. 145704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 145804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); 145904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * this attribute is (depending on the driver capabilities) added to 146004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * received frames indicated with %NL80211_CMD_FRAME. 146104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 146204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds 146304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * or 0 to disable background scan. 146404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 146561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from 146661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * userspace. If unset it is assumed the hint comes directly from 146761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * a user. If set code could specify exactly what type of source 146861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * was used to provide the hint. For the different types of 146961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * allowed user regulatory hints see nl80211_user_reg_hint_type. 147061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 1471d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected 1472d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * the connection request from a station. nl80211_connect_failed_reason 1473d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum has different reasons of connection failure. 1474d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1475d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_SAE_DATA: SAE elements in Authentication frames. This starts 1476d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * with the Authentication transaction sequence number field. 1477d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1478d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from 1479d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * association request when used with NL80211_CMD_NEW_STATION) 1480d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1481d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32) 1482d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1483a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with 1484a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * the START_AP and SET_BSS commands 1485a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the 1486a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * START_AP and SET_BSS commands. This can have the values 0 or 1; 1487a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * if not given in START_AP 0 is assumed, if not given in SET_BSS 1488a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * no change is made. 1489a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 1490f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode 1491f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * defined in &enum nl80211_mesh_power_mode. 1492f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1493f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy, 1494f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * carried in a u32 attribute 1495f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1496f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for 1497f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * MAC ACL. 1498f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1499f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum 1500f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * number of MAC addresses that a device can support for MAC 1501f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * ACL. 1502f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1503f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace, 1504f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * contains a value of enum nl80211_radar_event (u32). 1505f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1506f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver 1507f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * has and handles. The format is the same as the IE contents. See 1508f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 802.11-2012 8.4.2.29 for more information. 1509f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver 1510f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields. 1511f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1512f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to 1513f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the driver, e.g., to enable TDLS power save (PU-APSD). 1514f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1515f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are 1516f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * advertised to the driver, e.g., to enable TDLS off channel operations 1517f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and PU-APSD. 1518f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 15192f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see 15202f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * &enum nl80211_protocol_features, the attribute is a u32. 15212f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 15222f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports 15232f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * receiving the data for a single wiphy split across multiple 15242f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * messages, given with wiphy dump message 15252f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 15262f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_MDID: Mobility Domain Identifier 15272f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 15282f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_IE_RIC: Resource Information Container Information 15292f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Element 15302f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 153151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased 153251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * reliability, see &enum nl80211_crit_proto_id (u16). 153351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which 153451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * the connection should have increased reliability (u16). 153551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 15368bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16). 15378bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * This is similar to @NL80211_ATTR_STA_AID but with a difference of being 15388bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * allowed to be used with the first @NL80211_CMD_SET_STATION command to 15398bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * update a TDLS peer STA entry. 15408bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * 1541e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information. 1542e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1543e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's 1544e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * until the channel switch event. 1545e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission 1546e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * must be blocked on the current channel (before the channel switch 1547e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * operation). 1548e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information 1549e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * for the time while performing a channel switch. 15509ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel 15519ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL). 15529ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel 15539ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * switch counters in the probe response (%NL80211_ATTR_PROBE_RESP). 1554e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1555e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32. 1556e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * As specified in the &enum nl80211_rxmgmt_flags. 1557e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1558e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels. 1559e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1560e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported 1561e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * supported operating classes. 1562e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1563e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space 1564e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * controls DFS operation in IBSS mode. If the flag is included in 1565e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS 1566e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * channels and reports radar events to userspace. Userspace is required 1567e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * to react to radar events, e.g. initiate a channel switch or leave the 1568e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * IBSS network. 1569e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1570fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports 1571fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 5 MHz channel bandwidth. 1572fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports 1573fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 10 MHz channel bandwidth. 1574fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1575fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode 1576fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * Notification Element based on association request when used with 1577fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_CMD_NEW_STATION; u8 attribute. 1578fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1579fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if 1580fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet) 1581fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command 1582fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this 1583fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * attribute is also used for vendor command feature advertisement 1584fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy 1585fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * info, containing a nested array of possible events 1586fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1587fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This 1588fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * data is in the format defined for the payload of the QoS Map Set element 1589fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * in IEEE Std 802.11-2012, 8.4.2.97. 1590fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 159196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS 159296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS 159396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * 159496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many 159596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * associated stations are supported in AP mode (including P2P GO); u32. 159696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * Since drivers may not have a fixed limit on the maximum number (e.g., 159796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * other concurrent operations may affect this), drivers are allowed to 159896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * advertise values that cannot always be met. In such cases, an attempt 159996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * to add a new station entry with @NL80211_CMD_NEW_STATION may fail. 160096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * 16019ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which 16029ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * should be updated when the frame is transmitted. 16039ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum 16049ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * supported number of csa counters. 16059ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 1606df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32. 1607df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * As specified in the &enum nl80211_tdls_peer_capability. 1608df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 16097832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_ATTR_IFACE_SOCKET_OWNER: flag attribute, if set during interface 16107832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * creation then the new interface will be owned by the netlink socket 16117832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * that created it and will be destroyed when the socket is closed 16127832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * 16139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is 16149ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * the TDLS link initiator. 16159ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 16169ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection 16179ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * shall support Radio Resource Measurements (11k). This attribute can be 16189ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests. 16199ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * User space applications are expected to use this flag only if the 16209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * underlying device supports these minimal RRM features: 16219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES, 16229ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_QUIET, 16239ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If this flag is used, driver must add the Power Capabilities IE to the 16249ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * association request. In addition, it must also set the RRM capability 16259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * flag in the association request's Capability Info field. 16269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 16279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout 16289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * estimation algorithm (dynack). In order to activate dynack 16299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower 16309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * drivers to indicate dynack capability. Dynack is automatically disabled 16319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * setting valid value for coverage class. 16329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 16339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TSID: a TSID value (u8 attribute) 16349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute) 16359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds 16369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (per second) (u16 attribute) 16379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 16389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see 16399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * &enum nl80211_smps_mode. 16409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 16418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX: highest attribute number currently defined 16428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_AFTER_LAST: internal use 16438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 16448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attrs { 16451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */ 16468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_UNSPEC, 16478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY, 16498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_NAME, 16508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFINDEX, 16528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFNAME, 16538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFTYPE, 16548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAC, 16568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DATA, 16588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_IDX, 16598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_CIPHER, 16608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_SEQ, 16618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT, 16628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_INTERVAL, 16648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DTIM_PERIOD, 16658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_HEAD, 16668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_TAIL, 16678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_AID, 16698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_FLAGS, 16708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_LISTEN_INTERVAL, 16718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_SUPPORTED_RATES, 16728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_VLAN, 16738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_INFO, 16748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_BANDS, 16768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MNTR_FLAGS, 16788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MESH_ID, 16808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_PLINK_ACTION, 16818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MPATH_NEXT_HOP, 16828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MPATH_INFO, 16838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_CTS_PROT, 16858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_SHORT_PREAMBLE, 16868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_SHORT_SLOT_TIME, 16878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_HT_CAPABILITY, 16898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORTED_IFTYPES, 16918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_ALPHA2, 16938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_RULES, 16948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MESH_CONFIG, 16968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_BASIC_RATES, 16988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 16998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TXQ_PARAMS, 17008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_FREQ, 17018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_CHANNEL_TYPE, 17028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT_MGMT, 17048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MGMT_SUBTYPE, 17068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IE, 17078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_NUM_SCAN_SSIDS, 17098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SCAN_FREQUENCIES, 17118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SCAN_SSIDS, 17128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */ 17138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS, 17148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_INITIATOR, 17168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_TYPE, 17178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORTED_COMMANDS, 17198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME, 17218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SSID, 17228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AUTH_TYPE, 17238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REASON_CODE, 17248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_TYPE, 17268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_SCAN_IE_LEN, 17288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITES, 17298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_BEFORE, 17318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_AFTER, 17328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_FIXED, 17348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RETRY_SHORT, 17378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RETRY_LONG, 17388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 17398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RTS_THRESHOLD, 17408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TIMED_OUT, 17428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_USE_MFP, 17448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_FLAGS2, 17468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT, 17488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TESTDATA, 17508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PRIVACY, 17528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DISCONNECTED_BY_AP, 17548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STATUS_CODE, 17558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITES_PAIRWISE, 17578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITE_GROUP, 17588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WPA_VERSIONS, 17598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AKM_SUITES, 17608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REQ_IE, 17628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_RESP_IE, 17638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PREV_BSSID, 17658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY, 17678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEYS, 17688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PID, 17708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_4ADDR, 17728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SURVEY_INFO, 17748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PMKID, 17768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_NUM_PMKIDS, 17778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DURATION, 17798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_COOKIE, 17818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_COVERAGE_CLASS, 17838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TX_RATES, 17858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME_MATCH, 17878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_ACK, 17898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PS_STATE, 17918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM, 17938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_LOCAL_STATE_CHANGE, 17958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AP_ISOLATE, 17978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 17988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TX_POWER_SETTING, 17998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TX_POWER_LEVEL, 18008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TX_FRAME_TYPES, 18028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_RX_FRAME_TYPES, 18038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME_TYPE, 18048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 18068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, 18078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORT_IBSS_RSN, 18098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_TX, 18118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_RX, 18128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MCAST_RATE, 18148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_OFFCHANNEL_TX_OK, 18168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_HT_OPMODE, 18188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT_TYPES, 18208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION, 18228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 18231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MESH_SETUP, 18241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, 18261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, 18271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SUPPORT_MESH_AUTH, 18291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_STA_PLINK_STATE, 18301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WOWLAN_TRIGGERS, 18321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, 18331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCHED_SCAN_INTERVAL, 18351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_INTERFACE_COMBINATIONS, 18371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SOFTWARE_IFTYPES, 18381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_REKEY_DATA, 18401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, 18421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN, 18431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCAN_SUPP_RATES, 18451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_HIDDEN_SSID, 18471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_IE_PROBE_RESP, 18491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_IE_ASSOC_RESP, 18501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_STA_WME, 18521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SUPPORT_AP_UAPSD, 18531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_ROAM_SUPPORT, 18551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCHED_SCAN_MATCH, 18571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_MATCH_SETS, 18581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PMKSA_CANDIDATE, 18601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TX_NO_CCK_RATE, 18621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_ACTION, 18641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_DIALOG_TOKEN, 18651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_OPERATION, 18661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_SUPPORT, 18671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_EXTERNAL_SETUP, 18681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_DEVICE_AP_SME, 18701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_DONT_WAIT_FOR_ACK, 18721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_FEATURE_FLAGS, 18741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PROBE_RESP_OFFLOAD, 18761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 18771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PROBE_RESP, 18781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 1879c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_DFS_REGION, 1880c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 1881c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_DISABLE_HT, 1882c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_HT_CAPABILITY_MASK, 1883c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 1884c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_NOACK_MAP, 1885c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 188604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_INACTIVITY_TIMEOUT, 188704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 188804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_RX_SIGNAL_DBM, 188904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 189004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_BG_SCAN_PERIOD, 189104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 189261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_WDEV, 189361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 189461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_USER_REG_HINT_TYPE, 189561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 1896d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_CONN_FAILED_REASON, 1897d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1898d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_SAE_DATA, 1899d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1900d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_VHT_CAPABILITY, 1901d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1902d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_SCAN_FLAGS, 1903d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1904a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CHANNEL_WIDTH, 1905a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CENTER_FREQ1, 1906a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CENTER_FREQ2, 1907a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 1908a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_P2P_CTWINDOW, 1909a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_P2P_OPPPS, 1910a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 1911f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_LOCAL_MESH_POWER_MODE, 1912f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1913f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_ACL_POLICY, 1914f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1915f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_MAC_ADDRS, 1916f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1917f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_MAC_ACL_MAX, 1918f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1919f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_RADAR_EVENT, 1920f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1921f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_EXT_CAPA, 1922f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_EXT_CAPA_MASK, 1923f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1924f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_STA_CAPABILITY, 1925f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_STA_EXT_CAPABILITY, 1926f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 19272f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_PROTOCOL_FEATURES, 19282f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_SPLIT_WIPHY_DUMP, 19292f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 19302f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_DISABLE_VHT, 19312f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_VHT_CAPABILITY_MASK, 19322f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 19332f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_MDID, 19342f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_IE_RIC, 19352f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 193651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_ATTR_CRIT_PROT_ID, 193751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_ATTR_MAX_CRIT_PROT_DURATION, 193851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 19398bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_ATTR_PEER_AID, 19408bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt 1941e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE, 1942e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1943e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CH_SWITCH_COUNT, 1944e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CH_SWITCH_BLOCK_TX, 1945e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_IES, 1946e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_C_OFF_BEACON, 1947e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_C_OFF_PRESP, 1948e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1949e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_RXMGMT_FLAGS, 1950e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1951e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_STA_SUPPORTED_CHANNELS, 1952e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1953e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES, 1954e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1955e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_HANDLE_DFS, 1956e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1957fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_SUPPORT_5_MHZ, 1958fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_SUPPORT_10_MHZ, 1959fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 1960fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_OPMODE_NOTIF, 1961fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 1962fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_ID, 1963fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_SUBCMD, 1964fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_DATA, 1965fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_EVENTS, 1966fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 1967fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_QOS_MAP, 1968fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 196996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_MAC_HINT, 197096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_WIPHY_FREQ_HINT, 197196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 197296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_MAX_AP_ASSOC_STA, 197396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 1974df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_ATTR_TDLS_PEER_CAPABILITY, 1975df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 19767832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_ATTR_IFACE_SOCKET_OWNER, 19777832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt 19789ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_CSA_C_OFFSETS_TX, 19799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_MAX_CSA_COUNTERS, 19809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_TDLS_INITIATOR, 19829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19839ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_USE_RRM, 19849ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_WIPHY_DYN_ACK, 19869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_TSID, 19889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_USER_PRIO, 19899ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_ADMITTED_TIME, 19909ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19919ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_SMPS_MODE, 19929ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 19938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* add attributes here, update the policy in nl80211.c */ 19948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 19958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_AFTER_LAST, 19968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 19978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 19988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 19998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* source-level API compatibility */ 20008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION 20011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG 20028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 20048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new attributes by defining them 20058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here 20068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 20078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_CONNECT NL80211_CMD_CONNECT 20088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY 20098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES 20108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS 20118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ 20128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE 20138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE 20148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_IE NL80211_ATTR_IE 20158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR 20168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE 20178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_FRAME NL80211_ATTR_FRAME 20188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SSID NL80211_ATTR_SSID 20198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE 20208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE 20218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE 20228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP 20238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS 20248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES 20258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEY NL80211_ATTR_KEY 20268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEYS NL80211_ATTR_KEYS 20271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 20288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_SUPP_RATES 32 203004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MAX_SUPP_HT_RATES 77 20318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_SUPP_REG_RULES 32 20328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 20338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 20348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 20358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_HT_CAPABILITY_LEN 26 2036d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt#define NL80211_VHT_CAPABILITY_LEN 12 20378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_CIPHER_SUITES 5 20398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_AKM_SUITES 2 20408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 204104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 204204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 204304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* default RSSI threshold for scan results if none specified. */ 204404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_SCAN_RSSI_THOLD_OFF -300 204504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 204661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt#define NL80211_CQM_TXE_MAX_INTVL 1800 204761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 20488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 20498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_iftype - (virtual) interface types 20508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides 20528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_ADHOC: independent BSS member 20538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_STATION: managed BSS member 20548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_AP: access point 20551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces 20561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are a bit special in that they must always be tied to a pre-existing 20571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * AP type interface. 20588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_WDS: wireless distribution interface 20598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames 20608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MESH_POINT: mesh point 20618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_CLIENT: P2P client 20628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_GO: P2P group owner 2063d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev 2064d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * and therefore can't be created in the normal ways, use the 2065d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE 2066d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * commands to create and destroy one 20678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MAX: highest interface type number currently defined 20688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_IFTYPES: number of defined interface types 20698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These values are used with the %NL80211_ATTR_IFTYPE 20718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to set the type of an interface. 20728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 20748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_iftype { 20758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_UNSPECIFIED, 20768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_ADHOC, 20778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_STATION, 20788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_AP, 20798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_AP_VLAN, 20808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_WDS, 20818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MONITOR, 20828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MESH_POINT, 20838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_P2P_CLIENT, 20848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_P2P_GO, 2085d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_IFTYPE_P2P_DEVICE, 20868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 20888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_IFTYPES, 20898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1 20908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 20918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 20938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_flags - station flags 20948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Station flags. When a station is added to an AP interface, it is 20968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * assumed to be already associated (and hence authenticated.) 20978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 20988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved 20998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) 21008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames 21018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with short barker preamble 21028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_WME: station is WME/QoS capable 21038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MFP: station uses management frame protection 21041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated 2105c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should 2106c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * only be used in managed mode (even in the flags mask). Note that the 2107c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * flag can't be changed, it is only valid while adding a station, and 2108c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * attempts to change it will silently be ignored (rather than rejected 2109c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * as errors.) 2110f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers 2111f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a 2112f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * previously added station into associated state 21138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MAX: highest station flag number currently defined 21148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_AFTER_LAST: internal use 21158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 21168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_flags { 21178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_FLAG_INVALID, 21188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_AUTHORIZED, 21198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_SHORT_PREAMBLE, 21208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_WME, 21218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_MFP, 21221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_FLAG_AUTHENTICATED, 21231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_FLAG_TDLS_PEER, 2124f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_FLAG_ASSOCIATED, 21258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 21278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_FLAG_AFTER_LAST, 21288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1 21298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 21308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 213104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER 213204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 21338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 21348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * struct nl80211_sta_flag_update - station flags mask/set 21358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @mask: mask of station flags to set 21368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @set: which values to set them to 21378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 21388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Both mask and set contain bits as per &enum nl80211_sta_flags. 21398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 21408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct nl80211_sta_flag_update { 21418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __u32 mask; 21428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __u32 set; 21438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} __attribute__((packed)); 21448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 21468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_rate_info - bitrate information 21478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 21488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_TXRATE 21498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about the bitrate of a station. 215061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * There are 2 attributes for bitrate, a legacy one that represents 215161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * a 16-bit value, and new one that represents a 32-bit value. 215261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * If the rate value fits into 16 bit, both attributes are reported 215361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * with the same value. If the rate is too high to fit into 16 bits 215461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * (>6.5535Gbps) only 32-bit attribute is included. 215561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * User space tools encouraged to use the 32-bit attribute and fall 215661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * back to the 16-bit one for compatibility with older kernels. 21578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 21588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved 21598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s) 21608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8) 2161a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate 21628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval 216361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s) 21648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined 2165a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8) 2166a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8) 2167a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate 2168a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: 80+80 MHz VHT rate 2169a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate 21708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_AFTER_LAST: internal use 21718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 21728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_rate_info { 21738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_RATE_INFO_INVALID, 21748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_BITRATE, 21758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_MCS, 21768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_40_MHZ_WIDTH, 21778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_SHORT_GI, 217861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_RATE_INFO_BITRATE32, 2179a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_VHT_MCS, 2180a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_VHT_NSS, 2181a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_80_MHZ_WIDTH, 2182a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_80P80_MHZ_WIDTH, 2183a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_160_MHZ_WIDTH, 21848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 21868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_RATE_INFO_AFTER_LAST, 21878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1 21888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 21898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 21911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_bss_param - BSS information collected by STA 21921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 21931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM 21941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * when getting information about the bitrate of a station. 21951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 21961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved 21971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag) 21981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled 21991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (flag) 22001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled 22011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (flag) 22021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8) 22031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16) 22041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined 22051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use 22061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 22071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_bss_param { 22081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_BSS_PARAM_INVALID, 22091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_CTS_PROT, 22101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_SHORT_PREAMBLE, 22111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME, 22121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_DTIM_PERIOD, 22131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_BEACON_INTERVAL, 22141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 22161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_BSS_PARAM_AFTER_LAST, 22171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1 22181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 22191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 22218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_info - station information 22228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 22238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_STA_INFO 22248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a station. 22258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 22268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved 22278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs) 22288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES: total received bytes (u32, from this station) 22298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station) 2230f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES64: total received bytes (u64, from this station) 2231f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (u64, to this station) 22328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 22338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 22341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing info as possible, see &enum nl80211_rate_info 22358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station) 22368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (u32, to this 22378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * station) 22388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) 22398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) 22408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) 22411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_LLID: the station's mesh LLID 22421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLID: the station's mesh PLID 22431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station 22441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (see %enum nl80211_plink_state) 22451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested 22461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attribute, like NL80211_STA_INFO_TX_BITRATE. 22471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute 22481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing info as possible, see &enum nl80211_sta_bss_param 22491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected 22501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. 2251c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) 225204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) 2253f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode 2254f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode 2255f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards 2256f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * non-peer STA 22578bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU 22588bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Contains a nested array of signal strength attributes (u8, dBm) 22598bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average 22608bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. 22619ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the 22629ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 802.11 header (u32, kbps) 22631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_INFO_AFTER_LAST: internal 22641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_MAX: highest possible station info attribute 22658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 22668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_info { 22678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_INFO_INVALID, 22688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_INACTIVE_TIME, 22698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_RX_BYTES, 22708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_BYTES, 22718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_LLID, 22728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_PLID, 22738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_PLINK_STATE, 22748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_SIGNAL, 22758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_BITRATE, 22768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_RX_PACKETS, 22778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_PACKETS, 22788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_RETRIES, 22798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_FAILED, 22808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_SIGNAL_AVG, 22811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_RX_BITRATE, 22821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_BSS_PARAM, 22831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_CONNECTED_TIME, 22841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_STA_FLAGS, 2285c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_STA_INFO_BEACON_LOSS, 228604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_STA_INFO_T_OFFSET, 2287f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_LOCAL_PM, 2288f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_PEER_PM, 2289f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_NONPEER_PM, 2290f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_RX_BYTES64, 2291f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_TX_BYTES64, 22928bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_STA_INFO_CHAIN_SIGNAL, 22938bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_STA_INFO_CHAIN_SIGNAL_AVG, 22949ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_STA_INFO_EXPECTED_THROUGHPUT, 22958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 22978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_INFO_AFTER_LAST, 22988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 22998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 23008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 23028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_flags - nl80211 mesh path flags 23038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 23048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active 23058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running 23068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN 23078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set 23088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded 23098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 23108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_flags { 23118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_ACTIVE = 1<<0, 23128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_RESOLVING = 1<<1, 23138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_SN_VALID = 1<<2, 23148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_FIXED = 1<<3, 23158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_RESOLVED = 1<<4, 23168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 23178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 23198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_info - mesh path information 23208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 23218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting 23228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about a mesh path. 23238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 23248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved 23258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination 23268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_SN: destination sequence number 23278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path 23288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now 23298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in 23308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mpath_flags; 23318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec 23328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries 23338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number 23348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defind 23358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_AFTER_LAST: internal use 23368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 23378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_info { 23388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MPATH_INFO_INVALID, 23398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_FRAME_QLEN, 23408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_SN, 23418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_METRIC, 23428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_EXPTIME, 23438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_FLAGS, 23448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, 23458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_DISCOVERY_RETRIES, 23468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 23488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MPATH_INFO_AFTER_LAST, 23498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 23508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 23518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 23538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band_attr - band attributes 23548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved 23558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, 23568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of nested frequency attributes 23578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, 23588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of nested bitrate attributes 23598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as 23608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * defined in 802.11n 23618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE 23628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n 23638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n 236404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as 236504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * defined in 802.11ac 236604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE 23678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined 23688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_AFTER_LAST: internal use 23698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 23708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band_attr { 23718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BAND_ATTR_INVALID, 23728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_FREQS, 23738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_RATES, 23748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_MCS_SET, 23768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_CAPA, 23778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_AMPDU_FACTOR, 23788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_AMPDU_DENSITY, 23798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 238004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_ATTR_VHT_MCS_SET, 238104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_ATTR_VHT_CAPA, 238204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 23838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 23848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BAND_ATTR_AFTER_LAST, 23858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 23868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 23878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA 23898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 23908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 23918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_frequency_attr - frequency attributes 23928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved 23938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz 23948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current 23958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 2396fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation 2397fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * are permitted on this channel, this includes sending probe 2398fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * requests, or modes of operation that require beaconing. 23998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory 24008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * on this channel in current regulatory domain. 24018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm 24028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (100 * dBm). 2403f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS 2404f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (enum nl80211_dfs_state) 2405f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long 2406f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this channel is in this DFS state. 2407f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this 2408f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * channel as the control channel 2409f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this 2410f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * channel as the control channel 2411f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel 2412f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * as the primary or any of the secondary channels isn't possible, 2413f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this includes 80+80 channels 2414f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel 2415f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * using this channel as the primary or any of the secondary channels 2416f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * isn't possible 2417df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 24187832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this 24197832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel. A channel that has the INDOOR_ONLY attribute can only be 24207832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * used when there is a clear assessment that the device is operating in 24217832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * an indoor surroundings, i.e., it is connected to AC power (and not 24227832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * through portable DC inverters) or is under the control of a master 24237832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * that is acting as an AP and is connected to AC power. 24247832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_GO_CONCURRENT: GO operation is allowed on this 24257832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel if it's connected concurrently to a BSS on the same channel on 24267832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz 24277832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO on a 24287832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel that has the GO_CONCURRENT attribute set can be done when there 24297832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * is a clear assessment that the device is operating under the guidance of 24307832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * an authorized master, i.e., setting up a GO while the device is also 24317832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * connected to an AP with DFS and radar detection on the UNII band (it is 24327832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * up to user-space, i.e., wpa_supplicant to perform the required 24337832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * verifications) 24347832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed 24357832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * on this channel in current regulatory domain. 24367832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed 24377832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * on this channel in current regulatory domain. 24388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number 24398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 24408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use 24417832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * 24427832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122 24437832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * for more information on the FCC description of the relaxations allowed 24447832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and 24457832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * NL80211_FREQUENCY_ATTR_GO_CONCURRENT. 24468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 24478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_frequency_attr { 24488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_FREQUENCY_ATTR_INVALID, 24498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_FREQ, 24508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_DISABLED, 2451fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_IR, 2452fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __NL80211_FREQUENCY_ATTR_NO_IBSS, 24538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_RADAR, 24548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_MAX_TX_POWER, 2455f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_STATE, 2456f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_TIME, 2457f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_HT40_MINUS, 2458f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, 2459f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_80MHZ, 2460f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_160MHZ, 2461df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_CAC_TIME, 24627832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_INDOOR_ONLY, 24637832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_GO_CONCURRENT, 24647832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_20MHZ, 24657832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_10MHZ, 24668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 24678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 24688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_FREQUENCY_ATTR_AFTER_LAST, 24698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 24708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 24718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 24728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER 2473fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR 2474fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR 2475fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR 24768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 24778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 24788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bitrate_attr - bitrate attributes 24798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved 24808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps 24818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported 24828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in 2.4 GHz band. 24838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number 24848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 24858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use 24868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 24878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bitrate_attr { 24888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BITRATE_ATTR_INVALID, 24898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_RATE, 24908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, 24918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 24928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 24938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BITRATE_ATTR_AFTER_LAST, 24948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 24958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 24968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 24978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 24988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_initiator - Indicates the initiator of a reg domain request 24998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world 25008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 25018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the 25028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 25038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the 25048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * wireless core it thinks its knows the regulatory domain we should be in. 25058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an 25068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 802.11 country information element with regulatory information it 25078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * thinks we should consider. cfg80211 only processes the country 25088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * code from the IE, and relies on the regulatory domain information 25091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * structure passed by userspace (CRDA) from our wireless-regdb. 25108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * If a channel is enabled but the country code indicates it should 25118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * be disabled we disable the channel and re-enable it upon disassociation. 25128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 25138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_initiator { 25148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_CORE, 25158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_USER, 25168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_DRIVER, 25178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_COUNTRY_IE, 25188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 25198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 25218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_type - specifies the type of regulatory domain 25228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains 25238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to a specific country. When this is set you can count on the 25248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ISO / IEC 3166 alpha2 country code being valid. 25258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory 25268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain. 25278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom 25288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver specific world regulatory domain. These do not apply system-wide 25298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and are only applicable to the individual devices which have requested 25308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * them to be applied. 25318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product 25328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of an intersection between two regulatory domains -- the previously 25338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set regulatory domain on the system and the last accepted regulatory 25348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain request to be processed. 25358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 25368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_type { 25378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_COUNTRY, 25388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_WORLD, 25398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_CUSTOM_WORLD, 25408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_INTERSECTION, 25418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 25428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 25448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_attr - regulatory rule attributes 25458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved 25468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional 25478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * considerations for a given frequency range. These are the 25488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_reg_rule_flags. 25498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory 25508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rule in KHz. This is not a center of frequency but an actual regulatory 25518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * band edge. 25528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule 25538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in KHz. This is not a center a frequency but an actual regulatory 25548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * band edge. 25558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this 2556df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * frequency range, in KHz. 25578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain 25588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for a given frequency range. The value is in mBi (100 * dBi). 25598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * If you don't have one then don't send this. 25608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for 25618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a given frequency range. The value is in mBm (100 * dBm). 2562df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 2563df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * If not present or 0 default CAC time will be used. 25648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number 25658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 25668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use 25678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 25688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_attr { 25698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_REG_RULE_ATTR_INVALID, 25708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_RULE_FLAGS, 25718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_START, 25738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_END, 25748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_MAX_BW, 25758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, 25778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_POWER_RULE_MAX_EIRP, 25788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2579df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_ATTR_DFS_CAC_TIME, 2580df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 25818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 25828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_REG_RULE_ATTR_AFTER_LAST, 25838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 25848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 25858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 25871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sched_scan_match_attr - scheduled scan match attributes 25881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved 25891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, 259096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * only report BSS with matching SSID. 259104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a 259296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * BSS in scan results. Filtering is turned off if not specified. Note that 259396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * if this attribute is in a match set of its own, then it is treated as 259496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * the default value for all matchsets with an SSID, rather than being a 259596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * matchset of its own without an RSSI filter. This is due to problems with 259696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * how this API was implemented in the past. Also, due to the same problem, 259796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * the only way to create a matchset with only an RSSI filter (with this 259896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * attribute) is if there's only a single matchset with the RSSI attribute. 25991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter 26001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attribute number currently defined 26011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use 26021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 26031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sched_scan_match_attr { 26041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, 26051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 260604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_SSID, 260704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_RSSI, 26081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 26091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 26101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, 26111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 26121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1 26131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 26141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 261504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* only for backward compatibility */ 261604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID 261704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 26181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 26198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_flags - regulatory rule flags 26208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed 26228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_CCK: CCK modulation not allowed 26238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_INDOOR: indoor operation not allowed 26248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed 26258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_DFS: DFS support is required to be used 26268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links 26278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links 2628fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, 2629fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * this includes probe requests or modes of operation that require 2630fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * beaconing. 2631df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated 2632df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * base on contiguous rules and wider channels will be allowed to cross 2633df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * multiple contiguous/overlapping frequency ranges. 26348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 26358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_flags { 26368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_OFDM = 1<<0, 26378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_CCK = 1<<1, 26388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_INDOOR = 1<<2, 26398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_OUTDOOR = 1<<3, 26408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_DFS = 1<<4, 26418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_PTP_ONLY = 1<<5, 26428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_PTMP_ONLY = 1<<6, 2643fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_RRF_NO_IR = 1<<7, 2644fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __NL80211_RRF_NO_IBSS = 1<<8, 2645df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_RRF_AUTO_BW = 1<<11, 26468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 26478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2648fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR 2649fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR 2650fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR NL80211_RRF_NO_IR 2651fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 2652fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/* For backport compatibility with older userspace */ 2653fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS) 2654fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 26558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 2656c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * enum nl80211_dfs_regions - regulatory DFS regions 2657c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 2658c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_DFS_UNSET: Country has no DFS master region specified 265904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_FCC: Country follows DFS master rules from FCC 266004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI 266104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec 2662c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt */ 2663c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtenum nl80211_dfs_regions { 2664c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_UNSET = 0, 2665c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_FCC = 1, 2666c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_ETSI = 2, 2667c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_JP = 3, 2668c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt}; 2669c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 2670c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt/** 267161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * enum nl80211_user_reg_hint_type - type of user regulatory hint 267261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 267361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always 267461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * assumed if the attribute is not set. 267561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular 267661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * base station. Device drivers that have been tested to work 267761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * properly to support this type of hint can enable these hints 267861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature 267961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * capability on the struct wiphy. The wireless core will 268061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * ignore all cell base station hints until at least one device 268161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * present has been registered with the wireless core that 268261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a 268361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * supported feature. 26847832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the 26857832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * platform is operating in an indoor environment. 268661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt */ 268761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtenum nl80211_user_reg_hint_type { 268861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_USER_REG_HINT_USER = 0, 268961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_USER_REG_HINT_CELL_BASE = 1, 26907832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_USER_REG_HINT_INDOOR = 2, 269161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt}; 269261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 269361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt/** 26948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_survey_info - survey information 26958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_SURVEY_INFO 26978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a survey. 26988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved 27008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel 27018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 27028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used 27038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_CHANNEL_TIME: amount of time (in ms) that the radio 27048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * spent on this channel 27058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY: amount of the time the primary 27068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel was sensed busy (either due to activity or energy detect) 27078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY: amount of time the extension 27088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel was sensed busy 27098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_CHANNEL_TIME_RX: amount of time the radio spent 27108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * receiving data 27118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_CHANNEL_TIME_TX: amount of time the radio spent 27128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * transmitting data 27138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number 27148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 27158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use 27168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 27178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_survey_info { 27188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_SURVEY_INFO_INVALID, 27198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_FREQUENCY, 27208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_NOISE, 27218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_IN_USE, 27228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_CHANNEL_TIME, 27238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY, 27248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY, 27258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_CHANNEL_TIME_RX, 27268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_CHANNEL_TIME_TX, 27278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 27298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_SURVEY_INFO_AFTER_LAST, 27308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1 27318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 27328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 27348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mntr_flags - monitor configuration flags 27358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Monitor configuration flags. 27378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_INVALID: reserved 27398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS 27418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP 27428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_CONTROL: pass control frames 27438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering 27448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. 27458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * overrides all other flags. 2746e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address 2747e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * and ACK incoming unicast packets. 27488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use 27508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag 27518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 27528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mntr_flags { 27538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MNTR_FLAG_INVALID, 27548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_FCSFAIL, 27558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_PLCPFAIL, 27568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_CONTROL, 27578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_OTHER_BSS, 27588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_COOK_FRAMES, 2759e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_MNTR_FLAG_ACTIVE, 27608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 27628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MNTR_FLAG_AFTER_LAST, 27638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1 27648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 27658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 2767f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_mesh_power_mode - mesh power save modes 2768f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 2769f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is 2770f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * not known or has not been set yet. 2771f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is 2772f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in Awake state all the time. 2773f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will 2774f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * alternate between Active and Doze states, but will wake up for 2775f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * neighbor's beacons. 2776f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will 2777f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * alternate between Active and Doze states, but may not wake up 2778f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * for neighbor's beacons. 2779f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 2780f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_MESH_POWER_AFTER_LAST - internal use 2781f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_MAX - highest possible power save level 2782f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 2783f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2784f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_mesh_power_mode { 2785f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_UNKNOWN, 2786f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_ACTIVE, 2787f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_LIGHT_SLEEP, 2788f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_DEEP_SLEEP, 2789f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2790f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __NL80211_MESH_POWER_AFTER_LAST, 2791f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1 2792f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 2793f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2794f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 27958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_meshconf_params - mesh configuration parameters 27968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh configuration parameters. These can be changed while the mesh is 27981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * active. 27998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_INVALID: internal use 28018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in 280304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units, used by the Peer Link Open message 28048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in 280604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units, used by the peer link management to close a peer link 28078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in 280904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units 28108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed 281204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * on this mesh interface 28138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link 281504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * open retries that can be sent to establish a new peer link instance in a 281604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * mesh 28178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh 281904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * point. 28208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28212f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open 28222f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * peer links when we detect compatible mesh peers. Disabled if 28232f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are 28242f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * set. 28258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames 282704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * containing a PREQ that an MP can send to a particular destination (path 282804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * target) 28298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths 283104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (in milliseconds) 28328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait 283404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * until giving up on a path discovery (in milliseconds) 28358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh 283704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * points receiving a PREQ shall consider the forwarding information from 283804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the root to be valid. (TU = time unit) 28398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in 284104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * TUs) during which an MP can send only one action frame containing a PREQ 284204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * reference element 28438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) 284504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * that it takes for an HWMP information element to propagate across the 284604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * mesh 28478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not 28491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 28501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a 285104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * source mesh point for path selection elements. 28521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 28531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between 285404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * root announcements are transmitted. 28551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 28561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has 285704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * access to a broader network beyond the MBSS. This is done via Root 285804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Announcement frames. 28598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2860c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in 286104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * TUs) during which a mesh STA can send only one Action frame containing a 286204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * PERR element. 2863c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 2864c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding 286504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * or forwarding entity (default is TRUE - forwarding entity) 286604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 286704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the 286804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * threshold for average signal strength of candidate station to establish 286904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * a peer link. 287004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 287104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors 287204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * to synchronize to for 11s default synchronization method 287304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (see 11C.12.2.2) 287404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 287504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode. 2876c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 28778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 28788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 287904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for 288004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * which mesh STAs receiving a proactive PREQ shall consider the forwarding 288104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * information to the root mesh STA to be valid. 288204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 288304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between 288404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * proactive PREQs are transmitted. 288504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 288604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time 288704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (in TUs) during which a mesh STA can send only one Action frame 288804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * containing a PREQ element for root path confirmation. 288904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 2890f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links. 2891f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * type &enum nl80211_mesh_power_mode (u32) 2892f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 2893f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) 2894f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 2895e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've 2896e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * established peering with for longer than this time (in seconds), then 2897e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * remove it from the STA's list of peers. Default is 30 minutes. 2898e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 28998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 29008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 29018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_meshconf_params { 29028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MESHCONF_INVALID, 29038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_RETRY_TIMEOUT, 29048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_CONFIRM_TIMEOUT, 29058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HOLDING_TIMEOUT, 29068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MAX_PEER_LINKS, 29078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MAX_RETRIES, 29088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_TTL, 29098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_AUTO_OPEN_PLINKS, 29108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, 29118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_PATH_REFRESH_TIME, 29128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, 29138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, 29148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, 29158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, 29168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_ROOTMODE, 29178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_ELEMENT_TTL, 29181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESHCONF_HWMP_RANN_INTERVAL, 29191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESHCONF_GATE_ANNOUNCEMENTS, 2920c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, 2921c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_MESHCONF_FORWARDING, 292204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_RSSI_THRESHOLD, 292304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, 292404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HT_OPMODE, 292504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, 292604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_ROOT_INTERVAL, 292704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, 2928f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESHCONF_POWER_MODE, 2929f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESHCONF_AWAKE_WINDOW, 2930e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_MESHCONF_PLINK_TIMEOUT, 29318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 29338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MESHCONF_ATTR_AFTER_LAST, 29348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1 29358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 29368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 29381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_mesh_setup_params - mesh setup parameters 29391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh setup parameters. These are used to start/join a mesh and cannot be 29411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * changed while the mesh is active. 29421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_INVALID: Internal use 29441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a 294604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific path selection algorithm or disable it to use the 294704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * default HWMP. 29481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a 295004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific path metric or disable it to use the default Airtime 295104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * metric. 29521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a 295404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * robust security network ie, or a vendor specific information element 295504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * that vendors will use to identify the path selection methods and 295604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * metrics in use. 29571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication 295904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * daemon will be authenticating mesh candidates. 29601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication 296204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * daemon will be securing peer link frames. AMPE is a secured version of 296304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Mesh Peering Management (MPM) and is implemented with the assistance of 296404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * a userspace daemon. When this flag is set, the kernel will send peer 296504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * management frames to a userspace daemon that will implement AMPE 296604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * functionality (security capabilities selection, key confirmation, and 296704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * key management). When the flag is unset (default), the kernel can 296804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * autonomously complete (unsecured) mesh peering without the need of a 296904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * userspace daemon. 297004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 297104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a 297204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific synchronization method or disable it to use the default 297304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * neighbor offset synchronization 29741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 29752f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will 29762f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * implement an MPM which handles peer allocation and state. 29772f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 29788bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication 29798bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE). 29808bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Default is no authentication method required. 29818bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * 29821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number 298304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 29841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use 29851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 29861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_mesh_setup_params { 29871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_MESH_SETUP_INVALID, 29881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, 29891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, 29901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_IE, 29911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_AUTH, 29921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_AMPE, 299304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, 29942f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_MPM, 29958bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_MESH_SETUP_AUTH_PROTOCOL, 29961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 29971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 29981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_MESH_SETUP_ATTR_AFTER_LAST, 29991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1 30001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 30011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 30021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 30038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_txq_attr - TX queue parameter attributes 30048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved 300504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) 30068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning 30078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * disabled 30088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form 30098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2^n-1 in the range 1..32767] 30108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form 30118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2^n-1 in the range 1..32767] 30128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255] 30138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal 30148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number 30158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 30168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_txq_attr { 30178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXQ_ATTR_INVALID, 301804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_TXQ_ATTR_AC, 30198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_TXOP, 30208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_CWMIN, 30218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_CWMAX, 30228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_AIFS, 30238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 30258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXQ_ATTR_AFTER_LAST, 30268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 30278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 30288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 302904949598a23f501be6eec21697465fd46a28840aDmitry Shmidtenum nl80211_ac { 303004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_VO, 303104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_VI, 303204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_BE, 303304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_BK, 303404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_NUM_ACS 30358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 30368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 303704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* backward compat */ 303804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC 303904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VO NL80211_AC_VO 304004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VI NL80211_AC_VI 304104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BE NL80211_AC_BE 304204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BK NL80211_AC_BK 304304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 3044a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/** 3045a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_channel_type - channel type 3046a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel 3047a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT20: 20 MHz HT channel 3048a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel 3049a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * below the control channel 3050a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel 3051a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * above the control channel 3052a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */ 30538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_channel_type { 30548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_NO_HT, 30558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT20, 30568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT40MINUS, 30578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT40PLUS 30588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 30598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 3061a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_chan_width - channel width definitions 3062a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 3063a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH 3064a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute. 3065a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 3066a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel 3067a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel 3068a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3069a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3070a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3071a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3072a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3073a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well 3074a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3075a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3076e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel 3077e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel 3078a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */ 3079a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidtenum nl80211_chan_width { 3080a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_20_NOHT, 3081a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_20, 3082a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_40, 3083a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_80, 3084a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_80P80, 3085a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_160, 3086e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CHAN_WIDTH_5, 3087e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CHAN_WIDTH_10, 3088e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 3089e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3090e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 3091e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_bss_scan_width - control channel width for a BSS 3092e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 3093e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute. 3094e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 3095e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible 3096e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide 3097e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide 3098e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 3099e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_bss_scan_width { 3100e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_20, 3101e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_10, 3102e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_5, 3103a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt}; 3104a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 3105a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/** 31068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss - netlink attributes for a BSS 31078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 31088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_INVALID: invalid 31098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) 31108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) 31118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) 31129ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (if @NL80211_BSS_PRESP_DATA is present then this is known to be 31139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * from a probe response, otherwise it may be from the same beacon 31149ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * that the NL80211_BSS_BEACON_TSF will be from) 31158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) 31168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) 31178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the 31188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * raw information elements from the probe response/beacon (bin); 31199ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * if the %NL80211_BSS_BEACON_IES attribute is present and the data is 31209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * different then the IEs here are from a Probe Response frame; otherwise 31219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * they are from a Beacon frame. 31228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * However, if the driver does not indicate the source of the IEs, these 31238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEs may be from either frame subtype. 31249ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the 31259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * data here is known to be from a probe response, without any heuristics. 31268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon 31278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in mBm (100 * dBm) (s32) 31288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon 31298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in unspecified units, scaled to 0..100 (u8) 31308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS: status, if this BSS is "used" 31318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms 31328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information 31338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * elements from a Beacon frame (bin); not present if no Beacon frame has 31348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * yet been received 3135e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel 3136e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * (u32, enum nl80211_bss_scan_width) 31379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64) 31389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (not present if no beacon frame has been received yet) 31399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and 31409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_TSF is known to be from a probe response (flag attribute) 31418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_AFTER_LAST: internal 31428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_MAX: highest BSS attribute 31438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss { 31458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BSS_INVALID, 31468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BSSID, 31478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_FREQUENCY, 31488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_TSF, 31498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BEACON_INTERVAL, 31508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_CAPABILITY, 31518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_INFORMATION_ELEMENTS, 31528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SIGNAL_MBM, 31538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SIGNAL_UNSPEC, 31548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS, 31558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SEEN_MS_AGO, 31568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BEACON_IES, 3157e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH, 31589ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_BSS_BEACON_TSF, 31599ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_BSS_PRESP_DATA, 31608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 31628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BSS_AFTER_LAST, 31638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1 31648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 31658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 31678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss_status - BSS "status" 31688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS. 31698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS. 31708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS. 31718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 31728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The BSS status is a BSS attribute in scan dumps, which 31738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * indicates the status the interface has wrt. this BSS. 31748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss_status { 31768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_AUTHENTICATED, 31778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_ASSOCIATED, 31788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_IBSS_JOINED, 31798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 31808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 31828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_auth_type - AuthenticationType 31838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 31848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication 31858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only) 31868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r) 31878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP) 3188d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals 31898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_AUTHTYPE_NUM: internal 31908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm 31918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by 31928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * trying multiple times); this is invalid in netlink -- leave out 31938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the attribute for this on CONNECT commands. 31948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_auth_type { 31968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_OPEN_SYSTEM, 31978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_SHARED_KEY, 31988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_FT, 31998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_NETWORK_EAP, 3200d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_AUTHTYPE_SAE, 32018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 32038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_AUTHTYPE_NUM, 32048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1, 32058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_AUTOMATIC 32068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 32098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_type - Key Type 32108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key 32118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key 32128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) 32138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEYTYPES: number of defined key types 32148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 32158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_type { 32168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_GROUP, 32178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_PAIRWISE, 32188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_PEERKEY, 32198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_KEYTYPES 32218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 32248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mfp - Management frame protection state 32258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_NO: Management frame protection not used 32268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_REQUIRED: Management frame protection required 32278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 32288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mfp { 32298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MFP_NO, 32308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MFP_REQUIRED, 32318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_wpa_versions { 32348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_WPA_VERSION_1 = 1 << 0, 32358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_WPA_VERSION_2 = 1 << 1, 32368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 32398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_default_types - key default types 32408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid 32418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default 32428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * unicast key 32438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default 32448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * multicast key 32458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types 32468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 32478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_default_types { 32488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_DEFAULT_TYPE_INVALID, 32498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPE_UNICAST, 32508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPE_MULTICAST, 32518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_KEY_DEFAULT_TYPES 32538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 32568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_attributes - key attributes 32578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_INVALID: invalid 32588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of 32598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 32608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * keys 32618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_IDX: key ID (u8, 0-3) 32628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 32638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.25.1, e.g. 0x000FAC04) 32648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 32658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * CCMP keys, each six bytes in little endian 32668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT: flag indicating default key 32678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key 32688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not 32698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified the default depends on whether a MAC address was 32708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given with the command using the key or not (u32) 32718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags 32728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes, specifying what a key should be set as default as. 32738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * See &enum nl80211_key_default_types. 32748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_AFTER_LAST: internal 32758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_MAX: highest key attribute 32768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 32778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_attributes { 32788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_INVALID, 32798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DATA, 32808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_IDX, 32818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_CIPHER, 32828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_SEQ, 32838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT, 32848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_MGMT, 32858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_TYPE, 32868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPES, 32878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 32898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_AFTER_LAST, 32908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1 32918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 32938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 32948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_rate_attributes - TX rate set attributes 32958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_INVALID: invalid 32968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection 32978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with 32988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1 = 500 kbps) but without the IE length restriction (at most 32998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_MAX_SUPP_RATES in a single array). 3300fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection 330104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * in an array of MCS numbers. 3302fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, 3303fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * see &struct nl80211_txrate_vht 330496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi 33058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_AFTER_LAST: internal 33068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_MAX: highest TX rate attribute 33078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 33088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_rate_attributes { 33098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXRATE_INVALID, 33108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXRATE_LEGACY, 3311fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_TXRATE_HT, 3312fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_TXRATE_VHT, 331396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_GI, 33148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 33168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXRATE_AFTER_LAST, 33178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1 33188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3320fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_TXRATE_MCS NL80211_TXRATE_HT 3321fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VHT_NSS_MAX 8 3322fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 3323fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/** 3324fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap 3325fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) 3326fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 3327fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_txrate_vht { 3328fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u16 mcs[NL80211_VHT_NSS_MAX]; 3329fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt}; 3330fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 333196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidtenum nl80211_txrate_gi { 333296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_DEFAULT_GI, 333396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_FORCE_SGI, 333496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_FORCE_LGI, 333596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt}; 333696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 33378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 33388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band - Frequency band 33398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_2GHZ: 2.4 GHz ISM band 33408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz) 334104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz) 33428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 33438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band { 33448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_2GHZ, 33458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_5GHZ, 334604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_60GHZ, 33478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 334904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/** 335004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * enum nl80211_ps_state - powersave state 335104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_DISABLED: powersave is disabled 335204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_ENABLED: powersave is enabled 335304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt */ 33548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_ps_state { 33558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_PS_DISABLED, 33568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_PS_ENABLED, 33578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 33608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attr_cqm - connection quality monitor attributes 33618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_INVALID: invalid 33628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies 33638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the threshold for the RSSI level at which an event will be sent. Zero 33648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to disable. 33658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies 33668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the minimum amount the RSSI level must change after an event before a 33678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * new event may be issued (to reduce effects of RSSI oscillation). 33688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event 33698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many 33708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * consecutive packets were not acknowledged by the peer 337161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures 337261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * during the given %NL80211_ATTR_CQM_TXE_INTVL before an 337361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and 337461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_PKTS is generated. 337561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given 337661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is 337761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * checked. 337861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic 337961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * interval in which %NL80211_ATTR_CQM_TXE_PKTS and 338061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an 338161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting. 33828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_AFTER_LAST: internal 33838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_MAX: highest key attribute 33848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 33858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attr_cqm { 33868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_CQM_INVALID, 33878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_THOLD, 33888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_HYST, 33898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, 33908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_PKT_LOSS_EVENT, 339161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_RATE, 339261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_PKTS, 339361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_INTVL, 33948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 33968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_CQM_AFTER_LAST, 33978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1 33988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 34008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 34018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event 34028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the 34038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * configured threshold 34048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the 34058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * configured threshold 340604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: The device experienced beacon loss. 340704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (Note that deauth/disassoc will still follow if the AP is not 340804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * available. This event might get used as roaming event, etc.) 34098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 34108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_cqm_rssi_threshold_event { 34118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW, 34128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, 341304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CQM_RSSI_BEACON_LOSS_EVENT, 34148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 34158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 34168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 34178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 34188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_power_setting - TX power adjustment 34198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power 34208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter 34218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter 34228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 34238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_power_setting { 34248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_AUTOMATIC, 34258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_LIMITED, 34268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_FIXED, 34278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 34288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 34291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 3430e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_packet_pattern_attr - packet pattern attribute 3431e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute 3432e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has 34331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a zero bit are ignored 3434e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have 34351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a bit for each byte in the pattern. The lowest-order bit corresponds 34361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the first byte of the pattern, but the bytes of the pattern are 34371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in a little-endian-like format, i.e. the 9th byte of the pattern 34381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * corresponds to the lowest-order bit in the second byte of the mask. 34391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where 34401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * xx indicates "don't care") would be represented by a pattern of 3441f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * twelve zero bytes, and a mask of "0xed,0x01". 34421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Note that the pattern matching is done as though frames were not 34431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked 34441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * first (including SNAP header unpacking) and then matched. 3445e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after 3446f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * these fixed number of bytes of received packet 3447e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_PKTPAT: number of attributes 3448e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @MAX_NL80211_PKTPAT: max attribute number 34491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 3450e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_packet_pattern_attr { 3451e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __NL80211_PKTPAT_INVALID, 3452e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_MASK, 3453e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_PATTERN, 3454e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_OFFSET, 34551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 3456e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NUM_NL80211_PKTPAT, 3457e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1, 34581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 34591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 34601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 3461e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_pattern_support - packet pattern support information 34621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_patterns: maximum number of patterns supported 34631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @min_pattern_len: minimum length of each pattern 34641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_pattern_len: maximum length of each pattern 3465f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_pkt_offset: maximum Rx packet offset 34661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 34671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when 3468e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in 3469e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of 3470e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE in the capability information given 3471e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * by the kernel to userspace. 34721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 3473e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_pattern_support { 34741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 max_patterns; 34751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 min_pattern_len; 34761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 max_pattern_len; 3477f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 max_pkt_offset; 34781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt} __attribute__((packed)); 34791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 3480e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/* only for backward compatibility */ 3481e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID 3482e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK 3483e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN 3484e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET 3485e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT 3486e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT 3487e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define nl80211_wowlan_pattern_support nl80211_pattern_support 3488e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 34891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 34901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_wowlan_triggers - WoWLAN trigger definitions 34911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes 34921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put 34931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the chip into a special state -- works best with chips that have 34941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * support for low-power operation already (flag) 34951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect 34961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is detected is implementation-specific (flag) 34971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed 34981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by 16 repetitions of MAC addr, anywhere in payload) (flag) 34991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns 35001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * which are passed in an array of nested attributes, each nested attribute 35011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern. 3502f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Each pattern defines a wakeup packet. Packet offset is associated with 3503f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * each pattern which is used while matching the pattern. The matching is 3504f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the 3505f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * pattern matching is done after the packet is converted to the MSDU. 35061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute 3508e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * carrying a &struct nl80211_pattern_support. 3509f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3510f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * When reporting wakeup. it is a u32 attribute containing the 0-based 3511f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * index of the pattern that caused the wakeup, in the patterns passed 3512f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * to the kernel when configuring. 35131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be 35141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used when setting, used only to indicate that GTK rekeying is supported 35151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by the device (flag) 35161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if 35171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * done by the device) (flag) 35181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request 35191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * packet (flag) 35201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag) 35211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released 35221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (on devices that have rfkill in the device) (flag) 3523f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains 3524f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame 3525f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN 3526f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute contains the original length. 3527f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11 3528f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 3529f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute if the packet was truncated somewhere. 3530f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the 3531f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 802.11 packet that caused the wakeup, e.g. a magic packet. The frame may 3532f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute 3533f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * contains the original length. 3534f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3 3535f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 3536f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute if the packet was truncated somewhere. 3537f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section 3538f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * "TCP connection wakeup" for more details. This is a nested attribute 3539f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * containing the exact information for establishing and keeping alive 3540f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the TCP connection. 3541f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the 3542f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * wakeup packet was received on the TCP connection 3543f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the 3544f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * TCP connection was lost or failed to be established 3545f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only, 3546f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the TCP connection ran out of tokens to use for data to send to the 3547f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * service 35481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers 35491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number 3550f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3551f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * These nested attributes are used to configure the wakeup triggers and 3552f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * to report the wakeup reason(s). 35531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 35541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_wowlan_triggers { 35551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_WOWLAN_TRIG_INVALID, 35561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_ANY, 35571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_DISCONNECT, 35581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_MAGIC_PKT, 35591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_PKT_PATTERN, 35601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED, 35611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE, 35621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST, 35631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE, 35641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_RFKILL_RELEASE, 3565f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211, 3566f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN, 3567f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023, 3568f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN, 3569f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_TCP_CONNECTION, 3570f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH, 3571f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST, 3572f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, 35731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 35741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 35751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_WOWLAN_TRIG, 35761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1 35771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 35781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 35791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 3580f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * DOC: TCP connection wakeup 3581f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3582f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Some devices can establish a TCP connection in order to be woken up by a 3583f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet coming in from outside their network segment, or behind NAT. If 3584f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * configured, the device will establish a TCP connection to the given 3585f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * service, and periodically send data to that service. The first data 3586f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK. 3587f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * The data packets can optionally include a (little endian) sequence 3588f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * number (in the TCP payload!) that is generated by the device, and, also 3589f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * optionally, a token from a list of tokens. This serves as a keep-alive 3590f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * with the service, and for NATed connections, etc. 3591f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3592f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * During this keep-alive period, the server doesn't send any data to the 3593f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * client. When receiving data, it is compared against the wakeup pattern 3594f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (and mask) and if it matches, the host is woken up. Similarly, if the 3595f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * connection breaks or cannot be established to start with, the host is 3596f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * also woken up. 3597f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3598f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Developer's note: ARP offload is required for this, otherwise TCP 3599f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * response packets might not go through correctly. 3600f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3601f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3602f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 3603f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence 3604f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @start: starting value 3605f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of sequence number in packet 3606f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of the sequence value to write, 1 through 4 3607f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3608f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Note: don't confuse with the TCP sequence number(s), this is for the 3609f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * keepalive packet payload. The actual value is written into the packet 3610f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in little endian. 3611f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3612f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_seq { 3613f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 start, offset, len; 3614f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 3615f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3616f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 3617f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config 3618f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of token in packet 3619f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of each token 3620f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @token_stream: stream of data to be used for the tokens, the length must 3621f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be a multiple of @len for this to make sense 3622f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3623f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token { 3624f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 offset, len; 3625f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u8 token_stream[]; 3626f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 3627f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3628f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 3629f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token_feature - data token features 3630f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @min_len: minimum token length 3631f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_len: maximum token length 3632f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @bufsize: total available token buffer size (max size of @token_stream) 3633f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3634f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token_feature { 3635f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 min_len, max_len, bufsize; 3636f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 3637f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3638f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 3639f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters 3640f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes 3641f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order) 3642f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address 3643f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (in network byte order) 3644f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because 3645f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * route lookup when configured might be invalid by the time we suspend, 3646f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and doing a route lookup when suspending is no longer possible as it 3647f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * might require ARP querying. 3648f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a 3649f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * socket and port will be allocated 3650f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16) 3651f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte. 3652f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * For feature advertising, a u32 attribute holding the maximum length 3653f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * of the data payload. 3654f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration 3655f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature 3656f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * advertising it is just a flag 3657f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration, 3658f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * see &struct nl80211_wowlan_tcp_data_token and for advertising see 3659f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * &struct nl80211_wowlan_tcp_data_token_feature. 3660f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum 3661f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * interval in feature advertising (u32) 3662f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a 3663f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * u32 attribute holding the maximum length 3664f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for 3665e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * feature advertising. The mask works like @NL80211_PKTPAT_MASK 3666f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * but on the TCP payload only. 3667f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes 3668f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @MAX_NL80211_WOWLAN_TCP: highest attribute number 3669f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3670f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_wowlan_tcp_attrs { 3671f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __NL80211_WOWLAN_TCP_INVALID, 3672f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_SRC_IPV4, 3673f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_IPV4, 3674f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_MAC, 3675f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_SRC_PORT, 3676f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_PORT, 3677f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD, 3678f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, 3679f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, 3680f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_INTERVAL, 3681f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_WAKE_PAYLOAD, 3682f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_WAKE_MASK, 3683f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3684f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt /* keep last */ 3685f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NUM_NL80211_WOWLAN_TCP, 3686f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1 3687f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 3688f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3689f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 3690e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_coalesce_rule_support - coalesce rule support information 3691e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_rules: maximum number of rules supported 3692e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @pat: packet pattern support information 3693e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_delay: maximum supported coalescing delay in msecs 3694e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 3695e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the 3696e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * capability information given by the kernel to userspace. 3697e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 3698e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_coalesce_rule_support { 3699e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __u32 max_rules; 3700e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt struct nl80211_pattern_support pat; 3701e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __u32 max_delay; 3702e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt} __attribute__((packed)); 3703e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3704e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 3705e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_attr_coalesce_rule - coalesce rule attribute 3706e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute 3707e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing 3708e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence, 3709e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * see &enum nl80211_coalesce_condition. 3710e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched 3711e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * after these fixed number of bytes of received packet 3712e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes 3713e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number 3714e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 3715e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_attr_coalesce_rule { 3716e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __NL80211_COALESCE_RULE_INVALID, 3717e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_DELAY, 3718e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_CONDITION, 3719e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_PKT_PATTERN, 3720e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3721e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt /* keep last */ 3722e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NUM_NL80211_ATTR_COALESCE_RULE, 3723e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1 3724e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 3725e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3726e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 3727e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_coalesce_condition - coalesce rule conditions 3728e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns 3729e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in a rule are matched. 3730e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns 3731e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in a rule are not matched. 3732e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 3733e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_coalesce_condition { 3734e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_COALESCE_CONDITION_MATCH, 3735e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_COALESCE_CONDITION_NO_MATCH 3736e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 3737e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3738e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 37391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_iface_limit_attrs - limit attributes 37401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_UNSPEC: (reserved) 37411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that 37421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * can be chosen from this set of interface types (u32) 37431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a 37441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * flag attribute for each interface type in this set 37451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_LIMIT: number of attributes 37461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_LIMIT: highest attribute number 37471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 37481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_iface_limit_attrs { 37491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_UNSPEC, 37501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_MAX, 37511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_TYPES, 37521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 37531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 37541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_IFACE_LIMIT, 37551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1 37561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 37571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 37581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 37591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_if_combination_attrs -- interface combination attributes 37601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_UNSPEC: (reserved) 37621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits 37631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for given interface types, see &enum nl80211_iface_limit_attrs. 37641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of 37651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that can be created in this group. This number doesn't 37661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * apply to interfaces purely managed in software, which are listed 37671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE. 37681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that 37691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * beacon intervals within this group must be all the same even for 37701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * infrastructure and AP/GO combinations, i.e. the GO(s) must adopt 37711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the infrastructure network's beacon interval. 37721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many 37731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * different channels may be used within this group. 3774f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap 3775f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * of supported channel widths for radar detection. 37769ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap 37779ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * of supported regulatory regions for radar detection. 37781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_COMB: number of attributes 37791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_COMB: highest attribute number 37801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Examples: 37821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2 37831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows an AP and a STA that must match BIs 37841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{AP, P2P-GO} <= 8 ], channels = 1, max = 8 37861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows 8 of AP/GO 37871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{STA} <= 2 ], channels = 2, max = 2 37891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows two STAs on different channels 37901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4 37921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows a STA plus three P2P interfaces 37931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * The list of these four possiblities could completely be contained 37951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate 37961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that any of these groups must match. 37971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 37981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * "Combinations" of just a single interface will not be listed here, 37991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a single interface of any valid interface type is assumed to always 38001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * be possible by itself. This means that implicitly, for each valid 38011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interface type, the following group always exists: 38021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{<type>} <= 1 ], channels = 1, max = 1 38031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 38041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_if_combination_attrs { 38051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_UNSPEC, 38061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_LIMITS, 38071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_MAXNUM, 38081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_STA_AP_BI_MATCH, 38091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_NUM_CHANNELS, 3810f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, 38119ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, 38121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 38141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_IFACE_COMB, 38151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 38161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 38171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 38201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_plink_state - state of a mesh peer link finite state machine 38211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 38221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_LISTEN: initial state, considered the implicit 38231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * state of non existant mesh peer links 38241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to 38251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this mesh peer 38261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received 38271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * from this mesh peer 38281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been 38291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * received from this mesh peer 38301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_ESTAB: mesh peer link is established 38311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled 38321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh 38331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * plink are discarded 38341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PLINK_STATES: number of peer link states 38351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states 38361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 38371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_plink_state { 38381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_LISTEN, 38391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_OPN_SNT, 38401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_OPN_RCVD, 38411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_CNF_RCVD, 38421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_ESTAB, 38431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_HOLDING, 38441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_BLOCKED, 38451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 38471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_PLINK_STATES, 38481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1 38491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 38501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38512f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/** 38522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum nl80211_plink_action - actions to perform in mesh peers 38532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 38542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_NO_ACTION: perform no action 38552f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment 38562f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer 38572f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NUM_NL80211_PLINK_ACTIONS: number of possible actions 38582f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */ 38592f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum plink_actions { 38602f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_NO_ACTION, 38612f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_OPEN, 38622f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_BLOCK, 38632f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 38642f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NUM_NL80211_PLINK_ACTIONS, 38652f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt}; 38662f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 38672f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 38681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KCK_LEN 16 38691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KEK_LEN 16 38701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_REPLAY_CTR_LEN 8 38711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 38731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_rekey_data - attributes for GTK rekey offload 38741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes 38751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KEK: key encryption key (binary) 38761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KCK: key confirmation key (binary) 38771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary) 38781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal) 38791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal) 38801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 38811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_rekey_data { 38821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_REKEY_DATA_INVALID, 38831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_KEK, 38841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_KCK, 38851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_REPLAY_CTR, 38861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 38881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_REKEY_DATA, 38891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1 38901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 38911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 38921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 38931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID 38941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in 38951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Beacon frames) 38961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element 38971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in Beacon frames 38981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID 38991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * element in Beacon frames but zero out each byte in the SSID 39001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 39011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_hidden_ssid { 39021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_NOT_IN_USE, 39031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_ZERO_LEN, 39041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_ZERO_CONTENTS 39051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 39061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 39081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_wme_attr - station WME attributes 39091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_INVALID: invalid number for nested attribute 39101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format 39111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is the same as the AC bitmap in the QoS info field. 39121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX_SP: max service period. the format is the same 39131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as the MAX_SP field in the QoS info field (but already shifted down). 39141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_AFTER_LAST: internal 39151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX: highest station WME attribute 39161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 39171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_wme_attr { 39181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_WME_INVALID, 39191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_UAPSD_QUEUES, 39201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_MAX_SP, 39211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 39231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_WME_AFTER_LAST, 39241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 39251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 39261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 39281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates 39291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes 39301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher 39311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * priority) 39321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets) 39331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag) 39341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes 39351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (internal) 39361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute 39371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (internal) 39381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 39391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_pmksa_candidate_attr { 39401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_PMKSA_CANDIDATE_INVALID, 39411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_INDEX, 39421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_BSSID, 39431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_PREAUTH, 39441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 39461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_PMKSA_CANDIDATE, 39471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1 39481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 39491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 39511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION 39521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request 39531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_SETUP: Setup TDLS link 39541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established 39551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link 39561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link 39571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 39581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_tdls_operation { 39591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_DISCOVERY_REQ, 39601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_SETUP, 39611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_TEARDOWN, 39621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_ENABLE_LINK, 39631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_DISABLE_LINK, 39641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 39651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* 39671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_ap_sme_features - device-integrated AP features 39681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Reserved for future use, no bits are defined in 39691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * NL80211_ATTR_DEVICE_AP_SME yet. 39701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_ap_sme_features { 39711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 39721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 39731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 39741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 39751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_feature_flags - device/driver features 39761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back 39771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * TX status to the socket error queue when requested with the 39781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * socket option. 3979c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. 398004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up 398104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the connected inactive stations in AP mode. 398261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested 398361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * to work properly to suppport receiving regulatory hints from 398461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * cellular base stations. 39859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only 39869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * here to reserve the value for API/ABI compatibility) 3987d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of 3988d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station 3989d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * mode 3990d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan 3991d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported 3992d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif 3993d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting 3994d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform 3995d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * OBSS scans and generate 20/40 BSS coex reports. This flag is used only 3996d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied. 3997a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window 3998a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * setting 3999a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic 4000a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * powersave 4001f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state 4002f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * transitions for AP clients. Without this flag (and if the driver 4003f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * doesn't have the AP SME in the device) the driver supports adding 4004f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations only when they're associated and adds them in associated 4005f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * state (to later be transitioned into authorized), with this flag 4006f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * they should be added before even sending the authentication reply 4007f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and then transitioned into authenticated, associated and authorized 4008f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * states using station flags. 4009f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Note that even for drivers that support this, the default is to add 4010f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations in authenticated/associated state, so to add unauthenticated 4011f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations the authenticated/associated bits have to be set in the mask. 4012f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits 4013f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (HT40, VHT 80/160 MHz) if this flag is set 40142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh 40152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Peering Management entity which may be implemented by registering for 40162f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is 40172f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * still generated by the driver. 4018e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor 4019e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * interface. An active monitor interface behaves like a normal monitor 4020e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * interface, but gets added to the driver. It ensures that incoming 4021e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * unicast packets directed at the configured interface address get ACKed. 40227832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic 40237832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the 40247832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * lifetime of a BSS. 40259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter 40269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Set IE to probe requests. 40279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE 40289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * to probe requests. 40299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period 40309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * requests sent to it by an AP. 40319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the 40329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * current tx power value into the TPC Report IE in the spectrum 40339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * management TPC Report action frame, and in the Radio Measurement Link 40349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Measurement Report action frame. 40359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout 40369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used 40379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * to enable dynack. 40389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial 40399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * multiplexing powersave, ie. can turn off all but one chain 40409ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * even on HT connections that should be using more chains. 40419ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial 40429ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * multiplexing powersave, ie. can turn off all but one chain 40439ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and then wake the rest up as required after, for example, 40449ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * rts/cts handshake. 40451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 40461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_feature_flags { 4047d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SK_TX_STATUS = 1 << 0, 4048d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_HT_IBSS = 1 << 1, 4049d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, 4050d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3, 40519ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4, 4052d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SAE = 1 << 5, 4053d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6, 4054d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SCAN_FLUSH = 1 << 7, 4055d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_AP_SCAN = 1 << 8, 4056d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_VIF_TXPOWER = 1 << 9, 4057d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10, 4058a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11, 4059a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12, 4060f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt /* bit 13 is reserved */ 4061f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, 4062f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, 40632f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_FEATURE_USERSPACE_MPM = 1 << 16, 4064e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, 40657832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, 40669ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19, 40679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20, 40689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_QUIET = 1 << 21, 40699ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22, 40709ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, 40719ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_STATIC_SMPS = 1 << 24, 40729ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, 40731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 40741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 40751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 40761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_probe_resp_offload_support_attr - optional supported 40771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * protocols for probe-response offloading by the driver/FW. 40781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute. 40791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Each enum value represents a bit in the bitmap of supported 40801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * protocols. Typically a subset of probe-requests belonging to a 40811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * supported protocol will be excluded from offload and uploaded 40821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the host. 40831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 40841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1 40851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2 40861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P 40871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u 40881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 40891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_probe_resp_offload_support_attr { 40901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0, 40911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1, 40921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2, 40931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3, 40941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 40951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 4096d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/** 4097d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_connect_failed_reason - connection request failed reasons 4098d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be 4099d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * handled by the AP is reached. 4100f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL. 4101d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */ 4102d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_connect_failed_reason { 4103d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CONN_FAIL_MAX_CLIENTS, 4104d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CONN_FAIL_BLOCKED_CLIENT, 4105d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt}; 4106d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 4107d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/** 4108d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_scan_flags - scan request control flags 4109d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 4110d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * Scan request control flags are used to control the handling 4111d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN 4112d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * requests. 4113d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 4114d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority 4115d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning 4116d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured 4117d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * as AP and the beaconing has already been configured. This attribute is 4118d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * dangerous because will destroy stations performance as a lot of frames 4119d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * will be lost while scanning off-channel, therefore it must be used only 4120d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * when really needed 4121d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */ 4122d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_scan_flags { 4123d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, 4124d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_FLUSH = 1<<1, 4125d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_AP = 1<<2, 4126d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt}; 4127d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 4128f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4129f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_acl_policy - access control policy 4130f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4131f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Access control policy is applied on a MAC list set by 4132f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to 4133f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be used with %NL80211_ATTR_ACL_POLICY. 4134f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4135f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are 4136f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * listed in ACL, i.e. allow all the stations which are not listed 4137f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in ACL to authenticate. 4138f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed 4139f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in ACL, i.e. deny all the stations which are not listed in ACL. 4140f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4141f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_acl_policy { 4142f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED, 4143f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ACL_POLICY_DENY_UNLESS_LISTED, 4144f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4145f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4146f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 41479ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * enum nl80211_smps_mode - SMPS mode 41489ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 41499ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Requested SMPS mode (for AP mode) 41509ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 41519ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_OFF: SMPS off (use all antennas). 41529ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) 41539ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and 41549ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * turn on other antennas after CTS/RTS). 41559ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt */ 41569ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidtenum nl80211_smps_mode { 41579ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_OFF, 41589ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_STATIC, 41599ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_DYNAMIC, 41609ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 41619ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt __NL80211_SMPS_AFTER_LAST, 41629ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1 41639ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt}; 41649ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 41659ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt/** 4166f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_radar_event - type of radar event for DFS operation 4167f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4168f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace 4169f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * about detected radars or success of the channel available check (CAC) 4170f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4171f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is 4172f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * now unusable. 4173f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished, 4174f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the channel is now available. 4175f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no 4176f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * change to the channel status. 4177f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is 4178f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * over, channel becomes usable. 4179f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4180f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_radar_event { 4181f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_DETECTED, 4182f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_CAC_FINISHED, 4183f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_CAC_ABORTED, 4184f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_NOP_FINISHED, 4185f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4186f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4187f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4188f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_dfs_state - DFS states for channels 4189f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4190f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Channel states used by the DFS code. 4191f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4192e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_USABLE: The channel can be used, but channel availability 4193f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * check (CAC) must be performed before using it for AP or IBSS. 4194e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it 4195f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * is therefore marked as not available. 4196e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available. 4197f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4198f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_dfs_state { 4199f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_USABLE, 4200f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_UNAVAILABLE, 4201f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_AVAILABLE, 4202f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4203f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 42042f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/** 42052f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum enum nl80211_protocol_features - nl80211 protocol features 42062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting 42072f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * wiphy dumps (if requested by the application with the attribute 42082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * %NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the 42092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or 42102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * %NL80211_ATTR_WDEV. 42112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */ 42122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum nl80211_protocol_features { 42132f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0, 42142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt}; 42152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 421651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/** 421751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers 421851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 421951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified. 422051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol. 422151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol. 422251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_APIPA: APIPA protocol. 422351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NUM_NL80211_CRIT_PROTO: must be kept last. 422451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt */ 422551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidtenum nl80211_crit_proto_id { 422651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_UNSPEC, 422751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_DHCP, 422851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_EAPOL, 422951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_APIPA, 423051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt /* add other protocols before this one */ 423151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NUM_NL80211_CRIT_PROTO 423251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt}; 423351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 423451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/* maximum duration for critical protocol measures */ 423551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt#define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ 423651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 4237e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 4238e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_rxmgmt_flags - flags for received management frame. 4239e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 4240e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Used by cfg80211_rx_mgmt() 4241e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 4242e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver. 4243e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 4244e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_rxmgmt_flags { 4245e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0, 4246e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 4247e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 4248fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/* 4249fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * If this flag is unset, the lower 24 bits are an OUI, if set 4250fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * a Linux nl80211 vendor ID is used (no such IDs are allocated 4251fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * yet, so that's not valid so far) 4252fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 4253fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VENDOR_ID_IS_LINUX 0x80000000 4254fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 4255fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/** 4256fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_vendor_cmd_info - vendor command data 4257fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the 4258fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * value is a 24-bit OUI; if it is set then a separately allocated ID 4259fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * may be used, but no such IDs are allocated yet. New IDs should be 4260fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * added to this file when needed. 4261fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @subcmd: sub-command ID for the command 4262fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 4263fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_vendor_cmd_info { 4264fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u32 vendor_id; 4265fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u32 subcmd; 4266fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt}; 4267fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 4268df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt/** 4269df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * enum nl80211_tdls_peer_capability - TDLS peer flags. 4270df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 4271df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * Used by tdls_mgmt() to determine which conditional elements need 4272df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * to be added to TDLS Setup frames. 4273df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 4274df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable. 4275df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable. 4276df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable. 4277df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt */ 4278df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidtenum nl80211_tdls_peer_capability { 4279df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_HT = 1<<0, 4280df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_VHT = 1<<1, 4281df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_WMM = 1<<2, 4282df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt}; 4283df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 42848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* __LINUX_NL80211_H */ 4285