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> 13d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * Copyright 2015-2017 Intel Deutschland GmbH 148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Permission to use, copy, modify, and/or distribute this software for any 168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * purpose with or without fee is hereby granted, provided that the above 178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * copyright notice and this permission notice appear in all copies. 188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/* 30f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * This header file defines the userspace API to the wireless stack. Please 31f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * be careful not to break things - i.e. don't move anything around or so 32f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * unless you can demonstrate that it breaks neither API nor ABI. 33f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 34f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Additions to the API should be accompanied by actual implementations in 35f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * an upstream driver, so that example implementations exist in case there 36f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * are ever concerns about the precise semantics of the API or changes are 37f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * needed, and to ensure that code for dead (no longer implemented) API 38f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * can actually be identified and removed. 39f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Nonetheless, semantics should also be documented carefully in this file. 40f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */ 41f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#include <linux/types.h> 438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 448bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt#define NL80211_GENL_NAME "nl80211" 458bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt 46f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_CONFIG "config" 47f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_SCAN "scan" 48f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_REG "regulatory" 49f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_MLME "mlme" 50f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_VENDOR "vendor" 519839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt#define NL80211_MULTICAST_GROUP_NAN "nan" 52f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MULTICAST_GROUP_TESTMODE "testmode" 53f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Station handling 568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Stations are added per interface, but a special case exists with VLAN 588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interfaces. When a station is bound to an AP interface, it may be moved 598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN). 608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The station is still assumed to belong to the AP interface it was added 618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to. 628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 632f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Station handling varies per interface type and depending on the driver's 642f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * capabilities. 652f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 662f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS 672f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: 682f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - a setup station entry is added, not yet authorized, without any rate 692f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * or capability information, this just exists to avoid race conditions 702f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 712f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * to add rate and capability information to the station and at the same 722f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * time mark it authorized. 732f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - %NL80211_TDLS_ENABLE_LINK is then used 742f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * - after this, the only valid operation is to remove it by tearing down 752f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * the TDLS link (%NL80211_TDLS_DISABLE_LINK) 762f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 772f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * TODO: need more info for other interface types 788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * DOC: Frame transmission/registration support 828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission and registration support exists to allow userspace 848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * management entities such as wpa_supplicant react to management frames 858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that are not being handled by the kernel. This includes, for example, 868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain classes of action frames that cannot be handled in the kernel 878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for various reasons. 888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame registration is done on a per-interface basis and registrations 908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cannot be removed other than by closing the socket. It is possible to 918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specify a registration filter to register, for example, only for a 928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * certain type of action frame. In particular with action frames, those 938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that userspace registers for will not be returned as unhandled by the 948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver, so that the registered application has to take responsibility 958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for doing that. 968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The type of frame that can be registered for is also dependent on the 988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver and interface type. The frame types are advertised in wiphy 998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes so applications know what to expect. 1008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NOTE: When an interface changes type while registrations are active, 1028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * these registrations are ignored until the interface type is 1038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * changed again. This means that changing the interface type can 1048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * lead to a situation that couldn't otherwise be produced, but 1058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * any such registrations will be dormant in the sense that they 1068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * will not be serviced, i.e. they will not receive any frames. 1078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Frame transmission allows userspace to send for example the required 1098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * responses to action frames. It is subject to some sanity checking, 1108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * but many frames can be transmitted. When a frame was transmitted, its 1118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * status is indicated to the sending socket. 1128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * For more technical details, see the corresponding command descriptions 1148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * below. 1158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 1168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 1178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 1181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * DOC: Virtual interface / concurrency capabilities 1191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Some devices are able to operate with virtual MACs, they can have 1211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * more than one virtual interface. The capability handling for this 1221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is a bit complex though, as there may be a number of restrictions 1231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the types of concurrency that are supported. 1241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, each device supports the interface types listed in 1261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the 1271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * types there no concurrency is implied. 1281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Once concurrency is desired, more attributes must be observed: 1301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To start with, since some interface types are purely managed in 1311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * software, like the AP-VLAN type in mac80211 for example, there's 1321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * an additional list of these, they can be added at any time and 1331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are only restricted by some semantic restrictions (e.g. AP-VLAN 1341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * cannot be added without a corresponding AP interface). This list 1351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. 1361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Further, the list of supported combinations is exported. This is 1381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically, 1391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * it exports a list of "groups", and at any point in time the 1401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that are currently active must fall into any one of 1411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the advertised groups. Within each group, there are restrictions 1421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * on the number of interfaces of different types that are supported 1431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and also the number of different channels, along with potentially 1441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * some other restrictions. See &enum nl80211_if_combination_attrs. 1451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 1461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * All together, these attributes define the concurrency of virtual 1471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that a given device supports. 1481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 1491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 1501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 151e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * DOC: packet coalesce support 152e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 153e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * In most cases, host that receives IPv4 and IPv6 multicast/broadcast 154e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * packets does not do anything with these packets. Therefore the 155e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * reception of these unwanted packets causes unnecessary processing 156e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * and power consumption. 157e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 158e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Packet coalesce feature helps to reduce number of received interrupts 159e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * to host by buffering these packets in firmware/hardware for some 160e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * predefined time. Received interrupt will be generated when one of the 161e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * following events occur. 162e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Expiration of hardware timer whose expiration time is set to maximum 163e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * coalescing delay of matching coalesce rule. 164e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) Coalescing buffer in hardware reaches it's limit. 165e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Packet doesn't match any of the configured coalesce rules. 166e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 167e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * User needs to configure following parameters for creating a coalesce 168e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * rule. 169e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * a) Maximum coalescing delay 170e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * b) List of packet patterns which needs to be matched 171e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * c) Condition for coalescence. pattern 'match' or 'no match' 172e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Multiple such rules can be created. 173e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 174e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 175e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 176d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * DOC: FILS shared key authentication offload 177d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 178d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * FILS shared key authentication offload can be advertized by drivers by 179d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support 180d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * FILS shared key authentication offload should be able to construct the 181d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * authentication and association frames for FILS shared key authentication and 182d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * eventually do a key derivation as per IEEE 802.11ai. The below additional 183d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * parameters should be given to driver in %NL80211_CMD_CONNECT. 184d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_USERNAME - used to construct keyname_nai 185d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_REALM - used to construct keyname_nai 186d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used to construct erp message 187d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_RRK - used to generate the rIK and rMSK 188d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * rIK should be used to generate an authentication tag on the ERP message and 189d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * rMSK should be used to derive a PMKSA. 190d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * rIK, rMSK should be generated and keyname_nai, sequence number should be used 191d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * as specified in IETF RFC 6696. 192d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 193d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * When FILS shared key authentication is completed, driver needs to provide the 194d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * below additional parameters to userspace. 195d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_KEK - used for key renewal 196d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used in further EAP-RP exchanges 197d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_PMKID - used to identify the PMKSA used/generated 198d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %Nl80211_ATTR_PMK - used to update PMKSA cache in userspace 199d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * The PMKSA can be maintained in userspace persistently so that it can be used 200d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * later after reboots or wifi turn off/on also. 201d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 202d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS 203d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * capable AP supporting PMK caching. It specifies the scope within which the 204d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and 205d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based 206d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * on FILS cache identifier. Additionally %NL80211_ATTR_PMK is used with 207d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_SET_PMKSA to specify the PMK corresponding to a PMKSA for driver to 208d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * use in a FILS shared key connection with PMKSA caching. 209d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt */ 210d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt 211d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt/** 2128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_commands - supported nl80211 commands 2138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNSPEC: unspecified command to catch errors 2158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request 2178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to get a list of all present wiphys. 2188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or 2198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, 220a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the 221a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attributes determining the channel width; this is used for setting 222a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * monitor mode channel), %NL80211_ATTR_WIPHY_RETRY_SHORT, 2238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 2248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD. 2258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * However, for setting the channel, see %NL80211_CMD_SET_CHANNEL 2268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * instead, the support here is for backward compatibility only. 2278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request 2288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or rename notification. Has attributes %NL80211_ATTR_WIPHY and 2298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY_NAME. 2308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes 2318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME. 2328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration; 234f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * either a dump request for all interfaces or a specific get with a 235f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * single %NL80211_ATTR_IFINDEX is supported. 2368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires 2378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE. 2388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response 2398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX, 2408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also 2418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * be sent from userspace to request creation of a new virtual interface, 2428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and 2438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFNAME. 2448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes 2458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from 2468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace to request deletion of a virtual interface, then requires 2478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attribute %NL80211_ATTR_IFINDEX. 2488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified 2508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. 2518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, 2528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. 2538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, 2548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER, 2558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and %NL80211_ATTR_KEY_SEQ attributes. 2568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX 2578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or %NL80211_ATTR_MAC. 2588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 25904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_BEACON: (not used) 26004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface 26104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL 26204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * attributes. For drivers that generate the beacon and probe responses 26304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * internally, the following attributes must be provided: %NL80211_ATTR_IE, 26404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. 26504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters 26604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that 26704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, 26804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, 2691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, 2701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, 2711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, 272f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, 273f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. 27404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * The channel to use can be set on the interface or be given using the 275a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width. 27604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP 27704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface 27804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP 2798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_STATION: Get station attributes for station identified by 2818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_STATION: Set station attributes for station identified by 2838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the 2858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the interface identified by %NL80211_ATTR_IFINDEX. 2868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC 2878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or, if no MAC address given, all stations, on the interface identified 2886c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and 2896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type 2906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * of disconnection indication should be sent to the station 2916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * (Deauthentication or Disassociation frame and reason code for that 2926c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * frame). 2938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to 2958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * destination %NL80211_ATTR_MAC on the interface identified by 2968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 2978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to 2988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * destination %NL80211_ATTR_MAC on the interface identified by 2998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 3001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by 3011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. 3021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by 3031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_MAC. 3048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the 3058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the interface identified by %NL80211_ATTR_IFINDEX. 3068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC 3078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or, if no MAC address given, all mesh paths, on the interface identified 3088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * by %NL80211_ATTR_IFINDEX. 3098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by 3108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX. 3118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set 313f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device 314f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * has a private regulatory domain, it will be returned. Otherwise, the 315f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * global regdomain will be returned. 316f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * A device will have a private regulatory domain if it uses the 317f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * regulatory_hint() API. Even when a private regdomain is used the channel 318f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * information will still be mended according to further hints from 319f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * the regulatory core to help with compliance. A dump version of this API 320f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * is now available which will returns the global regdomain as well as 321f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * all private regdomains of present wiphys (for those that have it). 322f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then 323f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * its private regdomain is the only valid one for it. The regulatory 324f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * core is not used to help with compliance in this case. 3258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command 3268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * after being queried by the kernel. CRDA replies by sending a regulatory 3278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our 3288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * current alpha2 if it found a match. It also provides 3298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each 3308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory rule is a nested set of attributes given by 3318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and 3328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by 3338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and 3348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. 3358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain 3368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to the specified ISO/IEC 3166-1 alpha2 country code. The core will 3378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * store this as a valid request and then query userspace for it. 3388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the 3408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface identified by %NL80211_ATTR_IFINDEX 3418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the 3438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface identified by %NL80211_ATTR_IFINDEX 3448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The 3468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface is identified with %NL80211_ATTR_IFINDEX and the management 3478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be 3488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * added to the end of the specified management frame is specified with 3498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IE. If the command succeeds, the requested data will be 3508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * added to all specified management frames generated by 3518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * kernel/firmware/driver. 3528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Note: This command has been removed and it is only reserved at this 3538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * point to avoid re-using existing command number. The functionality this 3548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command was planned for has been provided with cleaner design with the 3558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN, 3568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE, 3578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE. 3588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SCAN: get scan results 3608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters 3611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 362092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * probe requests at CCK rate or not. %NL80211_ATTR_BSSID can be used to 363849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * specify a BSSID to scan for; if not included, the wildcard BSSID will 364849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * be used. 3658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to 3668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_GET_SCAN and on the "scan" multicast group) 3678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, 3688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * partial scan results may be available 3698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain 371d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * intervals and certain number of cycles, as specified by 372d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is 373d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified, 374d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * scheduled scan will run in an infinite loop with the specified interval. 375d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * These attributes are mutually exculsive, 376d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if 377d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * NL80211_ATTR_SCHED_SCAN_PLANS is defined. 378d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * If for some reason scheduled scan is aborted by the driver, all scan 379d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * plans are canceled (including scan plans that did not start yet). 3801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS) 3811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are passed, they are used in the probe requests. For 3821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * broadcast, a broadcast SSID must be passed (ie. an empty 3831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * string). If no SSID is passed, no probe requests are sent and 3841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a passive scan is performed. %NL80211_ATTR_SCAN_FREQUENCIES, 3851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * if passed, define which channels should be scanned; if not 3861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * passed, all channels allowed for the current regulatory domain 3871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are used. Extra IEs can also be passed from the userspace by 388f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * using the %NL80211_ATTR_IE attribute. The first cycle of the 389f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY 390f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * is supplied. 391df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if 392df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * scheduled scan is not running. The caller may assume that as soon 393df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * as the call returns, it is safe to start a new scheduled scan again. 3941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan 3951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * results available. 3961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has 3971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * stopped. The driver may issue this event at any time during a 3981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * scheduled scan. One reason for stopping the scan is if the hardware 3991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * does not support starting an association or a normal scan while running 4001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a scheduled scan. This event is also sent when the 4011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface 4021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is brought down while a scheduled scan was running. 4031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 4048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation 4058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or noise level 4068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to 4078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) 4088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 409d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry using %NL80211_ATTR_MAC 410d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * (for the BSSID), %NL80211_ATTR_PMKID, and optionally %NL80211_ATTR_PMK 411d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * (PMK is used for PTKSA derivation in case of FILS shared key offload) or 412d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID, 413d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS 414d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier 415d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * advertized by a FILS capable AP identifying the scope of PMKSA in an 416d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * ESS. 41704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC 418d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, 419d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS 420d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * authentication. 42104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. 42204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 4238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain 4248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * has been changed and provides details of the request information 4258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that caused the change such as who initiated the regulatory request 4268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx 4278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if 4288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or 4298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain 4308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is 4318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on 4328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to (%NL80211_ATTR_REG_ALPHA2). 4338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon 4348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * has been found while world roaming thus enabling active scan or 4358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * any mode of operation that initiates TX (beacons) on a channel 4368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * where we would not have been able to do either before. As an example 4378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * if you are world roaming (regulatory domain set to world or if your 4388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver is using a custom world roaming regulatory domain) and while 4398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * doing a passive scan on the 5 GHz band you find an AP there (if not 4408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * on a DFS channel) you will now be able to actively scan for that AP 4418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * or use AP mode on your card on that same channel. Note that this will 4428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * never be used for channels 1-11 on the 2 GHz band as they are always 4438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enabled world wide. This beacon hint is only sent if your device had 4448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * either disabled active scanning or beaconing on a channel. We send to 4458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace the wiphy on which we removed a restriction from 4468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (%NL80211_ATTR_WIPHY) and the channel on which this occurred 4478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) 4488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the beacon hint was processed. 4498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_AUTHENTICATE: authentication request and notification. 4518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This command is used both as a command (request to authenticate) and 4528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * as an event on the "mlme" multicast group indicating completion of the 4538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * authentication process. 4548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When used as a command, %NL80211_ATTR_IFINDEX is used to identify the 4558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and 4568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify 4578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the SSID (mainly for association, but is included in authentication 4588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ is used 4598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to specify the frequence of the channel in MHz. %NL80211_ATTR_AUTH_TYPE 4608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used to specify the authentication type. %NL80211_ATTR_IE is used to 4618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * define IEs (VendorSpecificInfo, but also including RSN IE and FT IEs) 4628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to be added to the frame. 4638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When used as an event, this reports reception of an Authentication 4648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame in station and IBSS modes when the local MLME processed the 4658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame, i.e., it was for the local STA and was received in correct 4668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * state. This is similar to MLME-AUTHENTICATE.confirm primitive in the 4678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME SAP interface (kernel providing MLME, userspace SME). The 4688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * included %NL80211_ATTR_FRAME attribute contains the management frame 4698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (including both the header and frame body, but not FCS). This event is 4708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * also used to indicate if the authentication attempt timed out. In that 4718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * case the %NL80211_ATTR_FRAME attribute is replaced with a 4728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which 4738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * pending authentication timed out). 4748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ASSOCIATE: association request and notification; like 4758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Association and Reassociation 4768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request, 477849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). The 478849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * %NL80211_ATTR_PREV_BSSID attribute is used to specify whether the 479849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * request is for the initial association to an ESS (that attribute not 480849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * included) or for reassociation within the ESS (that attribute is 481849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * included). 4828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like 4838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to 4848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication 4858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * primitives). 4868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like 4878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to 4888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives). 4898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael 4918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * MIC (part of TKIP) failure; sent on the "mlme" multicast group; the 4928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event includes %NL80211_ATTR_MAC to describe the source MAC address of 4938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key 4948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and 4958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this 4968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event matches with MLME-MICHAELMICFAILURE.indication() primitive 4978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 4988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a 4998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * FREQ attribute (for the initial frequency if no peer can be found) 5008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those 5018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * should be fixed rather than automatically determined. Can only be 5028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * executed on a network interface that is UP, and fixed BSSID/FREQ 5038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * may be rejected. Another optional parameter is the beacon interval, 5048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not 5058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given defaults to 100 TU (102.4ms). 5068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is 5078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * determined by the network interface. 5088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute 5108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to identify the device, and the TESTDATA blob attribute to pass through 5118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to the driver. 5128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CONNECT: connection request and notification; this command 5148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * requests to connect to a specified network but without separating 5158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * auth and assoc steps. For this, you need to specify the SSID in a 5168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_SSID attribute, and can optionally specify the association 517f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP, 518f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, 51996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 52096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and 52196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ_HINT. 52296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are 52396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * restrictions on BSS selection, i.e., they effectively prevent roaming 52496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT 52596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * can be included to provide a recommendation of the initial BSS while 52696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * allowing the driver to roam to other BSSes within the ESS and also to 52796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * ignore this recommendation if the indicated BSS is not ideal. Only one 52896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * set of BSSID,frequency parameters is used (i.e., either the enforcing 52996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict 53096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT). 531849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * %NL80211_ATTR_PREV_BSSID can be used to request a reassociation within 532849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * the ESS in case the device is already associated and an association with 533849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * a different BSS is desired. 53404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Background scan period can optionally be 53504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * specified in %NL80211_ATTR_BG_SCAN_PERIOD, 53604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * if not specified default background scan configuration 53704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * in driver is used and if period value is 0, bg scan will be disabled. 53804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * This attribute is ignored if driver does not support roam scan. 5398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * It is also sent as an event, with the BSSID and response IEs when the 5408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * connection is established or failed to be established. This can be 541d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * determined by the %NL80211_ATTR_STATUS_CODE attribute (0 = success, 542d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * non-zero = failure). If %NL80211_ATTR_TIMED_OUT is included in the 543d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * event, the connection attempt failed due to not being able to initiate 544d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * authentication/association or not receiving a response from the AP. 545d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * Non-zero %NL80211_ATTR_STATUS_CODE value is indicated in that case as 546d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * well to remain backwards compatible. 5478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ROAM: request that the card roam (currently not implemented), 5488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent as an event when the card/driver roamed by itself. 5498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify 5508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * userspace that a connection was dropped by the AP or due to other 5518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and 5528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_REASON_CODE attributes are used. 5538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices 5558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * associated with this wiphy must be down and will follow. 5568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified 5588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel for the specified amount of time. This can be used to do 5598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * off-channel operations like transmit a Public Action frame and wait for 5608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a response while being associated to an AP on another channel. 5618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus 5628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the 563a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * frequency for the operation. 5648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds 5658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to remain on the channel. This command is also used as an event to 5668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notify when the requested duration starts (it may take a while for the 5678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver to schedule this time due to other concurrent needs for the 5688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio). 5698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE) 5708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that will be included with any events pertaining to this request; 5718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the cookie is also used to cancel the request. 5728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a 5738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * pending remain-on-channel duration if the desired operation has been 5748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * completed prior to expiration of the originally requested duration. 5758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the 5768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to 5778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * uniquely identify the request. 5788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This command is also used as an event to notify when a requested 5798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * remain-on-channel duration has expired. 5808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX 5828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface 5838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and @NL80211_ATTR_TX_RATES the set of allowed rates. 5848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 5858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames 5868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (via @NL80211_CMD_FRAME) for processing in userspace. This command 5878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * requires an interface index, a frame type attribute (optional for 5888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility reasons, if not given assumes action frames) 5898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and a match attribute containing the first few bytes of the frame 5908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that should match, e.g. a single byte for only a category match or 5918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * four bytes for vendor frames including the OUI. The registration 5928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cannot be dropped, but is removed automatically when the netlink 5938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * socket is closed. Multiple registrations can be made. 5948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for 5958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility 5968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This 5978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command is used both as a request to transmit a management frame and 5988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * as an event indicating reception of a frame that was not processed in 5998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * kernel code, but is for us (i.e., which may need to be processed in a 6008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * user space application). %NL80211_ATTR_FRAME is used to specify the 601a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used 602a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * to indicate on which channel the frame is to be transmitted or was 603a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * received. If this channel is not the current channel (remain-on-channel 604a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * or the operational channel) the device will switch to the given channel 605a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and transmit the frame, optionally waiting for a response for the time 6068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified using %NL80211_ATTR_DURATION. When called, this operation 6078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the 6088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * TX status event pertaining to the TX request. 6091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 6101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * management frames at CCK rate or not in 2GHz band. 6119ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA 6129ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * counters which will be updated to the current value. This attribute 6139ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * is used during CSA period. 6148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this 6158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command may be used with the corresponding cookie to cancel the wait 6168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * time if it is known that it is no longer necessary. 6178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility. 6188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame 6198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies 6208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the TX command and %NL80211_ATTR_FRAME includes the contents of the 6218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged 6228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the frame. 6238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for 6248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * backward compatibility. 62504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 62604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE 62704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE 62804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 6298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command 6308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used to configure connection quality monitoring notification trigger 6318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * levels. 6328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This 6338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * command is used as an event to indicate the that a trigger level was 6348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * reached. 6358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ 636a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and the attributes determining channel width) the given interface 637a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. 6388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * In case multiple channels are supported by the device, the mechanism 6398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with which it switches channels is implementation-defined. 6408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * When a monitor interface is given, it can only switch channel while 6418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * no other interfaces are operating to avoid disturbing the operation 6428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of any other interfaces, and other interfaces will again take 6438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * precedence when they are used. 6448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 6458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. 6468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 647abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * @NL80211_CMD_SET_MULTICAST_TO_UNICAST: Configure if this AP should perform 648abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * multicast to unicast conversion. When enabled, all multicast packets 649abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * with ethertype ARP, IPv4 or IPv6 (possibly within an 802.1Q header) 650abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * will be sent out to each station once with the destination (multicast) 651abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * MAC address replaced by the station's MAC address. Note that this may 652abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * break certain expectations of the receiver, e.g. the ability to drop 653abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * unicast IP packets encapsulated in multicast L2 frames, or the ability 654abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * to not send destination unreachable messages in such cases. 655abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * This can only be toggled per BSS. Configure this on an interface of 656abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * type %NL80211_IFTYPE_AP. It applies to all its VLAN interfaces 657abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * (%NL80211_IFTYPE_AP_VLAN), except for those in 4addr (WDS) mode. 658abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * If %NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED is not present with this 659abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * command, the feature is disabled. 660abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * 6618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial 6628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * mesh config parameters may be given. 6638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the 6648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * network is determined by the network interface. 6658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 6668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame 6678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notification. This event is used to indicate that an unprotected 6688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * deauthentication frame was dropped when MFP is in use. 6698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame 6708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * notification. This event is used to indicate that an unprotected 6718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * disassociation frame was dropped when MFP is in use. 6728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 6731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a 6741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * beacon or probe response from a compatible mesh peer. This is only 6751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * sent while no station information (sta_info) exists for the new peer 6762f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH, 6772f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AMPE, or 6782f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM is set. On reception of this 6792f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * notification, userspace may decide to create a new station 6802f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * (@NL80211_CMD_NEW_STATION). To stop this notification from 6811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * reoccurring, the userspace authentication daemon may want to create the 6821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * new station with the AUTHENTICATED flag unset and maybe change it later 6831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * depending on the authentication result. 6841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings. 6861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings. 6871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Since wireless is more complex than wired ethernet, it supports 6881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * various triggers. These triggers can be configured through this 6891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For 6901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * more background information, see 6911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * http://wireless.kernel.org/en/users/Documentation/WoWLAN. 692f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * The @NL80211_CMD_SET_WOWLAN command can also be used as a notification 693f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * from the driver reporting the wakeup reason. In this case, the 694f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason 695f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * for the wakeup, if it was caused by wireless. If it is not present 696f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in the wakeup notification, the wireless device didn't cause the 697f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * wakeup but reports that it was woken up. 6981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 6991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver 7001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the necessary information for supporting GTK rekey offload. This 7011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * feature is typically used during WoWLAN. The configuration data 7021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is contained in %NL80211_ATTR_REKEY_DATA (which is nested and 7031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * contains the data in sub-attributes). After rekeying happened, 7041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this command may also be sent by the driver as an MLME event to 7051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * inform userspace of the new replay counter. 7061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace 7081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * of PMKSA caching dandidates. 7091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). 711d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * In addition, this can be used as an event to request userspace to take 712d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * actions on TDLS links (set up a new link or tear down an existing one). 713d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested 714d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * operation, %NL80211_ATTR_MAC contains the peer MAC address, and 715d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_ATTR_REASON_CODE the reason code to be used (only with 716d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_TDLS_TEARDOWN). 717fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The 718fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be 719fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as 720fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 802.11 management frames, while TDLS action codes (802.11-2012 721fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 8.5.13.1) will be encapsulated and sent as data frames. The currently 722fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES 723fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * and the currently supported TDLS actions codes are given in 724fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * &enum ieee80211_tdls_actioncode. 7251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP 7271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (or GO) interface (i.e. hostapd) to ask for unexpected frames to 7281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * implement sending deauth to stations that send unexpected class 3 7291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * frames. Also used as the event sent by the kernel when such a frame 7301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is received. 7311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For the event, the %NL80211_ATTR_MAC attribute carries the TA and 7321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * other attributes like the interface index are present. 7331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If used as the command it must have an interface index and you can 7341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * only unsubscribe from the event by closing the socket. Subscription 7351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events. 7361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the 7381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * associated station identified by %NL80211_ATTR_MAC sent a 4addr frame 7391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and wasn't already in a 4-addr VLAN. The event will be sent similarly 7401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener. 7411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface 7431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by sending a null data frame to it and reporting when the frame is 7441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * acknowleged. This is used to allow timing out inactive clients. Uses 7451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a 7461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * direct reply with an %NL80211_ATTR_COOKIE that is later used to match 7471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * up the event with the request. The event includes the same data and 7481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * has %NL80211_ATTR_ACK set if the frame was ACKed. 7491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 7501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from 7511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * other BSSes when any interfaces are in AP mode. This helps implement 7521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME 7531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * messages. Note that per PHY only one application may register. 7541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 755c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether 756c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * No Acknowledgement Policy should be applied. 757c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 75804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels 75904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * independently of the userspace SME, send this event indicating 760a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the 7616c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * attributes determining channel width. This indication may also be 7626c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * sent when a remotely-initiated switch (e.g., when a STA receives a CSA 7636c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * from the remote AP) is completed; 7646c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 7656c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch 7666c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * has been started on an interface, regardless of the initiator 7676c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * (ie. whether it was requested from a remote device or 7686c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * initiated on our own). It indicates that 7696c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ 7706c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's. The userspace may 7716c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * decide to react to this indication by requesting other 7726c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * interfaces to change channel as well. 77304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 774d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by 775d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * its %NL80211_ATTR_WDEV identifier. It must have been created with 776d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the 777d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * P2P Device can be used for P2P operations, e.g. remain-on-channel and 778d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * public action frame TX. 779d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by 780d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * its %NL80211_ATTR_WDEV identifier. 781d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 782d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to 783d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * notify userspace that AP has rejected the connection request from a 784d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON 785d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * is used for this. 786d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 787d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames 788d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * for IBSS or MESH vif. 789d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 790f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control. 791f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * This is to be used with the drivers advertising the support of MAC 792f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * address based access control. List of MAC addresses is passed in 793f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_MAC_ADDRS and ACL policy is passed in 794f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it 795f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * is not already done. The new list will replace any existing list. Driver 796f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * will clear its ACL when the list of MAC addresses passed is empty. This 797f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * command is used in AP/P2P GO mode. Driver has to make sure to clear its 798f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * ACL list during %NL80211_CMD_STOP_AP. 799f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 800f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once 801f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * a radar is detected or the channel availability scan (CAC) has finished 802f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * or was aborted, or a radar was detected, usermode will be notified with 803f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this event. This command is also used to notify userspace about radars 804f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * while operating on this channel. 805f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_ATTR_RADAR_EVENT is used to inform about the type of the 806f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * event. 807f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 8082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features, 8092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * i.e. features for the nl80211 protocol rather than device features. 8102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. 8112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 8122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition 8132f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Information Element to the WLAN driver 8142f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 8152f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver 8162f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * to the supplicant. This will carry the target AP's MAC address along 8172f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * with the relevant Information Elements. This event is used to report 8182f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE). 8192f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 82051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running 82151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * a critical protocol that needs more reliability in the connection to 82251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * complete. 82351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 82451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can 82551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * return back to normal. 82651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 827e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules. 828e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules. 829e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 830e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the 831e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * the new channel information (Channel Switch Announcement - CSA) 832e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in the beacon for some time (as defined in the 833e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the 834e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * new channel. Userspace provides the new channel information (using 835e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel 836e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform 837e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * other station that transmission must be blocked until the channel 838e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * switch is complete. 839e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 840fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified 841fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in 842fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in 843fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_ATTR_VENDOR_DATA. 844fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is 845fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * used in the wiphy data as a nested attribute containing descriptions 846fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * (&struct nl80211_vendor_cmd_info) of the supported vendor commands. 847fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * This may also be sent as an event with the same attributes. 848fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 849fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values. 850fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If 851fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * that attribute is not included, QoS mapping is disabled. Since this 852fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * QoS mapping is relevant for IP packets, it is only valid during an 853fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * association. This is cleared on disassociation and AP restart. 854fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 8559ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given 8569ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO 8579ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and %NL80211_ATTR_ADMITTED_TIME parameters. 8589ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Note that the action frame handshake with the AP shall be handled by 8599ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * userspace via the normal management RX/TX framework, this only sets 8609ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * up the TX TS in the driver/device. 8619ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If the admitted time attribute is not added then the request just checks 8629ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * if a subsequent setup could be successful, the intent is to use this to 8639ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * avoid setting up a session with the AP when local restrictions would 8649ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * make that impossible. However, the subsequent "real" setup may still 8659ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * fail even if the check was successful. 8669ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID 8679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this 8689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * before removing a station entry entirely, or before disassociating 8699ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * or similar, cleanup will happen in the driver/device in this case. 8709ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 8716c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to 8726c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * destination %NL80211_ATTR_MAC on the interface identified by 8736c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_IFINDEX. 8746c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 8756c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and 8766c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * bandwidth of a channel must be given. 8776c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the 8786c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * network is determined by the network interface. 8796c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 8806c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer, 8816c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * identified by the %NL80211_ATTR_MAC parameter. A target channel is 8826c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining 8836c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * channel width/type. The target operating class is given via 8846c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_OPER_CLASS. 8856c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * The driver is responsible for continually initiating channel-switching 8866c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * operations and returning to the base channel for communication with the 8876c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * AP. 8886c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS 8896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel 8906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * when this command completes. 8916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 892f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used 893f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * as an event to indicate changes for devices with wiphy-specific regdom 894f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * management. 895f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 896d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_CMD_ABORT_SCAN: Stop an ongoing scan. Returns -ENOENT if a scan is 897d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * not running. The driver indicates the status of the scan through 898d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * cfg80211_scan_done(). 899d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * 9009839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_CMD_START_NAN: Start NAN operation, identified by its 901d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_WDEV interface. This interface must have been 902d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * previously created with %NL80211_CMD_NEW_INTERFACE. After it 903d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * has been started, the NAN interface will create or join a 904d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * cluster. This command must have a valid 905d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_NAN_MASTER_PREF attribute and optional 906d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_BANDS attributes. If %NL80211_ATTR_BANDS is 907d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * omitted or set to 0, it means don't-care and the device will 908d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * decide what to use. After this command NAN functions can be 909d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * added. 9109839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_CMD_STOP_NAN: Stop the NAN operation, identified by 9119839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * its %NL80211_ATTR_WDEV interface. 9129839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_CMD_ADD_NAN_FUNCTION: Add a NAN function. The function is defined 9139839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * with %NL80211_ATTR_NAN_FUNC nested attribute. When called, this 9149839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * operation returns the strictly positive and unique instance id 9159839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * (%NL80211_ATTR_NAN_FUNC_INST_ID) and a cookie (%NL80211_ATTR_COOKIE) 9169839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * of the function upon success. 9179839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Since instance ID's can be re-used, this cookie is the right 9189839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * way to identify the function. This will avoid races when a termination 9199839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * event is handled by the user space after it has already added a new 9209839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * function that got the same instance id from the kernel as the one 9219839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * which just terminated. 9229839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This cookie may be used in NAN events even before the command 9239839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * returns, so userspace shouldn't process NAN events until it processes 9249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * the response to this command. 9259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Look at %NL80211_ATTR_SOCKET_OWNER as well. 9269839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie. 9279839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This command is also used as a notification sent when a NAN function is 9289839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID 9299839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * and %NL80211_ATTR_COOKIE attributes. 930d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN 931d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * configuration. NAN must be operational (%NL80211_CMD_START_NAN 932d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * was executed). It must contain at least one of the following 933d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * attributes: %NL80211_ATTR_NAN_MASTER_PREF, 934d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_BANDS. If %NL80211_ATTR_BANDS is omitted, the 935d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * current configuration is not changed. If it is present but 936d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * set to zero, the configuration is changed to don't-care 937d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * (i.e. the device can decide what to do). 9389839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported. 9399839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and 9409839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * %NL80211_ATTR_COOKIE. 9419839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 942abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * @NL80211_CMD_UPDATE_CONNECT_PARAMS: Update one or more connect parameters 943abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * for subsequent roaming cases if the driver or firmware uses internal 944abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * BSS selection. This command can be issued only while connected and it 945abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * does not result in a change for the current association. Currently, 946abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * only the %NL80211_ATTR_IE data is used and updated with this command. 947abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * 9488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_MAX: highest used command number 9498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_CMD_AFTER_LAST: internal use 9508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 9518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_commands { 9521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */ 9538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNSPEC, 9548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_WIPHY, /* can dump */ 9568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WIPHY, 9578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_WIPHY, 9588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_WIPHY, 9598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_INTERFACE, /* can dump */ 9618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_INTERFACE, 9628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_INTERFACE, 9638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_INTERFACE, 9648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_KEY, 9668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_KEY, 9678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_KEY, 9688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_KEY, 9698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_BEACON, 9718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_BEACON, 97204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_START_AP, 97304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, 97404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_STOP_AP, 97504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, 9768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_STATION, 9788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_STATION, 9798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_STATION, 9808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_STATION, 9818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_MPATH, 9838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_MPATH, 9848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_MPATH, 9858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_MPATH, 9868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_BSS, 9888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_REG, 9908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REQ_SET_REG, 9918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_GET_MESH_CONFIG, 9931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_MESH_CONFIG, 9948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, 9968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_REG, 9988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 9998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_SCAN, 10008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_TRIGGER_SCAN, 10018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_SCAN_RESULTS, 10028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SCAN_ABORTED, 10038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REG_CHANGE, 10058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_AUTHENTICATE, 10078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ASSOCIATE, 10088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEAUTHENTICATE, 10098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DISASSOCIATE, 10108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_MICHAEL_MIC_FAILURE, 10128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REG_BEACON_HINT, 10148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_JOIN_IBSS, 10168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_LEAVE_IBSS, 10178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_TESTMODE, 10198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_CONNECT, 10218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ROAM, 10228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DISCONNECT, 10238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WIPHY_NETNS, 10258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_SURVEY, 10278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NEW_SURVEY_RESULTS, 10288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_PMKSA, 10308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_DEL_PMKSA, 10318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FLUSH_PMKSA, 10328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REMAIN_ON_CHANNEL, 10348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL, 10358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_TX_BITRATE_MASK, 10378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REGISTER_FRAME, 10398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME, 10408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME, 10418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ACTION = NL80211_CMD_FRAME, 10428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME_TX_STATUS, 10438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS, 10448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_POWER_SAVE, 10468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_GET_POWER_SAVE, 10478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_CQM, 10498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_NOTIFY_CQM, 10508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_CHANNEL, 10528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_SET_WDS_PEER, 10538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_FRAME_WAIT_CANCEL, 10558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_JOIN_MESH, 10578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_LEAVE_MESH, 10588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNPROT_DEAUTHENTICATE, 10608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_UNPROT_DISASSOCIATE, 10618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 10621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_NEW_PEER_CANDIDATE, 10631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_GET_WOWLAN, 10651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_WOWLAN, 10661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_START_SCHED_SCAN, 10681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_STOP_SCHED_SCAN, 10691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SCHED_SCAN_RESULTS, 10701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SCHED_SCAN_STOPPED, 10711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_SET_REKEY_OFFLOAD, 10731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_PMKSA_CANDIDATE, 10751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_TDLS_OPER, 10771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_TDLS_MGMT, 10781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_UNEXPECTED_FRAME, 10801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_PROBE_CLIENT, 10821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_REGISTER_BEACONS, 10841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 10851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_CMD_UNEXPECTED_4ADDR_FRAME, 10861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 1087c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_CMD_SET_NOACK_MAP, 1088c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 108904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CMD_CH_SWITCH_NOTIFY, 109004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 1091d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_START_P2P_DEVICE, 1092d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_STOP_P2P_DEVICE, 1093d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1094d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_CONN_FAILED, 1095d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1096d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CMD_SET_MCAST_RATE, 1097d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 1098f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_CMD_SET_MAC_ACL, 1099f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 1100f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_CMD_RADAR_DETECT, 1101f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 11022f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_GET_PROTOCOL_FEATURES, 11032f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 11042f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_UPDATE_FT_IES, 11052f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_CMD_FT_EVENT, 11062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 110751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CMD_CRIT_PROTOCOL_START, 110851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CMD_CRIT_PROTOCOL_STOP, 110951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 1110e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_GET_COALESCE, 1111e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_SET_COALESCE, 1112e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1113e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CMD_CHANNEL_SWITCH, 1114e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 1115fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_CMD_VENDOR, 1116fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 1117fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_CMD_SET_QOS_MAP, 1118fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 11199ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_CMD_ADD_TX_TS, 11209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_CMD_DEL_TX_TS, 11219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 11226c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_GET_MPP, 11236c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 11246c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_JOIN_OCB, 11256c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_LEAVE_OCB, 11266c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 11276c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_CH_SWITCH_STARTED_NOTIFY, 11286c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 11296c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_TDLS_CHANNEL_SWITCH, 11306c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH, 11316c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 1132f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_CMD_WIPHY_REG_CHANGE, 1133f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 1134d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_CMD_ABORT_SCAN, 1135d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt 11369839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_START_NAN, 11379839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_STOP_NAN, 11389839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_ADD_NAN_FUNCTION, 11399839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_DEL_NAN_FUNCTION, 11409839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_CHANGE_NAN_CONFIG, 11419839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_CMD_NAN_MATCH, 11429839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 1143abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt NL80211_CMD_SET_MULTICAST_TO_UNICAST, 1144abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt 1145abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt NL80211_CMD_UPDATE_CONNECT_PARAMS, 1146abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt 11478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* add new commands above here */ 11488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 11498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* used to define NL80211_CMD_MAX below */ 11508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_CMD_AFTER_LAST, 11518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 11528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 11538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 11548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 11558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new commands by defining them 11568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here 11578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 11588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS 11598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE 11608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE 11618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE 11628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE 11638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE 11648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE 11658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT 11668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 11671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 11681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 11691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* source-level API compatibility */ 11701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG 11711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG 11721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE 11731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 11748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 11758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attrs - nl80211 netlink attributes 11768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors 11788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 11798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf. 11808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * /sys/class/ieee80211/<phyname>/index 11818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) 11828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters 1183a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz, 1184a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * defines the channel together with the (deprecated) 1185a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes 1186a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1 1187a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and %NL80211_ATTR_CENTER_FREQ2 1188a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values 1189a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * of &enum nl80211_chan_width, describing the channel width. See the 1190a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * documentation of the enum for more information. 1191a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the 1192a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * channel, used for anything but 20 MHz bandwidth 1193a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the 1194a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * channel, used only for 80+80 MHz bandwidth 11958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ 1196a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * if HT20 or HT40 are to be used (i.e., HT disabled if not included): 11978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including 11988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * this attribute) 11998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT20 = HT20 only 12008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel 12018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel 1202a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * This attribute is now deprecated. 12038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is 12048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * less than or equal to the RTS threshold; allowed range: 1..255; 12058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dot11ShortRetryLimit; u8 12068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is 12078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * greater than the RTS threshold; allowed range: 1..255; 12088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dot11ShortLongLimit; u8 12098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum 12108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * length in octets for frames; allowed range: 256..8000, disable 12118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * fragmentation with (u32)-1; dot11FragmentationThreshold; u32 12128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length 12138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * larger than or equal to this use RTS/CTS handshake); allowed range: 12148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 12158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11 12168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.9; dot11CoverageClass; u8 12178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on 12198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFNAME: network interface name 12208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype 12218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 122261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices 122361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * that don't have a netdev (u64) 122461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 12258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAC: MAC address (various uses) 12268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of 12288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 12298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * keys 12308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3) 12318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 12328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.25.1, e.g. 0x000FAC04) 12338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 12348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * CCMP keys, each six bytes in little endian 123504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key 123604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the 123704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * default management key 123804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or 123904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * other commands, indicates which pairwise cipher suites are used 124004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or 124104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * other commands, indicates which group cipher suite is used 12428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU 12448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing 12458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE 12468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE 12478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_AID: Association ID for the station (u16) 12498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of 12508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2) 12518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by 12528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEEE 802.11 7.3.1.6 (u16). 12538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported 12548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates as defined by IEEE 802.11 7.3.2.2 but without the length 12558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * restriction (at most %NL80211_MAX_SUPP_RATES). 12568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station 12578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to, or the AP interface the station was originally added to to. 12588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_INFO: information about a station, part of station info 12598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given for %NL80211_CMD_GET_STATION, nested attribute containing 12608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * info as possible, see &enum nl80211_sta_info. 12618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, 12638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * consisting of a nested array. 12648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes). 12662f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link 12672f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * (see &enum nl80211_plink_action). 12688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. 12698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path 12708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * info given for %NL80211_CMD_GET_MPATH, nested attribute described at 12718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mpath_info. 12728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of 12748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mntr_flags. 12758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the 12778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * current regulatory domain should be set to or is already set to. 12788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * For example, 'CR', for Costa Rica. This attribute is used by the kernel 12798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to query the CRDA to retrieve one regulatory domain. This attribute can 12808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * also be used by userspace to query the kernel for the currently set 12818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. We chose an alpha2 as that is also used by the 1282e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * IEEE-802.11 country information element to identify a country. 12838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Users can also simply ask the wireless core to set regulatory domain 12848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to a specific alpha2. 12858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory 12868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rules. 12878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) 12898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled 12908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (u8, 0 or 1) 12918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled 12928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (u8, 0 or 1) 12938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic 12948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates in format defined by IEEE 802.11 7.3.2.2 but without the length 12958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * restriction (at most %NL80211_MAX_SUPP_RATES). 12968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 12978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from 12988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * association request when used with NL80211_CMD_NEW_STATION) 12998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all 13018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * supported interface types, each a flag attribute with the number 13028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of the interface mode. 13038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for 13058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_SET_MGMT_EXTRA_IE. 13068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with 13088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_SET_MGMT_EXTRA_IE). 13098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with 13118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a single scan request, a wiphy attribute. 13121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can 13131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * scan with a single scheduled scan request, a wiphy attribute. 13148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements 13158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that can be added to a scan request 13161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information 13171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * elements that can be added to a scheduled scan request 13181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be 13191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute. 13208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz) 13228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive 13238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * scanning and include a zero-length SSID (wildcard) for wildcard scan 13248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_BSS: scan result BSS 13258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain 13278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* 13288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently 13298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) 13308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies 13328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of command numbers (i.e. a mapping index to command number) 13338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * that the driver for the given wiphy supports. 13348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header 13368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and 13378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_ASSOCIATE events 13388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets) 13398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type, 13408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * represented as a u32 13418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and 13428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_DISASSOCIATE, u16 13438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as 13458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a u32 13468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change 13488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * due to considerations from a beacon hint. This attribute reflects 13498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the state of the channel _before_ the beacon hint processing. This 13508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes consists of a nested attribute containing 13518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_FREQUENCY_ATTR_* 13528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change 13538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * due to considerations from a beacon hint. This attribute reflects 13548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the state of the channel _after_ the beacon hint processing. This 13558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes consists of a nested attribute containing 13568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_FREQUENCY_ATTR_* 13578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported 13598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cipher suites 13608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look 13628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for other networks on different channels 13638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this 13658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is used, e.g., with %NL80211_CMD_AUTHENTICATE event 13668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is 13688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * used for the association (&enum nl80211_mfp, represented as a u32); 13698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * this attribute can be used 1370f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests 13718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STA_FLAGS2: Attribute containing a 13738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &struct nl80211_sta_flag_update. 13748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls 13768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in 13778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE 13788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * request, the driver will assume that the port is unauthorized until 13798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * authorized by user space. Otherwise, port is marked authorized by 13808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * default in station mode. 13818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the 13828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ethertype that will be used for key negotiation. It can be 13838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified with the associate and connect commands. If it is not 13848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified, the value defaults to 0x888E (PAE, 802.1X). This 13858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attribute is also used as a flag in the wiphy information to 13868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * indicate that protocols other than PAE are supported. 13878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with 13888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom 13898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ethertype frames used for key negotiation must not be encrypted. 13908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. 13928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * We recommend using nested, driver-specific attributes within this. 13938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 13948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT 13958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event was due to the AP disconnecting the station, and not due to 13968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a local disconnect request. 13978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT 13988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * event (u16) 13998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating 14001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that protected APs should be used. This is also used with NEW_BEACON to 14011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate that the BSS is to use protection. 14028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON 14041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to indicate which unicast key ciphers will be used with the connection 14058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (an array of u32). 14061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which group key cipher will be used with the connection (a 14081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * u32). 14091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which WPA version(s) the AP we want to associate with is using 14118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (a u32 with flags from &enum nl80211_wpa_versions). 14121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which key management algorithm(s) to use (an array of u32). 14148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REQ_IE: (Re)association request information elements as 14168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent out by the card, for ROAM and successful CONNECT events. 14178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RESP_IE: (Re)association response information elements as 14188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * sent by peer, for ROAM and successful CONNECT events. 14198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1420849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used in ASSOCIATE and CONNECT 1421849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * commands to specify a request to reassociate within an ESS, i.e., to use 1422849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * Reassociate Request frame (with the value of this attribute in the 1423849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * Current AP address field) instead of Association Request frame which is 1424849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * used for the initial association to an ESS. 14258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY: key information in a nested attribute with 14278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_KEY_* sub-attributes 14288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect() 14298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and join_ibss(), key information is in a nested attribute each 14308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with %NL80211_KEY_* sub-attributes 14318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PID: Process ID of a network namespace. 14338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for 14358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dumps. This number increases whenever the object list being 14368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * dumped changes, and as such userspace can verify that it has 14378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * obtained a complete and consistent snapshot by verifying that 14388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * all dump messages contain the same generation number. If it 14398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * changed then the list changed and the dump should be repeated 14408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * completely from scratch. 14418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface 14438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of 14458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute 14468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * containing info as possible, see &enum survey_info. 14478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_PMKID: PMK material for PMKSA caching. 14498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can 14508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * cache, a wiphy attribute. 14518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32. 14538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that 14548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specifies the maximum duration that can be requested with the 14558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * remain-on-channel operation, in milliseconds, u32. 14568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects. 14588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_RATES: Nested set of attributes 14608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (enum nl80211_tx_rate_attributes) describing TX rates per band. The 14618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band value is used as the index (nla_type() of the nested 14628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * data. If a band is not included, it will be configured to allow all 14638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rates based on negotiated supported rates information. This attribute 14649839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP, 14659839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * and joining mesh networks (not IBSS yet). In the later case, it must 14669839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * specify just a single bitrate, which is to be used for the beacon. 14679839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * The driver must also specify support for this with the extended 14689839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 14699839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * NL80211_EXT_FEATURE_BEACON_RATE_HT and 14709839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * NL80211_EXT_FEATURE_BEACON_RATE_VHT. 14718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain 14738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME. 14748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the 14758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CMD_REGISTER_FRAME command. 14768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a 14778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 14788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about which frame types can be transmitted with 14798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_CMD_FRAME. 14808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a 14818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 14828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about which frame types can be registered for RX. 14838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was 14858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * acknowledged by the recipient. 14868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 148704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. 148804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 14898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM: connection quality monitor configuration in a 14908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nested attribute with %NL80211_ATTR_CQM_* sub-attributes. 14918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command 14938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * is requesting a local authentication/association state change without 14948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * invoking actual management frame exchange. This can be used with 14958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE, 14968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * NL80211_CMD_DISASSOCIATE. 14978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 14988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations 14998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * connected to this BSS. 15008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See 15028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_tx_power_setting for possible values. 15038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units. 15048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING 15058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for non-automatic settings. 15068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly 15088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * means support for per-station GTKs. 15098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting. 15118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This can be used to mask out antennas which are not attached or should 15128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * not be used for transmitting. If an antenna is not selected in this 15138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * bitmap the hardware is not allowed to transmit on this antenna. 15148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Each bit represents one antenna, starting with antenna 1 at the first 15168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * bit. Depending on which antennas are selected in the bitmap, 802.11n 15178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * drivers can derive which chainmasks to use (if all antennas belonging to 15188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a particular chain are disabled this chain should be disabled) and if 15198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a chain has diversity antennas wether diversity should be used or not. 15208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * HT capabilities (STBC, TX Beamforming, Antenna selection) can be 15218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * derived from the available chains after applying the antenna mask. 15228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Non-802.11n drivers can derive wether to use diversity or not. 15238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Drivers may reject configurations or RX/TX mask combinations they cannot 15248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * support by returning -EINVAL. 15258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving. 15278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * This can be used to mask out antennas which are not attached or should 15288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * not be used for receiving. If an antenna is not selected in this bitmap 15298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the hardware should not be configured to receive on this antenna. 15301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX. 15311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 15321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available 15331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for configuration as TX antennas via the above parameters. 15341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 15351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available 15361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for configuration as RX antennas via the above parameters. 15378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS 15398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be 15418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * transmitted on another channel when the channel given doesn't match 15428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the current channel. If the current channel doesn't match and this 15438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * flag isn't set, the frame will be rejected. This is also used as an 15448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * nl80211 capability flag. 15458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 154604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16) 15478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags 15498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes, specifying what a key should be set as default as. 15508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * See &enum nl80211_key_default_types. 15518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 15521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters. These cannot be 15531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * changed once the mesh is active. 15541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute 15551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing attributes from &enum nl80211_meshconf_params. 15561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver 15571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * allows auth frames in a mesh to be passed to userspace for processing via 15581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. 15592f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in 15602f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * &enum nl80211_plink_state. Used when userspace is driving the peer link 15612f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * management state machine. @NL80211_MESH_SETUP_USERSPACE_AMPE or 15622f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM must be enabled. 15631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 15641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy 15651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * capabilities, the supported WoWLAN triggers 15661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to 15671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * indicate which WoW triggers should be enabled. This is also 15681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN 15691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * triggers. 157004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 15711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan 15721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * cycles, in msecs. 157304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 15741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more 15751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * sets of attributes to match during scheduled scans. Only BSSs 15761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that match any of the sets will be reported. These are 15771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * pass-thru filter rules. 15781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For a match to succeed, the BSS must match all attributes of a 15791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * set. Since not every hardware supports matching all types of 15801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attributes, there is no guarantee that the reported BSSs are 15811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * fully complying with the match sets and userspace needs to be 15821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * able to ignore them by itself. 15831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Thus, the implementation is somewhat hardware-dependent, but 15841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this is only an optimization and the userspace application 15851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * needs to handle all the non-filtered results anyway. 15861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If the match attributes don't make sense when combined with 15871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID 15881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is included in the probe request, but the match attributes 15891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * will never let it go through), -EINVAL may be returned. 15901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * If ommited, no filtering is done. 15911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 15921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported 15931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interface combinations. In each nested item, it contains attributes 15941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * defined in &enum nl80211_if_combination_attrs. 15951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like 15961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that 15971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are managed in software: interfaces of these types aren't subject to 15981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * any restrictions in their number or combinations. 15991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 160004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information 16011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * necessary for GTK rekeying in the device, see &enum nl80211_rekey_data. 16021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan, 16041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * nested array attribute containing an entry for each band, with the entry 16051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but 16061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * without the length restriction (at most %NL80211_MAX_SUPP_RATES). 16071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon 16091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * and Probe Response (when response to wildcard Probe Request); see 16101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_hidden_ssid, represented as a u32 16111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame. 16131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to 16141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the 16151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * driver (or firmware) replies to Probe Request frames. 16161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association 16171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Response frames. This is used with %NL80211_CMD_NEW_BEACON and 16181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into 16191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (Re)Association Response frames when the driver (or firmware) replies to 16201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (Re)Association Request frames. 16211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration 16231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * of the station, see &enum nl80211_sta_wme_attr. 16241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working 16251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as AP. 16261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of 16281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * roaming to another AP in the same ESS if the signal lever is low. 16291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching 16311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * candidate information, see &enum nl80211_pmksa_candidate_attr. 16321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not 16341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for management frames transmission. In order to avoid p2p probe/action 16351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * frames are being transmitted at CCK rate in 2GHz band, the user space 16361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * applications use this attribute. 16371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and 16381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_FRAME commands. 16391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup 16411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * request, link setup confirm, link teardown, etc.). Values are 16421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * described in the TDLS (802.11z) specification. 16431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a 16441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * TDLS conversation between two devices. 16451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see 16461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_tdls_operation, represented as a u8. 16471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate 16481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as a TDLS peer sta. 16491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown 16501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * procedures should be performed by sending TDLS packets via 16511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * %NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be 16521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used for asking the driver to perform a TDLS operation. 16531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices 16551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that have AP support to indicate that they have the AP SME integrated 16561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * with support for the features listed in this attribute, see 16571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_ap_sme_features. 16581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells 16601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the driver to not wait for an acknowledgement. Note that due to this, 16611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * it will also not give a status callback nor return a cookie. This is 16621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * mostly useful for probe responses to save airtime. 16631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from 16651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * &enum nl80211_feature_flags and is advertised in wiphy information. 16661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe 16671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * requests while operating in AP-mode. 16681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This attribute holds a bitmap of the supported protocols for 16691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * offloading (see &enum nl80211_probe_resp_offload_support_attr). 16701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 16711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire 16721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * probe-response frame. The DA field in the 802.11 header is zero-ed out, 16731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to be filled by the FW. 1674c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable 1675c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * this feature. Currently, only supported in mac80211 drivers. 1676c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the 1677c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * ATTR_HT_CAPABILITY to which attention should be paid. 1678c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * Currently, only mac80211 NICs support this feature. 1679c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * The values that may be configured are: 1680c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40 1681c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * AMPDU density and AMPDU factor. 1682c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * All values are treated as suggestions and may be ignored 1683c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * by the driver as required. The actual values may be seen in 1684c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * the station debugfs ht_caps file. 1685c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 1686c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country 1687c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * abides to when initiating radiation on DFS channels. A country maps 1688c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * to one DFS region. 1689c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 1690c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of 1691c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * up to 16 TIDs. 16921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 169304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be 169404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * used by the drivers which has MLME in firmware and does not have support 169504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * to report per station tx/rx activity to free up the staion entry from 169604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the list. This needs to be used when the driver advertises the 169704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * capability to timeout the stations. 169804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 169904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); 170004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * this attribute is (depending on the driver capabilities) added to 170104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * received frames indicated with %NL80211_CMD_FRAME. 170204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 170304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds 170404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * or 0 to disable background scan. 170504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 170661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from 170761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * userspace. If unset it is assumed the hint comes directly from 170861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * a user. If set code could specify exactly what type of source 170961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * was used to provide the hint. For the different types of 171061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * allowed user regulatory hints see nl80211_user_reg_hint_type. 171161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 1712d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected 1713d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * the connection request from a station. nl80211_connect_failed_reason 1714d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum has different reasons of connection failure. 1715d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 17169839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_AUTH_DATA: Fields and elements in Authentication frames. 17179839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This contains the authentication frame body (non-IE and IE data), 17189839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * excluding the Authentication algorithm number, i.e., starting at the 17199839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Authentication transaction sequence number field. It is used with 17209839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * authentication algorithms that need special fields to be added into 17219839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * the frames (SAE and FILS). Currently, only the SAE cases use the 17229839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * initial two fields (Authentication transaction sequence number and 17239839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Status code). However, those fields are included in the attribute data 17249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * for all authentication algorithms to keep the attribute definition 17259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * consistent. 1726d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1727d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from 1728d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * association request when used with NL80211_CMD_NEW_STATION) 1729d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1730d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32) 1731d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 1732a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with 1733a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * the START_AP and SET_BSS commands 1734a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the 1735a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * START_AP and SET_BSS commands. This can have the values 0 or 1; 1736a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * if not given in START_AP 0 is assumed, if not given in SET_BSS 1737a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * no change is made. 1738a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 1739f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode 1740f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * defined in &enum nl80211_mesh_power_mode. 1741f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1742f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy, 1743f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * carried in a u32 attribute 1744f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1745f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for 1746f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * MAC ACL. 1747f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1748f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum 1749f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * number of MAC addresses that a device can support for MAC 1750f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * ACL. 1751f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1752f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace, 1753f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * contains a value of enum nl80211_radar_event (u32). 1754f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1755f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver 1756f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * has and handles. The format is the same as the IE contents. See 1757f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 802.11-2012 8.4.2.29 for more information. 1758f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver 1759f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields. 1760f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1761f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to 1762f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the driver, e.g., to enable TDLS power save (PU-APSD). 1763f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 1764f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are 1765f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * advertised to the driver, e.g., to enable TDLS off channel operations 1766f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and PU-APSD. 1767f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 17682f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see 17692f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * &enum nl80211_protocol_features, the attribute is a u32. 17702f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 17712f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports 17722f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * receiving the data for a single wiphy split across multiple 17732f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * messages, given with wiphy dump message 17742f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 17752f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_MDID: Mobility Domain Identifier 17762f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 17772f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_ATTR_IE_RIC: Resource Information Container Information 17782f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Element 17792f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 178051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased 178151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * reliability, see &enum nl80211_crit_proto_id (u16). 178251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which 178351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * the connection should have increased reliability (u16). 178451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 17858bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16). 17868bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * This is similar to @NL80211_ATTR_STA_AID but with a difference of being 17878bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * allowed to be used with the first @NL80211_CMD_SET_STATION command to 17888bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * update a TDLS peer STA entry. 17898bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * 1790e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information. 1791e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1792e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's 1793e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * until the channel switch event. 1794e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission 1795e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * must be blocked on the current channel (before the channel switch 1796e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * operation). 1797e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information 1798e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * for the time while performing a channel switch. 17999ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel 18009ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL). 18019ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel 18029ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * switch counters in the probe response (%NL80211_ATTR_PROBE_RESP). 1803e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1804e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32. 1805e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * As specified in the &enum nl80211_rxmgmt_flags. 1806e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1807e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels. 1808e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1809e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported 1810e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * supported operating classes. 1811e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1812e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space 1813e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * controls DFS operation in IBSS mode. If the flag is included in 1814e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS 1815e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * channels and reports radar events to userspace. Userspace is required 1816e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * to react to radar events, e.g. initiate a channel switch or leave the 1817e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * IBSS network. 1818e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 1819fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports 1820fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 5 MHz channel bandwidth. 1821fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports 1822fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 10 MHz channel bandwidth. 1823fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1824fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode 1825fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * Notification Element based on association request when used with 1826ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * %NL80211_CMD_NEW_STATION or %NL80211_CMD_SET_STATION (only when 1827ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * %NL80211_FEATURE_FULL_AP_CLIENT_STATE is supported, or with TDLS); 1828ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * u8 attribute. 1829fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1830fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if 1831fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet) 1832fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command 1833fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this 1834fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * attribute is also used for vendor command feature advertisement 1835fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy 1836fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * info, containing a nested array of possible events 1837fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 1838fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This 1839fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * data is in the format defined for the payload of the QoS Map Set element 1840fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * in IEEE Std 802.11-2012, 8.4.2.97. 1841fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * 184296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS 184396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS 184496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * 184596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many 184696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * associated stations are supported in AP mode (including P2P GO); u32. 184796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * Since drivers may not have a fixed limit on the maximum number (e.g., 184896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * other concurrent operations may affect this), drivers are allowed to 184996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * advertise values that cannot always be met. In such cases, an attempt 185096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * to add a new station entry with @NL80211_CMD_NEW_STATION may fail. 185196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * 18529ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which 18539ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * should be updated when the frame is transmitted. 18549ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum 18559ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * supported number of csa counters. 18569ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 1857df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32. 1858df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * As specified in the &enum nl80211_tdls_peer_capability. 1859df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 18606c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface 18617832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * creation then the new interface will be owned by the netlink socket 18626c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * that created it and will be destroyed when the socket is closed. 1863f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * If set during scheduled scan start then the new scan req will be 1864f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * owned by the netlink socket that created it and the scheduled scan will 1865f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * be stopped when the socket is closed. 1866f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * If set during configuration of regulatory indoor operation then the 1867f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * regulatory indoor configuration would be owned by the netlink socket 1868f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * that configured the indoor setting, and the indoor operation would be 1869f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * cleared when the socket is closed. 18709839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * If set during NAN interface creation, the interface will be destroyed 18719839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * if the socket is closed just like any other interface. Moreover, only 18729839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * the netlink socket that created the interface will be allowed to add 18739839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * and remove functions. NAN notifications will be sent in unicast to that 18749839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * socket. Without this attribute, any socket can add functions and the 18759839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * notifications will be sent to the %NL80211_MCGRP_NAN multicast group. 1876092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * If set during %NL80211_CMD_ASSOCIATE or %NL80211_CMD_CONNECT the 1877092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * station will deauthenticate when the socket is closed. 18787832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * 18799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is 18809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * the TDLS link initiator. 18819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 18829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection 18839ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * shall support Radio Resource Measurements (11k). This attribute can be 18849ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests. 18859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * User space applications are expected to use this flag only if the 18869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * underlying device supports these minimal RRM features: 18879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES, 18889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_QUIET, 1889849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * Or, if global RRM is supported, see: 1890849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * %NL80211_EXT_FEATURE_RRM 18919ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If this flag is used, driver must add the Power Capabilities IE to the 18929ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * association request. In addition, it must also set the RRM capability 18939ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * flag in the association request's Capability Info field. 18949ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 18959ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout 18969ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * estimation algorithm (dynack). In order to activate dynack 18979ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower 18989ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * drivers to indicate dynack capability. Dynack is automatically disabled 18999ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * setting valid value for coverage class. 19009ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 19019ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_TSID: a TSID value (u8 attribute) 19029ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute) 19039ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds 19049ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (per second) (u16 attribute) 19059ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 19069ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see 19079ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * &enum nl80211_smps_mode. 19089ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 19096c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_OPER_CLASS: operating class 19106c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 19116c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_MAC_MASK: MAC address mask 19126c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * 1913f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device 1914f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * is self-managing its regulatory information and any regulatory domain 1915f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * obtained from it is coming from the device's wiphy and not the global 1916f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * cfg80211 regdomain. 1917f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 1918f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte 1919f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * array. The feature flags are identified by their bit index (see &enum 1920f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * nl80211_ext_feature_index). The bit index is ordered starting at the 1921f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * least-significant bit of the first byte in the array, ie. bit index 0 1922f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * is located at bit 0 of byte 0. bit index 25 would be located at bit 1 1923f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * of byte 3 (u8 array). 1924f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 1925f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be 1926f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY 1927f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * may return a survey entry without a channel indicating global radio 1928f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * statistics (only some values are valid and make sense.) 1929f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * For devices that don't return such an entry even then, the information 1930f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * should be contained in the result as the sum of the respective counters 1931f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * over all channels. 1932f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 1933d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before the first cycle of a 1934d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * scheduled scan is started. Or the delay before a WoWLAN 1935d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * net-detect scan is started, counting from the moment the 1936d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * system is suspended. This value is a u32, in seconds. 1937f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 1938f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device 1939f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * is operating in an indoor environment. 1940f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 1941d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for 1942d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * scheduled scan supported by the device (u32), a wiphy attribute. 1943d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for 1944d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * a scan plan (u32), a wiphy attribute. 1945d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in 1946d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * a scan plan (u32), a wiphy attribute. 1947d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan. 1948d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * Each scan plan defines the number of scan iterations and the interval 1949d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * between scans. The last scan plan will always run infinitely, 1950d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * thus it must not specify the number of iterations, only the interval 1951d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * between scans. The scan plans are executed sequentially. 1952d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan. 195357c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt * @NL80211_ATTR_PBSS: flag attribute. If set it means operate 195457c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt * in a PBSS. Specified in %NL80211_CMD_CONNECT to request 195557c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt * connecting to a PCP, and in %NL80211_CMD_START_AP to start 195657c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt * a PCP instead of AP. Relevant for DMG networks only. 1957849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_ATTR_BSS_SELECT: nested attribute for driver supporting the 1958849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * BSS selection feature. When used with %NL80211_CMD_GET_WIPHY it contains 1959849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * attributes according &enum nl80211_bss_select_attr to indicate what 1960849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * BSS selection behaviours are supported. When used with %NL80211_CMD_CONNECT 1961849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * it contains the behaviour-specific attribute containing the parameters for 1962849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * BSS selection to be done by driver and/or firmware. 1963849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * 1964849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported 1965849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status 1966d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * 1967d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment 1968d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * 1969d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes: 1970d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * %NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA, 1971d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities per 1972d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * interface type. 1973d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * 197458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO 197558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * groupID for monitor mode. 197658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * The first 8 bytes are a mask that defines the membership in each 197758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * group (there are 64 groups, group 0 and 63 are reserved), 197858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * each bit represents a group and set to 1 for being a member in 197958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * that group and 0 for not being a member. 198058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * The remaining 16 bytes define the position in each group: 2 bits for 198158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * each group. 198258d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * (smaller group numbers represented on most significant bits and bigger 198358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * group numbers on least significant bits.) 198458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * This attribute is used only if all interfaces are in monitor mode. 198558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * Set this attribute in order to monitor packets using the given MU-MIMO 198658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * groupID data. 198758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * to turn off that feature set all the bits of the groupID to zero. 198858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR: mac address for the sniffer to follow 198958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * when using MU-MIMO air sniffer. 199058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * to turn that feature off set an invalid mac address 199158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * (e.g. FF:FF:FF:FF:FF:FF) 199258d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * 199358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_SCAN_START_TIME_TSF: The time at which the scan was actually 199458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * started (u64). The time is the TSF of the BSS the interface that 199558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * requested the scan is connected to (if available, otherwise this 199658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * attribute must not be included). 199758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_SCAN_START_TIME_TSF_BSSID: The BSS according to which 199858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * %NL80211_ATTR_SCAN_START_TIME_TSF is set. 199958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_MEASUREMENT_DURATION: measurement duration in TUs (u16). If 200058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * %NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY is not set, this is the 200158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * maximum measurement duration allowed. This attribute is used with 200258d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * measurement requests. It can also be used with %NL80211_CMD_TRIGGER_SCAN 200358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * if the scan is used for beacon report radio measurement. 200458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY: flag attribute that indicates 200558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * that the duration specified with %NL80211_ATTR_MEASUREMENT_DURATION is 200658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * mandatory. If this flag is not set, the duration is the maximum duration 200758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * and the actual measurement duration may be shorter. 200858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * 200958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer (u16). This is 201058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * used to pull the stored data for mesh peer in power save state. 201158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * 20129839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by 20139839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * %NL80211_CMD_START_NAN and optionally with 20149839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0. 20159839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Also, values 1 and 255 are reserved for certification purposes and 20169839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * should not be used during a normal device operation. 2017d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_BANDS: operating bands configuration. This is a u32 2018d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * bitmask of BIT(NL80211_BAND_*) as described in %enum 2019d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * nl80211_band. For instance, for NL80211_BAND_2GHZ, bit 0 2020d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * would be set. This attribute is used with 2021d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_CMD_START_NAN and %NL80211_CMD_CHANGE_NAN_CONFIG, and 2022d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * it is optional. If no bands are set, it means don't-care and 2023d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * the device will decide what to use. 20249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See 20259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * &enum nl80211_nan_func_attributes for description of this nested 20269839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * attribute. 20279839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_NAN_MATCH: used to report a match. This is a nested attribute. 20289839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * See &enum nl80211_nan_match_attributes. 20299839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_FILS_KEK: KEK for FILS (Re)Association Request/Response frame 20309839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * protection. 20319839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_ATTR_FILS_NONCES: Nonces (part of AAD) for FILS (Re)Association 20329839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Request/Response frame protection. This attribute contains the 16 octet 20339839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * STA Nonce followed by 16 octets of AP Nonce. 20349839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 2035abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * @NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED: Indicates whether or not multicast 2036abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * packets should be send out as unicast to all stations (flag attribute). 2037abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt * 2038092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * @NL80211_ATTR_BSSID: The BSSID of the AP. Note that %NL80211_ATTR_MAC is also 2039092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * used in various commands/events for specifying the BSSID. 2040092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * 2041ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI: Relative RSSI threshold by which 2042ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * other BSSs has to be better or slightly worse than the current 2043ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * connected BSS so that they get reported to user space. 2044ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * This will give an opportunity to userspace to consider connecting to 2045ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * other matching BSSs which have better or slightly worse RSSI than 2046ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * the current connected BSS by using an offloaded operation to avoid 2047ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * unnecessary wakeups. 2048ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * 2049ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST: When present the RSSI level for BSSs in 2050ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * the specified band is to be adjusted before doing 2051ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * %NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI based comparision to figure out 2052ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * better BSSs. The attribute value is a packed structure 2053ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * value as specified by &struct nl80211_bss_select_rssi_adjust. 2054ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * 2055ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out. 2056ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * u32 attribute with an &enum nl80211_timeout_reason value. This is used, 2057ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * e.g., with %NL80211_CMD_CONNECT event. 2058ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * 2059d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_FILS_ERP_USERNAME: EAP Re-authentication Protocol (ERP) 2060d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * username part of NAI used to refer keys rRK and rIK. This is used with 2061d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_CMD_CONNECT. 2062d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 2063d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_FILS_ERP_REALM: EAP Re-authentication Protocol (ERP) realm part 2064d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * of NAI specifying the domain name of the ER server. This is used with 2065d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_CMD_CONNECT. 2066d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 2067d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM: Unsigned 16-bit ERP next sequence number 2068d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * to use in ERP messages. This is used in generating the FILS wrapped data 2069d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * for FILS authentication and is used with %NL80211_CMD_CONNECT. 2070d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 2071d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_FILS_ERP_RRK: ERP re-authentication Root Key (rRK) for the 2072d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * NAI specified by %NL80211_ATTR_FILS_ERP_USERNAME and 2073d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_FILS_ERP_REALM. This is used for generating rIK and rMSK 2074d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * from successful FILS authentication and is used with 2075d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_CMD_CONNECT. 2076d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 2077d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP 2078d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * identifying the scope of PMKSAs. This is used with 2079d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA. 2080d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 2081d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_PMK: PMK for the PMKSA identified by %NL80211_ATTR_PMKID. 2082d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * This is used with @NL80211_CMD_SET_PMKSA. 2083d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * 20846c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NUM_NL80211_ATTR: total number of nl80211_attrs available 20858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_MAX: highest attribute number currently defined 20868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_AFTER_LAST: internal use 20878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 20888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attrs { 20891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* don't change the order or add anything between, this is ABI! */ 20908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_UNSPEC, 20918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY, 20938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_NAME, 20948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFINDEX, 20968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFNAME, 20978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IFTYPE, 20988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 20998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAC, 21008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DATA, 21028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_IDX, 21038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_CIPHER, 21048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_SEQ, 21058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT, 21068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_INTERVAL, 21088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DTIM_PERIOD, 21098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_HEAD, 21108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BEACON_TAIL, 21118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_AID, 21138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_FLAGS, 21148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_LISTEN_INTERVAL, 21158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_SUPPORTED_RATES, 21168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_VLAN, 21178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_INFO, 21188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_BANDS, 21208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MNTR_FLAGS, 21228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MESH_ID, 21248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_PLINK_ACTION, 21258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MPATH_NEXT_HOP, 21268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MPATH_INFO, 21278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_CTS_PROT, 21298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_SHORT_PREAMBLE, 21308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_SHORT_SLOT_TIME, 21318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_HT_CAPABILITY, 21338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORTED_IFTYPES, 21358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_ALPHA2, 21378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_RULES, 21388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MESH_CONFIG, 21408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_BASIC_RATES, 21428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TXQ_PARAMS, 21448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_FREQ, 21458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_CHANNEL_TYPE, 21468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT_MGMT, 21488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MGMT_SUBTYPE, 21508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_IE, 21518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_NUM_SCAN_SSIDS, 21538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SCAN_FREQUENCIES, 21558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SCAN_SSIDS, 21568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */ 21578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS, 21588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_INITIATOR, 21608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_TYPE, 21618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORTED_COMMANDS, 21638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME, 21658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SSID, 21668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AUTH_TYPE, 21678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REASON_CODE, 21688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_TYPE, 21708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_SCAN_IE_LEN, 21728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITES, 21738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_BEFORE, 21758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_AFTER, 21768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_FIXED, 21788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RETRY_SHORT, 21818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RETRY_LONG, 21828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 21838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_RTS_THRESHOLD, 21848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TIMED_OUT, 21868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_USE_MFP, 21888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STA_FLAGS2, 21908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT, 21928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TESTDATA, 21948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PRIVACY, 21968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 21978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DISCONNECTED_BY_AP, 21988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_STATUS_CODE, 21998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITES_PAIRWISE, 22018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CIPHER_SUITE_GROUP, 22028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WPA_VERSIONS, 22038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AKM_SUITES, 22048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REQ_IE, 22068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_RESP_IE, 22078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PREV_BSSID, 22098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY, 22118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEYS, 22128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PID, 22148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_4ADDR, 22168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SURVEY_INFO, 22188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PMKID, 22208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_NUM_PMKIDS, 22218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_DURATION, 22238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_COOKIE, 22258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_COVERAGE_CLASS, 22278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TX_RATES, 22298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME_MATCH, 22318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_ACK, 22338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_PS_STATE, 22358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM, 22378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_LOCAL_STATE_CHANGE, 22398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_AP_ISOLATE, 22418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TX_POWER_SETTING, 22438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_TX_POWER_LEVEL, 22448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_TX_FRAME_TYPES, 22468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_RX_FRAME_TYPES, 22478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FRAME_TYPE, 22488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 22508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, 22518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_SUPPORT_IBSS_RSN, 22538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_TX, 22558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_RX, 22568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MCAST_RATE, 22588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_OFFCHANNEL_TX_OK, 22608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_BSS_HT_OPMODE, 22628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_KEY_DEFAULT_TYPES, 22648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION, 22668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 22671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MESH_SETUP, 22681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, 22701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, 22711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SUPPORT_MESH_AUTH, 22731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_STA_PLINK_STATE, 22741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WOWLAN_TRIGGERS, 22761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, 22771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCHED_SCAN_INTERVAL, 22791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_INTERFACE_COMBINATIONS, 22811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SOFTWARE_IFTYPES, 22821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_REKEY_DATA, 22841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, 22861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN, 22871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCAN_SUPP_RATES, 22891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_HIDDEN_SSID, 22911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_IE_PROBE_RESP, 22931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_IE_ASSOC_RESP, 22941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_STA_WME, 22961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SUPPORT_AP_UAPSD, 22971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 22981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_ROAM_SUPPORT, 22991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_SCHED_SCAN_MATCH, 23011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_MAX_MATCH_SETS, 23021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PMKSA_CANDIDATE, 23041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TX_NO_CCK_RATE, 23061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_ACTION, 23081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_DIALOG_TOKEN, 23091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_OPERATION, 23101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_SUPPORT, 23111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_TDLS_EXTERNAL_SETUP, 23121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_DEVICE_AP_SME, 23141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_DONT_WAIT_FOR_ACK, 23161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_FEATURE_FLAGS, 23181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PROBE_RESP_OFFLOAD, 23201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 23211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_ATTR_PROBE_RESP, 23221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 2323c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_DFS_REGION, 2324c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 2325c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_DISABLE_HT, 2326c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_HT_CAPABILITY_MASK, 2327c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 2328c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_ATTR_NOACK_MAP, 2329c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 233004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_INACTIVITY_TIMEOUT, 233104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 233204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_RX_SIGNAL_DBM, 233304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 233404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_ATTR_BG_SCAN_PERIOD, 233504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 233661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_WDEV, 233761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 233861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_USER_REG_HINT_TYPE, 233961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 2340d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_CONN_FAILED_REASON, 2341d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 23429839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_AUTH_DATA, 2343d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 2344d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_VHT_CAPABILITY, 2345d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 2346d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_ATTR_SCAN_FLAGS, 2347d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 2348a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CHANNEL_WIDTH, 2349a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CENTER_FREQ1, 2350a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_CENTER_FREQ2, 2351a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 2352a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_P2P_CTWINDOW, 2353a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_ATTR_P2P_OPPPS, 2354a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 2355f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_LOCAL_MESH_POWER_MODE, 2356f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2357f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_ACL_POLICY, 2358f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2359f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_MAC_ADDRS, 2360f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2361f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_MAC_ACL_MAX, 2362f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2363f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_RADAR_EVENT, 2364f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2365f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_EXT_CAPA, 2366f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_EXT_CAPA_MASK, 2367f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 2368f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_STA_CAPABILITY, 2369f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ATTR_STA_EXT_CAPABILITY, 2370f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 23712f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_PROTOCOL_FEATURES, 23722f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_SPLIT_WIPHY_DUMP, 23732f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 23742f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_DISABLE_VHT, 23752f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_VHT_CAPABILITY_MASK, 23762f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 23772f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_MDID, 23782f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_ATTR_IE_RIC, 23792f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 238051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_ATTR_CRIT_PROT_ID, 238151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_ATTR_MAX_CRIT_PROT_DURATION, 238251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 23838bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_ATTR_PEER_AID, 23848bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt 2385e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE, 2386e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2387e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CH_SWITCH_COUNT, 2388e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CH_SWITCH_BLOCK_TX, 2389e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_IES, 2390e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_C_OFF_BEACON, 2391e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_CSA_C_OFF_PRESP, 2392e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2393e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_RXMGMT_FLAGS, 2394e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2395e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_STA_SUPPORTED_CHANNELS, 2396e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2397e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES, 2398e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2399e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_HANDLE_DFS, 2400e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 2401fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_SUPPORT_5_MHZ, 2402fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_SUPPORT_10_MHZ, 2403fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 2404fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_OPMODE_NOTIF, 2405fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 2406fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_ID, 2407fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_SUBCMD, 2408fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_DATA, 2409fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_VENDOR_EVENTS, 2410fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 2411fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_ATTR_QOS_MAP, 2412fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 241396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_MAC_HINT, 241496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_WIPHY_FREQ_HINT, 241596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 241696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_ATTR_MAX_AP_ASSOC_STA, 241796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 2418df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_ATTR_TDLS_PEER_CAPABILITY, 2419df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 24206c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_ATTR_SOCKET_OWNER, 24217832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt 24229ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_CSA_C_OFFSETS_TX, 24239ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_MAX_CSA_COUNTERS, 24249ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_TDLS_INITIATOR, 24269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_USE_RRM, 24289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_WIPHY_DYN_ACK, 24309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_TSID, 24329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_USER_PRIO, 24339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_ADMITTED_TIME, 24349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_ATTR_SMPS_MODE, 24369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 24376c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_ATTR_OPER_CLASS, 24386c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 24396c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_ATTR_MAC_MASK, 24406c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt 2441f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_WIPHY_SELF_MANAGED_REG, 2442f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2443f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_EXT_FEATURES, 2444f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2445f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_SURVEY_RADIO_STATS, 2446f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2447f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_NETNS_FD, 2448f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2449f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_SCHED_SCAN_DELAY, 2450f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2451f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_ATTR_REG_INDOOR, 2452f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2453d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS, 2454d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL, 2455d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, 2456d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_ATTR_SCHED_SCAN_PLANS, 2457d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt 245857c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt NL80211_ATTR_PBSS, 245957c2d39d85825f38c5fdac9b73bb0088406ffc85Dmitry Shmidt 2460849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_ATTR_BSS_SELECT, 2461849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 2462849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_ATTR_STA_SUPPORT_P2P_PS, 2463849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 2464d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_ATTR_PAD, 2465d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt 2466d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_ATTR_IFTYPE_EXT_CAPA, 2467d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt 246858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_MU_MIMO_GROUP_DATA, 246958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR, 247058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt 247158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_SCAN_START_TIME_TSF, 247258d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_SCAN_START_TIME_TSF_BSSID, 247358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_MEASUREMENT_DURATION, 247458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY, 247558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt 247658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_ATTR_MESH_PEER_AID, 247758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt 24789839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_NAN_MASTER_PREF, 2479d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_BANDS, 24809839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_NAN_FUNC, 24819839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_NAN_MATCH, 24829839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 24839839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_FILS_KEK, 24849839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_ATTR_FILS_NONCES, 24859839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 2486abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED, 2487abb90a3fc1917e628167827cb14e742000605332Dmitry Shmidt 2488092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart NL80211_ATTR_BSSID, 2489092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart 2490ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, 2491ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, 2492ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt 2493ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_ATTR_TIMEOUT_REASON, 2494ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt 2495d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_FILS_ERP_USERNAME, 2496d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_FILS_ERP_REALM, 2497d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM, 2498d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_FILS_ERP_RRK, 2499d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_FILS_CACHE_ID, 2500d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt 2501d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_PMK, 2502d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt 25038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* add attributes here, update the policy in nl80211.c */ 25048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_AFTER_LAST, 25066c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST, 25078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 25088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 25098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* source-level API compatibility */ 25118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION 25121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG 25136c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt#define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER 25149839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt#define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA 25158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/* 25178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Allow user space programs to use #ifdef on new attributes by defining them 25188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * here 25198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 25208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_CMD_CONNECT NL80211_CMD_CONNECT 25218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY 25228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES 25238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS 25248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ 25258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE 25268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE 25278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_IE NL80211_ATTR_IE 25288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR 25298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE 25308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_FRAME NL80211_ATTR_FRAME 25318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_SSID NL80211_ATTR_SSID 25328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE 25338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE 25348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE 25358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP 25368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS 25378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES 25388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEY NL80211_ATTR_KEY 25398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_ATTR_KEYS NL80211_ATTR_KEYS 25401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 25418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_SUPP_RATES 32 254304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MAX_SUPP_HT_RATES 77 2544f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_MAX_SUPP_REG_RULES 64 25458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 25468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 25478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 25488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_HT_CAPABILITY_LEN 26 2549d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt#define NL80211_VHT_CAPABILITY_LEN 12 25508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 25518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_CIPHER_SUITES 5 25528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_MAX_NR_AKM_SUITES 2 25538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 255404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 255504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 255604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* default RSSI threshold for scan results if none specified. */ 255704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_SCAN_RSSI_THOLD_OFF -300 255804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 255961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt#define NL80211_CQM_TXE_MAX_INTVL 1800 256061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 25618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 25628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_iftype - (virtual) interface types 25638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 25648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides 25658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_ADHOC: independent BSS member 25668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_STATION: managed BSS member 25678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_AP: access point 25681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces 25691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * are a bit special in that they must always be tied to a pre-existing 25701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * AP type interface. 25718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_WDS: wireless distribution interface 25728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames 25738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MESH_POINT: mesh point 25748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_CLIENT: P2P client 25758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_P2P_GO: P2P group owner 2576d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev 2577d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * and therefore can't be created in the normal ways, use the 2578d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE 2579d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * commands to create and destroy one 25806c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_IF_TYPE_OCB: Outside Context of a BSS 25816c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * This mode corresponds to the MIB variable dot11OCBActivated=true 25829839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_IFTYPE_NAN: NAN device interface type (not a netdev) 25838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_IFTYPE_MAX: highest interface type number currently defined 25848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_IFTYPES: number of defined interface types 25858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 25868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These values are used with the %NL80211_ATTR_IFTYPE 25878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to set the type of an interface. 25888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 25898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 25908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_iftype { 25918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_UNSPECIFIED, 25928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_ADHOC, 25938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_STATION, 25948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_AP, 25958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_AP_VLAN, 25968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_WDS, 25978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MONITOR, 25988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MESH_POINT, 25998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_P2P_CLIENT, 26008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_P2P_GO, 2601d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_IFTYPE_P2P_DEVICE, 26026c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_IFTYPE_OCB, 26039839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_IFTYPE_NAN, 26048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 26058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 26068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_IFTYPES, 26078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1 26088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 26098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 26108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 26118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_flags - station flags 26128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Station flags. When a station is added to an AP interface, it is 26148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * assumed to be already associated (and hence authenticated.) 26158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved 26178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) 26188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames 26198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * with short barker preamble 26208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_WME: station is WME/QoS capable 26218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MFP: station uses management frame protection 26221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated 2623c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should 2624c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * only be used in managed mode (even in the flags mask). Note that the 2625c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * flag can't be changed, it is only valid while adding a station, and 2626c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * attempts to change it will silently be ignored (rather than rejected 2627c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * as errors.) 2628f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers 2629f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a 2630f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * previously added station into associated state 26318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_FLAG_MAX: highest station flag number currently defined 26328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_FLAG_AFTER_LAST: internal use 26338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 26348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_flags { 26358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_FLAG_INVALID, 26368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_AUTHORIZED, 26378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_SHORT_PREAMBLE, 26388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_WME, 26398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_MFP, 26401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_FLAG_AUTHENTICATED, 26411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_FLAG_TDLS_PEER, 2642f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_FLAG_ASSOCIATED, 26438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 26448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 26458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_FLAG_AFTER_LAST, 26468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1 26478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 26488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 2649849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt/** 2650849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * enum nl80211_sta_p2p_ps_status - station support of P2P PS 2651849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * 2652849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism 2653849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism 2654849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NUM_NL80211_P2P_PS_STATUS: number of values 2655849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt */ 2656849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidtenum nl80211_sta_p2p_ps_status { 2657849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_P2P_PS_UNSUPPORTED = 0, 2658849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_P2P_PS_SUPPORTED, 2659849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 2660849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NUM_NL80211_P2P_PS_STATUS, 2661849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt}; 2662849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 266304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER 266404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 26658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 26668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * struct nl80211_sta_flag_update - station flags mask/set 26678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @mask: mask of station flags to set 26688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @set: which values to set them to 26698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Both mask and set contain bits as per &enum nl80211_sta_flags. 26718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 26728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstruct nl80211_sta_flag_update { 26738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __u32 mask; 26748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __u32 set; 26758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt} __attribute__((packed)); 26768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 26778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 26788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_rate_info - bitrate information 26798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_TXRATE 26818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about the bitrate of a station. 268261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * There are 2 attributes for bitrate, a legacy one that represents 268361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * a 16-bit value, and new one that represents a 32-bit value. 268461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * If the rate value fits into 16 bit, both attributes are reported 268561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * with the same value. If the rate is too high to fit into 16 bits 268661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * (>6.5535Gbps) only 32-bit attribute is included. 268761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * User space tools encouraged to use the 32-bit attribute and fall 268861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * back to the 16-bit one for compatibility with older kernels. 26898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 26908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved 26918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s) 26928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8) 2693a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate 26948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval 269561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s) 26968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined 2697a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8) 2698a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8) 2699a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate 2700f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the 2701f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * same as 160 for purposes of the bitrates 2702a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate 2703f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is 2704f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * a legacy rate and will be reported as the actual bitrate, i.e. 2705f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * half the base (20 MHz) rate 2706f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is 2707f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * a legacy rate and will be reported as the actual bitrate, i.e. 2708f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * a quarter of the base (20 MHz) rate 27098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_RATE_INFO_AFTER_LAST: internal use 27108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 27118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_rate_info { 27128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_RATE_INFO_INVALID, 27138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_BITRATE, 27148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_MCS, 27158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_40_MHZ_WIDTH, 27168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_SHORT_GI, 271761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_RATE_INFO_BITRATE32, 2718a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_VHT_MCS, 2719a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_VHT_NSS, 2720a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_80_MHZ_WIDTH, 2721a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_80P80_MHZ_WIDTH, 2722a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_RATE_INFO_160_MHZ_WIDTH, 2723f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_RATE_INFO_10_MHZ_WIDTH, 2724f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_RATE_INFO_5_MHZ_WIDTH, 27258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 27278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_RATE_INFO_AFTER_LAST, 27288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1 27298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 27308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 27318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 27321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_bss_param - BSS information collected by STA 27331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 27341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM 27351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * when getting information about the bitrate of a station. 27361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 27371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved 27381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag) 27391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled 27401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (flag) 27411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled 27421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (flag) 27431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8) 27441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16) 27451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined 27461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use 27471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 27481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_bss_param { 27491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_BSS_PARAM_INVALID, 27501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_CTS_PROT, 27511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_SHORT_PREAMBLE, 27521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME, 27531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_DTIM_PERIOD, 27541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_BEACON_INTERVAL, 27551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 27561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 27571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_BSS_PARAM_AFTER_LAST, 27581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1 27591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 27601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 27611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 27628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_sta_info - station information 27638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_STA_INFO 27658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a station. 27668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 27678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved 27688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs) 2769f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length) 2770f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u32, from this station) 2771f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length) 2772f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u32, to this station) 2773f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length) 2774f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u64, from this station) 2775f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length) 2776f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u64, to this station) 27778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 27788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 27791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing info as possible, see &enum nl80211_rate_info 2780f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs) 2781f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u32, from this station) 2782f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs) 2783f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u32, to this station) 2784f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station) 2785f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs) 2786f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u32, to this station) 27878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) 27881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_LLID: the station's mesh LLID 27891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLID: the station's mesh PLID 27901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station 27911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (see %enum nl80211_plink_state) 27921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested 27931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attribute, like NL80211_STA_INFO_TX_BITRATE. 27941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute 27951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * containing info as possible, see &enum nl80211_sta_bss_param 27961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected 27971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. 2798c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) 279904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) 2800f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode 2801f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode 2802f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards 2803f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * non-peer STA 28048bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU 28058bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Contains a nested array of signal strength attributes (u8, dBm) 28068bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average 28078bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. 28089ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the 28099ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 802.11 header (u32, kbps) 2810f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons 2811f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (u64) 2812f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64) 2813f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average 2814f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * for beacons only (u8, dBm) 2815f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats) 2816f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * This is a nested attribute where each the inner attribute number is the 2817f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames; 2818f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * each one of those is again nested with &enum nl80211_tid_stats 2819f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * attributes carrying the actual values. 2820d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames 2821d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * received from the station (u64, usec) 2822d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment 28231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_INFO_AFTER_LAST: internal 28241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_INFO_MAX: highest possible station info attribute 28258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 28268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_sta_info { 28278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_INFO_INVALID, 28288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_INACTIVE_TIME, 28298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_RX_BYTES, 28308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_BYTES, 28318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_LLID, 28328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_PLID, 28338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_PLINK_STATE, 28348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_SIGNAL, 28358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_BITRATE, 28368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_RX_PACKETS, 28378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_PACKETS, 28388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_RETRIES, 28398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_TX_FAILED, 28408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_SIGNAL_AVG, 28411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_RX_BITRATE, 28421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_BSS_PARAM, 28431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_CONNECTED_TIME, 28441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_INFO_STA_FLAGS, 2845c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_STA_INFO_BEACON_LOSS, 284604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_STA_INFO_T_OFFSET, 2847f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_LOCAL_PM, 2848f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_PEER_PM, 2849f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_NONPEER_PM, 2850f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_RX_BYTES64, 2851f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_STA_INFO_TX_BYTES64, 28528bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_STA_INFO_CHAIN_SIGNAL, 28538bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_STA_INFO_CHAIN_SIGNAL_AVG, 28549ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_STA_INFO_EXPECTED_THROUGHPUT, 2855f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_STA_INFO_RX_DROP_MISC, 2856f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_STA_INFO_BEACON_RX, 2857f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_STA_INFO_BEACON_SIGNAL_AVG, 2858f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_STA_INFO_TID_STATS, 2859d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_STA_INFO_RX_DURATION, 2860d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_STA_INFO_PAD, 28618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 28628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 28638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_STA_INFO_AFTER_LAST, 28648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 28658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 28668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 28678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 2868f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * enum nl80211_tid_stats - per TID statistics attributes 2869f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved 2870f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64) 2871f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or 2872f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * attempted to transmit; u64) 2873f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for 2874f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * transmitted MSDUs (not counting the first attempt; u64) 2875f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted 2876f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * MSDUs (u64) 2877d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment 2878f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NUM_NL80211_TID_STATS: number of attributes here 2879f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_TID_STATS_MAX: highest numbered attribute here 2880f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */ 2881f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidtenum nl80211_tid_stats { 2882f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt __NL80211_TID_STATS_INVALID, 2883f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_TID_STATS_RX_MSDU, 2884f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_TID_STATS_TX_MSDU, 2885f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_TID_STATS_TX_MSDU_RETRIES, 2886f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_TID_STATS_TX_MSDU_FAILED, 2887d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_TID_STATS_PAD, 2888f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2889f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt /* keep last */ 2890f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NUM_NL80211_TID_STATS, 2891f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1 2892f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt}; 2893f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 2894f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/** 28958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_flags - nl80211 mesh path flags 28968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 28978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active 28988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running 28998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN 29008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set 29018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded 29028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 29038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_flags { 29048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_ACTIVE = 1<<0, 29058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_RESOLVING = 1<<1, 29068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_SN_VALID = 1<<2, 29078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_FIXED = 1<<3, 29088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_FLAG_RESOLVED = 1<<4, 29098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 29108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 29128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mpath_info - mesh path information 29138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 29148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting 29158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * information about a mesh path. 29168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 29178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved 29188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination 29198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_SN: destination sequence number 29208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path 29218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now 29228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in 29238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_mpath_flags; 29248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec 29258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries 29268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number 29278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defind 29288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MPATH_INFO_AFTER_LAST: internal use 29298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 29308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mpath_info { 29318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MPATH_INFO_INVALID, 29328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_FRAME_QLEN, 29338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_SN, 29348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_METRIC, 29358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_EXPTIME, 29368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_FLAGS, 29378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, 29388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_DISCOVERY_RETRIES, 29398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 29418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MPATH_INFO_AFTER_LAST, 29428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 29438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 29448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 29468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band_attr - band attributes 29478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved 29488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, 29498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of nested frequency attributes 29508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, 29518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * an array of nested bitrate attributes 29528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as 29538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * defined in 802.11n 29548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE 29558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n 29568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n 295704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as 295804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * defined in 802.11ac 295904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE 29608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined 29618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BAND_ATTR_AFTER_LAST: internal use 29628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 29638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band_attr { 29648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BAND_ATTR_INVALID, 29658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_FREQS, 29668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_RATES, 29678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_MCS_SET, 29698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_CAPA, 29708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_AMPDU_FACTOR, 29718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_HT_AMPDU_DENSITY, 29728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 297304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_ATTR_VHT_MCS_SET, 297404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_ATTR_VHT_CAPA, 297504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 29768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 29778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BAND_ATTR_AFTER_LAST, 29788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 29798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 29808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA 29828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 29838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 29848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_frequency_attr - frequency attributes 29858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved 29868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz 29878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current 29888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 2989fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation 2990fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * are permitted on this channel, this includes sending probe 2991fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * requests, or modes of operation that require beaconing. 29928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory 29938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * on this channel in current regulatory domain. 29948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm 29958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * (100 * dBm). 2996f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS 2997f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (enum nl80211_dfs_state) 2998f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long 2999f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this channel is in this DFS state. 3000f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this 3001f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * channel as the control channel 3002f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this 3003f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * channel as the control channel 3004f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel 3005f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * as the primary or any of the secondary channels isn't possible, 3006f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * this includes 80+80 channels 3007f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel 3008f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * using this channel as the primary or any of the secondary channels 3009f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * isn't possible 3010df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 30117832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this 30127832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel. A channel that has the INDOOR_ONLY attribute can only be 30137832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * used when there is a clear assessment that the device is operating in 30147832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * an indoor surroundings, i.e., it is connected to AC power (and not 30157832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * through portable DC inverters) or is under the control of a master 30167832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * that is acting as an AP and is connected to AC power. 3017d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this 30187832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel if it's connected concurrently to a BSS on the same channel on 30197832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz 3020d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS 3021d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * off-channel on a channel that has the IR_CONCURRENT attribute set can be 3022d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * done when there is a clear assessment that the device is operating under 3023d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * the guidance of an authorized master, i.e., setting up a GO or TDLS 3024d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * off-channel while the device is also connected to an AP with DFS and 3025d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * radar detection on the UNII band (it is up to user-space, i.e., 3026d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * wpa_supplicant to perform the required verifications). Using this 3027d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * attribute for IR is disallowed for master interfaces (IBSS, AP). 30287832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed 30297832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * on this channel in current regulatory domain. 30307832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed 30317832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * on this channel in current regulatory domain. 30328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number 30338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 30348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use 30357832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * 30367832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122 30377832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * for more information on the FCC description of the relaxations allowed 30387832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and 3039d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * NL80211_FREQUENCY_ATTR_IR_CONCURRENT. 30408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 30418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_frequency_attr { 30428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_FREQUENCY_ATTR_INVALID, 30438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_FREQ, 30448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_DISABLED, 3045fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_IR, 3046fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __NL80211_FREQUENCY_ATTR_NO_IBSS, 30478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_RADAR, 30488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_MAX_TX_POWER, 3049f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_STATE, 3050f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_TIME, 3051f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_HT40_MINUS, 3052f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, 3053f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_80MHZ, 3054f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_160MHZ, 3055df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_FREQUENCY_ATTR_DFS_CAC_TIME, 30567832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_INDOOR_ONLY, 3057d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt NL80211_FREQUENCY_ATTR_IR_CONCURRENT, 30587832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_20MHZ, 30597832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FREQUENCY_ATTR_NO_10MHZ, 30608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 30628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_FREQUENCY_ATTR_AFTER_LAST, 30638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 30648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 30658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER 3067fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR 3068fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR 3069fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR 3070d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt#define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \ 3071d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt NL80211_FREQUENCY_ATTR_IR_CONCURRENT 30728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 30748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bitrate_attr - bitrate attributes 30758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved 30768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps 30778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported 30788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in 2.4 GHz band. 30798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number 30808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 30818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use 30828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 30838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bitrate_attr { 30848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BITRATE_ATTR_INVALID, 30858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_RATE, 30868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, 30878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 30898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BITRATE_ATTR_AFTER_LAST, 30908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 30918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 30928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 30938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 30948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_initiator - Indicates the initiator of a reg domain request 30958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world 30968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 30978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the 30988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * regulatory domain. 30998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the 31008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * wireless core it thinks its knows the regulatory domain we should be in. 31018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an 31028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 802.11 country information element with regulatory information it 31038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * thinks we should consider. cfg80211 only processes the country 31048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * code from the IE, and relies on the regulatory domain information 31051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * structure passed by userspace (CRDA) from our wireless-regdb. 31068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * If a channel is enabled but the country code indicates it should 31078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * be disabled we disable the channel and re-enable it upon disassociation. 31088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_initiator { 31108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_CORE, 31118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_USER, 31128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_DRIVER, 31138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_SET_BY_COUNTRY_IE, 31148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 31158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 31178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_type - specifies the type of regulatory domain 31188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains 31198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * to a specific country. When this is set you can count on the 31208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * ISO / IEC 3166 alpha2 country code being valid. 31218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory 31228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain. 31238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom 31248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * driver specific world regulatory domain. These do not apply system-wide 31258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * and are only applicable to the individual devices which have requested 31268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * them to be applied. 31278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product 31288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * of an intersection between two regulatory domains -- the previously 31298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * set regulatory domain on the system and the last accepted regulatory 31308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * domain request to be processed. 31318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_type { 31338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_COUNTRY, 31348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_WORLD, 31358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_CUSTOM_WORLD, 31368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REGDOM_TYPE_INTERSECTION, 31378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 31388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 31408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_attr - regulatory rule attributes 31418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved 31428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional 31438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * considerations for a given frequency range. These are the 31448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * &enum nl80211_reg_rule_flags. 31458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory 31468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * rule in KHz. This is not a center of frequency but an actual regulatory 31478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * band edge. 31488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule 31498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in KHz. This is not a center a frequency but an actual regulatory 31508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * band edge. 31518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this 3152df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * frequency range, in KHz. 31538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain 31548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * for a given frequency range. The value is in mBi (100 * dBi). 31558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * If you don't have one then don't send this. 31568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for 31578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * a given frequency range. The value is in mBm (100 * dBm). 3158df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 3159df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * If not present or 0 default CAC time will be used. 31608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number 31618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 31628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use 31638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 31648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_attr { 31658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_REG_RULE_ATTR_INVALID, 31668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_REG_RULE_FLAGS, 31678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_START, 31698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_END, 31708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_FREQ_RANGE_MAX_BW, 31718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, 31738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_POWER_RULE_MAX_EIRP, 31748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3175df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_ATTR_DFS_CAC_TIME, 3176df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 31778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 31788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_REG_RULE_ATTR_AFTER_LAST, 31798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 31808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 31818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 31828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 31831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sched_scan_match_attr - scheduled scan match attributes 31841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved 31851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, 318696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * only report BSS with matching SSID. 318704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a 318896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * BSS in scan results. Filtering is turned off if not specified. Note that 318996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * if this attribute is in a match set of its own, then it is treated as 319096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * the default value for all matchsets with an SSID, rather than being a 319196be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * matchset of its own without an RSSI filter. This is due to problems with 319296be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * how this API was implemented in the past. Also, due to the same problem, 319396be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * the only way to create a matchset with only an RSSI filter (with this 319496be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * attribute) is if there's only a single matchset with the RSSI attribute. 3195ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI: Flag indicating whether 3196ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * %NL80211_SCHED_SCAN_MATCH_ATTR_RSSI to be used as absolute RSSI or 3197ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * relative to current bss's RSSI. 3198ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST: When present the RSSI level for 3199ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * BSS-es in the specified band is to be adjusted before doing 3200ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * RSSI-based BSS selection. The attribute value is a packed structure 3201ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * value as specified by &struct nl80211_bss_select_rssi_adjust. 32021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter 32031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * attribute number currently defined 32041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use 32051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 32061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sched_scan_match_attr { 32071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, 32081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 320904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_SSID, 321004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_RSSI, 3211ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI, 3212ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST, 32131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 32141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 32151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, 32161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 32171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1 32181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 32191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 322004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* only for backward compatibility */ 322104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID 322204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 32231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 32248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_reg_rule_flags - regulatory rule flags 32258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 32268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed 32278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_CCK: CCK modulation not allowed 32288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_INDOOR: indoor operation not allowed 32298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed 32308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_DFS: DFS support is required to be used 32318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links 32328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links 3233fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, 3234fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * this includes probe requests or modes of operation that require 3235fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * beaconing. 3236df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated 3237df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * base on contiguous rules and wider channels will be allowed to cross 3238df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * multiple contiguous/overlapping frequency ranges. 3239d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt * @NL80211_RRF_IR_CONCURRENT: See &NL80211_FREQUENCY_ATTR_IR_CONCURRENT 32406c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation 32416c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation 32426c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed 32436c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed 32448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 32458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_reg_rule_flags { 32468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_OFDM = 1<<0, 32478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_CCK = 1<<1, 32488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_INDOOR = 1<<2, 32498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_NO_OUTDOOR = 1<<3, 32508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_DFS = 1<<4, 32518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_PTP_ONLY = 1<<5, 32528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_RRF_PTMP_ONLY = 1<<6, 3253fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_RRF_NO_IR = 1<<7, 3254fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __NL80211_RRF_NO_IBSS = 1<<8, 3255df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_RRF_AUTO_BW = 1<<11, 3256d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt NL80211_RRF_IR_CONCURRENT = 1<<12, 32576c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_RRF_NO_HT40MINUS = 1<<13, 32586c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_RRF_NO_HT40PLUS = 1<<14, 32596c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_RRF_NO_80MHZ = 1<<15, 32606c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_RRF_NO_160MHZ = 1<<16, 32618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 32628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3263fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR 3264fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR 3265fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR NL80211_RRF_NO_IR 32666c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt#define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\ 32676c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_RRF_NO_HT40PLUS) 3268d80a401aed31d06f261efd19223cf55d1a2a8228Dmitry Shmidt#define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT 3269fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 3270fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/* For backport compatibility with older userspace */ 3271fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS) 3272fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 32738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 3274c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * enum nl80211_dfs_regions - regulatory DFS regions 3275c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 3276c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_DFS_UNSET: Country has no DFS master region specified 327704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_FCC: Country follows DFS master rules from FCC 327804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI 327904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec 3280c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt */ 3281c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidtenum nl80211_dfs_regions { 3282c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_UNSET = 0, 3283c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_FCC = 1, 3284c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_ETSI = 2, 3285c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_DFS_JP = 3, 3286c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt}; 3287c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt 3288c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt/** 328961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * enum nl80211_user_reg_hint_type - type of user regulatory hint 329061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * 329161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always 329261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * assumed if the attribute is not set. 329361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular 329461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * base station. Device drivers that have been tested to work 329561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * properly to support this type of hint can enable these hints 329661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature 329761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * capability on the struct wiphy. The wireless core will 329861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * ignore all cell base station hints until at least one device 329961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * present has been registered with the wireless core that 330061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a 330161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * supported feature. 33027832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the 33037832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * platform is operating in an indoor environment. 330461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt */ 330561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidtenum nl80211_user_reg_hint_type { 330661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_USER_REG_HINT_USER = 0, 330761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_USER_REG_HINT_CELL_BASE = 1, 33087832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_USER_REG_HINT_INDOOR = 2, 330961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt}; 331061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt 331161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt/** 33128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_survey_info - survey information 33138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * These attribute types are used with %NL80211_ATTR_SURVEY_INFO 33158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * when getting information about a survey. 33168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved 33188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel 33198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 33208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used 3321f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio 3322f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * was turned on (on channel or globally) 3323f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary 33248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel was sensed busy (either due to activity or energy detect) 3325f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension 33268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * channel was sensed busy 3327f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent 3328f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * receiving data (on channel or globally) 3329f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent 3330f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * transmitting data (on channel or globally) 3331f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan 3332f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * (on this channel or globally) 3333d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment 33348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number 33358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * currently defined 33368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use 33378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 33388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_survey_info { 33398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_SURVEY_INFO_INVALID, 33408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_FREQUENCY, 33418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_NOISE, 33428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_IN_USE, 3343f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME, 3344f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME_BUSY, 3345f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME_EXT_BUSY, 3346f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME_RX, 3347f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME_TX, 3348f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_SURVEY_INFO_TIME_SCAN, 3349d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_SURVEY_INFO_PAD, 33508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 33528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_SURVEY_INFO_AFTER_LAST, 33538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1 33548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3356f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/* keep old names for compatibility */ 3357f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME NL80211_SURVEY_INFO_TIME 3358f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY NL80211_SURVEY_INFO_TIME_BUSY 3359f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY NL80211_SURVEY_INFO_TIME_EXT_BUSY 3360f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_RX NL80211_SURVEY_INFO_TIME_RX 3361f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt#define NL80211_SURVEY_INFO_CHANNEL_TIME_TX NL80211_SURVEY_INFO_TIME_TX 3362f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 33638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 33648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mntr_flags - monitor configuration flags 33658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Monitor configuration flags. 33678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_INVALID: reserved 33698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS 33718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP 33728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_CONTROL: pass control frames 33738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering 33748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. 33758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * overrides all other flags. 3376e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address 3377e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * and ACK incoming unicast packets. 33788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 33798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use 33808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag 33818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 33828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mntr_flags { 33838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MNTR_FLAG_INVALID, 33848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_FCSFAIL, 33858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_PLCPFAIL, 33868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_CONTROL, 33878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_OTHER_BSS, 33888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_COOK_FRAMES, 3389e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_MNTR_FLAG_ACTIVE, 33908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 33928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MNTR_FLAG_AFTER_LAST, 33938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1 33948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 33958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 33968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 3397f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_mesh_power_mode - mesh power save modes 3398f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3399f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is 3400f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * not known or has not been set yet. 3401f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is 3402f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in Awake state all the time. 3403f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will 3404f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * alternate between Active and Doze states, but will wake up for 3405f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * neighbor's beacons. 3406f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will 3407f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * alternate between Active and Doze states, but may not wake up 3408f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * for neighbor's beacons. 3409f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3410f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_MESH_POWER_AFTER_LAST - internal use 3411f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESH_POWER_MAX - highest possible power save level 3412f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 3413f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3414f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_mesh_power_mode { 3415f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_UNKNOWN, 3416f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_ACTIVE, 3417f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_LIGHT_SLEEP, 3418f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_DEEP_SLEEP, 3419f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3420f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __NL80211_MESH_POWER_AFTER_LAST, 3421f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1 3422f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 3423f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 3424f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 34258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_meshconf_params - mesh configuration parameters 34268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh configuration parameters. These can be changed while the mesh is 34281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * active. 34298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_INVALID: internal use 34318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in 343304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units, used by the Peer Link Open message 34348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in 343604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units, used by the peer link management to close a peer link 34378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in 343904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * millisecond units 34408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed 344204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * on this mesh interface 34438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link 344504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * open retries that can be sent to establish a new peer link instance in a 344604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * mesh 34478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh 344904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * point. 34508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34512f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open 34522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * peer links when we detect compatible mesh peers. Disabled if 34532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are 34542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * set. 34558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames 345704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * containing a PREQ that an MP can send to a particular destination (path 345804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * target) 34598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths 346104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (in milliseconds) 34628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait 346404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * until giving up on a path discovery (in milliseconds) 34658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh 346704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * points receiving a PREQ shall consider the forwarding information from 346804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the root to be valid. (TU = time unit) 34698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in 347104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * TUs) during which an MP can send only one action frame containing a PREQ 347204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * reference element 34738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) 347504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * that it takes for an HWMP information element to propagate across the 347604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * mesh 34778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 34781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not 34791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 34801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a 348104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * source mesh point for path selection elements. 34821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 34831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between 348404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * root announcements are transmitted. 34851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 34861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has 348704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * access to a broader network beyond the MBSS. This is done via Root 348804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Announcement frames. 34898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 3490c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in 349104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * TUs) during which a mesh STA can send only one Action frame containing a 349204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * PERR element. 3493c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 3494c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding 349504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * or forwarding entity (default is TRUE - forwarding entity) 349604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 349704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the 349804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * threshold for average signal strength of candidate station to establish 349904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * a peer link. 350004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 350104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors 350204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * to synchronize to for 11s default synchronization method 350304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (see 11C.12.2.2) 350404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 350504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode. 3506c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * 35078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 35088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 350904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for 351004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * which mesh STAs receiving a proactive PREQ shall consider the forwarding 351104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * information to the root mesh STA to be valid. 351204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 351304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between 351404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * proactive PREQs are transmitted. 351504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 351604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time 351704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * (in TUs) during which a mesh STA can send only one Action frame 351804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * containing a PREQ element for root path confirmation. 351904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 3520f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links. 3521f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * type &enum nl80211_mesh_power_mode (u32) 3522f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3523f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) 3524f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 3525e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've 3526e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * established peering with for longer than this time (in seconds), then 3527f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * remove it from the STA's list of peers. You may set this to 0 to disable 3528f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * the removal of the STA. Default is 30 minutes. 3529e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 35308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 35318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 35328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_meshconf_params { 35338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MESHCONF_INVALID, 35348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_RETRY_TIMEOUT, 35358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_CONFIRM_TIMEOUT, 35368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HOLDING_TIMEOUT, 35378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MAX_PEER_LINKS, 35388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MAX_RETRIES, 35398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_TTL, 35408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_AUTO_OPEN_PLINKS, 35418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, 35428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_PATH_REFRESH_TIME, 35438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, 35448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, 35458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, 35468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, 35478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_HWMP_ROOTMODE, 35488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_ELEMENT_TTL, 35491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESHCONF_HWMP_RANN_INTERVAL, 35501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESHCONF_GATE_ANNOUNCEMENTS, 3551c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, 3552c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt NL80211_MESHCONF_FORWARDING, 355304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_RSSI_THRESHOLD, 355404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, 355504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HT_OPMODE, 355604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, 355704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_ROOT_INTERVAL, 355804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, 3559f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESHCONF_POWER_MODE, 3560f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_MESHCONF_AWAKE_WINDOW, 3561e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_MESHCONF_PLINK_TIMEOUT, 35628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 35638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 35648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_MESHCONF_ATTR_AFTER_LAST, 35658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1 35668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 35678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 35688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 35691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_mesh_setup_params - mesh setup parameters 35701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Mesh setup parameters. These are used to start/join a mesh and cannot be 35721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * changed while the mesh is active. 35731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_INVALID: Internal use 35751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a 357704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific path selection algorithm or disable it to use the 357804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * default HWMP. 35791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a 358104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific path metric or disable it to use the default Airtime 358204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * metric. 35831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a 358504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * robust security network ie, or a vendor specific information element 358604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * that vendors will use to identify the path selection methods and 358704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * metrics in use. 35881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication 359004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * daemon will be authenticating mesh candidates. 35911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 35921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication 359304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * daemon will be securing peer link frames. AMPE is a secured version of 359404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * Mesh Peering Management (MPM) and is implemented with the assistance of 359504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * a userspace daemon. When this flag is set, the kernel will send peer 359604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * management frames to a userspace daemon that will implement AMPE 359704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * functionality (security capabilities selection, key confirmation, and 359804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * key management). When the flag is unset (default), the kernel can 359904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * autonomously complete (unsecured) mesh peering without the need of a 360004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * userspace daemon. 360104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 360204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a 360304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * vendor specific synchronization method or disable it to use the default 360404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * neighbor offset synchronization 36051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 36062f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will 36072f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * implement an MPM which handles peer allocation and state. 36082f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 36098bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication 36108bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE). 36118bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * Default is no authentication method required. 36128bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt * 36131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number 361404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * 36151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use 36161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 36171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_mesh_setup_params { 36181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_MESH_SETUP_INVALID, 36191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, 36201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, 36211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_IE, 36221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_AUTH, 36231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_AMPE, 362404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, 36252f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_MESH_SETUP_USERSPACE_MPM, 36268bae4138a0356709720a96f3e50b4d734e532c12Dmitry Shmidt NL80211_MESH_SETUP_AUTH_PROTOCOL, 36271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 36281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 36291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_MESH_SETUP_ATTR_AFTER_LAST, 36301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1 36311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 36321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 36331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 36348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_txq_attr - TX queue parameter attributes 36358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved 363604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) 36378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning 36388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * disabled 36398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form 36408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2^n-1 in the range 1..32767] 36418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form 36428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 2^n-1 in the range 1..32767] 36438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255] 36448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal 36458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number 36468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 36478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_txq_attr { 36488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXQ_ATTR_INVALID, 364904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_TXQ_ATTR_AC, 36508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_TXOP, 36518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_CWMIN, 36528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_CWMAX, 36538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_AIFS, 36548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 36558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 36568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXQ_ATTR_AFTER_LAST, 36578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 36588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 36598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 366004949598a23f501be6eec21697465fd46a28840aDmitry Shmidtenum nl80211_ac { 366104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_VO, 366204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_VI, 366304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_BE, 366404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_AC_BK, 366504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_NUM_ACS 36668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 36678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 366804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/* backward compat */ 366904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC 367004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VO NL80211_AC_VO 367104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_VI NL80211_AC_VI 367204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BE NL80211_AC_BE 367304949598a23f501be6eec21697465fd46a28840aDmitry Shmidt#define NL80211_TXQ_Q_BK NL80211_AC_BK 367404949598a23f501be6eec21697465fd46a28840aDmitry Shmidt 3675a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/** 3676a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_channel_type - channel type 3677a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel 3678a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT20: 20 MHz HT channel 3679a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel 3680a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * below the control channel 3681a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel 3682a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * above the control channel 3683a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */ 36848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_channel_type { 36858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_NO_HT, 36868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT20, 36878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT40MINUS, 36888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CHAN_HT40PLUS 36898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 36908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 36918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 3692a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * enum nl80211_chan_width - channel width definitions 3693a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 3694a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH 3695a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute. 3696a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * 3697a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel 3698a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel 3699a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3700a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3701a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3702a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3703a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3704a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well 3705a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 3706a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * attribute must be provided as well 3707e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel 3708e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel 3709a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt */ 3710a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidtenum nl80211_chan_width { 3711a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_20_NOHT, 3712a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_20, 3713a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_40, 3714a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_80, 3715a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_80P80, 3716a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_CHAN_WIDTH_160, 3717e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CHAN_WIDTH_5, 3718e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_CHAN_WIDTH_10, 3719e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 3720e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 3721e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 3722e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_bss_scan_width - control channel width for a BSS 3723e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 3724e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute. 3725e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 3726e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible 3727e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide 3728e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide 3729e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 3730e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_bss_scan_width { 3731e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_20, 3732e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_10, 3733e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH_5, 3734a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt}; 3735a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt 3736a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt/** 37378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss - netlink attributes for a BSS 37388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 37398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_INVALID: invalid 37408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) 37418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) 37428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) 37439ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (if @NL80211_BSS_PRESP_DATA is present then this is known to be 37449ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * from a probe response, otherwise it may be from the same beacon 37459ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * that the NL80211_BSS_BEACON_TSF will be from) 37468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) 37478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) 37488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the 37498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * raw information elements from the probe response/beacon (bin); 37509ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * if the %NL80211_BSS_BEACON_IES attribute is present and the data is 37519ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * different then the IEs here are from a Probe Response frame; otherwise 37529ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * they are from a Beacon frame. 37538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * However, if the driver does not indicate the source of the IEs, these 37548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * IEs may be from either frame subtype. 37559ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the 37569ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * data here is known to be from a probe response, without any heuristics. 37578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon 37588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in mBm (100 * dBm) (s32) 37598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon 37608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in unspecified units, scaled to 0..100 (u8) 37618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS: status, if this BSS is "used" 37628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms 37638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information 37648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * elements from a Beacon frame (bin); not present if no Beacon frame has 37658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * yet been received 3766e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel 3767e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * (u32, enum nl80211_bss_scan_width) 37689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64) 37699ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * (not present if no beacon frame has been received yet) 37709ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and 37719ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_BSS_TSF is known to be from a probe response (flag attribute) 3772d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry 3773d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * was last updated by a received frame. The value is expected to be 3774d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * accurate to about 10ms. (u64, nanoseconds) 3775d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment 377658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_BSS_PARENT_TSF: the time at the start of reception of the first 377758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * octet of the timestamp field of the last beacon/probe received for 377858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * this BSS. The time is the TSF of the BSS specified by 377958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_BSS_PARENT_BSSID. (u64). 378058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_BSS_PARENT_BSSID: the BSS according to which @NL80211_BSS_PARENT_TSF 378158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * is set. 37828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_BSS_AFTER_LAST: internal 37838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_MAX: highest BSS attribute 37848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 37858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss { 37868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BSS_INVALID, 37878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BSSID, 37888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_FREQUENCY, 37898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_TSF, 37908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BEACON_INTERVAL, 37918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_CAPABILITY, 37928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_INFORMATION_ELEMENTS, 37938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SIGNAL_MBM, 37948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SIGNAL_UNSPEC, 37958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS, 37968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_SEEN_MS_AGO, 37978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_BEACON_IES, 3798e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_BSS_CHAN_WIDTH, 37999ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_BSS_BEACON_TSF, 38009ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_BSS_PRESP_DATA, 3801d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_BSS_LAST_SEEN_BOOTTIME, 3802d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NL80211_BSS_PAD, 380358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_BSS_PARENT_TSF, 380458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_BSS_PARENT_BSSID, 38058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 38078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_BSS_AFTER_LAST, 38088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1 38098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 38128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_bss_status - BSS "status" 38138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS. 3814f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Note that this is no longer used since cfg80211 no longer 3815f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * keeps track of whether or not authentication was done with 3816f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * a given BSS. 38178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS. 38188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS. 38198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 38208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * The BSS status is a BSS attribute in scan dumps, which 38218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * indicates the status the interface has wrt. this BSS. 38228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 38238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_bss_status { 38248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_AUTHENTICATED, 38258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_ASSOCIATED, 38268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BSS_STATUS_IBSS_JOINED, 38278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 38308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_auth_type - AuthenticationType 38318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 38328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication 38338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only) 38348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r) 38358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP) 3836d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals 38379839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_AUTHTYPE_FILS_SK: Fast Initial Link Setup shared key 38389839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_AUTHTYPE_FILS_SK_PFS: Fast Initial Link Setup shared key with PFS 38399839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_AUTHTYPE_FILS_PK: Fast Initial Link Setup public key 38408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_AUTHTYPE_NUM: internal 38418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm 38428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by 38438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * trying multiple times); this is invalid in netlink -- leave out 38448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the attribute for this on CONNECT commands. 38458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 38468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_auth_type { 38478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_OPEN_SYSTEM, 38488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_SHARED_KEY, 38498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_FT, 38508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_NETWORK_EAP, 3851d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_AUTHTYPE_SAE, 38529839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_AUTHTYPE_FILS_SK, 38539839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_AUTHTYPE_FILS_SK_PFS, 38549839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_AUTHTYPE_FILS_PK, 38558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38568d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 38578d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_AUTHTYPE_NUM, 38588d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1, 38598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_AUTHTYPE_AUTOMATIC 38608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 38638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_type - Key Type 38648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key 38658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key 38668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) 38678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEYTYPES: number of defined key types 38688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 38698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_type { 38708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_GROUP, 38718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_PAIRWISE, 38728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEYTYPE_PEERKEY, 38738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_KEYTYPES 38758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 38788d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_mfp - Management frame protection state 38798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_NO: Management frame protection not used 38808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_MFP_REQUIRED: Management frame protection required 38818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 38828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_mfp { 38838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MFP_NO, 38848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_MFP_REQUIRED, 38858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_wpa_versions { 38888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_WPA_VERSION_1 = 1 << 0, 38898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_WPA_VERSION_2 = 1 << 1, 38908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 38918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 38928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 38938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_default_types - key default types 38948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid 38958d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default 38968d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * unicast key 38978d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default 38988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * multicast key 38998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types 39008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 39018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_default_types { 39028d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_DEFAULT_TYPE_INVALID, 39038d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPE_UNICAST, 39048d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPE_MULTICAST, 39058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 39068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NUM_NL80211_KEY_DEFAULT_TYPES 39078d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 39088d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 39098d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 39108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_key_attributes - key attributes 39118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_INVALID: invalid 39128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of 39138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 39148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * keys 39158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_IDX: key ID (u8, 0-3) 39168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 39178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * section 7.3.2.25.1, e.g. 0x000FAC04) 39188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 39198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * CCMP keys, each six bytes in little endian 39208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT: flag indicating default key 39218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key 39228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not 39238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * specified the default depends on whether a MAC address was 39248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * given with the command using the key or not (u32) 39258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags 39268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * attributes, specifying what a key should be set as default as. 39278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * See &enum nl80211_key_default_types. 39288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_KEY_AFTER_LAST: internal 39298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_KEY_MAX: highest key attribute 39308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 39318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_key_attributes { 39328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_INVALID, 39338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DATA, 39348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_IDX, 39358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_CIPHER, 39368d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_SEQ, 39378d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT, 39388d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_MGMT, 39398d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_TYPE, 39408d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_DEFAULT_TYPES, 39418d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 39428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 39438d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_KEY_AFTER_LAST, 39448d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1 39458d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 39468d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 39478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 39488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_rate_attributes - TX rate set attributes 39498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_INVALID: invalid 39508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection 39518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with 39528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * 1 = 500 kbps) but without the IE length restriction (at most 39538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * %NL80211_MAX_SUPP_RATES in a single array). 3954fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection 395504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * in an array of MCS numbers. 3956fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, 3957fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * see &struct nl80211_txrate_vht 395896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi 39598d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_TXRATE_AFTER_LAST: internal 39608d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TXRATE_MAX: highest TX rate attribute 39618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 39628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_rate_attributes { 39638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXRATE_INVALID, 39648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXRATE_LEGACY, 3965fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_TXRATE_HT, 3966fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt NL80211_TXRATE_VHT, 396796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_GI, 39688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 39698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 39708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_TXRATE_AFTER_LAST, 39718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1 39728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 39738d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 3974fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_TXRATE_MCS NL80211_TXRATE_HT 3975fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VHT_NSS_MAX 8 3976fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 3977fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/** 3978fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap 3979fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) 3980fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 3981fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_txrate_vht { 3982fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u16 mcs[NL80211_VHT_NSS_MAX]; 3983fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt}; 3984fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 398596be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidtenum nl80211_txrate_gi { 398696be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_DEFAULT_GI, 398796be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_FORCE_SGI, 398896be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt NL80211_TXRATE_FORCE_LGI, 398996be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt}; 399096be6222df414a7dde5c5b1b72df22e67b1a77fcDmitry Shmidt 39918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 39928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_band - Frequency band 39938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_2GHZ: 2.4 GHz ISM band 39948d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz) 399504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz) 3996d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace 3997d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt * since newer kernel versions may support more bands 39988d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 39998d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_band { 40008d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_2GHZ, 40018d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_BAND_5GHZ, 400204949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_BAND_60GHZ, 4003d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt 4004d5ab1b53af720d05586ccc0addabe93459f1f388Dmitry Shmidt NUM_NL80211_BANDS, 40058d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 40068d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 400704949598a23f501be6eec21697465fd46a28840aDmitry Shmidt/** 400804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * enum nl80211_ps_state - powersave state 400904949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_DISABLED: powersave is disabled 401004949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_PS_ENABLED: powersave is enabled 401104949598a23f501be6eec21697465fd46a28840aDmitry Shmidt */ 40128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_ps_state { 40138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_PS_DISABLED, 40148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_PS_ENABLED, 40158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 40168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 40188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_attr_cqm - connection quality monitor attributes 40198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_INVALID: invalid 40208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies 40218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the threshold for the RSSI level at which an event will be sent. Zero 4022d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * to disable. Alternatively, if %NL80211_EXT_FEATURE_CQM_RSSI_LIST is 4023d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * set, multiple values can be supplied as a low-to-high sorted array of 4024d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * threshold values in dBm. Events will be sent when the RSSI value 4025d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * crosses any of the thresholds. 40268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies 40278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * the minimum amount the RSSI level must change after an event before a 40288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * new event may be issued (to reduce effects of RSSI oscillation). 40298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event 40308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many 40318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * consecutive packets were not acknowledged by the peer 403261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures 403361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * during the given %NL80211_ATTR_CQM_TXE_INTVL before an 403461d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and 403561d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_PKTS is generated. 403661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given 403761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is 403861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * checked. 403961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic 404061d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * interval in which %NL80211_ATTR_CQM_TXE_PKTS and 404161d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an 404261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting. 40436c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon 40446c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * loss event 4045d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_ATTR_CQM_RSSI_LEVEL: the RSSI value in dBm that triggered the 4046d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * RSSI threshold event. 40478d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @__NL80211_ATTR_CQM_AFTER_LAST: internal 40488d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_ATTR_CQM_MAX: highest key attribute 40498d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 40508d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_attr_cqm { 40518d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_CQM_INVALID, 40528d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_THOLD, 40538d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_HYST, 40548d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, 40558d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_PKT_LOSS_EVENT, 405661d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_RATE, 405761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_PKTS, 405861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt NL80211_ATTR_CQM_TXE_INTVL, 40596c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_ATTR_CQM_BEACON_LOSS_EVENT, 4060d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_ATTR_CQM_RSSI_LEVEL, 40618d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40628d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt /* keep last */ 40638d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt __NL80211_ATTR_CQM_AFTER_LAST, 40648d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1 40658d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 40668d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40678d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 40688d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event 40698d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the 40708d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * configured threshold 40718d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the 40728d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * configured threshold 40736c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent) 40748d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 40758d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_cqm_rssi_threshold_event { 40768d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW, 40778d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, 407804949598a23f501be6eec21697465fd46a28840aDmitry Shmidt NL80211_CQM_RSSI_BEACON_LOSS_EVENT, 40798d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 40808d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40818d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40828d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/** 40838d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * enum nl80211_tx_power_setting - TX power adjustment 40848d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power 40858d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter 40868d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter 40878d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */ 40888d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum nl80211_tx_power_setting { 40898d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_AUTOMATIC, 40908d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_LIMITED, 40918d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt NL80211_TX_POWER_FIXED, 40928d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}; 40938d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt 40941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 4095e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_packet_pattern_attr - packet pattern attribute 4096e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute 4097e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has 40981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a zero bit are ignored 4099e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have 41001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a bit for each byte in the pattern. The lowest-order bit corresponds 41011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the first byte of the pattern, but the bytes of the pattern are 41021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in a little-endian-like format, i.e. the 9th byte of the pattern 41031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * corresponds to the lowest-order bit in the second byte of the mask. 41041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where 41051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * xx indicates "don't care") would be represented by a pattern of 4106f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * twelve zero bytes, and a mask of "0xed,0x01". 41071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Note that the pattern matching is done as though frames were not 41081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked 41091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * first (including SNAP header unpacking) and then matched. 4110e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after 4111f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * these fixed number of bytes of received packet 4112e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_PKTPAT: number of attributes 4113e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @MAX_NL80211_PKTPAT: max attribute number 41141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 4115e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_packet_pattern_attr { 4116e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __NL80211_PKTPAT_INVALID, 4117e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_MASK, 4118e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_PATTERN, 4119e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_PKTPAT_OFFSET, 41201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 4121e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NUM_NL80211_PKTPAT, 4122e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1, 41231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 41241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 41251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 4126e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_pattern_support - packet pattern support information 41271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_patterns: maximum number of patterns supported 41281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @min_pattern_len: minimum length of each pattern 41291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @max_pattern_len: maximum length of each pattern 4130f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_pkt_offset: maximum Rx packet offset 41311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 41321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when 4133e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in 4134e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of 4135e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * %NL80211_ATTR_COALESCE_RULE in the capability information given 4136e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * by the kernel to userspace. 41371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 4138e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_pattern_support { 41391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 max_patterns; 41401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 min_pattern_len; 41411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __u32 max_pattern_len; 4142f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 max_pkt_offset; 41431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt} __attribute__((packed)); 41441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 4145e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/* only for backward compatibility */ 4146e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID 4147e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK 4148e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN 4149e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET 4150e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT 4151e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT 4152e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt#define nl80211_wowlan_pattern_support nl80211_pattern_support 4153e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 41541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 41551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_wowlan_triggers - WoWLAN trigger definitions 41561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes 41571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put 41581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the chip into a special state -- works best with chips that have 41591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * support for low-power operation already (flag) 4160f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * Note that this mode is incompatible with all of the others, if 4161f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * any others are even supported by the device. 41621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect 41631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is detected is implementation-specific (flag) 41641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed 41651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by 16 repetitions of MAC addr, anywhere in payload) (flag) 41661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns 41671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * which are passed in an array of nested attributes, each nested attribute 41681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern. 4169f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Each pattern defines a wakeup packet. Packet offset is associated with 4170f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * each pattern which is used while matching the pattern. The matching is 4171f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the 4172f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * pattern matching is done after the packet is converted to the MSDU. 41731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 41741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute 4175e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * carrying a &struct nl80211_pattern_support. 4176f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4177f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * When reporting wakeup. it is a u32 attribute containing the 0-based 4178f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * index of the pattern that caused the wakeup, in the patterns passed 4179f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * to the kernel when configuring. 41801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be 41811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * used when setting, used only to indicate that GTK rekeying is supported 41821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * by the device (flag) 41831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if 41841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * done by the device) (flag) 41851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request 41861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * packet (flag) 41871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag) 41881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released 41891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (on devices that have rfkill in the device) (flag) 4190f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains 4191f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame 4192f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN 4193f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute contains the original length. 4194f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11 4195f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 4196f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute if the packet was truncated somewhere. 4197f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the 4198f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 802.11 packet that caused the wakeup, e.g. a magic packet. The frame may 4199f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute 4200f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * contains the original length. 4201f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3 4202f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 4203f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * attribute if the packet was truncated somewhere. 4204f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section 4205f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * "TCP connection wakeup" for more details. This is a nested attribute 4206f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * containing the exact information for establishing and keeping alive 4207f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the TCP connection. 4208f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the 4209f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * wakeup packet was received on the TCP connection 4210f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the 4211f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * TCP connection was lost or failed to be established 4212f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only, 4213f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the TCP connection ran out of tokens to use for data to send to the 4214f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * service 42156c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network 42166c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * is detected. This is a nested attribute that contains the 42176c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * same attributes used with @NL80211_CMD_START_SCHED_SCAN. It 4218f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * specifies how the scan is performed (e.g. the interval, the 4219f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * channels to scan and the initial delay) as well as the scan 4220f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * results that will trigger a wake (i.e. the matchsets). This 4221f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * attribute is also sent in a response to 4222f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_CMD_GET_WIPHY, indicating the number of match sets 4223f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * supported by the driver (u32). 42246c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute 42256c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * containing an array with information about what triggered the 42266c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * wake up. If no elements are present in the array, it means 42276c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * that the information is not available. If more than one 42286c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * element is present, it means that more than one match 42296c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * occurred. 42306c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * Each element in the array is a nested attribute that contains 42316c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * one optional %NL80211_ATTR_SSID attribute and one optional 42326c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_SCAN_FREQUENCIES attribute. At least one of 42336c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * these attributes must be present. If 42346c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one 42356c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * frequency, it means that the match occurred in more than one 42366c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * channel. 42371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers 42381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number 4239f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4240f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * These nested attributes are used to configure the wakeup triggers and 4241f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * to report the wakeup reason(s). 42421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 42431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_wowlan_triggers { 42441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_WOWLAN_TRIG_INVALID, 42451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_ANY, 42461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_DISCONNECT, 42471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_MAGIC_PKT, 42481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_PKT_PATTERN, 42491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED, 42501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE, 42511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST, 42521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE, 42531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_WOWLAN_TRIG_RFKILL_RELEASE, 4254f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211, 4255f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN, 4256f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023, 4257f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN, 4258f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_TCP_CONNECTION, 4259f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH, 4260f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST, 4261f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, 42626c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_WOWLAN_TRIG_NET_DETECT, 42636c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS, 42641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 42651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 42661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_WOWLAN_TRIG, 42671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1 42681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 42691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 42701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 4271f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * DOC: TCP connection wakeup 4272f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4273f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Some devices can establish a TCP connection in order to be woken up by a 4274f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet coming in from outside their network segment, or behind NAT. If 4275f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * configured, the device will establish a TCP connection to the given 4276f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * service, and periodically send data to that service. The first data 4277f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK. 4278f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * The data packets can optionally include a (little endian) sequence 4279f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * number (in the TCP payload!) that is generated by the device, and, also 4280f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * optionally, a token from a list of tokens. This serves as a keep-alive 4281f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * with the service, and for NATed connections, etc. 4282f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4283f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * During this keep-alive period, the server doesn't send any data to the 4284f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * client. When receiving data, it is compared against the wakeup pattern 4285f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (and mask) and if it matches, the host is woken up. Similarly, if the 4286f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * connection breaks or cannot be established to start with, the host is 4287f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * also woken up. 4288f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4289f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Developer's note: ARP offload is required for this, otherwise TCP 4290f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * response packets might not go through correctly. 4291f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4292f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4293f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4294f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence 4295f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @start: starting value 4296f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of sequence number in packet 4297f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of the sequence value to write, 1 through 4 4298f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4299f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Note: don't confuse with the TCP sequence number(s), this is for the 4300f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * keepalive packet payload. The actual value is written into the packet 4301f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in little endian. 4302f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4303f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_seq { 4304f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 start, offset, len; 4305f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4306f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4307f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4308f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config 4309f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @offset: offset of token in packet 4310f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @len: length of each token 4311f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @token_stream: stream of data to be used for the tokens, the length must 4312f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be a multiple of @len for this to make sense 4313f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4314f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token { 4315f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 offset, len; 4316f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u8 token_stream[]; 4317f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4318f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4319f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4320f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * struct nl80211_wowlan_tcp_data_token_feature - data token features 4321f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @min_len: minimum token length 4322f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @max_len: maximum token length 4323f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @bufsize: total available token buffer size (max size of @token_stream) 4324f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4325f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct nl80211_wowlan_tcp_data_token_feature { 4326f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __u32 min_len, max_len, bufsize; 4327f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4328f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4329f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4330f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters 4331f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes 4332f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order) 4333f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address 4334f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (in network byte order) 4335f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because 4336f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * route lookup when configured might be invalid by the time we suspend, 4337f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and doing a route lookup when suspending is no longer possible as it 4338f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * might require ARP querying. 4339f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a 4340f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * socket and port will be allocated 4341f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16) 4342f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte. 4343f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * For feature advertising, a u32 attribute holding the maximum length 4344f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * of the data payload. 4345f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration 4346f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature 4347f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * advertising it is just a flag 4348f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration, 4349f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * see &struct nl80211_wowlan_tcp_data_token and for advertising see 4350f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * &struct nl80211_wowlan_tcp_data_token_feature. 4351f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum 4352f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * interval in feature advertising (u32) 4353f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a 4354f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * u32 attribute holding the maximum length 4355f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for 4356e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * feature advertising. The mask works like @NL80211_PKTPAT_MASK 4357f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * but on the TCP payload only. 4358f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes 4359f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @MAX_NL80211_WOWLAN_TCP: highest attribute number 4360f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4361f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_wowlan_tcp_attrs { 4362f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt __NL80211_WOWLAN_TCP_INVALID, 4363f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_SRC_IPV4, 4364f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_IPV4, 4365f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_MAC, 4366f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_SRC_PORT, 4367f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DST_PORT, 4368f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD, 4369f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, 4370f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, 4371f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_DATA_INTERVAL, 4372f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_WAKE_PAYLOAD, 4373f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_WOWLAN_TCP_WAKE_MASK, 4374f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4375f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt /* keep last */ 4376f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NUM_NL80211_WOWLAN_TCP, 4377f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1 4378f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4379f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4380f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4381e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * struct nl80211_coalesce_rule_support - coalesce rule support information 4382e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_rules: maximum number of rules supported 4383e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @pat: packet pattern support information 4384e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @max_delay: maximum supported coalescing delay in msecs 4385e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 4386e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the 4387e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * capability information given by the kernel to userspace. 4388e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 4389e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtstruct nl80211_coalesce_rule_support { 4390e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __u32 max_rules; 4391e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt struct nl80211_pattern_support pat; 4392e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __u32 max_delay; 4393e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt} __attribute__((packed)); 4394e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 4395e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 4396e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_attr_coalesce_rule - coalesce rule attribute 4397e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute 4398e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing 4399e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence, 4400e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * see &enum nl80211_coalesce_condition. 4401e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched 4402e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * after these fixed number of bytes of received packet 4403e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes 4404e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number 4405e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 4406e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_attr_coalesce_rule { 4407e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt __NL80211_COALESCE_RULE_INVALID, 4408e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_DELAY, 4409e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_CONDITION, 4410e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_PKT_PATTERN, 4411e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 4412e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt /* keep last */ 4413e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NUM_NL80211_ATTR_COALESCE_RULE, 4414e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1 4415e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 4416e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 4417e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 4418e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_coalesce_condition - coalesce rule conditions 4419e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns 4420e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in a rule are matched. 4421e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns 4422e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * in a rule are not matched. 4423e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 4424e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_coalesce_condition { 4425e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_COALESCE_CONDITION_MATCH, 4426e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_COALESCE_CONDITION_NO_MATCH 4427e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 4428e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 4429e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 44301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_iface_limit_attrs - limit attributes 44311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_UNSPEC: (reserved) 44321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that 44331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * can be chosen from this set of interface types (u32) 44341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a 44351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * flag attribute for each interface type in this set 44361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_LIMIT: number of attributes 44371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_LIMIT: highest attribute number 44381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 44391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_iface_limit_attrs { 44401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_UNSPEC, 44411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_MAX, 44421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_LIMIT_TYPES, 44431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 44441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 44451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_IFACE_LIMIT, 44461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1 44471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 44481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 44491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 44501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_if_combination_attrs -- interface combination attributes 44511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_UNSPEC: (reserved) 44531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits 44541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * for given interface types, see &enum nl80211_iface_limit_attrs. 44551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of 44561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interfaces that can be created in this group. This number doesn't 44571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * apply to interfaces purely managed in software, which are listed 44581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE. 44591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that 44601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * beacon intervals within this group must be all the same even for 44611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * infrastructure and AP/GO combinations, i.e. the GO(s) must adopt 44621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * the infrastructure network's beacon interval. 44631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many 44641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * different channels may be used within this group. 4465f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap 4466f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * of supported channel widths for radar detection. 44679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap 44689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * of supported regulatory regions for radar detection. 44699839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_IFACE_COMB_BI_MIN_GCD: u32 attribute specifying the minimum GCD of 44709839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * different beacon intervals supported by all the interface combinations 44719839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * in this group (if not present, all beacon intervals be identical). 44721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_IFACE_COMB: number of attributes 44731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_IFACE_COMB: highest attribute number 44741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Examples: 44761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2 44771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows an AP and a STA that must match BIs 44781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44799839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * numbers = [ #{AP, P2P-GO} <= 8 ], BI min gcd, channels = 1, max = 8, 44809839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * => allows 8 of AP/GO that can have BI gcd >= min gcd 44811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{STA} <= 2 ], channels = 2, max = 2 44831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows two STAs on different channels 44841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4 44861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * => allows a STA plus three P2P interfaces 44871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * The list of these four possiblities could completely be contained 44891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate 44901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * that any of these groups must match. 44911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 44921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * "Combinations" of just a single interface will not be listed here, 44931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * a single interface of any valid interface type is assumed to always 44941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * be possible by itself. This means that implicitly, for each valid 44951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * interface type, the following group always exists: 44961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * numbers = [ #{<type>} <= 1 ], channels = 1, max = 1 44971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 44981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_if_combination_attrs { 44991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_UNSPEC, 45001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_LIMITS, 45011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_MAXNUM, 45021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_STA_AP_BI_MATCH, 45031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_IFACE_COMB_NUM_CHANNELS, 4504f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, 45059ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, 45069839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_IFACE_COMB_BI_MIN_GCD, 45071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 45091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_IFACE_COMB, 45101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 45111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 45121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 45151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_plink_state - state of a mesh peer link finite state machine 45161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 45171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_LISTEN: initial state, considered the implicit 45181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * state of non existant mesh peer links 45191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to 45201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * this mesh peer 45211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received 45221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * from this mesh peer 45231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been 45241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * received from this mesh peer 45251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_ESTAB: mesh peer link is established 45261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled 45271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh 45281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * plink are discarded 45291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PLINK_STATES: number of peer link states 45301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states 45311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 45321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_plink_state { 45331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_LISTEN, 45341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_OPN_SNT, 45351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_OPN_RCVD, 45361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_CNF_RCVD, 45371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_ESTAB, 45381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_HOLDING, 45391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PLINK_BLOCKED, 45401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 45421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_PLINK_STATES, 45431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1 45441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 45451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45462f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/** 45472f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum nl80211_plink_action - actions to perform in mesh peers 45482f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * 45492f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_NO_ACTION: perform no action 45502f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment 45512f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer 45522f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NUM_NL80211_PLINK_ACTIONS: number of possible actions 45532f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */ 45542f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum plink_actions { 45552f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_NO_ACTION, 45562f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_OPEN, 45572f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PLINK_ACTION_BLOCK, 45582f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 45592f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NUM_NL80211_PLINK_ACTIONS, 45602f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt}; 45612f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 45622f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 45631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KCK_LEN 16 45641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_KEK_LEN 16 45651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt#define NL80211_REPLAY_CTR_LEN 8 45661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 45681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_rekey_data - attributes for GTK rekey offload 45691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes 45701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KEK: key encryption key (binary) 45711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_KCK: key confirmation key (binary) 45721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary) 45731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal) 45741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal) 45751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 45761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_rekey_data { 45771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_REKEY_DATA_INVALID, 45781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_KEK, 45791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_KCK, 45801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_REKEY_DATA_REPLAY_CTR, 45811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 45831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_REKEY_DATA, 45841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1 45851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 45861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 45871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 45881f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID 45891f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in 45901f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Beacon frames) 45911f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element 45921f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * in Beacon frames 45931f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID 45941f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * element in Beacon frames but zero out each byte in the SSID 45951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 45961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_hidden_ssid { 45971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_NOT_IN_USE, 45981f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_ZERO_LEN, 45991f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_HIDDEN_SSID_ZERO_CONTENTS 46001f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 46011f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46021f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 46031f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_sta_wme_attr - station WME attributes 46041f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_INVALID: invalid number for nested attribute 46051f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format 46061f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * is the same as the AC bitmap in the QoS info field. 46071f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX_SP: max service period. the format is the same 46081f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * as the MAX_SP field in the QoS info field (but already shifted down). 46091f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_STA_WME_AFTER_LAST: internal 46101f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_STA_WME_MAX: highest station WME attribute 46111f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 46121f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_sta_wme_attr { 46131f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_WME_INVALID, 46141f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_UAPSD_QUEUES, 46151f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_MAX_SP, 46161f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46171f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 46181f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_STA_WME_AFTER_LAST, 46191f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 46201f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 46211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46221f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 46231f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates 46241f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes 46251f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher 46261f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * priority) 46271f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets) 46281f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag) 46291f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes 46301f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (internal) 46311f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute 46321f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * (internal) 46331f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 46341f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_pmksa_candidate_attr { 46351f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt __NL80211_PMKSA_CANDIDATE_INVALID, 46361f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_INDEX, 46371f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_BSSID, 46381f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PMKSA_CANDIDATE_PREAUTH, 46391f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46401f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt /* keep last */ 46411f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NUM_NL80211_PMKSA_CANDIDATE, 46421f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1 46431f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 46441f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46451f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 46461f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION 46471f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request 46481f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_SETUP: Setup TDLS link 46491f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established 46501f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link 46511f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link 46521f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 46531f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_tdls_operation { 46541f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_DISCOVERY_REQ, 46551f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_SETUP, 46561f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_TEARDOWN, 46571f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_ENABLE_LINK, 46581f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_TDLS_DISABLE_LINK, 46591f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 46601f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/* 46621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_ap_sme_features - device-integrated AP features 46631f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Reserved for future use, no bits are defined in 46641f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * NL80211_ATTR_DEVICE_AP_SME yet. 46651f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_ap_sme_features { 46661f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 46671f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 46681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 46691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 46701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_feature_flags - device/driver features 46711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back 46721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * TX status to the socket error queue when requested with the 46731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * socket option. 4674c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. 467504949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up 467604949598a23f501be6eec21697465fd46a28840aDmitry Shmidt * the connected inactive stations in AP mode. 467761d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested 467861d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * to work properly to suppport receiving regulatory hints from 467961d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt * cellular base stations. 46809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only 46819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * here to reserve the value for API/ABI compatibility) 4682d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of 4683d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station 4684d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * mode 4685d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan 4686d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported 4687d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif 4688d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting 4689d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform 4690d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * OBSS scans and generate 20/40 BSS coex reports. This flag is used only 4691d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied. 4692a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window 4693a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * setting 4694a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic 4695a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt * powersave 4696f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state 4697f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * transitions for AP clients. Without this flag (and if the driver 4698f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * doesn't have the AP SME in the device) the driver supports adding 4699f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations only when they're associated and adds them in associated 4700f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * state (to later be transitioned into authorized), with this flag 4701f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * they should be added before even sending the authentication reply 4702f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * and then transitioned into authenticated, associated and authorized 4703f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * states using station flags. 4704f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Note that even for drivers that support this, the default is to add 4705f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations in authenticated/associated state, so to add unauthenticated 4706f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * stations the authenticated/associated bits have to be set in the mask. 4707f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits 4708f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * (HT40, VHT 80/160 MHz) if this flag is set 47092f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh 47102f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * Peering Management entity which may be implemented by registering for 47112f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is 47122f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * still generated by the driver. 4713e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor 4714e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * interface. An active monitor interface behaves like a normal monitor 4715e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * interface, but gets added to the driver. It ensures that incoming 4716e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * unicast packets directed at the configured interface address get ACKed. 47177832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic 47187832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the 47197832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt * lifetime of a BSS. 47209ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter 47219ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Set IE to probe requests. 47229ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE 47239ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * to probe requests. 47249ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period 47259ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * requests sent to it by an AP. 47269ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the 47279ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * current tx power value into the TPC Report IE in the spectrum 47289ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * management TPC Report action frame, and in the Radio Measurement Link 47299ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Measurement Report action frame. 47309ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout 47319ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used 47329ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * to enable dynack. 47339ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial 47349ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * multiplexing powersave, ie. can turn off all but one chain 47359ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * even on HT connections that should be using more chains. 47369ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial 47379ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * multiplexing powersave, ie. can turn off all but one chain 47389ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * and then wake the rest up as required after, for example, 47399ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * rts/cts handshake. 47406c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM 47416c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS 47426c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it 47436c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * needs to be able to handle Block-Ack agreements and other things. 47446c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring 47456c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * the vif's MAC address upon creation. 47466c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * See 'macaddr' field in the vif_params (cfg80211.h). 47476c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when 47486c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * operating as a TDLS peer. 47496c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a 47506c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * random MAC address during scan (if the device is unassociated); the 47516c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * %NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC 47526c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * address mask/value will be used. 47536c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports 47546c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * using a random MAC address for every scan iteration during scheduled 47556c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may 47566c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * be set for scheduled scan and the MAC address mask/value will be used. 47576c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a 47586c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * random MAC address for every scan iteration during "net detect", i.e. 47596c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may 47606c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * be set for scheduled scan and the MAC address mask/value will be used. 47611f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 47621f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_feature_flags { 4763d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SK_TX_STATUS = 1 << 0, 4764d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_HT_IBSS = 1 << 1, 4765d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, 4766d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3, 47679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4, 4768d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SAE = 1 << 5, 4769d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6, 4770d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_SCAN_FLUSH = 1 << 7, 4771d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_AP_SCAN = 1 << 8, 4772d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_VIF_TXPOWER = 1 << 9, 4773d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10, 4774a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11, 4775a54fa5fb807eaeff45464139b5a7759f060cec68Dmitry Shmidt NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12, 4776f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt /* bit 13 is reserved */ 4777f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, 4778f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, 47792f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_FEATURE_USERSPACE_MPM = 1 << 16, 4780e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, 47817832adbbd72a1b784b7fb74a71a5d4085b0cb0d3Dmitry Shmidt NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, 47829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19, 47839ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20, 47849ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_QUIET = 1 << 21, 47859ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22, 47869ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, 47879ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_STATIC_SMPS = 1 << 24, 47889ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, 47896c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26, 47906c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_MAC_ON_CREATE = 1 << 27, 47916c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 1 << 28, 47926c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 1 << 29, 47936c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1 << 30, 47946c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1 << 31, 47951f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 47961f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 47971f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt/** 4798f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * enum nl80211_ext_feature_index - bit index of extended features. 4799f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates. 4800849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_EXT_FEATURE_RRM: This driver supports RRM. When featured, user can 4801849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * can request to use RRM (see %NL80211_ATTR_USE_RRM) with 4802849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set 4803849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * the ASSOC_REQ_USE_RRM flag in the association request even if 4804849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * NL80211_FEATURE_QUIET is not advertized. 480558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air 480658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * sniffer which means that it can be configured to hear packets from 480758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * certain groups which can be configured by the 480858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * %NL80211_ATTR_MU_MIMO_GROUP_DATA attribute, 480958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * or can be configured to follow a station by configuring the 481058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * %NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR attribute. 481158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_EXT_FEATURE_SCAN_START_TIME: This driver includes the actual 481258d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * time the scan started in scan results event. The time is the TSF of 481358d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * the BSS that the interface that requested the scan is connected to 481458d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * (if available). 481558d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the 481658d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * time the last beacon/probe was received. The time is the TSF of the 481758d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * BSS that the interface that requested the scan is connected to 481858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * (if available). 481958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of 482058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt * channel dwell time. 48219839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate 48229839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate. 48239839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate 48249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * configuration (AP/mesh) with HT rates. 48259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate 48269839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * configuration (AP/mesh) with VHT rates. 48279839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup 48289839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode. 4829ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA 4830ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * in @NL80211_CMD_FRAME while not associated. 4831ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports 4832ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * randomized TA in @NL80211_CMD_FRAME while associated. 4833ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI: The driver supports sched_scan 4834ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * for reporting BSSs with better RSSI than the current connected BSS 4835ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * (%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI). 4836d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_EXT_FEATURE_CQM_RSSI_LIST: With this driver the 4837d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * %NL80211_ATTR_CQM_RSSI_THOLD attribute accepts a list of zero or more 4838d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * RSSI threshold values to monitor rather than exactly one threshold. 4839d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD: Driver SME supports FILS shared key 4840d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * authentication with %NL80211_CMD_CONNECT. 4841f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * 4842f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @NUM_NL80211_EXT_FEATURES: number of extended features. 4843f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt * @MAX_NL80211_EXT_FEATURES: highest extended feature index. 4844f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt */ 4845f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidtenum nl80211_ext_feature_index { 4846f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NL80211_EXT_FEATURE_VHT_IBSS, 4847849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_EXT_FEATURE_RRM, 484858d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER, 484958d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_EXT_FEATURE_SCAN_START_TIME, 485058d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_EXT_FEATURE_BSS_PARENT_TSF, 485158d12adcdf693a076f719cef9b9f2ccf81892045Dmitry Shmidt NL80211_EXT_FEATURE_SET_SCAN_DWELL, 48529839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 48539839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_EXT_FEATURE_BEACON_RATE_HT, 48549839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_EXT_FEATURE_BEACON_RATE_VHT, 48559839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_EXT_FEATURE_FILS_STA, 4856ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA, 4857ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED, 4858ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI, 4859d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_EXT_FEATURE_CQM_RSSI_LIST, 4860d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_EXT_FEATURE_FILS_SK_OFFLOAD, 4861f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 4862f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt /* add new features before the definition below */ 4863f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt NUM_NL80211_EXT_FEATURES, 4864f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1 4865f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt}; 4866f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt 4867f73259cc00af557e36add405799b7f2326587c13Dmitry Shmidt/** 48681f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * enum nl80211_probe_resp_offload_support_attr - optional supported 48691f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * protocols for probe-response offloading by the driver/FW. 48701f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute. 48711f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * Each enum value represents a bit in the bitmap of supported 48721f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * protocols. Typically a subset of probe-requests belonging to a 48731f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * supported protocol will be excluded from offload and uploaded 48741f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * to the host. 48751f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * 48761f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1 48771f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2 48781f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P 48791f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u 48801f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt */ 48811f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidtenum nl80211_probe_resp_offload_support_attr { 48821f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0, 48831f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1, 48841f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2, 48851f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3, 48861f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt}; 48871f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt 4888d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/** 4889d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_connect_failed_reason - connection request failed reasons 4890d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be 4891d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * handled by the AP is reached. 4892f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL. 4893d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */ 4894d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_connect_failed_reason { 4895d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CONN_FAIL_MAX_CLIENTS, 4896d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_CONN_FAIL_BLOCKED_CLIENT, 4897d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt}; 4898d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 4899d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt/** 4900ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * enum nl80211_timeout_reason - timeout reasons 4901ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * 4902ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified. 4903ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out. 4904ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_TIMEOUT_AUTH: Authentication timed out. 4905ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt * @NL80211_TIMEOUT_ASSOC: Association timed out. 4906ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt */ 4907ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidtenum nl80211_timeout_reason { 4908ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_TIMEOUT_UNSPECIFIED, 4909ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_TIMEOUT_SCAN, 4910ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_TIMEOUT_AUTH, 4911ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt NL80211_TIMEOUT_ASSOC, 4912ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt}; 4913ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt 4914ebd93af924f6e54fb4982b3312ff875a4896b62bDmitry Shmidt/** 4915d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * enum nl80211_scan_flags - scan request control flags 4916d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 4917d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * Scan request control flags are used to control the handling 4918d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN 4919d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * requests. 4920d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * 4921d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority 4922d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning 4923d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured 4924d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * as AP and the beaconing has already been configured. This attribute is 4925d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * dangerous because will destroy stations performance as a lot of frames 4926d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * will be lost while scanning off-channel, therefore it must be used only 4927d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt * when really needed 49286c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or 49296c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * for scheduled scan: a different one for every scan iteration). When the 49306c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * flag is set, depending on device capabilities the @NL80211_ATTR_MAC and 49316c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * @NL80211_ATTR_MAC_MASK attributes may also be given in which case only 49326c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * the masked bits will be preserved from the MAC address and the remainder 49336c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * randomised. If the attributes are not given full randomisation (46 bits, 49346c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * locally administered 1, multicast 0) is assumed. 49356c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * This flag must not be requested when the feature isn't supported, check 49366c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt * the nl80211 feature flags for the device. 4937d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt */ 4938d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidtenum nl80211_scan_flags { 4939d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, 4940d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_FLUSH = 1<<1, 4941d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt NL80211_SCAN_FLAG_AP = 1<<2, 49426c0da2bb83f6915d8260912362692d1a742e057bDmitry Shmidt NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3, 4943d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt}; 4944d5e4923d04122f81300fa68fb07d64ede28fd44dDmitry Shmidt 4945f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 4946f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_acl_policy - access control policy 4947f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4948f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Access control policy is applied on a MAC list set by 4949f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to 4950f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * be used with %NL80211_ATTR_ACL_POLICY. 4951f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4952f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are 4953f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * listed in ACL, i.e. allow all the stations which are not listed 4954f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in ACL to authenticate. 4955f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed 4956f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * in ACL, i.e. deny all the stations which are not listed in ACL. 4957f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 4958f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_acl_policy { 4959f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED, 4960f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_ACL_POLICY_DENY_UNLESS_LISTED, 4961f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 4962f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 4963f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 49649ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * enum nl80211_smps_mode - SMPS mode 49659ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 49669ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * Requested SMPS mode (for AP mode) 49679ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * 49689ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_OFF: SMPS off (use all antennas). 49699ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) 49709ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and 49719ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt * turn on other antennas after CTS/RTS). 49729ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt */ 49739ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidtenum nl80211_smps_mode { 49749ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_OFF, 49759ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_STATIC, 49769ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_DYNAMIC, 49779ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 49789ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt __NL80211_SMPS_AFTER_LAST, 49799ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1 49809ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt}; 49819ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt 49829ead16e203b81d44a2d84eadc2901ceeb7daf805Dmitry Shmidt/** 4983f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_radar_event - type of radar event for DFS operation 4984f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4985f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace 4986f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * about detected radars or success of the channel available check (CAC) 4987f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 4988f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is 4989f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * now unusable. 4990f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished, 4991f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * the channel is now available. 4992f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no 4993f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * change to the channel status. 4994f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is 4995f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * over, channel becomes usable. 4996d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * @NL80211_RADAR_PRE_CAC_EXPIRED: Channel Availability Check done on this 4997d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * non-operating channel is expired and no longer valid. New CAC must 4998d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * be done on this channel before starting the operation. This is not 4999d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt * applicable for ETSI dfs domain where pre-CAC is valid for ever. 5000f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 5001f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_radar_event { 5002f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_DETECTED, 5003f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_CAC_FINISHED, 5004f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_CAC_ABORTED, 5005f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_RADAR_NOP_FINISHED, 5006d2986c2e737a8441ff5a791b6b56c1c8322ef3c9Dmitry Shmidt NL80211_RADAR_PRE_CAC_EXPIRED, 5007f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 5008f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 5009f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/** 5010f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * enum nl80211_dfs_state - DFS states for channels 5011f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 5012f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Channel states used by the DFS code. 5013f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * 5014e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_USABLE: The channel can be used, but channel availability 5015f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * check (CAC) must be performed before using it for AP or IBSS. 5016e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it 5017f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * is therefore marked as not available. 5018e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available. 5019f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */ 5020f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum nl80211_dfs_state { 5021f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_USABLE, 5022f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_UNAVAILABLE, 5023f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt NL80211_DFS_AVAILABLE, 5024f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}; 5025f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt 50262f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt/** 50272f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * enum enum nl80211_protocol_features - nl80211 protocol features 50282f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting 50292f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * wiphy dumps (if requested by the application with the attribute 50302f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * %NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the 50312f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or 50322f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt * %NL80211_ATTR_WDEV. 50332f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt */ 50342f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidtenum nl80211_protocol_features { 50352f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0, 50362f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt}; 50372f023193a0fd630eb82ce6381b80911ad5a3462fDmitry Shmidt 503851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/** 503951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers 504051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * 504151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified. 504251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol. 504351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol. 504451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NL80211_CRIT_PROTO_APIPA: APIPA protocol. 504551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt * @NUM_NL80211_CRIT_PROTO: must be kept last. 504651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt */ 504751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidtenum nl80211_crit_proto_id { 504851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_UNSPEC, 504951b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_DHCP, 505051b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_EAPOL, 505151b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NL80211_CRIT_PROTO_APIPA, 505251b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt /* add other protocols before this one */ 505351b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt NUM_NL80211_CRIT_PROTO 505451b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt}; 505551b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 505651b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt/* maximum duration for critical protocol measures */ 505751b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt#define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ 505851b6ea882f234c14cd1fe1332a3840cf61fafccaDmitry Shmidt 5059e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt/** 5060e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * enum nl80211_rxmgmt_flags - flags for received management frame. 5061e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 5062e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * Used by cfg80211_rx_mgmt() 5063e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * 5064e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver. 5065e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt */ 5066e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidtenum nl80211_rxmgmt_flags { 5067e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0, 5068e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt}; 5069e0e48dc666fb14a7bb60264ca87463ba7bc1fe0bDmitry Shmidt 5070fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/* 5071fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * If this flag is unset, the lower 24 bits are an OUI, if set 5072fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * a Linux nl80211 vendor ID is used (no such IDs are allocated 5073fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * yet, so that's not valid so far) 5074fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 5075fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt#define NL80211_VENDOR_ID_IS_LINUX 0x80000000 5076fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 5077fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt/** 5078fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * struct nl80211_vendor_cmd_info - vendor command data 5079fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the 5080fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * value is a 24-bit OUI; if it is set then a separately allocated ID 5081fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * may be used, but no such IDs are allocated yet. New IDs should be 5082fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * added to this file when needed. 5083fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt * @subcmd: sub-command ID for the command 5084fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt */ 5085fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidtstruct nl80211_vendor_cmd_info { 5086fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u32 vendor_id; 5087fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt __u32 subcmd; 5088fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt}; 5089fb79edc9df1f20461e90e478363d207348213d35Dmitry Shmidt 5090df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt/** 5091df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * enum nl80211_tdls_peer_capability - TDLS peer flags. 5092df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 5093df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * Used by tdls_mgmt() to determine which conditional elements need 5094df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * to be added to TDLS Setup frames. 5095df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * 5096df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable. 5097df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable. 5098df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable. 5099df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt */ 5100df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidtenum nl80211_tdls_peer_capability { 5101df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_HT = 1<<0, 5102df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_VHT = 1<<1, 5103df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt NL80211_TDLS_PEER_WMM = 1<<2, 5104df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt}; 5105df5a7e4c5c64890c2425bb47d665bbce4992b676Dmitry Shmidt 5106d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt/** 5107d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * enum nl80211_sched_scan_plan - scanning plan for scheduled scan 5108d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @__NL80211_SCHED_SCAN_PLAN_INVALID: attribute number 0 is reserved 5109d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_SCHED_SCAN_PLAN_INTERVAL: interval between scan iterations. In 5110d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * seconds (u32). 5111d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_SCHED_SCAN_PLAN_ITERATIONS: number of scan iterations in this 5112d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * scan plan (u32). The last scan plan must not specify this attribute 5113d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * because it will run infinitely. A value of zero is invalid as it will 5114d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * make the scan plan meaningless. 5115d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @NL80211_SCHED_SCAN_PLAN_MAX: highest scheduled scan plan attribute number 5116d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * currently defined 5117d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt * @__NL80211_SCHED_SCAN_PLAN_AFTER_LAST: internal use 5118d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt */ 5119d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidtenum nl80211_sched_scan_plan { 5120d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt __NL80211_SCHED_SCAN_PLAN_INVALID, 5121d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_SCHED_SCAN_PLAN_INTERVAL, 5122d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_SCHED_SCAN_PLAN_ITERATIONS, 5123d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt 5124d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt /* keep last */ 5125d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt __NL80211_SCHED_SCAN_PLAN_AFTER_LAST, 5126d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt NL80211_SCHED_SCAN_PLAN_MAX = 5127d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt __NL80211_SCHED_SCAN_PLAN_AFTER_LAST - 1 5128d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt}; 5129d7ff03d48f825360eec2a371e3361306f2fd721bDmitry Shmidt 5130849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt/** 5131849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * struct nl80211_bss_select_rssi_adjust - RSSI adjustment parameters. 5132849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * 5133092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * @band: band of BSS that must match for RSSI value adjustment. The value 5134092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * of this field is according to &enum nl80211_band. 5135092955c7394ee96d6c8c9724ff46a3c038b36143Paul Stewart * @delta: value used to adjust the RSSI value of matching BSS in dB. 5136849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt */ 5137849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidtstruct nl80211_bss_select_rssi_adjust { 5138849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt __u8 band; 5139849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt __s8 delta; 5140849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt} __attribute__((packed)); 5141849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 5142849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt/** 5143849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * enum nl80211_bss_select_attr - attributes for bss selection. 5144849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * 5145849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @__NL80211_BSS_SELECT_ATTR_INVALID: reserved. 5146849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_BSS_SELECT_ATTR_RSSI: Flag indicating only RSSI-based BSS selection 5147849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * is requested. 5148849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_BSS_SELECT_ATTR_BAND_PREF: attribute indicating BSS 5149849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * selection should be done such that the specified band is preferred. 5150849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * When there are multiple BSS-es in the preferred band, the driver 5151849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * shall use RSSI-based BSS selection as a second step. The value of 5152849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * this attribute is according to &enum nl80211_band (u32). 5153849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_BSS_SELECT_ATTR_RSSI_ADJUST: When present the RSSI level for 5154849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * BSS-es in the specified band is to be adjusted before doing 5155849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * RSSI-based BSS selection. The attribute value is a packed structure 5156849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * value as specified by &struct nl80211_bss_select_rssi_adjust. 5157849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @NL80211_BSS_SELECT_ATTR_MAX: highest bss select attribute number. 5158849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * @__NL80211_BSS_SELECT_ATTR_AFTER_LAST: internal use. 5159849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * 5160849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * One and only one of these attributes are found within %NL80211_ATTR_BSS_SELECT 5161849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * for %NL80211_CMD_CONNECT. It specifies the required BSS selection behaviour 5162849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt * which the driver shall use. 5163849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt */ 5164849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidtenum nl80211_bss_select_attr { 5165849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt __NL80211_BSS_SELECT_ATTR_INVALID, 5166849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_BSS_SELECT_ATTR_RSSI, 5167849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_BSS_SELECT_ATTR_BAND_PREF, 5168849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_BSS_SELECT_ATTR_RSSI_ADJUST, 5169849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 5170849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt /* keep last */ 5171849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt __NL80211_BSS_SELECT_ATTR_AFTER_LAST, 5172849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt NL80211_BSS_SELECT_ATTR_MAX = __NL80211_BSS_SELECT_ATTR_AFTER_LAST - 1 5173849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt}; 5174849734c8d1847920ed7042463f7480b1e0c1dfeaDmitry Shmidt 51759839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 51769839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_function_type - NAN function type 51779839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 51789839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Defines the function type of a NAN function 51799839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 51809839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_PUBLISH: function is publish 51819839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe 51829839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up 51839839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 51849839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_function_type { 51859839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_PUBLISH, 51869839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_SUBSCRIBE, 51879839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_FOLLOW_UP, 51889839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 51899839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt /* keep last */ 51909839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt __NL80211_NAN_FUNC_TYPE_AFTER_LAST, 51919839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_MAX_TYPE = __NL80211_NAN_FUNC_TYPE_AFTER_LAST - 1, 51929839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 51939839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 51949839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 51959839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_publish_type - NAN publish tx type 51969839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 51979839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Defines how to send publish Service Discovery Frames 51989839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 51999839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SOLICITED_PUBLISH: publish function is solicited 52009839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_UNSOLICITED_PUBLISH: publish function is unsolicited 52019839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 52029839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_publish_type { 52039839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SOLICITED_PUBLISH = 1 << 0, 52049839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1, 52059839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 52069839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 52079839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 52089839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_func_term_reason - NAN functions termination reason 52099839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 52109839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Defines termination reasons of a NAN function 52119839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 52129839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user 52139839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout 52149839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored 52159839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 52169839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_func_term_reason { 52179839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST, 52189839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED, 52199839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TERM_REASON_ERROR, 52209839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 52219839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 52229839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt#define NL80211_NAN_FUNC_SERVICE_ID_LEN 6 52239839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff 52249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff 52259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 52269839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 52279839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_func_attributes - NAN function attributes 52289839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @__NL80211_NAN_FUNC_INVALID: invalid 52299839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TYPE: &enum nl80211_nan_function_type (u8). 52309839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_SERVICE_ID: 6 bytes of the service ID hash as 52319839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * specified in NAN spec. This is a binary attribute. 52329839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_PUBLISH_TYPE: relevant if the function's type is 52339839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * publish. Defines the transmission type for the publish Service Discovery 52349839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Frame, see &enum nl80211_nan_publish_type. Its type is u8. 52359839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_PUBLISH_BCAST: relevant if the function is a solicited 52369839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * publish. Should the solicited publish Service Discovery Frame be sent to 52379839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * the NAN Broadcast address. This is a flag. 52389839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE: relevant if the function's type is 52399839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * subscribe. Is the subscribe active. This is a flag. 52409839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_FOLLOW_UP_ID: relevant if the function's type is follow up. 52419839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * The instance ID for the follow up Service Discovery Frame. This is u8. 52429839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type 52439839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * is follow up. This is a u8. 52449839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * The requestor instance ID for the follow up Service Discovery Frame. 52459839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the 52469839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * follow up Service Discovery Frame. This is a binary attribute. 52479839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a 52489839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * close range. The range itself (RSSI) is defined by the device. 52499839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This is a flag. 52509839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TTL: strictly positive number of DWs this function should 52519839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * stay active. If not present infinite TTL is assumed. This is a u32. 52529839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_SERVICE_INFO: array of bytes describing the service 52539839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * specific info. This is a binary attribute. 52549839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_SRF: Service Receive Filter. This is a nested attribute. 52559839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * See &enum nl80211_nan_srf_attributes. 52569839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_RX_MATCH_FILTER: Receive Matching filter. This is a nested 52579839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * attribute. It is a list of binary values. 52589839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TX_MATCH_FILTER: Transmit Matching filter. This is a 52599839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * nested attribute. It is a list of binary values. 52609839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_INSTANCE_ID: The instance ID of the function. 52619839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * Its type is u8 and it cannot be 0. 52629839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_TERM_REASON: NAN function termination reason. 52639839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * See &enum nl80211_nan_func_term_reason. 52649839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 52659839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NUM_NL80211_NAN_FUNC_ATTR: internal 52669839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_FUNC_ATTR_MAX: highest NAN function attribute 52679839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 52689839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_func_attributes { 52699839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt __NL80211_NAN_FUNC_INVALID, 52709839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TYPE, 52719839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_SERVICE_ID, 52729839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_PUBLISH_TYPE, 52739839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_PUBLISH_BCAST, 52749839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE, 52759839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_FOLLOW_UP_ID, 52769839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID, 52779839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_FOLLOW_UP_DEST, 52789839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_CLOSE_RANGE, 52799839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TTL, 52809839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_SERVICE_INFO, 52819839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_SRF, 52829839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_RX_MATCH_FILTER, 52839839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TX_MATCH_FILTER, 52849839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_INSTANCE_ID, 52859839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_TERM_REASON, 52869839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 52879839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt /* keep last */ 52889839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NUM_NL80211_NAN_FUNC_ATTR, 52899839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_FUNC_ATTR_MAX = NUM_NL80211_NAN_FUNC_ATTR - 1 52909839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 52919839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 52929839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 52939839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_srf_attributes - NAN Service Response filter attributes 52949839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @__NL80211_NAN_SRF_INVALID: invalid 52959839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SRF_INCLUDE: present if the include bit of the SRF set. 52969839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * This is a flag. 52979839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SRF_BF: Bloom Filter. Present if and only if 52989839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * &NL80211_NAN_SRF_MAC_ADDRS isn't present. This attribute is binary. 52999839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SRF_BF_IDX: index of the Bloom Filter. Mandatory if 53009839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * &NL80211_NAN_SRF_BF is present. This is a u8. 53019839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SRF_MAC_ADDRS: list of MAC addresses for the SRF. Present if 53029839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * and only if &NL80211_NAN_SRF_BF isn't present. This is a nested 53039839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * attribute. Each nested attribute is a MAC address. 53049839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NUM_NL80211_NAN_SRF_ATTR: internal 53059839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_SRF_ATTR_MAX: highest NAN SRF attribute 53069839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 53079839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_srf_attributes { 53089839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt __NL80211_NAN_SRF_INVALID, 53099839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SRF_INCLUDE, 53109839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SRF_BF, 53119839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SRF_BF_IDX, 53129839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SRF_MAC_ADDRS, 53139839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 53149839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt /* keep last */ 53159839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NUM_NL80211_NAN_SRF_ATTR, 53169839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_SRF_ATTR_MAX = NUM_NL80211_NAN_SRF_ATTR - 1, 53179839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 53189839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 53199839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt/** 53209839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * enum nl80211_nan_match_attributes - NAN match attributes 53219839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @__NL80211_NAN_MATCH_INVALID: invalid 53229839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_MATCH_FUNC_LOCAL: the local function that had the 53239839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * match. This is a nested attribute. 53249839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * See &enum nl80211_nan_func_attributes. 53259839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_MATCH_FUNC_PEER: the peer function 53269839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * that caused the match. This is a nested attribute. 53279839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * See &enum nl80211_nan_func_attributes. 53289839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * 53299839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NUM_NL80211_NAN_MATCH_ATTR: internal 53309839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt * @NL80211_NAN_MATCH_ATTR_MAX: highest NAN match attribute 53319839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt */ 53329839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidtenum nl80211_nan_match_attributes { 53339839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt __NL80211_NAN_MATCH_INVALID, 53349839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_MATCH_FUNC_LOCAL, 53359839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_MATCH_FUNC_PEER, 53369839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 53379839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt /* keep last */ 53389839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NUM_NL80211_NAN_MATCH_ATTR, 53399839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt NL80211_NAN_MATCH_ATTR_MAX = NUM_NL80211_NAN_MATCH_ATTR - 1 53409839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt}; 53419839ecd75c832023d4d13fd2917a8c28261ff668Dmitry Shmidt 53428d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* __LINUX_NL80211_H */ 5343