1206b73d0SCy Schubert #ifndef __LINUX_NL80211_H 2206b73d0SCy Schubert #define __LINUX_NL80211_H 3206b73d0SCy Schubert /* 4206b73d0SCy Schubert * 802.11 netlink interface public header 5206b73d0SCy Schubert * 6206b73d0SCy Schubert * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 7206b73d0SCy Schubert * Copyright 2008 Michael Wu <flamingice@sourmilk.net> 8206b73d0SCy Schubert * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com> 9206b73d0SCy Schubert * Copyright 2008 Michael Buesch <m@bues.ch> 10206b73d0SCy Schubert * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com> 11206b73d0SCy Schubert * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> 12206b73d0SCy Schubert * Copyright 2008 Colin McCabe <colin@cozybit.com> 13206b73d0SCy Schubert * Copyright 2015-2017 Intel Deutschland GmbH 14*a90b9d01SCy Schubert * Copyright (C) 2018-2023 Intel Corporation 15206b73d0SCy Schubert * 16206b73d0SCy Schubert * Permission to use, copy, modify, and/or distribute this software for any 17206b73d0SCy Schubert * purpose with or without fee is hereby granted, provided that the above 18206b73d0SCy Schubert * copyright notice and this permission notice appear in all copies. 19206b73d0SCy Schubert * 20206b73d0SCy Schubert * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 21206b73d0SCy Schubert * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 22206b73d0SCy Schubert * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 23206b73d0SCy Schubert * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 24206b73d0SCy Schubert * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 25206b73d0SCy Schubert * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 26206b73d0SCy Schubert * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 27206b73d0SCy Schubert * 28206b73d0SCy Schubert */ 29206b73d0SCy Schubert 30206b73d0SCy Schubert /* 31206b73d0SCy Schubert * This header file defines the userspace API to the wireless stack. Please 32206b73d0SCy Schubert * be careful not to break things - i.e. don't move anything around or so 33206b73d0SCy Schubert * unless you can demonstrate that it breaks neither API nor ABI. 34206b73d0SCy Schubert * 35206b73d0SCy Schubert * Additions to the API should be accompanied by actual implementations in 36206b73d0SCy Schubert * an upstream driver, so that example implementations exist in case there 37206b73d0SCy Schubert * are ever concerns about the precise semantics of the API or changes are 38206b73d0SCy Schubert * needed, and to ensure that code for dead (no longer implemented) API 39206b73d0SCy Schubert * can actually be identified and removed. 40206b73d0SCy Schubert * Nonetheless, semantics should also be documented carefully in this file. 41206b73d0SCy Schubert */ 42206b73d0SCy Schubert 43206b73d0SCy Schubert #include <linux/types.h> 44206b73d0SCy Schubert 45206b73d0SCy Schubert #define NL80211_GENL_NAME "nl80211" 46206b73d0SCy Schubert 47206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_CONFIG "config" 48206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_SCAN "scan" 49206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_REG "regulatory" 50206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_MLME "mlme" 51206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_VENDOR "vendor" 52206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_NAN "nan" 53206b73d0SCy Schubert #define NL80211_MULTICAST_GROUP_TESTMODE "testmode" 54206b73d0SCy Schubert 55c1d255d3SCy Schubert #define NL80211_EDMG_BW_CONFIG_MIN 4 56c1d255d3SCy Schubert #define NL80211_EDMG_BW_CONFIG_MAX 15 57c1d255d3SCy Schubert #define NL80211_EDMG_CHANNELS_MIN 1 58c1d255d3SCy Schubert #define NL80211_EDMG_CHANNELS_MAX 0x3c /* 0b00111100 */ 59c1d255d3SCy Schubert 60206b73d0SCy Schubert /** 61206b73d0SCy Schubert * DOC: Station handling 62206b73d0SCy Schubert * 63206b73d0SCy Schubert * Stations are added per interface, but a special case exists with VLAN 64206b73d0SCy Schubert * interfaces. When a station is bound to an AP interface, it may be moved 65206b73d0SCy Schubert * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN). 66206b73d0SCy Schubert * The station is still assumed to belong to the AP interface it was added 67206b73d0SCy Schubert * to. 68206b73d0SCy Schubert * 69206b73d0SCy Schubert * Station handling varies per interface type and depending on the driver's 70206b73d0SCy Schubert * capabilities. 71206b73d0SCy Schubert * 72206b73d0SCy Schubert * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS 73206b73d0SCy Schubert * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: 74206b73d0SCy Schubert * - a setup station entry is added, not yet authorized, without any rate 75206b73d0SCy Schubert * or capability information, this just exists to avoid race conditions 76206b73d0SCy Schubert * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 77206b73d0SCy Schubert * to add rate and capability information to the station and at the same 78206b73d0SCy Schubert * time mark it authorized. 79206b73d0SCy Schubert * - %NL80211_TDLS_ENABLE_LINK is then used 80206b73d0SCy Schubert * - after this, the only valid operation is to remove it by tearing down 81206b73d0SCy Schubert * the TDLS link (%NL80211_TDLS_DISABLE_LINK) 82206b73d0SCy Schubert * 83206b73d0SCy Schubert * TODO: need more info for other interface types 84206b73d0SCy Schubert */ 85206b73d0SCy Schubert 86206b73d0SCy Schubert /** 87206b73d0SCy Schubert * DOC: Frame transmission/registration support 88206b73d0SCy Schubert * 89206b73d0SCy Schubert * Frame transmission and registration support exists to allow userspace 90206b73d0SCy Schubert * management entities such as wpa_supplicant react to management frames 91206b73d0SCy Schubert * that are not being handled by the kernel. This includes, for example, 92206b73d0SCy Schubert * certain classes of action frames that cannot be handled in the kernel 93206b73d0SCy Schubert * for various reasons. 94206b73d0SCy Schubert * 95206b73d0SCy Schubert * Frame registration is done on a per-interface basis and registrations 96206b73d0SCy Schubert * cannot be removed other than by closing the socket. It is possible to 97206b73d0SCy Schubert * specify a registration filter to register, for example, only for a 98206b73d0SCy Schubert * certain type of action frame. In particular with action frames, those 99206b73d0SCy Schubert * that userspace registers for will not be returned as unhandled by the 100206b73d0SCy Schubert * driver, so that the registered application has to take responsibility 101206b73d0SCy Schubert * for doing that. 102206b73d0SCy Schubert * 103206b73d0SCy Schubert * The type of frame that can be registered for is also dependent on the 104206b73d0SCy Schubert * driver and interface type. The frame types are advertised in wiphy 105206b73d0SCy Schubert * attributes so applications know what to expect. 106206b73d0SCy Schubert * 107206b73d0SCy Schubert * NOTE: When an interface changes type while registrations are active, 108206b73d0SCy Schubert * these registrations are ignored until the interface type is 109206b73d0SCy Schubert * changed again. This means that changing the interface type can 110206b73d0SCy Schubert * lead to a situation that couldn't otherwise be produced, but 111206b73d0SCy Schubert * any such registrations will be dormant in the sense that they 112206b73d0SCy Schubert * will not be serviced, i.e. they will not receive any frames. 113206b73d0SCy Schubert * 114206b73d0SCy Schubert * Frame transmission allows userspace to send for example the required 115206b73d0SCy Schubert * responses to action frames. It is subject to some sanity checking, 116206b73d0SCy Schubert * but many frames can be transmitted. When a frame was transmitted, its 117206b73d0SCy Schubert * status is indicated to the sending socket. 118206b73d0SCy Schubert * 119206b73d0SCy Schubert * For more technical details, see the corresponding command descriptions 120206b73d0SCy Schubert * below. 121206b73d0SCy Schubert */ 122206b73d0SCy Schubert 123206b73d0SCy Schubert /** 124206b73d0SCy Schubert * DOC: Virtual interface / concurrency capabilities 125206b73d0SCy Schubert * 126206b73d0SCy Schubert * Some devices are able to operate with virtual MACs, they can have 127206b73d0SCy Schubert * more than one virtual interface. The capability handling for this 128206b73d0SCy Schubert * is a bit complex though, as there may be a number of restrictions 129206b73d0SCy Schubert * on the types of concurrency that are supported. 130206b73d0SCy Schubert * 131206b73d0SCy Schubert * To start with, each device supports the interface types listed in 132206b73d0SCy Schubert * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the 133206b73d0SCy Schubert * types there no concurrency is implied. 134206b73d0SCy Schubert * 135206b73d0SCy Schubert * Once concurrency is desired, more attributes must be observed: 136206b73d0SCy Schubert * To start with, since some interface types are purely managed in 137206b73d0SCy Schubert * software, like the AP-VLAN type in mac80211 for example, there's 138206b73d0SCy Schubert * an additional list of these, they can be added at any time and 139206b73d0SCy Schubert * are only restricted by some semantic restrictions (e.g. AP-VLAN 140206b73d0SCy Schubert * cannot be added without a corresponding AP interface). This list 141206b73d0SCy Schubert * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. 142206b73d0SCy Schubert * 143206b73d0SCy Schubert * Further, the list of supported combinations is exported. This is 144206b73d0SCy Schubert * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically, 145206b73d0SCy Schubert * it exports a list of "groups", and at any point in time the 146206b73d0SCy Schubert * interfaces that are currently active must fall into any one of 147206b73d0SCy Schubert * the advertised groups. Within each group, there are restrictions 148206b73d0SCy Schubert * on the number of interfaces of different types that are supported 149206b73d0SCy Schubert * and also the number of different channels, along with potentially 150206b73d0SCy Schubert * some other restrictions. See &enum nl80211_if_combination_attrs. 151206b73d0SCy Schubert * 152206b73d0SCy Schubert * All together, these attributes define the concurrency of virtual 153206b73d0SCy Schubert * interfaces that a given device supports. 154206b73d0SCy Schubert */ 155206b73d0SCy Schubert 156206b73d0SCy Schubert /** 157206b73d0SCy Schubert * DOC: packet coalesce support 158206b73d0SCy Schubert * 159206b73d0SCy Schubert * In most cases, host that receives IPv4 and IPv6 multicast/broadcast 160206b73d0SCy Schubert * packets does not do anything with these packets. Therefore the 161206b73d0SCy Schubert * reception of these unwanted packets causes unnecessary processing 162206b73d0SCy Schubert * and power consumption. 163206b73d0SCy Schubert * 164206b73d0SCy Schubert * Packet coalesce feature helps to reduce number of received interrupts 165206b73d0SCy Schubert * to host by buffering these packets in firmware/hardware for some 166206b73d0SCy Schubert * predefined time. Received interrupt will be generated when one of the 167206b73d0SCy Schubert * following events occur. 168206b73d0SCy Schubert * a) Expiration of hardware timer whose expiration time is set to maximum 169206b73d0SCy Schubert * coalescing delay of matching coalesce rule. 170*a90b9d01SCy Schubert * b) Coalescing buffer in hardware reaches its limit. 171206b73d0SCy Schubert * c) Packet doesn't match any of the configured coalesce rules. 172206b73d0SCy Schubert * 173206b73d0SCy Schubert * User needs to configure following parameters for creating a coalesce 174206b73d0SCy Schubert * rule. 175206b73d0SCy Schubert * a) Maximum coalescing delay 176206b73d0SCy Schubert * b) List of packet patterns which needs to be matched 177206b73d0SCy Schubert * c) Condition for coalescence. pattern 'match' or 'no match' 178206b73d0SCy Schubert * Multiple such rules can be created. 179206b73d0SCy Schubert */ 180206b73d0SCy Schubert 181206b73d0SCy Schubert /** 182206b73d0SCy Schubert * DOC: WPA/WPA2 EAPOL handshake offload 183206b73d0SCy Schubert * 184206b73d0SCy Schubert * By setting @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK flag drivers 185206b73d0SCy Schubert * can indicate they support offloading EAPOL handshakes for WPA/WPA2 186c1d255d3SCy Schubert * preshared key authentication in station mode. In %NL80211_CMD_CONNECT 187c1d255d3SCy Schubert * the preshared key should be specified using %NL80211_ATTR_PMK. Drivers 188c1d255d3SCy Schubert * supporting this offload may reject the %NL80211_CMD_CONNECT when no 189c1d255d3SCy Schubert * preshared key material is provided, for example when that driver does 190c1d255d3SCy Schubert * not support setting the temporal keys through %NL80211_CMD_NEW_KEY. 191206b73d0SCy Schubert * 192206b73d0SCy Schubert * Similarly @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X flag can be 193206b73d0SCy Schubert * set by drivers indicating offload support of the PTK/GTK EAPOL 194c1d255d3SCy Schubert * handshakes during 802.1X authentication in station mode. In order to 195c1d255d3SCy Schubert * use the offload the %NL80211_CMD_CONNECT should have 196c1d255d3SCy Schubert * %NL80211_ATTR_WANT_1X_4WAY_HS attribute flag. Drivers supporting this 197c1d255d3SCy Schubert * offload may reject the %NL80211_CMD_CONNECT when the attribute flag is 198c1d255d3SCy Schubert * not present. 199c1d255d3SCy Schubert * 200c1d255d3SCy Schubert * By setting @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK flag drivers 201c1d255d3SCy Schubert * can indicate they support offloading EAPOL handshakes for WPA/WPA2 202c1d255d3SCy Schubert * preshared key authentication in AP mode. In %NL80211_CMD_START_AP 203c1d255d3SCy Schubert * the preshared key should be specified using %NL80211_ATTR_PMK. Drivers 204c1d255d3SCy Schubert * supporting this offload may reject the %NL80211_CMD_START_AP when no 205c1d255d3SCy Schubert * preshared key material is provided, for example when that driver does 206c1d255d3SCy Schubert * not support setting the temporal keys through %NL80211_CMD_NEW_KEY. 207206b73d0SCy Schubert * 208206b73d0SCy Schubert * For 802.1X the PMK or PMK-R0 are set by providing %NL80211_ATTR_PMK 209206b73d0SCy Schubert * using %NL80211_CMD_SET_PMK. For offloaded FT support also 210206b73d0SCy Schubert * %NL80211_ATTR_PMKR0_NAME must be provided. 211206b73d0SCy Schubert */ 212206b73d0SCy Schubert 213206b73d0SCy Schubert /** 214206b73d0SCy Schubert * DOC: FILS shared key authentication offload 215206b73d0SCy Schubert * 216206b73d0SCy Schubert * FILS shared key authentication offload can be advertized by drivers by 217206b73d0SCy Schubert * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support 218206b73d0SCy Schubert * FILS shared key authentication offload should be able to construct the 219206b73d0SCy Schubert * authentication and association frames for FILS shared key authentication and 220206b73d0SCy Schubert * eventually do a key derivation as per IEEE 802.11ai. The below additional 221206b73d0SCy Schubert * parameters should be given to driver in %NL80211_CMD_CONNECT and/or in 222206b73d0SCy Schubert * %NL80211_CMD_UPDATE_CONNECT_PARAMS. 223206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_USERNAME - used to construct keyname_nai 224206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_REALM - used to construct keyname_nai 225206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used to construct erp message 226206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_RRK - used to generate the rIK and rMSK 227206b73d0SCy Schubert * rIK should be used to generate an authentication tag on the ERP message and 228206b73d0SCy Schubert * rMSK should be used to derive a PMKSA. 229206b73d0SCy Schubert * rIK, rMSK should be generated and keyname_nai, sequence number should be used 230206b73d0SCy Schubert * as specified in IETF RFC 6696. 231206b73d0SCy Schubert * 232206b73d0SCy Schubert * When FILS shared key authentication is completed, driver needs to provide the 233206b73d0SCy Schubert * below additional parameters to userspace, which can be either after setting 234206b73d0SCy Schubert * up a connection or after roaming. 235206b73d0SCy Schubert * %NL80211_ATTR_FILS_KEK - used for key renewal 236206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used in further EAP-RP exchanges 237206b73d0SCy Schubert * %NL80211_ATTR_PMKID - used to identify the PMKSA used/generated 238206b73d0SCy Schubert * %Nl80211_ATTR_PMK - used to update PMKSA cache in userspace 239206b73d0SCy Schubert * The PMKSA can be maintained in userspace persistently so that it can be used 240206b73d0SCy Schubert * later after reboots or wifi turn off/on also. 241206b73d0SCy Schubert * 242206b73d0SCy Schubert * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS 243206b73d0SCy Schubert * capable AP supporting PMK caching. It specifies the scope within which the 244206b73d0SCy Schubert * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and 245206b73d0SCy Schubert * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based 246206b73d0SCy Schubert * on FILS cache identifier. Additionally %NL80211_ATTR_PMK is used with 247206b73d0SCy Schubert * %NL80211_SET_PMKSA to specify the PMK corresponding to a PMKSA for driver to 248206b73d0SCy Schubert * use in a FILS shared key connection with PMKSA caching. 249206b73d0SCy Schubert */ 250206b73d0SCy Schubert 251206b73d0SCy Schubert /** 252c1d255d3SCy Schubert * DOC: SAE authentication offload 253c1d255d3SCy Schubert * 254c1d255d3SCy Schubert * By setting @NL80211_EXT_FEATURE_SAE_OFFLOAD flag drivers can indicate they 255c1d255d3SCy Schubert * support offloading SAE authentication for WPA3-Personal networks in station 256c1d255d3SCy Schubert * mode. Similarly @NL80211_EXT_FEATURE_SAE_OFFLOAD_AP flag can be set by 257c1d255d3SCy Schubert * drivers indicating the offload support in AP mode. 258c1d255d3SCy Schubert * 259c1d255d3SCy Schubert * The password for SAE should be specified using %NL80211_ATTR_SAE_PASSWORD in 260c1d255d3SCy Schubert * %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP for station and AP mode 261c1d255d3SCy Schubert * respectively. 262c1d255d3SCy Schubert */ 263c1d255d3SCy Schubert 264c1d255d3SCy Schubert /** 265c1d255d3SCy Schubert * DOC: VLAN offload support for setting group keys and binding STAs to VLANs 266c1d255d3SCy Schubert * 267c1d255d3SCy Schubert * By setting @NL80211_EXT_FEATURE_VLAN_OFFLOAD flag drivers can indicate they 268c1d255d3SCy Schubert * support offloading VLAN functionality in a manner where the driver exposes a 269c1d255d3SCy Schubert * single netdev that uses VLAN tagged frames and separate VLAN-specific netdevs 270c1d255d3SCy Schubert * can then be added using RTM_NEWLINK/IFLA_VLAN_ID similarly to the Ethernet 271c1d255d3SCy Schubert * case. Frames received from stations that are not assigned to any VLAN are 272c1d255d3SCy Schubert * delivered on the main netdev and frames to such stations can be sent through 273c1d255d3SCy Schubert * that main netdev. 274c1d255d3SCy Schubert * 275c1d255d3SCy Schubert * %NL80211_CMD_NEW_KEY (for group keys), %NL80211_CMD_NEW_STATION, and 276c1d255d3SCy Schubert * %NL80211_CMD_SET_STATION will optionally specify vlan_id using 277c1d255d3SCy Schubert * %NL80211_ATTR_VLAN_ID. 278c1d255d3SCy Schubert */ 279c1d255d3SCy Schubert 280c1d255d3SCy Schubert /** 281c1d255d3SCy Schubert * DOC: TID configuration 282c1d255d3SCy Schubert * 283c1d255d3SCy Schubert * TID config support can be checked in the %NL80211_ATTR_TID_CONFIG 284c1d255d3SCy Schubert * attribute given in wiphy capabilities. 285c1d255d3SCy Schubert * 286c1d255d3SCy Schubert * The necessary configuration parameters are mentioned in 287c1d255d3SCy Schubert * &enum nl80211_tid_config_attr and it will be passed to the 288c1d255d3SCy Schubert * %NL80211_CMD_SET_TID_CONFIG command in %NL80211_ATTR_TID_CONFIG. 289c1d255d3SCy Schubert * 290c1d255d3SCy Schubert * If the configuration needs to be applied for specific peer then the MAC 291c1d255d3SCy Schubert * address of the peer needs to be passed in %NL80211_ATTR_MAC, otherwise the 292c1d255d3SCy Schubert * configuration will be applied for all the connected peers in the vif except 293c1d255d3SCy Schubert * any peers that have peer specific configuration for the TID by default; if 294c1d255d3SCy Schubert * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer specific values 295c1d255d3SCy Schubert * will be overwritten. 296c1d255d3SCy Schubert * 297c1d255d3SCy Schubert * All this configuration is valid only for STA's current connection 298c1d255d3SCy Schubert * i.e. the configuration will be reset to default when the STA connects back 299c1d255d3SCy Schubert * after disconnection/roaming, and this configuration will be cleared when 300c1d255d3SCy Schubert * the interface goes down. 301c1d255d3SCy Schubert */ 302c1d255d3SCy Schubert 303c1d255d3SCy Schubert /** 304*a90b9d01SCy Schubert * DOC: FILS shared key crypto offload 305*a90b9d01SCy Schubert * 306*a90b9d01SCy Schubert * This feature is applicable to drivers running in AP mode. 307*a90b9d01SCy Schubert * 308*a90b9d01SCy Schubert * FILS shared key crypto offload can be advertised by drivers by setting 309*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD flag. The drivers that support 310*a90b9d01SCy Schubert * FILS shared key crypto offload should be able to encrypt and decrypt 311*a90b9d01SCy Schubert * association frames for FILS shared key authentication as per IEEE 802.11ai. 312*a90b9d01SCy Schubert * With this capability, for FILS key derivation, drivers depend on userspace. 313*a90b9d01SCy Schubert * 314*a90b9d01SCy Schubert * After FILS key derivation, userspace shares the FILS AAD details with the 315*a90b9d01SCy Schubert * driver and the driver stores the same to use in decryption of association 316*a90b9d01SCy Schubert * request and in encryption of association response. The below parameters 317*a90b9d01SCy Schubert * should be given to the driver in %NL80211_CMD_SET_FILS_AAD. 318*a90b9d01SCy Schubert * %NL80211_ATTR_MAC - STA MAC address, used for storing FILS AAD per STA 319*a90b9d01SCy Schubert * %NL80211_ATTR_FILS_KEK - Used for encryption or decryption 320*a90b9d01SCy Schubert * %NL80211_ATTR_FILS_NONCES - Used for encryption or decryption 321*a90b9d01SCy Schubert * (STA Nonce 16 bytes followed by AP Nonce 16 bytes) 322*a90b9d01SCy Schubert * 323*a90b9d01SCy Schubert * Once the association is done, the driver cleans the FILS AAD data. 324*a90b9d01SCy Schubert */ 325*a90b9d01SCy Schubert 326*a90b9d01SCy Schubert /** 327*a90b9d01SCy Schubert * DOC: Multi-Link Operation 328*a90b9d01SCy Schubert * 329*a90b9d01SCy Schubert * In Multi-Link Operation, a connection between two MLDs utilizes multiple 330*a90b9d01SCy Schubert * links. To use this in nl80211, various commands and responses now need 331*a90b9d01SCy Schubert * to or will include the new %NL80211_ATTR_MLO_LINKS attribute. 332*a90b9d01SCy Schubert * Additionally, various commands that need to operate on a specific link 333*a90b9d01SCy Schubert * now need to be given the %NL80211_ATTR_MLO_LINK_ID attribute, e.g. to 334*a90b9d01SCy Schubert * use %NL80211_CMD_START_AP or similar functions. 335*a90b9d01SCy Schubert */ 336*a90b9d01SCy Schubert 337*a90b9d01SCy Schubert /** 338*a90b9d01SCy Schubert * DOC: OWE DH IE handling offload 339*a90b9d01SCy Schubert * 340*a90b9d01SCy Schubert * By setting @NL80211_EXT_FEATURE_OWE_OFFLOAD flag, drivers can indicate 341*a90b9d01SCy Schubert * kernel/application space to avoid DH IE handling. When this flag is 342*a90b9d01SCy Schubert * advertised, the driver/device will take care of DH IE inclusion and 343*a90b9d01SCy Schubert * processing of peer DH IE to generate PMK. 344*a90b9d01SCy Schubert */ 345*a90b9d01SCy Schubert 346*a90b9d01SCy Schubert /** 347206b73d0SCy Schubert * enum nl80211_commands - supported nl80211 commands 348206b73d0SCy Schubert * 349206b73d0SCy Schubert * @NL80211_CMD_UNSPEC: unspecified command to catch errors 350206b73d0SCy Schubert * 351206b73d0SCy Schubert * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request 352206b73d0SCy Schubert * to get a list of all present wiphys. 353206b73d0SCy Schubert * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or 354206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, 355c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ, 356c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FREQ_OFFSET (and the attributes determining the 357c1d255d3SCy Schubert * channel width; this is used for setting monitor mode channel), 358c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_RETRY_SHORT, %NL80211_ATTR_WIPHY_RETRY_LONG, 359c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FRAG_THRESHOLD, and/or 360c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_RTS_THRESHOLD. However, for setting the channel, 361c1d255d3SCy Schubert * see %NL80211_CMD_SET_CHANNEL instead, the support here is for backward 362c1d255d3SCy Schubert * compatibility only. 363206b73d0SCy Schubert * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request 364206b73d0SCy Schubert * or rename notification. Has attributes %NL80211_ATTR_WIPHY and 365206b73d0SCy Schubert * %NL80211_ATTR_WIPHY_NAME. 366206b73d0SCy Schubert * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes 367206b73d0SCy Schubert * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME. 368206b73d0SCy Schubert * 369206b73d0SCy Schubert * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration; 370206b73d0SCy Schubert * either a dump request for all interfaces or a specific get with a 371206b73d0SCy Schubert * single %NL80211_ATTR_IFINDEX is supported. 372206b73d0SCy Schubert * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires 373206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE. 374206b73d0SCy Schubert * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response 375206b73d0SCy Schubert * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX, 376206b73d0SCy Schubert * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also 377206b73d0SCy Schubert * be sent from userspace to request creation of a new virtual interface, 378206b73d0SCy Schubert * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and 379206b73d0SCy Schubert * %NL80211_ATTR_IFNAME. 380206b73d0SCy Schubert * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes 381206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from 382206b73d0SCy Schubert * userspace to request deletion of a virtual interface, then requires 383*a90b9d01SCy Schubert * attribute %NL80211_ATTR_IFINDEX. If multiple BSSID advertisements are 384*a90b9d01SCy Schubert * enabled using %NL80211_ATTR_MBSSID_CONFIG, %NL80211_ATTR_MBSSID_ELEMS, 385*a90b9d01SCy Schubert * and if this command is used for the transmitting interface, then all 386*a90b9d01SCy Schubert * the non-transmitting interfaces are deleted as well. 387206b73d0SCy Schubert * 388206b73d0SCy Schubert * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified 389*a90b9d01SCy Schubert * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. %NL80211_ATTR_MAC 390*a90b9d01SCy Schubert * represents peer's MLD address for MLO pairwise key. For MLO group key, 391*a90b9d01SCy Schubert * the link is identified by %NL80211_ATTR_MLO_LINK_ID. 392206b73d0SCy Schubert * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, 393206b73d0SCy Schubert * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. 394*a90b9d01SCy Schubert * For MLO connection, the link to set default key is identified by 395*a90b9d01SCy Schubert * %NL80211_ATTR_MLO_LINK_ID. 396206b73d0SCy Schubert * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, 397206b73d0SCy Schubert * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER, 398*a90b9d01SCy Schubert * and %NL80211_ATTR_KEY_SEQ attributes. %NL80211_ATTR_MAC represents 399*a90b9d01SCy Schubert * peer's MLD address for MLO pairwise key. The link to add MLO 400*a90b9d01SCy Schubert * group key is identified by %NL80211_ATTR_MLO_LINK_ID. 401206b73d0SCy Schubert * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX 402*a90b9d01SCy Schubert * or %NL80211_ATTR_MAC. %NL80211_ATTR_MAC represents peer's MLD address 403*a90b9d01SCy Schubert * for MLO pairwise key. The link to delete group key is identified by 404*a90b9d01SCy Schubert * %NL80211_ATTR_MLO_LINK_ID. 405206b73d0SCy Schubert * 406206b73d0SCy Schubert * @NL80211_CMD_GET_BEACON: (not used) 407206b73d0SCy Schubert * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface 408206b73d0SCy Schubert * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL 409206b73d0SCy Schubert * attributes. For drivers that generate the beacon and probe responses 410206b73d0SCy Schubert * internally, the following attributes must be provided: %NL80211_ATTR_IE, 411206b73d0SCy Schubert * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. 412206b73d0SCy Schubert * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters 413206b73d0SCy Schubert * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that 414206b73d0SCy Schubert * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, 415206b73d0SCy Schubert * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, 416206b73d0SCy Schubert * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, 417206b73d0SCy Schubert * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, 418206b73d0SCy Schubert * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, 419206b73d0SCy Schubert * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, 420206b73d0SCy Schubert * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. 421206b73d0SCy Schubert * The channel to use can be set on the interface or be given using the 422c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FREQ and %NL80211_ATTR_WIPHY_FREQ_OFFSET, and the 423c1d255d3SCy Schubert * attributes determining channel width. 424206b73d0SCy Schubert * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP 425206b73d0SCy Schubert * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface 426206b73d0SCy Schubert * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP 427206b73d0SCy Schubert * 428206b73d0SCy Schubert * @NL80211_CMD_GET_STATION: Get station attributes for station identified by 429206b73d0SCy Schubert * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 430206b73d0SCy Schubert * @NL80211_CMD_SET_STATION: Set station attributes for station identified by 431206b73d0SCy Schubert * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 432206b73d0SCy Schubert * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the 433c1d255d3SCy Schubert * interface identified by %NL80211_ATTR_IFINDEX. 434206b73d0SCy Schubert * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC 435206b73d0SCy Schubert * or, if no MAC address given, all stations, on the interface identified 436*a90b9d01SCy Schubert * by %NL80211_ATTR_IFINDEX. For MLD station, MLD address is used in 437*a90b9d01SCy Schubert * %NL80211_ATTR_MAC. %NL80211_ATTR_MGMT_SUBTYPE and 438206b73d0SCy Schubert * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type 439206b73d0SCy Schubert * of disconnection indication should be sent to the station 440206b73d0SCy Schubert * (Deauthentication or Disassociation frame and reason code for that 441206b73d0SCy Schubert * frame). 442206b73d0SCy Schubert * 443206b73d0SCy Schubert * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to 444206b73d0SCy Schubert * destination %NL80211_ATTR_MAC on the interface identified by 445206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX. 446206b73d0SCy Schubert * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to 447206b73d0SCy Schubert * destination %NL80211_ATTR_MAC on the interface identified by 448206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX. 449206b73d0SCy Schubert * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by 450206b73d0SCy Schubert * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. 451206b73d0SCy Schubert * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by 452206b73d0SCy Schubert * %NL80211_ATTR_MAC. 453206b73d0SCy Schubert * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the 454c1d255d3SCy Schubert * interface identified by %NL80211_ATTR_IFINDEX. 455206b73d0SCy Schubert * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC 456206b73d0SCy Schubert * or, if no MAC address given, all mesh paths, on the interface identified 457206b73d0SCy Schubert * by %NL80211_ATTR_IFINDEX. 458206b73d0SCy Schubert * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by 459206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX. 460206b73d0SCy Schubert * 461206b73d0SCy Schubert * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set 462206b73d0SCy Schubert * regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device 463206b73d0SCy Schubert * has a private regulatory domain, it will be returned. Otherwise, the 464206b73d0SCy Schubert * global regdomain will be returned. 465206b73d0SCy Schubert * A device will have a private regulatory domain if it uses the 466206b73d0SCy Schubert * regulatory_hint() API. Even when a private regdomain is used the channel 467206b73d0SCy Schubert * information will still be mended according to further hints from 468206b73d0SCy Schubert * the regulatory core to help with compliance. A dump version of this API 469206b73d0SCy Schubert * is now available which will returns the global regdomain as well as 470206b73d0SCy Schubert * all private regdomains of present wiphys (for those that have it). 471206b73d0SCy Schubert * If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then 472206b73d0SCy Schubert * its private regdomain is the only valid one for it. The regulatory 473206b73d0SCy Schubert * core is not used to help with compliance in this case. 474206b73d0SCy Schubert * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command 475206b73d0SCy Schubert * after being queried by the kernel. CRDA replies by sending a regulatory 476206b73d0SCy Schubert * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our 477206b73d0SCy Schubert * current alpha2 if it found a match. It also provides 478206b73d0SCy Schubert * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each 479206b73d0SCy Schubert * regulatory rule is a nested set of attributes given by 480206b73d0SCy Schubert * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and 481206b73d0SCy Schubert * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by 482206b73d0SCy Schubert * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and 483206b73d0SCy Schubert * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. 484206b73d0SCy Schubert * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain 485206b73d0SCy Schubert * to the specified ISO/IEC 3166-1 alpha2 country code. The core will 486206b73d0SCy Schubert * store this as a valid request and then query userspace for it. 487206b73d0SCy Schubert * 488206b73d0SCy Schubert * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the 489206b73d0SCy Schubert * interface identified by %NL80211_ATTR_IFINDEX 490206b73d0SCy Schubert * 491206b73d0SCy Schubert * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the 492206b73d0SCy Schubert * interface identified by %NL80211_ATTR_IFINDEX 493206b73d0SCy Schubert * 494206b73d0SCy Schubert * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The 495206b73d0SCy Schubert * interface is identified with %NL80211_ATTR_IFINDEX and the management 496206b73d0SCy Schubert * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be 497206b73d0SCy Schubert * added to the end of the specified management frame is specified with 498206b73d0SCy Schubert * %NL80211_ATTR_IE. If the command succeeds, the requested data will be 499206b73d0SCy Schubert * added to all specified management frames generated by 500206b73d0SCy Schubert * kernel/firmware/driver. 501206b73d0SCy Schubert * Note: This command has been removed and it is only reserved at this 502206b73d0SCy Schubert * point to avoid re-using existing command number. The functionality this 503206b73d0SCy Schubert * command was planned for has been provided with cleaner design with the 504206b73d0SCy Schubert * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN, 505206b73d0SCy Schubert * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE, 506206b73d0SCy Schubert * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE. 507206b73d0SCy Schubert * 508206b73d0SCy Schubert * @NL80211_CMD_GET_SCAN: get scan results 509206b73d0SCy Schubert * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters 510206b73d0SCy Schubert * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 511206b73d0SCy Schubert * probe requests at CCK rate or not. %NL80211_ATTR_BSSID can be used to 512206b73d0SCy Schubert * specify a BSSID to scan for; if not included, the wildcard BSSID will 513206b73d0SCy Schubert * be used. 514206b73d0SCy Schubert * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to 515206b73d0SCy Schubert * NL80211_CMD_GET_SCAN and on the "scan" multicast group) 516206b73d0SCy Schubert * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, 517206b73d0SCy Schubert * partial scan results may be available 518206b73d0SCy Schubert * 519206b73d0SCy Schubert * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain 520206b73d0SCy Schubert * intervals and certain number of cycles, as specified by 521206b73d0SCy Schubert * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is 522206b73d0SCy Schubert * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified, 523206b73d0SCy Schubert * scheduled scan will run in an infinite loop with the specified interval. 524206b73d0SCy Schubert * These attributes are mutually exculsive, 525206b73d0SCy Schubert * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if 526206b73d0SCy Schubert * NL80211_ATTR_SCHED_SCAN_PLANS is defined. 527206b73d0SCy Schubert * If for some reason scheduled scan is aborted by the driver, all scan 528206b73d0SCy Schubert * plans are canceled (including scan plans that did not start yet). 529206b73d0SCy Schubert * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS) 530206b73d0SCy Schubert * are passed, they are used in the probe requests. For 531206b73d0SCy Schubert * broadcast, a broadcast SSID must be passed (ie. an empty 532206b73d0SCy Schubert * string). If no SSID is passed, no probe requests are sent and 533206b73d0SCy Schubert * a passive scan is performed. %NL80211_ATTR_SCAN_FREQUENCIES, 534206b73d0SCy Schubert * if passed, define which channels should be scanned; if not 535206b73d0SCy Schubert * passed, all channels allowed for the current regulatory domain 536206b73d0SCy Schubert * are used. Extra IEs can also be passed from the userspace by 537206b73d0SCy Schubert * using the %NL80211_ATTR_IE attribute. The first cycle of the 538206b73d0SCy Schubert * scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY 539206b73d0SCy Schubert * is supplied. If the device supports multiple concurrent scheduled 540206b73d0SCy Schubert * scans, it will allow such when the caller provides the flag attribute 541206b73d0SCy Schubert * %NL80211_ATTR_SCHED_SCAN_MULTI to indicate user-space support for it. 542206b73d0SCy Schubert * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if 543206b73d0SCy Schubert * scheduled scan is not running. The caller may assume that as soon 544206b73d0SCy Schubert * as the call returns, it is safe to start a new scheduled scan again. 545206b73d0SCy Schubert * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan 546206b73d0SCy Schubert * results available. 547206b73d0SCy Schubert * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has 548206b73d0SCy Schubert * stopped. The driver may issue this event at any time during a 549206b73d0SCy Schubert * scheduled scan. One reason for stopping the scan is if the hardware 550206b73d0SCy Schubert * does not support starting an association or a normal scan while running 551206b73d0SCy Schubert * a scheduled scan. This event is also sent when the 552206b73d0SCy Schubert * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface 553206b73d0SCy Schubert * is brought down while a scheduled scan was running. 554206b73d0SCy Schubert * 555206b73d0SCy Schubert * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation 556206b73d0SCy Schubert * or noise level 557206b73d0SCy Schubert * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to 558206b73d0SCy Schubert * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) 559206b73d0SCy Schubert * 560206b73d0SCy Schubert * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry using %NL80211_ATTR_MAC 561206b73d0SCy Schubert * (for the BSSID), %NL80211_ATTR_PMKID, and optionally %NL80211_ATTR_PMK 562206b73d0SCy Schubert * (PMK is used for PTKSA derivation in case of FILS shared key offload) or 563206b73d0SCy Schubert * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID, 564206b73d0SCy Schubert * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS 565206b73d0SCy Schubert * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier 566206b73d0SCy Schubert * advertized by a FILS capable AP identifying the scope of PMKSA in an 567206b73d0SCy Schubert * ESS. 568206b73d0SCy Schubert * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC 569206b73d0SCy Schubert * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, 570206b73d0SCy Schubert * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS 571206b73d0SCy Schubert * authentication. 572206b73d0SCy Schubert * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. 573206b73d0SCy Schubert * 574206b73d0SCy Schubert * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain 575206b73d0SCy Schubert * has been changed and provides details of the request information 576206b73d0SCy Schubert * that caused the change such as who initiated the regulatory request 577206b73d0SCy Schubert * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx 578206b73d0SCy Schubert * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if 579206b73d0SCy Schubert * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or 580206b73d0SCy Schubert * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain 581206b73d0SCy Schubert * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is 582206b73d0SCy Schubert * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on 583206b73d0SCy Schubert * to (%NL80211_ATTR_REG_ALPHA2). 584206b73d0SCy Schubert * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon 585206b73d0SCy Schubert * has been found while world roaming thus enabling active scan or 586206b73d0SCy Schubert * any mode of operation that initiates TX (beacons) on a channel 587206b73d0SCy Schubert * where we would not have been able to do either before. As an example 588206b73d0SCy Schubert * if you are world roaming (regulatory domain set to world or if your 589206b73d0SCy Schubert * driver is using a custom world roaming regulatory domain) and while 590206b73d0SCy Schubert * doing a passive scan on the 5 GHz band you find an AP there (if not 591206b73d0SCy Schubert * on a DFS channel) you will now be able to actively scan for that AP 592206b73d0SCy Schubert * or use AP mode on your card on that same channel. Note that this will 593206b73d0SCy Schubert * never be used for channels 1-11 on the 2 GHz band as they are always 594206b73d0SCy Schubert * enabled world wide. This beacon hint is only sent if your device had 595206b73d0SCy Schubert * either disabled active scanning or beaconing on a channel. We send to 596206b73d0SCy Schubert * userspace the wiphy on which we removed a restriction from 597206b73d0SCy Schubert * (%NL80211_ATTR_WIPHY) and the channel on which this occurred 598206b73d0SCy Schubert * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) 599206b73d0SCy Schubert * the beacon hint was processed. 600206b73d0SCy Schubert * 601206b73d0SCy Schubert * @NL80211_CMD_AUTHENTICATE: authentication request and notification. 602206b73d0SCy Schubert * This command is used both as a command (request to authenticate) and 603206b73d0SCy Schubert * as an event on the "mlme" multicast group indicating completion of the 604206b73d0SCy Schubert * authentication process. 605206b73d0SCy Schubert * When used as a command, %NL80211_ATTR_IFINDEX is used to identify the 606206b73d0SCy Schubert * interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and 607206b73d0SCy Schubert * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify 608206b73d0SCy Schubert * the SSID (mainly for association, but is included in authentication 609c1d255d3SCy Schubert * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ + 610c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequence of the 611c1d255d3SCy Schubert * channel in MHz. %NL80211_ATTR_AUTH_TYPE is used to specify the 612c1d255d3SCy Schubert * authentication type. %NL80211_ATTR_IE is used to define IEs 613c1d255d3SCy Schubert * (VendorSpecificInfo, but also including RSN IE and FT IEs) to be added 614c1d255d3SCy Schubert * to the frame. 615206b73d0SCy Schubert * When used as an event, this reports reception of an Authentication 616206b73d0SCy Schubert * frame in station and IBSS modes when the local MLME processed the 617206b73d0SCy Schubert * frame, i.e., it was for the local STA and was received in correct 618206b73d0SCy Schubert * state. This is similar to MLME-AUTHENTICATE.confirm primitive in the 619206b73d0SCy Schubert * MLME SAP interface (kernel providing MLME, userspace SME). The 620206b73d0SCy Schubert * included %NL80211_ATTR_FRAME attribute contains the management frame 621206b73d0SCy Schubert * (including both the header and frame body, but not FCS). This event is 622206b73d0SCy Schubert * also used to indicate if the authentication attempt timed out. In that 623206b73d0SCy Schubert * case the %NL80211_ATTR_FRAME attribute is replaced with a 624206b73d0SCy Schubert * %NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which 625206b73d0SCy Schubert * pending authentication timed out). 626206b73d0SCy Schubert * @NL80211_CMD_ASSOCIATE: association request and notification; like 627206b73d0SCy Schubert * NL80211_CMD_AUTHENTICATE but for Association and Reassociation 628206b73d0SCy Schubert * (similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request, 629206b73d0SCy Schubert * MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). The 630206b73d0SCy Schubert * %NL80211_ATTR_PREV_BSSID attribute is used to specify whether the 631206b73d0SCy Schubert * request is for the initial association to an ESS (that attribute not 632206b73d0SCy Schubert * included) or for reassociation within the ESS (that attribute is 633206b73d0SCy Schubert * included). 634206b73d0SCy Schubert * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like 635206b73d0SCy Schubert * NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to 636206b73d0SCy Schubert * MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication 637206b73d0SCy Schubert * primitives). 638206b73d0SCy Schubert * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like 639206b73d0SCy Schubert * NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to 640206b73d0SCy Schubert * MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives). 641206b73d0SCy Schubert * 642206b73d0SCy Schubert * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael 643206b73d0SCy Schubert * MIC (part of TKIP) failure; sent on the "mlme" multicast group; the 644206b73d0SCy Schubert * event includes %NL80211_ATTR_MAC to describe the source MAC address of 645206b73d0SCy Schubert * the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key 646206b73d0SCy Schubert * type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and 647206b73d0SCy Schubert * %NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this 648206b73d0SCy Schubert * event matches with MLME-MICHAELMICFAILURE.indication() primitive 649206b73d0SCy Schubert * 650206b73d0SCy Schubert * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a 651206b73d0SCy Schubert * FREQ attribute (for the initial frequency if no peer can be found) 652206b73d0SCy Schubert * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those 653206b73d0SCy Schubert * should be fixed rather than automatically determined. Can only be 654206b73d0SCy Schubert * executed on a network interface that is UP, and fixed BSSID/FREQ 655206b73d0SCy Schubert * may be rejected. Another optional parameter is the beacon interval, 656206b73d0SCy Schubert * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not 657206b73d0SCy Schubert * given defaults to 100 TU (102.4ms). 658206b73d0SCy Schubert * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is 659206b73d0SCy Schubert * determined by the network interface. 660206b73d0SCy Schubert * 661206b73d0SCy Schubert * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute 662206b73d0SCy Schubert * to identify the device, and the TESTDATA blob attribute to pass through 663206b73d0SCy Schubert * to the driver. 664206b73d0SCy Schubert * 665206b73d0SCy Schubert * @NL80211_CMD_CONNECT: connection request and notification; this command 666206b73d0SCy Schubert * requests to connect to a specified network but without separating 667206b73d0SCy Schubert * auth and assoc steps. For this, you need to specify the SSID in a 668206b73d0SCy Schubert * %NL80211_ATTR_SSID attribute, and can optionally specify the association 669c1d255d3SCy Schubert * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, 670c1d255d3SCy Schubert * %NL80211_ATTR_USE_MFP, %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, 671c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FREQ_OFFSET, %NL80211_ATTR_CONTROL_PORT, 672206b73d0SCy Schubert * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 673206b73d0SCy Schubert * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, 674206b73d0SCy Schubert * %NL80211_ATTR_CONTROL_PORT_OVER_NL80211, %NL80211_ATTR_MAC_HINT, and 675206b73d0SCy Schubert * %NL80211_ATTR_WIPHY_FREQ_HINT. 676206b73d0SCy Schubert * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are 677206b73d0SCy Schubert * restrictions on BSS selection, i.e., they effectively prevent roaming 678206b73d0SCy Schubert * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT 679206b73d0SCy Schubert * can be included to provide a recommendation of the initial BSS while 680206b73d0SCy Schubert * allowing the driver to roam to other BSSes within the ESS and also to 681206b73d0SCy Schubert * ignore this recommendation if the indicated BSS is not ideal. Only one 682206b73d0SCy Schubert * set of BSSID,frequency parameters is used (i.e., either the enforcing 683206b73d0SCy Schubert * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict 684206b73d0SCy Schubert * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT). 685c1d255d3SCy Schubert * Driver shall not modify the IEs specified through %NL80211_ATTR_IE if 686c1d255d3SCy Schubert * %NL80211_ATTR_MAC is included. However, if %NL80211_ATTR_MAC_HINT is 687c1d255d3SCy Schubert * included, these IEs through %NL80211_ATTR_IE are specified by the user 688c1d255d3SCy Schubert * space based on the best possible BSS selected. Thus, if the driver ends 689c1d255d3SCy Schubert * up selecting a different BSS, it can modify these IEs accordingly (e.g. 690c1d255d3SCy Schubert * userspace asks the driver to perform PMKSA caching with BSS1 and the 691c1d255d3SCy Schubert * driver ends up selecting BSS2 with different PMKSA cache entry; RSNIE 692c1d255d3SCy Schubert * has to get updated with the apt PMKID). 693206b73d0SCy Schubert * %NL80211_ATTR_PREV_BSSID can be used to request a reassociation within 694206b73d0SCy Schubert * the ESS in case the device is already associated and an association with 695206b73d0SCy Schubert * a different BSS is desired. 696206b73d0SCy Schubert * Background scan period can optionally be 697206b73d0SCy Schubert * specified in %NL80211_ATTR_BG_SCAN_PERIOD, 698206b73d0SCy Schubert * if not specified default background scan configuration 699206b73d0SCy Schubert * in driver is used and if period value is 0, bg scan will be disabled. 700206b73d0SCy Schubert * This attribute is ignored if driver does not support roam scan. 701206b73d0SCy Schubert * It is also sent as an event, with the BSSID and response IEs when the 702206b73d0SCy Schubert * connection is established or failed to be established. This can be 703206b73d0SCy Schubert * determined by the %NL80211_ATTR_STATUS_CODE attribute (0 = success, 704206b73d0SCy Schubert * non-zero = failure). If %NL80211_ATTR_TIMED_OUT is included in the 705206b73d0SCy Schubert * event, the connection attempt failed due to not being able to initiate 706206b73d0SCy Schubert * authentication/association or not receiving a response from the AP. 707206b73d0SCy Schubert * Non-zero %NL80211_ATTR_STATUS_CODE value is indicated in that case as 708206b73d0SCy Schubert * well to remain backwards compatible. 709206b73d0SCy Schubert * @NL80211_CMD_ROAM: Notification indicating the card/driver roamed by itself. 710c1d255d3SCy Schubert * When a security association was established on an 802.1X network using 711c1d255d3SCy Schubert * fast transition, this event should be followed by an 712206b73d0SCy Schubert * %NL80211_CMD_PORT_AUTHORIZED event. 713c1d255d3SCy Schubert * Following a %NL80211_CMD_ROAM event userspace can issue 714c1d255d3SCy Schubert * %NL80211_CMD_GET_SCAN in order to obtain the scan information for the 715c1d255d3SCy Schubert * new BSS the card/driver roamed to. 716206b73d0SCy Schubert * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify 717206b73d0SCy Schubert * userspace that a connection was dropped by the AP or due to other 718206b73d0SCy Schubert * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and 719206b73d0SCy Schubert * %NL80211_ATTR_REASON_CODE attributes are used. 720206b73d0SCy Schubert * 721206b73d0SCy Schubert * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices 722206b73d0SCy Schubert * associated with this wiphy must be down and will follow. 723206b73d0SCy Schubert * 724206b73d0SCy Schubert * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified 725206b73d0SCy Schubert * channel for the specified amount of time. This can be used to do 726206b73d0SCy Schubert * off-channel operations like transmit a Public Action frame and wait for 727206b73d0SCy Schubert * a response while being associated to an AP on another channel. 728206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus 729206b73d0SCy Schubert * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the 730206b73d0SCy Schubert * frequency for the operation. 731206b73d0SCy Schubert * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds 732206b73d0SCy Schubert * to remain on the channel. This command is also used as an event to 733206b73d0SCy Schubert * notify when the requested duration starts (it may take a while for the 734206b73d0SCy Schubert * driver to schedule this time due to other concurrent needs for the 735206b73d0SCy Schubert * radio). 736206b73d0SCy Schubert * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE) 737206b73d0SCy Schubert * that will be included with any events pertaining to this request; 738206b73d0SCy Schubert * the cookie is also used to cancel the request. 739206b73d0SCy Schubert * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a 740206b73d0SCy Schubert * pending remain-on-channel duration if the desired operation has been 741206b73d0SCy Schubert * completed prior to expiration of the originally requested duration. 742206b73d0SCy Schubert * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the 743206b73d0SCy Schubert * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to 744206b73d0SCy Schubert * uniquely identify the request. 745206b73d0SCy Schubert * This command is also used as an event to notify when a requested 746206b73d0SCy Schubert * remain-on-channel duration has expired. 747206b73d0SCy Schubert * 748206b73d0SCy Schubert * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX 749206b73d0SCy Schubert * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface 750206b73d0SCy Schubert * and @NL80211_ATTR_TX_RATES the set of allowed rates. 751206b73d0SCy Schubert * 752206b73d0SCy Schubert * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames 753206b73d0SCy Schubert * (via @NL80211_CMD_FRAME) for processing in userspace. This command 754206b73d0SCy Schubert * requires an interface index, a frame type attribute (optional for 755206b73d0SCy Schubert * backward compatibility reasons, if not given assumes action frames) 756206b73d0SCy Schubert * and a match attribute containing the first few bytes of the frame 757206b73d0SCy Schubert * that should match, e.g. a single byte for only a category match or 758206b73d0SCy Schubert * four bytes for vendor frames including the OUI. The registration 759206b73d0SCy Schubert * cannot be dropped, but is removed automatically when the netlink 760206b73d0SCy Schubert * socket is closed. Multiple registrations can be made. 761c1d255d3SCy Schubert * The %NL80211_ATTR_RECEIVE_MULTICAST flag attribute can be given if 762c1d255d3SCy Schubert * %NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS is available, in which 763c1d255d3SCy Schubert * case the registration can also be modified to include/exclude the 764c1d255d3SCy Schubert * flag, rather than requiring unregistration to change it. 765206b73d0SCy Schubert * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for 766206b73d0SCy Schubert * backward compatibility 767206b73d0SCy Schubert * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This 768206b73d0SCy Schubert * command is used both as a request to transmit a management frame and 769206b73d0SCy Schubert * as an event indicating reception of a frame that was not processed in 770206b73d0SCy Schubert * kernel code, but is for us (i.e., which may need to be processed in a 771206b73d0SCy Schubert * user space application). %NL80211_ATTR_FRAME is used to specify the 772206b73d0SCy Schubert * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used 773206b73d0SCy Schubert * to indicate on which channel the frame is to be transmitted or was 774206b73d0SCy Schubert * received. If this channel is not the current channel (remain-on-channel 775206b73d0SCy Schubert * or the operational channel) the device will switch to the given channel 776206b73d0SCy Schubert * and transmit the frame, optionally waiting for a response for the time 777206b73d0SCy Schubert * specified using %NL80211_ATTR_DURATION. When called, this operation 778206b73d0SCy Schubert * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the 779206b73d0SCy Schubert * TX status event pertaining to the TX request. 780206b73d0SCy Schubert * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 781206b73d0SCy Schubert * management frames at CCK rate or not in 2GHz band. 782206b73d0SCy Schubert * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA 783206b73d0SCy Schubert * counters which will be updated to the current value. This attribute 784206b73d0SCy Schubert * is used during CSA period. 785*a90b9d01SCy Schubert * For TX on an MLD, the frequency can be omitted and the link ID be 786*a90b9d01SCy Schubert * specified, or if transmitting to a known peer MLD (with MLD addresses 787*a90b9d01SCy Schubert * in the frame) both can be omitted and the link will be selected by 788*a90b9d01SCy Schubert * lower layers. 789*a90b9d01SCy Schubert * For RX notification, %NL80211_ATTR_RX_HW_TIMESTAMP may be included to 790*a90b9d01SCy Schubert * indicate the frame RX timestamp and %NL80211_ATTR_TX_HW_TIMESTAMP may 791*a90b9d01SCy Schubert * be included to indicate the ack TX timestamp. 792206b73d0SCy Schubert * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this 793206b73d0SCy Schubert * command may be used with the corresponding cookie to cancel the wait 794c1d255d3SCy Schubert * time if it is known that it is no longer necessary. This command is 795c1d255d3SCy Schubert * also sent as an event whenever the driver has completed the off-channel 796c1d255d3SCy Schubert * wait time. 797206b73d0SCy Schubert * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility. 798206b73d0SCy Schubert * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame 799206b73d0SCy Schubert * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies 800206b73d0SCy Schubert * the TX command and %NL80211_ATTR_FRAME includes the contents of the 801206b73d0SCy Schubert * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged 802*a90b9d01SCy Schubert * the frame. %NL80211_ATTR_TX_HW_TIMESTAMP may be included to indicate the 803*a90b9d01SCy Schubert * tx timestamp and %NL80211_ATTR_RX_HW_TIMESTAMP may be included to 804*a90b9d01SCy Schubert * indicate the ack RX timestamp. 805206b73d0SCy Schubert * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for 806206b73d0SCy Schubert * backward compatibility. 807206b73d0SCy Schubert * 808206b73d0SCy Schubert * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE 809206b73d0SCy Schubert * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE 810206b73d0SCy Schubert * 811206b73d0SCy Schubert * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command 812206b73d0SCy Schubert * is used to configure connection quality monitoring notification trigger 813206b73d0SCy Schubert * levels. 814206b73d0SCy Schubert * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This 815206b73d0SCy Schubert * command is used as an event to indicate the that a trigger level was 816206b73d0SCy Schubert * reached. 817206b73d0SCy Schubert * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ 818206b73d0SCy Schubert * and the attributes determining channel width) the given interface 819206b73d0SCy Schubert * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. 820206b73d0SCy Schubert * In case multiple channels are supported by the device, the mechanism 821206b73d0SCy Schubert * with which it switches channels is implementation-defined. 822206b73d0SCy Schubert * When a monitor interface is given, it can only switch channel while 823206b73d0SCy Schubert * no other interfaces are operating to avoid disturbing the operation 824206b73d0SCy Schubert * of any other interfaces, and other interfaces will again take 825206b73d0SCy Schubert * precedence when they are used. 826206b73d0SCy Schubert * 827c1d255d3SCy Schubert * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface 828c1d255d3SCy Schubert * (no longer supported). 829206b73d0SCy Schubert * 830206b73d0SCy Schubert * @NL80211_CMD_SET_MULTICAST_TO_UNICAST: Configure if this AP should perform 831206b73d0SCy Schubert * multicast to unicast conversion. When enabled, all multicast packets 832206b73d0SCy Schubert * with ethertype ARP, IPv4 or IPv6 (possibly within an 802.1Q header) 833206b73d0SCy Schubert * will be sent out to each station once with the destination (multicast) 834206b73d0SCy Schubert * MAC address replaced by the station's MAC address. Note that this may 835206b73d0SCy Schubert * break certain expectations of the receiver, e.g. the ability to drop 836206b73d0SCy Schubert * unicast IP packets encapsulated in multicast L2 frames, or the ability 837206b73d0SCy Schubert * to not send destination unreachable messages in such cases. 838206b73d0SCy Schubert * This can only be toggled per BSS. Configure this on an interface of 839206b73d0SCy Schubert * type %NL80211_IFTYPE_AP. It applies to all its VLAN interfaces 840206b73d0SCy Schubert * (%NL80211_IFTYPE_AP_VLAN), except for those in 4addr (WDS) mode. 841206b73d0SCy Schubert * If %NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED is not present with this 842206b73d0SCy Schubert * command, the feature is disabled. 843206b73d0SCy Schubert * 844206b73d0SCy Schubert * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial 845206b73d0SCy Schubert * mesh config parameters may be given. 846206b73d0SCy Schubert * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the 847206b73d0SCy Schubert * network is determined by the network interface. 848206b73d0SCy Schubert * 849206b73d0SCy Schubert * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame 850206b73d0SCy Schubert * notification. This event is used to indicate that an unprotected 851206b73d0SCy Schubert * deauthentication frame was dropped when MFP is in use. 852206b73d0SCy Schubert * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame 853206b73d0SCy Schubert * notification. This event is used to indicate that an unprotected 854206b73d0SCy Schubert * disassociation frame was dropped when MFP is in use. 855206b73d0SCy Schubert * 856206b73d0SCy Schubert * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a 857206b73d0SCy Schubert * beacon or probe response from a compatible mesh peer. This is only 858206b73d0SCy Schubert * sent while no station information (sta_info) exists for the new peer 859206b73d0SCy Schubert * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH, 860206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_AMPE, or 861206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_MPM is set. On reception of this 862206b73d0SCy Schubert * notification, userspace may decide to create a new station 863206b73d0SCy Schubert * (@NL80211_CMD_NEW_STATION). To stop this notification from 864206b73d0SCy Schubert * reoccurring, the userspace authentication daemon may want to create the 865206b73d0SCy Schubert * new station with the AUTHENTICATED flag unset and maybe change it later 866206b73d0SCy Schubert * depending on the authentication result. 867206b73d0SCy Schubert * 868206b73d0SCy Schubert * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings. 869206b73d0SCy Schubert * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings. 870206b73d0SCy Schubert * Since wireless is more complex than wired ethernet, it supports 871206b73d0SCy Schubert * various triggers. These triggers can be configured through this 872206b73d0SCy Schubert * command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For 873206b73d0SCy Schubert * more background information, see 874c1d255d3SCy Schubert * https://wireless.wiki.kernel.org/en/users/Documentation/WoWLAN. 875206b73d0SCy Schubert * The @NL80211_CMD_SET_WOWLAN command can also be used as a notification 876206b73d0SCy Schubert * from the driver reporting the wakeup reason. In this case, the 877206b73d0SCy Schubert * @NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason 878206b73d0SCy Schubert * for the wakeup, if it was caused by wireless. If it is not present 879206b73d0SCy Schubert * in the wakeup notification, the wireless device didn't cause the 880206b73d0SCy Schubert * wakeup but reports that it was woken up. 881206b73d0SCy Schubert * 882206b73d0SCy Schubert * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver 883206b73d0SCy Schubert * the necessary information for supporting GTK rekey offload. This 884206b73d0SCy Schubert * feature is typically used during WoWLAN. The configuration data 885206b73d0SCy Schubert * is contained in %NL80211_ATTR_REKEY_DATA (which is nested and 886206b73d0SCy Schubert * contains the data in sub-attributes). After rekeying happened, 887206b73d0SCy Schubert * this command may also be sent by the driver as an MLME event to 888206b73d0SCy Schubert * inform userspace of the new replay counter. 889206b73d0SCy Schubert * 890206b73d0SCy Schubert * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace 891206b73d0SCy Schubert * of PMKSA caching dandidates. 892206b73d0SCy Schubert * 893206b73d0SCy Schubert * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). 894206b73d0SCy Schubert * In addition, this can be used as an event to request userspace to take 895206b73d0SCy Schubert * actions on TDLS links (set up a new link or tear down an existing one). 896206b73d0SCy Schubert * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested 897206b73d0SCy Schubert * operation, %NL80211_ATTR_MAC contains the peer MAC address, and 898206b73d0SCy Schubert * %NL80211_ATTR_REASON_CODE the reason code to be used (only with 899206b73d0SCy Schubert * %NL80211_TDLS_TEARDOWN). 900206b73d0SCy Schubert * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The 901206b73d0SCy Schubert * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be 902206b73d0SCy Schubert * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as 903206b73d0SCy Schubert * 802.11 management frames, while TDLS action codes (802.11-2012 904206b73d0SCy Schubert * 8.5.13.1) will be encapsulated and sent as data frames. The currently 905206b73d0SCy Schubert * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES 906206b73d0SCy Schubert * and the currently supported TDLS actions codes are given in 907206b73d0SCy Schubert * &enum ieee80211_tdls_actioncode. 908206b73d0SCy Schubert * 909206b73d0SCy Schubert * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP 910206b73d0SCy Schubert * (or GO) interface (i.e. hostapd) to ask for unexpected frames to 911206b73d0SCy Schubert * implement sending deauth to stations that send unexpected class 3 912206b73d0SCy Schubert * frames. Also used as the event sent by the kernel when such a frame 913206b73d0SCy Schubert * is received. 914206b73d0SCy Schubert * For the event, the %NL80211_ATTR_MAC attribute carries the TA and 915206b73d0SCy Schubert * other attributes like the interface index are present. 916206b73d0SCy Schubert * If used as the command it must have an interface index and you can 917206b73d0SCy Schubert * only unsubscribe from the event by closing the socket. Subscription 918206b73d0SCy Schubert * is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events. 919206b73d0SCy Schubert * 920206b73d0SCy Schubert * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the 921206b73d0SCy Schubert * associated station identified by %NL80211_ATTR_MAC sent a 4addr frame 922206b73d0SCy Schubert * and wasn't already in a 4-addr VLAN. The event will be sent similarly 923206b73d0SCy Schubert * to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener. 924206b73d0SCy Schubert * 925206b73d0SCy Schubert * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface 926206b73d0SCy Schubert * by sending a null data frame to it and reporting when the frame is 927206b73d0SCy Schubert * acknowleged. This is used to allow timing out inactive clients. Uses 928206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a 929206b73d0SCy Schubert * direct reply with an %NL80211_ATTR_COOKIE that is later used to match 930206b73d0SCy Schubert * up the event with the request. The event includes the same data and 931206b73d0SCy Schubert * has %NL80211_ATTR_ACK set if the frame was ACKed. 932206b73d0SCy Schubert * 933206b73d0SCy Schubert * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from 934206b73d0SCy Schubert * other BSSes when any interfaces are in AP mode. This helps implement 935206b73d0SCy Schubert * OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME 936206b73d0SCy Schubert * messages. Note that per PHY only one application may register. 937206b73d0SCy Schubert * 938206b73d0SCy Schubert * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether 939206b73d0SCy Schubert * No Acknowledgement Policy should be applied. 940206b73d0SCy Schubert * 941206b73d0SCy Schubert * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels 942206b73d0SCy Schubert * independently of the userspace SME, send this event indicating 943206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the 944206b73d0SCy Schubert * attributes determining channel width. This indication may also be 945206b73d0SCy Schubert * sent when a remotely-initiated switch (e.g., when a STA receives a CSA 946206b73d0SCy Schubert * from the remote AP) is completed; 947206b73d0SCy Schubert * 948206b73d0SCy Schubert * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch 949206b73d0SCy Schubert * has been started on an interface, regardless of the initiator 950206b73d0SCy Schubert * (ie. whether it was requested from a remote device or 951206b73d0SCy Schubert * initiated on our own). It indicates that 952206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ 953206b73d0SCy Schubert * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's. The userspace may 954206b73d0SCy Schubert * decide to react to this indication by requesting other 955206b73d0SCy Schubert * interfaces to change channel as well. 956206b73d0SCy Schubert * 957206b73d0SCy Schubert * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by 958206b73d0SCy Schubert * its %NL80211_ATTR_WDEV identifier. It must have been created with 959206b73d0SCy Schubert * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the 960206b73d0SCy Schubert * P2P Device can be used for P2P operations, e.g. remain-on-channel and 961206b73d0SCy Schubert * public action frame TX. 962206b73d0SCy Schubert * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by 963206b73d0SCy Schubert * its %NL80211_ATTR_WDEV identifier. 964206b73d0SCy Schubert * 965206b73d0SCy Schubert * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to 966206b73d0SCy Schubert * notify userspace that AP has rejected the connection request from a 967206b73d0SCy Schubert * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON 968206b73d0SCy Schubert * is used for this. 969206b73d0SCy Schubert * 970206b73d0SCy Schubert * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames 971206b73d0SCy Schubert * for IBSS or MESH vif. 972206b73d0SCy Schubert * 973206b73d0SCy Schubert * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control. 974206b73d0SCy Schubert * This is to be used with the drivers advertising the support of MAC 975206b73d0SCy Schubert * address based access control. List of MAC addresses is passed in 976206b73d0SCy Schubert * %NL80211_ATTR_MAC_ADDRS and ACL policy is passed in 977206b73d0SCy Schubert * %NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it 978206b73d0SCy Schubert * is not already done. The new list will replace any existing list. Driver 979206b73d0SCy Schubert * will clear its ACL when the list of MAC addresses passed is empty. This 980206b73d0SCy Schubert * command is used in AP/P2P GO mode. Driver has to make sure to clear its 981206b73d0SCy Schubert * ACL list during %NL80211_CMD_STOP_AP. 982206b73d0SCy Schubert * 983206b73d0SCy Schubert * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once 984206b73d0SCy Schubert * a radar is detected or the channel availability scan (CAC) has finished 985206b73d0SCy Schubert * or was aborted, or a radar was detected, usermode will be notified with 986206b73d0SCy Schubert * this event. This command is also used to notify userspace about radars 987206b73d0SCy Schubert * while operating on this channel. 988206b73d0SCy Schubert * %NL80211_ATTR_RADAR_EVENT is used to inform about the type of the 989206b73d0SCy Schubert * event. 990206b73d0SCy Schubert * 991206b73d0SCy Schubert * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features, 992206b73d0SCy Schubert * i.e. features for the nl80211 protocol rather than device features. 993206b73d0SCy Schubert * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. 994206b73d0SCy Schubert * 995206b73d0SCy Schubert * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition 996206b73d0SCy Schubert * Information Element to the WLAN driver 997206b73d0SCy Schubert * 998206b73d0SCy Schubert * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver 999206b73d0SCy Schubert * to the supplicant. This will carry the target AP's MAC address along 1000206b73d0SCy Schubert * with the relevant Information Elements. This event is used to report 1001206b73d0SCy Schubert * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE). 1002206b73d0SCy Schubert * 1003206b73d0SCy Schubert * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running 1004206b73d0SCy Schubert * a critical protocol that needs more reliability in the connection to 1005206b73d0SCy Schubert * complete. 1006206b73d0SCy Schubert * 1007206b73d0SCy Schubert * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can 1008206b73d0SCy Schubert * return back to normal. 1009206b73d0SCy Schubert * 1010206b73d0SCy Schubert * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules. 1011206b73d0SCy Schubert * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules. 1012206b73d0SCy Schubert * 1013206b73d0SCy Schubert * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the 1014c1d255d3SCy Schubert * new channel information (Channel Switch Announcement - CSA) 1015206b73d0SCy Schubert * in the beacon for some time (as defined in the 1016206b73d0SCy Schubert * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the 1017206b73d0SCy Schubert * new channel. Userspace provides the new channel information (using 1018206b73d0SCy Schubert * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel 1019206b73d0SCy Schubert * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform 1020206b73d0SCy Schubert * other station that transmission must be blocked until the channel 1021206b73d0SCy Schubert * switch is complete. 1022206b73d0SCy Schubert * 1023206b73d0SCy Schubert * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified 1024206b73d0SCy Schubert * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in 1025206b73d0SCy Schubert * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in 1026206b73d0SCy Schubert * %NL80211_ATTR_VENDOR_DATA. 1027206b73d0SCy Schubert * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is 1028206b73d0SCy Schubert * used in the wiphy data as a nested attribute containing descriptions 1029206b73d0SCy Schubert * (&struct nl80211_vendor_cmd_info) of the supported vendor commands. 1030206b73d0SCy Schubert * This may also be sent as an event with the same attributes. 1031206b73d0SCy Schubert * 1032206b73d0SCy Schubert * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values. 1033206b73d0SCy Schubert * The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If 1034206b73d0SCy Schubert * that attribute is not included, QoS mapping is disabled. Since this 1035206b73d0SCy Schubert * QoS mapping is relevant for IP packets, it is only valid during an 1036206b73d0SCy Schubert * association. This is cleared on disassociation and AP restart. 1037206b73d0SCy Schubert * 1038206b73d0SCy Schubert * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given 1039206b73d0SCy Schubert * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO 1040206b73d0SCy Schubert * and %NL80211_ATTR_ADMITTED_TIME parameters. 1041206b73d0SCy Schubert * Note that the action frame handshake with the AP shall be handled by 1042206b73d0SCy Schubert * userspace via the normal management RX/TX framework, this only sets 1043206b73d0SCy Schubert * up the TX TS in the driver/device. 1044206b73d0SCy Schubert * If the admitted time attribute is not added then the request just checks 1045206b73d0SCy Schubert * if a subsequent setup could be successful, the intent is to use this to 1046206b73d0SCy Schubert * avoid setting up a session with the AP when local restrictions would 1047206b73d0SCy Schubert * make that impossible. However, the subsequent "real" setup may still 1048206b73d0SCy Schubert * fail even if the check was successful. 1049206b73d0SCy Schubert * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID 1050206b73d0SCy Schubert * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this 1051206b73d0SCy Schubert * before removing a station entry entirely, or before disassociating 1052206b73d0SCy Schubert * or similar, cleanup will happen in the driver/device in this case. 1053206b73d0SCy Schubert * 1054206b73d0SCy Schubert * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to 1055206b73d0SCy Schubert * destination %NL80211_ATTR_MAC on the interface identified by 1056206b73d0SCy Schubert * %NL80211_ATTR_IFINDEX. 1057206b73d0SCy Schubert * 1058206b73d0SCy Schubert * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and 1059206b73d0SCy Schubert * bandwidth of a channel must be given. 1060206b73d0SCy Schubert * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the 1061206b73d0SCy Schubert * network is determined by the network interface. 1062206b73d0SCy Schubert * 1063206b73d0SCy Schubert * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer, 1064206b73d0SCy Schubert * identified by the %NL80211_ATTR_MAC parameter. A target channel is 1065206b73d0SCy Schubert * provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining 1066206b73d0SCy Schubert * channel width/type. The target operating class is given via 1067206b73d0SCy Schubert * %NL80211_ATTR_OPER_CLASS. 1068206b73d0SCy Schubert * The driver is responsible for continually initiating channel-switching 1069206b73d0SCy Schubert * operations and returning to the base channel for communication with the 1070206b73d0SCy Schubert * AP. 1071206b73d0SCy Schubert * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS 1072206b73d0SCy Schubert * peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel 1073206b73d0SCy Schubert * when this command completes. 1074206b73d0SCy Schubert * 1075206b73d0SCy Schubert * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used 1076206b73d0SCy Schubert * as an event to indicate changes for devices with wiphy-specific regdom 1077206b73d0SCy Schubert * management. 1078206b73d0SCy Schubert * 1079206b73d0SCy Schubert * @NL80211_CMD_ABORT_SCAN: Stop an ongoing scan. Returns -ENOENT if a scan is 1080206b73d0SCy Schubert * not running. The driver indicates the status of the scan through 1081206b73d0SCy Schubert * cfg80211_scan_done(). 1082206b73d0SCy Schubert * 1083206b73d0SCy Schubert * @NL80211_CMD_START_NAN: Start NAN operation, identified by its 1084206b73d0SCy Schubert * %NL80211_ATTR_WDEV interface. This interface must have been 1085206b73d0SCy Schubert * previously created with %NL80211_CMD_NEW_INTERFACE. After it 1086206b73d0SCy Schubert * has been started, the NAN interface will create or join a 1087206b73d0SCy Schubert * cluster. This command must have a valid 1088206b73d0SCy Schubert * %NL80211_ATTR_NAN_MASTER_PREF attribute and optional 1089206b73d0SCy Schubert * %NL80211_ATTR_BANDS attributes. If %NL80211_ATTR_BANDS is 1090206b73d0SCy Schubert * omitted or set to 0, it means don't-care and the device will 1091206b73d0SCy Schubert * decide what to use. After this command NAN functions can be 1092206b73d0SCy Schubert * added. 1093206b73d0SCy Schubert * @NL80211_CMD_STOP_NAN: Stop the NAN operation, identified by 1094206b73d0SCy Schubert * its %NL80211_ATTR_WDEV interface. 1095206b73d0SCy Schubert * @NL80211_CMD_ADD_NAN_FUNCTION: Add a NAN function. The function is defined 1096206b73d0SCy Schubert * with %NL80211_ATTR_NAN_FUNC nested attribute. When called, this 1097206b73d0SCy Schubert * operation returns the strictly positive and unique instance id 1098206b73d0SCy Schubert * (%NL80211_ATTR_NAN_FUNC_INST_ID) and a cookie (%NL80211_ATTR_COOKIE) 1099206b73d0SCy Schubert * of the function upon success. 1100206b73d0SCy Schubert * Since instance ID's can be re-used, this cookie is the right 1101206b73d0SCy Schubert * way to identify the function. This will avoid races when a termination 1102206b73d0SCy Schubert * event is handled by the user space after it has already added a new 1103206b73d0SCy Schubert * function that got the same instance id from the kernel as the one 1104206b73d0SCy Schubert * which just terminated. 1105206b73d0SCy Schubert * This cookie may be used in NAN events even before the command 1106206b73d0SCy Schubert * returns, so userspace shouldn't process NAN events until it processes 1107206b73d0SCy Schubert * the response to this command. 1108206b73d0SCy Schubert * Look at %NL80211_ATTR_SOCKET_OWNER as well. 1109206b73d0SCy Schubert * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie. 1110206b73d0SCy Schubert * This command is also used as a notification sent when a NAN function is 1111206b73d0SCy Schubert * terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID 1112206b73d0SCy Schubert * and %NL80211_ATTR_COOKIE attributes. 1113206b73d0SCy Schubert * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN 1114206b73d0SCy Schubert * configuration. NAN must be operational (%NL80211_CMD_START_NAN 1115206b73d0SCy Schubert * was executed). It must contain at least one of the following 1116206b73d0SCy Schubert * attributes: %NL80211_ATTR_NAN_MASTER_PREF, 1117206b73d0SCy Schubert * %NL80211_ATTR_BANDS. If %NL80211_ATTR_BANDS is omitted, the 1118206b73d0SCy Schubert * current configuration is not changed. If it is present but 1119206b73d0SCy Schubert * set to zero, the configuration is changed to don't-care 1120206b73d0SCy Schubert * (i.e. the device can decide what to do). 1121206b73d0SCy Schubert * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported. 1122206b73d0SCy Schubert * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and 1123206b73d0SCy Schubert * %NL80211_ATTR_COOKIE. 1124206b73d0SCy Schubert * 1125206b73d0SCy Schubert * @NL80211_CMD_UPDATE_CONNECT_PARAMS: Update one or more connect parameters 1126206b73d0SCy Schubert * for subsequent roaming cases if the driver or firmware uses internal 1127206b73d0SCy Schubert * BSS selection. This command can be issued only while connected and it 1128206b73d0SCy Schubert * does not result in a change for the current association. Currently, 1129206b73d0SCy Schubert * only the %NL80211_ATTR_IE data is used and updated with this command. 1130206b73d0SCy Schubert * 1131206b73d0SCy Schubert * @NL80211_CMD_SET_PMK: For offloaded 4-Way handshake, set the PMK or PMK-R0 1132206b73d0SCy Schubert * for the given authenticator address (specified with %NL80211_ATTR_MAC). 1133206b73d0SCy Schubert * When %NL80211_ATTR_PMKR0_NAME is set, %NL80211_ATTR_PMK specifies the 1134206b73d0SCy Schubert * PMK-R0, otherwise it specifies the PMK. 1135206b73d0SCy Schubert * @NL80211_CMD_DEL_PMK: For offloaded 4-Way handshake, delete the previously 1136206b73d0SCy Schubert * configured PMK for the authenticator address identified by 1137206b73d0SCy Schubert * %NL80211_ATTR_MAC. 1138c1d255d3SCy Schubert * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates an 802.1X FT roam was 1139c1d255d3SCy Schubert * completed successfully. Drivers that support 4 way handshake offload 1140c1d255d3SCy Schubert * should send this event after indicating 802.1X FT assocation with 1141c1d255d3SCy Schubert * %NL80211_CMD_ROAM. If the 4 way handshake failed %NL80211_CMD_DISCONNECT 1142c1d255d3SCy Schubert * should be indicated instead. 1143206b73d0SCy Schubert * @NL80211_CMD_CONTROL_PORT_FRAME: Control Port (e.g. PAE) frame TX request 1144206b73d0SCy Schubert * and RX notification. This command is used both as a request to transmit 1145206b73d0SCy Schubert * a control port frame and as a notification that a control port frame 1146206b73d0SCy Schubert * has been received. %NL80211_ATTR_FRAME is used to specify the 1147206b73d0SCy Schubert * frame contents. The frame is the raw EAPoL data, without ethernet or 1148206b73d0SCy Schubert * 802.11 headers. 1149*a90b9d01SCy Schubert * For an MLD transmitter, the %NL80211_ATTR_MLO_LINK_ID may be given and 1150*a90b9d01SCy Schubert * its effect will depend on the destination: If the destination is known 1151*a90b9d01SCy Schubert * to be an MLD, this will be used as a hint to select the link to transmit 1152*a90b9d01SCy Schubert * the frame on. If the destination is not an MLD, this will select both 1153*a90b9d01SCy Schubert * the link to transmit on and the source address will be set to the link 1154*a90b9d01SCy Schubert * address of that link. 1155206b73d0SCy Schubert * When used as an event indication %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 1156206b73d0SCy Schubert * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT and %NL80211_ATTR_MAC are added 1157206b73d0SCy Schubert * indicating the protocol type of the received frame; whether the frame 1158206b73d0SCy Schubert * was received unencrypted and the MAC address of the peer respectively. 1159206b73d0SCy Schubert * 1160206b73d0SCy Schubert * @NL80211_CMD_RELOAD_REGDB: Request that the regdb firmware file is reloaded. 1161206b73d0SCy Schubert * 1162206b73d0SCy Schubert * @NL80211_CMD_EXTERNAL_AUTH: This interface is exclusively defined for host 1163206b73d0SCy Schubert * drivers that do not define separate commands for authentication and 1164206b73d0SCy Schubert * association, but rely on user space for the authentication to happen. 1165206b73d0SCy Schubert * This interface acts both as the event request (driver to user space) 1166206b73d0SCy Schubert * to trigger the authentication and command response (userspace to 1167206b73d0SCy Schubert * driver) to indicate the authentication status. 1168206b73d0SCy Schubert * 1169206b73d0SCy Schubert * User space uses the %NL80211_CMD_CONNECT command to the host driver to 1170206b73d0SCy Schubert * trigger a connection. The host driver selects a BSS and further uses 1171206b73d0SCy Schubert * this interface to offload only the authentication part to the user 1172206b73d0SCy Schubert * space. Authentication frames are passed between the driver and user 1173206b73d0SCy Schubert * space through the %NL80211_CMD_FRAME interface. Host driver proceeds 1174206b73d0SCy Schubert * further with the association after getting successful authentication 1175206b73d0SCy Schubert * status. User space indicates the authentication status through 1176206b73d0SCy Schubert * %NL80211_ATTR_STATUS_CODE attribute in %NL80211_CMD_EXTERNAL_AUTH 1177206b73d0SCy Schubert * command interface. 1178206b73d0SCy Schubert * 1179*a90b9d01SCy Schubert * Host driver sends MLD address of the AP with %NL80211_ATTR_MLD_ADDR in 1180*a90b9d01SCy Schubert * %NL80211_CMD_EXTERNAL_AUTH event to indicate user space to enable MLO 1181*a90b9d01SCy Schubert * during the authentication offload in STA mode while connecting to MLD 1182*a90b9d01SCy Schubert * APs. Host driver should check %NL80211_ATTR_MLO_SUPPORT flag capability 1183*a90b9d01SCy Schubert * in %NL80211_CMD_CONNECT to know whether the user space supports enabling 1184*a90b9d01SCy Schubert * MLO during the authentication offload or not. 1185*a90b9d01SCy Schubert * User space should enable MLO during the authentication only when it 1186*a90b9d01SCy Schubert * receives the AP MLD address in authentication offload request. User 1187*a90b9d01SCy Schubert * space shouldn't enable MLO when the authentication offload request 1188*a90b9d01SCy Schubert * doesn't indicate the AP MLD address even if the AP is MLO capable. 1189*a90b9d01SCy Schubert * User space should use %NL80211_ATTR_MLD_ADDR as peer's MLD address and 1190*a90b9d01SCy Schubert * interface address identified by %NL80211_ATTR_IFINDEX as self MLD 1191*a90b9d01SCy Schubert * address. User space and host driver to use MLD addresses in RA, TA and 1192*a90b9d01SCy Schubert * BSSID fields of the frames between them, and host driver translates the 1193*a90b9d01SCy Schubert * MLD addresses to/from link addresses based on the link chosen for the 1194*a90b9d01SCy Schubert * authentication. 1195*a90b9d01SCy Schubert * 1196206b73d0SCy Schubert * Host driver reports this status on an authentication failure to the 1197206b73d0SCy Schubert * user space through the connect result as the user space would have 1198206b73d0SCy Schubert * initiated the connection through the connect request. 1199206b73d0SCy Schubert * 1200206b73d0SCy Schubert * @NL80211_CMD_STA_OPMODE_CHANGED: An event that notify station's 1201206b73d0SCy Schubert * ht opmode or vht opmode changes using any of %NL80211_ATTR_SMPS_MODE, 1202206b73d0SCy Schubert * %NL80211_ATTR_CHANNEL_WIDTH,%NL80211_ATTR_NSS attributes with its 1203206b73d0SCy Schubert * address(specified in %NL80211_ATTR_MAC). 1204206b73d0SCy Schubert * 1205206b73d0SCy Schubert * @NL80211_CMD_GET_FTM_RESPONDER_STATS: Retrieve FTM responder statistics, in 1206206b73d0SCy Schubert * the %NL80211_ATTR_FTM_RESPONDER_STATS attribute. 1207206b73d0SCy Schubert * 1208206b73d0SCy Schubert * @NL80211_CMD_PEER_MEASUREMENT_START: start a (set of) peer measurement(s) 1209206b73d0SCy Schubert * with the given parameters, which are encapsulated in the nested 1210206b73d0SCy Schubert * %NL80211_ATTR_PEER_MEASUREMENTS attribute. Optionally, MAC address 1211206b73d0SCy Schubert * randomization may be enabled and configured by specifying the 1212206b73d0SCy Schubert * %NL80211_ATTR_MAC and %NL80211_ATTR_MAC_MASK attributes. 1213206b73d0SCy Schubert * If a timeout is requested, use the %NL80211_ATTR_TIMEOUT attribute. 1214c1d255d3SCy Schubert * A u64 cookie for further %NL80211_ATTR_COOKIE use is returned in 1215206b73d0SCy Schubert * the netlink extended ack message. 1216206b73d0SCy Schubert * 1217206b73d0SCy Schubert * To cancel a measurement, close the socket that requested it. 1218206b73d0SCy Schubert * 1219206b73d0SCy Schubert * Measurement results are reported to the socket that requested the 1220206b73d0SCy Schubert * measurement using @NL80211_CMD_PEER_MEASUREMENT_RESULT when they 1221206b73d0SCy Schubert * become available, so applications must ensure a large enough socket 1222206b73d0SCy Schubert * buffer size. 1223206b73d0SCy Schubert * 1224206b73d0SCy Schubert * Depending on driver support it may or may not be possible to start 1225206b73d0SCy Schubert * multiple concurrent measurements. 1226206b73d0SCy Schubert * @NL80211_CMD_PEER_MEASUREMENT_RESULT: This command number is used for the 1227206b73d0SCy Schubert * result notification from the driver to the requesting socket. 1228206b73d0SCy Schubert * @NL80211_CMD_PEER_MEASUREMENT_COMPLETE: Notification only, indicating that 1229206b73d0SCy Schubert * the measurement completed, using the measurement cookie 1230206b73d0SCy Schubert * (%NL80211_ATTR_COOKIE). 1231206b73d0SCy Schubert * 1232206b73d0SCy Schubert * @NL80211_CMD_NOTIFY_RADAR: Notify the kernel that a radar signal was 1233206b73d0SCy Schubert * detected and reported by a neighboring device on the channel 1234206b73d0SCy Schubert * indicated by %NL80211_ATTR_WIPHY_FREQ and other attributes 1235206b73d0SCy Schubert * determining the width and type. 1236206b73d0SCy Schubert * 1237206b73d0SCy Schubert * @NL80211_CMD_UPDATE_OWE_INFO: This interface allows the host driver to 1238206b73d0SCy Schubert * offload OWE processing to user space. This intends to support 1239206b73d0SCy Schubert * OWE AKM by the host drivers that implement SME but rely 1240206b73d0SCy Schubert * on the user space for the cryptographic/DH IE processing in AP mode. 1241206b73d0SCy Schubert * 1242206b73d0SCy Schubert * @NL80211_CMD_PROBE_MESH_LINK: The requirement for mesh link metric 1243206b73d0SCy Schubert * refreshing, is that from one mesh point we be able to send some data 1244206b73d0SCy Schubert * frames to other mesh points which are not currently selected as a 1245206b73d0SCy Schubert * primary traffic path, but which are only 1 hop away. The absence of 1246206b73d0SCy Schubert * the primary path to the chosen node makes it necessary to apply some 1247206b73d0SCy Schubert * form of marking on a chosen packet stream so that the packets can be 1248206b73d0SCy Schubert * properly steered to the selected node for testing, and not by the 1249206b73d0SCy Schubert * regular mesh path lookup. Further, the packets must be of type data 1250206b73d0SCy Schubert * so that the rate control (often embedded in firmware) is used for 1251206b73d0SCy Schubert * rate selection. 1252206b73d0SCy Schubert * 1253206b73d0SCy Schubert * Here attribute %NL80211_ATTR_MAC is used to specify connected mesh 1254206b73d0SCy Schubert * peer MAC address and %NL80211_ATTR_FRAME is used to specify the frame 1255206b73d0SCy Schubert * content. The frame is ethernet data. 1256206b73d0SCy Schubert * 1257c1d255d3SCy Schubert * @NL80211_CMD_SET_TID_CONFIG: Data frame TID specific configuration 1258c1d255d3SCy Schubert * is passed using %NL80211_ATTR_TID_CONFIG attribute. 1259c1d255d3SCy Schubert * 1260c1d255d3SCy Schubert * @NL80211_CMD_UNPROT_BEACON: Unprotected or incorrectly protected Beacon 1261c1d255d3SCy Schubert * frame. This event is used to indicate that a received Beacon frame was 1262c1d255d3SCy Schubert * dropped because it did not include a valid MME MIC while beacon 1263c1d255d3SCy Schubert * protection was enabled (BIGTK configured in station mode). 1264c1d255d3SCy Schubert * 1265c1d255d3SCy Schubert * @NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS: Report TX status of a control 1266c1d255d3SCy Schubert * port frame transmitted with %NL80211_CMD_CONTROL_PORT_FRAME. 1267c1d255d3SCy Schubert * %NL80211_ATTR_COOKIE identifies the TX command and %NL80211_ATTR_FRAME 1268c1d255d3SCy Schubert * includes the contents of the frame. %NL80211_ATTR_ACK flag is included 1269c1d255d3SCy Schubert * if the recipient acknowledged the frame. 1270c1d255d3SCy Schubert * 1271c1d255d3SCy Schubert * @NL80211_CMD_SET_SAR_SPECS: SAR power limitation configuration is 1272c1d255d3SCy Schubert * passed using %NL80211_ATTR_SAR_SPEC. %NL80211_ATTR_WIPHY is used to 1273c1d255d3SCy Schubert * specify the wiphy index to be applied to. 1274c1d255d3SCy Schubert * 1275*a90b9d01SCy Schubert * @NL80211_CMD_OBSS_COLOR_COLLISION: This notification is sent out whenever 1276*a90b9d01SCy Schubert * mac80211/drv detects a bss color collision. 1277*a90b9d01SCy Schubert * 1278*a90b9d01SCy Schubert * @NL80211_CMD_COLOR_CHANGE_REQUEST: This command is used to indicate that 1279*a90b9d01SCy Schubert * userspace wants to change the BSS color. 1280*a90b9d01SCy Schubert * 1281*a90b9d01SCy Schubert * @NL80211_CMD_COLOR_CHANGE_STARTED: Notify userland, that a color change has 1282*a90b9d01SCy Schubert * started 1283*a90b9d01SCy Schubert * 1284*a90b9d01SCy Schubert * @NL80211_CMD_COLOR_CHANGE_ABORTED: Notify userland, that the color change has 1285*a90b9d01SCy Schubert * been aborted 1286*a90b9d01SCy Schubert * 1287*a90b9d01SCy Schubert * @NL80211_CMD_COLOR_CHANGE_COMPLETED: Notify userland that the color change 1288*a90b9d01SCy Schubert * has completed 1289*a90b9d01SCy Schubert * 1290*a90b9d01SCy Schubert * @NL80211_CMD_SET_FILS_AAD: Set FILS AAD data to the driver using - 1291*a90b9d01SCy Schubert * &NL80211_ATTR_MAC - for STA MAC address 1292*a90b9d01SCy Schubert * &NL80211_ATTR_FILS_KEK - for KEK 1293*a90b9d01SCy Schubert * &NL80211_ATTR_FILS_NONCES - for FILS Nonces 1294*a90b9d01SCy Schubert * (STA Nonce 16 bytes followed by AP Nonce 16 bytes) 1295*a90b9d01SCy Schubert * 1296*a90b9d01SCy Schubert * @NL80211_CMD_ASSOC_COMEBACK: notification about an association 1297*a90b9d01SCy Schubert * temporal rejection with comeback. The event includes %NL80211_ATTR_MAC 1298*a90b9d01SCy Schubert * to describe the BSSID address of the AP and %NL80211_ATTR_TIMEOUT to 1299*a90b9d01SCy Schubert * specify the timeout value. 1300*a90b9d01SCy Schubert * 1301*a90b9d01SCy Schubert * @NL80211_CMD_ADD_LINK: Add a new link to an interface. The 1302*a90b9d01SCy Schubert * %NL80211_ATTR_MLO_LINK_ID attribute is used for the new link. 1303*a90b9d01SCy Schubert * @NL80211_CMD_REMOVE_LINK: Remove a link from an interface. This may come 1304*a90b9d01SCy Schubert * without %NL80211_ATTR_MLO_LINK_ID as an easy way to remove all links 1305*a90b9d01SCy Schubert * in preparation for e.g. roaming to a regular (non-MLO) AP. 1306*a90b9d01SCy Schubert * 1307*a90b9d01SCy Schubert * @NL80211_CMD_ADD_LINK_STA: Add a link to an MLD station 1308*a90b9d01SCy Schubert * @NL80211_CMD_MODIFY_LINK_STA: Modify a link of an MLD station 1309*a90b9d01SCy Schubert * @NL80211_CMD_REMOVE_LINK_STA: Remove a link of an MLD station 1310*a90b9d01SCy Schubert * 1311*a90b9d01SCy Schubert * @NL80211_CMD_SET_HW_TIMESTAMP: Enable/disable HW timestamping of Timing 1312*a90b9d01SCy Schubert * measurement and Fine timing measurement frames. If %NL80211_ATTR_MAC 1313*a90b9d01SCy Schubert * is included, enable/disable HW timestamping only for frames to/from the 1314*a90b9d01SCy Schubert * specified MAC address. Otherwise enable/disable HW timestamping for 1315*a90b9d01SCy Schubert * all TM/FTM frames (including ones that were enabled with specific MAC 1316*a90b9d01SCy Schubert * address). If %NL80211_ATTR_HW_TIMESTAMP_ENABLED is not included, disable 1317*a90b9d01SCy Schubert * HW timestamping. 1318*a90b9d01SCy Schubert * The number of peers that HW timestamping can be enabled for concurrently 1319*a90b9d01SCy Schubert * is indicated by %NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS. 1320*a90b9d01SCy Schubert * 1321*a90b9d01SCy Schubert * @NL80211_CMD_LINKS_REMOVED: Notify userspace about the removal of STA MLD 1322*a90b9d01SCy Schubert * setup links due to AP MLD removing the corresponding affiliated APs with 1323*a90b9d01SCy Schubert * Multi-Link reconfiguration. %NL80211_ATTR_MLO_LINKS is used to provide 1324*a90b9d01SCy Schubert * information about the removed STA MLD setup links. 1325*a90b9d01SCy Schubert * 1326206b73d0SCy Schubert * @NL80211_CMD_MAX: highest used command number 1327206b73d0SCy Schubert * @__NL80211_CMD_AFTER_LAST: internal use 1328206b73d0SCy Schubert */ 1329206b73d0SCy Schubert enum nl80211_commands { 1330206b73d0SCy Schubert /* don't change the order or add anything between, this is ABI! */ 1331206b73d0SCy Schubert NL80211_CMD_UNSPEC, 1332206b73d0SCy Schubert 1333206b73d0SCy Schubert NL80211_CMD_GET_WIPHY, /* can dump */ 1334206b73d0SCy Schubert NL80211_CMD_SET_WIPHY, 1335206b73d0SCy Schubert NL80211_CMD_NEW_WIPHY, 1336206b73d0SCy Schubert NL80211_CMD_DEL_WIPHY, 1337206b73d0SCy Schubert 1338206b73d0SCy Schubert NL80211_CMD_GET_INTERFACE, /* can dump */ 1339206b73d0SCy Schubert NL80211_CMD_SET_INTERFACE, 1340206b73d0SCy Schubert NL80211_CMD_NEW_INTERFACE, 1341206b73d0SCy Schubert NL80211_CMD_DEL_INTERFACE, 1342206b73d0SCy Schubert 1343206b73d0SCy Schubert NL80211_CMD_GET_KEY, 1344206b73d0SCy Schubert NL80211_CMD_SET_KEY, 1345206b73d0SCy Schubert NL80211_CMD_NEW_KEY, 1346206b73d0SCy Schubert NL80211_CMD_DEL_KEY, 1347206b73d0SCy Schubert 1348206b73d0SCy Schubert NL80211_CMD_GET_BEACON, 1349206b73d0SCy Schubert NL80211_CMD_SET_BEACON, 1350206b73d0SCy Schubert NL80211_CMD_START_AP, 1351206b73d0SCy Schubert NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, 1352206b73d0SCy Schubert NL80211_CMD_STOP_AP, 1353206b73d0SCy Schubert NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, 1354206b73d0SCy Schubert 1355206b73d0SCy Schubert NL80211_CMD_GET_STATION, 1356206b73d0SCy Schubert NL80211_CMD_SET_STATION, 1357206b73d0SCy Schubert NL80211_CMD_NEW_STATION, 1358206b73d0SCy Schubert NL80211_CMD_DEL_STATION, 1359206b73d0SCy Schubert 1360206b73d0SCy Schubert NL80211_CMD_GET_MPATH, 1361206b73d0SCy Schubert NL80211_CMD_SET_MPATH, 1362206b73d0SCy Schubert NL80211_CMD_NEW_MPATH, 1363206b73d0SCy Schubert NL80211_CMD_DEL_MPATH, 1364206b73d0SCy Schubert 1365206b73d0SCy Schubert NL80211_CMD_SET_BSS, 1366206b73d0SCy Schubert 1367206b73d0SCy Schubert NL80211_CMD_SET_REG, 1368206b73d0SCy Schubert NL80211_CMD_REQ_SET_REG, 1369206b73d0SCy Schubert 1370206b73d0SCy Schubert NL80211_CMD_GET_MESH_CONFIG, 1371206b73d0SCy Schubert NL80211_CMD_SET_MESH_CONFIG, 1372206b73d0SCy Schubert 1373206b73d0SCy Schubert NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, 1374206b73d0SCy Schubert 1375206b73d0SCy Schubert NL80211_CMD_GET_REG, 1376206b73d0SCy Schubert 1377206b73d0SCy Schubert NL80211_CMD_GET_SCAN, 1378206b73d0SCy Schubert NL80211_CMD_TRIGGER_SCAN, 1379206b73d0SCy Schubert NL80211_CMD_NEW_SCAN_RESULTS, 1380206b73d0SCy Schubert NL80211_CMD_SCAN_ABORTED, 1381206b73d0SCy Schubert 1382206b73d0SCy Schubert NL80211_CMD_REG_CHANGE, 1383206b73d0SCy Schubert 1384206b73d0SCy Schubert NL80211_CMD_AUTHENTICATE, 1385206b73d0SCy Schubert NL80211_CMD_ASSOCIATE, 1386206b73d0SCy Schubert NL80211_CMD_DEAUTHENTICATE, 1387206b73d0SCy Schubert NL80211_CMD_DISASSOCIATE, 1388206b73d0SCy Schubert 1389206b73d0SCy Schubert NL80211_CMD_MICHAEL_MIC_FAILURE, 1390206b73d0SCy Schubert 1391206b73d0SCy Schubert NL80211_CMD_REG_BEACON_HINT, 1392206b73d0SCy Schubert 1393206b73d0SCy Schubert NL80211_CMD_JOIN_IBSS, 1394206b73d0SCy Schubert NL80211_CMD_LEAVE_IBSS, 1395206b73d0SCy Schubert 1396206b73d0SCy Schubert NL80211_CMD_TESTMODE, 1397206b73d0SCy Schubert 1398206b73d0SCy Schubert NL80211_CMD_CONNECT, 1399206b73d0SCy Schubert NL80211_CMD_ROAM, 1400206b73d0SCy Schubert NL80211_CMD_DISCONNECT, 1401206b73d0SCy Schubert 1402206b73d0SCy Schubert NL80211_CMD_SET_WIPHY_NETNS, 1403206b73d0SCy Schubert 1404206b73d0SCy Schubert NL80211_CMD_GET_SURVEY, 1405206b73d0SCy Schubert NL80211_CMD_NEW_SURVEY_RESULTS, 1406206b73d0SCy Schubert 1407206b73d0SCy Schubert NL80211_CMD_SET_PMKSA, 1408206b73d0SCy Schubert NL80211_CMD_DEL_PMKSA, 1409206b73d0SCy Schubert NL80211_CMD_FLUSH_PMKSA, 1410206b73d0SCy Schubert 1411206b73d0SCy Schubert NL80211_CMD_REMAIN_ON_CHANNEL, 1412206b73d0SCy Schubert NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL, 1413206b73d0SCy Schubert 1414206b73d0SCy Schubert NL80211_CMD_SET_TX_BITRATE_MASK, 1415206b73d0SCy Schubert 1416206b73d0SCy Schubert NL80211_CMD_REGISTER_FRAME, 1417206b73d0SCy Schubert NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME, 1418206b73d0SCy Schubert NL80211_CMD_FRAME, 1419206b73d0SCy Schubert NL80211_CMD_ACTION = NL80211_CMD_FRAME, 1420206b73d0SCy Schubert NL80211_CMD_FRAME_TX_STATUS, 1421206b73d0SCy Schubert NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS, 1422206b73d0SCy Schubert 1423206b73d0SCy Schubert NL80211_CMD_SET_POWER_SAVE, 1424206b73d0SCy Schubert NL80211_CMD_GET_POWER_SAVE, 1425206b73d0SCy Schubert 1426206b73d0SCy Schubert NL80211_CMD_SET_CQM, 1427206b73d0SCy Schubert NL80211_CMD_NOTIFY_CQM, 1428206b73d0SCy Schubert 1429206b73d0SCy Schubert NL80211_CMD_SET_CHANNEL, 1430206b73d0SCy Schubert NL80211_CMD_SET_WDS_PEER, 1431206b73d0SCy Schubert 1432206b73d0SCy Schubert NL80211_CMD_FRAME_WAIT_CANCEL, 1433206b73d0SCy Schubert 1434206b73d0SCy Schubert NL80211_CMD_JOIN_MESH, 1435206b73d0SCy Schubert NL80211_CMD_LEAVE_MESH, 1436206b73d0SCy Schubert 1437206b73d0SCy Schubert NL80211_CMD_UNPROT_DEAUTHENTICATE, 1438206b73d0SCy Schubert NL80211_CMD_UNPROT_DISASSOCIATE, 1439206b73d0SCy Schubert 1440206b73d0SCy Schubert NL80211_CMD_NEW_PEER_CANDIDATE, 1441206b73d0SCy Schubert 1442206b73d0SCy Schubert NL80211_CMD_GET_WOWLAN, 1443206b73d0SCy Schubert NL80211_CMD_SET_WOWLAN, 1444206b73d0SCy Schubert 1445206b73d0SCy Schubert NL80211_CMD_START_SCHED_SCAN, 1446206b73d0SCy Schubert NL80211_CMD_STOP_SCHED_SCAN, 1447206b73d0SCy Schubert NL80211_CMD_SCHED_SCAN_RESULTS, 1448206b73d0SCy Schubert NL80211_CMD_SCHED_SCAN_STOPPED, 1449206b73d0SCy Schubert 1450206b73d0SCy Schubert NL80211_CMD_SET_REKEY_OFFLOAD, 1451206b73d0SCy Schubert 1452206b73d0SCy Schubert NL80211_CMD_PMKSA_CANDIDATE, 1453206b73d0SCy Schubert 1454206b73d0SCy Schubert NL80211_CMD_TDLS_OPER, 1455206b73d0SCy Schubert NL80211_CMD_TDLS_MGMT, 1456206b73d0SCy Schubert 1457206b73d0SCy Schubert NL80211_CMD_UNEXPECTED_FRAME, 1458206b73d0SCy Schubert 1459206b73d0SCy Schubert NL80211_CMD_PROBE_CLIENT, 1460206b73d0SCy Schubert 1461206b73d0SCy Schubert NL80211_CMD_REGISTER_BEACONS, 1462206b73d0SCy Schubert 1463206b73d0SCy Schubert NL80211_CMD_UNEXPECTED_4ADDR_FRAME, 1464206b73d0SCy Schubert 1465206b73d0SCy Schubert NL80211_CMD_SET_NOACK_MAP, 1466206b73d0SCy Schubert 1467206b73d0SCy Schubert NL80211_CMD_CH_SWITCH_NOTIFY, 1468206b73d0SCy Schubert 1469206b73d0SCy Schubert NL80211_CMD_START_P2P_DEVICE, 1470206b73d0SCy Schubert NL80211_CMD_STOP_P2P_DEVICE, 1471206b73d0SCy Schubert 1472206b73d0SCy Schubert NL80211_CMD_CONN_FAILED, 1473206b73d0SCy Schubert 1474206b73d0SCy Schubert NL80211_CMD_SET_MCAST_RATE, 1475206b73d0SCy Schubert 1476206b73d0SCy Schubert NL80211_CMD_SET_MAC_ACL, 1477206b73d0SCy Schubert 1478206b73d0SCy Schubert NL80211_CMD_RADAR_DETECT, 1479206b73d0SCy Schubert 1480206b73d0SCy Schubert NL80211_CMD_GET_PROTOCOL_FEATURES, 1481206b73d0SCy Schubert 1482206b73d0SCy Schubert NL80211_CMD_UPDATE_FT_IES, 1483206b73d0SCy Schubert NL80211_CMD_FT_EVENT, 1484206b73d0SCy Schubert 1485206b73d0SCy Schubert NL80211_CMD_CRIT_PROTOCOL_START, 1486206b73d0SCy Schubert NL80211_CMD_CRIT_PROTOCOL_STOP, 1487206b73d0SCy Schubert 1488206b73d0SCy Schubert NL80211_CMD_GET_COALESCE, 1489206b73d0SCy Schubert NL80211_CMD_SET_COALESCE, 1490206b73d0SCy Schubert 1491206b73d0SCy Schubert NL80211_CMD_CHANNEL_SWITCH, 1492206b73d0SCy Schubert 1493206b73d0SCy Schubert NL80211_CMD_VENDOR, 1494206b73d0SCy Schubert 1495206b73d0SCy Schubert NL80211_CMD_SET_QOS_MAP, 1496206b73d0SCy Schubert 1497206b73d0SCy Schubert NL80211_CMD_ADD_TX_TS, 1498206b73d0SCy Schubert NL80211_CMD_DEL_TX_TS, 1499206b73d0SCy Schubert 1500206b73d0SCy Schubert NL80211_CMD_GET_MPP, 1501206b73d0SCy Schubert 1502206b73d0SCy Schubert NL80211_CMD_JOIN_OCB, 1503206b73d0SCy Schubert NL80211_CMD_LEAVE_OCB, 1504206b73d0SCy Schubert 1505206b73d0SCy Schubert NL80211_CMD_CH_SWITCH_STARTED_NOTIFY, 1506206b73d0SCy Schubert 1507206b73d0SCy Schubert NL80211_CMD_TDLS_CHANNEL_SWITCH, 1508206b73d0SCy Schubert NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH, 1509206b73d0SCy Schubert 1510206b73d0SCy Schubert NL80211_CMD_WIPHY_REG_CHANGE, 1511206b73d0SCy Schubert 1512206b73d0SCy Schubert NL80211_CMD_ABORT_SCAN, 1513206b73d0SCy Schubert 1514206b73d0SCy Schubert NL80211_CMD_START_NAN, 1515206b73d0SCy Schubert NL80211_CMD_STOP_NAN, 1516206b73d0SCy Schubert NL80211_CMD_ADD_NAN_FUNCTION, 1517206b73d0SCy Schubert NL80211_CMD_DEL_NAN_FUNCTION, 1518206b73d0SCy Schubert NL80211_CMD_CHANGE_NAN_CONFIG, 1519206b73d0SCy Schubert NL80211_CMD_NAN_MATCH, 1520206b73d0SCy Schubert 1521206b73d0SCy Schubert NL80211_CMD_SET_MULTICAST_TO_UNICAST, 1522206b73d0SCy Schubert 1523206b73d0SCy Schubert NL80211_CMD_UPDATE_CONNECT_PARAMS, 1524206b73d0SCy Schubert 1525206b73d0SCy Schubert NL80211_CMD_SET_PMK, 1526206b73d0SCy Schubert NL80211_CMD_DEL_PMK, 1527206b73d0SCy Schubert 1528206b73d0SCy Schubert NL80211_CMD_PORT_AUTHORIZED, 1529206b73d0SCy Schubert 1530206b73d0SCy Schubert NL80211_CMD_RELOAD_REGDB, 1531206b73d0SCy Schubert 1532206b73d0SCy Schubert NL80211_CMD_EXTERNAL_AUTH, 1533206b73d0SCy Schubert 1534206b73d0SCy Schubert NL80211_CMD_STA_OPMODE_CHANGED, 1535206b73d0SCy Schubert 1536206b73d0SCy Schubert NL80211_CMD_CONTROL_PORT_FRAME, 1537206b73d0SCy Schubert 1538206b73d0SCy Schubert NL80211_CMD_GET_FTM_RESPONDER_STATS, 1539206b73d0SCy Schubert 1540206b73d0SCy Schubert NL80211_CMD_PEER_MEASUREMENT_START, 1541206b73d0SCy Schubert NL80211_CMD_PEER_MEASUREMENT_RESULT, 1542206b73d0SCy Schubert NL80211_CMD_PEER_MEASUREMENT_COMPLETE, 1543206b73d0SCy Schubert 1544206b73d0SCy Schubert NL80211_CMD_NOTIFY_RADAR, 1545206b73d0SCy Schubert 1546206b73d0SCy Schubert NL80211_CMD_UPDATE_OWE_INFO, 1547206b73d0SCy Schubert 1548206b73d0SCy Schubert NL80211_CMD_PROBE_MESH_LINK, 1549206b73d0SCy Schubert 1550c1d255d3SCy Schubert NL80211_CMD_SET_TID_CONFIG, 1551c1d255d3SCy Schubert 1552c1d255d3SCy Schubert NL80211_CMD_UNPROT_BEACON, 1553c1d255d3SCy Schubert 1554c1d255d3SCy Schubert NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS, 1555c1d255d3SCy Schubert 1556c1d255d3SCy Schubert NL80211_CMD_SET_SAR_SPECS, 1557c1d255d3SCy Schubert 1558*a90b9d01SCy Schubert NL80211_CMD_OBSS_COLOR_COLLISION, 1559*a90b9d01SCy Schubert 1560*a90b9d01SCy Schubert NL80211_CMD_COLOR_CHANGE_REQUEST, 1561*a90b9d01SCy Schubert 1562*a90b9d01SCy Schubert NL80211_CMD_COLOR_CHANGE_STARTED, 1563*a90b9d01SCy Schubert NL80211_CMD_COLOR_CHANGE_ABORTED, 1564*a90b9d01SCy Schubert NL80211_CMD_COLOR_CHANGE_COMPLETED, 1565*a90b9d01SCy Schubert 1566*a90b9d01SCy Schubert NL80211_CMD_SET_FILS_AAD, 1567*a90b9d01SCy Schubert 1568*a90b9d01SCy Schubert NL80211_CMD_ASSOC_COMEBACK, 1569*a90b9d01SCy Schubert 1570*a90b9d01SCy Schubert NL80211_CMD_ADD_LINK, 1571*a90b9d01SCy Schubert NL80211_CMD_REMOVE_LINK, 1572*a90b9d01SCy Schubert 1573*a90b9d01SCy Schubert NL80211_CMD_ADD_LINK_STA, 1574*a90b9d01SCy Schubert NL80211_CMD_MODIFY_LINK_STA, 1575*a90b9d01SCy Schubert NL80211_CMD_REMOVE_LINK_STA, 1576*a90b9d01SCy Schubert 1577*a90b9d01SCy Schubert NL80211_CMD_SET_HW_TIMESTAMP, 1578*a90b9d01SCy Schubert 1579*a90b9d01SCy Schubert NL80211_CMD_LINKS_REMOVED, 1580*a90b9d01SCy Schubert 1581206b73d0SCy Schubert /* add new commands above here */ 1582206b73d0SCy Schubert 1583206b73d0SCy Schubert /* used to define NL80211_CMD_MAX below */ 1584206b73d0SCy Schubert __NL80211_CMD_AFTER_LAST, 1585206b73d0SCy Schubert NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 1586206b73d0SCy Schubert }; 1587206b73d0SCy Schubert 1588206b73d0SCy Schubert /* 1589206b73d0SCy Schubert * Allow user space programs to use #ifdef on new commands by defining them 1590206b73d0SCy Schubert * here 1591206b73d0SCy Schubert */ 1592206b73d0SCy Schubert #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS 1593206b73d0SCy Schubert #define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE 1594206b73d0SCy Schubert #define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE 1595206b73d0SCy Schubert #define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE 1596206b73d0SCy Schubert #define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE 1597206b73d0SCy Schubert #define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE 1598206b73d0SCy Schubert #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE 1599206b73d0SCy Schubert #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT 1600206b73d0SCy Schubert 1601206b73d0SCy Schubert #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 1602206b73d0SCy Schubert 1603206b73d0SCy Schubert /* source-level API compatibility */ 1604206b73d0SCy Schubert #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG 1605206b73d0SCy Schubert #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG 1606206b73d0SCy Schubert #define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE 1607206b73d0SCy Schubert 1608206b73d0SCy Schubert /** 1609206b73d0SCy Schubert * enum nl80211_attrs - nl80211 netlink attributes 1610206b73d0SCy Schubert * 1611206b73d0SCy Schubert * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors 1612206b73d0SCy Schubert * 1613206b73d0SCy Schubert * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf. 1614206b73d0SCy Schubert * /sys/class/ieee80211/<phyname>/index 1615206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) 1616206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters 1617206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz, 1618206b73d0SCy Schubert * defines the channel together with the (deprecated) 1619206b73d0SCy Schubert * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes 1620206b73d0SCy Schubert * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1 1621206b73d0SCy Schubert * and %NL80211_ATTR_CENTER_FREQ2 1622206b73d0SCy Schubert * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values 1623206b73d0SCy Schubert * of &enum nl80211_chan_width, describing the channel width. See the 1624206b73d0SCy Schubert * documentation of the enum for more information. 1625206b73d0SCy Schubert * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the 1626c1d255d3SCy Schubert * channel, used for anything but 20 MHz bandwidth. In S1G this is the 1627c1d255d3SCy Schubert * operating channel center frequency. 1628206b73d0SCy Schubert * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the 1629206b73d0SCy Schubert * channel, used only for 80+80 MHz bandwidth 1630206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ 1631206b73d0SCy Schubert * if HT20 or HT40 are to be used (i.e., HT disabled if not included): 1632206b73d0SCy Schubert * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including 1633206b73d0SCy Schubert * this attribute) 1634206b73d0SCy Schubert * NL80211_CHAN_HT20 = HT20 only 1635206b73d0SCy Schubert * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel 1636206b73d0SCy Schubert * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel 1637206b73d0SCy Schubert * This attribute is now deprecated. 1638206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is 1639206b73d0SCy Schubert * less than or equal to the RTS threshold; allowed range: 1..255; 1640206b73d0SCy Schubert * dot11ShortRetryLimit; u8 1641206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is 1642206b73d0SCy Schubert * greater than the RTS threshold; allowed range: 1..255; 1643206b73d0SCy Schubert * dot11ShortLongLimit; u8 1644206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum 1645206b73d0SCy Schubert * length in octets for frames; allowed range: 256..8000, disable 1646206b73d0SCy Schubert * fragmentation with (u32)-1; dot11FragmentationThreshold; u32 1647206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length 1648206b73d0SCy Schubert * larger than or equal to this use RTS/CTS handshake); allowed range: 1649206b73d0SCy Schubert * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 1650206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11 1651206b73d0SCy Schubert * section 7.3.2.9; dot11CoverageClass; u8 1652206b73d0SCy Schubert * 1653206b73d0SCy Schubert * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on 1654206b73d0SCy Schubert * @NL80211_ATTR_IFNAME: network interface name 1655206b73d0SCy Schubert * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype 1656206b73d0SCy Schubert * 1657206b73d0SCy Schubert * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices 1658206b73d0SCy Schubert * that don't have a netdev (u64) 1659206b73d0SCy Schubert * 1660206b73d0SCy Schubert * @NL80211_ATTR_MAC: MAC address (various uses) 1661206b73d0SCy Schubert * 1662206b73d0SCy Schubert * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of 1663206b73d0SCy Schubert * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 1664206b73d0SCy Schubert * keys 1665206b73d0SCy Schubert * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3) 1666206b73d0SCy Schubert * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 1667206b73d0SCy Schubert * section 7.3.2.25.1, e.g. 0x000FAC04) 1668206b73d0SCy Schubert * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 1669206b73d0SCy Schubert * CCMP keys, each six bytes in little endian 1670206b73d0SCy Schubert * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key 1671206b73d0SCy Schubert * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the 1672206b73d0SCy Schubert * default management key 1673206b73d0SCy Schubert * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or 1674206b73d0SCy Schubert * other commands, indicates which pairwise cipher suites are used 1675206b73d0SCy Schubert * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or 1676206b73d0SCy Schubert * other commands, indicates which group cipher suite is used 1677206b73d0SCy Schubert * 1678206b73d0SCy Schubert * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU 1679206b73d0SCy Schubert * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing 1680206b73d0SCy Schubert * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE 1681206b73d0SCy Schubert * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE 1682206b73d0SCy Schubert * 1683206b73d0SCy Schubert * @NL80211_ATTR_STA_AID: Association ID for the station (u16) 1684206b73d0SCy Schubert * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of 1685206b73d0SCy Schubert * &enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2) 1686206b73d0SCy Schubert * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by 1687206b73d0SCy Schubert * IEEE 802.11 7.3.1.6 (u16). 1688206b73d0SCy Schubert * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported 1689206b73d0SCy Schubert * rates as defined by IEEE 802.11 7.3.2.2 but without the length 1690206b73d0SCy Schubert * restriction (at most %NL80211_MAX_SUPP_RATES). 1691206b73d0SCy Schubert * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station 1692c1d255d3SCy Schubert * to, or the AP interface the station was originally added to. 1693206b73d0SCy Schubert * @NL80211_ATTR_STA_INFO: information about a station, part of station info 1694206b73d0SCy Schubert * given for %NL80211_CMD_GET_STATION, nested attribute containing 1695206b73d0SCy Schubert * info as possible, see &enum nl80211_sta_info. 1696206b73d0SCy Schubert * 1697206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, 1698206b73d0SCy Schubert * consisting of a nested array. 1699206b73d0SCy Schubert * 1700206b73d0SCy Schubert * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes). 1701206b73d0SCy Schubert * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link 1702206b73d0SCy Schubert * (see &enum nl80211_plink_action). 1703206b73d0SCy Schubert * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. 1704206b73d0SCy Schubert * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path 1705206b73d0SCy Schubert * info given for %NL80211_CMD_GET_MPATH, nested attribute described at 1706206b73d0SCy Schubert * &enum nl80211_mpath_info. 1707206b73d0SCy Schubert * 1708206b73d0SCy Schubert * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of 1709206b73d0SCy Schubert * &enum nl80211_mntr_flags. 1710206b73d0SCy Schubert * 1711206b73d0SCy Schubert * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the 1712206b73d0SCy Schubert * current regulatory domain should be set to or is already set to. 1713206b73d0SCy Schubert * For example, 'CR', for Costa Rica. This attribute is used by the kernel 1714206b73d0SCy Schubert * to query the CRDA to retrieve one regulatory domain. This attribute can 1715206b73d0SCy Schubert * also be used by userspace to query the kernel for the currently set 1716206b73d0SCy Schubert * regulatory domain. We chose an alpha2 as that is also used by the 1717206b73d0SCy Schubert * IEEE-802.11 country information element to identify a country. 1718206b73d0SCy Schubert * Users can also simply ask the wireless core to set regulatory domain 1719206b73d0SCy Schubert * to a specific alpha2. 1720206b73d0SCy Schubert * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory 1721206b73d0SCy Schubert * rules. 1722206b73d0SCy Schubert * 1723206b73d0SCy Schubert * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) 1724206b73d0SCy Schubert * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled 1725206b73d0SCy Schubert * (u8, 0 or 1) 1726206b73d0SCy Schubert * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled 1727206b73d0SCy Schubert * (u8, 0 or 1) 1728206b73d0SCy Schubert * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic 1729206b73d0SCy Schubert * rates in format defined by IEEE 802.11 7.3.2.2 but without the length 1730206b73d0SCy Schubert * restriction (at most %NL80211_MAX_SUPP_RATES). 1731206b73d0SCy Schubert * 1732206b73d0SCy Schubert * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from 1733206b73d0SCy Schubert * association request when used with NL80211_CMD_NEW_STATION) 1734206b73d0SCy Schubert * 1735206b73d0SCy Schubert * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all 1736206b73d0SCy Schubert * supported interface types, each a flag attribute with the number 1737206b73d0SCy Schubert * of the interface mode. 1738206b73d0SCy Schubert * 1739206b73d0SCy Schubert * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for 1740206b73d0SCy Schubert * %NL80211_CMD_SET_MGMT_EXTRA_IE. 1741206b73d0SCy Schubert * 1742206b73d0SCy Schubert * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with 1743206b73d0SCy Schubert * %NL80211_CMD_SET_MGMT_EXTRA_IE). 1744206b73d0SCy Schubert * 1745206b73d0SCy Schubert * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with 1746206b73d0SCy Schubert * a single scan request, a wiphy attribute. 1747206b73d0SCy Schubert * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can 1748206b73d0SCy Schubert * scan with a single scheduled scan request, a wiphy attribute. 1749206b73d0SCy Schubert * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements 1750206b73d0SCy Schubert * that can be added to a scan request 1751206b73d0SCy Schubert * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information 1752206b73d0SCy Schubert * elements that can be added to a scheduled scan request 1753206b73d0SCy Schubert * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be 1754206b73d0SCy Schubert * used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute. 1755206b73d0SCy Schubert * 1756206b73d0SCy Schubert * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz) 1757206b73d0SCy Schubert * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive 1758206b73d0SCy Schubert * scanning and include a zero-length SSID (wildcard) for wildcard scan 1759206b73d0SCy Schubert * @NL80211_ATTR_BSS: scan result BSS 1760206b73d0SCy Schubert * 1761206b73d0SCy Schubert * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain 1762206b73d0SCy Schubert * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* 1763206b73d0SCy Schubert * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently 1764206b73d0SCy Schubert * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) 1765206b73d0SCy Schubert * 1766206b73d0SCy Schubert * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies 1767206b73d0SCy Schubert * an array of command numbers (i.e. a mapping index to command number) 1768206b73d0SCy Schubert * that the driver for the given wiphy supports. 1769206b73d0SCy Schubert * 1770206b73d0SCy Schubert * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header 1771206b73d0SCy Schubert * and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and 1772206b73d0SCy Schubert * NL80211_CMD_ASSOCIATE events 1773206b73d0SCy Schubert * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets) 1774206b73d0SCy Schubert * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type, 1775206b73d0SCy Schubert * represented as a u32 1776206b73d0SCy Schubert * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and 1777206b73d0SCy Schubert * %NL80211_CMD_DISASSOCIATE, u16 1778206b73d0SCy Schubert * 1779206b73d0SCy Schubert * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as 1780206b73d0SCy Schubert * a u32 1781206b73d0SCy Schubert * 1782206b73d0SCy Schubert * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change 1783206b73d0SCy Schubert * due to considerations from a beacon hint. This attribute reflects 1784206b73d0SCy Schubert * the state of the channel _before_ the beacon hint processing. This 1785206b73d0SCy Schubert * attributes consists of a nested attribute containing 1786206b73d0SCy Schubert * NL80211_FREQUENCY_ATTR_* 1787206b73d0SCy Schubert * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change 1788206b73d0SCy Schubert * due to considerations from a beacon hint. This attribute reflects 1789206b73d0SCy Schubert * the state of the channel _after_ the beacon hint processing. This 1790206b73d0SCy Schubert * attributes consists of a nested attribute containing 1791206b73d0SCy Schubert * NL80211_FREQUENCY_ATTR_* 1792206b73d0SCy Schubert * 1793206b73d0SCy Schubert * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported 1794206b73d0SCy Schubert * cipher suites 1795206b73d0SCy Schubert * 1796206b73d0SCy Schubert * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look 1797206b73d0SCy Schubert * for other networks on different channels 1798206b73d0SCy Schubert * 1799206b73d0SCy Schubert * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this 1800206b73d0SCy Schubert * is used, e.g., with %NL80211_CMD_AUTHENTICATE event 1801206b73d0SCy Schubert * 1802206b73d0SCy Schubert * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is 1803206b73d0SCy Schubert * used for the association (&enum nl80211_mfp, represented as a u32); 1804206b73d0SCy Schubert * this attribute can be used with %NL80211_CMD_ASSOCIATE and 1805206b73d0SCy Schubert * %NL80211_CMD_CONNECT requests. %NL80211_MFP_OPTIONAL is not allowed for 1806206b73d0SCy Schubert * %NL80211_CMD_ASSOCIATE since user space SME is expected and hence, it 1807206b73d0SCy Schubert * must have decided whether to use management frame protection or not. 1808206b73d0SCy Schubert * Setting %NL80211_MFP_OPTIONAL with a %NL80211_CMD_CONNECT request will 1809206b73d0SCy Schubert * let the driver (or the firmware) decide whether to use MFP or not. 1810206b73d0SCy Schubert * 1811206b73d0SCy Schubert * @NL80211_ATTR_STA_FLAGS2: Attribute containing a 1812206b73d0SCy Schubert * &struct nl80211_sta_flag_update. 1813206b73d0SCy Schubert * 1814206b73d0SCy Schubert * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls 1815206b73d0SCy Schubert * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in 1816206b73d0SCy Schubert * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE 1817206b73d0SCy Schubert * request, the driver will assume that the port is unauthorized until 1818206b73d0SCy Schubert * authorized by user space. Otherwise, port is marked authorized by 1819206b73d0SCy Schubert * default in station mode. 1820206b73d0SCy Schubert * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the 1821206b73d0SCy Schubert * ethertype that will be used for key negotiation. It can be 1822206b73d0SCy Schubert * specified with the associate and connect commands. If it is not 1823206b73d0SCy Schubert * specified, the value defaults to 0x888E (PAE, 802.1X). This 1824206b73d0SCy Schubert * attribute is also used as a flag in the wiphy information to 1825206b73d0SCy Schubert * indicate that protocols other than PAE are supported. 1826206b73d0SCy Schubert * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with 1827206b73d0SCy Schubert * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom 1828206b73d0SCy Schubert * ethertype frames used for key negotiation must not be encrypted. 1829206b73d0SCy Schubert * @NL80211_ATTR_CONTROL_PORT_OVER_NL80211: A flag indicating whether control 1830206b73d0SCy Schubert * port frames (e.g. of type given in %NL80211_ATTR_CONTROL_PORT_ETHERTYPE) 1831206b73d0SCy Schubert * will be sent directly to the network interface or sent via the NL80211 1832206b73d0SCy Schubert * socket. If this attribute is missing, then legacy behavior of sending 1833206b73d0SCy Schubert * control port frames directly to the network interface is used. If the 1834206b73d0SCy Schubert * flag is included, then control port frames are sent over NL80211 instead 1835206b73d0SCy Schubert * using %CMD_CONTROL_PORT_FRAME. If control port routing over NL80211 is 1836206b73d0SCy Schubert * to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER 1837c1d255d3SCy Schubert * flag. When used with %NL80211_ATTR_CONTROL_PORT_NO_PREAUTH, pre-auth 1838c1d255d3SCy Schubert * frames are not forwared over the control port. 1839206b73d0SCy Schubert * 1840206b73d0SCy Schubert * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. 1841206b73d0SCy Schubert * We recommend using nested, driver-specific attributes within this. 1842206b73d0SCy Schubert * 1843206b73d0SCy Schubert * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT 1844206b73d0SCy Schubert * event was due to the AP disconnecting the station, and not due to 1845206b73d0SCy Schubert * a local disconnect request. 1846206b73d0SCy Schubert * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT 1847206b73d0SCy Schubert * event (u16) 1848206b73d0SCy Schubert * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating 1849206b73d0SCy Schubert * that protected APs should be used. This is also used with NEW_BEACON to 1850206b73d0SCy Schubert * indicate that the BSS is to use protection. 1851206b73d0SCy Schubert * 1852206b73d0SCy Schubert * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON 1853206b73d0SCy Schubert * to indicate which unicast key ciphers will be used with the connection 1854206b73d0SCy Schubert * (an array of u32). 1855206b73d0SCy Schubert * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 1856206b73d0SCy Schubert * indicate which group key cipher will be used with the connection (a 1857206b73d0SCy Schubert * u32). 1858206b73d0SCy Schubert * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 1859206b73d0SCy Schubert * indicate which WPA version(s) the AP we want to associate with is using 1860206b73d0SCy Schubert * (a u32 with flags from &enum nl80211_wpa_versions). 1861206b73d0SCy Schubert * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 1862206b73d0SCy Schubert * indicate which key management algorithm(s) to use (an array of u32). 1863206b73d0SCy Schubert * This attribute is also sent in response to @NL80211_CMD_GET_WIPHY, 1864206b73d0SCy Schubert * indicating the supported AKM suites, intended for specific drivers which 1865206b73d0SCy Schubert * implement SME and have constraints on which AKMs are supported and also 1866206b73d0SCy Schubert * the cases where an AKM support is offloaded to the driver/firmware. 1867206b73d0SCy Schubert * If there is no such notification from the driver, user space should 1868206b73d0SCy Schubert * assume the driver supports all the AKM suites. 1869206b73d0SCy Schubert * 1870206b73d0SCy Schubert * @NL80211_ATTR_REQ_IE: (Re)association request information elements as 1871206b73d0SCy Schubert * sent out by the card, for ROAM and successful CONNECT events. 1872206b73d0SCy Schubert * @NL80211_ATTR_RESP_IE: (Re)association response information elements as 1873206b73d0SCy Schubert * sent by peer, for ROAM and successful CONNECT events. 1874206b73d0SCy Schubert * 1875206b73d0SCy Schubert * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used in ASSOCIATE and CONNECT 1876206b73d0SCy Schubert * commands to specify a request to reassociate within an ESS, i.e., to use 1877206b73d0SCy Schubert * Reassociate Request frame (with the value of this attribute in the 1878206b73d0SCy Schubert * Current AP address field) instead of Association Request frame which is 1879206b73d0SCy Schubert * used for the initial association to an ESS. 1880206b73d0SCy Schubert * 1881206b73d0SCy Schubert * @NL80211_ATTR_KEY: key information in a nested attribute with 1882206b73d0SCy Schubert * %NL80211_KEY_* sub-attributes 1883206b73d0SCy Schubert * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect() 1884206b73d0SCy Schubert * and join_ibss(), key information is in a nested attribute each 1885206b73d0SCy Schubert * with %NL80211_KEY_* sub-attributes 1886206b73d0SCy Schubert * 1887206b73d0SCy Schubert * @NL80211_ATTR_PID: Process ID of a network namespace. 1888206b73d0SCy Schubert * 1889206b73d0SCy Schubert * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for 1890206b73d0SCy Schubert * dumps. This number increases whenever the object list being 1891206b73d0SCy Schubert * dumped changes, and as such userspace can verify that it has 1892206b73d0SCy Schubert * obtained a complete and consistent snapshot by verifying that 1893206b73d0SCy Schubert * all dump messages contain the same generation number. If it 1894206b73d0SCy Schubert * changed then the list changed and the dump should be repeated 1895206b73d0SCy Schubert * completely from scratch. 1896206b73d0SCy Schubert * 1897206b73d0SCy Schubert * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface 1898206b73d0SCy Schubert * 1899206b73d0SCy Schubert * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of 1900206b73d0SCy Schubert * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute 1901206b73d0SCy Schubert * containing info as possible, see &enum survey_info. 1902206b73d0SCy Schubert * 1903206b73d0SCy Schubert * @NL80211_ATTR_PMKID: PMK material for PMKSA caching. 1904206b73d0SCy Schubert * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can 1905206b73d0SCy Schubert * cache, a wiphy attribute. 1906206b73d0SCy Schubert * 1907206b73d0SCy Schubert * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32. 1908206b73d0SCy Schubert * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that 1909206b73d0SCy Schubert * specifies the maximum duration that can be requested with the 1910206b73d0SCy Schubert * remain-on-channel operation, in milliseconds, u32. 1911206b73d0SCy Schubert * 1912206b73d0SCy Schubert * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects. 1913206b73d0SCy Schubert * 1914206b73d0SCy Schubert * @NL80211_ATTR_TX_RATES: Nested set of attributes 1915206b73d0SCy Schubert * (enum nl80211_tx_rate_attributes) describing TX rates per band. The 1916206b73d0SCy Schubert * enum nl80211_band value is used as the index (nla_type() of the nested 1917206b73d0SCy Schubert * data. If a band is not included, it will be configured to allow all 1918206b73d0SCy Schubert * rates based on negotiated supported rates information. This attribute 1919206b73d0SCy Schubert * is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP, 1920206b73d0SCy Schubert * and joining mesh networks (not IBSS yet). In the later case, it must 1921206b73d0SCy Schubert * specify just a single bitrate, which is to be used for the beacon. 1922206b73d0SCy Schubert * The driver must also specify support for this with the extended 1923206b73d0SCy Schubert * features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 1924c1d255d3SCy Schubert * NL80211_EXT_FEATURE_BEACON_RATE_HT, 1925c1d255d3SCy Schubert * NL80211_EXT_FEATURE_BEACON_RATE_VHT and 1926c1d255d3SCy Schubert * NL80211_EXT_FEATURE_BEACON_RATE_HE. 1927206b73d0SCy Schubert * 1928206b73d0SCy Schubert * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain 1929206b73d0SCy Schubert * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME. 1930206b73d0SCy Schubert * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the 1931206b73d0SCy Schubert * @NL80211_CMD_REGISTER_FRAME command. 1932206b73d0SCy Schubert * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a 1933206b73d0SCy Schubert * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 1934206b73d0SCy Schubert * information about which frame types can be transmitted with 1935206b73d0SCy Schubert * %NL80211_CMD_FRAME. 1936206b73d0SCy Schubert * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a 1937206b73d0SCy Schubert * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 1938206b73d0SCy Schubert * information about which frame types can be registered for RX. 1939206b73d0SCy Schubert * 1940206b73d0SCy Schubert * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was 1941206b73d0SCy Schubert * acknowledged by the recipient. 1942206b73d0SCy Schubert * 1943206b73d0SCy Schubert * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. 1944206b73d0SCy Schubert * 1945206b73d0SCy Schubert * @NL80211_ATTR_CQM: connection quality monitor configuration in a 1946206b73d0SCy Schubert * nested attribute with %NL80211_ATTR_CQM_* sub-attributes. 1947206b73d0SCy Schubert * 1948206b73d0SCy Schubert * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command 1949206b73d0SCy Schubert * is requesting a local authentication/association state change without 1950206b73d0SCy Schubert * invoking actual management frame exchange. This can be used with 1951206b73d0SCy Schubert * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE, 1952206b73d0SCy Schubert * NL80211_CMD_DISASSOCIATE. 1953206b73d0SCy Schubert * 1954206b73d0SCy Schubert * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations 1955206b73d0SCy Schubert * connected to this BSS. 1956206b73d0SCy Schubert * 1957206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See 1958206b73d0SCy Schubert * &enum nl80211_tx_power_setting for possible values. 1959206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units. 1960206b73d0SCy Schubert * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING 1961206b73d0SCy Schubert * for non-automatic settings. 1962206b73d0SCy Schubert * 1963206b73d0SCy Schubert * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly 1964206b73d0SCy Schubert * means support for per-station GTKs. 1965206b73d0SCy Schubert * 1966206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting. 1967206b73d0SCy Schubert * This can be used to mask out antennas which are not attached or should 1968206b73d0SCy Schubert * not be used for transmitting. If an antenna is not selected in this 1969206b73d0SCy Schubert * bitmap the hardware is not allowed to transmit on this antenna. 1970206b73d0SCy Schubert * 1971206b73d0SCy Schubert * Each bit represents one antenna, starting with antenna 1 at the first 1972206b73d0SCy Schubert * bit. Depending on which antennas are selected in the bitmap, 802.11n 1973206b73d0SCy Schubert * drivers can derive which chainmasks to use (if all antennas belonging to 1974206b73d0SCy Schubert * a particular chain are disabled this chain should be disabled) and if 1975206b73d0SCy Schubert * a chain has diversity antennas wether diversity should be used or not. 1976206b73d0SCy Schubert * HT capabilities (STBC, TX Beamforming, Antenna selection) can be 1977206b73d0SCy Schubert * derived from the available chains after applying the antenna mask. 1978206b73d0SCy Schubert * Non-802.11n drivers can derive wether to use diversity or not. 1979206b73d0SCy Schubert * Drivers may reject configurations or RX/TX mask combinations they cannot 1980206b73d0SCy Schubert * support by returning -EINVAL. 1981206b73d0SCy Schubert * 1982206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving. 1983206b73d0SCy Schubert * This can be used to mask out antennas which are not attached or should 1984206b73d0SCy Schubert * not be used for receiving. If an antenna is not selected in this bitmap 1985206b73d0SCy Schubert * the hardware should not be configured to receive on this antenna. 1986206b73d0SCy Schubert * For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX. 1987206b73d0SCy Schubert * 1988206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available 1989206b73d0SCy Schubert * for configuration as TX antennas via the above parameters. 1990206b73d0SCy Schubert * 1991206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available 1992206b73d0SCy Schubert * for configuration as RX antennas via the above parameters. 1993206b73d0SCy Schubert * 1994206b73d0SCy Schubert * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS 1995206b73d0SCy Schubert * 1996206b73d0SCy Schubert * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be 1997206b73d0SCy Schubert * transmitted on another channel when the channel given doesn't match 1998206b73d0SCy Schubert * the current channel. If the current channel doesn't match and this 1999206b73d0SCy Schubert * flag isn't set, the frame will be rejected. This is also used as an 2000206b73d0SCy Schubert * nl80211 capability flag. 2001206b73d0SCy Schubert * 2002206b73d0SCy Schubert * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16) 2003206b73d0SCy Schubert * 2004206b73d0SCy Schubert * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags 2005206b73d0SCy Schubert * attributes, specifying what a key should be set as default as. 2006206b73d0SCy Schubert * See &enum nl80211_key_default_types. 2007206b73d0SCy Schubert * 2008206b73d0SCy Schubert * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters. These cannot be 2009206b73d0SCy Schubert * changed once the mesh is active. 2010206b73d0SCy Schubert * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute 2011206b73d0SCy Schubert * containing attributes from &enum nl80211_meshconf_params. 2012206b73d0SCy Schubert * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver 2013206b73d0SCy Schubert * allows auth frames in a mesh to be passed to userspace for processing via 2014206b73d0SCy Schubert * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. 2015206b73d0SCy Schubert * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in 2016206b73d0SCy Schubert * &enum nl80211_plink_state. Used when userspace is driving the peer link 2017206b73d0SCy Schubert * management state machine. @NL80211_MESH_SETUP_USERSPACE_AMPE or 2018206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_MPM must be enabled. 2019206b73d0SCy Schubert * 2020206b73d0SCy Schubert * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy 2021206b73d0SCy Schubert * capabilities, the supported WoWLAN triggers 2022206b73d0SCy Schubert * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to 2023206b73d0SCy Schubert * indicate which WoW triggers should be enabled. This is also 2024206b73d0SCy Schubert * used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN 2025206b73d0SCy Schubert * triggers. 2026206b73d0SCy Schubert * 2027206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan 2028206b73d0SCy Schubert * cycles, in msecs. 2029206b73d0SCy Schubert * 2030206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more 2031206b73d0SCy Schubert * sets of attributes to match during scheduled scans. Only BSSs 2032206b73d0SCy Schubert * that match any of the sets will be reported. These are 2033206b73d0SCy Schubert * pass-thru filter rules. 2034206b73d0SCy Schubert * For a match to succeed, the BSS must match all attributes of a 2035206b73d0SCy Schubert * set. Since not every hardware supports matching all types of 2036206b73d0SCy Schubert * attributes, there is no guarantee that the reported BSSs are 2037206b73d0SCy Schubert * fully complying with the match sets and userspace needs to be 2038206b73d0SCy Schubert * able to ignore them by itself. 2039206b73d0SCy Schubert * Thus, the implementation is somewhat hardware-dependent, but 2040206b73d0SCy Schubert * this is only an optimization and the userspace application 2041206b73d0SCy Schubert * needs to handle all the non-filtered results anyway. 2042206b73d0SCy Schubert * If the match attributes don't make sense when combined with 2043206b73d0SCy Schubert * the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID 2044206b73d0SCy Schubert * is included in the probe request, but the match attributes 2045206b73d0SCy Schubert * will never let it go through), -EINVAL may be returned. 2046206b73d0SCy Schubert * If omitted, no filtering is done. 2047206b73d0SCy Schubert * 2048206b73d0SCy Schubert * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported 2049206b73d0SCy Schubert * interface combinations. In each nested item, it contains attributes 2050206b73d0SCy Schubert * defined in &enum nl80211_if_combination_attrs. 2051206b73d0SCy Schubert * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like 2052206b73d0SCy Schubert * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that 2053206b73d0SCy Schubert * are managed in software: interfaces of these types aren't subject to 2054206b73d0SCy Schubert * any restrictions in their number or combinations. 2055206b73d0SCy Schubert * 2056206b73d0SCy Schubert * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information 2057206b73d0SCy Schubert * necessary for GTK rekeying in the device, see &enum nl80211_rekey_data. 2058206b73d0SCy Schubert * 2059206b73d0SCy Schubert * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan, 2060206b73d0SCy Schubert * nested array attribute containing an entry for each band, with the entry 2061206b73d0SCy Schubert * being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but 2062206b73d0SCy Schubert * without the length restriction (at most %NL80211_MAX_SUPP_RATES). 2063206b73d0SCy Schubert * 2064206b73d0SCy Schubert * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon 2065206b73d0SCy Schubert * and Probe Response (when response to wildcard Probe Request); see 2066206b73d0SCy Schubert * &enum nl80211_hidden_ssid, represented as a u32 2067206b73d0SCy Schubert * 2068206b73d0SCy Schubert * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame. 2069206b73d0SCy Schubert * This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to 2070206b73d0SCy Schubert * provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the 2071206b73d0SCy Schubert * driver (or firmware) replies to Probe Request frames. 2072206b73d0SCy Schubert * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association 2073206b73d0SCy Schubert * Response frames. This is used with %NL80211_CMD_NEW_BEACON and 2074206b73d0SCy Schubert * %NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into 2075206b73d0SCy Schubert * (Re)Association Response frames when the driver (or firmware) replies to 2076206b73d0SCy Schubert * (Re)Association Request frames. 2077206b73d0SCy Schubert * 2078206b73d0SCy Schubert * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration 2079206b73d0SCy Schubert * of the station, see &enum nl80211_sta_wme_attr. 2080206b73d0SCy Schubert * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working 2081206b73d0SCy Schubert * as AP. 2082206b73d0SCy Schubert * 2083206b73d0SCy Schubert * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of 2084206b73d0SCy Schubert * roaming to another AP in the same ESS if the signal lever is low. 2085206b73d0SCy Schubert * 2086206b73d0SCy Schubert * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching 2087206b73d0SCy Schubert * candidate information, see &enum nl80211_pmksa_candidate_attr. 2088206b73d0SCy Schubert * 2089206b73d0SCy Schubert * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not 2090206b73d0SCy Schubert * for management frames transmission. In order to avoid p2p probe/action 2091206b73d0SCy Schubert * frames are being transmitted at CCK rate in 2GHz band, the user space 2092206b73d0SCy Schubert * applications use this attribute. 2093206b73d0SCy Schubert * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and 2094206b73d0SCy Schubert * %NL80211_CMD_FRAME commands. 2095206b73d0SCy Schubert * 2096206b73d0SCy Schubert * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup 2097206b73d0SCy Schubert * request, link setup confirm, link teardown, etc.). Values are 2098206b73d0SCy Schubert * described in the TDLS (802.11z) specification. 2099206b73d0SCy Schubert * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a 2100206b73d0SCy Schubert * TDLS conversation between two devices. 2101206b73d0SCy Schubert * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see 2102206b73d0SCy Schubert * &enum nl80211_tdls_operation, represented as a u8. 2103206b73d0SCy Schubert * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate 2104206b73d0SCy Schubert * as a TDLS peer sta. 2105206b73d0SCy Schubert * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown 2106206b73d0SCy Schubert * procedures should be performed by sending TDLS packets via 2107206b73d0SCy Schubert * %NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be 2108206b73d0SCy Schubert * used for asking the driver to perform a TDLS operation. 2109206b73d0SCy Schubert * 2110206b73d0SCy Schubert * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices 2111206b73d0SCy Schubert * that have AP support to indicate that they have the AP SME integrated 2112206b73d0SCy Schubert * with support for the features listed in this attribute, see 2113206b73d0SCy Schubert * &enum nl80211_ap_sme_features. 2114206b73d0SCy Schubert * 2115206b73d0SCy Schubert * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells 2116206b73d0SCy Schubert * the driver to not wait for an acknowledgement. Note that due to this, 2117206b73d0SCy Schubert * it will also not give a status callback nor return a cookie. This is 2118206b73d0SCy Schubert * mostly useful for probe responses to save airtime. 2119206b73d0SCy Schubert * 2120206b73d0SCy Schubert * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from 2121206b73d0SCy Schubert * &enum nl80211_feature_flags and is advertised in wiphy information. 2122206b73d0SCy Schubert * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe 2123206b73d0SCy Schubert * requests while operating in AP-mode. 2124206b73d0SCy Schubert * This attribute holds a bitmap of the supported protocols for 2125206b73d0SCy Schubert * offloading (see &enum nl80211_probe_resp_offload_support_attr). 2126206b73d0SCy Schubert * 2127206b73d0SCy Schubert * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire 2128206b73d0SCy Schubert * probe-response frame. The DA field in the 802.11 header is zero-ed out, 2129206b73d0SCy Schubert * to be filled by the FW. 2130206b73d0SCy Schubert * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable 2131c1d255d3SCy Schubert * this feature during association. This is a flag attribute. 2132c1d255d3SCy Schubert * Currently only supported in mac80211 drivers. 2133c1d255d3SCy Schubert * @NL80211_ATTR_DISABLE_VHT: Force VHT capable interfaces to disable 2134c1d255d3SCy Schubert * this feature during association. This is a flag attribute. 2135c1d255d3SCy Schubert * Currently only supported in mac80211 drivers. 2136c1d255d3SCy Schubert * @NL80211_ATTR_DISABLE_HE: Force HE capable interfaces to disable 2137c1d255d3SCy Schubert * this feature during association. This is a flag attribute. 2138c1d255d3SCy Schubert * Currently only supported in mac80211 drivers. 2139206b73d0SCy Schubert * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the 2140206b73d0SCy Schubert * ATTR_HT_CAPABILITY to which attention should be paid. 2141206b73d0SCy Schubert * Currently, only mac80211 NICs support this feature. 2142206b73d0SCy Schubert * The values that may be configured are: 2143206b73d0SCy Schubert * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40 2144206b73d0SCy Schubert * AMPDU density and AMPDU factor. 2145206b73d0SCy Schubert * All values are treated as suggestions and may be ignored 2146206b73d0SCy Schubert * by the driver as required. The actual values may be seen in 2147206b73d0SCy Schubert * the station debugfs ht_caps file. 2148206b73d0SCy Schubert * 2149206b73d0SCy Schubert * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country 2150206b73d0SCy Schubert * abides to when initiating radiation on DFS channels. A country maps 2151206b73d0SCy Schubert * to one DFS region. 2152206b73d0SCy Schubert * 2153206b73d0SCy Schubert * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of 2154206b73d0SCy Schubert * up to 16 TIDs. 2155206b73d0SCy Schubert * 2156206b73d0SCy Schubert * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be 2157206b73d0SCy Schubert * used by the drivers which has MLME in firmware and does not have support 2158206b73d0SCy Schubert * to report per station tx/rx activity to free up the station entry from 2159206b73d0SCy Schubert * the list. This needs to be used when the driver advertises the 2160206b73d0SCy Schubert * capability to timeout the stations. 2161206b73d0SCy Schubert * 2162206b73d0SCy Schubert * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); 2163206b73d0SCy Schubert * this attribute is (depending on the driver capabilities) added to 2164206b73d0SCy Schubert * received frames indicated with %NL80211_CMD_FRAME. 2165206b73d0SCy Schubert * 2166206b73d0SCy Schubert * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds 2167206b73d0SCy Schubert * or 0 to disable background scan. 2168206b73d0SCy Schubert * 2169206b73d0SCy Schubert * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from 2170206b73d0SCy Schubert * userspace. If unset it is assumed the hint comes directly from 2171206b73d0SCy Schubert * a user. If set code could specify exactly what type of source 2172206b73d0SCy Schubert * was used to provide the hint. For the different types of 2173206b73d0SCy Schubert * allowed user regulatory hints see nl80211_user_reg_hint_type. 2174206b73d0SCy Schubert * 2175206b73d0SCy Schubert * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected 2176206b73d0SCy Schubert * the connection request from a station. nl80211_connect_failed_reason 2177206b73d0SCy Schubert * enum has different reasons of connection failure. 2178206b73d0SCy Schubert * 2179206b73d0SCy Schubert * @NL80211_ATTR_AUTH_DATA: Fields and elements in Authentication frames. 2180206b73d0SCy Schubert * This contains the authentication frame body (non-IE and IE data), 2181206b73d0SCy Schubert * excluding the Authentication algorithm number, i.e., starting at the 2182206b73d0SCy Schubert * Authentication transaction sequence number field. It is used with 2183206b73d0SCy Schubert * authentication algorithms that need special fields to be added into 2184206b73d0SCy Schubert * the frames (SAE and FILS). Currently, only the SAE cases use the 2185206b73d0SCy Schubert * initial two fields (Authentication transaction sequence number and 2186206b73d0SCy Schubert * Status code). However, those fields are included in the attribute data 2187206b73d0SCy Schubert * for all authentication algorithms to keep the attribute definition 2188206b73d0SCy Schubert * consistent. 2189206b73d0SCy Schubert * 2190206b73d0SCy Schubert * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from 2191206b73d0SCy Schubert * association request when used with NL80211_CMD_NEW_STATION) 2192206b73d0SCy Schubert * 2193206b73d0SCy Schubert * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32) 2194206b73d0SCy Schubert * 2195206b73d0SCy Schubert * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with 2196206b73d0SCy Schubert * the START_AP and SET_BSS commands 2197206b73d0SCy Schubert * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the 2198206b73d0SCy Schubert * START_AP and SET_BSS commands. This can have the values 0 or 1; 2199206b73d0SCy Schubert * if not given in START_AP 0 is assumed, if not given in SET_BSS 2200206b73d0SCy Schubert * no change is made. 2201206b73d0SCy Schubert * 2202206b73d0SCy Schubert * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode 2203206b73d0SCy Schubert * defined in &enum nl80211_mesh_power_mode. 2204206b73d0SCy Schubert * 2205206b73d0SCy Schubert * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy, 2206206b73d0SCy Schubert * carried in a u32 attribute 2207206b73d0SCy Schubert * 2208206b73d0SCy Schubert * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for 2209206b73d0SCy Schubert * MAC ACL. 2210206b73d0SCy Schubert * 2211206b73d0SCy Schubert * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum 2212206b73d0SCy Schubert * number of MAC addresses that a device can support for MAC 2213206b73d0SCy Schubert * ACL. 2214206b73d0SCy Schubert * 2215206b73d0SCy Schubert * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace, 2216206b73d0SCy Schubert * contains a value of enum nl80211_radar_event (u32). 2217206b73d0SCy Schubert * 2218206b73d0SCy Schubert * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver 2219206b73d0SCy Schubert * has and handles. The format is the same as the IE contents. See 2220206b73d0SCy Schubert * 802.11-2012 8.4.2.29 for more information. 2221206b73d0SCy Schubert * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver 2222206b73d0SCy Schubert * has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields. 2223206b73d0SCy Schubert * 2224206b73d0SCy Schubert * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to 2225206b73d0SCy Schubert * the driver, e.g., to enable TDLS power save (PU-APSD). 2226206b73d0SCy Schubert * 2227206b73d0SCy Schubert * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are 2228206b73d0SCy Schubert * advertised to the driver, e.g., to enable TDLS off channel operations 2229206b73d0SCy Schubert * and PU-APSD. 2230206b73d0SCy Schubert * 2231206b73d0SCy Schubert * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see 2232206b73d0SCy Schubert * &enum nl80211_protocol_features, the attribute is a u32. 2233206b73d0SCy Schubert * 2234206b73d0SCy Schubert * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports 2235206b73d0SCy Schubert * receiving the data for a single wiphy split across multiple 2236206b73d0SCy Schubert * messages, given with wiphy dump message 2237206b73d0SCy Schubert * 2238206b73d0SCy Schubert * @NL80211_ATTR_MDID: Mobility Domain Identifier 2239206b73d0SCy Schubert * 2240206b73d0SCy Schubert * @NL80211_ATTR_IE_RIC: Resource Information Container Information 2241206b73d0SCy Schubert * Element 2242206b73d0SCy Schubert * 2243206b73d0SCy Schubert * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased 2244206b73d0SCy Schubert * reliability, see &enum nl80211_crit_proto_id (u16). 2245206b73d0SCy Schubert * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which 2246206b73d0SCy Schubert * the connection should have increased reliability (u16). 2247206b73d0SCy Schubert * 2248206b73d0SCy Schubert * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16). 2249206b73d0SCy Schubert * This is similar to @NL80211_ATTR_STA_AID but with a difference of being 2250206b73d0SCy Schubert * allowed to be used with the first @NL80211_CMD_SET_STATION command to 2251206b73d0SCy Schubert * update a TDLS peer STA entry. 2252206b73d0SCy Schubert * 2253206b73d0SCy Schubert * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information. 2254206b73d0SCy Schubert * 2255206b73d0SCy Schubert * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's 2256206b73d0SCy Schubert * until the channel switch event. 2257206b73d0SCy Schubert * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission 2258206b73d0SCy Schubert * must be blocked on the current channel (before the channel switch 2259c1d255d3SCy Schubert * operation). Also included in the channel switch started event if quiet 2260c1d255d3SCy Schubert * was requested by the AP. 2261206b73d0SCy Schubert * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information 2262206b73d0SCy Schubert * for the time while performing a channel switch. 2263c1d255d3SCy Schubert * @NL80211_ATTR_CNTDWN_OFFS_BEACON: An array of offsets (u16) to the channel 2264c1d255d3SCy Schubert * switch or color change counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL). 2265c1d255d3SCy Schubert * @NL80211_ATTR_CNTDWN_OFFS_PRESP: An array of offsets (u16) to the channel 2266c1d255d3SCy Schubert * switch or color change counters in the probe response (%NL80211_ATTR_PROBE_RESP). 2267206b73d0SCy Schubert * 2268206b73d0SCy Schubert * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32. 2269206b73d0SCy Schubert * As specified in the &enum nl80211_rxmgmt_flags. 2270206b73d0SCy Schubert * 2271206b73d0SCy Schubert * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels. 2272206b73d0SCy Schubert * 2273206b73d0SCy Schubert * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported 2274c1d255d3SCy Schubert * operating classes. 2275206b73d0SCy Schubert * 2276206b73d0SCy Schubert * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space 2277206b73d0SCy Schubert * controls DFS operation in IBSS mode. If the flag is included in 2278206b73d0SCy Schubert * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS 2279206b73d0SCy Schubert * channels and reports radar events to userspace. Userspace is required 2280206b73d0SCy Schubert * to react to radar events, e.g. initiate a channel switch or leave the 2281206b73d0SCy Schubert * IBSS network. 2282206b73d0SCy Schubert * 2283206b73d0SCy Schubert * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports 2284206b73d0SCy Schubert * 5 MHz channel bandwidth. 2285206b73d0SCy Schubert * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports 2286206b73d0SCy Schubert * 10 MHz channel bandwidth. 2287206b73d0SCy Schubert * 2288206b73d0SCy Schubert * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode 2289206b73d0SCy Schubert * Notification Element based on association request when used with 2290206b73d0SCy Schubert * %NL80211_CMD_NEW_STATION or %NL80211_CMD_SET_STATION (only when 2291206b73d0SCy Schubert * %NL80211_FEATURE_FULL_AP_CLIENT_STATE is supported, or with TDLS); 2292206b73d0SCy Schubert * u8 attribute. 2293206b73d0SCy Schubert * 2294206b73d0SCy Schubert * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if 2295206b73d0SCy Schubert * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet) 2296206b73d0SCy Schubert * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command 2297206b73d0SCy Schubert * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this 2298206b73d0SCy Schubert * attribute is also used for vendor command feature advertisement 2299206b73d0SCy Schubert * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy 2300206b73d0SCy Schubert * info, containing a nested array of possible events 2301206b73d0SCy Schubert * 2302206b73d0SCy Schubert * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This 2303206b73d0SCy Schubert * data is in the format defined for the payload of the QoS Map Set element 2304206b73d0SCy Schubert * in IEEE Std 802.11-2012, 8.4.2.97. 2305206b73d0SCy Schubert * 2306206b73d0SCy Schubert * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS 2307206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS 2308206b73d0SCy Schubert * 2309206b73d0SCy Schubert * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many 2310206b73d0SCy Schubert * associated stations are supported in AP mode (including P2P GO); u32. 2311206b73d0SCy Schubert * Since drivers may not have a fixed limit on the maximum number (e.g., 2312206b73d0SCy Schubert * other concurrent operations may affect this), drivers are allowed to 2313206b73d0SCy Schubert * advertise values that cannot always be met. In such cases, an attempt 2314206b73d0SCy Schubert * to add a new station entry with @NL80211_CMD_NEW_STATION may fail. 2315206b73d0SCy Schubert * 2316206b73d0SCy Schubert * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which 2317206b73d0SCy Schubert * should be updated when the frame is transmitted. 2318206b73d0SCy Schubert * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum 2319206b73d0SCy Schubert * supported number of csa counters. 2320206b73d0SCy Schubert * 2321206b73d0SCy Schubert * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32. 2322206b73d0SCy Schubert * As specified in the &enum nl80211_tdls_peer_capability. 2323206b73d0SCy Schubert * 2324206b73d0SCy Schubert * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface 2325206b73d0SCy Schubert * creation then the new interface will be owned by the netlink socket 2326206b73d0SCy Schubert * that created it and will be destroyed when the socket is closed. 2327206b73d0SCy Schubert * If set during scheduled scan start then the new scan req will be 2328206b73d0SCy Schubert * owned by the netlink socket that created it and the scheduled scan will 2329206b73d0SCy Schubert * be stopped when the socket is closed. 2330206b73d0SCy Schubert * If set during configuration of regulatory indoor operation then the 2331206b73d0SCy Schubert * regulatory indoor configuration would be owned by the netlink socket 2332206b73d0SCy Schubert * that configured the indoor setting, and the indoor operation would be 2333206b73d0SCy Schubert * cleared when the socket is closed. 2334206b73d0SCy Schubert * If set during NAN interface creation, the interface will be destroyed 2335206b73d0SCy Schubert * if the socket is closed just like any other interface. Moreover, NAN 2336206b73d0SCy Schubert * notifications will be sent in unicast to that socket. Without this 2337206b73d0SCy Schubert * attribute, the notifications will be sent to the %NL80211_MCGRP_NAN 2338206b73d0SCy Schubert * multicast group. 2339206b73d0SCy Schubert * If set during %NL80211_CMD_ASSOCIATE or %NL80211_CMD_CONNECT the 2340206b73d0SCy Schubert * station will deauthenticate when the socket is closed. 2341206b73d0SCy Schubert * If set during %NL80211_CMD_JOIN_IBSS the IBSS will be automatically 2342206b73d0SCy Schubert * torn down when the socket is closed. 2343206b73d0SCy Schubert * If set during %NL80211_CMD_JOIN_MESH the mesh setup will be 2344206b73d0SCy Schubert * automatically torn down when the socket is closed. 2345206b73d0SCy Schubert * If set during %NL80211_CMD_START_AP the AP will be automatically 2346206b73d0SCy Schubert * disabled when the socket is closed. 2347206b73d0SCy Schubert * 2348206b73d0SCy Schubert * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is 2349206b73d0SCy Schubert * the TDLS link initiator. 2350206b73d0SCy Schubert * 2351206b73d0SCy Schubert * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection 2352206b73d0SCy Schubert * shall support Radio Resource Measurements (11k). This attribute can be 2353206b73d0SCy Schubert * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests. 2354206b73d0SCy Schubert * User space applications are expected to use this flag only if the 2355206b73d0SCy Schubert * underlying device supports these minimal RRM features: 2356206b73d0SCy Schubert * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES, 2357206b73d0SCy Schubert * %NL80211_FEATURE_QUIET, 2358206b73d0SCy Schubert * Or, if global RRM is supported, see: 2359206b73d0SCy Schubert * %NL80211_EXT_FEATURE_RRM 2360206b73d0SCy Schubert * If this flag is used, driver must add the Power Capabilities IE to the 2361206b73d0SCy Schubert * association request. In addition, it must also set the RRM capability 2362206b73d0SCy Schubert * flag in the association request's Capability Info field. 2363206b73d0SCy Schubert * 2364206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout 2365206b73d0SCy Schubert * estimation algorithm (dynack). In order to activate dynack 2366206b73d0SCy Schubert * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower 2367206b73d0SCy Schubert * drivers to indicate dynack capability. Dynack is automatically disabled 2368206b73d0SCy Schubert * setting valid value for coverage class. 2369206b73d0SCy Schubert * 2370206b73d0SCy Schubert * @NL80211_ATTR_TSID: a TSID value (u8 attribute) 2371206b73d0SCy Schubert * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute) 2372206b73d0SCy Schubert * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds 2373206b73d0SCy Schubert * (per second) (u16 attribute) 2374206b73d0SCy Schubert * 2375206b73d0SCy Schubert * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see 2376206b73d0SCy Schubert * &enum nl80211_smps_mode. 2377206b73d0SCy Schubert * 2378206b73d0SCy Schubert * @NL80211_ATTR_OPER_CLASS: operating class 2379206b73d0SCy Schubert * 2380206b73d0SCy Schubert * @NL80211_ATTR_MAC_MASK: MAC address mask 2381206b73d0SCy Schubert * 2382206b73d0SCy Schubert * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device 2383206b73d0SCy Schubert * is self-managing its regulatory information and any regulatory domain 2384206b73d0SCy Schubert * obtained from it is coming from the device's wiphy and not the global 2385206b73d0SCy Schubert * cfg80211 regdomain. 2386206b73d0SCy Schubert * 2387206b73d0SCy Schubert * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte 2388206b73d0SCy Schubert * array. The feature flags are identified by their bit index (see &enum 2389206b73d0SCy Schubert * nl80211_ext_feature_index). The bit index is ordered starting at the 2390206b73d0SCy Schubert * least-significant bit of the first byte in the array, ie. bit index 0 2391206b73d0SCy Schubert * is located at bit 0 of byte 0. bit index 25 would be located at bit 1 2392206b73d0SCy Schubert * of byte 3 (u8 array). 2393206b73d0SCy Schubert * 2394206b73d0SCy Schubert * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be 2395206b73d0SCy Schubert * returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY 2396206b73d0SCy Schubert * may return a survey entry without a channel indicating global radio 2397206b73d0SCy Schubert * statistics (only some values are valid and make sense.) 2398206b73d0SCy Schubert * For devices that don't return such an entry even then, the information 2399206b73d0SCy Schubert * should be contained in the result as the sum of the respective counters 2400206b73d0SCy Schubert * over all channels. 2401206b73d0SCy Schubert * 2402206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before the first cycle of a 2403206b73d0SCy Schubert * scheduled scan is started. Or the delay before a WoWLAN 2404206b73d0SCy Schubert * net-detect scan is started, counting from the moment the 2405206b73d0SCy Schubert * system is suspended. This value is a u32, in seconds. 2406206b73d0SCy Schubert 2407206b73d0SCy Schubert * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device 2408206b73d0SCy Schubert * is operating in an indoor environment. 2409206b73d0SCy Schubert * 2410206b73d0SCy Schubert * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for 2411206b73d0SCy Schubert * scheduled scan supported by the device (u32), a wiphy attribute. 2412206b73d0SCy Schubert * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for 2413206b73d0SCy Schubert * a scan plan (u32), a wiphy attribute. 2414206b73d0SCy Schubert * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in 2415206b73d0SCy Schubert * a scan plan (u32), a wiphy attribute. 2416206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan. 2417206b73d0SCy Schubert * Each scan plan defines the number of scan iterations and the interval 2418206b73d0SCy Schubert * between scans. The last scan plan will always run infinitely, 2419206b73d0SCy Schubert * thus it must not specify the number of iterations, only the interval 2420206b73d0SCy Schubert * between scans. The scan plans are executed sequentially. 2421206b73d0SCy Schubert * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan. 2422206b73d0SCy Schubert * @NL80211_ATTR_PBSS: flag attribute. If set it means operate 2423206b73d0SCy Schubert * in a PBSS. Specified in %NL80211_CMD_CONNECT to request 2424206b73d0SCy Schubert * connecting to a PCP, and in %NL80211_CMD_START_AP to start 2425206b73d0SCy Schubert * a PCP instead of AP. Relevant for DMG networks only. 2426206b73d0SCy Schubert * @NL80211_ATTR_BSS_SELECT: nested attribute for driver supporting the 2427206b73d0SCy Schubert * BSS selection feature. When used with %NL80211_CMD_GET_WIPHY it contains 2428206b73d0SCy Schubert * attributes according &enum nl80211_bss_select_attr to indicate what 2429206b73d0SCy Schubert * BSS selection behaviours are supported. When used with %NL80211_CMD_CONNECT 2430206b73d0SCy Schubert * it contains the behaviour-specific attribute containing the parameters for 2431206b73d0SCy Schubert * BSS selection to be done by driver and/or firmware. 2432206b73d0SCy Schubert * 2433206b73d0SCy Schubert * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported 2434206b73d0SCy Schubert * or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status 2435206b73d0SCy Schubert * 2436206b73d0SCy Schubert * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment 2437206b73d0SCy Schubert * 2438206b73d0SCy Schubert * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes: 2439206b73d0SCy Schubert * %NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA, 2440*a90b9d01SCy Schubert * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities and 2441*a90b9d01SCy Schubert * other interface-type specific capabilities per interface type. For MLO, 2442*a90b9d01SCy Schubert * %NL80211_ATTR_EML_CAPABILITY and %NL80211_ATTR_MLD_CAPA_AND_OPS are 2443*a90b9d01SCy Schubert * present. 2444206b73d0SCy Schubert * 2445206b73d0SCy Schubert * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO 2446206b73d0SCy Schubert * groupID for monitor mode. 2447206b73d0SCy Schubert * The first 8 bytes are a mask that defines the membership in each 2448206b73d0SCy Schubert * group (there are 64 groups, group 0 and 63 are reserved), 2449206b73d0SCy Schubert * each bit represents a group and set to 1 for being a member in 2450206b73d0SCy Schubert * that group and 0 for not being a member. 2451206b73d0SCy Schubert * The remaining 16 bytes define the position in each group: 2 bits for 2452206b73d0SCy Schubert * each group. 2453206b73d0SCy Schubert * (smaller group numbers represented on most significant bits and bigger 2454206b73d0SCy Schubert * group numbers on least significant bits.) 2455206b73d0SCy Schubert * This attribute is used only if all interfaces are in monitor mode. 2456206b73d0SCy Schubert * Set this attribute in order to monitor packets using the given MU-MIMO 2457206b73d0SCy Schubert * groupID data. 2458206b73d0SCy Schubert * to turn off that feature set all the bits of the groupID to zero. 2459206b73d0SCy Schubert * @NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR: mac address for the sniffer to follow 2460206b73d0SCy Schubert * when using MU-MIMO air sniffer. 2461206b73d0SCy Schubert * to turn that feature off set an invalid mac address 2462206b73d0SCy Schubert * (e.g. FF:FF:FF:FF:FF:FF) 2463206b73d0SCy Schubert * 2464206b73d0SCy Schubert * @NL80211_ATTR_SCAN_START_TIME_TSF: The time at which the scan was actually 2465206b73d0SCy Schubert * started (u64). The time is the TSF of the BSS the interface that 2466206b73d0SCy Schubert * requested the scan is connected to (if available, otherwise this 2467206b73d0SCy Schubert * attribute must not be included). 2468206b73d0SCy Schubert * @NL80211_ATTR_SCAN_START_TIME_TSF_BSSID: The BSS according to which 2469206b73d0SCy Schubert * %NL80211_ATTR_SCAN_START_TIME_TSF is set. 2470206b73d0SCy Schubert * @NL80211_ATTR_MEASUREMENT_DURATION: measurement duration in TUs (u16). If 2471206b73d0SCy Schubert * %NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY is not set, this is the 2472206b73d0SCy Schubert * maximum measurement duration allowed. This attribute is used with 2473206b73d0SCy Schubert * measurement requests. It can also be used with %NL80211_CMD_TRIGGER_SCAN 2474206b73d0SCy Schubert * if the scan is used for beacon report radio measurement. 2475206b73d0SCy Schubert * @NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY: flag attribute that indicates 2476206b73d0SCy Schubert * that the duration specified with %NL80211_ATTR_MEASUREMENT_DURATION is 2477206b73d0SCy Schubert * mandatory. If this flag is not set, the duration is the maximum duration 2478206b73d0SCy Schubert * and the actual measurement duration may be shorter. 2479206b73d0SCy Schubert * 2480206b73d0SCy Schubert * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer (u16). This is 2481206b73d0SCy Schubert * used to pull the stored data for mesh peer in power save state. 2482206b73d0SCy Schubert * 2483206b73d0SCy Schubert * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by 2484206b73d0SCy Schubert * %NL80211_CMD_START_NAN and optionally with 2485206b73d0SCy Schubert * %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0. 2486206b73d0SCy Schubert * Also, values 1 and 255 are reserved for certification purposes and 2487206b73d0SCy Schubert * should not be used during a normal device operation. 2488206b73d0SCy Schubert * @NL80211_ATTR_BANDS: operating bands configuration. This is a u32 2489206b73d0SCy Schubert * bitmask of BIT(NL80211_BAND_*) as described in %enum 2490206b73d0SCy Schubert * nl80211_band. For instance, for NL80211_BAND_2GHZ, bit 0 2491206b73d0SCy Schubert * would be set. This attribute is used with 2492206b73d0SCy Schubert * %NL80211_CMD_START_NAN and %NL80211_CMD_CHANGE_NAN_CONFIG, and 2493206b73d0SCy Schubert * it is optional. If no bands are set, it means don't-care and 2494206b73d0SCy Schubert * the device will decide what to use. 2495206b73d0SCy Schubert * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See 2496206b73d0SCy Schubert * &enum nl80211_nan_func_attributes for description of this nested 2497206b73d0SCy Schubert * attribute. 2498206b73d0SCy Schubert * @NL80211_ATTR_NAN_MATCH: used to report a match. This is a nested attribute. 2499206b73d0SCy Schubert * See &enum nl80211_nan_match_attributes. 2500206b73d0SCy Schubert * @NL80211_ATTR_FILS_KEK: KEK for FILS (Re)Association Request/Response frame 2501206b73d0SCy Schubert * protection. 2502206b73d0SCy Schubert * @NL80211_ATTR_FILS_NONCES: Nonces (part of AAD) for FILS (Re)Association 2503206b73d0SCy Schubert * Request/Response frame protection. This attribute contains the 16 octet 2504206b73d0SCy Schubert * STA Nonce followed by 16 octets of AP Nonce. 2505206b73d0SCy Schubert * 2506206b73d0SCy Schubert * @NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED: Indicates whether or not multicast 2507206b73d0SCy Schubert * packets should be send out as unicast to all stations (flag attribute). 2508206b73d0SCy Schubert * 2509206b73d0SCy Schubert * @NL80211_ATTR_BSSID: The BSSID of the AP. Note that %NL80211_ATTR_MAC is also 2510206b73d0SCy Schubert * used in various commands/events for specifying the BSSID. 2511206b73d0SCy Schubert * 2512206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI: Relative RSSI threshold by which 2513206b73d0SCy Schubert * other BSSs has to be better or slightly worse than the current 2514206b73d0SCy Schubert * connected BSS so that they get reported to user space. 2515206b73d0SCy Schubert * This will give an opportunity to userspace to consider connecting to 2516206b73d0SCy Schubert * other matching BSSs which have better or slightly worse RSSI than 2517206b73d0SCy Schubert * the current connected BSS by using an offloaded operation to avoid 2518206b73d0SCy Schubert * unnecessary wakeups. 2519206b73d0SCy Schubert * 2520206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST: When present the RSSI level for BSSs in 2521206b73d0SCy Schubert * the specified band is to be adjusted before doing 2522206b73d0SCy Schubert * %NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI based comparison to figure out 2523206b73d0SCy Schubert * better BSSs. The attribute value is a packed structure 2524206b73d0SCy Schubert * value as specified by &struct nl80211_bss_select_rssi_adjust. 2525206b73d0SCy Schubert * 2526206b73d0SCy Schubert * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out. 2527206b73d0SCy Schubert * u32 attribute with an &enum nl80211_timeout_reason value. This is used, 2528206b73d0SCy Schubert * e.g., with %NL80211_CMD_CONNECT event. 2529206b73d0SCy Schubert * 2530206b73d0SCy Schubert * @NL80211_ATTR_FILS_ERP_USERNAME: EAP Re-authentication Protocol (ERP) 2531206b73d0SCy Schubert * username part of NAI used to refer keys rRK and rIK. This is used with 2532206b73d0SCy Schubert * %NL80211_CMD_CONNECT. 2533206b73d0SCy Schubert * 2534206b73d0SCy Schubert * @NL80211_ATTR_FILS_ERP_REALM: EAP Re-authentication Protocol (ERP) realm part 2535206b73d0SCy Schubert * of NAI specifying the domain name of the ER server. This is used with 2536206b73d0SCy Schubert * %NL80211_CMD_CONNECT. 2537206b73d0SCy Schubert * 2538206b73d0SCy Schubert * @NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM: Unsigned 16-bit ERP next sequence number 2539206b73d0SCy Schubert * to use in ERP messages. This is used in generating the FILS wrapped data 2540206b73d0SCy Schubert * for FILS authentication and is used with %NL80211_CMD_CONNECT. 2541206b73d0SCy Schubert * 2542206b73d0SCy Schubert * @NL80211_ATTR_FILS_ERP_RRK: ERP re-authentication Root Key (rRK) for the 2543206b73d0SCy Schubert * NAI specified by %NL80211_ATTR_FILS_ERP_USERNAME and 2544206b73d0SCy Schubert * %NL80211_ATTR_FILS_ERP_REALM. This is used for generating rIK and rMSK 2545206b73d0SCy Schubert * from successful FILS authentication and is used with 2546206b73d0SCy Schubert * %NL80211_CMD_CONNECT. 2547206b73d0SCy Schubert * 2548206b73d0SCy Schubert * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP 2549206b73d0SCy Schubert * identifying the scope of PMKSAs. This is used with 2550206b73d0SCy Schubert * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA. 2551206b73d0SCy Schubert * 2552206b73d0SCy Schubert * @NL80211_ATTR_PMK: attribute for passing PMK key material. Used with 2553206b73d0SCy Schubert * %NL80211_CMD_SET_PMKSA for the PMKSA identified by %NL80211_ATTR_PMKID. 2554c1d255d3SCy Schubert * For %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP it is used to provide 2555c1d255d3SCy Schubert * PSK for offloading 4-way handshake for WPA/WPA2-PSK networks. For 802.1X 2556c1d255d3SCy Schubert * authentication it is used with %NL80211_CMD_SET_PMK. For offloaded FT 2557c1d255d3SCy Schubert * support this attribute specifies the PMK-R0 if NL80211_ATTR_PMKR0_NAME 2558c1d255d3SCy Schubert * is included as well. 2559206b73d0SCy Schubert * 2560206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_MULTI: flag attribute which user-space shall use to 2561206b73d0SCy Schubert * indicate that it supports multiple active scheduled scan requests. 2562206b73d0SCy Schubert * @NL80211_ATTR_SCHED_SCAN_MAX_REQS: indicates maximum number of scheduled 2563206b73d0SCy Schubert * scan request that may be active for the device (u32). 2564206b73d0SCy Schubert * 2565206b73d0SCy Schubert * @NL80211_ATTR_WANT_1X_4WAY_HS: flag attribute which user-space can include 2566206b73d0SCy Schubert * in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it 2567206b73d0SCy Schubert * wants to use the supported offload of the 4-way handshake. 2568206b73d0SCy Schubert * @NL80211_ATTR_PMKR0_NAME: PMK-R0 Name for offloaded FT. 2569206b73d0SCy Schubert * @NL80211_ATTR_PORT_AUTHORIZED: (reserved) 2570206b73d0SCy Schubert * 2571206b73d0SCy Schubert * @NL80211_ATTR_EXTERNAL_AUTH_ACTION: Identify the requested external 2572206b73d0SCy Schubert * authentication operation (u32 attribute with an 2573206b73d0SCy Schubert * &enum nl80211_external_auth_action value). This is used with the 2574206b73d0SCy Schubert * %NL80211_CMD_EXTERNAL_AUTH request event. 2575206b73d0SCy Schubert * @NL80211_ATTR_EXTERNAL_AUTH_SUPPORT: Flag attribute indicating that the user 2576206b73d0SCy Schubert * space supports external authentication. This attribute shall be used 2577206b73d0SCy Schubert * with %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP request. The driver 2578206b73d0SCy Schubert * may offload authentication processing to user space if this capability 2579*a90b9d01SCy Schubert * is indicated in the respective requests from the user space. (This flag 2580*a90b9d01SCy Schubert * attribute deprecated for %NL80211_CMD_START_AP, use 2581*a90b9d01SCy Schubert * %NL80211_ATTR_AP_SETTINGS_FLAGS) 2582206b73d0SCy Schubert * 2583206b73d0SCy Schubert * @NL80211_ATTR_NSS: Station's New/updated RX_NSS value notified using this 2584206b73d0SCy Schubert * u8 attribute. This is used with %NL80211_CMD_STA_OPMODE_CHANGED. 2585206b73d0SCy Schubert * 2586206b73d0SCy Schubert * @NL80211_ATTR_TXQ_STATS: TXQ statistics (nested attribute, see &enum 2587206b73d0SCy Schubert * nl80211_txq_stats) 2588206b73d0SCy Schubert * @NL80211_ATTR_TXQ_LIMIT: Total packet limit for the TXQ queues for this phy. 2589206b73d0SCy Schubert * The smaller of this and the memory limit is enforced. 2590c1d255d3SCy Schubert * @NL80211_ATTR_TXQ_MEMORY_LIMIT: Total memory limit (in bytes) for the 2591206b73d0SCy Schubert * TXQ queues for this phy. The smaller of this and the packet limit is 2592206b73d0SCy Schubert * enforced. 2593206b73d0SCy Schubert * @NL80211_ATTR_TXQ_QUANTUM: TXQ scheduler quantum (bytes). Number of bytes 2594206b73d0SCy Schubert * a flow is assigned on each round of the DRR scheduler. 2595206b73d0SCy Schubert * @NL80211_ATTR_HE_CAPABILITY: HE Capability information element (from 2596206b73d0SCy Schubert * association request when used with NL80211_CMD_NEW_STATION). Can be set 2597206b73d0SCy Schubert * only if %NL80211_STA_FLAG_WME is set. 2598206b73d0SCy Schubert * 2599206b73d0SCy Schubert * @NL80211_ATTR_FTM_RESPONDER: nested attribute which user-space can include 2600206b73d0SCy Schubert * in %NL80211_CMD_START_AP or %NL80211_CMD_SET_BEACON for fine timing 2601206b73d0SCy Schubert * measurement (FTM) responder functionality and containing parameters as 2602206b73d0SCy Schubert * possible, see &enum nl80211_ftm_responder_attr 2603206b73d0SCy Schubert * 2604206b73d0SCy Schubert * @NL80211_ATTR_FTM_RESPONDER_STATS: Nested attribute with FTM responder 2605206b73d0SCy Schubert * statistics, see &enum nl80211_ftm_responder_stats. 2606206b73d0SCy Schubert * 2607206b73d0SCy Schubert * @NL80211_ATTR_TIMEOUT: Timeout for the given operation in milliseconds (u32), 2608206b73d0SCy Schubert * if the attribute is not given no timeout is requested. Note that 0 is an 2609206b73d0SCy Schubert * invalid value. 2610206b73d0SCy Schubert * 2611206b73d0SCy Schubert * @NL80211_ATTR_PEER_MEASUREMENTS: peer measurements request (and result) 2612206b73d0SCy Schubert * data, uses nested attributes specified in 2613206b73d0SCy Schubert * &enum nl80211_peer_measurement_attrs. 2614206b73d0SCy Schubert * This is also used for capability advertisement in the wiphy information, 2615206b73d0SCy Schubert * with the appropriate sub-attributes. 2616206b73d0SCy Schubert * 2617206b73d0SCy Schubert * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime 2618206b73d0SCy Schubert * scheduler. 2619206b73d0SCy Schubert * 2620206b73d0SCy Schubert * @NL80211_ATTR_STA_TX_POWER_SETTING: Transmit power setting type (u8) for 2621206b73d0SCy Schubert * station associated with the AP. See &enum nl80211_tx_power_setting for 2622206b73d0SCy Schubert * possible values. 2623206b73d0SCy Schubert * @NL80211_ATTR_STA_TX_POWER: Transmit power level (s16) in dBm units. This 2624206b73d0SCy Schubert * allows to set Tx power for a station. If this attribute is not included, 2625206b73d0SCy Schubert * the default per-interface tx power setting will be overriding. Driver 2626206b73d0SCy Schubert * should be picking up the lowest tx power, either tx power per-interface 2627206b73d0SCy Schubert * or per-station. 2628206b73d0SCy Schubert * 2629c1d255d3SCy Schubert * @NL80211_ATTR_SAE_PASSWORD: attribute for passing SAE password material. It 2630c1d255d3SCy Schubert * is used with %NL80211_CMD_CONNECT to provide password for offloading 2631c1d255d3SCy Schubert * SAE authentication for WPA3-Personal networks. 2632c1d255d3SCy Schubert * 2633c1d255d3SCy Schubert * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support. 2634c1d255d3SCy Schubert * 2635c1d255d3SCy Schubert * @NL80211_ATTR_HE_OBSS_PD: nested attribute for OBSS Packet Detection 2636c1d255d3SCy Schubert * functionality. 2637c1d255d3SCy Schubert * 2638c1d255d3SCy Schubert * @NL80211_ATTR_WIPHY_EDMG_CHANNELS: bitmap that indicates the 2.16 GHz 2639c1d255d3SCy Schubert * channel(s) that are allowed to be used for EDMG transmissions. 2640c1d255d3SCy Schubert * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251. (u8 attribute) 2641c1d255d3SCy Schubert * @NL80211_ATTR_WIPHY_EDMG_BW_CONFIG: Channel BW Configuration subfield encodes 2642c1d255d3SCy Schubert * the allowed channel bandwidth configurations. (u8 attribute) 2643c1d255d3SCy Schubert * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13. 2644c1d255d3SCy Schubert * 2645c1d255d3SCy Schubert * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key 2646c1d255d3SCy Schubert * (u16). 2647c1d255d3SCy Schubert * 2648c1d255d3SCy Schubert * @NL80211_ATTR_HE_BSS_COLOR: nested attribute for BSS Color Settings. 2649c1d255d3SCy Schubert * 2650c1d255d3SCy Schubert * @NL80211_ATTR_IFTYPE_AKM_SUITES: nested array attribute, with each entry 2651c1d255d3SCy Schubert * using attributes from &enum nl80211_iftype_akm_attributes. This 2652c1d255d3SCy Schubert * attribute is sent in a response to %NL80211_CMD_GET_WIPHY indicating 2653c1d255d3SCy Schubert * supported AKM suites capability per interface. AKMs advertised in 2654c1d255d3SCy Schubert * %NL80211_ATTR_AKM_SUITES are default capabilities if AKM suites not 2655c1d255d3SCy Schubert * advertised for a specific interface type. 2656c1d255d3SCy Schubert * 2657c1d255d3SCy Schubert * @NL80211_ATTR_TID_CONFIG: TID specific configuration in a 2658c1d255d3SCy Schubert * nested attribute with &enum nl80211_tid_config_attr sub-attributes; 2659c1d255d3SCy Schubert * on output (in wiphy attributes) it contains only the feature sub- 2660c1d255d3SCy Schubert * attributes. 2661c1d255d3SCy Schubert * 2662c1d255d3SCy Schubert * @NL80211_ATTR_CONTROL_PORT_NO_PREAUTH: disable preauth frame rx on control 2663c1d255d3SCy Schubert * port in order to forward/receive them as ordinary data frames. 2664c1d255d3SCy Schubert * 2665c1d255d3SCy Schubert * @NL80211_ATTR_PMK_LIFETIME: Maximum lifetime for PMKSA in seconds (u32, 2666c1d255d3SCy Schubert * dot11RSNAConfigPMKReauthThreshold; 0 is not a valid value). 2667c1d255d3SCy Schubert * An optional parameter configured through %NL80211_CMD_SET_PMKSA. 2668c1d255d3SCy Schubert * Drivers that trigger roaming need to know the lifetime of the 2669c1d255d3SCy Schubert * configured PMKSA for triggering the full vs. PMKSA caching based 2670c1d255d3SCy Schubert * authentication. This timeout helps authentication methods like SAE, 2671c1d255d3SCy Schubert * where PMK gets updated only by going through a full (new SAE) 2672c1d255d3SCy Schubert * authentication instead of getting updated during an association for EAP 2673c1d255d3SCy Schubert * authentication. No new full authentication within the PMK expiry shall 2674c1d255d3SCy Schubert * result in a disassociation at the end of the lifetime. 2675c1d255d3SCy Schubert * 2676c1d255d3SCy Schubert * @NL80211_ATTR_PMK_REAUTH_THRESHOLD: Reauthentication threshold time, in 2677c1d255d3SCy Schubert * terms of percentage of %NL80211_ATTR_PMK_LIFETIME 2678c1d255d3SCy Schubert * (u8, dot11RSNAConfigPMKReauthThreshold, 1..100). This is an optional 2679c1d255d3SCy Schubert * parameter configured through %NL80211_CMD_SET_PMKSA. Requests the 2680c1d255d3SCy Schubert * driver to trigger a full authentication roam (without PMKSA caching) 2681c1d255d3SCy Schubert * after the reauthentication threshold time, but before the PMK lifetime 2682c1d255d3SCy Schubert * has expired. 2683c1d255d3SCy Schubert * 2684c1d255d3SCy Schubert * Authentication methods like SAE need to be able to generate a new PMKSA 2685c1d255d3SCy Schubert * entry without having to force a disconnection after the PMK timeout. If 2686c1d255d3SCy Schubert * no roaming occurs between the reauth threshold and PMK expiration, 2687c1d255d3SCy Schubert * disassociation is still forced. 2688c1d255d3SCy Schubert * @NL80211_ATTR_RECEIVE_MULTICAST: multicast flag for the 2689c1d255d3SCy Schubert * %NL80211_CMD_REGISTER_FRAME command, see the description there. 2690c1d255d3SCy Schubert * @NL80211_ATTR_WIPHY_FREQ_OFFSET: offset of the associated 2691c1d255d3SCy Schubert * %NL80211_ATTR_WIPHY_FREQ in positive KHz. Only valid when supplied with 2692c1d255d3SCy Schubert * an %NL80211_ATTR_WIPHY_FREQ_OFFSET. 2693c1d255d3SCy Schubert * @NL80211_ATTR_CENTER_FREQ1_OFFSET: Center frequency offset in KHz for the 2694c1d255d3SCy Schubert * first channel segment specified in %NL80211_ATTR_CENTER_FREQ1. 2695c1d255d3SCy Schubert * @NL80211_ATTR_SCAN_FREQ_KHZ: nested attribute with KHz frequencies 2696c1d255d3SCy Schubert * 2697c1d255d3SCy Schubert * @NL80211_ATTR_HE_6GHZ_CAPABILITY: HE 6 GHz Band Capability element (from 2698c1d255d3SCy Schubert * association request when used with NL80211_CMD_NEW_STATION). 2699c1d255d3SCy Schubert * 2700c1d255d3SCy Schubert * @NL80211_ATTR_FILS_DISCOVERY: Optional parameter to configure FILS 2701c1d255d3SCy Schubert * discovery. It is a nested attribute, see 2702*a90b9d01SCy Schubert * &enum nl80211_fils_discovery_attributes. Userspace should pass an empty 2703*a90b9d01SCy Schubert * nested attribute to disable this feature and delete the templates. 2704c1d255d3SCy Schubert * 2705c1d255d3SCy Schubert * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure 2706c1d255d3SCy Schubert * unsolicited broadcast probe response. It is a nested attribute, see 2707*a90b9d01SCy Schubert * &enum nl80211_unsol_bcast_probe_resp_attributes. Userspace should pass an empty 2708*a90b9d01SCy Schubert * nested attribute to disable this feature and delete the templates. 2709c1d255d3SCy Schubert * 2710c1d255d3SCy Schubert * @NL80211_ATTR_S1G_CAPABILITY: S1G Capability information element (from 2711c1d255d3SCy Schubert * association request when used with NL80211_CMD_NEW_STATION) 2712c1d255d3SCy Schubert * @NL80211_ATTR_S1G_CAPABILITY_MASK: S1G Capability Information element 2713c1d255d3SCy Schubert * override mask. Used with NL80211_ATTR_S1G_CAPABILITY in 2714c1d255d3SCy Schubert * NL80211_CMD_ASSOCIATE or NL80211_CMD_CONNECT. 2715c1d255d3SCy Schubert * 2716c1d255d3SCy Schubert * @NL80211_ATTR_SAE_PWE: Indicates the mechanism(s) allowed for SAE PWE 2717c1d255d3SCy Schubert * derivation in WPA3-Personal networks which are using SAE authentication. 2718c1d255d3SCy Schubert * This is a u8 attribute that encapsulates one of the values from 2719c1d255d3SCy Schubert * &enum nl80211_sae_pwe_mechanism. 2720c1d255d3SCy Schubert * 2721c1d255d3SCy Schubert * @NL80211_ATTR_SAR_SPEC: SAR power limitation specification when 2722c1d255d3SCy Schubert * used with %NL80211_CMD_SET_SAR_SPECS. The message contains fields 2723c1d255d3SCy Schubert * of %nl80211_sar_attrs which specifies the sar type and related 2724c1d255d3SCy Schubert * sar specs. Sar specs contains array of %nl80211_sar_specs_attrs. 2725c1d255d3SCy Schubert * 2726c1d255d3SCy Schubert * @NL80211_ATTR_RECONNECT_REQUESTED: flag attribute, used with deauth and 2727c1d255d3SCy Schubert * disassoc events to indicate that an immediate reconnect to the AP 2728c1d255d3SCy Schubert * is desired. 2729c1d255d3SCy Schubert * 2730*a90b9d01SCy Schubert * @NL80211_ATTR_OBSS_COLOR_BITMAP: bitmap of the u64 BSS colors for the 2731*a90b9d01SCy Schubert * %NL80211_CMD_OBSS_COLOR_COLLISION event. 2732*a90b9d01SCy Schubert * 2733*a90b9d01SCy Schubert * @NL80211_ATTR_COLOR_CHANGE_COUNT: u8 attribute specifying the number of TBTT's 2734*a90b9d01SCy Schubert * until the color switch event. 2735*a90b9d01SCy Schubert * @NL80211_ATTR_COLOR_CHANGE_COLOR: u8 attribute specifying the color that we are 2736*a90b9d01SCy Schubert * switching to 2737*a90b9d01SCy Schubert * @NL80211_ATTR_COLOR_CHANGE_ELEMS: Nested set of attributes containing the IE 2738*a90b9d01SCy Schubert * information for the time while performing a color switch. 2739*a90b9d01SCy Schubert * 2740*a90b9d01SCy Schubert * @NL80211_ATTR_MBSSID_CONFIG: Nested attribute for multiple BSSID 2741*a90b9d01SCy Schubert * advertisements (MBSSID) parameters in AP mode. 2742*a90b9d01SCy Schubert * Kernel uses this attribute to indicate the driver's support for MBSSID 2743*a90b9d01SCy Schubert * and enhanced multi-BSSID advertisements (EMA AP) to the userspace. 2744*a90b9d01SCy Schubert * Userspace should use this attribute to configure per interface MBSSID 2745*a90b9d01SCy Schubert * parameters. 2746*a90b9d01SCy Schubert * See &enum nl80211_mbssid_config_attributes for details. 2747*a90b9d01SCy Schubert * 2748*a90b9d01SCy Schubert * @NL80211_ATTR_MBSSID_ELEMS: Nested parameter to pass multiple BSSID elements. 2749*a90b9d01SCy Schubert * Mandatory parameter for the transmitting interface to enable MBSSID. 2750*a90b9d01SCy Schubert * Optional for the non-transmitting interfaces. 2751*a90b9d01SCy Schubert * 2752*a90b9d01SCy Schubert * @NL80211_ATTR_RADAR_BACKGROUND: Configure dedicated offchannel chain 2753*a90b9d01SCy Schubert * available for radar/CAC detection on some hw. This chain can't be used 2754*a90b9d01SCy Schubert * to transmit or receive frames and it is bounded to a running wdev. 2755*a90b9d01SCy Schubert * Background radar/CAC detection allows to avoid the CAC downtime 2756*a90b9d01SCy Schubert * switching on a different channel during CAC detection on the selected 2757*a90b9d01SCy Schubert * radar channel. 2758*a90b9d01SCy Schubert * 2759*a90b9d01SCy Schubert * @NL80211_ATTR_AP_SETTINGS_FLAGS: u32 attribute contains ap settings flags, 2760*a90b9d01SCy Schubert * enumerated in &enum nl80211_ap_settings_flags. This attribute shall be 2761*a90b9d01SCy Schubert * used with %NL80211_CMD_START_AP request. 2762*a90b9d01SCy Schubert * 2763*a90b9d01SCy Schubert * @NL80211_ATTR_EHT_CAPABILITY: EHT Capability information element (from 2764*a90b9d01SCy Schubert * association request when used with NL80211_CMD_NEW_STATION). Can be set 2765*a90b9d01SCy Schubert * only if %NL80211_STA_FLAG_WME is set. 2766*a90b9d01SCy Schubert * 2767*a90b9d01SCy Schubert * @NL80211_ATTR_MLO_LINK_ID: A (u8) link ID for use with MLO, to be used with 2768*a90b9d01SCy Schubert * various commands that need a link ID to operate. 2769*a90b9d01SCy Schubert * @NL80211_ATTR_MLO_LINKS: A nested array of links, each containing some 2770*a90b9d01SCy Schubert * per-link information and a link ID. 2771*a90b9d01SCy Schubert * @NL80211_ATTR_MLD_ADDR: An MLD address, used with various commands such as 2772*a90b9d01SCy Schubert * authenticate/associate. 2773*a90b9d01SCy Schubert * 2774*a90b9d01SCy Schubert * @NL80211_ATTR_MLO_SUPPORT: Flag attribute to indicate user space supports MLO 2775*a90b9d01SCy Schubert * connection. Used with %NL80211_CMD_CONNECT. If this attribute is not 2776*a90b9d01SCy Schubert * included in NL80211_CMD_CONNECT drivers must not perform MLO connection. 2777*a90b9d01SCy Schubert * 2778*a90b9d01SCy Schubert * @NL80211_ATTR_MAX_NUM_AKM_SUITES: U16 attribute. Indicates maximum number of 2779*a90b9d01SCy Schubert * AKM suites allowed for %NL80211_CMD_CONNECT, %NL80211_CMD_ASSOCIATE and 2780*a90b9d01SCy Schubert * %NL80211_CMD_START_AP in %NL80211_CMD_GET_WIPHY response. If this 2781*a90b9d01SCy Schubert * attribute is not present userspace shall consider maximum number of AKM 2782*a90b9d01SCy Schubert * suites allowed as %NL80211_MAX_NR_AKM_SUITES which is the legacy maximum 2783*a90b9d01SCy Schubert * number prior to the introduction of this attribute. 2784*a90b9d01SCy Schubert * 2785*a90b9d01SCy Schubert * @NL80211_ATTR_EML_CAPABILITY: EML Capability information (u16) 2786*a90b9d01SCy Schubert * @NL80211_ATTR_MLD_CAPA_AND_OPS: MLD Capabilities and Operations (u16) 2787*a90b9d01SCy Schubert * 2788*a90b9d01SCy Schubert * @NL80211_ATTR_TX_HW_TIMESTAMP: Hardware timestamp for TX operation in 2789*a90b9d01SCy Schubert * nanoseconds (u64). This is the device clock timestamp so it will 2790*a90b9d01SCy Schubert * probably reset when the device is stopped or the firmware is reset. 2791*a90b9d01SCy Schubert * When used with %NL80211_CMD_FRAME_TX_STATUS, indicates the frame TX 2792*a90b9d01SCy Schubert * timestamp. When used with %NL80211_CMD_FRAME RX notification, indicates 2793*a90b9d01SCy Schubert * the ack TX timestamp. 2794*a90b9d01SCy Schubert * @NL80211_ATTR_RX_HW_TIMESTAMP: Hardware timestamp for RX operation in 2795*a90b9d01SCy Schubert * nanoseconds (u64). This is the device clock timestamp so it will 2796*a90b9d01SCy Schubert * probably reset when the device is stopped or the firmware is reset. 2797*a90b9d01SCy Schubert * When used with %NL80211_CMD_FRAME_TX_STATUS, indicates the ack RX 2798*a90b9d01SCy Schubert * timestamp. When used with %NL80211_CMD_FRAME RX notification, indicates 2799*a90b9d01SCy Schubert * the incoming frame RX timestamp. 2800*a90b9d01SCy Schubert * @NL80211_ATTR_TD_BITMAP: Transition Disable bitmap, for subsequent 2801*a90b9d01SCy Schubert * (re)associations. 2802*a90b9d01SCy Schubert * 2803*a90b9d01SCy Schubert * @NL80211_ATTR_PUNCT_BITMAP: (u32) Preamble puncturing bitmap, lowest 2804*a90b9d01SCy Schubert * bit corresponds to the lowest 20 MHz channel. Each bit set to 1 2805*a90b9d01SCy Schubert * indicates that the sub-channel is punctured. Higher 16 bits are 2806*a90b9d01SCy Schubert * reserved. 2807*a90b9d01SCy Schubert * 2808*a90b9d01SCy Schubert * @NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS: Maximum number of peers that HW 2809*a90b9d01SCy Schubert * timestamping can be enabled for concurrently (u16), a wiphy attribute. 2810*a90b9d01SCy Schubert * A value of 0xffff indicates setting for all peers (i.e. not specifying 2811*a90b9d01SCy Schubert * an address with %NL80211_CMD_SET_HW_TIMESTAMP) is supported. 2812*a90b9d01SCy Schubert * @NL80211_ATTR_HW_TIMESTAMP_ENABLED: Indicates whether HW timestamping should 2813*a90b9d01SCy Schubert * be enabled or not (flag attribute). 2814*a90b9d01SCy Schubert * 2815*a90b9d01SCy Schubert * @NL80211_ATTR_EMA_RNR_ELEMS: Optional nested attribute for 2816*a90b9d01SCy Schubert * reduced neighbor report (RNR) elements. This attribute can be used 2817*a90b9d01SCy Schubert * only when NL80211_MBSSID_CONFIG_ATTR_EMA is enabled. 2818*a90b9d01SCy Schubert * Userspace is responsible for splitting the RNR into multiple 2819*a90b9d01SCy Schubert * elements such that each element excludes the non-transmitting 2820*a90b9d01SCy Schubert * profiles already included in the MBSSID element 2821*a90b9d01SCy Schubert * (%NL80211_ATTR_MBSSID_ELEMS) at the same index. Each EMA beacon 2822*a90b9d01SCy Schubert * will be generated by adding MBSSID and RNR elements at the same 2823*a90b9d01SCy Schubert * index. If the userspace includes more RNR elements than number of 2824*a90b9d01SCy Schubert * MBSSID elements then these will be added in every EMA beacon. 2825*a90b9d01SCy Schubert * 2826*a90b9d01SCy Schubert * @NL80211_ATTR_MLO_LINK_DISABLED: Flag attribute indicating that the link is 2827*a90b9d01SCy Schubert * disabled. 2828*a90b9d01SCy Schubert * 2829206b73d0SCy Schubert * @NUM_NL80211_ATTR: total number of nl80211_attrs available 2830206b73d0SCy Schubert * @NL80211_ATTR_MAX: highest attribute number currently defined 2831206b73d0SCy Schubert * @__NL80211_ATTR_AFTER_LAST: internal use 2832206b73d0SCy Schubert */ 2833206b73d0SCy Schubert enum nl80211_attrs { 2834206b73d0SCy Schubert /* don't change the order or add anything between, this is ABI! */ 2835206b73d0SCy Schubert NL80211_ATTR_UNSPEC, 2836206b73d0SCy Schubert 2837206b73d0SCy Schubert NL80211_ATTR_WIPHY, 2838206b73d0SCy Schubert NL80211_ATTR_WIPHY_NAME, 2839206b73d0SCy Schubert 2840206b73d0SCy Schubert NL80211_ATTR_IFINDEX, 2841206b73d0SCy Schubert NL80211_ATTR_IFNAME, 2842206b73d0SCy Schubert NL80211_ATTR_IFTYPE, 2843206b73d0SCy Schubert 2844206b73d0SCy Schubert NL80211_ATTR_MAC, 2845206b73d0SCy Schubert 2846206b73d0SCy Schubert NL80211_ATTR_KEY_DATA, 2847206b73d0SCy Schubert NL80211_ATTR_KEY_IDX, 2848206b73d0SCy Schubert NL80211_ATTR_KEY_CIPHER, 2849206b73d0SCy Schubert NL80211_ATTR_KEY_SEQ, 2850206b73d0SCy Schubert NL80211_ATTR_KEY_DEFAULT, 2851206b73d0SCy Schubert 2852206b73d0SCy Schubert NL80211_ATTR_BEACON_INTERVAL, 2853206b73d0SCy Schubert NL80211_ATTR_DTIM_PERIOD, 2854206b73d0SCy Schubert NL80211_ATTR_BEACON_HEAD, 2855206b73d0SCy Schubert NL80211_ATTR_BEACON_TAIL, 2856206b73d0SCy Schubert 2857206b73d0SCy Schubert NL80211_ATTR_STA_AID, 2858206b73d0SCy Schubert NL80211_ATTR_STA_FLAGS, 2859206b73d0SCy Schubert NL80211_ATTR_STA_LISTEN_INTERVAL, 2860206b73d0SCy Schubert NL80211_ATTR_STA_SUPPORTED_RATES, 2861206b73d0SCy Schubert NL80211_ATTR_STA_VLAN, 2862206b73d0SCy Schubert NL80211_ATTR_STA_INFO, 2863206b73d0SCy Schubert 2864206b73d0SCy Schubert NL80211_ATTR_WIPHY_BANDS, 2865206b73d0SCy Schubert 2866206b73d0SCy Schubert NL80211_ATTR_MNTR_FLAGS, 2867206b73d0SCy Schubert 2868206b73d0SCy Schubert NL80211_ATTR_MESH_ID, 2869206b73d0SCy Schubert NL80211_ATTR_STA_PLINK_ACTION, 2870206b73d0SCy Schubert NL80211_ATTR_MPATH_NEXT_HOP, 2871206b73d0SCy Schubert NL80211_ATTR_MPATH_INFO, 2872206b73d0SCy Schubert 2873206b73d0SCy Schubert NL80211_ATTR_BSS_CTS_PROT, 2874206b73d0SCy Schubert NL80211_ATTR_BSS_SHORT_PREAMBLE, 2875206b73d0SCy Schubert NL80211_ATTR_BSS_SHORT_SLOT_TIME, 2876206b73d0SCy Schubert 2877206b73d0SCy Schubert NL80211_ATTR_HT_CAPABILITY, 2878206b73d0SCy Schubert 2879206b73d0SCy Schubert NL80211_ATTR_SUPPORTED_IFTYPES, 2880206b73d0SCy Schubert 2881206b73d0SCy Schubert NL80211_ATTR_REG_ALPHA2, 2882206b73d0SCy Schubert NL80211_ATTR_REG_RULES, 2883206b73d0SCy Schubert 2884206b73d0SCy Schubert NL80211_ATTR_MESH_CONFIG, 2885206b73d0SCy Schubert 2886206b73d0SCy Schubert NL80211_ATTR_BSS_BASIC_RATES, 2887206b73d0SCy Schubert 2888206b73d0SCy Schubert NL80211_ATTR_WIPHY_TXQ_PARAMS, 2889206b73d0SCy Schubert NL80211_ATTR_WIPHY_FREQ, 2890206b73d0SCy Schubert NL80211_ATTR_WIPHY_CHANNEL_TYPE, 2891206b73d0SCy Schubert 2892206b73d0SCy Schubert NL80211_ATTR_KEY_DEFAULT_MGMT, 2893206b73d0SCy Schubert 2894206b73d0SCy Schubert NL80211_ATTR_MGMT_SUBTYPE, 2895206b73d0SCy Schubert NL80211_ATTR_IE, 2896206b73d0SCy Schubert 2897206b73d0SCy Schubert NL80211_ATTR_MAX_NUM_SCAN_SSIDS, 2898206b73d0SCy Schubert 2899206b73d0SCy Schubert NL80211_ATTR_SCAN_FREQUENCIES, 2900206b73d0SCy Schubert NL80211_ATTR_SCAN_SSIDS, 2901206b73d0SCy Schubert NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */ 2902206b73d0SCy Schubert NL80211_ATTR_BSS, 2903206b73d0SCy Schubert 2904206b73d0SCy Schubert NL80211_ATTR_REG_INITIATOR, 2905206b73d0SCy Schubert NL80211_ATTR_REG_TYPE, 2906206b73d0SCy Schubert 2907206b73d0SCy Schubert NL80211_ATTR_SUPPORTED_COMMANDS, 2908206b73d0SCy Schubert 2909206b73d0SCy Schubert NL80211_ATTR_FRAME, 2910206b73d0SCy Schubert NL80211_ATTR_SSID, 2911206b73d0SCy Schubert NL80211_ATTR_AUTH_TYPE, 2912206b73d0SCy Schubert NL80211_ATTR_REASON_CODE, 2913206b73d0SCy Schubert 2914206b73d0SCy Schubert NL80211_ATTR_KEY_TYPE, 2915206b73d0SCy Schubert 2916206b73d0SCy Schubert NL80211_ATTR_MAX_SCAN_IE_LEN, 2917206b73d0SCy Schubert NL80211_ATTR_CIPHER_SUITES, 2918206b73d0SCy Schubert 2919206b73d0SCy Schubert NL80211_ATTR_FREQ_BEFORE, 2920206b73d0SCy Schubert NL80211_ATTR_FREQ_AFTER, 2921206b73d0SCy Schubert 2922206b73d0SCy Schubert NL80211_ATTR_FREQ_FIXED, 2923206b73d0SCy Schubert 2924206b73d0SCy Schubert 2925206b73d0SCy Schubert NL80211_ATTR_WIPHY_RETRY_SHORT, 2926206b73d0SCy Schubert NL80211_ATTR_WIPHY_RETRY_LONG, 2927206b73d0SCy Schubert NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 2928206b73d0SCy Schubert NL80211_ATTR_WIPHY_RTS_THRESHOLD, 2929206b73d0SCy Schubert 2930206b73d0SCy Schubert NL80211_ATTR_TIMED_OUT, 2931206b73d0SCy Schubert 2932206b73d0SCy Schubert NL80211_ATTR_USE_MFP, 2933206b73d0SCy Schubert 2934206b73d0SCy Schubert NL80211_ATTR_STA_FLAGS2, 2935206b73d0SCy Schubert 2936206b73d0SCy Schubert NL80211_ATTR_CONTROL_PORT, 2937206b73d0SCy Schubert 2938206b73d0SCy Schubert NL80211_ATTR_TESTDATA, 2939206b73d0SCy Schubert 2940206b73d0SCy Schubert NL80211_ATTR_PRIVACY, 2941206b73d0SCy Schubert 2942206b73d0SCy Schubert NL80211_ATTR_DISCONNECTED_BY_AP, 2943206b73d0SCy Schubert NL80211_ATTR_STATUS_CODE, 2944206b73d0SCy Schubert 2945206b73d0SCy Schubert NL80211_ATTR_CIPHER_SUITES_PAIRWISE, 2946206b73d0SCy Schubert NL80211_ATTR_CIPHER_SUITE_GROUP, 2947206b73d0SCy Schubert NL80211_ATTR_WPA_VERSIONS, 2948206b73d0SCy Schubert NL80211_ATTR_AKM_SUITES, 2949206b73d0SCy Schubert 2950206b73d0SCy Schubert NL80211_ATTR_REQ_IE, 2951206b73d0SCy Schubert NL80211_ATTR_RESP_IE, 2952206b73d0SCy Schubert 2953206b73d0SCy Schubert NL80211_ATTR_PREV_BSSID, 2954206b73d0SCy Schubert 2955206b73d0SCy Schubert NL80211_ATTR_KEY, 2956206b73d0SCy Schubert NL80211_ATTR_KEYS, 2957206b73d0SCy Schubert 2958206b73d0SCy Schubert NL80211_ATTR_PID, 2959206b73d0SCy Schubert 2960206b73d0SCy Schubert NL80211_ATTR_4ADDR, 2961206b73d0SCy Schubert 2962206b73d0SCy Schubert NL80211_ATTR_SURVEY_INFO, 2963206b73d0SCy Schubert 2964206b73d0SCy Schubert NL80211_ATTR_PMKID, 2965206b73d0SCy Schubert NL80211_ATTR_MAX_NUM_PMKIDS, 2966206b73d0SCy Schubert 2967206b73d0SCy Schubert NL80211_ATTR_DURATION, 2968206b73d0SCy Schubert 2969206b73d0SCy Schubert NL80211_ATTR_COOKIE, 2970206b73d0SCy Schubert 2971206b73d0SCy Schubert NL80211_ATTR_WIPHY_COVERAGE_CLASS, 2972206b73d0SCy Schubert 2973206b73d0SCy Schubert NL80211_ATTR_TX_RATES, 2974206b73d0SCy Schubert 2975206b73d0SCy Schubert NL80211_ATTR_FRAME_MATCH, 2976206b73d0SCy Schubert 2977206b73d0SCy Schubert NL80211_ATTR_ACK, 2978206b73d0SCy Schubert 2979206b73d0SCy Schubert NL80211_ATTR_PS_STATE, 2980206b73d0SCy Schubert 2981206b73d0SCy Schubert NL80211_ATTR_CQM, 2982206b73d0SCy Schubert 2983206b73d0SCy Schubert NL80211_ATTR_LOCAL_STATE_CHANGE, 2984206b73d0SCy Schubert 2985206b73d0SCy Schubert NL80211_ATTR_AP_ISOLATE, 2986206b73d0SCy Schubert 2987206b73d0SCy Schubert NL80211_ATTR_WIPHY_TX_POWER_SETTING, 2988206b73d0SCy Schubert NL80211_ATTR_WIPHY_TX_POWER_LEVEL, 2989206b73d0SCy Schubert 2990206b73d0SCy Schubert NL80211_ATTR_TX_FRAME_TYPES, 2991206b73d0SCy Schubert NL80211_ATTR_RX_FRAME_TYPES, 2992206b73d0SCy Schubert NL80211_ATTR_FRAME_TYPE, 2993206b73d0SCy Schubert 2994206b73d0SCy Schubert NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 2995206b73d0SCy Schubert NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, 2996206b73d0SCy Schubert 2997206b73d0SCy Schubert NL80211_ATTR_SUPPORT_IBSS_RSN, 2998206b73d0SCy Schubert 2999206b73d0SCy Schubert NL80211_ATTR_WIPHY_ANTENNA_TX, 3000206b73d0SCy Schubert NL80211_ATTR_WIPHY_ANTENNA_RX, 3001206b73d0SCy Schubert 3002206b73d0SCy Schubert NL80211_ATTR_MCAST_RATE, 3003206b73d0SCy Schubert 3004206b73d0SCy Schubert NL80211_ATTR_OFFCHANNEL_TX_OK, 3005206b73d0SCy Schubert 3006206b73d0SCy Schubert NL80211_ATTR_BSS_HT_OPMODE, 3007206b73d0SCy Schubert 3008206b73d0SCy Schubert NL80211_ATTR_KEY_DEFAULT_TYPES, 3009206b73d0SCy Schubert 3010206b73d0SCy Schubert NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION, 3011206b73d0SCy Schubert 3012206b73d0SCy Schubert NL80211_ATTR_MESH_SETUP, 3013206b73d0SCy Schubert 3014206b73d0SCy Schubert NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, 3015206b73d0SCy Schubert NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, 3016206b73d0SCy Schubert 3017206b73d0SCy Schubert NL80211_ATTR_SUPPORT_MESH_AUTH, 3018206b73d0SCy Schubert NL80211_ATTR_STA_PLINK_STATE, 3019206b73d0SCy Schubert 3020206b73d0SCy Schubert NL80211_ATTR_WOWLAN_TRIGGERS, 3021206b73d0SCy Schubert NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, 3022206b73d0SCy Schubert 3023206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_INTERVAL, 3024206b73d0SCy Schubert 3025206b73d0SCy Schubert NL80211_ATTR_INTERFACE_COMBINATIONS, 3026206b73d0SCy Schubert NL80211_ATTR_SOFTWARE_IFTYPES, 3027206b73d0SCy Schubert 3028206b73d0SCy Schubert NL80211_ATTR_REKEY_DATA, 3029206b73d0SCy Schubert 3030206b73d0SCy Schubert NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, 3031206b73d0SCy Schubert NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN, 3032206b73d0SCy Schubert 3033206b73d0SCy Schubert NL80211_ATTR_SCAN_SUPP_RATES, 3034206b73d0SCy Schubert 3035206b73d0SCy Schubert NL80211_ATTR_HIDDEN_SSID, 3036206b73d0SCy Schubert 3037206b73d0SCy Schubert NL80211_ATTR_IE_PROBE_RESP, 3038206b73d0SCy Schubert NL80211_ATTR_IE_ASSOC_RESP, 3039206b73d0SCy Schubert 3040206b73d0SCy Schubert NL80211_ATTR_STA_WME, 3041206b73d0SCy Schubert NL80211_ATTR_SUPPORT_AP_UAPSD, 3042206b73d0SCy Schubert 3043206b73d0SCy Schubert NL80211_ATTR_ROAM_SUPPORT, 3044206b73d0SCy Schubert 3045206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_MATCH, 3046206b73d0SCy Schubert NL80211_ATTR_MAX_MATCH_SETS, 3047206b73d0SCy Schubert 3048206b73d0SCy Schubert NL80211_ATTR_PMKSA_CANDIDATE, 3049206b73d0SCy Schubert 3050206b73d0SCy Schubert NL80211_ATTR_TX_NO_CCK_RATE, 3051206b73d0SCy Schubert 3052206b73d0SCy Schubert NL80211_ATTR_TDLS_ACTION, 3053206b73d0SCy Schubert NL80211_ATTR_TDLS_DIALOG_TOKEN, 3054206b73d0SCy Schubert NL80211_ATTR_TDLS_OPERATION, 3055206b73d0SCy Schubert NL80211_ATTR_TDLS_SUPPORT, 3056206b73d0SCy Schubert NL80211_ATTR_TDLS_EXTERNAL_SETUP, 3057206b73d0SCy Schubert 3058206b73d0SCy Schubert NL80211_ATTR_DEVICE_AP_SME, 3059206b73d0SCy Schubert 3060206b73d0SCy Schubert NL80211_ATTR_DONT_WAIT_FOR_ACK, 3061206b73d0SCy Schubert 3062206b73d0SCy Schubert NL80211_ATTR_FEATURE_FLAGS, 3063206b73d0SCy Schubert 3064206b73d0SCy Schubert NL80211_ATTR_PROBE_RESP_OFFLOAD, 3065206b73d0SCy Schubert 3066206b73d0SCy Schubert NL80211_ATTR_PROBE_RESP, 3067206b73d0SCy Schubert 3068206b73d0SCy Schubert NL80211_ATTR_DFS_REGION, 3069206b73d0SCy Schubert 3070206b73d0SCy Schubert NL80211_ATTR_DISABLE_HT, 3071206b73d0SCy Schubert NL80211_ATTR_HT_CAPABILITY_MASK, 3072206b73d0SCy Schubert 3073206b73d0SCy Schubert NL80211_ATTR_NOACK_MAP, 3074206b73d0SCy Schubert 3075206b73d0SCy Schubert NL80211_ATTR_INACTIVITY_TIMEOUT, 3076206b73d0SCy Schubert 3077206b73d0SCy Schubert NL80211_ATTR_RX_SIGNAL_DBM, 3078206b73d0SCy Schubert 3079206b73d0SCy Schubert NL80211_ATTR_BG_SCAN_PERIOD, 3080206b73d0SCy Schubert 3081206b73d0SCy Schubert NL80211_ATTR_WDEV, 3082206b73d0SCy Schubert 3083206b73d0SCy Schubert NL80211_ATTR_USER_REG_HINT_TYPE, 3084206b73d0SCy Schubert 3085206b73d0SCy Schubert NL80211_ATTR_CONN_FAILED_REASON, 3086206b73d0SCy Schubert 3087206b73d0SCy Schubert NL80211_ATTR_AUTH_DATA, 3088206b73d0SCy Schubert 3089206b73d0SCy Schubert NL80211_ATTR_VHT_CAPABILITY, 3090206b73d0SCy Schubert 3091206b73d0SCy Schubert NL80211_ATTR_SCAN_FLAGS, 3092206b73d0SCy Schubert 3093206b73d0SCy Schubert NL80211_ATTR_CHANNEL_WIDTH, 3094206b73d0SCy Schubert NL80211_ATTR_CENTER_FREQ1, 3095206b73d0SCy Schubert NL80211_ATTR_CENTER_FREQ2, 3096206b73d0SCy Schubert 3097206b73d0SCy Schubert NL80211_ATTR_P2P_CTWINDOW, 3098206b73d0SCy Schubert NL80211_ATTR_P2P_OPPPS, 3099206b73d0SCy Schubert 3100206b73d0SCy Schubert NL80211_ATTR_LOCAL_MESH_POWER_MODE, 3101206b73d0SCy Schubert 3102206b73d0SCy Schubert NL80211_ATTR_ACL_POLICY, 3103206b73d0SCy Schubert 3104206b73d0SCy Schubert NL80211_ATTR_MAC_ADDRS, 3105206b73d0SCy Schubert 3106206b73d0SCy Schubert NL80211_ATTR_MAC_ACL_MAX, 3107206b73d0SCy Schubert 3108206b73d0SCy Schubert NL80211_ATTR_RADAR_EVENT, 3109206b73d0SCy Schubert 3110206b73d0SCy Schubert NL80211_ATTR_EXT_CAPA, 3111206b73d0SCy Schubert NL80211_ATTR_EXT_CAPA_MASK, 3112206b73d0SCy Schubert 3113206b73d0SCy Schubert NL80211_ATTR_STA_CAPABILITY, 3114206b73d0SCy Schubert NL80211_ATTR_STA_EXT_CAPABILITY, 3115206b73d0SCy Schubert 3116206b73d0SCy Schubert NL80211_ATTR_PROTOCOL_FEATURES, 3117206b73d0SCy Schubert NL80211_ATTR_SPLIT_WIPHY_DUMP, 3118206b73d0SCy Schubert 3119206b73d0SCy Schubert NL80211_ATTR_DISABLE_VHT, 3120206b73d0SCy Schubert NL80211_ATTR_VHT_CAPABILITY_MASK, 3121206b73d0SCy Schubert 3122206b73d0SCy Schubert NL80211_ATTR_MDID, 3123206b73d0SCy Schubert NL80211_ATTR_IE_RIC, 3124206b73d0SCy Schubert 3125206b73d0SCy Schubert NL80211_ATTR_CRIT_PROT_ID, 3126206b73d0SCy Schubert NL80211_ATTR_MAX_CRIT_PROT_DURATION, 3127206b73d0SCy Schubert 3128206b73d0SCy Schubert NL80211_ATTR_PEER_AID, 3129206b73d0SCy Schubert 3130206b73d0SCy Schubert NL80211_ATTR_COALESCE_RULE, 3131206b73d0SCy Schubert 3132206b73d0SCy Schubert NL80211_ATTR_CH_SWITCH_COUNT, 3133206b73d0SCy Schubert NL80211_ATTR_CH_SWITCH_BLOCK_TX, 3134206b73d0SCy Schubert NL80211_ATTR_CSA_IES, 3135c1d255d3SCy Schubert NL80211_ATTR_CNTDWN_OFFS_BEACON, 3136c1d255d3SCy Schubert NL80211_ATTR_CNTDWN_OFFS_PRESP, 3137206b73d0SCy Schubert 3138206b73d0SCy Schubert NL80211_ATTR_RXMGMT_FLAGS, 3139206b73d0SCy Schubert 3140206b73d0SCy Schubert NL80211_ATTR_STA_SUPPORTED_CHANNELS, 3141206b73d0SCy Schubert 3142206b73d0SCy Schubert NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES, 3143206b73d0SCy Schubert 3144206b73d0SCy Schubert NL80211_ATTR_HANDLE_DFS, 3145206b73d0SCy Schubert 3146206b73d0SCy Schubert NL80211_ATTR_SUPPORT_5_MHZ, 3147206b73d0SCy Schubert NL80211_ATTR_SUPPORT_10_MHZ, 3148206b73d0SCy Schubert 3149206b73d0SCy Schubert NL80211_ATTR_OPMODE_NOTIF, 3150206b73d0SCy Schubert 3151206b73d0SCy Schubert NL80211_ATTR_VENDOR_ID, 3152206b73d0SCy Schubert NL80211_ATTR_VENDOR_SUBCMD, 3153206b73d0SCy Schubert NL80211_ATTR_VENDOR_DATA, 3154206b73d0SCy Schubert NL80211_ATTR_VENDOR_EVENTS, 3155206b73d0SCy Schubert 3156206b73d0SCy Schubert NL80211_ATTR_QOS_MAP, 3157206b73d0SCy Schubert 3158206b73d0SCy Schubert NL80211_ATTR_MAC_HINT, 3159206b73d0SCy Schubert NL80211_ATTR_WIPHY_FREQ_HINT, 3160206b73d0SCy Schubert 3161206b73d0SCy Schubert NL80211_ATTR_MAX_AP_ASSOC_STA, 3162206b73d0SCy Schubert 3163206b73d0SCy Schubert NL80211_ATTR_TDLS_PEER_CAPABILITY, 3164206b73d0SCy Schubert 3165206b73d0SCy Schubert NL80211_ATTR_SOCKET_OWNER, 3166206b73d0SCy Schubert 3167206b73d0SCy Schubert NL80211_ATTR_CSA_C_OFFSETS_TX, 3168206b73d0SCy Schubert NL80211_ATTR_MAX_CSA_COUNTERS, 3169206b73d0SCy Schubert 3170206b73d0SCy Schubert NL80211_ATTR_TDLS_INITIATOR, 3171206b73d0SCy Schubert 3172206b73d0SCy Schubert NL80211_ATTR_USE_RRM, 3173206b73d0SCy Schubert 3174206b73d0SCy Schubert NL80211_ATTR_WIPHY_DYN_ACK, 3175206b73d0SCy Schubert 3176206b73d0SCy Schubert NL80211_ATTR_TSID, 3177206b73d0SCy Schubert NL80211_ATTR_USER_PRIO, 3178206b73d0SCy Schubert NL80211_ATTR_ADMITTED_TIME, 3179206b73d0SCy Schubert 3180206b73d0SCy Schubert NL80211_ATTR_SMPS_MODE, 3181206b73d0SCy Schubert 3182206b73d0SCy Schubert NL80211_ATTR_OPER_CLASS, 3183206b73d0SCy Schubert 3184206b73d0SCy Schubert NL80211_ATTR_MAC_MASK, 3185206b73d0SCy Schubert 3186206b73d0SCy Schubert NL80211_ATTR_WIPHY_SELF_MANAGED_REG, 3187206b73d0SCy Schubert 3188206b73d0SCy Schubert NL80211_ATTR_EXT_FEATURES, 3189206b73d0SCy Schubert 3190206b73d0SCy Schubert NL80211_ATTR_SURVEY_RADIO_STATS, 3191206b73d0SCy Schubert 3192206b73d0SCy Schubert NL80211_ATTR_NETNS_FD, 3193206b73d0SCy Schubert 3194206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_DELAY, 3195206b73d0SCy Schubert 3196206b73d0SCy Schubert NL80211_ATTR_REG_INDOOR, 3197206b73d0SCy Schubert 3198206b73d0SCy Schubert NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS, 3199206b73d0SCy Schubert NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL, 3200206b73d0SCy Schubert NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, 3201206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_PLANS, 3202206b73d0SCy Schubert 3203206b73d0SCy Schubert NL80211_ATTR_PBSS, 3204206b73d0SCy Schubert 3205206b73d0SCy Schubert NL80211_ATTR_BSS_SELECT, 3206206b73d0SCy Schubert 3207206b73d0SCy Schubert NL80211_ATTR_STA_SUPPORT_P2P_PS, 3208206b73d0SCy Schubert 3209206b73d0SCy Schubert NL80211_ATTR_PAD, 3210206b73d0SCy Schubert 3211206b73d0SCy Schubert NL80211_ATTR_IFTYPE_EXT_CAPA, 3212206b73d0SCy Schubert 3213206b73d0SCy Schubert NL80211_ATTR_MU_MIMO_GROUP_DATA, 3214206b73d0SCy Schubert NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR, 3215206b73d0SCy Schubert 3216206b73d0SCy Schubert NL80211_ATTR_SCAN_START_TIME_TSF, 3217206b73d0SCy Schubert NL80211_ATTR_SCAN_START_TIME_TSF_BSSID, 3218206b73d0SCy Schubert NL80211_ATTR_MEASUREMENT_DURATION, 3219206b73d0SCy Schubert NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY, 3220206b73d0SCy Schubert 3221206b73d0SCy Schubert NL80211_ATTR_MESH_PEER_AID, 3222206b73d0SCy Schubert 3223206b73d0SCy Schubert NL80211_ATTR_NAN_MASTER_PREF, 3224206b73d0SCy Schubert NL80211_ATTR_BANDS, 3225206b73d0SCy Schubert NL80211_ATTR_NAN_FUNC, 3226206b73d0SCy Schubert NL80211_ATTR_NAN_MATCH, 3227206b73d0SCy Schubert 3228206b73d0SCy Schubert NL80211_ATTR_FILS_KEK, 3229206b73d0SCy Schubert NL80211_ATTR_FILS_NONCES, 3230206b73d0SCy Schubert 3231206b73d0SCy Schubert NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED, 3232206b73d0SCy Schubert 3233206b73d0SCy Schubert NL80211_ATTR_BSSID, 3234206b73d0SCy Schubert 3235206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, 3236206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, 3237206b73d0SCy Schubert 3238206b73d0SCy Schubert NL80211_ATTR_TIMEOUT_REASON, 3239206b73d0SCy Schubert 3240206b73d0SCy Schubert NL80211_ATTR_FILS_ERP_USERNAME, 3241206b73d0SCy Schubert NL80211_ATTR_FILS_ERP_REALM, 3242206b73d0SCy Schubert NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM, 3243206b73d0SCy Schubert NL80211_ATTR_FILS_ERP_RRK, 3244206b73d0SCy Schubert NL80211_ATTR_FILS_CACHE_ID, 3245206b73d0SCy Schubert 3246206b73d0SCy Schubert NL80211_ATTR_PMK, 3247206b73d0SCy Schubert 3248206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_MULTI, 3249206b73d0SCy Schubert NL80211_ATTR_SCHED_SCAN_MAX_REQS, 3250206b73d0SCy Schubert 3251206b73d0SCy Schubert NL80211_ATTR_WANT_1X_4WAY_HS, 3252206b73d0SCy Schubert NL80211_ATTR_PMKR0_NAME, 3253206b73d0SCy Schubert NL80211_ATTR_PORT_AUTHORIZED, 3254206b73d0SCy Schubert 3255206b73d0SCy Schubert NL80211_ATTR_EXTERNAL_AUTH_ACTION, 3256206b73d0SCy Schubert NL80211_ATTR_EXTERNAL_AUTH_SUPPORT, 3257206b73d0SCy Schubert 3258206b73d0SCy Schubert NL80211_ATTR_NSS, 3259206b73d0SCy Schubert NL80211_ATTR_ACK_SIGNAL, 3260206b73d0SCy Schubert 3261206b73d0SCy Schubert NL80211_ATTR_CONTROL_PORT_OVER_NL80211, 3262206b73d0SCy Schubert 3263206b73d0SCy Schubert NL80211_ATTR_TXQ_STATS, 3264206b73d0SCy Schubert NL80211_ATTR_TXQ_LIMIT, 3265206b73d0SCy Schubert NL80211_ATTR_TXQ_MEMORY_LIMIT, 3266206b73d0SCy Schubert NL80211_ATTR_TXQ_QUANTUM, 3267206b73d0SCy Schubert 3268206b73d0SCy Schubert NL80211_ATTR_HE_CAPABILITY, 3269206b73d0SCy Schubert 3270206b73d0SCy Schubert NL80211_ATTR_FTM_RESPONDER, 3271206b73d0SCy Schubert 3272206b73d0SCy Schubert NL80211_ATTR_FTM_RESPONDER_STATS, 3273206b73d0SCy Schubert 3274206b73d0SCy Schubert NL80211_ATTR_TIMEOUT, 3275206b73d0SCy Schubert 3276206b73d0SCy Schubert NL80211_ATTR_PEER_MEASUREMENTS, 3277206b73d0SCy Schubert 3278206b73d0SCy Schubert NL80211_ATTR_AIRTIME_WEIGHT, 3279206b73d0SCy Schubert NL80211_ATTR_STA_TX_POWER_SETTING, 3280206b73d0SCy Schubert NL80211_ATTR_STA_TX_POWER, 3281206b73d0SCy Schubert 3282c1d255d3SCy Schubert NL80211_ATTR_SAE_PASSWORD, 3283c1d255d3SCy Schubert 3284c1d255d3SCy Schubert NL80211_ATTR_TWT_RESPONDER, 3285c1d255d3SCy Schubert 3286c1d255d3SCy Schubert NL80211_ATTR_HE_OBSS_PD, 3287c1d255d3SCy Schubert 3288c1d255d3SCy Schubert NL80211_ATTR_WIPHY_EDMG_CHANNELS, 3289c1d255d3SCy Schubert NL80211_ATTR_WIPHY_EDMG_BW_CONFIG, 3290c1d255d3SCy Schubert 3291c1d255d3SCy Schubert NL80211_ATTR_VLAN_ID, 3292c1d255d3SCy Schubert 3293c1d255d3SCy Schubert NL80211_ATTR_HE_BSS_COLOR, 3294c1d255d3SCy Schubert 3295c1d255d3SCy Schubert NL80211_ATTR_IFTYPE_AKM_SUITES, 3296c1d255d3SCy Schubert 3297c1d255d3SCy Schubert NL80211_ATTR_TID_CONFIG, 3298c1d255d3SCy Schubert 3299c1d255d3SCy Schubert NL80211_ATTR_CONTROL_PORT_NO_PREAUTH, 3300c1d255d3SCy Schubert 3301c1d255d3SCy Schubert NL80211_ATTR_PMK_LIFETIME, 3302c1d255d3SCy Schubert NL80211_ATTR_PMK_REAUTH_THRESHOLD, 3303c1d255d3SCy Schubert 3304c1d255d3SCy Schubert NL80211_ATTR_RECEIVE_MULTICAST, 3305c1d255d3SCy Schubert NL80211_ATTR_WIPHY_FREQ_OFFSET, 3306c1d255d3SCy Schubert NL80211_ATTR_CENTER_FREQ1_OFFSET, 3307c1d255d3SCy Schubert NL80211_ATTR_SCAN_FREQ_KHZ, 3308c1d255d3SCy Schubert 3309c1d255d3SCy Schubert NL80211_ATTR_HE_6GHZ_CAPABILITY, 3310c1d255d3SCy Schubert 3311c1d255d3SCy Schubert NL80211_ATTR_FILS_DISCOVERY, 3312c1d255d3SCy Schubert 3313c1d255d3SCy Schubert NL80211_ATTR_UNSOL_BCAST_PROBE_RESP, 3314c1d255d3SCy Schubert 3315c1d255d3SCy Schubert NL80211_ATTR_S1G_CAPABILITY, 3316c1d255d3SCy Schubert NL80211_ATTR_S1G_CAPABILITY_MASK, 3317c1d255d3SCy Schubert 3318c1d255d3SCy Schubert NL80211_ATTR_SAE_PWE, 3319c1d255d3SCy Schubert 3320c1d255d3SCy Schubert NL80211_ATTR_RECONNECT_REQUESTED, 3321c1d255d3SCy Schubert 3322c1d255d3SCy Schubert NL80211_ATTR_SAR_SPEC, 3323c1d255d3SCy Schubert 3324c1d255d3SCy Schubert NL80211_ATTR_DISABLE_HE, 3325c1d255d3SCy Schubert 3326*a90b9d01SCy Schubert NL80211_ATTR_OBSS_COLOR_BITMAP, 3327*a90b9d01SCy Schubert 3328*a90b9d01SCy Schubert NL80211_ATTR_COLOR_CHANGE_COUNT, 3329*a90b9d01SCy Schubert NL80211_ATTR_COLOR_CHANGE_COLOR, 3330*a90b9d01SCy Schubert NL80211_ATTR_COLOR_CHANGE_ELEMS, 3331*a90b9d01SCy Schubert 3332*a90b9d01SCy Schubert NL80211_ATTR_MBSSID_CONFIG, 3333*a90b9d01SCy Schubert NL80211_ATTR_MBSSID_ELEMS, 3334*a90b9d01SCy Schubert 3335*a90b9d01SCy Schubert NL80211_ATTR_RADAR_BACKGROUND, 3336*a90b9d01SCy Schubert 3337*a90b9d01SCy Schubert NL80211_ATTR_AP_SETTINGS_FLAGS, 3338*a90b9d01SCy Schubert 3339*a90b9d01SCy Schubert NL80211_ATTR_EHT_CAPABILITY, 3340*a90b9d01SCy Schubert 3341*a90b9d01SCy Schubert NL80211_ATTR_DISABLE_EHT, 3342*a90b9d01SCy Schubert 3343*a90b9d01SCy Schubert NL80211_ATTR_MLO_LINKS, 3344*a90b9d01SCy Schubert NL80211_ATTR_MLO_LINK_ID, 3345*a90b9d01SCy Schubert NL80211_ATTR_MLD_ADDR, 3346*a90b9d01SCy Schubert 3347*a90b9d01SCy Schubert NL80211_ATTR_MLO_SUPPORT, 3348*a90b9d01SCy Schubert 3349*a90b9d01SCy Schubert NL80211_ATTR_MAX_NUM_AKM_SUITES, 3350*a90b9d01SCy Schubert 3351*a90b9d01SCy Schubert NL80211_ATTR_EML_CAPABILITY, 3352*a90b9d01SCy Schubert NL80211_ATTR_MLD_CAPA_AND_OPS, 3353*a90b9d01SCy Schubert 3354*a90b9d01SCy Schubert NL80211_ATTR_TX_HW_TIMESTAMP, 3355*a90b9d01SCy Schubert NL80211_ATTR_RX_HW_TIMESTAMP, 3356*a90b9d01SCy Schubert NL80211_ATTR_TD_BITMAP, 3357*a90b9d01SCy Schubert 3358*a90b9d01SCy Schubert NL80211_ATTR_PUNCT_BITMAP, 3359*a90b9d01SCy Schubert 3360*a90b9d01SCy Schubert NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS, 3361*a90b9d01SCy Schubert NL80211_ATTR_HW_TIMESTAMP_ENABLED, 3362*a90b9d01SCy Schubert 3363*a90b9d01SCy Schubert NL80211_ATTR_EMA_RNR_ELEMS, 3364*a90b9d01SCy Schubert 3365*a90b9d01SCy Schubert NL80211_ATTR_MLO_LINK_DISABLED, 3366*a90b9d01SCy Schubert 3367206b73d0SCy Schubert /* add attributes here, update the policy in nl80211.c */ 3368206b73d0SCy Schubert 3369206b73d0SCy Schubert __NL80211_ATTR_AFTER_LAST, 3370206b73d0SCy Schubert NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST, 3371206b73d0SCy Schubert NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 3372206b73d0SCy Schubert }; 3373206b73d0SCy Schubert 3374206b73d0SCy Schubert /* source-level API compatibility */ 3375206b73d0SCy Schubert #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION 3376206b73d0SCy Schubert #define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG 3377206b73d0SCy Schubert #define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER 3378206b73d0SCy Schubert #define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA 3379c1d255d3SCy Schubert #define NL80211_ATTR_CSA_C_OFF_BEACON NL80211_ATTR_CNTDWN_OFFS_BEACON 3380c1d255d3SCy Schubert #define NL80211_ATTR_CSA_C_OFF_PRESP NL80211_ATTR_CNTDWN_OFFS_PRESP 3381206b73d0SCy Schubert 3382206b73d0SCy Schubert /* 3383206b73d0SCy Schubert * Allow user space programs to use #ifdef on new attributes by defining them 3384206b73d0SCy Schubert * here 3385206b73d0SCy Schubert */ 3386206b73d0SCy Schubert #define NL80211_CMD_CONNECT NL80211_CMD_CONNECT 3387206b73d0SCy Schubert #define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY 3388206b73d0SCy Schubert #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES 3389206b73d0SCy Schubert #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS 3390206b73d0SCy Schubert #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ 3391206b73d0SCy Schubert #define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE 3392206b73d0SCy Schubert #define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE 3393206b73d0SCy Schubert #define NL80211_ATTR_IE NL80211_ATTR_IE 3394206b73d0SCy Schubert #define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR 3395206b73d0SCy Schubert #define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE 3396206b73d0SCy Schubert #define NL80211_ATTR_FRAME NL80211_ATTR_FRAME 3397206b73d0SCy Schubert #define NL80211_ATTR_SSID NL80211_ATTR_SSID 3398206b73d0SCy Schubert #define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE 3399206b73d0SCy Schubert #define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE 3400206b73d0SCy Schubert #define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE 3401206b73d0SCy Schubert #define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP 3402206b73d0SCy Schubert #define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS 3403206b73d0SCy Schubert #define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES 3404206b73d0SCy Schubert #define NL80211_ATTR_KEY NL80211_ATTR_KEY 3405206b73d0SCy Schubert #define NL80211_ATTR_KEYS NL80211_ATTR_KEYS 3406206b73d0SCy Schubert #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 3407206b73d0SCy Schubert 3408206b73d0SCy Schubert #define NL80211_WIPHY_NAME_MAXLEN 64 3409206b73d0SCy Schubert 3410206b73d0SCy Schubert #define NL80211_MAX_SUPP_RATES 32 3411206b73d0SCy Schubert #define NL80211_MAX_SUPP_HT_RATES 77 3412206b73d0SCy Schubert #define NL80211_MAX_SUPP_REG_RULES 128 3413206b73d0SCy Schubert #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 3414206b73d0SCy Schubert #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 3415206b73d0SCy Schubert #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 3416206b73d0SCy Schubert #define NL80211_HT_CAPABILITY_LEN 26 3417206b73d0SCy Schubert #define NL80211_VHT_CAPABILITY_LEN 12 3418206b73d0SCy Schubert #define NL80211_HE_MIN_CAPABILITY_LEN 16 3419c1d255d3SCy Schubert #define NL80211_HE_MAX_CAPABILITY_LEN 54 3420206b73d0SCy Schubert #define NL80211_MAX_NR_CIPHER_SUITES 5 3421*a90b9d01SCy Schubert 3422*a90b9d01SCy Schubert /* 3423*a90b9d01SCy Schubert * NL80211_MAX_NR_AKM_SUITES is obsolete when %NL80211_ATTR_MAX_NUM_AKM_SUITES 3424*a90b9d01SCy Schubert * present in %NL80211_CMD_GET_WIPHY response. 3425*a90b9d01SCy Schubert */ 3426206b73d0SCy Schubert #define NL80211_MAX_NR_AKM_SUITES 2 3427*a90b9d01SCy Schubert #define NL80211_EHT_MIN_CAPABILITY_LEN 13 3428*a90b9d01SCy Schubert #define NL80211_EHT_MAX_CAPABILITY_LEN 51 3429206b73d0SCy Schubert 3430206b73d0SCy Schubert #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 3431206b73d0SCy Schubert 3432206b73d0SCy Schubert /* default RSSI threshold for scan results if none specified. */ 3433206b73d0SCy Schubert #define NL80211_SCAN_RSSI_THOLD_OFF -300 3434206b73d0SCy Schubert 3435206b73d0SCy Schubert #define NL80211_CQM_TXE_MAX_INTVL 1800 3436206b73d0SCy Schubert 3437206b73d0SCy Schubert /** 3438206b73d0SCy Schubert * enum nl80211_iftype - (virtual) interface types 3439206b73d0SCy Schubert * 3440206b73d0SCy Schubert * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides 3441206b73d0SCy Schubert * @NL80211_IFTYPE_ADHOC: independent BSS member 3442206b73d0SCy Schubert * @NL80211_IFTYPE_STATION: managed BSS member 3443206b73d0SCy Schubert * @NL80211_IFTYPE_AP: access point 3444206b73d0SCy Schubert * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces 3445206b73d0SCy Schubert * are a bit special in that they must always be tied to a pre-existing 3446206b73d0SCy Schubert * AP type interface. 3447206b73d0SCy Schubert * @NL80211_IFTYPE_WDS: wireless distribution interface 3448206b73d0SCy Schubert * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames 3449206b73d0SCy Schubert * @NL80211_IFTYPE_MESH_POINT: mesh point 3450206b73d0SCy Schubert * @NL80211_IFTYPE_P2P_CLIENT: P2P client 3451206b73d0SCy Schubert * @NL80211_IFTYPE_P2P_GO: P2P group owner 3452206b73d0SCy Schubert * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev 3453206b73d0SCy Schubert * and therefore can't be created in the normal ways, use the 3454206b73d0SCy Schubert * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE 3455206b73d0SCy Schubert * commands to create and destroy one 3456*a90b9d01SCy Schubert * @NL80211_IFTYPE_OCB: Outside Context of a BSS 3457206b73d0SCy Schubert * This mode corresponds to the MIB variable dot11OCBActivated=true 3458206b73d0SCy Schubert * @NL80211_IFTYPE_NAN: NAN device interface type (not a netdev) 3459206b73d0SCy Schubert * @NL80211_IFTYPE_MAX: highest interface type number currently defined 3460206b73d0SCy Schubert * @NUM_NL80211_IFTYPES: number of defined interface types 3461206b73d0SCy Schubert * 3462206b73d0SCy Schubert * These values are used with the %NL80211_ATTR_IFTYPE 3463206b73d0SCy Schubert * to set the type of an interface. 3464206b73d0SCy Schubert * 3465206b73d0SCy Schubert */ 3466206b73d0SCy Schubert enum nl80211_iftype { 3467206b73d0SCy Schubert NL80211_IFTYPE_UNSPECIFIED, 3468206b73d0SCy Schubert NL80211_IFTYPE_ADHOC, 3469206b73d0SCy Schubert NL80211_IFTYPE_STATION, 3470206b73d0SCy Schubert NL80211_IFTYPE_AP, 3471206b73d0SCy Schubert NL80211_IFTYPE_AP_VLAN, 3472206b73d0SCy Schubert NL80211_IFTYPE_WDS, 3473206b73d0SCy Schubert NL80211_IFTYPE_MONITOR, 3474206b73d0SCy Schubert NL80211_IFTYPE_MESH_POINT, 3475206b73d0SCy Schubert NL80211_IFTYPE_P2P_CLIENT, 3476206b73d0SCy Schubert NL80211_IFTYPE_P2P_GO, 3477206b73d0SCy Schubert NL80211_IFTYPE_P2P_DEVICE, 3478206b73d0SCy Schubert NL80211_IFTYPE_OCB, 3479206b73d0SCy Schubert NL80211_IFTYPE_NAN, 3480206b73d0SCy Schubert 3481206b73d0SCy Schubert /* keep last */ 3482206b73d0SCy Schubert NUM_NL80211_IFTYPES, 3483206b73d0SCy Schubert NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1 3484206b73d0SCy Schubert }; 3485206b73d0SCy Schubert 3486206b73d0SCy Schubert /** 3487206b73d0SCy Schubert * enum nl80211_sta_flags - station flags 3488206b73d0SCy Schubert * 3489206b73d0SCy Schubert * Station flags. When a station is added to an AP interface, it is 3490206b73d0SCy Schubert * assumed to be already associated (and hence authenticated.) 3491206b73d0SCy Schubert * 3492206b73d0SCy Schubert * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved 3493206b73d0SCy Schubert * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) 3494206b73d0SCy Schubert * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames 3495206b73d0SCy Schubert * with short barker preamble 3496206b73d0SCy Schubert * @NL80211_STA_FLAG_WME: station is WME/QoS capable 3497206b73d0SCy Schubert * @NL80211_STA_FLAG_MFP: station uses management frame protection 3498206b73d0SCy Schubert * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated 3499206b73d0SCy Schubert * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should 3500206b73d0SCy Schubert * only be used in managed mode (even in the flags mask). Note that the 3501206b73d0SCy Schubert * flag can't be changed, it is only valid while adding a station, and 3502206b73d0SCy Schubert * attempts to change it will silently be ignored (rather than rejected 3503206b73d0SCy Schubert * as errors.) 3504206b73d0SCy Schubert * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers 3505206b73d0SCy Schubert * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a 3506206b73d0SCy Schubert * previously added station into associated state 3507206b73d0SCy Schubert * @NL80211_STA_FLAG_MAX: highest station flag number currently defined 3508206b73d0SCy Schubert * @__NL80211_STA_FLAG_AFTER_LAST: internal use 3509206b73d0SCy Schubert */ 3510206b73d0SCy Schubert enum nl80211_sta_flags { 3511206b73d0SCy Schubert __NL80211_STA_FLAG_INVALID, 3512206b73d0SCy Schubert NL80211_STA_FLAG_AUTHORIZED, 3513206b73d0SCy Schubert NL80211_STA_FLAG_SHORT_PREAMBLE, 3514206b73d0SCy Schubert NL80211_STA_FLAG_WME, 3515206b73d0SCy Schubert NL80211_STA_FLAG_MFP, 3516206b73d0SCy Schubert NL80211_STA_FLAG_AUTHENTICATED, 3517206b73d0SCy Schubert NL80211_STA_FLAG_TDLS_PEER, 3518206b73d0SCy Schubert NL80211_STA_FLAG_ASSOCIATED, 3519206b73d0SCy Schubert 3520206b73d0SCy Schubert /* keep last */ 3521206b73d0SCy Schubert __NL80211_STA_FLAG_AFTER_LAST, 3522206b73d0SCy Schubert NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1 3523206b73d0SCy Schubert }; 3524206b73d0SCy Schubert 3525206b73d0SCy Schubert /** 3526206b73d0SCy Schubert * enum nl80211_sta_p2p_ps_status - station support of P2P PS 3527206b73d0SCy Schubert * 3528206b73d0SCy Schubert * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism 3529206b73d0SCy Schubert * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism 3530206b73d0SCy Schubert * @NUM_NL80211_P2P_PS_STATUS: number of values 3531206b73d0SCy Schubert */ 3532206b73d0SCy Schubert enum nl80211_sta_p2p_ps_status { 3533206b73d0SCy Schubert NL80211_P2P_PS_UNSUPPORTED = 0, 3534206b73d0SCy Schubert NL80211_P2P_PS_SUPPORTED, 3535206b73d0SCy Schubert 3536206b73d0SCy Schubert NUM_NL80211_P2P_PS_STATUS, 3537206b73d0SCy Schubert }; 3538206b73d0SCy Schubert 3539206b73d0SCy Schubert #define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER 3540206b73d0SCy Schubert 3541206b73d0SCy Schubert /** 3542206b73d0SCy Schubert * struct nl80211_sta_flag_update - station flags mask/set 3543206b73d0SCy Schubert * @mask: mask of station flags to set 3544206b73d0SCy Schubert * @set: which values to set them to 3545206b73d0SCy Schubert * 3546206b73d0SCy Schubert * Both mask and set contain bits as per &enum nl80211_sta_flags. 3547206b73d0SCy Schubert */ 3548206b73d0SCy Schubert struct nl80211_sta_flag_update { 3549206b73d0SCy Schubert __u32 mask; 3550206b73d0SCy Schubert __u32 set; 3551206b73d0SCy Schubert } __attribute__((packed)); 3552206b73d0SCy Schubert 3553206b73d0SCy Schubert /** 3554206b73d0SCy Schubert * enum nl80211_he_gi - HE guard interval 3555206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_GI_0_8: 0.8 usec 3556206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_GI_1_6: 1.6 usec 3557206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_GI_3_2: 3.2 usec 3558206b73d0SCy Schubert */ 3559206b73d0SCy Schubert enum nl80211_he_gi { 3560206b73d0SCy Schubert NL80211_RATE_INFO_HE_GI_0_8, 3561206b73d0SCy Schubert NL80211_RATE_INFO_HE_GI_1_6, 3562206b73d0SCy Schubert NL80211_RATE_INFO_HE_GI_3_2, 3563206b73d0SCy Schubert }; 3564206b73d0SCy Schubert 3565206b73d0SCy Schubert /** 3566c1d255d3SCy Schubert * enum nl80211_he_ltf - HE long training field 3567c1d255d3SCy Schubert * @NL80211_RATE_INFO_HE_1xLTF: 3.2 usec 3568c1d255d3SCy Schubert * @NL80211_RATE_INFO_HE_2xLTF: 6.4 usec 3569c1d255d3SCy Schubert * @NL80211_RATE_INFO_HE_4xLTF: 12.8 usec 3570c1d255d3SCy Schubert */ 3571c1d255d3SCy Schubert enum nl80211_he_ltf { 3572c1d255d3SCy Schubert NL80211_RATE_INFO_HE_1XLTF, 3573c1d255d3SCy Schubert NL80211_RATE_INFO_HE_2XLTF, 3574c1d255d3SCy Schubert NL80211_RATE_INFO_HE_4XLTF, 3575c1d255d3SCy Schubert }; 3576c1d255d3SCy Schubert 3577c1d255d3SCy Schubert /** 3578206b73d0SCy Schubert * enum nl80211_he_ru_alloc - HE RU allocation values 3579206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_26: 26-tone RU allocation 3580206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_52: 52-tone RU allocation 3581206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_106: 106-tone RU allocation 3582206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_242: 242-tone RU allocation 3583206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_484: 484-tone RU allocation 3584206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_996: 996-tone RU allocation 3585206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_RU_ALLOC_2x996: 2x996-tone RU allocation 3586206b73d0SCy Schubert */ 3587206b73d0SCy Schubert enum nl80211_he_ru_alloc { 3588206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_26, 3589206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_52, 3590206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_106, 3591206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_242, 3592206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_484, 3593206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_996, 3594206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC_2x996, 3595206b73d0SCy Schubert }; 3596206b73d0SCy Schubert 3597206b73d0SCy Schubert /** 3598*a90b9d01SCy Schubert * enum nl80211_eht_gi - EHT guard interval 3599*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_GI_0_8: 0.8 usec 3600*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_GI_1_6: 1.6 usec 3601*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_GI_3_2: 3.2 usec 3602*a90b9d01SCy Schubert */ 3603*a90b9d01SCy Schubert enum nl80211_eht_gi { 3604*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_GI_0_8, 3605*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_GI_1_6, 3606*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_GI_3_2, 3607*a90b9d01SCy Schubert }; 3608*a90b9d01SCy Schubert 3609*a90b9d01SCy Schubert /** 3610*a90b9d01SCy Schubert * enum nl80211_eht_ru_alloc - EHT RU allocation values 3611*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_26: 26-tone RU allocation 3612*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_52: 52-tone RU allocation 3613*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_52P26: 52+26-tone RU allocation 3614*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_106: 106-tone RU allocation 3615*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_106P26: 106+26 tone RU allocation 3616*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_242: 242-tone RU allocation 3617*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_484: 484-tone RU allocation 3618*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_484P242: 484+242 tone RU allocation 3619*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_996: 996-tone RU allocation 3620*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_996P484: 996+484 tone RU allocation 3621*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242: 996+484+242 tone RU allocation 3622*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_2x996: 2x996-tone RU allocation 3623*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484: 2x996+484 tone RU allocation 3624*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_3x996: 3x996-tone RU allocation 3625*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484: 3x996+484 tone RU allocation 3626*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC_4x996: 4x996-tone RU allocation 3627*a90b9d01SCy Schubert */ 3628*a90b9d01SCy Schubert enum nl80211_eht_ru_alloc { 3629*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_26, 3630*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_52, 3631*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_52P26, 3632*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_106, 3633*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_106P26, 3634*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_242, 3635*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_484, 3636*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_484P242, 3637*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_996, 3638*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_996P484, 3639*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242, 3640*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_2x996, 3641*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484, 3642*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_3x996, 3643*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484, 3644*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC_4x996, 3645*a90b9d01SCy Schubert }; 3646*a90b9d01SCy Schubert 3647*a90b9d01SCy Schubert /** 3648206b73d0SCy Schubert * enum nl80211_rate_info - bitrate information 3649206b73d0SCy Schubert * 3650206b73d0SCy Schubert * These attribute types are used with %NL80211_STA_INFO_TXRATE 3651206b73d0SCy Schubert * when getting information about the bitrate of a station. 3652206b73d0SCy Schubert * There are 2 attributes for bitrate, a legacy one that represents 3653206b73d0SCy Schubert * a 16-bit value, and new one that represents a 32-bit value. 3654206b73d0SCy Schubert * If the rate value fits into 16 bit, both attributes are reported 3655206b73d0SCy Schubert * with the same value. If the rate is too high to fit into 16 bits 3656206b73d0SCy Schubert * (>6.5535Gbps) only 32-bit attribute is included. 3657206b73d0SCy Schubert * User space tools encouraged to use the 32-bit attribute and fall 3658206b73d0SCy Schubert * back to the 16-bit one for compatibility with older kernels. 3659206b73d0SCy Schubert * 3660206b73d0SCy Schubert * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved 3661206b73d0SCy Schubert * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s) 3662206b73d0SCy Schubert * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8) 3663206b73d0SCy Schubert * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate 3664206b73d0SCy Schubert * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval 3665206b73d0SCy Schubert * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s) 3666206b73d0SCy Schubert * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined 3667206b73d0SCy Schubert * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8) 3668206b73d0SCy Schubert * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8) 3669206b73d0SCy Schubert * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate 3670206b73d0SCy Schubert * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the 3671206b73d0SCy Schubert * same as 160 for purposes of the bitrates 3672206b73d0SCy Schubert * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate 3673206b73d0SCy Schubert * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is 3674206b73d0SCy Schubert * a legacy rate and will be reported as the actual bitrate, i.e. 3675206b73d0SCy Schubert * half the base (20 MHz) rate 3676206b73d0SCy Schubert * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is 3677206b73d0SCy Schubert * a legacy rate and will be reported as the actual bitrate, i.e. 3678206b73d0SCy Schubert * a quarter of the base (20 MHz) rate 3679206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_MCS: HE MCS index (u8, 0-11) 3680206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_NSS: HE NSS value (u8, 1-8) 3681206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier 3682206b73d0SCy Schubert * (u8, see &enum nl80211_he_gi) 3683206b73d0SCy Schubert * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1) 3684206b73d0SCy Schubert * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then 3685206b73d0SCy Schubert * non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc) 3686*a90b9d01SCy Schubert * @NL80211_RATE_INFO_320_MHZ_WIDTH: 320 MHz bitrate 3687*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_MCS: EHT MCS index (u8, 0-15) 3688*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_NSS: EHT NSS value (u8, 1-8) 3689*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_GI: EHT guard interval identifier 3690*a90b9d01SCy Schubert * (u8, see &enum nl80211_eht_gi) 3691*a90b9d01SCy Schubert * @NL80211_RATE_INFO_EHT_RU_ALLOC: EHT RU allocation, if not present then 3692*a90b9d01SCy Schubert * non-OFDMA was used (u8, see &enum nl80211_eht_ru_alloc) 3693*a90b9d01SCy Schubert * @NL80211_RATE_INFO_S1G_MCS: S1G MCS index (u8, 0-10) 3694*a90b9d01SCy Schubert * @NL80211_RATE_INFO_S1G_NSS: S1G NSS value (u8, 1-4) 3695*a90b9d01SCy Schubert * @NL80211_RATE_INFO_1_MHZ_WIDTH: 1 MHz S1G rate 3696*a90b9d01SCy Schubert * @NL80211_RATE_INFO_2_MHZ_WIDTH: 2 MHz S1G rate 3697*a90b9d01SCy Schubert * @NL80211_RATE_INFO_4_MHZ_WIDTH: 4 MHz S1G rate 3698*a90b9d01SCy Schubert * @NL80211_RATE_INFO_8_MHZ_WIDTH: 8 MHz S1G rate 3699*a90b9d01SCy Schubert * @NL80211_RATE_INFO_16_MHZ_WIDTH: 16 MHz S1G rate 3700206b73d0SCy Schubert * @__NL80211_RATE_INFO_AFTER_LAST: internal use 3701206b73d0SCy Schubert */ 3702206b73d0SCy Schubert enum nl80211_rate_info { 3703206b73d0SCy Schubert __NL80211_RATE_INFO_INVALID, 3704206b73d0SCy Schubert NL80211_RATE_INFO_BITRATE, 3705206b73d0SCy Schubert NL80211_RATE_INFO_MCS, 3706206b73d0SCy Schubert NL80211_RATE_INFO_40_MHZ_WIDTH, 3707206b73d0SCy Schubert NL80211_RATE_INFO_SHORT_GI, 3708206b73d0SCy Schubert NL80211_RATE_INFO_BITRATE32, 3709206b73d0SCy Schubert NL80211_RATE_INFO_VHT_MCS, 3710206b73d0SCy Schubert NL80211_RATE_INFO_VHT_NSS, 3711206b73d0SCy Schubert NL80211_RATE_INFO_80_MHZ_WIDTH, 3712206b73d0SCy Schubert NL80211_RATE_INFO_80P80_MHZ_WIDTH, 3713206b73d0SCy Schubert NL80211_RATE_INFO_160_MHZ_WIDTH, 3714206b73d0SCy Schubert NL80211_RATE_INFO_10_MHZ_WIDTH, 3715206b73d0SCy Schubert NL80211_RATE_INFO_5_MHZ_WIDTH, 3716206b73d0SCy Schubert NL80211_RATE_INFO_HE_MCS, 3717206b73d0SCy Schubert NL80211_RATE_INFO_HE_NSS, 3718206b73d0SCy Schubert NL80211_RATE_INFO_HE_GI, 3719206b73d0SCy Schubert NL80211_RATE_INFO_HE_DCM, 3720206b73d0SCy Schubert NL80211_RATE_INFO_HE_RU_ALLOC, 3721*a90b9d01SCy Schubert NL80211_RATE_INFO_320_MHZ_WIDTH, 3722*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_MCS, 3723*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_NSS, 3724*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_GI, 3725*a90b9d01SCy Schubert NL80211_RATE_INFO_EHT_RU_ALLOC, 3726*a90b9d01SCy Schubert NL80211_RATE_INFO_S1G_MCS, 3727*a90b9d01SCy Schubert NL80211_RATE_INFO_S1G_NSS, 3728*a90b9d01SCy Schubert NL80211_RATE_INFO_1_MHZ_WIDTH, 3729*a90b9d01SCy Schubert NL80211_RATE_INFO_2_MHZ_WIDTH, 3730*a90b9d01SCy Schubert NL80211_RATE_INFO_4_MHZ_WIDTH, 3731*a90b9d01SCy Schubert NL80211_RATE_INFO_8_MHZ_WIDTH, 3732*a90b9d01SCy Schubert NL80211_RATE_INFO_16_MHZ_WIDTH, 3733206b73d0SCy Schubert 3734206b73d0SCy Schubert /* keep last */ 3735206b73d0SCy Schubert __NL80211_RATE_INFO_AFTER_LAST, 3736206b73d0SCy Schubert NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1 3737206b73d0SCy Schubert }; 3738206b73d0SCy Schubert 3739206b73d0SCy Schubert /** 3740206b73d0SCy Schubert * enum nl80211_sta_bss_param - BSS information collected by STA 3741206b73d0SCy Schubert * 3742206b73d0SCy Schubert * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM 3743206b73d0SCy Schubert * when getting information about the bitrate of a station. 3744206b73d0SCy Schubert * 3745206b73d0SCy Schubert * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved 3746206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag) 3747206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled 3748206b73d0SCy Schubert * (flag) 3749206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled 3750206b73d0SCy Schubert * (flag) 3751206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8) 3752206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16) 3753206b73d0SCy Schubert * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined 3754206b73d0SCy Schubert * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use 3755206b73d0SCy Schubert */ 3756206b73d0SCy Schubert enum nl80211_sta_bss_param { 3757206b73d0SCy Schubert __NL80211_STA_BSS_PARAM_INVALID, 3758206b73d0SCy Schubert NL80211_STA_BSS_PARAM_CTS_PROT, 3759206b73d0SCy Schubert NL80211_STA_BSS_PARAM_SHORT_PREAMBLE, 3760206b73d0SCy Schubert NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME, 3761206b73d0SCy Schubert NL80211_STA_BSS_PARAM_DTIM_PERIOD, 3762206b73d0SCy Schubert NL80211_STA_BSS_PARAM_BEACON_INTERVAL, 3763206b73d0SCy Schubert 3764206b73d0SCy Schubert /* keep last */ 3765206b73d0SCy Schubert __NL80211_STA_BSS_PARAM_AFTER_LAST, 3766206b73d0SCy Schubert NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1 3767206b73d0SCy Schubert }; 3768206b73d0SCy Schubert 3769206b73d0SCy Schubert /** 3770206b73d0SCy Schubert * enum nl80211_sta_info - station information 3771206b73d0SCy Schubert * 3772206b73d0SCy Schubert * These attribute types are used with %NL80211_ATTR_STA_INFO 3773206b73d0SCy Schubert * when getting information about a station. 3774206b73d0SCy Schubert * 3775206b73d0SCy Schubert * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved 3776206b73d0SCy Schubert * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs) 3777206b73d0SCy Schubert * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length) 3778206b73d0SCy Schubert * (u32, from this station) 3779206b73d0SCy Schubert * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length) 3780206b73d0SCy Schubert * (u32, to this station) 3781206b73d0SCy Schubert * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length) 3782206b73d0SCy Schubert * (u64, from this station) 3783206b73d0SCy Schubert * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length) 3784206b73d0SCy Schubert * (u64, to this station) 3785206b73d0SCy Schubert * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 3786206b73d0SCy Schubert * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 3787206b73d0SCy Schubert * containing info as possible, see &enum nl80211_rate_info 3788206b73d0SCy Schubert * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs) 3789206b73d0SCy Schubert * (u32, from this station) 3790206b73d0SCy Schubert * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs) 3791206b73d0SCy Schubert * (u32, to this station) 3792206b73d0SCy Schubert * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station) 3793206b73d0SCy Schubert * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs) 3794206b73d0SCy Schubert * (u32, to this station) 3795206b73d0SCy Schubert * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) 3796206b73d0SCy Schubert * @NL80211_STA_INFO_LLID: the station's mesh LLID 3797206b73d0SCy Schubert * @NL80211_STA_INFO_PLID: the station's mesh PLID 3798206b73d0SCy Schubert * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station 3799206b73d0SCy Schubert * (see %enum nl80211_plink_state) 3800206b73d0SCy Schubert * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested 3801206b73d0SCy Schubert * attribute, like NL80211_STA_INFO_TX_BITRATE. 3802206b73d0SCy Schubert * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute 3803206b73d0SCy Schubert * containing info as possible, see &enum nl80211_sta_bss_param 3804206b73d0SCy Schubert * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected 3805206b73d0SCy Schubert * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. 3806206b73d0SCy Schubert * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) 3807206b73d0SCy Schubert * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) 3808206b73d0SCy Schubert * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode 3809206b73d0SCy Schubert * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode 3810206b73d0SCy Schubert * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards 3811206b73d0SCy Schubert * non-peer STA 3812206b73d0SCy Schubert * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU 3813206b73d0SCy Schubert * Contains a nested array of signal strength attributes (u8, dBm) 3814206b73d0SCy Schubert * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average 3815206b73d0SCy Schubert * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. 3816206b73d0SCy Schubert * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the 3817206b73d0SCy Schubert * 802.11 header (u32, kbps) 3818206b73d0SCy Schubert * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons 3819206b73d0SCy Schubert * (u64) 3820206b73d0SCy Schubert * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64) 3821206b73d0SCy Schubert * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average 3822206b73d0SCy Schubert * for beacons only (u8, dBm) 3823206b73d0SCy Schubert * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats) 3824206b73d0SCy Schubert * This is a nested attribute where each the inner attribute number is the 3825206b73d0SCy Schubert * TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames; 3826206b73d0SCy Schubert * each one of those is again nested with &enum nl80211_tid_stats 3827206b73d0SCy Schubert * attributes carrying the actual values. 3828206b73d0SCy Schubert * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames 3829206b73d0SCy Schubert * received from the station (u64, usec) 3830206b73d0SCy Schubert * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment 3831206b73d0SCy Schubert * @NL80211_STA_INFO_ACK_SIGNAL: signal strength of the last ACK frame(u8, dBm) 3832206b73d0SCy Schubert * @NL80211_STA_INFO_ACK_SIGNAL_AVG: avg signal strength of ACK frames (s8, dBm) 3833206b73d0SCy Schubert * @NL80211_STA_INFO_RX_MPDUS: total number of received packets (MPDUs) 3834206b73d0SCy Schubert * (u32, from this station) 3835206b73d0SCy Schubert * @NL80211_STA_INFO_FCS_ERROR_COUNT: total number of packets (MPDUs) received 3836206b73d0SCy Schubert * with an FCS error (u32, from this station). This count may not include 3837206b73d0SCy Schubert * some packets with an FCS error due to TA corruption. Hence this counter 3838206b73d0SCy Schubert * might not be fully accurate. 3839206b73d0SCy Schubert * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a 3840206b73d0SCy Schubert * mesh gate (u8, 0 or 1) 3841206b73d0SCy Schubert * @NL80211_STA_INFO_TX_DURATION: aggregate PPDU duration for all frames 3842206b73d0SCy Schubert * sent to the station (u64, usec) 3843206b73d0SCy Schubert * @NL80211_STA_INFO_AIRTIME_WEIGHT: current airtime weight for station (u16) 3844206b73d0SCy Schubert * @NL80211_STA_INFO_AIRTIME_LINK_METRIC: airtime link metric for mesh station 3845c1d255d3SCy Schubert * @NL80211_STA_INFO_ASSOC_AT_BOOTTIME: Timestamp (CLOCK_BOOTTIME, nanoseconds) 3846c1d255d3SCy Schubert * of STA's association 3847c1d255d3SCy Schubert * @NL80211_STA_INFO_CONNECTED_TO_AS: set to true if STA has a path to a 3848c1d255d3SCy Schubert * authentication server (u8, 0 or 1) 3849206b73d0SCy Schubert * @__NL80211_STA_INFO_AFTER_LAST: internal 3850206b73d0SCy Schubert * @NL80211_STA_INFO_MAX: highest possible station info attribute 3851206b73d0SCy Schubert */ 3852206b73d0SCy Schubert enum nl80211_sta_info { 3853206b73d0SCy Schubert __NL80211_STA_INFO_INVALID, 3854206b73d0SCy Schubert NL80211_STA_INFO_INACTIVE_TIME, 3855206b73d0SCy Schubert NL80211_STA_INFO_RX_BYTES, 3856206b73d0SCy Schubert NL80211_STA_INFO_TX_BYTES, 3857206b73d0SCy Schubert NL80211_STA_INFO_LLID, 3858206b73d0SCy Schubert NL80211_STA_INFO_PLID, 3859206b73d0SCy Schubert NL80211_STA_INFO_PLINK_STATE, 3860206b73d0SCy Schubert NL80211_STA_INFO_SIGNAL, 3861206b73d0SCy Schubert NL80211_STA_INFO_TX_BITRATE, 3862206b73d0SCy Schubert NL80211_STA_INFO_RX_PACKETS, 3863206b73d0SCy Schubert NL80211_STA_INFO_TX_PACKETS, 3864206b73d0SCy Schubert NL80211_STA_INFO_TX_RETRIES, 3865206b73d0SCy Schubert NL80211_STA_INFO_TX_FAILED, 3866206b73d0SCy Schubert NL80211_STA_INFO_SIGNAL_AVG, 3867206b73d0SCy Schubert NL80211_STA_INFO_RX_BITRATE, 3868206b73d0SCy Schubert NL80211_STA_INFO_BSS_PARAM, 3869206b73d0SCy Schubert NL80211_STA_INFO_CONNECTED_TIME, 3870206b73d0SCy Schubert NL80211_STA_INFO_STA_FLAGS, 3871206b73d0SCy Schubert NL80211_STA_INFO_BEACON_LOSS, 3872206b73d0SCy Schubert NL80211_STA_INFO_T_OFFSET, 3873206b73d0SCy Schubert NL80211_STA_INFO_LOCAL_PM, 3874206b73d0SCy Schubert NL80211_STA_INFO_PEER_PM, 3875206b73d0SCy Schubert NL80211_STA_INFO_NONPEER_PM, 3876206b73d0SCy Schubert NL80211_STA_INFO_RX_BYTES64, 3877206b73d0SCy Schubert NL80211_STA_INFO_TX_BYTES64, 3878206b73d0SCy Schubert NL80211_STA_INFO_CHAIN_SIGNAL, 3879206b73d0SCy Schubert NL80211_STA_INFO_CHAIN_SIGNAL_AVG, 3880206b73d0SCy Schubert NL80211_STA_INFO_EXPECTED_THROUGHPUT, 3881206b73d0SCy Schubert NL80211_STA_INFO_RX_DROP_MISC, 3882206b73d0SCy Schubert NL80211_STA_INFO_BEACON_RX, 3883206b73d0SCy Schubert NL80211_STA_INFO_BEACON_SIGNAL_AVG, 3884206b73d0SCy Schubert NL80211_STA_INFO_TID_STATS, 3885206b73d0SCy Schubert NL80211_STA_INFO_RX_DURATION, 3886206b73d0SCy Schubert NL80211_STA_INFO_PAD, 3887206b73d0SCy Schubert NL80211_STA_INFO_ACK_SIGNAL, 3888206b73d0SCy Schubert NL80211_STA_INFO_ACK_SIGNAL_AVG, 3889206b73d0SCy Schubert NL80211_STA_INFO_RX_MPDUS, 3890206b73d0SCy Schubert NL80211_STA_INFO_FCS_ERROR_COUNT, 3891206b73d0SCy Schubert NL80211_STA_INFO_CONNECTED_TO_GATE, 3892206b73d0SCy Schubert NL80211_STA_INFO_TX_DURATION, 3893206b73d0SCy Schubert NL80211_STA_INFO_AIRTIME_WEIGHT, 3894206b73d0SCy Schubert NL80211_STA_INFO_AIRTIME_LINK_METRIC, 3895c1d255d3SCy Schubert NL80211_STA_INFO_ASSOC_AT_BOOTTIME, 3896c1d255d3SCy Schubert NL80211_STA_INFO_CONNECTED_TO_AS, 3897206b73d0SCy Schubert 3898206b73d0SCy Schubert /* keep last */ 3899206b73d0SCy Schubert __NL80211_STA_INFO_AFTER_LAST, 3900206b73d0SCy Schubert NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 3901206b73d0SCy Schubert }; 3902206b73d0SCy Schubert 3903206b73d0SCy Schubert /* we renamed this - stay compatible */ 3904206b73d0SCy Schubert #define NL80211_STA_INFO_DATA_ACK_SIGNAL_AVG NL80211_STA_INFO_ACK_SIGNAL_AVG 3905206b73d0SCy Schubert 3906206b73d0SCy Schubert 3907206b73d0SCy Schubert /** 3908206b73d0SCy Schubert * enum nl80211_tid_stats - per TID statistics attributes 3909206b73d0SCy Schubert * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved 3910206b73d0SCy Schubert * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64) 3911206b73d0SCy Schubert * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or 3912206b73d0SCy Schubert * attempted to transmit; u64) 3913206b73d0SCy Schubert * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for 3914206b73d0SCy Schubert * transmitted MSDUs (not counting the first attempt; u64) 3915206b73d0SCy Schubert * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted 3916206b73d0SCy Schubert * MSDUs (u64) 3917206b73d0SCy Schubert * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment 3918206b73d0SCy Schubert * @NL80211_TID_STATS_TXQ_STATS: TXQ stats (nested attribute) 3919206b73d0SCy Schubert * @NUM_NL80211_TID_STATS: number of attributes here 3920206b73d0SCy Schubert * @NL80211_TID_STATS_MAX: highest numbered attribute here 3921206b73d0SCy Schubert */ 3922206b73d0SCy Schubert enum nl80211_tid_stats { 3923206b73d0SCy Schubert __NL80211_TID_STATS_INVALID, 3924206b73d0SCy Schubert NL80211_TID_STATS_RX_MSDU, 3925206b73d0SCy Schubert NL80211_TID_STATS_TX_MSDU, 3926206b73d0SCy Schubert NL80211_TID_STATS_TX_MSDU_RETRIES, 3927206b73d0SCy Schubert NL80211_TID_STATS_TX_MSDU_FAILED, 3928206b73d0SCy Schubert NL80211_TID_STATS_PAD, 3929206b73d0SCy Schubert NL80211_TID_STATS_TXQ_STATS, 3930206b73d0SCy Schubert 3931206b73d0SCy Schubert /* keep last */ 3932206b73d0SCy Schubert NUM_NL80211_TID_STATS, 3933206b73d0SCy Schubert NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1 3934206b73d0SCy Schubert }; 3935206b73d0SCy Schubert 3936206b73d0SCy Schubert /** 3937206b73d0SCy Schubert * enum nl80211_txq_stats - per TXQ statistics attributes 3938206b73d0SCy Schubert * @__NL80211_TXQ_STATS_INVALID: attribute number 0 is reserved 3939206b73d0SCy Schubert * @NUM_NL80211_TXQ_STATS: number of attributes here 3940206b73d0SCy Schubert * @NL80211_TXQ_STATS_BACKLOG_BYTES: number of bytes currently backlogged 3941206b73d0SCy Schubert * @NL80211_TXQ_STATS_BACKLOG_PACKETS: number of packets currently 3942206b73d0SCy Schubert * backlogged 3943206b73d0SCy Schubert * @NL80211_TXQ_STATS_FLOWS: total number of new flows seen 3944206b73d0SCy Schubert * @NL80211_TXQ_STATS_DROPS: total number of packet drops 3945206b73d0SCy Schubert * @NL80211_TXQ_STATS_ECN_MARKS: total number of packet ECN marks 3946206b73d0SCy Schubert * @NL80211_TXQ_STATS_OVERLIMIT: number of drops due to queue space overflow 3947206b73d0SCy Schubert * @NL80211_TXQ_STATS_OVERMEMORY: number of drops due to memory limit overflow 3948206b73d0SCy Schubert * (only for per-phy stats) 3949206b73d0SCy Schubert * @NL80211_TXQ_STATS_COLLISIONS: number of hash collisions 3950206b73d0SCy Schubert * @NL80211_TXQ_STATS_TX_BYTES: total number of bytes dequeued from TXQ 3951206b73d0SCy Schubert * @NL80211_TXQ_STATS_TX_PACKETS: total number of packets dequeued from TXQ 3952206b73d0SCy Schubert * @NL80211_TXQ_STATS_MAX_FLOWS: number of flow buckets for PHY 3953206b73d0SCy Schubert * @NL80211_TXQ_STATS_MAX: highest numbered attribute here 3954206b73d0SCy Schubert */ 3955206b73d0SCy Schubert enum nl80211_txq_stats { 3956206b73d0SCy Schubert __NL80211_TXQ_STATS_INVALID, 3957206b73d0SCy Schubert NL80211_TXQ_STATS_BACKLOG_BYTES, 3958206b73d0SCy Schubert NL80211_TXQ_STATS_BACKLOG_PACKETS, 3959206b73d0SCy Schubert NL80211_TXQ_STATS_FLOWS, 3960206b73d0SCy Schubert NL80211_TXQ_STATS_DROPS, 3961206b73d0SCy Schubert NL80211_TXQ_STATS_ECN_MARKS, 3962206b73d0SCy Schubert NL80211_TXQ_STATS_OVERLIMIT, 3963206b73d0SCy Schubert NL80211_TXQ_STATS_OVERMEMORY, 3964206b73d0SCy Schubert NL80211_TXQ_STATS_COLLISIONS, 3965206b73d0SCy Schubert NL80211_TXQ_STATS_TX_BYTES, 3966206b73d0SCy Schubert NL80211_TXQ_STATS_TX_PACKETS, 3967206b73d0SCy Schubert NL80211_TXQ_STATS_MAX_FLOWS, 3968206b73d0SCy Schubert 3969206b73d0SCy Schubert /* keep last */ 3970206b73d0SCy Schubert NUM_NL80211_TXQ_STATS, 3971206b73d0SCy Schubert NL80211_TXQ_STATS_MAX = NUM_NL80211_TXQ_STATS - 1 3972206b73d0SCy Schubert }; 3973206b73d0SCy Schubert 3974206b73d0SCy Schubert /** 3975206b73d0SCy Schubert * enum nl80211_mpath_flags - nl80211 mesh path flags 3976206b73d0SCy Schubert * 3977206b73d0SCy Schubert * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active 3978206b73d0SCy Schubert * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running 3979206b73d0SCy Schubert * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN 3980206b73d0SCy Schubert * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set 3981206b73d0SCy Schubert * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded 3982206b73d0SCy Schubert */ 3983206b73d0SCy Schubert enum nl80211_mpath_flags { 3984206b73d0SCy Schubert NL80211_MPATH_FLAG_ACTIVE = 1<<0, 3985206b73d0SCy Schubert NL80211_MPATH_FLAG_RESOLVING = 1<<1, 3986206b73d0SCy Schubert NL80211_MPATH_FLAG_SN_VALID = 1<<2, 3987206b73d0SCy Schubert NL80211_MPATH_FLAG_FIXED = 1<<3, 3988206b73d0SCy Schubert NL80211_MPATH_FLAG_RESOLVED = 1<<4, 3989206b73d0SCy Schubert }; 3990206b73d0SCy Schubert 3991206b73d0SCy Schubert /** 3992206b73d0SCy Schubert * enum nl80211_mpath_info - mesh path information 3993206b73d0SCy Schubert * 3994206b73d0SCy Schubert * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting 3995206b73d0SCy Schubert * information about a mesh path. 3996206b73d0SCy Schubert * 3997206b73d0SCy Schubert * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved 3998206b73d0SCy Schubert * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination 3999206b73d0SCy Schubert * @NL80211_MPATH_INFO_SN: destination sequence number 4000206b73d0SCy Schubert * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path 4001206b73d0SCy Schubert * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now 4002206b73d0SCy Schubert * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in 4003206b73d0SCy Schubert * &enum nl80211_mpath_flags; 4004206b73d0SCy Schubert * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec 4005206b73d0SCy Schubert * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries 4006206b73d0SCy Schubert * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination 4007206b73d0SCy Schubert * @NL80211_MPATH_INFO_PATH_CHANGE: total number of path changes to destination 4008206b73d0SCy Schubert * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number 4009206b73d0SCy Schubert * currently defined 4010206b73d0SCy Schubert * @__NL80211_MPATH_INFO_AFTER_LAST: internal use 4011206b73d0SCy Schubert */ 4012206b73d0SCy Schubert enum nl80211_mpath_info { 4013206b73d0SCy Schubert __NL80211_MPATH_INFO_INVALID, 4014206b73d0SCy Schubert NL80211_MPATH_INFO_FRAME_QLEN, 4015206b73d0SCy Schubert NL80211_MPATH_INFO_SN, 4016206b73d0SCy Schubert NL80211_MPATH_INFO_METRIC, 4017206b73d0SCy Schubert NL80211_MPATH_INFO_EXPTIME, 4018206b73d0SCy Schubert NL80211_MPATH_INFO_FLAGS, 4019206b73d0SCy Schubert NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, 4020206b73d0SCy Schubert NL80211_MPATH_INFO_DISCOVERY_RETRIES, 4021206b73d0SCy Schubert NL80211_MPATH_INFO_HOP_COUNT, 4022206b73d0SCy Schubert NL80211_MPATH_INFO_PATH_CHANGE, 4023206b73d0SCy Schubert 4024206b73d0SCy Schubert /* keep last */ 4025206b73d0SCy Schubert __NL80211_MPATH_INFO_AFTER_LAST, 4026206b73d0SCy Schubert NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 4027206b73d0SCy Schubert }; 4028206b73d0SCy Schubert 4029206b73d0SCy Schubert /** 4030206b73d0SCy Schubert * enum nl80211_band_iftype_attr - Interface type data attributes 4031206b73d0SCy Schubert * 4032206b73d0SCy Schubert * @__NL80211_BAND_IFTYPE_ATTR_INVALID: attribute number 0 is reserved 4033206b73d0SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_IFTYPES: nested attribute containing a flag attribute 4034206b73d0SCy Schubert * for each interface type that supports the band data 4035206b73d0SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC: HE MAC capabilities as in HE 4036206b73d0SCy Schubert * capabilities IE 4037206b73d0SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY: HE PHY capabilities as in HE 4038206b73d0SCy Schubert * capabilities IE 4039206b73d0SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET: HE supported NSS/MCS as in HE 4040206b73d0SCy Schubert * capabilities IE 4041206b73d0SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE: HE PPE thresholds information as 4042206b73d0SCy Schubert * defined in HE capabilities IE 4043c1d255d3SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA: HE 6GHz band capabilities (__le16), 4044c1d255d3SCy Schubert * given for all 6 GHz band channels 4045*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS: vendor element capabilities that are 4046*a90b9d01SCy Schubert * advertised on this band/for this iftype (binary) 4047*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC: EHT MAC capabilities as in EHT 4048*a90b9d01SCy Schubert * capabilities element 4049*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY: EHT PHY capabilities as in EHT 4050*a90b9d01SCy Schubert * capabilities element 4051*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET: EHT supported NSS/MCS as in EHT 4052*a90b9d01SCy Schubert * capabilities element 4053*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE: EHT PPE thresholds information as 4054*a90b9d01SCy Schubert * defined in EHT capabilities element 4055206b73d0SCy Schubert * @__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST: internal use 4056*a90b9d01SCy Schubert * @NL80211_BAND_IFTYPE_ATTR_MAX: highest band attribute currently defined 4057206b73d0SCy Schubert */ 4058206b73d0SCy Schubert enum nl80211_band_iftype_attr { 4059206b73d0SCy Schubert __NL80211_BAND_IFTYPE_ATTR_INVALID, 4060206b73d0SCy Schubert 4061206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_IFTYPES, 4062206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC, 4063206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY, 4064206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET, 4065206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, 4066c1d255d3SCy Schubert NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA, 4067*a90b9d01SCy Schubert NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS, 4068*a90b9d01SCy Schubert NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC, 4069*a90b9d01SCy Schubert NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY, 4070*a90b9d01SCy Schubert NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET, 4071*a90b9d01SCy Schubert NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE, 4072206b73d0SCy Schubert 4073206b73d0SCy Schubert /* keep last */ 4074206b73d0SCy Schubert __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST, 4075206b73d0SCy Schubert NL80211_BAND_IFTYPE_ATTR_MAX = __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST - 1 4076206b73d0SCy Schubert }; 4077206b73d0SCy Schubert 4078206b73d0SCy Schubert /** 4079206b73d0SCy Schubert * enum nl80211_band_attr - band attributes 4080206b73d0SCy Schubert * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved 4081206b73d0SCy Schubert * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, 4082206b73d0SCy Schubert * an array of nested frequency attributes 4083206b73d0SCy Schubert * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, 4084206b73d0SCy Schubert * an array of nested bitrate attributes 4085206b73d0SCy Schubert * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as 4086206b73d0SCy Schubert * defined in 802.11n 4087206b73d0SCy Schubert * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE 4088206b73d0SCy Schubert * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n 4089206b73d0SCy Schubert * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n 4090206b73d0SCy Schubert * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as 4091206b73d0SCy Schubert * defined in 802.11ac 4092206b73d0SCy Schubert * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE 4093206b73d0SCy Schubert * @NL80211_BAND_ATTR_IFTYPE_DATA: nested array attribute, with each entry using 4094206b73d0SCy Schubert * attributes from &enum nl80211_band_iftype_attr 4095c1d255d3SCy Schubert * @NL80211_BAND_ATTR_EDMG_CHANNELS: bitmap that indicates the 2.16 GHz 4096c1d255d3SCy Schubert * channel(s) that are allowed to be used for EDMG transmissions. 4097c1d255d3SCy Schubert * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251. 4098c1d255d3SCy Schubert * @NL80211_BAND_ATTR_EDMG_BW_CONFIG: Channel BW Configuration subfield encodes 4099c1d255d3SCy Schubert * the allowed channel bandwidth configurations. 4100c1d255d3SCy Schubert * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13. 4101*a90b9d01SCy Schubert * @NL80211_BAND_ATTR_S1G_MCS_NSS_SET: S1G capabilities, supported S1G-MCS and NSS 4102*a90b9d01SCy Schubert * set subfield, as in the S1G information IE, 5 bytes 4103*a90b9d01SCy Schubert * @NL80211_BAND_ATTR_S1G_CAPA: S1G capabilities information subfield as in the 4104*a90b9d01SCy Schubert * S1G information IE, 10 bytes 4105206b73d0SCy Schubert * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined 4106206b73d0SCy Schubert * @__NL80211_BAND_ATTR_AFTER_LAST: internal use 4107206b73d0SCy Schubert */ 4108206b73d0SCy Schubert enum nl80211_band_attr { 4109206b73d0SCy Schubert __NL80211_BAND_ATTR_INVALID, 4110206b73d0SCy Schubert NL80211_BAND_ATTR_FREQS, 4111206b73d0SCy Schubert NL80211_BAND_ATTR_RATES, 4112206b73d0SCy Schubert 4113206b73d0SCy Schubert NL80211_BAND_ATTR_HT_MCS_SET, 4114206b73d0SCy Schubert NL80211_BAND_ATTR_HT_CAPA, 4115206b73d0SCy Schubert NL80211_BAND_ATTR_HT_AMPDU_FACTOR, 4116206b73d0SCy Schubert NL80211_BAND_ATTR_HT_AMPDU_DENSITY, 4117206b73d0SCy Schubert 4118206b73d0SCy Schubert NL80211_BAND_ATTR_VHT_MCS_SET, 4119206b73d0SCy Schubert NL80211_BAND_ATTR_VHT_CAPA, 4120206b73d0SCy Schubert NL80211_BAND_ATTR_IFTYPE_DATA, 4121206b73d0SCy Schubert 4122c1d255d3SCy Schubert NL80211_BAND_ATTR_EDMG_CHANNELS, 4123c1d255d3SCy Schubert NL80211_BAND_ATTR_EDMG_BW_CONFIG, 4124c1d255d3SCy Schubert 4125*a90b9d01SCy Schubert NL80211_BAND_ATTR_S1G_MCS_NSS_SET, 4126*a90b9d01SCy Schubert NL80211_BAND_ATTR_S1G_CAPA, 4127*a90b9d01SCy Schubert 4128206b73d0SCy Schubert /* keep last */ 4129206b73d0SCy Schubert __NL80211_BAND_ATTR_AFTER_LAST, 4130206b73d0SCy Schubert NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 4131206b73d0SCy Schubert }; 4132206b73d0SCy Schubert 4133206b73d0SCy Schubert #define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA 4134206b73d0SCy Schubert 4135206b73d0SCy Schubert /** 4136206b73d0SCy Schubert * enum nl80211_wmm_rule - regulatory wmm rule 4137206b73d0SCy Schubert * 4138206b73d0SCy Schubert * @__NL80211_WMMR_INVALID: attribute number 0 is reserved 4139206b73d0SCy Schubert * @NL80211_WMMR_CW_MIN: Minimum contention window slot. 4140206b73d0SCy Schubert * @NL80211_WMMR_CW_MAX: Maximum contention window slot. 4141206b73d0SCy Schubert * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space. 4142206b73d0SCy Schubert * @NL80211_WMMR_TXOP: Maximum allowed tx operation time. 4143206b73d0SCy Schubert * @nl80211_WMMR_MAX: highest possible wmm rule. 4144206b73d0SCy Schubert * @__NL80211_WMMR_LAST: Internal use. 4145206b73d0SCy Schubert */ 4146206b73d0SCy Schubert enum nl80211_wmm_rule { 4147206b73d0SCy Schubert __NL80211_WMMR_INVALID, 4148206b73d0SCy Schubert NL80211_WMMR_CW_MIN, 4149206b73d0SCy Schubert NL80211_WMMR_CW_MAX, 4150206b73d0SCy Schubert NL80211_WMMR_AIFSN, 4151206b73d0SCy Schubert NL80211_WMMR_TXOP, 4152206b73d0SCy Schubert 4153206b73d0SCy Schubert /* keep last */ 4154206b73d0SCy Schubert __NL80211_WMMR_LAST, 4155206b73d0SCy Schubert NL80211_WMMR_MAX = __NL80211_WMMR_LAST - 1 4156206b73d0SCy Schubert }; 4157206b73d0SCy Schubert 4158206b73d0SCy Schubert /** 4159206b73d0SCy Schubert * enum nl80211_frequency_attr - frequency attributes 4160206b73d0SCy Schubert * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved 4161206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz 4162206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current 4163206b73d0SCy Schubert * regulatory domain. 4164206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation 4165206b73d0SCy Schubert * are permitted on this channel, this includes sending probe 4166206b73d0SCy Schubert * requests, or modes of operation that require beaconing. 4167206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory 4168206b73d0SCy Schubert * on this channel in current regulatory domain. 4169206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm 4170206b73d0SCy Schubert * (100 * dBm). 4171206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS 4172206b73d0SCy Schubert * (enum nl80211_dfs_state) 4173206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long 4174206b73d0SCy Schubert * this channel is in this DFS state. 4175206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this 4176206b73d0SCy Schubert * channel as the control channel 4177206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this 4178206b73d0SCy Schubert * channel as the control channel 4179206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel 4180206b73d0SCy Schubert * as the primary or any of the secondary channels isn't possible, 4181206b73d0SCy Schubert * this includes 80+80 channels 4182206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel 4183206b73d0SCy Schubert * using this channel as the primary or any of the secondary channels 4184206b73d0SCy Schubert * isn't possible 4185206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 4186206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this 4187206b73d0SCy Schubert * channel. A channel that has the INDOOR_ONLY attribute can only be 4188206b73d0SCy Schubert * used when there is a clear assessment that the device is operating in 4189206b73d0SCy Schubert * an indoor surroundings, i.e., it is connected to AC power (and not 4190206b73d0SCy Schubert * through portable DC inverters) or is under the control of a master 4191206b73d0SCy Schubert * that is acting as an AP and is connected to AC power. 4192206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this 4193206b73d0SCy Schubert * channel if it's connected concurrently to a BSS on the same channel on 4194206b73d0SCy Schubert * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz 4195206b73d0SCy Schubert * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS 4196206b73d0SCy Schubert * off-channel on a channel that has the IR_CONCURRENT attribute set can be 4197206b73d0SCy Schubert * done when there is a clear assessment that the device is operating under 4198206b73d0SCy Schubert * the guidance of an authorized master, i.e., setting up a GO or TDLS 4199206b73d0SCy Schubert * off-channel while the device is also connected to an AP with DFS and 4200206b73d0SCy Schubert * radar detection on the UNII band (it is up to user-space, i.e., 4201206b73d0SCy Schubert * wpa_supplicant to perform the required verifications). Using this 4202206b73d0SCy Schubert * attribute for IR is disallowed for master interfaces (IBSS, AP). 4203206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed 4204206b73d0SCy Schubert * on this channel in current regulatory domain. 4205206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed 4206206b73d0SCy Schubert * on this channel in current regulatory domain. 4207206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_WMM: this channel has wmm limitations. 4208206b73d0SCy Schubert * This is a nested attribute that contains the wmm limitation per AC. 4209206b73d0SCy Schubert * (see &enum nl80211_wmm_rule) 4210c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_HE: HE operation is not allowed on this channel 4211c1d255d3SCy Schubert * in current regulatory domain. 4212c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_OFFSET: frequency offset in KHz 4213c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_1MHZ: 1 MHz operation is allowed 4214c1d255d3SCy Schubert * on this channel in current regulatory domain. 4215c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_2MHZ: 2 MHz operation is allowed 4216c1d255d3SCy Schubert * on this channel in current regulatory domain. 4217c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_4MHZ: 4 MHz operation is allowed 4218c1d255d3SCy Schubert * on this channel in current regulatory domain. 4219c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_8MHZ: 8 MHz operation is allowed 4220c1d255d3SCy Schubert * on this channel in current regulatory domain. 4221c1d255d3SCy Schubert * @NL80211_FREQUENCY_ATTR_16MHZ: 16 MHz operation is allowed 4222c1d255d3SCy Schubert * on this channel in current regulatory domain. 4223*a90b9d01SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_320MHZ: any 320 MHz channel using this channel 4224*a90b9d01SCy Schubert * as the primary or any of the secondary channels isn't possible 4225*a90b9d01SCy Schubert * @NL80211_FREQUENCY_ATTR_NO_EHT: EHT operation is not allowed on this channel 4226*a90b9d01SCy Schubert * in current regulatory domain. 4227*a90b9d01SCy Schubert * @NL80211_FREQUENCY_ATTR_PSD: Power spectral density (in dBm) that 4228*a90b9d01SCy Schubert * is allowed on this channel in current regulatory domain. 4229206b73d0SCy Schubert * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number 4230206b73d0SCy Schubert * currently defined 4231206b73d0SCy Schubert * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use 4232206b73d0SCy Schubert * 4233206b73d0SCy Schubert * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122 4234206b73d0SCy Schubert * for more information on the FCC description of the relaxations allowed 4235206b73d0SCy Schubert * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and 4236206b73d0SCy Schubert * NL80211_FREQUENCY_ATTR_IR_CONCURRENT. 4237206b73d0SCy Schubert */ 4238206b73d0SCy Schubert enum nl80211_frequency_attr { 4239206b73d0SCy Schubert __NL80211_FREQUENCY_ATTR_INVALID, 4240206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_FREQ, 4241206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_DISABLED, 4242206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_IR, 4243206b73d0SCy Schubert __NL80211_FREQUENCY_ATTR_NO_IBSS, 4244206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_RADAR, 4245206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_MAX_TX_POWER, 4246206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_DFS_STATE, 4247206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_DFS_TIME, 4248206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_HT40_MINUS, 4249206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, 4250206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_80MHZ, 4251206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_160MHZ, 4252206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_DFS_CAC_TIME, 4253206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_INDOOR_ONLY, 4254206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_IR_CONCURRENT, 4255206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_20MHZ, 4256206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_NO_10MHZ, 4257206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_WMM, 4258c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_NO_HE, 4259c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_OFFSET, 4260c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_1MHZ, 4261c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_2MHZ, 4262c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_4MHZ, 4263c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_8MHZ, 4264c1d255d3SCy Schubert NL80211_FREQUENCY_ATTR_16MHZ, 4265*a90b9d01SCy Schubert NL80211_FREQUENCY_ATTR_NO_320MHZ, 4266*a90b9d01SCy Schubert NL80211_FREQUENCY_ATTR_NO_EHT, 4267*a90b9d01SCy Schubert NL80211_FREQUENCY_ATTR_PSD, 4268206b73d0SCy Schubert 4269206b73d0SCy Schubert /* keep last */ 4270206b73d0SCy Schubert __NL80211_FREQUENCY_ATTR_AFTER_LAST, 4271206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 4272206b73d0SCy Schubert }; 4273206b73d0SCy Schubert 4274206b73d0SCy Schubert #define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER 4275206b73d0SCy Schubert #define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR 4276206b73d0SCy Schubert #define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR 4277206b73d0SCy Schubert #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR 4278206b73d0SCy Schubert #define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \ 4279206b73d0SCy Schubert NL80211_FREQUENCY_ATTR_IR_CONCURRENT 4280206b73d0SCy Schubert 4281206b73d0SCy Schubert /** 4282206b73d0SCy Schubert * enum nl80211_bitrate_attr - bitrate attributes 4283206b73d0SCy Schubert * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved 4284206b73d0SCy Schubert * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps 4285206b73d0SCy Schubert * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported 4286206b73d0SCy Schubert * in 2.4 GHz band. 4287206b73d0SCy Schubert * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number 4288206b73d0SCy Schubert * currently defined 4289206b73d0SCy Schubert * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use 4290206b73d0SCy Schubert */ 4291206b73d0SCy Schubert enum nl80211_bitrate_attr { 4292206b73d0SCy Schubert __NL80211_BITRATE_ATTR_INVALID, 4293206b73d0SCy Schubert NL80211_BITRATE_ATTR_RATE, 4294206b73d0SCy Schubert NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, 4295206b73d0SCy Schubert 4296206b73d0SCy Schubert /* keep last */ 4297206b73d0SCy Schubert __NL80211_BITRATE_ATTR_AFTER_LAST, 4298206b73d0SCy Schubert NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 4299206b73d0SCy Schubert }; 4300206b73d0SCy Schubert 4301206b73d0SCy Schubert /** 4302206b73d0SCy Schubert * enum nl80211_initiator - Indicates the initiator of a reg domain request 4303206b73d0SCy Schubert * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world 4304206b73d0SCy Schubert * regulatory domain. 4305206b73d0SCy Schubert * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the 4306206b73d0SCy Schubert * regulatory domain. 4307206b73d0SCy Schubert * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the 4308206b73d0SCy Schubert * wireless core it thinks its knows the regulatory domain we should be in. 4309206b73d0SCy Schubert * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an 4310206b73d0SCy Schubert * 802.11 country information element with regulatory information it 4311206b73d0SCy Schubert * thinks we should consider. cfg80211 only processes the country 4312206b73d0SCy Schubert * code from the IE, and relies on the regulatory domain information 4313206b73d0SCy Schubert * structure passed by userspace (CRDA) from our wireless-regdb. 4314206b73d0SCy Schubert * If a channel is enabled but the country code indicates it should 4315206b73d0SCy Schubert * be disabled we disable the channel and re-enable it upon disassociation. 4316206b73d0SCy Schubert */ 4317206b73d0SCy Schubert enum nl80211_reg_initiator { 4318206b73d0SCy Schubert NL80211_REGDOM_SET_BY_CORE, 4319206b73d0SCy Schubert NL80211_REGDOM_SET_BY_USER, 4320206b73d0SCy Schubert NL80211_REGDOM_SET_BY_DRIVER, 4321206b73d0SCy Schubert NL80211_REGDOM_SET_BY_COUNTRY_IE, 4322206b73d0SCy Schubert }; 4323206b73d0SCy Schubert 4324206b73d0SCy Schubert /** 4325206b73d0SCy Schubert * enum nl80211_reg_type - specifies the type of regulatory domain 4326206b73d0SCy Schubert * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains 4327206b73d0SCy Schubert * to a specific country. When this is set you can count on the 4328206b73d0SCy Schubert * ISO / IEC 3166 alpha2 country code being valid. 4329206b73d0SCy Schubert * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory 4330206b73d0SCy Schubert * domain. 4331206b73d0SCy Schubert * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom 4332206b73d0SCy Schubert * driver specific world regulatory domain. These do not apply system-wide 4333206b73d0SCy Schubert * and are only applicable to the individual devices which have requested 4334206b73d0SCy Schubert * them to be applied. 4335206b73d0SCy Schubert * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product 4336206b73d0SCy Schubert * of an intersection between two regulatory domains -- the previously 4337206b73d0SCy Schubert * set regulatory domain on the system and the last accepted regulatory 4338206b73d0SCy Schubert * domain request to be processed. 4339206b73d0SCy Schubert */ 4340206b73d0SCy Schubert enum nl80211_reg_type { 4341206b73d0SCy Schubert NL80211_REGDOM_TYPE_COUNTRY, 4342206b73d0SCy Schubert NL80211_REGDOM_TYPE_WORLD, 4343206b73d0SCy Schubert NL80211_REGDOM_TYPE_CUSTOM_WORLD, 4344206b73d0SCy Schubert NL80211_REGDOM_TYPE_INTERSECTION, 4345206b73d0SCy Schubert }; 4346206b73d0SCy Schubert 4347206b73d0SCy Schubert /** 4348206b73d0SCy Schubert * enum nl80211_reg_rule_attr - regulatory rule attributes 4349206b73d0SCy Schubert * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved 4350206b73d0SCy Schubert * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional 4351206b73d0SCy Schubert * considerations for a given frequency range. These are the 4352206b73d0SCy Schubert * &enum nl80211_reg_rule_flags. 4353206b73d0SCy Schubert * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory 4354206b73d0SCy Schubert * rule in KHz. This is not a center of frequency but an actual regulatory 4355206b73d0SCy Schubert * band edge. 4356206b73d0SCy Schubert * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule 4357206b73d0SCy Schubert * in KHz. This is not a center a frequency but an actual regulatory 4358206b73d0SCy Schubert * band edge. 4359206b73d0SCy Schubert * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this 4360206b73d0SCy Schubert * frequency range, in KHz. 4361206b73d0SCy Schubert * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain 4362206b73d0SCy Schubert * for a given frequency range. The value is in mBi (100 * dBi). 4363206b73d0SCy Schubert * If you don't have one then don't send this. 4364206b73d0SCy Schubert * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for 4365206b73d0SCy Schubert * a given frequency range. The value is in mBm (100 * dBm). 4366206b73d0SCy Schubert * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 4367206b73d0SCy Schubert * If not present or 0 default CAC time will be used. 4368*a90b9d01SCy Schubert * @NL80211_ATTR_POWER_RULE_PSD: power spectral density (in dBm). 4369*a90b9d01SCy Schubert * This could be negative. 4370206b73d0SCy Schubert * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number 4371206b73d0SCy Schubert * currently defined 4372206b73d0SCy Schubert * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use 4373206b73d0SCy Schubert */ 4374206b73d0SCy Schubert enum nl80211_reg_rule_attr { 4375206b73d0SCy Schubert __NL80211_REG_RULE_ATTR_INVALID, 4376206b73d0SCy Schubert NL80211_ATTR_REG_RULE_FLAGS, 4377206b73d0SCy Schubert 4378206b73d0SCy Schubert NL80211_ATTR_FREQ_RANGE_START, 4379206b73d0SCy Schubert NL80211_ATTR_FREQ_RANGE_END, 4380206b73d0SCy Schubert NL80211_ATTR_FREQ_RANGE_MAX_BW, 4381206b73d0SCy Schubert 4382206b73d0SCy Schubert NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, 4383206b73d0SCy Schubert NL80211_ATTR_POWER_RULE_MAX_EIRP, 4384206b73d0SCy Schubert 4385206b73d0SCy Schubert NL80211_ATTR_DFS_CAC_TIME, 4386206b73d0SCy Schubert 4387*a90b9d01SCy Schubert NL80211_ATTR_POWER_RULE_PSD, 4388*a90b9d01SCy Schubert 4389206b73d0SCy Schubert /* keep last */ 4390206b73d0SCy Schubert __NL80211_REG_RULE_ATTR_AFTER_LAST, 4391206b73d0SCy Schubert NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 4392206b73d0SCy Schubert }; 4393206b73d0SCy Schubert 4394206b73d0SCy Schubert /** 4395206b73d0SCy Schubert * enum nl80211_sched_scan_match_attr - scheduled scan match attributes 4396206b73d0SCy Schubert * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved 4397206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, 4398206b73d0SCy Schubert * only report BSS with matching SSID. 4399206b73d0SCy Schubert * (This cannot be used together with BSSID.) 4400206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a 4401206b73d0SCy Schubert * BSS in scan results. Filtering is turned off if not specified. Note that 4402206b73d0SCy Schubert * if this attribute is in a match set of its own, then it is treated as 4403206b73d0SCy Schubert * the default value for all matchsets with an SSID, rather than being a 4404206b73d0SCy Schubert * matchset of its own without an RSSI filter. This is due to problems with 4405206b73d0SCy Schubert * how this API was implemented in the past. Also, due to the same problem, 4406206b73d0SCy Schubert * the only way to create a matchset with only an RSSI filter (with this 4407206b73d0SCy Schubert * attribute) is if there's only a single matchset with the RSSI attribute. 4408206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI: Flag indicating whether 4409206b73d0SCy Schubert * %NL80211_SCHED_SCAN_MATCH_ATTR_RSSI to be used as absolute RSSI or 4410206b73d0SCy Schubert * relative to current bss's RSSI. 4411206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST: When present the RSSI level for 4412206b73d0SCy Schubert * BSS-es in the specified band is to be adjusted before doing 4413206b73d0SCy Schubert * RSSI-based BSS selection. The attribute value is a packed structure 4414206b73d0SCy Schubert * value as specified by &struct nl80211_bss_select_rssi_adjust. 4415206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching 4416206b73d0SCy Schubert * (this cannot be used together with SSID). 4417206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the 4418206b73d0SCy Schubert * band specific minimum rssi thresholds for the bands defined in 4419206b73d0SCy Schubert * enum nl80211_band. The minimum rssi threshold value(s32) specific to a 4420206b73d0SCy Schubert * band shall be encapsulated in attribute with type value equals to one 4421206b73d0SCy Schubert * of the NL80211_BAND_* defined in enum nl80211_band. For example, the 4422206b73d0SCy Schubert * minimum rssi threshold value for 2.4GHZ band shall be encapsulated 4423206b73d0SCy Schubert * within an attribute of type NL80211_BAND_2GHZ. And one or more of such 4424206b73d0SCy Schubert * attributes will be nested within this attribute. 4425206b73d0SCy Schubert * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter 4426206b73d0SCy Schubert * attribute number currently defined 4427206b73d0SCy Schubert * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use 4428206b73d0SCy Schubert */ 4429206b73d0SCy Schubert enum nl80211_sched_scan_match_attr { 4430206b73d0SCy Schubert __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, 4431206b73d0SCy Schubert 4432206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_SSID, 4433206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_RSSI, 4434206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI, 4435206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST, 4436206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_BSSID, 4437206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, 4438206b73d0SCy Schubert 4439206b73d0SCy Schubert /* keep last */ 4440206b73d0SCy Schubert __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, 4441206b73d0SCy Schubert NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 4442206b73d0SCy Schubert __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1 4443206b73d0SCy Schubert }; 4444206b73d0SCy Schubert 4445206b73d0SCy Schubert /* only for backward compatibility */ 4446206b73d0SCy Schubert #define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID 4447206b73d0SCy Schubert 4448206b73d0SCy Schubert /** 4449206b73d0SCy Schubert * enum nl80211_reg_rule_flags - regulatory rule flags 4450206b73d0SCy Schubert * 4451206b73d0SCy Schubert * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed 4452206b73d0SCy Schubert * @NL80211_RRF_NO_CCK: CCK modulation not allowed 4453206b73d0SCy Schubert * @NL80211_RRF_NO_INDOOR: indoor operation not allowed 4454206b73d0SCy Schubert * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed 4455206b73d0SCy Schubert * @NL80211_RRF_DFS: DFS support is required to be used 4456206b73d0SCy Schubert * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links 4457206b73d0SCy Schubert * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links 4458206b73d0SCy Schubert * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, 4459206b73d0SCy Schubert * this includes probe requests or modes of operation that require 4460206b73d0SCy Schubert * beaconing. 4461206b73d0SCy Schubert * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated 4462206b73d0SCy Schubert * base on contiguous rules and wider channels will be allowed to cross 4463206b73d0SCy Schubert * multiple contiguous/overlapping frequency ranges. 4464206b73d0SCy Schubert * @NL80211_RRF_IR_CONCURRENT: See %NL80211_FREQUENCY_ATTR_IR_CONCURRENT 4465206b73d0SCy Schubert * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation 4466206b73d0SCy Schubert * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation 4467206b73d0SCy Schubert * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed 4468206b73d0SCy Schubert * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed 4469c1d255d3SCy Schubert * @NL80211_RRF_NO_HE: HE operation not allowed 4470*a90b9d01SCy Schubert * @NL80211_RRF_NO_320MHZ: 320MHz operation not allowed 4471*a90b9d01SCy Schubert * @NL80211_RRF_NO_EHT: EHT operation not allowed 4472*a90b9d01SCy Schubert * @NL80211_RRF_PSD: Ruleset has power spectral density value 4473206b73d0SCy Schubert */ 4474206b73d0SCy Schubert enum nl80211_reg_rule_flags { 4475206b73d0SCy Schubert NL80211_RRF_NO_OFDM = 1<<0, 4476206b73d0SCy Schubert NL80211_RRF_NO_CCK = 1<<1, 4477206b73d0SCy Schubert NL80211_RRF_NO_INDOOR = 1<<2, 4478206b73d0SCy Schubert NL80211_RRF_NO_OUTDOOR = 1<<3, 4479206b73d0SCy Schubert NL80211_RRF_DFS = 1<<4, 4480206b73d0SCy Schubert NL80211_RRF_PTP_ONLY = 1<<5, 4481206b73d0SCy Schubert NL80211_RRF_PTMP_ONLY = 1<<6, 4482206b73d0SCy Schubert NL80211_RRF_NO_IR = 1<<7, 4483206b73d0SCy Schubert __NL80211_RRF_NO_IBSS = 1<<8, 4484206b73d0SCy Schubert NL80211_RRF_AUTO_BW = 1<<11, 4485206b73d0SCy Schubert NL80211_RRF_IR_CONCURRENT = 1<<12, 4486206b73d0SCy Schubert NL80211_RRF_NO_HT40MINUS = 1<<13, 4487206b73d0SCy Schubert NL80211_RRF_NO_HT40PLUS = 1<<14, 4488206b73d0SCy Schubert NL80211_RRF_NO_80MHZ = 1<<15, 4489206b73d0SCy Schubert NL80211_RRF_NO_160MHZ = 1<<16, 4490c1d255d3SCy Schubert NL80211_RRF_NO_HE = 1<<17, 4491*a90b9d01SCy Schubert NL80211_RRF_NO_320MHZ = 1<<18, 4492*a90b9d01SCy Schubert NL80211_RRF_NO_EHT = 1<<19, 4493*a90b9d01SCy Schubert NL80211_RRF_PSD = 1<<20, 4494206b73d0SCy Schubert }; 4495206b73d0SCy Schubert 4496206b73d0SCy Schubert #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR 4497206b73d0SCy Schubert #define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR 4498206b73d0SCy Schubert #define NL80211_RRF_NO_IR NL80211_RRF_NO_IR 4499206b73d0SCy Schubert #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\ 4500206b73d0SCy Schubert NL80211_RRF_NO_HT40PLUS) 4501206b73d0SCy Schubert #define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT 4502206b73d0SCy Schubert 4503206b73d0SCy Schubert /* For backport compatibility with older userspace */ 4504206b73d0SCy Schubert #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS) 4505206b73d0SCy Schubert 4506206b73d0SCy Schubert /** 4507206b73d0SCy Schubert * enum nl80211_dfs_regions - regulatory DFS regions 4508206b73d0SCy Schubert * 4509206b73d0SCy Schubert * @NL80211_DFS_UNSET: Country has no DFS master region specified 4510206b73d0SCy Schubert * @NL80211_DFS_FCC: Country follows DFS master rules from FCC 4511206b73d0SCy Schubert * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI 4512206b73d0SCy Schubert * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec 4513206b73d0SCy Schubert */ 4514206b73d0SCy Schubert enum nl80211_dfs_regions { 4515206b73d0SCy Schubert NL80211_DFS_UNSET = 0, 4516206b73d0SCy Schubert NL80211_DFS_FCC = 1, 4517206b73d0SCy Schubert NL80211_DFS_ETSI = 2, 4518206b73d0SCy Schubert NL80211_DFS_JP = 3, 4519206b73d0SCy Schubert }; 4520206b73d0SCy Schubert 4521206b73d0SCy Schubert /** 4522206b73d0SCy Schubert * enum nl80211_user_reg_hint_type - type of user regulatory hint 4523206b73d0SCy Schubert * 4524206b73d0SCy Schubert * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always 4525206b73d0SCy Schubert * assumed if the attribute is not set. 4526206b73d0SCy Schubert * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular 4527206b73d0SCy Schubert * base station. Device drivers that have been tested to work 4528206b73d0SCy Schubert * properly to support this type of hint can enable these hints 4529206b73d0SCy Schubert * by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature 4530206b73d0SCy Schubert * capability on the struct wiphy. The wireless core will 4531206b73d0SCy Schubert * ignore all cell base station hints until at least one device 4532206b73d0SCy Schubert * present has been registered with the wireless core that 4533206b73d0SCy Schubert * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a 4534206b73d0SCy Schubert * supported feature. 4535206b73d0SCy Schubert * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the 4536206b73d0SCy Schubert * platform is operating in an indoor environment. 4537206b73d0SCy Schubert */ 4538206b73d0SCy Schubert enum nl80211_user_reg_hint_type { 4539206b73d0SCy Schubert NL80211_USER_REG_HINT_USER = 0, 4540206b73d0SCy Schubert NL80211_USER_REG_HINT_CELL_BASE = 1, 4541206b73d0SCy Schubert NL80211_USER_REG_HINT_INDOOR = 2, 4542206b73d0SCy Schubert }; 4543206b73d0SCy Schubert 4544206b73d0SCy Schubert /** 4545206b73d0SCy Schubert * enum nl80211_survey_info - survey information 4546206b73d0SCy Schubert * 4547206b73d0SCy Schubert * These attribute types are used with %NL80211_ATTR_SURVEY_INFO 4548206b73d0SCy Schubert * when getting information about a survey. 4549206b73d0SCy Schubert * 4550206b73d0SCy Schubert * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved 4551206b73d0SCy Schubert * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel 4552206b73d0SCy Schubert * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 4553206b73d0SCy Schubert * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used 4554206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio 4555206b73d0SCy Schubert * was turned on (on channel or globally) 4556206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary 4557206b73d0SCy Schubert * channel was sensed busy (either due to activity or energy detect) 4558206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension 4559206b73d0SCy Schubert * channel was sensed busy 4560206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent 4561206b73d0SCy Schubert * receiving data (on channel or globally) 4562206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent 4563206b73d0SCy Schubert * transmitting data (on channel or globally) 4564206b73d0SCy Schubert * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan 4565206b73d0SCy Schubert * (on this channel or globally) 4566206b73d0SCy Schubert * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment 4567c1d255d3SCy Schubert * @NL80211_SURVEY_INFO_TIME_BSS_RX: amount of time the radio spent 4568c1d255d3SCy Schubert * receiving frames destined to the local BSS 4569206b73d0SCy Schubert * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number 4570206b73d0SCy Schubert * currently defined 4571c1d255d3SCy Schubert * @NL80211_SURVEY_INFO_FREQUENCY_OFFSET: center frequency offset in KHz 4572206b73d0SCy Schubert * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use 4573206b73d0SCy Schubert */ 4574206b73d0SCy Schubert enum nl80211_survey_info { 4575206b73d0SCy Schubert __NL80211_SURVEY_INFO_INVALID, 4576206b73d0SCy Schubert NL80211_SURVEY_INFO_FREQUENCY, 4577206b73d0SCy Schubert NL80211_SURVEY_INFO_NOISE, 4578206b73d0SCy Schubert NL80211_SURVEY_INFO_IN_USE, 4579206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME, 4580206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME_BUSY, 4581206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME_EXT_BUSY, 4582206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME_RX, 4583206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME_TX, 4584206b73d0SCy Schubert NL80211_SURVEY_INFO_TIME_SCAN, 4585206b73d0SCy Schubert NL80211_SURVEY_INFO_PAD, 4586c1d255d3SCy Schubert NL80211_SURVEY_INFO_TIME_BSS_RX, 4587c1d255d3SCy Schubert NL80211_SURVEY_INFO_FREQUENCY_OFFSET, 4588206b73d0SCy Schubert 4589206b73d0SCy Schubert /* keep last */ 4590206b73d0SCy Schubert __NL80211_SURVEY_INFO_AFTER_LAST, 4591206b73d0SCy Schubert NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1 4592206b73d0SCy Schubert }; 4593206b73d0SCy Schubert 4594206b73d0SCy Schubert /* keep old names for compatibility */ 4595206b73d0SCy Schubert #define NL80211_SURVEY_INFO_CHANNEL_TIME NL80211_SURVEY_INFO_TIME 4596206b73d0SCy Schubert #define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY NL80211_SURVEY_INFO_TIME_BUSY 4597206b73d0SCy Schubert #define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY NL80211_SURVEY_INFO_TIME_EXT_BUSY 4598206b73d0SCy Schubert #define NL80211_SURVEY_INFO_CHANNEL_TIME_RX NL80211_SURVEY_INFO_TIME_RX 4599206b73d0SCy Schubert #define NL80211_SURVEY_INFO_CHANNEL_TIME_TX NL80211_SURVEY_INFO_TIME_TX 4600206b73d0SCy Schubert 4601206b73d0SCy Schubert /** 4602206b73d0SCy Schubert * enum nl80211_mntr_flags - monitor configuration flags 4603206b73d0SCy Schubert * 4604206b73d0SCy Schubert * Monitor configuration flags. 4605206b73d0SCy Schubert * 4606206b73d0SCy Schubert * @__NL80211_MNTR_FLAG_INVALID: reserved 4607206b73d0SCy Schubert * 4608206b73d0SCy Schubert * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS 4609206b73d0SCy Schubert * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP 4610206b73d0SCy Schubert * @NL80211_MNTR_FLAG_CONTROL: pass control frames 4611206b73d0SCy Schubert * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering 4612206b73d0SCy Schubert * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. 4613206b73d0SCy Schubert * overrides all other flags. 4614206b73d0SCy Schubert * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address 4615206b73d0SCy Schubert * and ACK incoming unicast packets. 4616206b73d0SCy Schubert * 4617206b73d0SCy Schubert * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use 4618206b73d0SCy Schubert * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag 4619206b73d0SCy Schubert */ 4620206b73d0SCy Schubert enum nl80211_mntr_flags { 4621206b73d0SCy Schubert __NL80211_MNTR_FLAG_INVALID, 4622206b73d0SCy Schubert NL80211_MNTR_FLAG_FCSFAIL, 4623206b73d0SCy Schubert NL80211_MNTR_FLAG_PLCPFAIL, 4624206b73d0SCy Schubert NL80211_MNTR_FLAG_CONTROL, 4625206b73d0SCy Schubert NL80211_MNTR_FLAG_OTHER_BSS, 4626206b73d0SCy Schubert NL80211_MNTR_FLAG_COOK_FRAMES, 4627206b73d0SCy Schubert NL80211_MNTR_FLAG_ACTIVE, 4628206b73d0SCy Schubert 4629206b73d0SCy Schubert /* keep last */ 4630206b73d0SCy Schubert __NL80211_MNTR_FLAG_AFTER_LAST, 4631206b73d0SCy Schubert NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1 4632206b73d0SCy Schubert }; 4633206b73d0SCy Schubert 4634206b73d0SCy Schubert /** 4635206b73d0SCy Schubert * enum nl80211_mesh_power_mode - mesh power save modes 4636206b73d0SCy Schubert * 4637206b73d0SCy Schubert * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is 4638206b73d0SCy Schubert * not known or has not been set yet. 4639206b73d0SCy Schubert * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is 4640206b73d0SCy Schubert * in Awake state all the time. 4641206b73d0SCy Schubert * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will 4642206b73d0SCy Schubert * alternate between Active and Doze states, but will wake up for 4643206b73d0SCy Schubert * neighbor's beacons. 4644206b73d0SCy Schubert * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will 4645206b73d0SCy Schubert * alternate between Active and Doze states, but may not wake up 4646206b73d0SCy Schubert * for neighbor's beacons. 4647206b73d0SCy Schubert * 4648206b73d0SCy Schubert * @__NL80211_MESH_POWER_AFTER_LAST - internal use 4649206b73d0SCy Schubert * @NL80211_MESH_POWER_MAX - highest possible power save level 4650206b73d0SCy Schubert */ 4651206b73d0SCy Schubert 4652206b73d0SCy Schubert enum nl80211_mesh_power_mode { 4653206b73d0SCy Schubert NL80211_MESH_POWER_UNKNOWN, 4654206b73d0SCy Schubert NL80211_MESH_POWER_ACTIVE, 4655206b73d0SCy Schubert NL80211_MESH_POWER_LIGHT_SLEEP, 4656206b73d0SCy Schubert NL80211_MESH_POWER_DEEP_SLEEP, 4657206b73d0SCy Schubert 4658206b73d0SCy Schubert __NL80211_MESH_POWER_AFTER_LAST, 4659206b73d0SCy Schubert NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1 4660206b73d0SCy Schubert }; 4661206b73d0SCy Schubert 4662206b73d0SCy Schubert /** 4663206b73d0SCy Schubert * enum nl80211_meshconf_params - mesh configuration parameters 4664206b73d0SCy Schubert * 4665206b73d0SCy Schubert * Mesh configuration parameters. These can be changed while the mesh is 4666206b73d0SCy Schubert * active. 4667206b73d0SCy Schubert * 4668206b73d0SCy Schubert * @__NL80211_MESHCONF_INVALID: internal use 4669206b73d0SCy Schubert * 4670206b73d0SCy Schubert * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in 4671206b73d0SCy Schubert * millisecond units, used by the Peer Link Open message 4672206b73d0SCy Schubert * 4673206b73d0SCy Schubert * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in 4674206b73d0SCy Schubert * millisecond units, used by the peer link management to close a peer link 4675206b73d0SCy Schubert * 4676206b73d0SCy Schubert * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in 4677206b73d0SCy Schubert * millisecond units 4678206b73d0SCy Schubert * 4679206b73d0SCy Schubert * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed 4680206b73d0SCy Schubert * on this mesh interface 4681206b73d0SCy Schubert * 4682206b73d0SCy Schubert * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link 4683206b73d0SCy Schubert * open retries that can be sent to establish a new peer link instance in a 4684206b73d0SCy Schubert * mesh 4685206b73d0SCy Schubert * 4686206b73d0SCy Schubert * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh 4687206b73d0SCy Schubert * point. 4688206b73d0SCy Schubert * 4689206b73d0SCy Schubert * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open 4690206b73d0SCy Schubert * peer links when we detect compatible mesh peers. Disabled if 4691206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are 4692206b73d0SCy Schubert * set. 4693206b73d0SCy Schubert * 4694206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames 4695206b73d0SCy Schubert * containing a PREQ that an MP can send to a particular destination (path 4696206b73d0SCy Schubert * target) 4697206b73d0SCy Schubert * 4698206b73d0SCy Schubert * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths 4699206b73d0SCy Schubert * (in milliseconds) 4700206b73d0SCy Schubert * 4701206b73d0SCy Schubert * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait 4702206b73d0SCy Schubert * until giving up on a path discovery (in milliseconds) 4703206b73d0SCy Schubert * 4704206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh 4705206b73d0SCy Schubert * points receiving a PREQ shall consider the forwarding information from 4706206b73d0SCy Schubert * the root to be valid. (TU = time unit) 4707206b73d0SCy Schubert * 4708206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in 4709206b73d0SCy Schubert * TUs) during which an MP can send only one action frame containing a PREQ 4710206b73d0SCy Schubert * reference element 4711206b73d0SCy Schubert * 4712206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) 4713206b73d0SCy Schubert * that it takes for an HWMP information element to propagate across the 4714206b73d0SCy Schubert * mesh 4715206b73d0SCy Schubert * 4716206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not 4717206b73d0SCy Schubert * 4718206b73d0SCy Schubert * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a 4719206b73d0SCy Schubert * source mesh point for path selection elements. 4720206b73d0SCy Schubert * 4721206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between 4722206b73d0SCy Schubert * root announcements are transmitted. 4723206b73d0SCy Schubert * 4724206b73d0SCy Schubert * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has 4725206b73d0SCy Schubert * access to a broader network beyond the MBSS. This is done via Root 4726206b73d0SCy Schubert * Announcement frames. 4727206b73d0SCy Schubert * 4728206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in 4729206b73d0SCy Schubert * TUs) during which a mesh STA can send only one Action frame containing a 4730206b73d0SCy Schubert * PERR element. 4731206b73d0SCy Schubert * 4732206b73d0SCy Schubert * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding 4733206b73d0SCy Schubert * or forwarding entity (default is TRUE - forwarding entity) 4734206b73d0SCy Schubert * 4735206b73d0SCy Schubert * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the 4736206b73d0SCy Schubert * threshold for average signal strength of candidate station to establish 4737206b73d0SCy Schubert * a peer link. 4738206b73d0SCy Schubert * 4739206b73d0SCy Schubert * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors 4740206b73d0SCy Schubert * to synchronize to for 11s default synchronization method 4741206b73d0SCy Schubert * (see 11C.12.2.2) 4742206b73d0SCy Schubert * 4743206b73d0SCy Schubert * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode. 4744206b73d0SCy Schubert * 4745206b73d0SCy Schubert * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 4746206b73d0SCy Schubert * 4747206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for 4748206b73d0SCy Schubert * which mesh STAs receiving a proactive PREQ shall consider the forwarding 4749206b73d0SCy Schubert * information to the root mesh STA to be valid. 4750206b73d0SCy Schubert * 4751206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between 4752206b73d0SCy Schubert * proactive PREQs are transmitted. 4753206b73d0SCy Schubert * 4754206b73d0SCy Schubert * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time 4755206b73d0SCy Schubert * (in TUs) during which a mesh STA can send only one Action frame 4756206b73d0SCy Schubert * containing a PREQ element for root path confirmation. 4757206b73d0SCy Schubert * 4758206b73d0SCy Schubert * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links. 4759206b73d0SCy Schubert * type &enum nl80211_mesh_power_mode (u32) 4760206b73d0SCy Schubert * 4761206b73d0SCy Schubert * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) 4762206b73d0SCy Schubert * 4763206b73d0SCy Schubert * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've 4764206b73d0SCy Schubert * established peering with for longer than this time (in seconds), then 4765206b73d0SCy Schubert * remove it from the STA's list of peers. You may set this to 0 to disable 4766206b73d0SCy Schubert * the removal of the STA. Default is 30 minutes. 4767206b73d0SCy Schubert * 4768206b73d0SCy Schubert * @NL80211_MESHCONF_CONNECTED_TO_GATE: If set to true then this mesh STA 4769206b73d0SCy Schubert * will advertise that it is connected to a gate in the mesh formation 4770206b73d0SCy Schubert * field. If left unset then the mesh formation field will only 4771206b73d0SCy Schubert * advertise such if there is an active root mesh path. 4772206b73d0SCy Schubert * 4773c1d255d3SCy Schubert * @NL80211_MESHCONF_NOLEARN: Try to avoid multi-hop path discovery (e.g. 4774c1d255d3SCy Schubert * PREQ/PREP for HWMP) if the destination is a direct neighbor. Note that 4775c1d255d3SCy Schubert * this might not be the optimal decision as a multi-hop route might be 4776c1d255d3SCy Schubert * better. So if using this setting you will likely also want to disable 4777c1d255d3SCy Schubert * dot11MeshForwarding and use another mesh routing protocol on top. 4778c1d255d3SCy Schubert * 4779c1d255d3SCy Schubert * @NL80211_MESHCONF_CONNECTED_TO_AS: If set to true then this mesh STA 4780c1d255d3SCy Schubert * will advertise that it is connected to a authentication server 4781c1d255d3SCy Schubert * in the mesh formation field. 4782c1d255d3SCy Schubert * 4783206b73d0SCy Schubert * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 4784206b73d0SCy Schubert */ 4785206b73d0SCy Schubert enum nl80211_meshconf_params { 4786206b73d0SCy Schubert __NL80211_MESHCONF_INVALID, 4787206b73d0SCy Schubert NL80211_MESHCONF_RETRY_TIMEOUT, 4788206b73d0SCy Schubert NL80211_MESHCONF_CONFIRM_TIMEOUT, 4789206b73d0SCy Schubert NL80211_MESHCONF_HOLDING_TIMEOUT, 4790206b73d0SCy Schubert NL80211_MESHCONF_MAX_PEER_LINKS, 4791206b73d0SCy Schubert NL80211_MESHCONF_MAX_RETRIES, 4792206b73d0SCy Schubert NL80211_MESHCONF_TTL, 4793206b73d0SCy Schubert NL80211_MESHCONF_AUTO_OPEN_PLINKS, 4794206b73d0SCy Schubert NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, 4795206b73d0SCy Schubert NL80211_MESHCONF_PATH_REFRESH_TIME, 4796206b73d0SCy Schubert NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, 4797206b73d0SCy Schubert NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, 4798206b73d0SCy Schubert NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, 4799206b73d0SCy Schubert NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, 4800206b73d0SCy Schubert NL80211_MESHCONF_HWMP_ROOTMODE, 4801206b73d0SCy Schubert NL80211_MESHCONF_ELEMENT_TTL, 4802206b73d0SCy Schubert NL80211_MESHCONF_HWMP_RANN_INTERVAL, 4803206b73d0SCy Schubert NL80211_MESHCONF_GATE_ANNOUNCEMENTS, 4804206b73d0SCy Schubert NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, 4805206b73d0SCy Schubert NL80211_MESHCONF_FORWARDING, 4806206b73d0SCy Schubert NL80211_MESHCONF_RSSI_THRESHOLD, 4807206b73d0SCy Schubert NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, 4808206b73d0SCy Schubert NL80211_MESHCONF_HT_OPMODE, 4809206b73d0SCy Schubert NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, 4810206b73d0SCy Schubert NL80211_MESHCONF_HWMP_ROOT_INTERVAL, 4811206b73d0SCy Schubert NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, 4812206b73d0SCy Schubert NL80211_MESHCONF_POWER_MODE, 4813206b73d0SCy Schubert NL80211_MESHCONF_AWAKE_WINDOW, 4814206b73d0SCy Schubert NL80211_MESHCONF_PLINK_TIMEOUT, 4815206b73d0SCy Schubert NL80211_MESHCONF_CONNECTED_TO_GATE, 4816c1d255d3SCy Schubert NL80211_MESHCONF_NOLEARN, 4817c1d255d3SCy Schubert NL80211_MESHCONF_CONNECTED_TO_AS, 4818206b73d0SCy Schubert 4819206b73d0SCy Schubert /* keep last */ 4820206b73d0SCy Schubert __NL80211_MESHCONF_ATTR_AFTER_LAST, 4821206b73d0SCy Schubert NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1 4822206b73d0SCy Schubert }; 4823206b73d0SCy Schubert 4824206b73d0SCy Schubert /** 4825206b73d0SCy Schubert * enum nl80211_mesh_setup_params - mesh setup parameters 4826206b73d0SCy Schubert * 4827206b73d0SCy Schubert * Mesh setup parameters. These are used to start/join a mesh and cannot be 4828206b73d0SCy Schubert * changed while the mesh is active. 4829206b73d0SCy Schubert * 4830206b73d0SCy Schubert * @__NL80211_MESH_SETUP_INVALID: Internal use 4831206b73d0SCy Schubert * 4832206b73d0SCy Schubert * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a 4833206b73d0SCy Schubert * vendor specific path selection algorithm or disable it to use the 4834206b73d0SCy Schubert * default HWMP. 4835206b73d0SCy Schubert * 4836206b73d0SCy Schubert * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a 4837206b73d0SCy Schubert * vendor specific path metric or disable it to use the default Airtime 4838206b73d0SCy Schubert * metric. 4839206b73d0SCy Schubert * 4840206b73d0SCy Schubert * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a 4841206b73d0SCy Schubert * robust security network ie, or a vendor specific information element 4842206b73d0SCy Schubert * that vendors will use to identify the path selection methods and 4843206b73d0SCy Schubert * metrics in use. 4844206b73d0SCy Schubert * 4845206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication 4846206b73d0SCy Schubert * daemon will be authenticating mesh candidates. 4847206b73d0SCy Schubert * 4848206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication 4849206b73d0SCy Schubert * daemon will be securing peer link frames. AMPE is a secured version of 4850206b73d0SCy Schubert * Mesh Peering Management (MPM) and is implemented with the assistance of 4851206b73d0SCy Schubert * a userspace daemon. When this flag is set, the kernel will send peer 4852206b73d0SCy Schubert * management frames to a userspace daemon that will implement AMPE 4853206b73d0SCy Schubert * functionality (security capabilities selection, key confirmation, and 4854206b73d0SCy Schubert * key management). When the flag is unset (default), the kernel can 4855206b73d0SCy Schubert * autonomously complete (unsecured) mesh peering without the need of a 4856206b73d0SCy Schubert * userspace daemon. 4857206b73d0SCy Schubert * 4858206b73d0SCy Schubert * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a 4859206b73d0SCy Schubert * vendor specific synchronization method or disable it to use the default 4860206b73d0SCy Schubert * neighbor offset synchronization 4861206b73d0SCy Schubert * 4862206b73d0SCy Schubert * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will 4863206b73d0SCy Schubert * implement an MPM which handles peer allocation and state. 4864206b73d0SCy Schubert * 4865206b73d0SCy Schubert * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication 4866206b73d0SCy Schubert * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE). 4867206b73d0SCy Schubert * Default is no authentication method required. 4868206b73d0SCy Schubert * 4869206b73d0SCy Schubert * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number 4870206b73d0SCy Schubert * 4871206b73d0SCy Schubert * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use 4872206b73d0SCy Schubert */ 4873206b73d0SCy Schubert enum nl80211_mesh_setup_params { 4874206b73d0SCy Schubert __NL80211_MESH_SETUP_INVALID, 4875206b73d0SCy Schubert NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, 4876206b73d0SCy Schubert NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, 4877206b73d0SCy Schubert NL80211_MESH_SETUP_IE, 4878206b73d0SCy Schubert NL80211_MESH_SETUP_USERSPACE_AUTH, 4879206b73d0SCy Schubert NL80211_MESH_SETUP_USERSPACE_AMPE, 4880206b73d0SCy Schubert NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, 4881206b73d0SCy Schubert NL80211_MESH_SETUP_USERSPACE_MPM, 4882206b73d0SCy Schubert NL80211_MESH_SETUP_AUTH_PROTOCOL, 4883206b73d0SCy Schubert 4884206b73d0SCy Schubert /* keep last */ 4885206b73d0SCy Schubert __NL80211_MESH_SETUP_ATTR_AFTER_LAST, 4886206b73d0SCy Schubert NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1 4887206b73d0SCy Schubert }; 4888206b73d0SCy Schubert 4889206b73d0SCy Schubert /** 4890206b73d0SCy Schubert * enum nl80211_txq_attr - TX queue parameter attributes 4891206b73d0SCy Schubert * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved 4892206b73d0SCy Schubert * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) 4893206b73d0SCy Schubert * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning 4894206b73d0SCy Schubert * disabled 4895206b73d0SCy Schubert * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form 4896206b73d0SCy Schubert * 2^n-1 in the range 1..32767] 4897206b73d0SCy Schubert * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form 4898206b73d0SCy Schubert * 2^n-1 in the range 1..32767] 4899206b73d0SCy Schubert * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255] 4900206b73d0SCy Schubert * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal 4901206b73d0SCy Schubert * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number 4902206b73d0SCy Schubert */ 4903206b73d0SCy Schubert enum nl80211_txq_attr { 4904206b73d0SCy Schubert __NL80211_TXQ_ATTR_INVALID, 4905206b73d0SCy Schubert NL80211_TXQ_ATTR_AC, 4906206b73d0SCy Schubert NL80211_TXQ_ATTR_TXOP, 4907206b73d0SCy Schubert NL80211_TXQ_ATTR_CWMIN, 4908206b73d0SCy Schubert NL80211_TXQ_ATTR_CWMAX, 4909206b73d0SCy Schubert NL80211_TXQ_ATTR_AIFS, 4910206b73d0SCy Schubert 4911206b73d0SCy Schubert /* keep last */ 4912206b73d0SCy Schubert __NL80211_TXQ_ATTR_AFTER_LAST, 4913206b73d0SCy Schubert NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 4914206b73d0SCy Schubert }; 4915206b73d0SCy Schubert 4916206b73d0SCy Schubert enum nl80211_ac { 4917206b73d0SCy Schubert NL80211_AC_VO, 4918206b73d0SCy Schubert NL80211_AC_VI, 4919206b73d0SCy Schubert NL80211_AC_BE, 4920206b73d0SCy Schubert NL80211_AC_BK, 4921206b73d0SCy Schubert NL80211_NUM_ACS 4922206b73d0SCy Schubert }; 4923206b73d0SCy Schubert 4924206b73d0SCy Schubert /* backward compat */ 4925206b73d0SCy Schubert #define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC 4926206b73d0SCy Schubert #define NL80211_TXQ_Q_VO NL80211_AC_VO 4927206b73d0SCy Schubert #define NL80211_TXQ_Q_VI NL80211_AC_VI 4928206b73d0SCy Schubert #define NL80211_TXQ_Q_BE NL80211_AC_BE 4929206b73d0SCy Schubert #define NL80211_TXQ_Q_BK NL80211_AC_BK 4930206b73d0SCy Schubert 4931206b73d0SCy Schubert /** 4932206b73d0SCy Schubert * enum nl80211_channel_type - channel type 4933206b73d0SCy Schubert * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel 4934206b73d0SCy Schubert * @NL80211_CHAN_HT20: 20 MHz HT channel 4935206b73d0SCy Schubert * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel 4936206b73d0SCy Schubert * below the control channel 4937206b73d0SCy Schubert * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel 4938206b73d0SCy Schubert * above the control channel 4939206b73d0SCy Schubert */ 4940206b73d0SCy Schubert enum nl80211_channel_type { 4941206b73d0SCy Schubert NL80211_CHAN_NO_HT, 4942206b73d0SCy Schubert NL80211_CHAN_HT20, 4943206b73d0SCy Schubert NL80211_CHAN_HT40MINUS, 4944206b73d0SCy Schubert NL80211_CHAN_HT40PLUS 4945206b73d0SCy Schubert }; 4946206b73d0SCy Schubert 4947206b73d0SCy Schubert /** 4948206b73d0SCy Schubert * enum nl80211_key_mode - Key mode 4949206b73d0SCy Schubert * 4950206b73d0SCy Schubert * @NL80211_KEY_RX_TX: (Default) 4951206b73d0SCy Schubert * Key can be used for Rx and Tx immediately 4952206b73d0SCy Schubert * 4953206b73d0SCy Schubert * The following modes can only be selected for unicast keys and when the 4954206b73d0SCy Schubert * driver supports @NL80211_EXT_FEATURE_EXT_KEY_ID: 4955206b73d0SCy Schubert * 4956206b73d0SCy Schubert * @NL80211_KEY_NO_TX: Only allowed in combination with @NL80211_CMD_NEW_KEY: 4957206b73d0SCy Schubert * Unicast key can only be used for Rx, Tx not allowed, yet 4958206b73d0SCy Schubert * @NL80211_KEY_SET_TX: Only allowed in combination with @NL80211_CMD_SET_KEY: 4959206b73d0SCy Schubert * The unicast key identified by idx and mac is cleared for Tx and becomes 4960206b73d0SCy Schubert * the preferred Tx key for the station. 4961206b73d0SCy Schubert */ 4962206b73d0SCy Schubert enum nl80211_key_mode { 4963206b73d0SCy Schubert NL80211_KEY_RX_TX, 4964206b73d0SCy Schubert NL80211_KEY_NO_TX, 4965206b73d0SCy Schubert NL80211_KEY_SET_TX 4966206b73d0SCy Schubert }; 4967206b73d0SCy Schubert 4968206b73d0SCy Schubert /** 4969206b73d0SCy Schubert * enum nl80211_chan_width - channel width definitions 4970206b73d0SCy Schubert * 4971206b73d0SCy Schubert * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH 4972206b73d0SCy Schubert * attribute. 4973206b73d0SCy Schubert * 4974206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel 4975206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel 4976206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 4977206b73d0SCy Schubert * attribute must be provided as well 4978206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 4979206b73d0SCy Schubert * attribute must be provided as well 4980206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 4981206b73d0SCy Schubert * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well 4982206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 4983206b73d0SCy Schubert * attribute must be provided as well 4984206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel 4985206b73d0SCy Schubert * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel 4986c1d255d3SCy Schubert * @NL80211_CHAN_WIDTH_1: 1 MHz OFDM channel 4987c1d255d3SCy Schubert * @NL80211_CHAN_WIDTH_2: 2 MHz OFDM channel 4988c1d255d3SCy Schubert * @NL80211_CHAN_WIDTH_4: 4 MHz OFDM channel 4989c1d255d3SCy Schubert * @NL80211_CHAN_WIDTH_8: 8 MHz OFDM channel 4990c1d255d3SCy Schubert * @NL80211_CHAN_WIDTH_16: 16 MHz OFDM channel 4991*a90b9d01SCy Schubert * @NL80211_CHAN_WIDTH_320: 320 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 4992*a90b9d01SCy Schubert * attribute must be provided as well 4993206b73d0SCy Schubert */ 4994206b73d0SCy Schubert enum nl80211_chan_width { 4995206b73d0SCy Schubert NL80211_CHAN_WIDTH_20_NOHT, 4996206b73d0SCy Schubert NL80211_CHAN_WIDTH_20, 4997206b73d0SCy Schubert NL80211_CHAN_WIDTH_40, 4998206b73d0SCy Schubert NL80211_CHAN_WIDTH_80, 4999206b73d0SCy Schubert NL80211_CHAN_WIDTH_80P80, 5000206b73d0SCy Schubert NL80211_CHAN_WIDTH_160, 5001206b73d0SCy Schubert NL80211_CHAN_WIDTH_5, 5002206b73d0SCy Schubert NL80211_CHAN_WIDTH_10, 5003c1d255d3SCy Schubert NL80211_CHAN_WIDTH_1, 5004c1d255d3SCy Schubert NL80211_CHAN_WIDTH_2, 5005c1d255d3SCy Schubert NL80211_CHAN_WIDTH_4, 5006c1d255d3SCy Schubert NL80211_CHAN_WIDTH_8, 5007c1d255d3SCy Schubert NL80211_CHAN_WIDTH_16, 5008*a90b9d01SCy Schubert NL80211_CHAN_WIDTH_320, 5009206b73d0SCy Schubert }; 5010206b73d0SCy Schubert 5011206b73d0SCy Schubert /** 5012206b73d0SCy Schubert * enum nl80211_bss_scan_width - control channel width for a BSS 5013206b73d0SCy Schubert * 5014206b73d0SCy Schubert * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute. 5015206b73d0SCy Schubert * 5016206b73d0SCy Schubert * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible 5017206b73d0SCy Schubert * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide 5018206b73d0SCy Schubert * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide 5019c1d255d3SCy Schubert * @NL80211_BSS_CHAN_WIDTH_1: control channel is 1 MHz wide 5020c1d255d3SCy Schubert * @NL80211_BSS_CHAN_WIDTH_2: control channel is 2 MHz wide 5021206b73d0SCy Schubert */ 5022206b73d0SCy Schubert enum nl80211_bss_scan_width { 5023206b73d0SCy Schubert NL80211_BSS_CHAN_WIDTH_20, 5024206b73d0SCy Schubert NL80211_BSS_CHAN_WIDTH_10, 5025206b73d0SCy Schubert NL80211_BSS_CHAN_WIDTH_5, 5026c1d255d3SCy Schubert NL80211_BSS_CHAN_WIDTH_1, 5027c1d255d3SCy Schubert NL80211_BSS_CHAN_WIDTH_2, 5028206b73d0SCy Schubert }; 5029206b73d0SCy Schubert 5030206b73d0SCy Schubert /** 5031206b73d0SCy Schubert * enum nl80211_bss - netlink attributes for a BSS 5032206b73d0SCy Schubert * 5033206b73d0SCy Schubert * @__NL80211_BSS_INVALID: invalid 5034206b73d0SCy Schubert * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) 5035206b73d0SCy Schubert * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) 5036206b73d0SCy Schubert * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) 5037206b73d0SCy Schubert * (if @NL80211_BSS_PRESP_DATA is present then this is known to be 5038206b73d0SCy Schubert * from a probe response, otherwise it may be from the same beacon 5039206b73d0SCy Schubert * that the NL80211_BSS_BEACON_TSF will be from) 5040206b73d0SCy Schubert * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) 5041206b73d0SCy Schubert * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) 5042206b73d0SCy Schubert * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the 5043206b73d0SCy Schubert * raw information elements from the probe response/beacon (bin); 5044206b73d0SCy Schubert * if the %NL80211_BSS_BEACON_IES attribute is present and the data is 5045206b73d0SCy Schubert * different then the IEs here are from a Probe Response frame; otherwise 5046206b73d0SCy Schubert * they are from a Beacon frame. 5047206b73d0SCy Schubert * However, if the driver does not indicate the source of the IEs, these 5048206b73d0SCy Schubert * IEs may be from either frame subtype. 5049206b73d0SCy Schubert * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the 5050206b73d0SCy Schubert * data here is known to be from a probe response, without any heuristics. 5051206b73d0SCy Schubert * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon 5052206b73d0SCy Schubert * in mBm (100 * dBm) (s32) 5053206b73d0SCy Schubert * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon 5054206b73d0SCy Schubert * in unspecified units, scaled to 0..100 (u8) 5055206b73d0SCy Schubert * @NL80211_BSS_STATUS: status, if this BSS is "used" 5056206b73d0SCy Schubert * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms 5057206b73d0SCy Schubert * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information 5058206b73d0SCy Schubert * elements from a Beacon frame (bin); not present if no Beacon frame has 5059206b73d0SCy Schubert * yet been received 5060206b73d0SCy Schubert * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel 5061*a90b9d01SCy Schubert * (u32, enum nl80211_bss_scan_width) - No longer used! 5062206b73d0SCy Schubert * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64) 5063206b73d0SCy Schubert * (not present if no beacon frame has been received yet) 5064206b73d0SCy Schubert * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and 5065206b73d0SCy Schubert * @NL80211_BSS_TSF is known to be from a probe response (flag attribute) 5066206b73d0SCy Schubert * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry 5067206b73d0SCy Schubert * was last updated by a received frame. The value is expected to be 5068206b73d0SCy Schubert * accurate to about 10ms. (u64, nanoseconds) 5069206b73d0SCy Schubert * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment 5070206b73d0SCy Schubert * @NL80211_BSS_PARENT_TSF: the time at the start of reception of the first 5071206b73d0SCy Schubert * octet of the timestamp field of the last beacon/probe received for 5072206b73d0SCy Schubert * this BSS. The time is the TSF of the BSS specified by 5073206b73d0SCy Schubert * @NL80211_BSS_PARENT_BSSID. (u64). 5074206b73d0SCy Schubert * @NL80211_BSS_PARENT_BSSID: the BSS according to which @NL80211_BSS_PARENT_TSF 5075206b73d0SCy Schubert * is set. 5076206b73d0SCy Schubert * @NL80211_BSS_CHAIN_SIGNAL: per-chain signal strength of last BSS update. 5077206b73d0SCy Schubert * Contains a nested array of signal strength attributes (u8, dBm), 5078206b73d0SCy Schubert * using the nesting index as the antenna number. 5079c1d255d3SCy Schubert * @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz 5080*a90b9d01SCy Schubert * @NL80211_BSS_MLO_LINK_ID: MLO link ID of the BSS (u8). 5081*a90b9d01SCy Schubert * @NL80211_BSS_MLD_ADDR: MLD address of this BSS if connected to it. 5082206b73d0SCy Schubert * @__NL80211_BSS_AFTER_LAST: internal 5083206b73d0SCy Schubert * @NL80211_BSS_MAX: highest BSS attribute 5084206b73d0SCy Schubert */ 5085206b73d0SCy Schubert enum nl80211_bss { 5086206b73d0SCy Schubert __NL80211_BSS_INVALID, 5087206b73d0SCy Schubert NL80211_BSS_BSSID, 5088206b73d0SCy Schubert NL80211_BSS_FREQUENCY, 5089206b73d0SCy Schubert NL80211_BSS_TSF, 5090206b73d0SCy Schubert NL80211_BSS_BEACON_INTERVAL, 5091206b73d0SCy Schubert NL80211_BSS_CAPABILITY, 5092206b73d0SCy Schubert NL80211_BSS_INFORMATION_ELEMENTS, 5093206b73d0SCy Schubert NL80211_BSS_SIGNAL_MBM, 5094206b73d0SCy Schubert NL80211_BSS_SIGNAL_UNSPEC, 5095206b73d0SCy Schubert NL80211_BSS_STATUS, 5096206b73d0SCy Schubert NL80211_BSS_SEEN_MS_AGO, 5097206b73d0SCy Schubert NL80211_BSS_BEACON_IES, 5098206b73d0SCy Schubert NL80211_BSS_CHAN_WIDTH, 5099206b73d0SCy Schubert NL80211_BSS_BEACON_TSF, 5100206b73d0SCy Schubert NL80211_BSS_PRESP_DATA, 5101206b73d0SCy Schubert NL80211_BSS_LAST_SEEN_BOOTTIME, 5102206b73d0SCy Schubert NL80211_BSS_PAD, 5103206b73d0SCy Schubert NL80211_BSS_PARENT_TSF, 5104206b73d0SCy Schubert NL80211_BSS_PARENT_BSSID, 5105206b73d0SCy Schubert NL80211_BSS_CHAIN_SIGNAL, 5106c1d255d3SCy Schubert NL80211_BSS_FREQUENCY_OFFSET, 5107*a90b9d01SCy Schubert NL80211_BSS_MLO_LINK_ID, 5108*a90b9d01SCy Schubert NL80211_BSS_MLD_ADDR, 5109206b73d0SCy Schubert 5110206b73d0SCy Schubert /* keep last */ 5111206b73d0SCy Schubert __NL80211_BSS_AFTER_LAST, 5112206b73d0SCy Schubert NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1 5113206b73d0SCy Schubert }; 5114206b73d0SCy Schubert 5115206b73d0SCy Schubert /** 5116206b73d0SCy Schubert * enum nl80211_bss_status - BSS "status" 5117206b73d0SCy Schubert * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS. 5118206b73d0SCy Schubert * Note that this is no longer used since cfg80211 no longer 5119206b73d0SCy Schubert * keeps track of whether or not authentication was done with 5120206b73d0SCy Schubert * a given BSS. 5121206b73d0SCy Schubert * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS. 5122206b73d0SCy Schubert * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS. 5123206b73d0SCy Schubert * 5124206b73d0SCy Schubert * The BSS status is a BSS attribute in scan dumps, which 5125206b73d0SCy Schubert * indicates the status the interface has wrt. this BSS. 5126206b73d0SCy Schubert */ 5127206b73d0SCy Schubert enum nl80211_bss_status { 5128206b73d0SCy Schubert NL80211_BSS_STATUS_AUTHENTICATED, 5129206b73d0SCy Schubert NL80211_BSS_STATUS_ASSOCIATED, 5130206b73d0SCy Schubert NL80211_BSS_STATUS_IBSS_JOINED, 5131206b73d0SCy Schubert }; 5132206b73d0SCy Schubert 5133206b73d0SCy Schubert /** 5134206b73d0SCy Schubert * enum nl80211_auth_type - AuthenticationType 5135206b73d0SCy Schubert * 5136206b73d0SCy Schubert * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication 5137206b73d0SCy Schubert * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only) 5138206b73d0SCy Schubert * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r) 5139206b73d0SCy Schubert * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP) 5140206b73d0SCy Schubert * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals 5141206b73d0SCy Schubert * @NL80211_AUTHTYPE_FILS_SK: Fast Initial Link Setup shared key 5142206b73d0SCy Schubert * @NL80211_AUTHTYPE_FILS_SK_PFS: Fast Initial Link Setup shared key with PFS 5143206b73d0SCy Schubert * @NL80211_AUTHTYPE_FILS_PK: Fast Initial Link Setup public key 5144206b73d0SCy Schubert * @__NL80211_AUTHTYPE_NUM: internal 5145206b73d0SCy Schubert * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm 5146206b73d0SCy Schubert * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by 5147206b73d0SCy Schubert * trying multiple times); this is invalid in netlink -- leave out 5148206b73d0SCy Schubert * the attribute for this on CONNECT commands. 5149206b73d0SCy Schubert */ 5150206b73d0SCy Schubert enum nl80211_auth_type { 5151206b73d0SCy Schubert NL80211_AUTHTYPE_OPEN_SYSTEM, 5152206b73d0SCy Schubert NL80211_AUTHTYPE_SHARED_KEY, 5153206b73d0SCy Schubert NL80211_AUTHTYPE_FT, 5154206b73d0SCy Schubert NL80211_AUTHTYPE_NETWORK_EAP, 5155206b73d0SCy Schubert NL80211_AUTHTYPE_SAE, 5156206b73d0SCy Schubert NL80211_AUTHTYPE_FILS_SK, 5157206b73d0SCy Schubert NL80211_AUTHTYPE_FILS_SK_PFS, 5158206b73d0SCy Schubert NL80211_AUTHTYPE_FILS_PK, 5159206b73d0SCy Schubert 5160206b73d0SCy Schubert /* keep last */ 5161206b73d0SCy Schubert __NL80211_AUTHTYPE_NUM, 5162206b73d0SCy Schubert NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1, 5163206b73d0SCy Schubert NL80211_AUTHTYPE_AUTOMATIC 5164206b73d0SCy Schubert }; 5165206b73d0SCy Schubert 5166206b73d0SCy Schubert /** 5167206b73d0SCy Schubert * enum nl80211_key_type - Key Type 5168206b73d0SCy Schubert * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key 5169206b73d0SCy Schubert * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key 5170206b73d0SCy Schubert * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) 5171206b73d0SCy Schubert * @NUM_NL80211_KEYTYPES: number of defined key types 5172206b73d0SCy Schubert */ 5173206b73d0SCy Schubert enum nl80211_key_type { 5174206b73d0SCy Schubert NL80211_KEYTYPE_GROUP, 5175206b73d0SCy Schubert NL80211_KEYTYPE_PAIRWISE, 5176206b73d0SCy Schubert NL80211_KEYTYPE_PEERKEY, 5177206b73d0SCy Schubert 5178206b73d0SCy Schubert NUM_NL80211_KEYTYPES 5179206b73d0SCy Schubert }; 5180206b73d0SCy Schubert 5181206b73d0SCy Schubert /** 5182206b73d0SCy Schubert * enum nl80211_mfp - Management frame protection state 5183206b73d0SCy Schubert * @NL80211_MFP_NO: Management frame protection not used 5184206b73d0SCy Schubert * @NL80211_MFP_REQUIRED: Management frame protection required 5185206b73d0SCy Schubert * @NL80211_MFP_OPTIONAL: Management frame protection is optional 5186206b73d0SCy Schubert */ 5187206b73d0SCy Schubert enum nl80211_mfp { 5188206b73d0SCy Schubert NL80211_MFP_NO, 5189206b73d0SCy Schubert NL80211_MFP_REQUIRED, 5190206b73d0SCy Schubert NL80211_MFP_OPTIONAL, 5191206b73d0SCy Schubert }; 5192206b73d0SCy Schubert 5193206b73d0SCy Schubert enum nl80211_wpa_versions { 5194206b73d0SCy Schubert NL80211_WPA_VERSION_1 = 1 << 0, 5195206b73d0SCy Schubert NL80211_WPA_VERSION_2 = 1 << 1, 5196c1d255d3SCy Schubert NL80211_WPA_VERSION_3 = 1 << 2, 5197206b73d0SCy Schubert }; 5198206b73d0SCy Schubert 5199206b73d0SCy Schubert /** 5200206b73d0SCy Schubert * enum nl80211_key_default_types - key default types 5201206b73d0SCy Schubert * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid 5202206b73d0SCy Schubert * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default 5203206b73d0SCy Schubert * unicast key 5204206b73d0SCy Schubert * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default 5205206b73d0SCy Schubert * multicast key 5206206b73d0SCy Schubert * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types 5207206b73d0SCy Schubert */ 5208206b73d0SCy Schubert enum nl80211_key_default_types { 5209206b73d0SCy Schubert __NL80211_KEY_DEFAULT_TYPE_INVALID, 5210206b73d0SCy Schubert NL80211_KEY_DEFAULT_TYPE_UNICAST, 5211206b73d0SCy Schubert NL80211_KEY_DEFAULT_TYPE_MULTICAST, 5212206b73d0SCy Schubert 5213206b73d0SCy Schubert NUM_NL80211_KEY_DEFAULT_TYPES 5214206b73d0SCy Schubert }; 5215206b73d0SCy Schubert 5216206b73d0SCy Schubert /** 5217206b73d0SCy Schubert * enum nl80211_key_attributes - key attributes 5218206b73d0SCy Schubert * @__NL80211_KEY_INVALID: invalid 5219206b73d0SCy Schubert * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of 5220206b73d0SCy Schubert * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 5221206b73d0SCy Schubert * keys 5222206b73d0SCy Schubert * @NL80211_KEY_IDX: key ID (u8, 0-3) 5223206b73d0SCy Schubert * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 5224206b73d0SCy Schubert * section 7.3.2.25.1, e.g. 0x000FAC04) 5225206b73d0SCy Schubert * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 5226206b73d0SCy Schubert * CCMP keys, each six bytes in little endian 5227206b73d0SCy Schubert * @NL80211_KEY_DEFAULT: flag indicating default key 5228206b73d0SCy Schubert * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key 5229206b73d0SCy Schubert * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not 5230206b73d0SCy Schubert * specified the default depends on whether a MAC address was 5231206b73d0SCy Schubert * given with the command using the key or not (u32) 5232206b73d0SCy Schubert * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags 5233206b73d0SCy Schubert * attributes, specifying what a key should be set as default as. 5234206b73d0SCy Schubert * See &enum nl80211_key_default_types. 5235206b73d0SCy Schubert * @NL80211_KEY_MODE: the mode from enum nl80211_key_mode. 5236206b73d0SCy Schubert * Defaults to @NL80211_KEY_RX_TX. 5237c1d255d3SCy Schubert * @NL80211_KEY_DEFAULT_BEACON: flag indicating default Beacon frame key 5238206b73d0SCy Schubert * 5239206b73d0SCy Schubert * @__NL80211_KEY_AFTER_LAST: internal 5240206b73d0SCy Schubert * @NL80211_KEY_MAX: highest key attribute 5241206b73d0SCy Schubert */ 5242206b73d0SCy Schubert enum nl80211_key_attributes { 5243206b73d0SCy Schubert __NL80211_KEY_INVALID, 5244206b73d0SCy Schubert NL80211_KEY_DATA, 5245206b73d0SCy Schubert NL80211_KEY_IDX, 5246206b73d0SCy Schubert NL80211_KEY_CIPHER, 5247206b73d0SCy Schubert NL80211_KEY_SEQ, 5248206b73d0SCy Schubert NL80211_KEY_DEFAULT, 5249206b73d0SCy Schubert NL80211_KEY_DEFAULT_MGMT, 5250206b73d0SCy Schubert NL80211_KEY_TYPE, 5251206b73d0SCy Schubert NL80211_KEY_DEFAULT_TYPES, 5252206b73d0SCy Schubert NL80211_KEY_MODE, 5253c1d255d3SCy Schubert NL80211_KEY_DEFAULT_BEACON, 5254206b73d0SCy Schubert 5255206b73d0SCy Schubert /* keep last */ 5256206b73d0SCy Schubert __NL80211_KEY_AFTER_LAST, 5257206b73d0SCy Schubert NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1 5258206b73d0SCy Schubert }; 5259206b73d0SCy Schubert 5260206b73d0SCy Schubert /** 5261206b73d0SCy Schubert * enum nl80211_tx_rate_attributes - TX rate set attributes 5262206b73d0SCy Schubert * @__NL80211_TXRATE_INVALID: invalid 5263206b73d0SCy Schubert * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection 5264206b73d0SCy Schubert * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with 5265206b73d0SCy Schubert * 1 = 500 kbps) but without the IE length restriction (at most 5266206b73d0SCy Schubert * %NL80211_MAX_SUPP_RATES in a single array). 5267206b73d0SCy Schubert * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection 5268206b73d0SCy Schubert * in an array of MCS numbers. 5269206b73d0SCy Schubert * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, 5270206b73d0SCy Schubert * see &struct nl80211_txrate_vht 5271206b73d0SCy Schubert * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi 5272c1d255d3SCy Schubert * @NL80211_TXRATE_HE: HE rates allowed for TX rate selection, 5273c1d255d3SCy Schubert * see &struct nl80211_txrate_he 5274c1d255d3SCy Schubert * @NL80211_TXRATE_HE_GI: configure HE GI, 0.8us, 1.6us and 3.2us. 5275c1d255d3SCy Schubert * @NL80211_TXRATE_HE_LTF: configure HE LTF, 1XLTF, 2XLTF and 4XLTF. 5276206b73d0SCy Schubert * @__NL80211_TXRATE_AFTER_LAST: internal 5277206b73d0SCy Schubert * @NL80211_TXRATE_MAX: highest TX rate attribute 5278206b73d0SCy Schubert */ 5279206b73d0SCy Schubert enum nl80211_tx_rate_attributes { 5280206b73d0SCy Schubert __NL80211_TXRATE_INVALID, 5281206b73d0SCy Schubert NL80211_TXRATE_LEGACY, 5282206b73d0SCy Schubert NL80211_TXRATE_HT, 5283206b73d0SCy Schubert NL80211_TXRATE_VHT, 5284206b73d0SCy Schubert NL80211_TXRATE_GI, 5285c1d255d3SCy Schubert NL80211_TXRATE_HE, 5286c1d255d3SCy Schubert NL80211_TXRATE_HE_GI, 5287c1d255d3SCy Schubert NL80211_TXRATE_HE_LTF, 5288206b73d0SCy Schubert 5289206b73d0SCy Schubert /* keep last */ 5290206b73d0SCy Schubert __NL80211_TXRATE_AFTER_LAST, 5291206b73d0SCy Schubert NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1 5292206b73d0SCy Schubert }; 5293206b73d0SCy Schubert 5294206b73d0SCy Schubert #define NL80211_TXRATE_MCS NL80211_TXRATE_HT 5295206b73d0SCy Schubert #define NL80211_VHT_NSS_MAX 8 5296206b73d0SCy Schubert 5297206b73d0SCy Schubert /** 5298206b73d0SCy Schubert * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap 5299206b73d0SCy Schubert * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) 5300206b73d0SCy Schubert */ 5301206b73d0SCy Schubert struct nl80211_txrate_vht { 5302206b73d0SCy Schubert __u16 mcs[NL80211_VHT_NSS_MAX]; 5303206b73d0SCy Schubert }; 5304206b73d0SCy Schubert 5305c1d255d3SCy Schubert #define NL80211_HE_NSS_MAX 8 5306c1d255d3SCy Schubert /** 5307c1d255d3SCy Schubert * struct nl80211_txrate_he - HE MCS/NSS txrate bitmap 5308c1d255d3SCy Schubert * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) 5309c1d255d3SCy Schubert */ 5310c1d255d3SCy Schubert struct nl80211_txrate_he { 5311c1d255d3SCy Schubert __u16 mcs[NL80211_HE_NSS_MAX]; 5312c1d255d3SCy Schubert }; 5313c1d255d3SCy Schubert 5314206b73d0SCy Schubert enum nl80211_txrate_gi { 5315206b73d0SCy Schubert NL80211_TXRATE_DEFAULT_GI, 5316206b73d0SCy Schubert NL80211_TXRATE_FORCE_SGI, 5317206b73d0SCy Schubert NL80211_TXRATE_FORCE_LGI, 5318206b73d0SCy Schubert }; 5319206b73d0SCy Schubert 5320206b73d0SCy Schubert /** 5321206b73d0SCy Schubert * enum nl80211_band - Frequency band 5322206b73d0SCy Schubert * @NL80211_BAND_2GHZ: 2.4 GHz ISM band 5323206b73d0SCy Schubert * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz) 5324206b73d0SCy Schubert * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 69.12 GHz) 5325c1d255d3SCy Schubert * @NL80211_BAND_6GHZ: around 6 GHz band (5.9 - 7.2 GHz) 5326c1d255d3SCy Schubert * @NL80211_BAND_S1GHZ: around 900MHz, supported by S1G PHYs 5327*a90b9d01SCy Schubert * @NL80211_BAND_LC: light communication band (placeholder) 5328206b73d0SCy Schubert * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace 5329206b73d0SCy Schubert * since newer kernel versions may support more bands 5330206b73d0SCy Schubert */ 5331206b73d0SCy Schubert enum nl80211_band { 5332206b73d0SCy Schubert NL80211_BAND_2GHZ, 5333206b73d0SCy Schubert NL80211_BAND_5GHZ, 5334206b73d0SCy Schubert NL80211_BAND_60GHZ, 5335c1d255d3SCy Schubert NL80211_BAND_6GHZ, 5336c1d255d3SCy Schubert NL80211_BAND_S1GHZ, 5337*a90b9d01SCy Schubert NL80211_BAND_LC, 5338206b73d0SCy Schubert 5339206b73d0SCy Schubert NUM_NL80211_BANDS, 5340206b73d0SCy Schubert }; 5341206b73d0SCy Schubert 5342206b73d0SCy Schubert /** 5343206b73d0SCy Schubert * enum nl80211_ps_state - powersave state 5344206b73d0SCy Schubert * @NL80211_PS_DISABLED: powersave is disabled 5345206b73d0SCy Schubert * @NL80211_PS_ENABLED: powersave is enabled 5346206b73d0SCy Schubert */ 5347206b73d0SCy Schubert enum nl80211_ps_state { 5348206b73d0SCy Schubert NL80211_PS_DISABLED, 5349206b73d0SCy Schubert NL80211_PS_ENABLED, 5350206b73d0SCy Schubert }; 5351206b73d0SCy Schubert 5352206b73d0SCy Schubert /** 5353206b73d0SCy Schubert * enum nl80211_attr_cqm - connection quality monitor attributes 5354206b73d0SCy Schubert * @__NL80211_ATTR_CQM_INVALID: invalid 5355206b73d0SCy Schubert * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies 5356206b73d0SCy Schubert * the threshold for the RSSI level at which an event will be sent. Zero 5357206b73d0SCy Schubert * to disable. Alternatively, if %NL80211_EXT_FEATURE_CQM_RSSI_LIST is 5358206b73d0SCy Schubert * set, multiple values can be supplied as a low-to-high sorted array of 5359206b73d0SCy Schubert * threshold values in dBm. Events will be sent when the RSSI value 5360206b73d0SCy Schubert * crosses any of the thresholds. 5361206b73d0SCy Schubert * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies 5362206b73d0SCy Schubert * the minimum amount the RSSI level must change after an event before a 5363206b73d0SCy Schubert * new event may be issued (to reduce effects of RSSI oscillation). 5364206b73d0SCy Schubert * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event 5365206b73d0SCy Schubert * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many 5366206b73d0SCy Schubert * consecutive packets were not acknowledged by the peer 5367206b73d0SCy Schubert * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures 5368206b73d0SCy Schubert * during the given %NL80211_ATTR_CQM_TXE_INTVL before an 5369206b73d0SCy Schubert * %NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and 5370206b73d0SCy Schubert * %NL80211_ATTR_CQM_TXE_PKTS is generated. 5371206b73d0SCy Schubert * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given 5372206b73d0SCy Schubert * %NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is 5373206b73d0SCy Schubert * checked. 5374206b73d0SCy Schubert * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic 5375206b73d0SCy Schubert * interval in which %NL80211_ATTR_CQM_TXE_PKTS and 5376206b73d0SCy Schubert * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an 5377206b73d0SCy Schubert * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting. 5378206b73d0SCy Schubert * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon 5379206b73d0SCy Schubert * loss event 5380206b73d0SCy Schubert * @NL80211_ATTR_CQM_RSSI_LEVEL: the RSSI value in dBm that triggered the 5381206b73d0SCy Schubert * RSSI threshold event. 5382206b73d0SCy Schubert * @__NL80211_ATTR_CQM_AFTER_LAST: internal 5383206b73d0SCy Schubert * @NL80211_ATTR_CQM_MAX: highest key attribute 5384206b73d0SCy Schubert */ 5385206b73d0SCy Schubert enum nl80211_attr_cqm { 5386206b73d0SCy Schubert __NL80211_ATTR_CQM_INVALID, 5387206b73d0SCy Schubert NL80211_ATTR_CQM_RSSI_THOLD, 5388206b73d0SCy Schubert NL80211_ATTR_CQM_RSSI_HYST, 5389206b73d0SCy Schubert NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, 5390206b73d0SCy Schubert NL80211_ATTR_CQM_PKT_LOSS_EVENT, 5391206b73d0SCy Schubert NL80211_ATTR_CQM_TXE_RATE, 5392206b73d0SCy Schubert NL80211_ATTR_CQM_TXE_PKTS, 5393206b73d0SCy Schubert NL80211_ATTR_CQM_TXE_INTVL, 5394206b73d0SCy Schubert NL80211_ATTR_CQM_BEACON_LOSS_EVENT, 5395206b73d0SCy Schubert NL80211_ATTR_CQM_RSSI_LEVEL, 5396206b73d0SCy Schubert 5397206b73d0SCy Schubert /* keep last */ 5398206b73d0SCy Schubert __NL80211_ATTR_CQM_AFTER_LAST, 5399206b73d0SCy Schubert NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1 5400206b73d0SCy Schubert }; 5401206b73d0SCy Schubert 5402206b73d0SCy Schubert /** 5403206b73d0SCy Schubert * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event 5404206b73d0SCy Schubert * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the 5405206b73d0SCy Schubert * configured threshold 5406206b73d0SCy Schubert * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the 5407206b73d0SCy Schubert * configured threshold 5408206b73d0SCy Schubert * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent) 5409206b73d0SCy Schubert */ 5410206b73d0SCy Schubert enum nl80211_cqm_rssi_threshold_event { 5411206b73d0SCy Schubert NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW, 5412206b73d0SCy Schubert NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, 5413206b73d0SCy Schubert NL80211_CQM_RSSI_BEACON_LOSS_EVENT, 5414206b73d0SCy Schubert }; 5415206b73d0SCy Schubert 5416206b73d0SCy Schubert 5417206b73d0SCy Schubert /** 5418206b73d0SCy Schubert * enum nl80211_tx_power_setting - TX power adjustment 5419206b73d0SCy Schubert * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power 5420206b73d0SCy Schubert * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter 5421206b73d0SCy Schubert * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter 5422206b73d0SCy Schubert */ 5423206b73d0SCy Schubert enum nl80211_tx_power_setting { 5424206b73d0SCy Schubert NL80211_TX_POWER_AUTOMATIC, 5425206b73d0SCy Schubert NL80211_TX_POWER_LIMITED, 5426206b73d0SCy Schubert NL80211_TX_POWER_FIXED, 5427206b73d0SCy Schubert }; 5428206b73d0SCy Schubert 5429206b73d0SCy Schubert /** 5430c1d255d3SCy Schubert * enum nl80211_tid_config - TID config state 5431c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ENABLE: Enable config for the TID 5432c1d255d3SCy Schubert * @NL80211_TID_CONFIG_DISABLE: Disable config for the TID 5433c1d255d3SCy Schubert */ 5434c1d255d3SCy Schubert enum nl80211_tid_config { 5435c1d255d3SCy Schubert NL80211_TID_CONFIG_ENABLE, 5436c1d255d3SCy Schubert NL80211_TID_CONFIG_DISABLE, 5437c1d255d3SCy Schubert }; 5438c1d255d3SCy Schubert 5439c1d255d3SCy Schubert /* enum nl80211_tx_rate_setting - TX rate configuration type 5440c1d255d3SCy Schubert * @NL80211_TX_RATE_AUTOMATIC: automatically determine TX rate 5441c1d255d3SCy Schubert * @NL80211_TX_RATE_LIMITED: limit the TX rate by the TX rate parameter 5442c1d255d3SCy Schubert * @NL80211_TX_RATE_FIXED: fix TX rate to the TX rate parameter 5443c1d255d3SCy Schubert */ 5444c1d255d3SCy Schubert enum nl80211_tx_rate_setting { 5445c1d255d3SCy Schubert NL80211_TX_RATE_AUTOMATIC, 5446c1d255d3SCy Schubert NL80211_TX_RATE_LIMITED, 5447c1d255d3SCy Schubert NL80211_TX_RATE_FIXED, 5448c1d255d3SCy Schubert }; 5449c1d255d3SCy Schubert 5450c1d255d3SCy Schubert /* enum nl80211_tid_config_attr - TID specific configuration. 5451c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_PAD: pad attribute for 64-bit values 5452c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_VIF_SUPP: a bitmap (u64) of attributes supported 5453c1d255d3SCy Schubert * for per-vif configuration; doesn't list the ones that are generic 5454c1d255d3SCy Schubert * (%NL80211_TID_CONFIG_ATTR_TIDS, %NL80211_TID_CONFIG_ATTR_OVERRIDE). 5455c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_PEER_SUPP: same as the previous per-vif one, but 5456c1d255d3SCy Schubert * per peer instead. 5457c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribue, if set indicates 5458c1d255d3SCy Schubert * that the new configuration overrides all previous peer 5459c1d255d3SCy Schubert * configurations, otherwise previous peer specific configurations 5460c1d255d3SCy Schubert * should be left untouched. 5461c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_TIDS: a bitmask value of TIDs (bit 0 to 7) 5462c1d255d3SCy Schubert * Its type is u16. 5463c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_NOACK: Configure ack policy for the TID. 5464c1d255d3SCy Schubert * specified in %NL80211_TID_CONFIG_ATTR_TID. see %enum nl80211_tid_config. 5465c1d255d3SCy Schubert * Its type is u8. 5466c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_RETRY_SHORT: Number of retries used with data frame 5467c1d255d3SCy Schubert * transmission, user-space sets this configuration in 5468c1d255d3SCy Schubert * &NL80211_CMD_SET_TID_CONFIG. It is u8 type, min value is 1 and 5469c1d255d3SCy Schubert * the max value is advertised by the driver in this attribute on 5470c1d255d3SCy Schubert * output in wiphy capabilities. 5471c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_RETRY_LONG: Number of retries used with data frame 5472c1d255d3SCy Schubert * transmission, user-space sets this configuration in 5473c1d255d3SCy Schubert * &NL80211_CMD_SET_TID_CONFIG. Its type is u8, min value is 1 and 5474c1d255d3SCy Schubert * the max value is advertised by the driver in this attribute on 5475c1d255d3SCy Schubert * output in wiphy capabilities. 5476c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_AMPDU_CTRL: Enable/Disable MPDU aggregation 5477c1d255d3SCy Schubert * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS. 5478c1d255d3SCy Schubert * Its type is u8, using the values from &nl80211_tid_config. 5479c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL: Enable/Disable RTS_CTS for the TIDs 5480c1d255d3SCy Schubert * specified in %NL80211_TID_CONFIG_ATTR_TIDS. It is u8 type, using 5481c1d255d3SCy Schubert * the values from &nl80211_tid_config. 5482c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_AMSDU_CTRL: Enable/Disable MSDU aggregation 5483c1d255d3SCy Schubert * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS. 5484c1d255d3SCy Schubert * Its type is u8, using the values from &nl80211_tid_config. 5485c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE: This attribute will be useful 5486c1d255d3SCy Schubert * to notfiy the driver that what type of txrate should be used 5487c1d255d3SCy Schubert * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS. using 5488c1d255d3SCy Schubert * the values form &nl80211_tx_rate_setting. 5489c1d255d3SCy Schubert * @NL80211_TID_CONFIG_ATTR_TX_RATE: Data frame TX rate mask should be applied 5490c1d255d3SCy Schubert * with the parameters passed through %NL80211_ATTR_TX_RATES. 5491c1d255d3SCy Schubert * configuration is applied to the data frame for the tid to that connected 5492c1d255d3SCy Schubert * station. 5493c1d255d3SCy Schubert */ 5494c1d255d3SCy Schubert enum nl80211_tid_config_attr { 5495c1d255d3SCy Schubert __NL80211_TID_CONFIG_ATTR_INVALID, 5496c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_PAD, 5497c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_VIF_SUPP, 5498c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_PEER_SUPP, 5499c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_OVERRIDE, 5500c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_TIDS, 5501c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_NOACK, 5502c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_RETRY_SHORT, 5503c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_RETRY_LONG, 5504c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_AMPDU_CTRL, 5505c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL, 5506c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_AMSDU_CTRL, 5507c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE, 5508c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_TX_RATE, 5509c1d255d3SCy Schubert 5510c1d255d3SCy Schubert /* keep last */ 5511c1d255d3SCy Schubert __NL80211_TID_CONFIG_ATTR_AFTER_LAST, 5512c1d255d3SCy Schubert NL80211_TID_CONFIG_ATTR_MAX = __NL80211_TID_CONFIG_ATTR_AFTER_LAST - 1 5513c1d255d3SCy Schubert }; 5514c1d255d3SCy Schubert 5515c1d255d3SCy Schubert /** 5516206b73d0SCy Schubert * enum nl80211_packet_pattern_attr - packet pattern attribute 5517206b73d0SCy Schubert * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute 5518206b73d0SCy Schubert * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has 5519206b73d0SCy Schubert * a zero bit are ignored 5520206b73d0SCy Schubert * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have 5521206b73d0SCy Schubert * a bit for each byte in the pattern. The lowest-order bit corresponds 5522206b73d0SCy Schubert * to the first byte of the pattern, but the bytes of the pattern are 5523206b73d0SCy Schubert * in a little-endian-like format, i.e. the 9th byte of the pattern 5524206b73d0SCy Schubert * corresponds to the lowest-order bit in the second byte of the mask. 5525206b73d0SCy Schubert * For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where 5526206b73d0SCy Schubert * xx indicates "don't care") would be represented by a pattern of 5527206b73d0SCy Schubert * twelve zero bytes, and a mask of "0xed,0x01". 5528206b73d0SCy Schubert * Note that the pattern matching is done as though frames were not 5529206b73d0SCy Schubert * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked 5530206b73d0SCy Schubert * first (including SNAP header unpacking) and then matched. 5531206b73d0SCy Schubert * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after 5532206b73d0SCy Schubert * these fixed number of bytes of received packet 5533206b73d0SCy Schubert * @NUM_NL80211_PKTPAT: number of attributes 5534206b73d0SCy Schubert * @MAX_NL80211_PKTPAT: max attribute number 5535206b73d0SCy Schubert */ 5536206b73d0SCy Schubert enum nl80211_packet_pattern_attr { 5537206b73d0SCy Schubert __NL80211_PKTPAT_INVALID, 5538206b73d0SCy Schubert NL80211_PKTPAT_MASK, 5539206b73d0SCy Schubert NL80211_PKTPAT_PATTERN, 5540206b73d0SCy Schubert NL80211_PKTPAT_OFFSET, 5541206b73d0SCy Schubert 5542206b73d0SCy Schubert NUM_NL80211_PKTPAT, 5543206b73d0SCy Schubert MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1, 5544206b73d0SCy Schubert }; 5545206b73d0SCy Schubert 5546206b73d0SCy Schubert /** 5547206b73d0SCy Schubert * struct nl80211_pattern_support - packet pattern support information 5548206b73d0SCy Schubert * @max_patterns: maximum number of patterns supported 5549206b73d0SCy Schubert * @min_pattern_len: minimum length of each pattern 5550206b73d0SCy Schubert * @max_pattern_len: maximum length of each pattern 5551206b73d0SCy Schubert * @max_pkt_offset: maximum Rx packet offset 5552206b73d0SCy Schubert * 5553206b73d0SCy Schubert * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when 5554206b73d0SCy Schubert * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in 5555206b73d0SCy Schubert * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of 5556206b73d0SCy Schubert * %NL80211_ATTR_COALESCE_RULE in the capability information given 5557206b73d0SCy Schubert * by the kernel to userspace. 5558206b73d0SCy Schubert */ 5559206b73d0SCy Schubert struct nl80211_pattern_support { 5560206b73d0SCy Schubert __u32 max_patterns; 5561206b73d0SCy Schubert __u32 min_pattern_len; 5562206b73d0SCy Schubert __u32 max_pattern_len; 5563206b73d0SCy Schubert __u32 max_pkt_offset; 5564206b73d0SCy Schubert } __attribute__((packed)); 5565206b73d0SCy Schubert 5566206b73d0SCy Schubert /* only for backward compatibility */ 5567206b73d0SCy Schubert #define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID 5568206b73d0SCy Schubert #define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK 5569206b73d0SCy Schubert #define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN 5570206b73d0SCy Schubert #define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET 5571206b73d0SCy Schubert #define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT 5572206b73d0SCy Schubert #define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT 5573206b73d0SCy Schubert #define nl80211_wowlan_pattern_support nl80211_pattern_support 5574206b73d0SCy Schubert 5575206b73d0SCy Schubert /** 5576206b73d0SCy Schubert * enum nl80211_wowlan_triggers - WoWLAN trigger definitions 5577206b73d0SCy Schubert * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes 5578206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put 5579206b73d0SCy Schubert * the chip into a special state -- works best with chips that have 5580206b73d0SCy Schubert * support for low-power operation already (flag) 5581206b73d0SCy Schubert * Note that this mode is incompatible with all of the others, if 5582206b73d0SCy Schubert * any others are even supported by the device. 5583206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect 5584206b73d0SCy Schubert * is detected is implementation-specific (flag) 5585206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed 5586206b73d0SCy Schubert * by 16 repetitions of MAC addr, anywhere in payload) (flag) 5587206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns 5588206b73d0SCy Schubert * which are passed in an array of nested attributes, each nested attribute 5589206b73d0SCy Schubert * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern. 5590206b73d0SCy Schubert * Each pattern defines a wakeup packet. Packet offset is associated with 5591206b73d0SCy Schubert * each pattern which is used while matching the pattern. The matching is 5592206b73d0SCy Schubert * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the 5593206b73d0SCy Schubert * pattern matching is done after the packet is converted to the MSDU. 5594206b73d0SCy Schubert * 5595206b73d0SCy Schubert * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute 5596206b73d0SCy Schubert * carrying a &struct nl80211_pattern_support. 5597206b73d0SCy Schubert * 5598206b73d0SCy Schubert * When reporting wakeup. it is a u32 attribute containing the 0-based 5599206b73d0SCy Schubert * index of the pattern that caused the wakeup, in the patterns passed 5600206b73d0SCy Schubert * to the kernel when configuring. 5601206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be 5602206b73d0SCy Schubert * used when setting, used only to indicate that GTK rekeying is supported 5603206b73d0SCy Schubert * by the device (flag) 5604206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if 5605206b73d0SCy Schubert * done by the device) (flag) 5606206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request 5607206b73d0SCy Schubert * packet (flag) 5608206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag) 5609206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released 5610206b73d0SCy Schubert * (on devices that have rfkill in the device) (flag) 5611206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains 5612206b73d0SCy Schubert * the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame 5613206b73d0SCy Schubert * may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN 5614206b73d0SCy Schubert * attribute contains the original length. 5615206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11 5616206b73d0SCy Schubert * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 5617206b73d0SCy Schubert * attribute if the packet was truncated somewhere. 5618206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the 5619206b73d0SCy Schubert * 802.11 packet that caused the wakeup, e.g. a magic packet. The frame may 5620206b73d0SCy Schubert * be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute 5621206b73d0SCy Schubert * contains the original length. 5622206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3 5623206b73d0SCy Schubert * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 5624206b73d0SCy Schubert * attribute if the packet was truncated somewhere. 5625206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section 5626206b73d0SCy Schubert * "TCP connection wakeup" for more details. This is a nested attribute 5627206b73d0SCy Schubert * containing the exact information for establishing and keeping alive 5628206b73d0SCy Schubert * the TCP connection. 5629206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the 5630206b73d0SCy Schubert * wakeup packet was received on the TCP connection 5631206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the 5632206b73d0SCy Schubert * TCP connection was lost or failed to be established 5633206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only, 5634206b73d0SCy Schubert * the TCP connection ran out of tokens to use for data to send to the 5635206b73d0SCy Schubert * service 5636206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network 5637206b73d0SCy Schubert * is detected. This is a nested attribute that contains the 5638206b73d0SCy Schubert * same attributes used with @NL80211_CMD_START_SCHED_SCAN. It 5639206b73d0SCy Schubert * specifies how the scan is performed (e.g. the interval, the 5640206b73d0SCy Schubert * channels to scan and the initial delay) as well as the scan 5641206b73d0SCy Schubert * results that will trigger a wake (i.e. the matchsets). This 5642206b73d0SCy Schubert * attribute is also sent in a response to 5643206b73d0SCy Schubert * @NL80211_CMD_GET_WIPHY, indicating the number of match sets 5644206b73d0SCy Schubert * supported by the driver (u32). 5645206b73d0SCy Schubert * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute 5646206b73d0SCy Schubert * containing an array with information about what triggered the 5647206b73d0SCy Schubert * wake up. If no elements are present in the array, it means 5648206b73d0SCy Schubert * that the information is not available. If more than one 5649206b73d0SCy Schubert * element is present, it means that more than one match 5650206b73d0SCy Schubert * occurred. 5651206b73d0SCy Schubert * Each element in the array is a nested attribute that contains 5652206b73d0SCy Schubert * one optional %NL80211_ATTR_SSID attribute and one optional 5653206b73d0SCy Schubert * %NL80211_ATTR_SCAN_FREQUENCIES attribute. At least one of 5654206b73d0SCy Schubert * these attributes must be present. If 5655206b73d0SCy Schubert * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one 5656206b73d0SCy Schubert * frequency, it means that the match occurred in more than one 5657206b73d0SCy Schubert * channel. 5658206b73d0SCy Schubert * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers 5659206b73d0SCy Schubert * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number 5660206b73d0SCy Schubert * 5661206b73d0SCy Schubert * These nested attributes are used to configure the wakeup triggers and 5662206b73d0SCy Schubert * to report the wakeup reason(s). 5663206b73d0SCy Schubert */ 5664206b73d0SCy Schubert enum nl80211_wowlan_triggers { 5665206b73d0SCy Schubert __NL80211_WOWLAN_TRIG_INVALID, 5666206b73d0SCy Schubert NL80211_WOWLAN_TRIG_ANY, 5667206b73d0SCy Schubert NL80211_WOWLAN_TRIG_DISCONNECT, 5668206b73d0SCy Schubert NL80211_WOWLAN_TRIG_MAGIC_PKT, 5669206b73d0SCy Schubert NL80211_WOWLAN_TRIG_PKT_PATTERN, 5670206b73d0SCy Schubert NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED, 5671206b73d0SCy Schubert NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE, 5672206b73d0SCy Schubert NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST, 5673206b73d0SCy Schubert NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE, 5674206b73d0SCy Schubert NL80211_WOWLAN_TRIG_RFKILL_RELEASE, 5675206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211, 5676206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN, 5677206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023, 5678206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN, 5679206b73d0SCy Schubert NL80211_WOWLAN_TRIG_TCP_CONNECTION, 5680206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH, 5681206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST, 5682206b73d0SCy Schubert NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, 5683206b73d0SCy Schubert NL80211_WOWLAN_TRIG_NET_DETECT, 5684206b73d0SCy Schubert NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS, 5685206b73d0SCy Schubert 5686206b73d0SCy Schubert /* keep last */ 5687206b73d0SCy Schubert NUM_NL80211_WOWLAN_TRIG, 5688206b73d0SCy Schubert MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1 5689206b73d0SCy Schubert }; 5690206b73d0SCy Schubert 5691206b73d0SCy Schubert /** 5692206b73d0SCy Schubert * DOC: TCP connection wakeup 5693206b73d0SCy Schubert * 5694206b73d0SCy Schubert * Some devices can establish a TCP connection in order to be woken up by a 5695206b73d0SCy Schubert * packet coming in from outside their network segment, or behind NAT. If 5696206b73d0SCy Schubert * configured, the device will establish a TCP connection to the given 5697206b73d0SCy Schubert * service, and periodically send data to that service. The first data 5698206b73d0SCy Schubert * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK. 5699206b73d0SCy Schubert * The data packets can optionally include a (little endian) sequence 5700206b73d0SCy Schubert * number (in the TCP payload!) that is generated by the device, and, also 5701206b73d0SCy Schubert * optionally, a token from a list of tokens. This serves as a keep-alive 5702206b73d0SCy Schubert * with the service, and for NATed connections, etc. 5703206b73d0SCy Schubert * 5704206b73d0SCy Schubert * During this keep-alive period, the server doesn't send any data to the 5705206b73d0SCy Schubert * client. When receiving data, it is compared against the wakeup pattern 5706206b73d0SCy Schubert * (and mask) and if it matches, the host is woken up. Similarly, if the 5707206b73d0SCy Schubert * connection breaks or cannot be established to start with, the host is 5708206b73d0SCy Schubert * also woken up. 5709206b73d0SCy Schubert * 5710206b73d0SCy Schubert * Developer's note: ARP offload is required for this, otherwise TCP 5711206b73d0SCy Schubert * response packets might not go through correctly. 5712206b73d0SCy Schubert */ 5713206b73d0SCy Schubert 5714206b73d0SCy Schubert /** 5715206b73d0SCy Schubert * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence 5716206b73d0SCy Schubert * @start: starting value 5717206b73d0SCy Schubert * @offset: offset of sequence number in packet 5718206b73d0SCy Schubert * @len: length of the sequence value to write, 1 through 4 5719206b73d0SCy Schubert * 5720206b73d0SCy Schubert * Note: don't confuse with the TCP sequence number(s), this is for the 5721206b73d0SCy Schubert * keepalive packet payload. The actual value is written into the packet 5722206b73d0SCy Schubert * in little endian. 5723206b73d0SCy Schubert */ 5724206b73d0SCy Schubert struct nl80211_wowlan_tcp_data_seq { 5725206b73d0SCy Schubert __u32 start, offset, len; 5726206b73d0SCy Schubert }; 5727206b73d0SCy Schubert 5728206b73d0SCy Schubert /** 5729206b73d0SCy Schubert * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config 5730206b73d0SCy Schubert * @offset: offset of token in packet 5731206b73d0SCy Schubert * @len: length of each token 5732206b73d0SCy Schubert * @token_stream: stream of data to be used for the tokens, the length must 5733206b73d0SCy Schubert * be a multiple of @len for this to make sense 5734206b73d0SCy Schubert */ 5735206b73d0SCy Schubert struct nl80211_wowlan_tcp_data_token { 5736206b73d0SCy Schubert __u32 offset, len; 5737206b73d0SCy Schubert __u8 token_stream[]; 5738206b73d0SCy Schubert }; 5739206b73d0SCy Schubert 5740206b73d0SCy Schubert /** 5741206b73d0SCy Schubert * struct nl80211_wowlan_tcp_data_token_feature - data token features 5742206b73d0SCy Schubert * @min_len: minimum token length 5743206b73d0SCy Schubert * @max_len: maximum token length 5744206b73d0SCy Schubert * @bufsize: total available token buffer size (max size of @token_stream) 5745206b73d0SCy Schubert */ 5746206b73d0SCy Schubert struct nl80211_wowlan_tcp_data_token_feature { 5747206b73d0SCy Schubert __u32 min_len, max_len, bufsize; 5748206b73d0SCy Schubert }; 5749206b73d0SCy Schubert 5750206b73d0SCy Schubert /** 5751206b73d0SCy Schubert * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters 5752206b73d0SCy Schubert * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes 5753206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order) 5754206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address 5755206b73d0SCy Schubert * (in network byte order) 5756206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because 5757206b73d0SCy Schubert * route lookup when configured might be invalid by the time we suspend, 5758206b73d0SCy Schubert * and doing a route lookup when suspending is no longer possible as it 5759206b73d0SCy Schubert * might require ARP querying. 5760206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a 5761206b73d0SCy Schubert * socket and port will be allocated 5762206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16) 5763206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte. 5764206b73d0SCy Schubert * For feature advertising, a u32 attribute holding the maximum length 5765206b73d0SCy Schubert * of the data payload. 5766206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration 5767206b73d0SCy Schubert * (if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature 5768206b73d0SCy Schubert * advertising it is just a flag 5769206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration, 5770206b73d0SCy Schubert * see &struct nl80211_wowlan_tcp_data_token and for advertising see 5771206b73d0SCy Schubert * &struct nl80211_wowlan_tcp_data_token_feature. 5772206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum 5773206b73d0SCy Schubert * interval in feature advertising (u32) 5774206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a 5775206b73d0SCy Schubert * u32 attribute holding the maximum length 5776206b73d0SCy Schubert * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for 5777206b73d0SCy Schubert * feature advertising. The mask works like @NL80211_PKTPAT_MASK 5778206b73d0SCy Schubert * but on the TCP payload only. 5779206b73d0SCy Schubert * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes 5780206b73d0SCy Schubert * @MAX_NL80211_WOWLAN_TCP: highest attribute number 5781206b73d0SCy Schubert */ 5782206b73d0SCy Schubert enum nl80211_wowlan_tcp_attrs { 5783206b73d0SCy Schubert __NL80211_WOWLAN_TCP_INVALID, 5784206b73d0SCy Schubert NL80211_WOWLAN_TCP_SRC_IPV4, 5785206b73d0SCy Schubert NL80211_WOWLAN_TCP_DST_IPV4, 5786206b73d0SCy Schubert NL80211_WOWLAN_TCP_DST_MAC, 5787206b73d0SCy Schubert NL80211_WOWLAN_TCP_SRC_PORT, 5788206b73d0SCy Schubert NL80211_WOWLAN_TCP_DST_PORT, 5789206b73d0SCy Schubert NL80211_WOWLAN_TCP_DATA_PAYLOAD, 5790206b73d0SCy Schubert NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, 5791206b73d0SCy Schubert NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, 5792206b73d0SCy Schubert NL80211_WOWLAN_TCP_DATA_INTERVAL, 5793206b73d0SCy Schubert NL80211_WOWLAN_TCP_WAKE_PAYLOAD, 5794206b73d0SCy Schubert NL80211_WOWLAN_TCP_WAKE_MASK, 5795206b73d0SCy Schubert 5796206b73d0SCy Schubert /* keep last */ 5797206b73d0SCy Schubert NUM_NL80211_WOWLAN_TCP, 5798206b73d0SCy Schubert MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1 5799206b73d0SCy Schubert }; 5800206b73d0SCy Schubert 5801206b73d0SCy Schubert /** 5802206b73d0SCy Schubert * struct nl80211_coalesce_rule_support - coalesce rule support information 5803206b73d0SCy Schubert * @max_rules: maximum number of rules supported 5804206b73d0SCy Schubert * @pat: packet pattern support information 5805206b73d0SCy Schubert * @max_delay: maximum supported coalescing delay in msecs 5806206b73d0SCy Schubert * 5807206b73d0SCy Schubert * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the 5808206b73d0SCy Schubert * capability information given by the kernel to userspace. 5809206b73d0SCy Schubert */ 5810206b73d0SCy Schubert struct nl80211_coalesce_rule_support { 5811206b73d0SCy Schubert __u32 max_rules; 5812206b73d0SCy Schubert struct nl80211_pattern_support pat; 5813206b73d0SCy Schubert __u32 max_delay; 5814206b73d0SCy Schubert } __attribute__((packed)); 5815206b73d0SCy Schubert 5816206b73d0SCy Schubert /** 5817206b73d0SCy Schubert * enum nl80211_attr_coalesce_rule - coalesce rule attribute 5818206b73d0SCy Schubert * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute 5819206b73d0SCy Schubert * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing 5820206b73d0SCy Schubert * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence, 5821206b73d0SCy Schubert * see &enum nl80211_coalesce_condition. 5822206b73d0SCy Schubert * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched 5823206b73d0SCy Schubert * after these fixed number of bytes of received packet 5824206b73d0SCy Schubert * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes 5825206b73d0SCy Schubert * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number 5826206b73d0SCy Schubert */ 5827206b73d0SCy Schubert enum nl80211_attr_coalesce_rule { 5828206b73d0SCy Schubert __NL80211_COALESCE_RULE_INVALID, 5829206b73d0SCy Schubert NL80211_ATTR_COALESCE_RULE_DELAY, 5830206b73d0SCy Schubert NL80211_ATTR_COALESCE_RULE_CONDITION, 5831206b73d0SCy Schubert NL80211_ATTR_COALESCE_RULE_PKT_PATTERN, 5832206b73d0SCy Schubert 5833206b73d0SCy Schubert /* keep last */ 5834206b73d0SCy Schubert NUM_NL80211_ATTR_COALESCE_RULE, 5835206b73d0SCy Schubert NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1 5836206b73d0SCy Schubert }; 5837206b73d0SCy Schubert 5838206b73d0SCy Schubert /** 5839206b73d0SCy Schubert * enum nl80211_coalesce_condition - coalesce rule conditions 5840206b73d0SCy Schubert * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns 5841206b73d0SCy Schubert * in a rule are matched. 5842206b73d0SCy Schubert * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns 5843206b73d0SCy Schubert * in a rule are not matched. 5844206b73d0SCy Schubert */ 5845206b73d0SCy Schubert enum nl80211_coalesce_condition { 5846206b73d0SCy Schubert NL80211_COALESCE_CONDITION_MATCH, 5847206b73d0SCy Schubert NL80211_COALESCE_CONDITION_NO_MATCH 5848206b73d0SCy Schubert }; 5849206b73d0SCy Schubert 5850206b73d0SCy Schubert /** 5851206b73d0SCy Schubert * enum nl80211_iface_limit_attrs - limit attributes 5852206b73d0SCy Schubert * @NL80211_IFACE_LIMIT_UNSPEC: (reserved) 5853206b73d0SCy Schubert * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that 5854206b73d0SCy Schubert * can be chosen from this set of interface types (u32) 5855206b73d0SCy Schubert * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a 5856206b73d0SCy Schubert * flag attribute for each interface type in this set 5857206b73d0SCy Schubert * @NUM_NL80211_IFACE_LIMIT: number of attributes 5858206b73d0SCy Schubert * @MAX_NL80211_IFACE_LIMIT: highest attribute number 5859206b73d0SCy Schubert */ 5860206b73d0SCy Schubert enum nl80211_iface_limit_attrs { 5861206b73d0SCy Schubert NL80211_IFACE_LIMIT_UNSPEC, 5862206b73d0SCy Schubert NL80211_IFACE_LIMIT_MAX, 5863206b73d0SCy Schubert NL80211_IFACE_LIMIT_TYPES, 5864206b73d0SCy Schubert 5865206b73d0SCy Schubert /* keep last */ 5866206b73d0SCy Schubert NUM_NL80211_IFACE_LIMIT, 5867206b73d0SCy Schubert MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1 5868206b73d0SCy Schubert }; 5869206b73d0SCy Schubert 5870206b73d0SCy Schubert /** 5871206b73d0SCy Schubert * enum nl80211_if_combination_attrs -- interface combination attributes 5872206b73d0SCy Schubert * 5873206b73d0SCy Schubert * @NL80211_IFACE_COMB_UNSPEC: (reserved) 5874206b73d0SCy Schubert * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits 5875206b73d0SCy Schubert * for given interface types, see &enum nl80211_iface_limit_attrs. 5876206b73d0SCy Schubert * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of 5877206b73d0SCy Schubert * interfaces that can be created in this group. This number doesn't 5878206b73d0SCy Schubert * apply to interfaces purely managed in software, which are listed 5879206b73d0SCy Schubert * in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE. 5880206b73d0SCy Schubert * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that 5881206b73d0SCy Schubert * beacon intervals within this group must be all the same even for 5882206b73d0SCy Schubert * infrastructure and AP/GO combinations, i.e. the GO(s) must adopt 5883206b73d0SCy Schubert * the infrastructure network's beacon interval. 5884206b73d0SCy Schubert * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many 5885206b73d0SCy Schubert * different channels may be used within this group. 5886206b73d0SCy Schubert * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap 5887206b73d0SCy Schubert * of supported channel widths for radar detection. 5888206b73d0SCy Schubert * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap 5889206b73d0SCy Schubert * of supported regulatory regions for radar detection. 5890206b73d0SCy Schubert * @NL80211_IFACE_COMB_BI_MIN_GCD: u32 attribute specifying the minimum GCD of 5891206b73d0SCy Schubert * different beacon intervals supported by all the interface combinations 5892206b73d0SCy Schubert * in this group (if not present, all beacon intervals be identical). 5893206b73d0SCy Schubert * @NUM_NL80211_IFACE_COMB: number of attributes 5894206b73d0SCy Schubert * @MAX_NL80211_IFACE_COMB: highest attribute number 5895206b73d0SCy Schubert * 5896206b73d0SCy Schubert * Examples: 5897206b73d0SCy Schubert * limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2 5898206b73d0SCy Schubert * => allows an AP and a STA that must match BIs 5899206b73d0SCy Schubert * 5900206b73d0SCy Schubert * numbers = [ #{AP, P2P-GO} <= 8 ], BI min gcd, channels = 1, max = 8, 5901206b73d0SCy Schubert * => allows 8 of AP/GO that can have BI gcd >= min gcd 5902206b73d0SCy Schubert * 5903206b73d0SCy Schubert * numbers = [ #{STA} <= 2 ], channels = 2, max = 2 5904*a90b9d01SCy Schubert * => allows two STAs on the same or on different channels 5905206b73d0SCy Schubert * 5906206b73d0SCy Schubert * numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4 5907206b73d0SCy Schubert * => allows a STA plus three P2P interfaces 5908206b73d0SCy Schubert * 5909206b73d0SCy Schubert * The list of these four possibilities could completely be contained 5910206b73d0SCy Schubert * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate 5911206b73d0SCy Schubert * that any of these groups must match. 5912206b73d0SCy Schubert * 5913206b73d0SCy Schubert * "Combinations" of just a single interface will not be listed here, 5914206b73d0SCy Schubert * a single interface of any valid interface type is assumed to always 5915206b73d0SCy Schubert * be possible by itself. This means that implicitly, for each valid 5916206b73d0SCy Schubert * interface type, the following group always exists: 5917206b73d0SCy Schubert * numbers = [ #{<type>} <= 1 ], channels = 1, max = 1 5918206b73d0SCy Schubert */ 5919206b73d0SCy Schubert enum nl80211_if_combination_attrs { 5920206b73d0SCy Schubert NL80211_IFACE_COMB_UNSPEC, 5921206b73d0SCy Schubert NL80211_IFACE_COMB_LIMITS, 5922206b73d0SCy Schubert NL80211_IFACE_COMB_MAXNUM, 5923206b73d0SCy Schubert NL80211_IFACE_COMB_STA_AP_BI_MATCH, 5924206b73d0SCy Schubert NL80211_IFACE_COMB_NUM_CHANNELS, 5925206b73d0SCy Schubert NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, 5926206b73d0SCy Schubert NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, 5927206b73d0SCy Schubert NL80211_IFACE_COMB_BI_MIN_GCD, 5928206b73d0SCy Schubert 5929206b73d0SCy Schubert /* keep last */ 5930206b73d0SCy Schubert NUM_NL80211_IFACE_COMB, 5931206b73d0SCy Schubert MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 5932206b73d0SCy Schubert }; 5933206b73d0SCy Schubert 5934206b73d0SCy Schubert 5935206b73d0SCy Schubert /** 5936206b73d0SCy Schubert * enum nl80211_plink_state - state of a mesh peer link finite state machine 5937206b73d0SCy Schubert * 5938206b73d0SCy Schubert * @NL80211_PLINK_LISTEN: initial state, considered the implicit 5939206b73d0SCy Schubert * state of non existent mesh peer links 5940206b73d0SCy Schubert * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to 5941206b73d0SCy Schubert * this mesh peer 5942206b73d0SCy Schubert * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received 5943206b73d0SCy Schubert * from this mesh peer 5944206b73d0SCy Schubert * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been 5945206b73d0SCy Schubert * received from this mesh peer 5946206b73d0SCy Schubert * @NL80211_PLINK_ESTAB: mesh peer link is established 5947206b73d0SCy Schubert * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled 5948206b73d0SCy Schubert * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh 5949*a90b9d01SCy Schubert * plink are discarded, except for authentication frames 5950206b73d0SCy Schubert * @NUM_NL80211_PLINK_STATES: number of peer link states 5951206b73d0SCy Schubert * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states 5952206b73d0SCy Schubert */ 5953206b73d0SCy Schubert enum nl80211_plink_state { 5954206b73d0SCy Schubert NL80211_PLINK_LISTEN, 5955206b73d0SCy Schubert NL80211_PLINK_OPN_SNT, 5956206b73d0SCy Schubert NL80211_PLINK_OPN_RCVD, 5957206b73d0SCy Schubert NL80211_PLINK_CNF_RCVD, 5958206b73d0SCy Schubert NL80211_PLINK_ESTAB, 5959206b73d0SCy Schubert NL80211_PLINK_HOLDING, 5960206b73d0SCy Schubert NL80211_PLINK_BLOCKED, 5961206b73d0SCy Schubert 5962206b73d0SCy Schubert /* keep last */ 5963206b73d0SCy Schubert NUM_NL80211_PLINK_STATES, 5964206b73d0SCy Schubert MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1 5965206b73d0SCy Schubert }; 5966206b73d0SCy Schubert 5967206b73d0SCy Schubert /** 5968206b73d0SCy Schubert * enum nl80211_plink_action - actions to perform in mesh peers 5969206b73d0SCy Schubert * 5970206b73d0SCy Schubert * @NL80211_PLINK_ACTION_NO_ACTION: perform no action 5971206b73d0SCy Schubert * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment 5972206b73d0SCy Schubert * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer 5973206b73d0SCy Schubert * @NUM_NL80211_PLINK_ACTIONS: number of possible actions 5974206b73d0SCy Schubert */ 5975206b73d0SCy Schubert enum plink_actions { 5976206b73d0SCy Schubert NL80211_PLINK_ACTION_NO_ACTION, 5977206b73d0SCy Schubert NL80211_PLINK_ACTION_OPEN, 5978206b73d0SCy Schubert NL80211_PLINK_ACTION_BLOCK, 5979206b73d0SCy Schubert 5980206b73d0SCy Schubert NUM_NL80211_PLINK_ACTIONS, 5981206b73d0SCy Schubert }; 5982206b73d0SCy Schubert 5983206b73d0SCy Schubert 5984206b73d0SCy Schubert #define NL80211_KCK_LEN 16 5985206b73d0SCy Schubert #define NL80211_KEK_LEN 16 5986c1d255d3SCy Schubert #define NL80211_KCK_EXT_LEN 24 5987c1d255d3SCy Schubert #define NL80211_KEK_EXT_LEN 32 5988*a90b9d01SCy Schubert #define NL80211_KCK_EXT_LEN_32 32 5989206b73d0SCy Schubert #define NL80211_REPLAY_CTR_LEN 8 5990206b73d0SCy Schubert 5991206b73d0SCy Schubert /** 5992206b73d0SCy Schubert * enum nl80211_rekey_data - attributes for GTK rekey offload 5993206b73d0SCy Schubert * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes 5994206b73d0SCy Schubert * @NL80211_REKEY_DATA_KEK: key encryption key (binary) 5995206b73d0SCy Schubert * @NL80211_REKEY_DATA_KCK: key confirmation key (binary) 5996206b73d0SCy Schubert * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary) 5997c1d255d3SCy Schubert * @NL80211_REKEY_DATA_AKM: AKM data (OUI, suite type) 5998206b73d0SCy Schubert * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal) 5999206b73d0SCy Schubert * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal) 6000206b73d0SCy Schubert */ 6001206b73d0SCy Schubert enum nl80211_rekey_data { 6002206b73d0SCy Schubert __NL80211_REKEY_DATA_INVALID, 6003206b73d0SCy Schubert NL80211_REKEY_DATA_KEK, 6004206b73d0SCy Schubert NL80211_REKEY_DATA_KCK, 6005206b73d0SCy Schubert NL80211_REKEY_DATA_REPLAY_CTR, 6006c1d255d3SCy Schubert NL80211_REKEY_DATA_AKM, 6007206b73d0SCy Schubert 6008206b73d0SCy Schubert /* keep last */ 6009206b73d0SCy Schubert NUM_NL80211_REKEY_DATA, 6010206b73d0SCy Schubert MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1 6011206b73d0SCy Schubert }; 6012206b73d0SCy Schubert 6013206b73d0SCy Schubert /** 6014206b73d0SCy Schubert * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID 6015206b73d0SCy Schubert * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in 6016206b73d0SCy Schubert * Beacon frames) 6017206b73d0SCy Schubert * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element 6018206b73d0SCy Schubert * in Beacon frames 6019206b73d0SCy Schubert * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID 6020206b73d0SCy Schubert * element in Beacon frames but zero out each byte in the SSID 6021206b73d0SCy Schubert */ 6022206b73d0SCy Schubert enum nl80211_hidden_ssid { 6023206b73d0SCy Schubert NL80211_HIDDEN_SSID_NOT_IN_USE, 6024206b73d0SCy Schubert NL80211_HIDDEN_SSID_ZERO_LEN, 6025206b73d0SCy Schubert NL80211_HIDDEN_SSID_ZERO_CONTENTS 6026206b73d0SCy Schubert }; 6027206b73d0SCy Schubert 6028206b73d0SCy Schubert /** 6029206b73d0SCy Schubert * enum nl80211_sta_wme_attr - station WME attributes 6030206b73d0SCy Schubert * @__NL80211_STA_WME_INVALID: invalid number for nested attribute 6031206b73d0SCy Schubert * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format 6032206b73d0SCy Schubert * is the same as the AC bitmap in the QoS info field. 6033206b73d0SCy Schubert * @NL80211_STA_WME_MAX_SP: max service period. the format is the same 6034206b73d0SCy Schubert * as the MAX_SP field in the QoS info field (but already shifted down). 6035206b73d0SCy Schubert * @__NL80211_STA_WME_AFTER_LAST: internal 6036206b73d0SCy Schubert * @NL80211_STA_WME_MAX: highest station WME attribute 6037206b73d0SCy Schubert */ 6038206b73d0SCy Schubert enum nl80211_sta_wme_attr { 6039206b73d0SCy Schubert __NL80211_STA_WME_INVALID, 6040206b73d0SCy Schubert NL80211_STA_WME_UAPSD_QUEUES, 6041206b73d0SCy Schubert NL80211_STA_WME_MAX_SP, 6042206b73d0SCy Schubert 6043206b73d0SCy Schubert /* keep last */ 6044206b73d0SCy Schubert __NL80211_STA_WME_AFTER_LAST, 6045206b73d0SCy Schubert NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 6046206b73d0SCy Schubert }; 6047206b73d0SCy Schubert 6048206b73d0SCy Schubert /** 6049206b73d0SCy Schubert * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates 6050206b73d0SCy Schubert * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes 6051206b73d0SCy Schubert * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher 6052206b73d0SCy Schubert * priority) 6053206b73d0SCy Schubert * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets) 6054206b73d0SCy Schubert * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag) 6055206b73d0SCy Schubert * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes 6056206b73d0SCy Schubert * (internal) 6057206b73d0SCy Schubert * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute 6058206b73d0SCy Schubert * (internal) 6059206b73d0SCy Schubert */ 6060206b73d0SCy Schubert enum nl80211_pmksa_candidate_attr { 6061206b73d0SCy Schubert __NL80211_PMKSA_CANDIDATE_INVALID, 6062206b73d0SCy Schubert NL80211_PMKSA_CANDIDATE_INDEX, 6063206b73d0SCy Schubert NL80211_PMKSA_CANDIDATE_BSSID, 6064206b73d0SCy Schubert NL80211_PMKSA_CANDIDATE_PREAUTH, 6065206b73d0SCy Schubert 6066206b73d0SCy Schubert /* keep last */ 6067206b73d0SCy Schubert NUM_NL80211_PMKSA_CANDIDATE, 6068206b73d0SCy Schubert MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1 6069206b73d0SCy Schubert }; 6070206b73d0SCy Schubert 6071206b73d0SCy Schubert /** 6072206b73d0SCy Schubert * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION 6073206b73d0SCy Schubert * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request 6074206b73d0SCy Schubert * @NL80211_TDLS_SETUP: Setup TDLS link 6075206b73d0SCy Schubert * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established 6076206b73d0SCy Schubert * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link 6077206b73d0SCy Schubert * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link 6078206b73d0SCy Schubert */ 6079206b73d0SCy Schubert enum nl80211_tdls_operation { 6080206b73d0SCy Schubert NL80211_TDLS_DISCOVERY_REQ, 6081206b73d0SCy Schubert NL80211_TDLS_SETUP, 6082206b73d0SCy Schubert NL80211_TDLS_TEARDOWN, 6083206b73d0SCy Schubert NL80211_TDLS_ENABLE_LINK, 6084206b73d0SCy Schubert NL80211_TDLS_DISABLE_LINK, 6085206b73d0SCy Schubert }; 6086206b73d0SCy Schubert 6087*a90b9d01SCy Schubert /** 6088206b73d0SCy Schubert * enum nl80211_ap_sme_features - device-integrated AP features 6089*a90b9d01SCy Schubert * @NL80211_AP_SME_SA_QUERY_OFFLOAD: SA Query procedures offloaded to driver 6090*a90b9d01SCy Schubert * when user space indicates support for SA Query procedures offload during 6091*a90b9d01SCy Schubert * "start ap" with %NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT. 6092206b73d0SCy Schubert */ 6093*a90b9d01SCy Schubert enum nl80211_ap_sme_features { 6094*a90b9d01SCy Schubert NL80211_AP_SME_SA_QUERY_OFFLOAD = 1 << 0, 6095*a90b9d01SCy Schubert }; 6096206b73d0SCy Schubert 6097206b73d0SCy Schubert /** 6098206b73d0SCy Schubert * enum nl80211_feature_flags - device/driver features 6099206b73d0SCy Schubert * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back 6100206b73d0SCy Schubert * TX status to the socket error queue when requested with the 6101206b73d0SCy Schubert * socket option. 6102206b73d0SCy Schubert * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. 6103206b73d0SCy Schubert * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up 6104206b73d0SCy Schubert * the connected inactive stations in AP mode. 6105206b73d0SCy Schubert * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested 6106*a90b9d01SCy Schubert * to work properly to support receiving regulatory hints from 6107206b73d0SCy Schubert * cellular base stations. 6108206b73d0SCy Schubert * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only 6109206b73d0SCy Schubert * here to reserve the value for API/ABI compatibility) 6110206b73d0SCy Schubert * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of 6111206b73d0SCy Schubert * equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station 6112206b73d0SCy Schubert * mode 6113206b73d0SCy Schubert * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan 6114206b73d0SCy Schubert * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported 6115206b73d0SCy Schubert * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif 6116206b73d0SCy Schubert * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting 6117206b73d0SCy Schubert * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform 6118206b73d0SCy Schubert * OBSS scans and generate 20/40 BSS coex reports. This flag is used only 6119206b73d0SCy Schubert * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied. 6120206b73d0SCy Schubert * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window 6121206b73d0SCy Schubert * setting 6122206b73d0SCy Schubert * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic 6123206b73d0SCy Schubert * powersave 6124206b73d0SCy Schubert * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state 6125206b73d0SCy Schubert * transitions for AP clients. Without this flag (and if the driver 6126206b73d0SCy Schubert * doesn't have the AP SME in the device) the driver supports adding 6127206b73d0SCy Schubert * stations only when they're associated and adds them in associated 6128206b73d0SCy Schubert * state (to later be transitioned into authorized), with this flag 6129206b73d0SCy Schubert * they should be added before even sending the authentication reply 6130206b73d0SCy Schubert * and then transitioned into authenticated, associated and authorized 6131206b73d0SCy Schubert * states using station flags. 6132206b73d0SCy Schubert * Note that even for drivers that support this, the default is to add 6133206b73d0SCy Schubert * stations in authenticated/associated state, so to add unauthenticated 6134206b73d0SCy Schubert * stations the authenticated/associated bits have to be set in the mask. 6135206b73d0SCy Schubert * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits 6136206b73d0SCy Schubert * (HT40, VHT 80/160 MHz) if this flag is set 6137206b73d0SCy Schubert * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh 6138206b73d0SCy Schubert * Peering Management entity which may be implemented by registering for 6139206b73d0SCy Schubert * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is 6140206b73d0SCy Schubert * still generated by the driver. 6141206b73d0SCy Schubert * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor 6142206b73d0SCy Schubert * interface. An active monitor interface behaves like a normal monitor 6143206b73d0SCy Schubert * interface, but gets added to the driver. It ensures that incoming 6144206b73d0SCy Schubert * unicast packets directed at the configured interface address get ACKed. 6145206b73d0SCy Schubert * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic 6146206b73d0SCy Schubert * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the 6147206b73d0SCy Schubert * lifetime of a BSS. 6148206b73d0SCy Schubert * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter 6149206b73d0SCy Schubert * Set IE to probe requests. 6150206b73d0SCy Schubert * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE 6151206b73d0SCy Schubert * to probe requests. 6152206b73d0SCy Schubert * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period 6153206b73d0SCy Schubert * requests sent to it by an AP. 6154206b73d0SCy Schubert * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the 6155206b73d0SCy Schubert * current tx power value into the TPC Report IE in the spectrum 6156206b73d0SCy Schubert * management TPC Report action frame, and in the Radio Measurement Link 6157206b73d0SCy Schubert * Measurement Report action frame. 6158206b73d0SCy Schubert * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout 6159206b73d0SCy Schubert * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used 6160206b73d0SCy Schubert * to enable dynack. 6161206b73d0SCy Schubert * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial 6162206b73d0SCy Schubert * multiplexing powersave, ie. can turn off all but one chain 6163206b73d0SCy Schubert * even on HT connections that should be using more chains. 6164206b73d0SCy Schubert * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial 6165206b73d0SCy Schubert * multiplexing powersave, ie. can turn off all but one chain 6166206b73d0SCy Schubert * and then wake the rest up as required after, for example, 6167206b73d0SCy Schubert * rts/cts handshake. 6168206b73d0SCy Schubert * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM 6169206b73d0SCy Schubert * TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS 6170206b73d0SCy Schubert * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it 6171206b73d0SCy Schubert * needs to be able to handle Block-Ack agreements and other things. 6172206b73d0SCy Schubert * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring 6173206b73d0SCy Schubert * the vif's MAC address upon creation. 6174206b73d0SCy Schubert * See 'macaddr' field in the vif_params (cfg80211.h). 6175206b73d0SCy Schubert * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when 6176206b73d0SCy Schubert * operating as a TDLS peer. 6177206b73d0SCy Schubert * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a 6178206b73d0SCy Schubert * random MAC address during scan (if the device is unassociated); the 6179206b73d0SCy Schubert * %NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC 6180206b73d0SCy Schubert * address mask/value will be used. 6181206b73d0SCy Schubert * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports 6182206b73d0SCy Schubert * using a random MAC address for every scan iteration during scheduled 6183206b73d0SCy Schubert * scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may 6184206b73d0SCy Schubert * be set for scheduled scan and the MAC address mask/value will be used. 6185206b73d0SCy Schubert * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a 6186206b73d0SCy Schubert * random MAC address for every scan iteration during "net detect", i.e. 6187206b73d0SCy Schubert * scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may 6188206b73d0SCy Schubert * be set for scheduled scan and the MAC address mask/value will be used. 6189206b73d0SCy Schubert */ 6190206b73d0SCy Schubert enum nl80211_feature_flags { 6191206b73d0SCy Schubert NL80211_FEATURE_SK_TX_STATUS = 1 << 0, 6192206b73d0SCy Schubert NL80211_FEATURE_HT_IBSS = 1 << 1, 6193206b73d0SCy Schubert NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, 6194206b73d0SCy Schubert NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3, 6195206b73d0SCy Schubert NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4, 6196206b73d0SCy Schubert NL80211_FEATURE_SAE = 1 << 5, 6197206b73d0SCy Schubert NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6, 6198206b73d0SCy Schubert NL80211_FEATURE_SCAN_FLUSH = 1 << 7, 6199206b73d0SCy Schubert NL80211_FEATURE_AP_SCAN = 1 << 8, 6200206b73d0SCy Schubert NL80211_FEATURE_VIF_TXPOWER = 1 << 9, 6201206b73d0SCy Schubert NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10, 6202206b73d0SCy Schubert NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11, 6203206b73d0SCy Schubert NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12, 6204206b73d0SCy Schubert /* bit 13 is reserved */ 6205206b73d0SCy Schubert NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, 6206206b73d0SCy Schubert NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, 6207206b73d0SCy Schubert NL80211_FEATURE_USERSPACE_MPM = 1 << 16, 6208206b73d0SCy Schubert NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, 6209206b73d0SCy Schubert NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, 6210206b73d0SCy Schubert NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19, 6211206b73d0SCy Schubert NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20, 6212206b73d0SCy Schubert NL80211_FEATURE_QUIET = 1 << 21, 6213206b73d0SCy Schubert NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22, 6214206b73d0SCy Schubert NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, 6215206b73d0SCy Schubert NL80211_FEATURE_STATIC_SMPS = 1 << 24, 6216206b73d0SCy Schubert NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, 6217206b73d0SCy Schubert NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26, 6218206b73d0SCy Schubert NL80211_FEATURE_MAC_ON_CREATE = 1 << 27, 6219206b73d0SCy Schubert NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 1 << 28, 6220206b73d0SCy Schubert NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 1 << 29, 6221206b73d0SCy Schubert NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1 << 30, 6222c1d255d3SCy Schubert NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1U << 31, 6223206b73d0SCy Schubert }; 6224206b73d0SCy Schubert 6225206b73d0SCy Schubert /** 6226206b73d0SCy Schubert * enum nl80211_ext_feature_index - bit index of extended features. 6227206b73d0SCy Schubert * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates. 6228206b73d0SCy Schubert * @NL80211_EXT_FEATURE_RRM: This driver supports RRM. When featured, user can 6229c1d255d3SCy Schubert * request to use RRM (see %NL80211_ATTR_USE_RRM) with 6230206b73d0SCy Schubert * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set 6231206b73d0SCy Schubert * the ASSOC_REQ_USE_RRM flag in the association request even if 6232206b73d0SCy Schubert * NL80211_FEATURE_QUIET is not advertized. 6233206b73d0SCy Schubert * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air 6234206b73d0SCy Schubert * sniffer which means that it can be configured to hear packets from 6235206b73d0SCy Schubert * certain groups which can be configured by the 6236206b73d0SCy Schubert * %NL80211_ATTR_MU_MIMO_GROUP_DATA attribute, 6237206b73d0SCy Schubert * or can be configured to follow a station by configuring the 6238206b73d0SCy Schubert * %NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR attribute. 6239206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SCAN_START_TIME: This driver includes the actual 6240206b73d0SCy Schubert * time the scan started in scan results event. The time is the TSF of 6241206b73d0SCy Schubert * the BSS that the interface that requested the scan is connected to 6242206b73d0SCy Schubert * (if available). 6243206b73d0SCy Schubert * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the 6244206b73d0SCy Schubert * time the last beacon/probe was received. The time is the TSF of the 6245206b73d0SCy Schubert * BSS that the interface that requested the scan is connected to 6246206b73d0SCy Schubert * (if available). 6247206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of 6248206b73d0SCy Schubert * channel dwell time. 6249206b73d0SCy Schubert * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate 6250206b73d0SCy Schubert * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate. 6251206b73d0SCy Schubert * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate 6252206b73d0SCy Schubert * configuration (AP/mesh) with HT rates. 6253206b73d0SCy Schubert * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate 6254206b73d0SCy Schubert * configuration (AP/mesh) with VHT rates. 6255206b73d0SCy Schubert * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup 6256206b73d0SCy Schubert * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode. 6257206b73d0SCy Schubert * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA 6258206b73d0SCy Schubert * in @NL80211_CMD_FRAME while not associated. 6259206b73d0SCy Schubert * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports 6260206b73d0SCy Schubert * randomized TA in @NL80211_CMD_FRAME while associated. 6261206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI: The driver supports sched_scan 6262206b73d0SCy Schubert * for reporting BSSs with better RSSI than the current connected BSS 6263206b73d0SCy Schubert * (%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI). 6264206b73d0SCy Schubert * @NL80211_EXT_FEATURE_CQM_RSSI_LIST: With this driver the 6265206b73d0SCy Schubert * %NL80211_ATTR_CQM_RSSI_THOLD attribute accepts a list of zero or more 6266206b73d0SCy Schubert * RSSI threshold values to monitor rather than exactly one threshold. 6267206b73d0SCy Schubert * @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD: Driver SME supports FILS shared key 6268206b73d0SCy Schubert * authentication with %NL80211_CMD_CONNECT. 6269206b73d0SCy Schubert * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK: Device wants to do 4-way 6270206b73d0SCy Schubert * handshake with PSK in station mode (PSK is passed as part of the connect 6271206b73d0SCy Schubert * and associate commands), doing it in the host might not be supported. 6272206b73d0SCy Schubert * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X: Device wants to do doing 4-way 6273206b73d0SCy Schubert * handshake with 802.1X in station mode (will pass EAP frames to the host 6274206b73d0SCy Schubert * and accept the set_pmk/del_pmk commands), doing it in the host might not 6275206b73d0SCy Schubert * be supported. 6276206b73d0SCy Schubert * @NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME: Driver is capable of overriding 6277206b73d0SCy Schubert * the max channel attribute in the FILS request params IE with the 6278206b73d0SCy Schubert * actual dwell time. 6279206b73d0SCy Schubert * @NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP: Driver accepts broadcast probe 6280206b73d0SCy Schubert * response 6281206b73d0SCy Schubert * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE: Driver supports sending 6282206b73d0SCy Schubert * the first probe request in each channel at rate of at least 5.5Mbps. 6283206b73d0SCy Schubert * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports 6284206b73d0SCy Schubert * probe request tx deferral and suppression 6285206b73d0SCy Schubert * @NL80211_EXT_FEATURE_MFP_OPTIONAL: Driver supports the %NL80211_MFP_OPTIONAL 6286206b73d0SCy Schubert * value in %NL80211_ATTR_USE_MFP. 6287206b73d0SCy Schubert * @NL80211_EXT_FEATURE_LOW_SPAN_SCAN: Driver supports low span scan. 6288206b73d0SCy Schubert * @NL80211_EXT_FEATURE_LOW_POWER_SCAN: Driver supports low power scan. 6289206b73d0SCy Schubert * @NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN: Driver supports high accuracy scan. 6290206b73d0SCy Schubert * @NL80211_EXT_FEATURE_DFS_OFFLOAD: HW/driver will offload DFS actions. 6291206b73d0SCy Schubert * Device or driver will do all DFS-related actions by itself, 6292206b73d0SCy Schubert * informing user-space about CAC progress, radar detection event, 6293206b73d0SCy Schubert * channel change triggered by radar detection event. 6294206b73d0SCy Schubert * No need to start CAC from user-space, no need to react to 6295206b73d0SCy Schubert * "radar detected" event. 6296206b73d0SCy Schubert * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211: Driver supports sending and 6297206b73d0SCy Schubert * receiving control port frames over nl80211 instead of the netdevice. 6298206b73d0SCy Schubert * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports 6299206b73d0SCy Schubert * (average) ACK signal strength reporting. 6300206b73d0SCy Schubert * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate 6301206b73d0SCy Schubert * TXQs. 6302206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the 6303206b73d0SCy Schubert * SN in probe request frames if requested by %NL80211_SCAN_FLAG_RANDOM_SN. 6304206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT: Driver/device can omit all data 6305206b73d0SCy Schubert * except for supported rates from the probe request content if requested 6306206b73d0SCy Schubert * by the %NL80211_SCAN_FLAG_MIN_PREQ_CONTENT flag. 6307206b73d0SCy Schubert * @NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER: Driver supports enabling fine 6308206b73d0SCy Schubert * timing measurement responder role. 6309206b73d0SCy Schubert * 6310206b73d0SCy Schubert * @NL80211_EXT_FEATURE_CAN_REPLACE_PTK0: Driver/device confirm that they are 6311206b73d0SCy Schubert * able to rekey an in-use key correctly. Userspace must not rekey PTK keys 6312206b73d0SCy Schubert * if this flag is not set. Ignoring this can leak clear text packets and/or 6313206b73d0SCy Schubert * freeze the connection. 6314206b73d0SCy Schubert * @NL80211_EXT_FEATURE_EXT_KEY_ID: Driver supports "Extended Key ID for 6315206b73d0SCy Schubert * Individually Addressed Frames" from IEEE802.11-2016. 6316206b73d0SCy Schubert * 6317206b73d0SCy Schubert * @NL80211_EXT_FEATURE_AIRTIME_FAIRNESS: Driver supports getting airtime 6318206b73d0SCy Schubert * fairness for transmitted packets and has enabled airtime fairness 6319206b73d0SCy Schubert * scheduling. 6320206b73d0SCy Schubert * 6321206b73d0SCy Schubert * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching 6322206b73d0SCy Schubert * (set/del PMKSA operations) in AP mode. 6323206b73d0SCy Schubert * 6324206b73d0SCy Schubert * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports 6325206b73d0SCy Schubert * filtering of sched scan results using band specific RSSI thresholds. 6326206b73d0SCy Schubert * 6327206b73d0SCy Schubert * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power 6328206b73d0SCy Schubert * to a station. 6329206b73d0SCy Schubert * 6330c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_SAE_OFFLOAD: Device wants to do SAE authentication in 6331c1d255d3SCy Schubert * station mode (SAE password is passed as part of the connect command). 6332c1d255d3SCy Schubert * 6333c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_VLAN_OFFLOAD: The driver supports a single netdev 6334c1d255d3SCy Schubert * with VLAN tagged frames and separate VLAN-specific netdevs added using 6335c1d255d3SCy Schubert * vconfig similarly to the Ethernet case. 6336c1d255d3SCy Schubert * 6337c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_AQL: The driver supports the Airtime Queue Limit (AQL) 6338c1d255d3SCy Schubert * feature, which prevents bufferbloat by using the expected transmission 6339c1d255d3SCy Schubert * time to limit the amount of data buffered in the hardware. 6340c1d255d3SCy Schubert * 6341c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_BEACON_PROTECTION: The driver supports Beacon protection 6342c1d255d3SCy Schubert * and can receive key configuration for BIGTK using key indexes 6 and 7. 6343c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT: The driver supports Beacon 6344c1d255d3SCy Schubert * protection as a client only and cannot transmit protected beacons. 6345c1d255d3SCy Schubert * 6346c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH: The driver can disable the 6347c1d255d3SCy Schubert * forwarding of preauth frames over the control port. They are then 6348c1d255d3SCy Schubert * handled as ordinary data frames. 6349c1d255d3SCy Schubert * 6350c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_PROTECTED_TWT: Driver supports protected TWT frames 6351c1d255d3SCy Schubert * 6352c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_DEL_IBSS_STA: The driver supports removing stations 6353c1d255d3SCy Schubert * in IBSS mode, essentially by dropping their state. 6354c1d255d3SCy Schubert * 6355c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS: management frame registrations 6356c1d255d3SCy Schubert * are possible for multicast frames and those will be reported properly. 6357c1d255d3SCy Schubert * 6358c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_SCAN_FREQ_KHZ: This driver supports receiving and 6359c1d255d3SCy Schubert * reporting scan request with %NL80211_ATTR_SCAN_FREQ_KHZ. In order to 6360c1d255d3SCy Schubert * report %NL80211_ATTR_SCAN_FREQ_KHZ, %NL80211_SCAN_FLAG_FREQ_KHZ must be 6361c1d255d3SCy Schubert * included in the scan request. 6362c1d255d3SCy Schubert * 6363c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS: The driver 6364c1d255d3SCy Schubert * can report tx status for control port over nl80211 tx operations. 6365c1d255d3SCy Schubert * 6366c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION: Driver supports Operating 6367c1d255d3SCy Schubert * Channel Validation (OCV) when using driver's SME for RSNA handshakes. 6368c1d255d3SCy Schubert * 6369c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK: Device wants to do 4-way 6370c1d255d3SCy Schubert * handshake with PSK in AP mode (PSK is passed as part of the start AP 6371c1d255d3SCy Schubert * command). 6372c1d255d3SCy Schubert * 6373c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_SAE_OFFLOAD_AP: Device wants to do SAE authentication 6374c1d255d3SCy Schubert * in AP mode (SAE password is passed as part of the start AP command). 6375c1d255d3SCy Schubert * 6376c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_FILS_DISCOVERY: Driver/device supports FILS discovery 6377c1d255d3SCy Schubert * frames transmission 6378c1d255d3SCy Schubert * 6379c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP: Driver/device supports 6380c1d255d3SCy Schubert * unsolicited broadcast probe response transmission 6381c1d255d3SCy Schubert * 6382c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_BEACON_RATE_HE: Driver supports beacon rate 6383c1d255d3SCy Schubert * configuration (AP/mesh) with HE rates. 6384c1d255d3SCy Schubert * 6385c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_SECURE_LTF: Device supports secure LTF measurement 6386c1d255d3SCy Schubert * exchange protocol. 6387c1d255d3SCy Schubert * 6388c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_SECURE_RTT: Device supports secure RTT measurement 6389c1d255d3SCy Schubert * exchange protocol. 6390c1d255d3SCy Schubert * 6391c1d255d3SCy Schubert * @NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE: Device supports management 6392c1d255d3SCy Schubert * frame protection for all management frames exchanged during the 6393c1d255d3SCy Schubert * negotiation and range measurement procedure. 6394c1d255d3SCy Schubert * 6395*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_BSS_COLOR: The driver supports BSS color collision 6396*a90b9d01SCy Schubert * detection and change announcemnts. 6397*a90b9d01SCy Schubert * 6398*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD: Driver running in AP mode supports 6399*a90b9d01SCy Schubert * FILS encryption and decryption for (Re)Association Request and Response 6400*a90b9d01SCy Schubert * frames. Userspace has to share FILS AAD details to the driver by using 6401*a90b9d01SCy Schubert * @NL80211_CMD_SET_FILS_AAD. 6402*a90b9d01SCy Schubert * 6403*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_RADAR_BACKGROUND: Device supports background radar/CAC 6404*a90b9d01SCy Schubert * detection. 6405*a90b9d01SCy Schubert * 6406*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE: Device can perform a MAC address 6407*a90b9d01SCy Schubert * change without having to bring the underlying network device down 6408*a90b9d01SCy Schubert * first. For example, in station mode this can be used to vary the 6409*a90b9d01SCy Schubert * origin MAC address prior to a connection to a new AP for privacy 6410*a90b9d01SCy Schubert * or other reasons. Note that certain driver specific restrictions 6411*a90b9d01SCy Schubert * might apply, e.g. no scans in progress, no offchannel operations 6412*a90b9d01SCy Schubert * in progress, and no active connections. 6413*a90b9d01SCy Schubert * 6414*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_PUNCT: Driver supports preamble puncturing in AP mode. 6415*a90b9d01SCy Schubert * 6416*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_SECURE_NAN: Device supports NAN Pairing which enables 6417*a90b9d01SCy Schubert * authentication, data encryption and message integrity. 6418*a90b9d01SCy Schubert * 6419*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA: Device supports randomized TA 6420*a90b9d01SCy Schubert * in authentication and deauthentication frames sent to unassociated peer 6421*a90b9d01SCy Schubert * using @NL80211_CMD_FRAME. 6422*a90b9d01SCy Schubert * 6423*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_OWE_OFFLOAD: Driver/Device wants to do OWE DH IE 6424*a90b9d01SCy Schubert * handling in station mode. 6425*a90b9d01SCy Schubert * 6426*a90b9d01SCy Schubert * @NL80211_EXT_FEATURE_OWE_OFFLOAD_AP: Driver/Device wants to do OWE DH IE 6427*a90b9d01SCy Schubert * handling in AP mode. 6428*a90b9d01SCy Schubert * 6429206b73d0SCy Schubert * @NUM_NL80211_EXT_FEATURES: number of extended features. 6430206b73d0SCy Schubert * @MAX_NL80211_EXT_FEATURES: highest extended feature index. 6431206b73d0SCy Schubert */ 6432206b73d0SCy Schubert enum nl80211_ext_feature_index { 6433206b73d0SCy Schubert NL80211_EXT_FEATURE_VHT_IBSS, 6434206b73d0SCy Schubert NL80211_EXT_FEATURE_RRM, 6435206b73d0SCy Schubert NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER, 6436206b73d0SCy Schubert NL80211_EXT_FEATURE_SCAN_START_TIME, 6437206b73d0SCy Schubert NL80211_EXT_FEATURE_BSS_PARENT_TSF, 6438206b73d0SCy Schubert NL80211_EXT_FEATURE_SET_SCAN_DWELL, 6439206b73d0SCy Schubert NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 6440206b73d0SCy Schubert NL80211_EXT_FEATURE_BEACON_RATE_HT, 6441206b73d0SCy Schubert NL80211_EXT_FEATURE_BEACON_RATE_VHT, 6442206b73d0SCy Schubert NL80211_EXT_FEATURE_FILS_STA, 6443206b73d0SCy Schubert NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA, 6444206b73d0SCy Schubert NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED, 6445206b73d0SCy Schubert NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI, 6446206b73d0SCy Schubert NL80211_EXT_FEATURE_CQM_RSSI_LIST, 6447206b73d0SCy Schubert NL80211_EXT_FEATURE_FILS_SK_OFFLOAD, 6448206b73d0SCy Schubert NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK, 6449206b73d0SCy Schubert NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X, 6450206b73d0SCy Schubert NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME, 6451206b73d0SCy Schubert NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP, 6452206b73d0SCy Schubert NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE, 6453206b73d0SCy Schubert NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION, 6454206b73d0SCy Schubert NL80211_EXT_FEATURE_MFP_OPTIONAL, 6455206b73d0SCy Schubert NL80211_EXT_FEATURE_LOW_SPAN_SCAN, 6456206b73d0SCy Schubert NL80211_EXT_FEATURE_LOW_POWER_SCAN, 6457206b73d0SCy Schubert NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN, 6458206b73d0SCy Schubert NL80211_EXT_FEATURE_DFS_OFFLOAD, 6459206b73d0SCy Schubert NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211, 6460206b73d0SCy Schubert NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT, 6461206b73d0SCy Schubert /* we renamed this - stay compatible */ 6462206b73d0SCy Schubert NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT, 6463206b73d0SCy Schubert NL80211_EXT_FEATURE_TXQS, 6464206b73d0SCy Schubert NL80211_EXT_FEATURE_SCAN_RANDOM_SN, 6465206b73d0SCy Schubert NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT, 6466206b73d0SCy Schubert NL80211_EXT_FEATURE_CAN_REPLACE_PTK0, 6467206b73d0SCy Schubert NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER, 6468206b73d0SCy Schubert NL80211_EXT_FEATURE_AIRTIME_FAIRNESS, 6469206b73d0SCy Schubert NL80211_EXT_FEATURE_AP_PMKSA_CACHING, 6470206b73d0SCy Schubert NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, 6471206b73d0SCy Schubert NL80211_EXT_FEATURE_EXT_KEY_ID, 6472206b73d0SCy Schubert NL80211_EXT_FEATURE_STA_TX_PWR, 6473c1d255d3SCy Schubert NL80211_EXT_FEATURE_SAE_OFFLOAD, 6474c1d255d3SCy Schubert NL80211_EXT_FEATURE_VLAN_OFFLOAD, 6475c1d255d3SCy Schubert NL80211_EXT_FEATURE_AQL, 6476c1d255d3SCy Schubert NL80211_EXT_FEATURE_BEACON_PROTECTION, 6477c1d255d3SCy Schubert NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH, 6478c1d255d3SCy Schubert NL80211_EXT_FEATURE_PROTECTED_TWT, 6479c1d255d3SCy Schubert NL80211_EXT_FEATURE_DEL_IBSS_STA, 6480c1d255d3SCy Schubert NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS, 6481c1d255d3SCy Schubert NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT, 6482c1d255d3SCy Schubert NL80211_EXT_FEATURE_SCAN_FREQ_KHZ, 6483c1d255d3SCy Schubert NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS, 6484c1d255d3SCy Schubert NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION, 6485c1d255d3SCy Schubert NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK, 6486c1d255d3SCy Schubert NL80211_EXT_FEATURE_SAE_OFFLOAD_AP, 6487c1d255d3SCy Schubert NL80211_EXT_FEATURE_FILS_DISCOVERY, 6488c1d255d3SCy Schubert NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP, 6489c1d255d3SCy Schubert NL80211_EXT_FEATURE_BEACON_RATE_HE, 6490c1d255d3SCy Schubert NL80211_EXT_FEATURE_SECURE_LTF, 6491c1d255d3SCy Schubert NL80211_EXT_FEATURE_SECURE_RTT, 6492c1d255d3SCy Schubert NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE, 6493*a90b9d01SCy Schubert NL80211_EXT_FEATURE_BSS_COLOR, 6494*a90b9d01SCy Schubert NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD, 6495*a90b9d01SCy Schubert NL80211_EXT_FEATURE_RADAR_BACKGROUND, 6496*a90b9d01SCy Schubert NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE, 6497*a90b9d01SCy Schubert NL80211_EXT_FEATURE_PUNCT, 6498*a90b9d01SCy Schubert NL80211_EXT_FEATURE_SECURE_NAN, 6499*a90b9d01SCy Schubert NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA, 6500*a90b9d01SCy Schubert NL80211_EXT_FEATURE_OWE_OFFLOAD, 6501*a90b9d01SCy Schubert NL80211_EXT_FEATURE_OWE_OFFLOAD_AP, 6502206b73d0SCy Schubert 6503206b73d0SCy Schubert /* add new features before the definition below */ 6504206b73d0SCy Schubert NUM_NL80211_EXT_FEATURES, 6505206b73d0SCy Schubert MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1 6506206b73d0SCy Schubert }; 6507206b73d0SCy Schubert 6508206b73d0SCy Schubert /** 6509206b73d0SCy Schubert * enum nl80211_probe_resp_offload_support_attr - optional supported 6510206b73d0SCy Schubert * protocols for probe-response offloading by the driver/FW. 6511206b73d0SCy Schubert * To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute. 6512206b73d0SCy Schubert * Each enum value represents a bit in the bitmap of supported 6513206b73d0SCy Schubert * protocols. Typically a subset of probe-requests belonging to a 6514206b73d0SCy Schubert * supported protocol will be excluded from offload and uploaded 6515206b73d0SCy Schubert * to the host. 6516206b73d0SCy Schubert * 6517206b73d0SCy Schubert * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1 6518206b73d0SCy Schubert * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2 6519206b73d0SCy Schubert * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P 6520206b73d0SCy Schubert * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u 6521206b73d0SCy Schubert */ 6522206b73d0SCy Schubert enum nl80211_probe_resp_offload_support_attr { 6523206b73d0SCy Schubert NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0, 6524206b73d0SCy Schubert NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1, 6525206b73d0SCy Schubert NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2, 6526206b73d0SCy Schubert NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3, 6527206b73d0SCy Schubert }; 6528206b73d0SCy Schubert 6529206b73d0SCy Schubert /** 6530206b73d0SCy Schubert * enum nl80211_connect_failed_reason - connection request failed reasons 6531206b73d0SCy Schubert * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be 6532206b73d0SCy Schubert * handled by the AP is reached. 6533206b73d0SCy Schubert * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL. 6534206b73d0SCy Schubert */ 6535206b73d0SCy Schubert enum nl80211_connect_failed_reason { 6536206b73d0SCy Schubert NL80211_CONN_FAIL_MAX_CLIENTS, 6537206b73d0SCy Schubert NL80211_CONN_FAIL_BLOCKED_CLIENT, 6538206b73d0SCy Schubert }; 6539206b73d0SCy Schubert 6540206b73d0SCy Schubert /** 6541206b73d0SCy Schubert * enum nl80211_timeout_reason - timeout reasons 6542206b73d0SCy Schubert * 6543206b73d0SCy Schubert * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified. 6544206b73d0SCy Schubert * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out. 6545206b73d0SCy Schubert * @NL80211_TIMEOUT_AUTH: Authentication timed out. 6546206b73d0SCy Schubert * @NL80211_TIMEOUT_ASSOC: Association timed out. 6547206b73d0SCy Schubert */ 6548206b73d0SCy Schubert enum nl80211_timeout_reason { 6549206b73d0SCy Schubert NL80211_TIMEOUT_UNSPECIFIED, 6550206b73d0SCy Schubert NL80211_TIMEOUT_SCAN, 6551206b73d0SCy Schubert NL80211_TIMEOUT_AUTH, 6552206b73d0SCy Schubert NL80211_TIMEOUT_ASSOC, 6553206b73d0SCy Schubert }; 6554206b73d0SCy Schubert 6555206b73d0SCy Schubert /** 6556206b73d0SCy Schubert * enum nl80211_scan_flags - scan request control flags 6557206b73d0SCy Schubert * 6558206b73d0SCy Schubert * Scan request control flags are used to control the handling 6559206b73d0SCy Schubert * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN 6560206b73d0SCy Schubert * requests. 6561206b73d0SCy Schubert * 6562206b73d0SCy Schubert * NL80211_SCAN_FLAG_LOW_SPAN, NL80211_SCAN_FLAG_LOW_POWER, and 6563206b73d0SCy Schubert * NL80211_SCAN_FLAG_HIGH_ACCURACY flags are exclusive of each other, i.e., only 6564206b73d0SCy Schubert * one of them can be used in the request. 6565206b73d0SCy Schubert * 6566206b73d0SCy Schubert * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority 6567206b73d0SCy Schubert * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning 6568206b73d0SCy Schubert * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured 6569206b73d0SCy Schubert * as AP and the beaconing has already been configured. This attribute is 6570206b73d0SCy Schubert * dangerous because will destroy stations performance as a lot of frames 6571206b73d0SCy Schubert * will be lost while scanning off-channel, therefore it must be used only 6572206b73d0SCy Schubert * when really needed 6573206b73d0SCy Schubert * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or 6574206b73d0SCy Schubert * for scheduled scan: a different one for every scan iteration). When the 6575206b73d0SCy Schubert * flag is set, depending on device capabilities the @NL80211_ATTR_MAC and 6576206b73d0SCy Schubert * @NL80211_ATTR_MAC_MASK attributes may also be given in which case only 6577206b73d0SCy Schubert * the masked bits will be preserved from the MAC address and the remainder 6578206b73d0SCy Schubert * randomised. If the attributes are not given full randomisation (46 bits, 6579206b73d0SCy Schubert * locally administered 1, multicast 0) is assumed. 6580206b73d0SCy Schubert * This flag must not be requested when the feature isn't supported, check 6581206b73d0SCy Schubert * the nl80211 feature flags for the device. 6582206b73d0SCy Schubert * @NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME: fill the dwell time in the FILS 6583206b73d0SCy Schubert * request parameters IE in the probe request 6584206b73d0SCy Schubert * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses 6585206b73d0SCy Schubert * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at 6586206b73d0SCy Schubert * rate of at least 5.5M. In case non OCE AP is discovered in the channel, 6587206b73d0SCy Schubert * only the first probe req in the channel will be sent in high rate. 6588206b73d0SCy Schubert * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request 6589206b73d0SCy Schubert * tx deferral (dot11FILSProbeDelay shall be set to 15ms) 6590206b73d0SCy Schubert * and suppression (if it has received a broadcast Probe Response frame, 6591206b73d0SCy Schubert * Beacon frame or FILS Discovery frame from an AP that the STA considers 6592206b73d0SCy Schubert * a suitable candidate for (re-)association - suitable in terms of 6593206b73d0SCy Schubert * SSID and/or RSSI. 6594206b73d0SCy Schubert * @NL80211_SCAN_FLAG_LOW_SPAN: Span corresponds to the total time taken to 6595206b73d0SCy Schubert * accomplish the scan. Thus, this flag intends the driver to perform the 6596206b73d0SCy Schubert * scan request with lesser span/duration. It is specific to the driver 6597206b73d0SCy Schubert * implementations on how this is accomplished. Scan accuracy may get 6598206b73d0SCy Schubert * impacted with this flag. 6599206b73d0SCy Schubert * @NL80211_SCAN_FLAG_LOW_POWER: This flag intends the scan attempts to consume 6600206b73d0SCy Schubert * optimal possible power. Drivers can resort to their specific means to 6601206b73d0SCy Schubert * optimize the power. Scan accuracy may get impacted with this flag. 6602206b73d0SCy Schubert * @NL80211_SCAN_FLAG_HIGH_ACCURACY: Accuracy here intends to the extent of scan 6603206b73d0SCy Schubert * results obtained. Thus HIGH_ACCURACY scan flag aims to get maximum 6604206b73d0SCy Schubert * possible scan results. This flag hints the driver to use the best 6605206b73d0SCy Schubert * possible scan configuration to improve the accuracy in scanning. 6606206b73d0SCy Schubert * Latency and power use may get impacted with this flag. 6607206b73d0SCy Schubert * @NL80211_SCAN_FLAG_RANDOM_SN: randomize the sequence number in probe 6608206b73d0SCy Schubert * request frames from this scan to avoid correlation/tracking being 6609206b73d0SCy Schubert * possible. 6610206b73d0SCy Schubert * @NL80211_SCAN_FLAG_MIN_PREQ_CONTENT: minimize probe request content to 6611206b73d0SCy Schubert * only have supported rates and no additional capabilities (unless 6612206b73d0SCy Schubert * added by userspace explicitly.) 6613c1d255d3SCy Schubert * @NL80211_SCAN_FLAG_FREQ_KHZ: report scan results with 6614c1d255d3SCy Schubert * %NL80211_ATTR_SCAN_FREQ_KHZ. This also means 6615c1d255d3SCy Schubert * %NL80211_ATTR_SCAN_FREQUENCIES will not be included. 6616*a90b9d01SCy Schubert * @NL80211_SCAN_FLAG_COLOCATED_6GHZ: scan for collocated APs reported by 6617*a90b9d01SCy Schubert * 2.4/5 GHz APs. When the flag is set, the scan logic will use the 6618*a90b9d01SCy Schubert * information from the RNR element found in beacons/probe responses 6619*a90b9d01SCy Schubert * received on the 2.4/5 GHz channels to actively scan only the 6GHz 6620*a90b9d01SCy Schubert * channels on which APs are expected to be found. Note that when not set, 6621*a90b9d01SCy Schubert * the scan logic would scan all 6GHz channels, but since transmission of 6622*a90b9d01SCy Schubert * probe requests on non PSC channels is limited, it is highly likely that 6623*a90b9d01SCy Schubert * these channels would passively be scanned. Also note that when the flag 6624*a90b9d01SCy Schubert * is set, in addition to the colocated APs, PSC channels would also be 6625*a90b9d01SCy Schubert * scanned if the user space has asked for it. 6626206b73d0SCy Schubert */ 6627206b73d0SCy Schubert enum nl80211_scan_flags { 6628206b73d0SCy Schubert NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, 6629206b73d0SCy Schubert NL80211_SCAN_FLAG_FLUSH = 1<<1, 6630206b73d0SCy Schubert NL80211_SCAN_FLAG_AP = 1<<2, 6631206b73d0SCy Schubert NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3, 6632206b73d0SCy Schubert NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 1<<4, 6633206b73d0SCy Schubert NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 1<<5, 6634206b73d0SCy Schubert NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 1<<6, 6635206b73d0SCy Schubert NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 1<<7, 6636206b73d0SCy Schubert NL80211_SCAN_FLAG_LOW_SPAN = 1<<8, 6637206b73d0SCy Schubert NL80211_SCAN_FLAG_LOW_POWER = 1<<9, 6638206b73d0SCy Schubert NL80211_SCAN_FLAG_HIGH_ACCURACY = 1<<10, 6639206b73d0SCy Schubert NL80211_SCAN_FLAG_RANDOM_SN = 1<<11, 6640206b73d0SCy Schubert NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 1<<12, 6641c1d255d3SCy Schubert NL80211_SCAN_FLAG_FREQ_KHZ = 1<<13, 6642c1d255d3SCy Schubert NL80211_SCAN_FLAG_COLOCATED_6GHZ = 1<<14, 6643206b73d0SCy Schubert }; 6644206b73d0SCy Schubert 6645206b73d0SCy Schubert /** 6646206b73d0SCy Schubert * enum nl80211_acl_policy - access control policy 6647206b73d0SCy Schubert * 6648206b73d0SCy Schubert * Access control policy is applied on a MAC list set by 6649206b73d0SCy Schubert * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to 6650206b73d0SCy Schubert * be used with %NL80211_ATTR_ACL_POLICY. 6651206b73d0SCy Schubert * 6652206b73d0SCy Schubert * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are 6653206b73d0SCy Schubert * listed in ACL, i.e. allow all the stations which are not listed 6654206b73d0SCy Schubert * in ACL to authenticate. 6655206b73d0SCy Schubert * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed 6656206b73d0SCy Schubert * in ACL, i.e. deny all the stations which are not listed in ACL. 6657206b73d0SCy Schubert */ 6658206b73d0SCy Schubert enum nl80211_acl_policy { 6659206b73d0SCy Schubert NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED, 6660206b73d0SCy Schubert NL80211_ACL_POLICY_DENY_UNLESS_LISTED, 6661206b73d0SCy Schubert }; 6662206b73d0SCy Schubert 6663206b73d0SCy Schubert /** 6664206b73d0SCy Schubert * enum nl80211_smps_mode - SMPS mode 6665206b73d0SCy Schubert * 6666206b73d0SCy Schubert * Requested SMPS mode (for AP mode) 6667206b73d0SCy Schubert * 6668206b73d0SCy Schubert * @NL80211_SMPS_OFF: SMPS off (use all antennas). 6669206b73d0SCy Schubert * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) 6670206b73d0SCy Schubert * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and 6671206b73d0SCy Schubert * turn on other antennas after CTS/RTS). 6672206b73d0SCy Schubert */ 6673206b73d0SCy Schubert enum nl80211_smps_mode { 6674206b73d0SCy Schubert NL80211_SMPS_OFF, 6675206b73d0SCy Schubert NL80211_SMPS_STATIC, 6676206b73d0SCy Schubert NL80211_SMPS_DYNAMIC, 6677206b73d0SCy Schubert 6678206b73d0SCy Schubert __NL80211_SMPS_AFTER_LAST, 6679206b73d0SCy Schubert NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1 6680206b73d0SCy Schubert }; 6681206b73d0SCy Schubert 6682206b73d0SCy Schubert /** 6683206b73d0SCy Schubert * enum nl80211_radar_event - type of radar event for DFS operation 6684206b73d0SCy Schubert * 6685206b73d0SCy Schubert * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace 6686206b73d0SCy Schubert * about detected radars or success of the channel available check (CAC) 6687206b73d0SCy Schubert * 6688206b73d0SCy Schubert * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is 6689206b73d0SCy Schubert * now unusable. 6690206b73d0SCy Schubert * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished, 6691206b73d0SCy Schubert * the channel is now available. 6692206b73d0SCy Schubert * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no 6693206b73d0SCy Schubert * change to the channel status. 6694206b73d0SCy Schubert * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is 6695206b73d0SCy Schubert * over, channel becomes usable. 6696206b73d0SCy Schubert * @NL80211_RADAR_PRE_CAC_EXPIRED: Channel Availability Check done on this 6697206b73d0SCy Schubert * non-operating channel is expired and no longer valid. New CAC must 6698206b73d0SCy Schubert * be done on this channel before starting the operation. This is not 6699206b73d0SCy Schubert * applicable for ETSI dfs domain where pre-CAC is valid for ever. 6700206b73d0SCy Schubert * @NL80211_RADAR_CAC_STARTED: Channel Availability Check has been started, 6701206b73d0SCy Schubert * should be generated by HW if NL80211_EXT_FEATURE_DFS_OFFLOAD is enabled. 6702206b73d0SCy Schubert */ 6703206b73d0SCy Schubert enum nl80211_radar_event { 6704206b73d0SCy Schubert NL80211_RADAR_DETECTED, 6705206b73d0SCy Schubert NL80211_RADAR_CAC_FINISHED, 6706206b73d0SCy Schubert NL80211_RADAR_CAC_ABORTED, 6707206b73d0SCy Schubert NL80211_RADAR_NOP_FINISHED, 6708206b73d0SCy Schubert NL80211_RADAR_PRE_CAC_EXPIRED, 6709206b73d0SCy Schubert NL80211_RADAR_CAC_STARTED, 6710206b73d0SCy Schubert }; 6711206b73d0SCy Schubert 6712206b73d0SCy Schubert /** 6713206b73d0SCy Schubert * enum nl80211_dfs_state - DFS states for channels 6714206b73d0SCy Schubert * 6715206b73d0SCy Schubert * Channel states used by the DFS code. 6716206b73d0SCy Schubert * 6717206b73d0SCy Schubert * @NL80211_DFS_USABLE: The channel can be used, but channel availability 6718206b73d0SCy Schubert * check (CAC) must be performed before using it for AP or IBSS. 6719206b73d0SCy Schubert * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it 6720206b73d0SCy Schubert * is therefore marked as not available. 6721206b73d0SCy Schubert * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available. 6722206b73d0SCy Schubert */ 6723206b73d0SCy Schubert enum nl80211_dfs_state { 6724206b73d0SCy Schubert NL80211_DFS_USABLE, 6725206b73d0SCy Schubert NL80211_DFS_UNAVAILABLE, 6726206b73d0SCy Schubert NL80211_DFS_AVAILABLE, 6727206b73d0SCy Schubert }; 6728206b73d0SCy Schubert 6729206b73d0SCy Schubert /** 6730c1d255d3SCy Schubert * enum nl80211_protocol_features - nl80211 protocol features 6731206b73d0SCy Schubert * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting 6732206b73d0SCy Schubert * wiphy dumps (if requested by the application with the attribute 6733206b73d0SCy Schubert * %NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the 6734206b73d0SCy Schubert * wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or 6735206b73d0SCy Schubert * %NL80211_ATTR_WDEV. 6736206b73d0SCy Schubert */ 6737206b73d0SCy Schubert enum nl80211_protocol_features { 6738206b73d0SCy Schubert NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0, 6739206b73d0SCy Schubert }; 6740206b73d0SCy Schubert 6741206b73d0SCy Schubert /** 6742206b73d0SCy Schubert * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers 6743206b73d0SCy Schubert * 6744206b73d0SCy Schubert * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified. 6745206b73d0SCy Schubert * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol. 6746206b73d0SCy Schubert * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol. 6747206b73d0SCy Schubert * @NL80211_CRIT_PROTO_APIPA: APIPA protocol. 6748206b73d0SCy Schubert * @NUM_NL80211_CRIT_PROTO: must be kept last. 6749206b73d0SCy Schubert */ 6750206b73d0SCy Schubert enum nl80211_crit_proto_id { 6751206b73d0SCy Schubert NL80211_CRIT_PROTO_UNSPEC, 6752206b73d0SCy Schubert NL80211_CRIT_PROTO_DHCP, 6753206b73d0SCy Schubert NL80211_CRIT_PROTO_EAPOL, 6754206b73d0SCy Schubert NL80211_CRIT_PROTO_APIPA, 6755206b73d0SCy Schubert /* add other protocols before this one */ 6756206b73d0SCy Schubert NUM_NL80211_CRIT_PROTO 6757206b73d0SCy Schubert }; 6758206b73d0SCy Schubert 6759206b73d0SCy Schubert /* maximum duration for critical protocol measures */ 6760206b73d0SCy Schubert #define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ 6761206b73d0SCy Schubert 6762206b73d0SCy Schubert /** 6763206b73d0SCy Schubert * enum nl80211_rxmgmt_flags - flags for received management frame. 6764206b73d0SCy Schubert * 6765206b73d0SCy Schubert * Used by cfg80211_rx_mgmt() 6766206b73d0SCy Schubert * 6767206b73d0SCy Schubert * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver. 6768206b73d0SCy Schubert * @NL80211_RXMGMT_FLAG_EXTERNAL_AUTH: Host driver intends to offload 6769206b73d0SCy Schubert * the authentication. Exclusively defined for host drivers that 6770206b73d0SCy Schubert * advertises the SME functionality but would like the userspace 6771206b73d0SCy Schubert * to handle certain authentication algorithms (e.g. SAE). 6772206b73d0SCy Schubert */ 6773206b73d0SCy Schubert enum nl80211_rxmgmt_flags { 6774206b73d0SCy Schubert NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0, 6775206b73d0SCy Schubert NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 1 << 1, 6776206b73d0SCy Schubert }; 6777206b73d0SCy Schubert 6778206b73d0SCy Schubert /* 6779206b73d0SCy Schubert * If this flag is unset, the lower 24 bits are an OUI, if set 6780206b73d0SCy Schubert * a Linux nl80211 vendor ID is used (no such IDs are allocated 6781206b73d0SCy Schubert * yet, so that's not valid so far) 6782206b73d0SCy Schubert */ 6783206b73d0SCy Schubert #define NL80211_VENDOR_ID_IS_LINUX 0x80000000 6784206b73d0SCy Schubert 6785206b73d0SCy Schubert /** 6786206b73d0SCy Schubert * struct nl80211_vendor_cmd_info - vendor command data 6787206b73d0SCy Schubert * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the 6788206b73d0SCy Schubert * value is a 24-bit OUI; if it is set then a separately allocated ID 6789206b73d0SCy Schubert * may be used, but no such IDs are allocated yet. New IDs should be 6790206b73d0SCy Schubert * added to this file when needed. 6791206b73d0SCy Schubert * @subcmd: sub-command ID for the command 6792206b73d0SCy Schubert */ 6793206b73d0SCy Schubert struct nl80211_vendor_cmd_info { 6794206b73d0SCy Schubert __u32 vendor_id; 6795206b73d0SCy Schubert __u32 subcmd; 6796206b73d0SCy Schubert }; 6797206b73d0SCy Schubert 6798206b73d0SCy Schubert /** 6799206b73d0SCy Schubert * enum nl80211_tdls_peer_capability - TDLS peer flags. 6800206b73d0SCy Schubert * 6801206b73d0SCy Schubert * Used by tdls_mgmt() to determine which conditional elements need 6802206b73d0SCy Schubert * to be added to TDLS Setup frames. 6803206b73d0SCy Schubert * 6804206b73d0SCy Schubert * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable. 6805206b73d0SCy Schubert * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable. 6806206b73d0SCy Schubert * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable. 6807c1d255d3SCy Schubert * @NL80211_TDLS_PEER_HE: TDLS peer is HE capable. 6808206b73d0SCy Schubert */ 6809206b73d0SCy Schubert enum nl80211_tdls_peer_capability { 6810206b73d0SCy Schubert NL80211_TDLS_PEER_HT = 1<<0, 6811206b73d0SCy Schubert NL80211_TDLS_PEER_VHT = 1<<1, 6812206b73d0SCy Schubert NL80211_TDLS_PEER_WMM = 1<<2, 6813c1d255d3SCy Schubert NL80211_TDLS_PEER_HE = 1<<3, 6814206b73d0SCy Schubert }; 6815206b73d0SCy Schubert 6816206b73d0SCy Schubert /** 6817206b73d0SCy Schubert * enum nl80211_sched_scan_plan - scanning plan for scheduled scan 6818206b73d0SCy Schubert * @__NL80211_SCHED_SCAN_PLAN_INVALID: attribute number 0 is reserved 6819206b73d0SCy Schubert * @NL80211_SCHED_SCAN_PLAN_INTERVAL: interval between scan iterations. In 6820206b73d0SCy Schubert * seconds (u32). 6821206b73d0SCy Schubert * @NL80211_SCHED_SCAN_PLAN_ITERATIONS: number of scan iterations in this 6822206b73d0SCy Schubert * scan plan (u32). The last scan plan must not specify this attribute 6823206b73d0SCy Schubert * because it will run infinitely. A value of zero is invalid as it will 6824206b73d0SCy Schubert * make the scan plan meaningless. 6825206b73d0SCy Schubert * @NL80211_SCHED_SCAN_PLAN_MAX: highest scheduled scan plan attribute number 6826206b73d0SCy Schubert * currently defined 6827206b73d0SCy Schubert * @__NL80211_SCHED_SCAN_PLAN_AFTER_LAST: internal use 6828206b73d0SCy Schubert */ 6829206b73d0SCy Schubert enum nl80211_sched_scan_plan { 6830206b73d0SCy Schubert __NL80211_SCHED_SCAN_PLAN_INVALID, 6831206b73d0SCy Schubert NL80211_SCHED_SCAN_PLAN_INTERVAL, 6832206b73d0SCy Schubert NL80211_SCHED_SCAN_PLAN_ITERATIONS, 6833206b73d0SCy Schubert 6834206b73d0SCy Schubert /* keep last */ 6835206b73d0SCy Schubert __NL80211_SCHED_SCAN_PLAN_AFTER_LAST, 6836206b73d0SCy Schubert NL80211_SCHED_SCAN_PLAN_MAX = 6837206b73d0SCy Schubert __NL80211_SCHED_SCAN_PLAN_AFTER_LAST - 1 6838206b73d0SCy Schubert }; 6839206b73d0SCy Schubert 6840206b73d0SCy Schubert /** 6841206b73d0SCy Schubert * struct nl80211_bss_select_rssi_adjust - RSSI adjustment parameters. 6842206b73d0SCy Schubert * 6843206b73d0SCy Schubert * @band: band of BSS that must match for RSSI value adjustment. The value 6844206b73d0SCy Schubert * of this field is according to &enum nl80211_band. 6845206b73d0SCy Schubert * @delta: value used to adjust the RSSI value of matching BSS in dB. 6846206b73d0SCy Schubert */ 6847206b73d0SCy Schubert struct nl80211_bss_select_rssi_adjust { 6848206b73d0SCy Schubert __u8 band; 6849206b73d0SCy Schubert __s8 delta; 6850206b73d0SCy Schubert } __attribute__((packed)); 6851206b73d0SCy Schubert 6852206b73d0SCy Schubert /** 6853206b73d0SCy Schubert * enum nl80211_bss_select_attr - attributes for bss selection. 6854206b73d0SCy Schubert * 6855206b73d0SCy Schubert * @__NL80211_BSS_SELECT_ATTR_INVALID: reserved. 6856206b73d0SCy Schubert * @NL80211_BSS_SELECT_ATTR_RSSI: Flag indicating only RSSI-based BSS selection 6857206b73d0SCy Schubert * is requested. 6858206b73d0SCy Schubert * @NL80211_BSS_SELECT_ATTR_BAND_PREF: attribute indicating BSS 6859206b73d0SCy Schubert * selection should be done such that the specified band is preferred. 6860206b73d0SCy Schubert * When there are multiple BSS-es in the preferred band, the driver 6861206b73d0SCy Schubert * shall use RSSI-based BSS selection as a second step. The value of 6862206b73d0SCy Schubert * this attribute is according to &enum nl80211_band (u32). 6863206b73d0SCy Schubert * @NL80211_BSS_SELECT_ATTR_RSSI_ADJUST: When present the RSSI level for 6864206b73d0SCy Schubert * BSS-es in the specified band is to be adjusted before doing 6865206b73d0SCy Schubert * RSSI-based BSS selection. The attribute value is a packed structure 6866206b73d0SCy Schubert * value as specified by &struct nl80211_bss_select_rssi_adjust. 6867206b73d0SCy Schubert * @NL80211_BSS_SELECT_ATTR_MAX: highest bss select attribute number. 6868206b73d0SCy Schubert * @__NL80211_BSS_SELECT_ATTR_AFTER_LAST: internal use. 6869206b73d0SCy Schubert * 6870206b73d0SCy Schubert * One and only one of these attributes are found within %NL80211_ATTR_BSS_SELECT 6871206b73d0SCy Schubert * for %NL80211_CMD_CONNECT. It specifies the required BSS selection behaviour 6872206b73d0SCy Schubert * which the driver shall use. 6873206b73d0SCy Schubert */ 6874206b73d0SCy Schubert enum nl80211_bss_select_attr { 6875206b73d0SCy Schubert __NL80211_BSS_SELECT_ATTR_INVALID, 6876206b73d0SCy Schubert NL80211_BSS_SELECT_ATTR_RSSI, 6877206b73d0SCy Schubert NL80211_BSS_SELECT_ATTR_BAND_PREF, 6878206b73d0SCy Schubert NL80211_BSS_SELECT_ATTR_RSSI_ADJUST, 6879206b73d0SCy Schubert 6880206b73d0SCy Schubert /* keep last */ 6881206b73d0SCy Schubert __NL80211_BSS_SELECT_ATTR_AFTER_LAST, 6882206b73d0SCy Schubert NL80211_BSS_SELECT_ATTR_MAX = __NL80211_BSS_SELECT_ATTR_AFTER_LAST - 1 6883206b73d0SCy Schubert }; 6884206b73d0SCy Schubert 6885206b73d0SCy Schubert /** 6886206b73d0SCy Schubert * enum nl80211_nan_function_type - NAN function type 6887206b73d0SCy Schubert * 6888206b73d0SCy Schubert * Defines the function type of a NAN function 6889206b73d0SCy Schubert * 6890206b73d0SCy Schubert * @NL80211_NAN_FUNC_PUBLISH: function is publish 6891206b73d0SCy Schubert * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe 6892206b73d0SCy Schubert * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up 6893206b73d0SCy Schubert */ 6894206b73d0SCy Schubert enum nl80211_nan_function_type { 6895206b73d0SCy Schubert NL80211_NAN_FUNC_PUBLISH, 6896206b73d0SCy Schubert NL80211_NAN_FUNC_SUBSCRIBE, 6897206b73d0SCy Schubert NL80211_NAN_FUNC_FOLLOW_UP, 6898206b73d0SCy Schubert 6899206b73d0SCy Schubert /* keep last */ 6900206b73d0SCy Schubert __NL80211_NAN_FUNC_TYPE_AFTER_LAST, 6901206b73d0SCy Schubert NL80211_NAN_FUNC_MAX_TYPE = __NL80211_NAN_FUNC_TYPE_AFTER_LAST - 1, 6902206b73d0SCy Schubert }; 6903206b73d0SCy Schubert 6904206b73d0SCy Schubert /** 6905206b73d0SCy Schubert * enum nl80211_nan_publish_type - NAN publish tx type 6906206b73d0SCy Schubert * 6907206b73d0SCy Schubert * Defines how to send publish Service Discovery Frames 6908206b73d0SCy Schubert * 6909206b73d0SCy Schubert * @NL80211_NAN_SOLICITED_PUBLISH: publish function is solicited 6910206b73d0SCy Schubert * @NL80211_NAN_UNSOLICITED_PUBLISH: publish function is unsolicited 6911206b73d0SCy Schubert */ 6912206b73d0SCy Schubert enum nl80211_nan_publish_type { 6913206b73d0SCy Schubert NL80211_NAN_SOLICITED_PUBLISH = 1 << 0, 6914206b73d0SCy Schubert NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1, 6915206b73d0SCy Schubert }; 6916206b73d0SCy Schubert 6917206b73d0SCy Schubert /** 6918206b73d0SCy Schubert * enum nl80211_nan_func_term_reason - NAN functions termination reason 6919206b73d0SCy Schubert * 6920206b73d0SCy Schubert * Defines termination reasons of a NAN function 6921206b73d0SCy Schubert * 6922206b73d0SCy Schubert * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user 6923206b73d0SCy Schubert * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout 6924206b73d0SCy Schubert * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored 6925206b73d0SCy Schubert */ 6926206b73d0SCy Schubert enum nl80211_nan_func_term_reason { 6927206b73d0SCy Schubert NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST, 6928206b73d0SCy Schubert NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED, 6929206b73d0SCy Schubert NL80211_NAN_FUNC_TERM_REASON_ERROR, 6930206b73d0SCy Schubert }; 6931206b73d0SCy Schubert 6932206b73d0SCy Schubert #define NL80211_NAN_FUNC_SERVICE_ID_LEN 6 6933206b73d0SCy Schubert #define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff 6934206b73d0SCy Schubert #define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff 6935206b73d0SCy Schubert 6936206b73d0SCy Schubert /** 6937206b73d0SCy Schubert * enum nl80211_nan_func_attributes - NAN function attributes 6938206b73d0SCy Schubert * @__NL80211_NAN_FUNC_INVALID: invalid 6939206b73d0SCy Schubert * @NL80211_NAN_FUNC_TYPE: &enum nl80211_nan_function_type (u8). 6940206b73d0SCy Schubert * @NL80211_NAN_FUNC_SERVICE_ID: 6 bytes of the service ID hash as 6941206b73d0SCy Schubert * specified in NAN spec. This is a binary attribute. 6942206b73d0SCy Schubert * @NL80211_NAN_FUNC_PUBLISH_TYPE: relevant if the function's type is 6943206b73d0SCy Schubert * publish. Defines the transmission type for the publish Service Discovery 6944206b73d0SCy Schubert * Frame, see &enum nl80211_nan_publish_type. Its type is u8. 6945206b73d0SCy Schubert * @NL80211_NAN_FUNC_PUBLISH_BCAST: relevant if the function is a solicited 6946206b73d0SCy Schubert * publish. Should the solicited publish Service Discovery Frame be sent to 6947206b73d0SCy Schubert * the NAN Broadcast address. This is a flag. 6948206b73d0SCy Schubert * @NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE: relevant if the function's type is 6949206b73d0SCy Schubert * subscribe. Is the subscribe active. This is a flag. 6950206b73d0SCy Schubert * @NL80211_NAN_FUNC_FOLLOW_UP_ID: relevant if the function's type is follow up. 6951206b73d0SCy Schubert * The instance ID for the follow up Service Discovery Frame. This is u8. 6952206b73d0SCy Schubert * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type 6953206b73d0SCy Schubert * is follow up. This is a u8. 6954206b73d0SCy Schubert * The requestor instance ID for the follow up Service Discovery Frame. 6955206b73d0SCy Schubert * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the 6956206b73d0SCy Schubert * follow up Service Discovery Frame. This is a binary attribute. 6957206b73d0SCy Schubert * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a 6958206b73d0SCy Schubert * close range. The range itself (RSSI) is defined by the device. 6959206b73d0SCy Schubert * This is a flag. 6960206b73d0SCy Schubert * @NL80211_NAN_FUNC_TTL: strictly positive number of DWs this function should 6961206b73d0SCy Schubert * stay active. If not present infinite TTL is assumed. This is a u32. 6962206b73d0SCy Schubert * @NL80211_NAN_FUNC_SERVICE_INFO: array of bytes describing the service 6963206b73d0SCy Schubert * specific info. This is a binary attribute. 6964206b73d0SCy Schubert * @NL80211_NAN_FUNC_SRF: Service Receive Filter. This is a nested attribute. 6965206b73d0SCy Schubert * See &enum nl80211_nan_srf_attributes. 6966206b73d0SCy Schubert * @NL80211_NAN_FUNC_RX_MATCH_FILTER: Receive Matching filter. This is a nested 6967206b73d0SCy Schubert * attribute. It is a list of binary values. 6968206b73d0SCy Schubert * @NL80211_NAN_FUNC_TX_MATCH_FILTER: Transmit Matching filter. This is a 6969206b73d0SCy Schubert * nested attribute. It is a list of binary values. 6970206b73d0SCy Schubert * @NL80211_NAN_FUNC_INSTANCE_ID: The instance ID of the function. 6971206b73d0SCy Schubert * Its type is u8 and it cannot be 0. 6972206b73d0SCy Schubert * @NL80211_NAN_FUNC_TERM_REASON: NAN function termination reason. 6973206b73d0SCy Schubert * See &enum nl80211_nan_func_term_reason. 6974206b73d0SCy Schubert * 6975206b73d0SCy Schubert * @NUM_NL80211_NAN_FUNC_ATTR: internal 6976206b73d0SCy Schubert * @NL80211_NAN_FUNC_ATTR_MAX: highest NAN function attribute 6977206b73d0SCy Schubert */ 6978206b73d0SCy Schubert enum nl80211_nan_func_attributes { 6979206b73d0SCy Schubert __NL80211_NAN_FUNC_INVALID, 6980206b73d0SCy Schubert NL80211_NAN_FUNC_TYPE, 6981206b73d0SCy Schubert NL80211_NAN_FUNC_SERVICE_ID, 6982206b73d0SCy Schubert NL80211_NAN_FUNC_PUBLISH_TYPE, 6983206b73d0SCy Schubert NL80211_NAN_FUNC_PUBLISH_BCAST, 6984206b73d0SCy Schubert NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE, 6985206b73d0SCy Schubert NL80211_NAN_FUNC_FOLLOW_UP_ID, 6986206b73d0SCy Schubert NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID, 6987206b73d0SCy Schubert NL80211_NAN_FUNC_FOLLOW_UP_DEST, 6988206b73d0SCy Schubert NL80211_NAN_FUNC_CLOSE_RANGE, 6989206b73d0SCy Schubert NL80211_NAN_FUNC_TTL, 6990206b73d0SCy Schubert NL80211_NAN_FUNC_SERVICE_INFO, 6991206b73d0SCy Schubert NL80211_NAN_FUNC_SRF, 6992206b73d0SCy Schubert NL80211_NAN_FUNC_RX_MATCH_FILTER, 6993206b73d0SCy Schubert NL80211_NAN_FUNC_TX_MATCH_FILTER, 6994206b73d0SCy Schubert NL80211_NAN_FUNC_INSTANCE_ID, 6995206b73d0SCy Schubert NL80211_NAN_FUNC_TERM_REASON, 6996206b73d0SCy Schubert 6997206b73d0SCy Schubert /* keep last */ 6998206b73d0SCy Schubert NUM_NL80211_NAN_FUNC_ATTR, 6999206b73d0SCy Schubert NL80211_NAN_FUNC_ATTR_MAX = NUM_NL80211_NAN_FUNC_ATTR - 1 7000206b73d0SCy Schubert }; 7001206b73d0SCy Schubert 7002206b73d0SCy Schubert /** 7003206b73d0SCy Schubert * enum nl80211_nan_srf_attributes - NAN Service Response filter attributes 7004206b73d0SCy Schubert * @__NL80211_NAN_SRF_INVALID: invalid 7005206b73d0SCy Schubert * @NL80211_NAN_SRF_INCLUDE: present if the include bit of the SRF set. 7006206b73d0SCy Schubert * This is a flag. 7007206b73d0SCy Schubert * @NL80211_NAN_SRF_BF: Bloom Filter. Present if and only if 7008206b73d0SCy Schubert * %NL80211_NAN_SRF_MAC_ADDRS isn't present. This attribute is binary. 7009206b73d0SCy Schubert * @NL80211_NAN_SRF_BF_IDX: index of the Bloom Filter. Mandatory if 7010206b73d0SCy Schubert * %NL80211_NAN_SRF_BF is present. This is a u8. 7011206b73d0SCy Schubert * @NL80211_NAN_SRF_MAC_ADDRS: list of MAC addresses for the SRF. Present if 7012206b73d0SCy Schubert * and only if %NL80211_NAN_SRF_BF isn't present. This is a nested 7013206b73d0SCy Schubert * attribute. Each nested attribute is a MAC address. 7014206b73d0SCy Schubert * @NUM_NL80211_NAN_SRF_ATTR: internal 7015206b73d0SCy Schubert * @NL80211_NAN_SRF_ATTR_MAX: highest NAN SRF attribute 7016206b73d0SCy Schubert */ 7017206b73d0SCy Schubert enum nl80211_nan_srf_attributes { 7018206b73d0SCy Schubert __NL80211_NAN_SRF_INVALID, 7019206b73d0SCy Schubert NL80211_NAN_SRF_INCLUDE, 7020206b73d0SCy Schubert NL80211_NAN_SRF_BF, 7021206b73d0SCy Schubert NL80211_NAN_SRF_BF_IDX, 7022206b73d0SCy Schubert NL80211_NAN_SRF_MAC_ADDRS, 7023206b73d0SCy Schubert 7024206b73d0SCy Schubert /* keep last */ 7025206b73d0SCy Schubert NUM_NL80211_NAN_SRF_ATTR, 7026206b73d0SCy Schubert NL80211_NAN_SRF_ATTR_MAX = NUM_NL80211_NAN_SRF_ATTR - 1, 7027206b73d0SCy Schubert }; 7028206b73d0SCy Schubert 7029206b73d0SCy Schubert /** 7030206b73d0SCy Schubert * enum nl80211_nan_match_attributes - NAN match attributes 7031206b73d0SCy Schubert * @__NL80211_NAN_MATCH_INVALID: invalid 7032206b73d0SCy Schubert * @NL80211_NAN_MATCH_FUNC_LOCAL: the local function that had the 7033206b73d0SCy Schubert * match. This is a nested attribute. 7034206b73d0SCy Schubert * See &enum nl80211_nan_func_attributes. 7035206b73d0SCy Schubert * @NL80211_NAN_MATCH_FUNC_PEER: the peer function 7036206b73d0SCy Schubert * that caused the match. This is a nested attribute. 7037206b73d0SCy Schubert * See &enum nl80211_nan_func_attributes. 7038206b73d0SCy Schubert * 7039206b73d0SCy Schubert * @NUM_NL80211_NAN_MATCH_ATTR: internal 7040206b73d0SCy Schubert * @NL80211_NAN_MATCH_ATTR_MAX: highest NAN match attribute 7041206b73d0SCy Schubert */ 7042206b73d0SCy Schubert enum nl80211_nan_match_attributes { 7043206b73d0SCy Schubert __NL80211_NAN_MATCH_INVALID, 7044206b73d0SCy Schubert NL80211_NAN_MATCH_FUNC_LOCAL, 7045206b73d0SCy Schubert NL80211_NAN_MATCH_FUNC_PEER, 7046206b73d0SCy Schubert 7047206b73d0SCy Schubert /* keep last */ 7048206b73d0SCy Schubert NUM_NL80211_NAN_MATCH_ATTR, 7049206b73d0SCy Schubert NL80211_NAN_MATCH_ATTR_MAX = NUM_NL80211_NAN_MATCH_ATTR - 1 7050206b73d0SCy Schubert }; 7051206b73d0SCy Schubert 7052206b73d0SCy Schubert /** 7053206b73d0SCy Schubert * nl80211_external_auth_action - Action to perform with external 7054206b73d0SCy Schubert * authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION. 7055206b73d0SCy Schubert * @NL80211_EXTERNAL_AUTH_START: Start the authentication. 7056206b73d0SCy Schubert * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication. 7057206b73d0SCy Schubert */ 7058206b73d0SCy Schubert enum nl80211_external_auth_action { 7059206b73d0SCy Schubert NL80211_EXTERNAL_AUTH_START, 7060206b73d0SCy Schubert NL80211_EXTERNAL_AUTH_ABORT, 7061206b73d0SCy Schubert }; 7062206b73d0SCy Schubert 7063206b73d0SCy Schubert /** 7064206b73d0SCy Schubert * enum nl80211_ftm_responder_attributes - fine timing measurement 7065206b73d0SCy Schubert * responder attributes 7066206b73d0SCy Schubert * @__NL80211_FTM_RESP_ATTR_INVALID: Invalid 7067206b73d0SCy Schubert * @NL80211_FTM_RESP_ATTR_ENABLED: FTM responder is enabled 7068206b73d0SCy Schubert * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element 7069206b73d0SCy Schubert * (9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10), 7070206b73d0SCy Schubert * i.e. starting with the measurement token 7071206b73d0SCy Schubert * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element 7072206b73d0SCy Schubert * (9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13), 7073206b73d0SCy Schubert * i.e. starting with the measurement token 7074206b73d0SCy Schubert * @__NL80211_FTM_RESP_ATTR_LAST: Internal 7075206b73d0SCy Schubert * @NL80211_FTM_RESP_ATTR_MAX: highest FTM responder attribute. 7076206b73d0SCy Schubert */ 7077206b73d0SCy Schubert enum nl80211_ftm_responder_attributes { 7078206b73d0SCy Schubert __NL80211_FTM_RESP_ATTR_INVALID, 7079206b73d0SCy Schubert 7080206b73d0SCy Schubert NL80211_FTM_RESP_ATTR_ENABLED, 7081206b73d0SCy Schubert NL80211_FTM_RESP_ATTR_LCI, 7082206b73d0SCy Schubert NL80211_FTM_RESP_ATTR_CIVICLOC, 7083206b73d0SCy Schubert 7084206b73d0SCy Schubert /* keep last */ 7085206b73d0SCy Schubert __NL80211_FTM_RESP_ATTR_LAST, 7086206b73d0SCy Schubert NL80211_FTM_RESP_ATTR_MAX = __NL80211_FTM_RESP_ATTR_LAST - 1, 7087206b73d0SCy Schubert }; 7088206b73d0SCy Schubert 7089206b73d0SCy Schubert /* 7090206b73d0SCy Schubert * enum nl80211_ftm_responder_stats - FTM responder statistics 7091206b73d0SCy Schubert * 7092206b73d0SCy Schubert * These attribute types are used with %NL80211_ATTR_FTM_RESPONDER_STATS 7093206b73d0SCy Schubert * when getting FTM responder statistics. 7094206b73d0SCy Schubert * 7095206b73d0SCy Schubert * @__NL80211_FTM_STATS_INVALID: attribute number 0 is reserved 7096206b73d0SCy Schubert * @NL80211_FTM_STATS_SUCCESS_NUM: number of FTM sessions in which all frames 7097206b73d0SCy Schubert * were ssfully answered (u32) 7098206b73d0SCy Schubert * @NL80211_FTM_STATS_PARTIAL_NUM: number of FTM sessions in which part of the 7099206b73d0SCy Schubert * frames were successfully answered (u32) 7100206b73d0SCy Schubert * @NL80211_FTM_STATS_FAILED_NUM: number of failed FTM sessions (u32) 7101206b73d0SCy Schubert * @NL80211_FTM_STATS_ASAP_NUM: number of ASAP sessions (u32) 7102206b73d0SCy Schubert * @NL80211_FTM_STATS_NON_ASAP_NUM: number of non-ASAP sessions (u32) 7103206b73d0SCy Schubert * @NL80211_FTM_STATS_TOTAL_DURATION_MSEC: total sessions durations - gives an 7104206b73d0SCy Schubert * indication of how much time the responder was busy (u64, msec) 7105206b73d0SCy Schubert * @NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM: number of unknown FTM triggers - 7106206b73d0SCy Schubert * triggers from initiators that didn't finish successfully the negotiation 7107206b73d0SCy Schubert * phase with the responder (u32) 7108206b73d0SCy Schubert * @NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM: number of FTM reschedule requests 7109206b73d0SCy Schubert * - initiator asks for a new scheduling although it already has scheduled 7110206b73d0SCy Schubert * FTM slot (u32) 7111206b73d0SCy Schubert * @NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM: number of FTM triggers out of 7112206b73d0SCy Schubert * scheduled window (u32) 7113206b73d0SCy Schubert * @NL80211_FTM_STATS_PAD: used for padding, ignore 7114206b73d0SCy Schubert * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal 7115206b73d0SCy Schubert * @NL80211_FTM_STATS_MAX: highest possible FTM responder stats attribute 7116206b73d0SCy Schubert */ 7117206b73d0SCy Schubert enum nl80211_ftm_responder_stats { 7118206b73d0SCy Schubert __NL80211_FTM_STATS_INVALID, 7119206b73d0SCy Schubert NL80211_FTM_STATS_SUCCESS_NUM, 7120206b73d0SCy Schubert NL80211_FTM_STATS_PARTIAL_NUM, 7121206b73d0SCy Schubert NL80211_FTM_STATS_FAILED_NUM, 7122206b73d0SCy Schubert NL80211_FTM_STATS_ASAP_NUM, 7123206b73d0SCy Schubert NL80211_FTM_STATS_NON_ASAP_NUM, 7124206b73d0SCy Schubert NL80211_FTM_STATS_TOTAL_DURATION_MSEC, 7125206b73d0SCy Schubert NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM, 7126206b73d0SCy Schubert NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM, 7127206b73d0SCy Schubert NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM, 7128206b73d0SCy Schubert NL80211_FTM_STATS_PAD, 7129206b73d0SCy Schubert 7130206b73d0SCy Schubert /* keep last */ 7131206b73d0SCy Schubert __NL80211_FTM_STATS_AFTER_LAST, 7132206b73d0SCy Schubert NL80211_FTM_STATS_MAX = __NL80211_FTM_STATS_AFTER_LAST - 1 7133206b73d0SCy Schubert }; 7134206b73d0SCy Schubert 7135206b73d0SCy Schubert /** 7136206b73d0SCy Schubert * enum nl80211_preamble - frame preamble types 7137206b73d0SCy Schubert * @NL80211_PREAMBLE_LEGACY: legacy (HR/DSSS, OFDM, ERP PHY) preamble 7138206b73d0SCy Schubert * @NL80211_PREAMBLE_HT: HT preamble 7139206b73d0SCy Schubert * @NL80211_PREAMBLE_VHT: VHT preamble 7140206b73d0SCy Schubert * @NL80211_PREAMBLE_DMG: DMG preamble 7141c1d255d3SCy Schubert * @NL80211_PREAMBLE_HE: HE preamble 7142206b73d0SCy Schubert */ 7143206b73d0SCy Schubert enum nl80211_preamble { 7144206b73d0SCy Schubert NL80211_PREAMBLE_LEGACY, 7145206b73d0SCy Schubert NL80211_PREAMBLE_HT, 7146206b73d0SCy Schubert NL80211_PREAMBLE_VHT, 7147206b73d0SCy Schubert NL80211_PREAMBLE_DMG, 7148c1d255d3SCy Schubert NL80211_PREAMBLE_HE, 7149206b73d0SCy Schubert }; 7150206b73d0SCy Schubert 7151206b73d0SCy Schubert /** 7152206b73d0SCy Schubert * enum nl80211_peer_measurement_type - peer measurement types 7153206b73d0SCy Schubert * @NL80211_PMSR_TYPE_INVALID: invalid/unused, needed as we use 7154206b73d0SCy Schubert * these numbers also for attributes 7155206b73d0SCy Schubert * 7156206b73d0SCy Schubert * @NL80211_PMSR_TYPE_FTM: flight time measurement 7157206b73d0SCy Schubert * 7158206b73d0SCy Schubert * @NUM_NL80211_PMSR_TYPES: internal 7159206b73d0SCy Schubert * @NL80211_PMSR_TYPE_MAX: highest type number 7160206b73d0SCy Schubert */ 7161206b73d0SCy Schubert enum nl80211_peer_measurement_type { 7162206b73d0SCy Schubert NL80211_PMSR_TYPE_INVALID, 7163206b73d0SCy Schubert 7164206b73d0SCy Schubert NL80211_PMSR_TYPE_FTM, 7165206b73d0SCy Schubert 7166206b73d0SCy Schubert NUM_NL80211_PMSR_TYPES, 7167206b73d0SCy Schubert NL80211_PMSR_TYPE_MAX = NUM_NL80211_PMSR_TYPES - 1 7168206b73d0SCy Schubert }; 7169206b73d0SCy Schubert 7170206b73d0SCy Schubert /** 7171206b73d0SCy Schubert * enum nl80211_peer_measurement_status - peer measurement status 7172206b73d0SCy Schubert * @NL80211_PMSR_STATUS_SUCCESS: measurement completed successfully 7173206b73d0SCy Schubert * @NL80211_PMSR_STATUS_REFUSED: measurement was locally refused 7174206b73d0SCy Schubert * @NL80211_PMSR_STATUS_TIMEOUT: measurement timed out 7175206b73d0SCy Schubert * @NL80211_PMSR_STATUS_FAILURE: measurement failed, a type-dependent 7176206b73d0SCy Schubert * reason may be available in the response data 7177206b73d0SCy Schubert */ 7178206b73d0SCy Schubert enum nl80211_peer_measurement_status { 7179206b73d0SCy Schubert NL80211_PMSR_STATUS_SUCCESS, 7180206b73d0SCy Schubert NL80211_PMSR_STATUS_REFUSED, 7181206b73d0SCy Schubert NL80211_PMSR_STATUS_TIMEOUT, 7182206b73d0SCy Schubert NL80211_PMSR_STATUS_FAILURE, 7183206b73d0SCy Schubert }; 7184206b73d0SCy Schubert 7185206b73d0SCy Schubert /** 7186206b73d0SCy Schubert * enum nl80211_peer_measurement_req - peer measurement request attributes 7187206b73d0SCy Schubert * @__NL80211_PMSR_REQ_ATTR_INVALID: invalid 7188206b73d0SCy Schubert * 7189206b73d0SCy Schubert * @NL80211_PMSR_REQ_ATTR_DATA: This is a nested attribute with measurement 7190206b73d0SCy Schubert * type-specific request data inside. The attributes used are from the 7191206b73d0SCy Schubert * enums named nl80211_peer_measurement_<type>_req. 7192206b73d0SCy Schubert * @NL80211_PMSR_REQ_ATTR_GET_AP_TSF: include AP TSF timestamp, if supported 7193206b73d0SCy Schubert * (flag attribute) 7194206b73d0SCy Schubert * 7195206b73d0SCy Schubert * @NUM_NL80211_PMSR_REQ_ATTRS: internal 7196206b73d0SCy Schubert * @NL80211_PMSR_REQ_ATTR_MAX: highest attribute number 7197206b73d0SCy Schubert */ 7198206b73d0SCy Schubert enum nl80211_peer_measurement_req { 7199206b73d0SCy Schubert __NL80211_PMSR_REQ_ATTR_INVALID, 7200206b73d0SCy Schubert 7201206b73d0SCy Schubert NL80211_PMSR_REQ_ATTR_DATA, 7202206b73d0SCy Schubert NL80211_PMSR_REQ_ATTR_GET_AP_TSF, 7203206b73d0SCy Schubert 7204206b73d0SCy Schubert /* keep last */ 7205206b73d0SCy Schubert NUM_NL80211_PMSR_REQ_ATTRS, 7206206b73d0SCy Schubert NL80211_PMSR_REQ_ATTR_MAX = NUM_NL80211_PMSR_REQ_ATTRS - 1 7207206b73d0SCy Schubert }; 7208206b73d0SCy Schubert 7209206b73d0SCy Schubert /** 7210206b73d0SCy Schubert * enum nl80211_peer_measurement_resp - peer measurement response attributes 7211206b73d0SCy Schubert * @__NL80211_PMSR_RESP_ATTR_INVALID: invalid 7212206b73d0SCy Schubert * 7213206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_DATA: This is a nested attribute with measurement 7214206b73d0SCy Schubert * type-specific results inside. The attributes used are from the enums 7215206b73d0SCy Schubert * named nl80211_peer_measurement_<type>_resp. 7216206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_STATUS: u32 value with the measurement status 7217206b73d0SCy Schubert * (using values from &enum nl80211_peer_measurement_status.) 7218206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_HOST_TIME: host time (%CLOCK_BOOTTIME) when the 7219206b73d0SCy Schubert * result was measured; this value is not expected to be accurate to 7220206b73d0SCy Schubert * more than 20ms. (u64, nanoseconds) 7221206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_AP_TSF: TSF of the AP that the interface 7222206b73d0SCy Schubert * doing the measurement is connected to when the result was measured. 7223206b73d0SCy Schubert * This shall be accurately reported if supported and requested 7224206b73d0SCy Schubert * (u64, usec) 7225206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_FINAL: If results are sent to the host partially 7226206b73d0SCy Schubert * (*e.g. with FTM per-burst data) this flag will be cleared on all but 7227206b73d0SCy Schubert * the last result; if all results are combined it's set on the single 7228206b73d0SCy Schubert * result. 7229206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_PAD: padding for 64-bit attributes, ignore 7230206b73d0SCy Schubert * 7231206b73d0SCy Schubert * @NUM_NL80211_PMSR_RESP_ATTRS: internal 7232206b73d0SCy Schubert * @NL80211_PMSR_RESP_ATTR_MAX: highest attribute number 7233206b73d0SCy Schubert */ 7234206b73d0SCy Schubert enum nl80211_peer_measurement_resp { 7235206b73d0SCy Schubert __NL80211_PMSR_RESP_ATTR_INVALID, 7236206b73d0SCy Schubert 7237206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_DATA, 7238206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_STATUS, 7239206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_HOST_TIME, 7240206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_AP_TSF, 7241206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_FINAL, 7242206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_PAD, 7243206b73d0SCy Schubert 7244206b73d0SCy Schubert /* keep last */ 7245206b73d0SCy Schubert NUM_NL80211_PMSR_RESP_ATTRS, 7246206b73d0SCy Schubert NL80211_PMSR_RESP_ATTR_MAX = NUM_NL80211_PMSR_RESP_ATTRS - 1 7247206b73d0SCy Schubert }; 7248206b73d0SCy Schubert 7249206b73d0SCy Schubert /** 7250206b73d0SCy Schubert * enum nl80211_peer_measurement_peer_attrs - peer attributes for measurement 7251206b73d0SCy Schubert * @__NL80211_PMSR_PEER_ATTR_INVALID: invalid 7252206b73d0SCy Schubert * 7253206b73d0SCy Schubert * @NL80211_PMSR_PEER_ATTR_ADDR: peer's MAC address 7254206b73d0SCy Schubert * @NL80211_PMSR_PEER_ATTR_CHAN: channel definition, nested, using top-level 7255206b73d0SCy Schubert * attributes like %NL80211_ATTR_WIPHY_FREQ etc. 7256206b73d0SCy Schubert * @NL80211_PMSR_PEER_ATTR_REQ: This is a nested attribute indexed by 7257206b73d0SCy Schubert * measurement type, with attributes from the 7258206b73d0SCy Schubert * &enum nl80211_peer_measurement_req inside. 7259206b73d0SCy Schubert * @NL80211_PMSR_PEER_ATTR_RESP: This is a nested attribute indexed by 7260206b73d0SCy Schubert * measurement type, with attributes from the 7261206b73d0SCy Schubert * &enum nl80211_peer_measurement_resp inside. 7262206b73d0SCy Schubert * 7263206b73d0SCy Schubert * @NUM_NL80211_PMSR_PEER_ATTRS: internal 7264206b73d0SCy Schubert * @NL80211_PMSR_PEER_ATTR_MAX: highest attribute number 7265206b73d0SCy Schubert */ 7266206b73d0SCy Schubert enum nl80211_peer_measurement_peer_attrs { 7267206b73d0SCy Schubert __NL80211_PMSR_PEER_ATTR_INVALID, 7268206b73d0SCy Schubert 7269206b73d0SCy Schubert NL80211_PMSR_PEER_ATTR_ADDR, 7270206b73d0SCy Schubert NL80211_PMSR_PEER_ATTR_CHAN, 7271206b73d0SCy Schubert NL80211_PMSR_PEER_ATTR_REQ, 7272206b73d0SCy Schubert NL80211_PMSR_PEER_ATTR_RESP, 7273206b73d0SCy Schubert 7274206b73d0SCy Schubert /* keep last */ 7275206b73d0SCy Schubert NUM_NL80211_PMSR_PEER_ATTRS, 7276206b73d0SCy Schubert NL80211_PMSR_PEER_ATTR_MAX = NUM_NL80211_PMSR_PEER_ATTRS - 1, 7277206b73d0SCy Schubert }; 7278206b73d0SCy Schubert 7279206b73d0SCy Schubert /** 7280206b73d0SCy Schubert * enum nl80211_peer_measurement_attrs - peer measurement attributes 7281206b73d0SCy Schubert * @__NL80211_PMSR_ATTR_INVALID: invalid 7282206b73d0SCy Schubert * 7283206b73d0SCy Schubert * @NL80211_PMSR_ATTR_MAX_PEERS: u32 attribute used for capability 7284206b73d0SCy Schubert * advertisement only, indicates the maximum number of peers 7285206b73d0SCy Schubert * measurements can be done with in a single request 7286206b73d0SCy Schubert * @NL80211_PMSR_ATTR_REPORT_AP_TSF: flag attribute in capability 7287206b73d0SCy Schubert * indicating that the connected AP's TSF can be reported in 7288206b73d0SCy Schubert * measurement results 7289206b73d0SCy Schubert * @NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR: flag attribute in capability 7290206b73d0SCy Schubert * indicating that MAC address randomization is supported. 7291206b73d0SCy Schubert * @NL80211_PMSR_ATTR_TYPE_CAPA: capabilities reported by the device, 7292206b73d0SCy Schubert * this contains a nesting indexed by measurement type, and 7293206b73d0SCy Schubert * type-specific capabilities inside, which are from the enums 7294206b73d0SCy Schubert * named nl80211_peer_measurement_<type>_capa. 7295206b73d0SCy Schubert * @NL80211_PMSR_ATTR_PEERS: nested attribute, the nesting index is 7296206b73d0SCy Schubert * meaningless, just a list of peers to measure with, with the 7297206b73d0SCy Schubert * sub-attributes taken from 7298206b73d0SCy Schubert * &enum nl80211_peer_measurement_peer_attrs. 7299206b73d0SCy Schubert * 7300206b73d0SCy Schubert * @NUM_NL80211_PMSR_ATTR: internal 7301206b73d0SCy Schubert * @NL80211_PMSR_ATTR_MAX: highest attribute number 7302206b73d0SCy Schubert */ 7303206b73d0SCy Schubert enum nl80211_peer_measurement_attrs { 7304206b73d0SCy Schubert __NL80211_PMSR_ATTR_INVALID, 7305206b73d0SCy Schubert 7306206b73d0SCy Schubert NL80211_PMSR_ATTR_MAX_PEERS, 7307206b73d0SCy Schubert NL80211_PMSR_ATTR_REPORT_AP_TSF, 7308206b73d0SCy Schubert NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR, 7309206b73d0SCy Schubert NL80211_PMSR_ATTR_TYPE_CAPA, 7310206b73d0SCy Schubert NL80211_PMSR_ATTR_PEERS, 7311206b73d0SCy Schubert 7312206b73d0SCy Schubert /* keep last */ 7313206b73d0SCy Schubert NUM_NL80211_PMSR_ATTR, 7314206b73d0SCy Schubert NL80211_PMSR_ATTR_MAX = NUM_NL80211_PMSR_ATTR - 1 7315206b73d0SCy Schubert }; 7316206b73d0SCy Schubert 7317206b73d0SCy Schubert /** 7318206b73d0SCy Schubert * enum nl80211_peer_measurement_ftm_capa - FTM capabilities 7319206b73d0SCy Schubert * @__NL80211_PMSR_FTM_CAPA_ATTR_INVALID: invalid 7320206b73d0SCy Schubert * 7321206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_ASAP: flag attribute indicating ASAP mode 7322206b73d0SCy Schubert * is supported 7323206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP: flag attribute indicating non-ASAP 7324206b73d0SCy Schubert * mode is supported 7325206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI: flag attribute indicating if LCI 7326206b73d0SCy Schubert * data can be requested during the measurement 7327206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC: flag attribute indicating if civic 7328206b73d0SCy Schubert * location data can be requested during the measurement 7329206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES: u32 bitmap attribute of bits 7330206b73d0SCy Schubert * from &enum nl80211_preamble. 7331206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS: bitmap of values from 7332206b73d0SCy Schubert * &enum nl80211_chan_width indicating the supported channel 7333206b73d0SCy Schubert * bandwidths for FTM. Note that a higher channel bandwidth may be 7334206b73d0SCy Schubert * configured to allow for other measurements types with different 7335206b73d0SCy Schubert * bandwidth requirement in the same measurement. 7336206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT: u32 attribute indicating 7337206b73d0SCy Schubert * the maximum bursts exponent that can be used (if not present anything 7338206b73d0SCy Schubert * is valid) 7339206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST: u32 attribute indicating 7340206b73d0SCy Schubert * the maximum FTMs per burst (if not present anything is valid) 7341c1d255d3SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED: flag attribute indicating if 7342c1d255d3SCy Schubert * trigger based ranging measurement is supported 7343c1d255d3SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED: flag attribute indicating 7344c1d255d3SCy Schubert * if non trigger based ranging measurement is supported 7345206b73d0SCy Schubert * 7346206b73d0SCy Schubert * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal 7347206b73d0SCy Schubert * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number 7348206b73d0SCy Schubert */ 7349206b73d0SCy Schubert enum nl80211_peer_measurement_ftm_capa { 7350206b73d0SCy Schubert __NL80211_PMSR_FTM_CAPA_ATTR_INVALID, 7351206b73d0SCy Schubert 7352206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_ASAP, 7353206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP, 7354206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI, 7355206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC, 7356206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES, 7357206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS, 7358206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT, 7359206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST, 7360c1d255d3SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED, 7361c1d255d3SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED, 7362206b73d0SCy Schubert 7363206b73d0SCy Schubert /* keep last */ 7364206b73d0SCy Schubert NUM_NL80211_PMSR_FTM_CAPA_ATTR, 7365206b73d0SCy Schubert NL80211_PMSR_FTM_CAPA_ATTR_MAX = NUM_NL80211_PMSR_FTM_CAPA_ATTR - 1 7366206b73d0SCy Schubert }; 7367206b73d0SCy Schubert 7368206b73d0SCy Schubert /** 7369206b73d0SCy Schubert * enum nl80211_peer_measurement_ftm_req - FTM request attributes 7370206b73d0SCy Schubert * @__NL80211_PMSR_FTM_REQ_ATTR_INVALID: invalid 7371206b73d0SCy Schubert * 7372206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_ASAP: ASAP mode requested (flag) 7373206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE: preamble type (see 7374206b73d0SCy Schubert * &enum nl80211_preamble), optional for DMG (u32) 7375206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP: number of bursts exponent as in 7376206b73d0SCy Schubert * 802.11-2016 9.4.2.168 "Fine Timing Measurement Parameters element" 7377206b73d0SCy Schubert * (u8, 0-15, optional with default 15 i.e. "no preference") 7378206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD: interval between bursts in units 7379206b73d0SCy Schubert * of 100ms (u16, optional with default 0) 7380206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION: burst duration, as in 802.11-2016 7381206b73d0SCy Schubert * Table 9-257 "Burst Duration field encoding" (u8, 0-15, optional with 7382206b73d0SCy Schubert * default 15 i.e. "no preference") 7383206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST: number of successful FTM frames 7384206b73d0SCy Schubert * requested per burst 7385206b73d0SCy Schubert * (u8, 0-31, optional with default 0 i.e. "no preference") 7386206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES: number of FTMR frame retries 7387206b73d0SCy Schubert * (u8, default 3) 7388206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI: request LCI data (flag) 7389206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC: request civic location data 7390206b73d0SCy Schubert * (flag) 7391c1d255d3SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED: request trigger based ranging 7392c1d255d3SCy Schubert * measurement (flag). 7393c1d255d3SCy Schubert * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED are 7394c1d255d3SCy Schubert * mutually exclusive. 7395c1d255d3SCy Schubert * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor 7396c1d255d3SCy Schubert * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based 7397c1d255d3SCy Schubert * ranging will be used. 7398c1d255d3SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non trigger based 7399c1d255d3SCy Schubert * ranging measurement (flag) 7400c1d255d3SCy Schubert * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED are 7401c1d255d3SCy Schubert * mutually exclusive. 7402c1d255d3SCy Schubert * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor 7403c1d255d3SCy Schubert * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based 7404c1d255d3SCy Schubert * ranging will be used. 7405c1d255d3SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK: negotiate for LMR feedback. Only 7406c1d255d3SCy Schubert * valid if either %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED or 7407c1d255d3SCy Schubert * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set. 7408*a90b9d01SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR: optional. The BSS color of the 7409*a90b9d01SCy Schubert * responder. Only valid if %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED 7410*a90b9d01SCy Schubert * or %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED is set. 7411206b73d0SCy Schubert * 7412206b73d0SCy Schubert * @NUM_NL80211_PMSR_FTM_REQ_ATTR: internal 7413206b73d0SCy Schubert * @NL80211_PMSR_FTM_REQ_ATTR_MAX: highest attribute number 7414206b73d0SCy Schubert */ 7415206b73d0SCy Schubert enum nl80211_peer_measurement_ftm_req { 7416206b73d0SCy Schubert __NL80211_PMSR_FTM_REQ_ATTR_INVALID, 7417206b73d0SCy Schubert 7418206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_ASAP, 7419206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE, 7420206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP, 7421206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD, 7422206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION, 7423206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST, 7424206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES, 7425206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI, 7426206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC, 7427c1d255d3SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED, 7428c1d255d3SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED, 7429c1d255d3SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK, 7430*a90b9d01SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR, 7431206b73d0SCy Schubert 7432206b73d0SCy Schubert /* keep last */ 7433206b73d0SCy Schubert NUM_NL80211_PMSR_FTM_REQ_ATTR, 7434206b73d0SCy Schubert NL80211_PMSR_FTM_REQ_ATTR_MAX = NUM_NL80211_PMSR_FTM_REQ_ATTR - 1 7435206b73d0SCy Schubert }; 7436206b73d0SCy Schubert 7437206b73d0SCy Schubert /** 7438206b73d0SCy Schubert * enum nl80211_peer_measurement_ftm_failure_reasons - FTM failure reasons 7439206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_UNSPECIFIED: unspecified failure, not used 7440206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_NO_RESPONSE: no response from the FTM responder 7441206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_REJECTED: FTM responder rejected measurement 7442206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL: we already know the peer is 7443206b73d0SCy Schubert * on a different channel, so can't measure (if we didn't know, we'd 7444206b73d0SCy Schubert * try and get no response) 7445206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE: peer can't actually do FTM 7446206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP: invalid T1/T4 timestamps 7447206b73d0SCy Schubert * received 7448206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_PEER_BUSY: peer reports busy, you may retry 7449206b73d0SCy Schubert * later (see %NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME) 7450206b73d0SCy Schubert * @NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS: parameters were changed 7451206b73d0SCy Schubert * by the peer and are no longer supported 7452206b73d0SCy Schubert */ 7453206b73d0SCy Schubert enum nl80211_peer_measurement_ftm_failure_reasons { 7454206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_UNSPECIFIED, 7455206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_NO_RESPONSE, 7456206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_REJECTED, 7457206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL, 7458206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE, 7459206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP, 7460206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_PEER_BUSY, 7461206b73d0SCy Schubert NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS, 7462206b73d0SCy Schubert }; 7463206b73d0SCy Schubert 7464206b73d0SCy Schubert /** 7465206b73d0SCy Schubert * enum nl80211_peer_measurement_ftm_resp - FTM response attributes 7466206b73d0SCy Schubert * @__NL80211_PMSR_FTM_RESP_ATTR_INVALID: invalid 7467206b73d0SCy Schubert * 7468206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON: FTM-specific failure reason 7469206b73d0SCy Schubert * (u32, optional) 7470206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX: optional, if bursts are reported 7471206b73d0SCy Schubert * as separate results then it will be the burst index 0...(N-1) and 7472206b73d0SCy Schubert * the top level will indicate partial results (u32) 7473206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames 7474206b73d0SCy Schubert * transmitted (u32, optional) 7475206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames 7476206b73d0SCy Schubert * that were acknowleged (u32, optional) 7477206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the 7478206b73d0SCy Schubert * busy peer (u32, seconds) 7479206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent 7480206b73d0SCy Schubert * used by the responder (similar to request, u8) 7481206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION: actual burst duration used by 7482206b73d0SCy Schubert * the responder (similar to request, u8) 7483206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST: actual FTMs per burst used 7484206b73d0SCy Schubert * by the responder (similar to request, u8) 7485206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG: average RSSI across all FTM action 7486206b73d0SCy Schubert * frames (optional, s32, 1/2 dBm) 7487206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD: RSSI spread across all FTM action 7488206b73d0SCy Schubert * frames (optional, s32, 1/2 dBm) 7489206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_TX_RATE: bitrate we used for the response to the 7490206b73d0SCy Schubert * FTM action frame (optional, nested, using &enum nl80211_rate_info 7491206b73d0SCy Schubert * attributes) 7492206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RX_RATE: bitrate the responder used for the FTM 7493206b73d0SCy Schubert * action frame (optional, nested, using &enum nl80211_rate_info attrs) 7494206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG: average RTT (s64, picoseconds, optional 7495206b73d0SCy Schubert * but one of RTT/DIST must be present) 7496206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE: RTT variance (u64, ps^2, note that 7497206b73d0SCy Schubert * standard deviation is the square root of variance, optional) 7498206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD: RTT spread (u64, picoseconds, 7499206b73d0SCy Schubert * optional) 7500206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG: average distance (s64, mm, optional 7501206b73d0SCy Schubert * but one of RTT/DIST must be present) 7502206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE: distance variance (u64, mm^2, note 7503206b73d0SCy Schubert * that standard deviation is the square root of variance, optional) 7504206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD: distance spread (u64, mm, optional) 7505206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_LCI: LCI data from peer (binary, optional); 7506206b73d0SCy Schubert * this is the contents of the Measurement Report Element (802.11-2016 7507206b73d0SCy Schubert * 9.4.2.22.1) starting with the Measurement Token, with Measurement 7508206b73d0SCy Schubert * Type 8. 7509206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC: civic location data from peer 7510206b73d0SCy Schubert * (binary, optional); 7511206b73d0SCy Schubert * this is the contents of the Measurement Report Element (802.11-2016 7512206b73d0SCy Schubert * 9.4.2.22.1) starting with the Measurement Token, with Measurement 7513206b73d0SCy Schubert * Type 11. 7514206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_PAD: ignore, for u64/s64 padding only 7515206b73d0SCy Schubert * 7516206b73d0SCy Schubert * @NUM_NL80211_PMSR_FTM_RESP_ATTR: internal 7517206b73d0SCy Schubert * @NL80211_PMSR_FTM_RESP_ATTR_MAX: highest attribute number 7518206b73d0SCy Schubert */ 7519206b73d0SCy Schubert enum nl80211_peer_measurement_ftm_resp { 7520206b73d0SCy Schubert __NL80211_PMSR_FTM_RESP_ATTR_INVALID, 7521206b73d0SCy Schubert 7522206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON, 7523206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX, 7524206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS, 7525206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES, 7526206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME, 7527206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP, 7528206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION, 7529206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST, 7530206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG, 7531206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD, 7532206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_TX_RATE, 7533206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RX_RATE, 7534206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG, 7535206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE, 7536206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD, 7537206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG, 7538206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE, 7539206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD, 7540206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_LCI, 7541206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC, 7542206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_PAD, 7543206b73d0SCy Schubert 7544206b73d0SCy Schubert /* keep last */ 7545206b73d0SCy Schubert NUM_NL80211_PMSR_FTM_RESP_ATTR, 7546206b73d0SCy Schubert NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1 7547206b73d0SCy Schubert }; 7548206b73d0SCy Schubert 7549c1d255d3SCy Schubert /** 7550c1d255d3SCy Schubert * enum nl80211_obss_pd_attributes - OBSS packet detection attributes 7551c1d255d3SCy Schubert * @__NL80211_HE_OBSS_PD_ATTR_INVALID: Invalid 7552c1d255d3SCy Schubert * 7553c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET: the OBSS PD minimum tx power offset. 7554c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET: the OBSS PD maximum tx power offset. 7555c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET: the non-SRG OBSS PD maximum 7556c1d255d3SCy Schubert * tx power offset. 7557c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP: bitmap that indicates the BSS color 7558c1d255d3SCy Schubert * values used by members of the SRG. 7559c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP: bitmap that indicates the partial 7560c1d255d3SCy Schubert * BSSID values used by members of the SRG. 7561c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_SR_CTRL: The SR Control field of SRP element. 7562c1d255d3SCy Schubert * 7563c1d255d3SCy Schubert * @__NL80211_HE_OBSS_PD_ATTR_LAST: Internal 7564c1d255d3SCy Schubert * @NL80211_HE_OBSS_PD_ATTR_MAX: highest OBSS PD attribute. 7565c1d255d3SCy Schubert */ 7566c1d255d3SCy Schubert enum nl80211_obss_pd_attributes { 7567c1d255d3SCy Schubert __NL80211_HE_OBSS_PD_ATTR_INVALID, 7568c1d255d3SCy Schubert 7569c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET, 7570c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET, 7571c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET, 7572c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP, 7573c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP, 7574c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_SR_CTRL, 7575c1d255d3SCy Schubert 7576c1d255d3SCy Schubert /* keep last */ 7577c1d255d3SCy Schubert __NL80211_HE_OBSS_PD_ATTR_LAST, 7578c1d255d3SCy Schubert NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1, 7579c1d255d3SCy Schubert }; 7580c1d255d3SCy Schubert 7581c1d255d3SCy Schubert /** 7582c1d255d3SCy Schubert * enum nl80211_bss_color_attributes - BSS Color attributes 7583c1d255d3SCy Schubert * @__NL80211_HE_BSS_COLOR_ATTR_INVALID: Invalid 7584c1d255d3SCy Schubert * 7585c1d255d3SCy Schubert * @NL80211_HE_BSS_COLOR_ATTR_COLOR: the current BSS Color. 7586c1d255d3SCy Schubert * @NL80211_HE_BSS_COLOR_ATTR_DISABLED: is BSS coloring disabled. 7587c1d255d3SCy Schubert * @NL80211_HE_BSS_COLOR_ATTR_PARTIAL: the AID equation to be used.. 7588c1d255d3SCy Schubert * 7589c1d255d3SCy Schubert * @__NL80211_HE_BSS_COLOR_ATTR_LAST: Internal 7590c1d255d3SCy Schubert * @NL80211_HE_BSS_COLOR_ATTR_MAX: highest BSS Color attribute. 7591c1d255d3SCy Schubert */ 7592c1d255d3SCy Schubert enum nl80211_bss_color_attributes { 7593c1d255d3SCy Schubert __NL80211_HE_BSS_COLOR_ATTR_INVALID, 7594c1d255d3SCy Schubert 7595c1d255d3SCy Schubert NL80211_HE_BSS_COLOR_ATTR_COLOR, 7596c1d255d3SCy Schubert NL80211_HE_BSS_COLOR_ATTR_DISABLED, 7597c1d255d3SCy Schubert NL80211_HE_BSS_COLOR_ATTR_PARTIAL, 7598c1d255d3SCy Schubert 7599c1d255d3SCy Schubert /* keep last */ 7600c1d255d3SCy Schubert __NL80211_HE_BSS_COLOR_ATTR_LAST, 7601c1d255d3SCy Schubert NL80211_HE_BSS_COLOR_ATTR_MAX = __NL80211_HE_BSS_COLOR_ATTR_LAST - 1, 7602c1d255d3SCy Schubert }; 7603c1d255d3SCy Schubert 7604c1d255d3SCy Schubert /** 7605c1d255d3SCy Schubert * enum nl80211_iftype_akm_attributes - interface type AKM attributes 7606c1d255d3SCy Schubert * @__NL80211_IFTYPE_AKM_ATTR_INVALID: Invalid 7607c1d255d3SCy Schubert * 7608c1d255d3SCy Schubert * @NL80211_IFTYPE_AKM_ATTR_IFTYPES: nested attribute containing a flag 7609c1d255d3SCy Schubert * attribute for each interface type that supports AKM suites specified in 7610c1d255d3SCy Schubert * %NL80211_IFTYPE_AKM_ATTR_SUITES 7611c1d255d3SCy Schubert * @NL80211_IFTYPE_AKM_ATTR_SUITES: an array of u32. Used to indicate supported 7612c1d255d3SCy Schubert * AKM suites for the specified interface types. 7613c1d255d3SCy Schubert * 7614c1d255d3SCy Schubert * @__NL80211_IFTYPE_AKM_ATTR_LAST: Internal 7615c1d255d3SCy Schubert * @NL80211_IFTYPE_AKM_ATTR_MAX: highest interface type AKM attribute. 7616c1d255d3SCy Schubert */ 7617c1d255d3SCy Schubert enum nl80211_iftype_akm_attributes { 7618c1d255d3SCy Schubert __NL80211_IFTYPE_AKM_ATTR_INVALID, 7619c1d255d3SCy Schubert 7620c1d255d3SCy Schubert NL80211_IFTYPE_AKM_ATTR_IFTYPES, 7621c1d255d3SCy Schubert NL80211_IFTYPE_AKM_ATTR_SUITES, 7622c1d255d3SCy Schubert 7623c1d255d3SCy Schubert /* keep last */ 7624c1d255d3SCy Schubert __NL80211_IFTYPE_AKM_ATTR_LAST, 7625c1d255d3SCy Schubert NL80211_IFTYPE_AKM_ATTR_MAX = __NL80211_IFTYPE_AKM_ATTR_LAST - 1, 7626c1d255d3SCy Schubert }; 7627c1d255d3SCy Schubert 7628c1d255d3SCy Schubert /** 7629c1d255d3SCy Schubert * enum nl80211_fils_discovery_attributes - FILS discovery configuration 7630c1d255d3SCy Schubert * from IEEE Std 802.11ai-2016, Annex C.3 MIB detail. 7631c1d255d3SCy Schubert * 7632c1d255d3SCy Schubert * @__NL80211_FILS_DISCOVERY_ATTR_INVALID: Invalid 7633c1d255d3SCy Schubert * 7634c1d255d3SCy Schubert * @NL80211_FILS_DISCOVERY_ATTR_INT_MIN: Minimum packet interval (u32, TU). 7635c1d255d3SCy Schubert * Allowed range: 0..10000 (TU = Time Unit) 7636c1d255d3SCy Schubert * @NL80211_FILS_DISCOVERY_ATTR_INT_MAX: Maximum packet interval (u32, TU). 7637*a90b9d01SCy Schubert * Allowed range: 0..10000 (TU = Time Unit). If set to 0, the feature is disabled. 7638c1d255d3SCy Schubert * @NL80211_FILS_DISCOVERY_ATTR_TMPL: Template data for FILS discovery action 7639c1d255d3SCy Schubert * frame including the headers. 7640c1d255d3SCy Schubert * 7641c1d255d3SCy Schubert * @__NL80211_FILS_DISCOVERY_ATTR_LAST: Internal 7642c1d255d3SCy Schubert * @NL80211_FILS_DISCOVERY_ATTR_MAX: highest attribute 7643c1d255d3SCy Schubert */ 7644c1d255d3SCy Schubert enum nl80211_fils_discovery_attributes { 7645c1d255d3SCy Schubert __NL80211_FILS_DISCOVERY_ATTR_INVALID, 7646c1d255d3SCy Schubert 7647c1d255d3SCy Schubert NL80211_FILS_DISCOVERY_ATTR_INT_MIN, 7648c1d255d3SCy Schubert NL80211_FILS_DISCOVERY_ATTR_INT_MAX, 7649c1d255d3SCy Schubert NL80211_FILS_DISCOVERY_ATTR_TMPL, 7650c1d255d3SCy Schubert 7651c1d255d3SCy Schubert /* keep last */ 7652c1d255d3SCy Schubert __NL80211_FILS_DISCOVERY_ATTR_LAST, 7653c1d255d3SCy Schubert NL80211_FILS_DISCOVERY_ATTR_MAX = __NL80211_FILS_DISCOVERY_ATTR_LAST - 1 7654c1d255d3SCy Schubert }; 7655c1d255d3SCy Schubert 7656c1d255d3SCy Schubert /* 7657c1d255d3SCy Schubert * FILS discovery template minimum length with action frame headers and 7658c1d255d3SCy Schubert * mandatory fields. 7659c1d255d3SCy Schubert */ 7660c1d255d3SCy Schubert #define NL80211_FILS_DISCOVERY_TMPL_MIN_LEN 42 7661c1d255d3SCy Schubert 7662c1d255d3SCy Schubert /** 7663c1d255d3SCy Schubert * enum nl80211_unsol_bcast_probe_resp_attributes - Unsolicited broadcast probe 7664c1d255d3SCy Schubert * response configuration. Applicable only in 6GHz. 7665c1d255d3SCy Schubert * 7666c1d255d3SCy Schubert * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID: Invalid 7667c1d255d3SCy Schubert * 7668c1d255d3SCy Schubert * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT: Maximum packet interval (u32, TU). 7669c1d255d3SCy Schubert * Allowed range: 0..20 (TU = Time Unit). IEEE P802.11ax/D6.0 7670*a90b9d01SCy Schubert * 26.17.2.3.2 (AP behavior for fast passive scanning). If set to 0, the feature is 7671*a90b9d01SCy Schubert * disabled. 7672c1d255d3SCy Schubert * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL: Unsolicited broadcast probe response 7673c1d255d3SCy Schubert * frame template (binary). 7674c1d255d3SCy Schubert * 7675c1d255d3SCy Schubert * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST: Internal 7676c1d255d3SCy Schubert * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: highest attribute 7677c1d255d3SCy Schubert */ 7678c1d255d3SCy Schubert enum nl80211_unsol_bcast_probe_resp_attributes { 7679c1d255d3SCy Schubert __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID, 7680c1d255d3SCy Schubert 7681c1d255d3SCy Schubert NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT, 7682c1d255d3SCy Schubert NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL, 7683c1d255d3SCy Schubert 7684c1d255d3SCy Schubert /* keep last */ 7685c1d255d3SCy Schubert __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST, 7686c1d255d3SCy Schubert NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX = 7687c1d255d3SCy Schubert __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST - 1 7688c1d255d3SCy Schubert }; 7689c1d255d3SCy Schubert 7690c1d255d3SCy Schubert /** 7691c1d255d3SCy Schubert * enum nl80211_sae_pwe_mechanism - The mechanism(s) allowed for SAE PWE 7692c1d255d3SCy Schubert * derivation. Applicable only when WPA3-Personal SAE authentication is 7693c1d255d3SCy Schubert * used. 7694c1d255d3SCy Schubert * 7695c1d255d3SCy Schubert * @NL80211_SAE_PWE_UNSPECIFIED: not specified, used internally to indicate that 7696c1d255d3SCy Schubert * attribute is not present from userspace. 7697c1d255d3SCy Schubert * @NL80211_SAE_PWE_HUNT_AND_PECK: hunting-and-pecking loop only 7698c1d255d3SCy Schubert * @NL80211_SAE_PWE_HASH_TO_ELEMENT: hash-to-element only 7699c1d255d3SCy Schubert * @NL80211_SAE_PWE_BOTH: both hunting-and-pecking loop and hash-to-element 7700c1d255d3SCy Schubert * can be used. 7701c1d255d3SCy Schubert */ 7702c1d255d3SCy Schubert enum nl80211_sae_pwe_mechanism { 7703c1d255d3SCy Schubert NL80211_SAE_PWE_UNSPECIFIED, 7704c1d255d3SCy Schubert NL80211_SAE_PWE_HUNT_AND_PECK, 7705c1d255d3SCy Schubert NL80211_SAE_PWE_HASH_TO_ELEMENT, 7706c1d255d3SCy Schubert NL80211_SAE_PWE_BOTH, 7707c1d255d3SCy Schubert }; 7708c1d255d3SCy Schubert 7709c1d255d3SCy Schubert /** 7710c1d255d3SCy Schubert * enum nl80211_sar_type - type of SAR specs 7711c1d255d3SCy Schubert * 7712c1d255d3SCy Schubert * @NL80211_SAR_TYPE_POWER: power limitation specified in 0.25dBm unit 7713c1d255d3SCy Schubert * 7714c1d255d3SCy Schubert */ 7715c1d255d3SCy Schubert enum nl80211_sar_type { 7716c1d255d3SCy Schubert NL80211_SAR_TYPE_POWER, 7717c1d255d3SCy Schubert 7718c1d255d3SCy Schubert /* add new type here */ 7719c1d255d3SCy Schubert 7720c1d255d3SCy Schubert /* Keep last */ 7721c1d255d3SCy Schubert NUM_NL80211_SAR_TYPE, 7722c1d255d3SCy Schubert }; 7723c1d255d3SCy Schubert 7724c1d255d3SCy Schubert /** 7725c1d255d3SCy Schubert * enum nl80211_sar_attrs - Attributes for SAR spec 7726c1d255d3SCy Schubert * 7727c1d255d3SCy Schubert * @NL80211_SAR_ATTR_TYPE: the SAR type as defined in &enum nl80211_sar_type. 7728c1d255d3SCy Schubert * 7729c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS: Nested array of SAR power 7730c1d255d3SCy Schubert * limit specifications. Each specification contains a set 7731c1d255d3SCy Schubert * of %nl80211_sar_specs_attrs. 7732c1d255d3SCy Schubert * 7733c1d255d3SCy Schubert * For SET operation, it contains array of %NL80211_SAR_ATTR_SPECS_POWER 7734c1d255d3SCy Schubert * and %NL80211_SAR_ATTR_SPECS_RANGE_INDEX. 7735c1d255d3SCy Schubert * 7736c1d255d3SCy Schubert * For sar_capa dump, it contains array of 7737c1d255d3SCy Schubert * %NL80211_SAR_ATTR_SPECS_START_FREQ 7738c1d255d3SCy Schubert * and %NL80211_SAR_ATTR_SPECS_END_FREQ. 7739c1d255d3SCy Schubert * 7740c1d255d3SCy Schubert * @__NL80211_SAR_ATTR_LAST: Internal 7741c1d255d3SCy Schubert * @NL80211_SAR_ATTR_MAX: highest sar attribute 7742c1d255d3SCy Schubert * 7743c1d255d3SCy Schubert * These attributes are used with %NL80211_CMD_SET_SAR_SPEC 7744c1d255d3SCy Schubert */ 7745c1d255d3SCy Schubert enum nl80211_sar_attrs { 7746c1d255d3SCy Schubert __NL80211_SAR_ATTR_INVALID, 7747c1d255d3SCy Schubert 7748c1d255d3SCy Schubert NL80211_SAR_ATTR_TYPE, 7749c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS, 7750c1d255d3SCy Schubert 7751c1d255d3SCy Schubert __NL80211_SAR_ATTR_LAST, 7752c1d255d3SCy Schubert NL80211_SAR_ATTR_MAX = __NL80211_SAR_ATTR_LAST - 1, 7753c1d255d3SCy Schubert }; 7754c1d255d3SCy Schubert 7755c1d255d3SCy Schubert /** 7756c1d255d3SCy Schubert * enum nl80211_sar_specs_attrs - Attributes for SAR power limit specs 7757c1d255d3SCy Schubert * 7758c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS_POWER: Required (s32)value to specify the actual 7759c1d255d3SCy Schubert * power limit value in units of 0.25 dBm if type is 7760c1d255d3SCy Schubert * NL80211_SAR_TYPE_POWER. (i.e., a value of 44 represents 11 dBm). 7761c1d255d3SCy Schubert * 0 means userspace doesn't have SAR limitation on this associated range. 7762c1d255d3SCy Schubert * 7763c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS_RANGE_INDEX: Required (u32) value to specify the 7764c1d255d3SCy Schubert * index of exported freq range table and the associated power limitation 7765c1d255d3SCy Schubert * is applied to this range. 7766c1d255d3SCy Schubert * 7767c1d255d3SCy Schubert * Userspace isn't required to set all the ranges advertised by WLAN driver, 7768c1d255d3SCy Schubert * and userspace can skip some certain ranges. These skipped ranges don't 7769c1d255d3SCy Schubert * have SAR limitations, and they are same as setting the 7770c1d255d3SCy Schubert * %NL80211_SAR_ATTR_SPECS_POWER to any unreasonable high value because any 7771c1d255d3SCy Schubert * value higher than regulatory allowed value just means SAR power 7772c1d255d3SCy Schubert * limitation is removed, but it's required to set at least one range. 7773c1d255d3SCy Schubert * It's not allowed to set duplicated range in one SET operation. 7774c1d255d3SCy Schubert * 7775c1d255d3SCy Schubert * Every SET operation overwrites previous SET operation. 7776c1d255d3SCy Schubert * 7777c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS_START_FREQ: Required (u32) value to specify the start 7778c1d255d3SCy Schubert * frequency of this range edge when registering SAR capability to wiphy. 7779c1d255d3SCy Schubert * It's not a channel center frequency. The unit is kHz. 7780c1d255d3SCy Schubert * 7781c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS_END_FREQ: Required (u32) value to specify the end 7782c1d255d3SCy Schubert * frequency of this range edge when registering SAR capability to wiphy. 7783c1d255d3SCy Schubert * It's not a channel center frequency. The unit is kHz. 7784c1d255d3SCy Schubert * 7785c1d255d3SCy Schubert * @__NL80211_SAR_ATTR_SPECS_LAST: Internal 7786c1d255d3SCy Schubert * @NL80211_SAR_ATTR_SPECS_MAX: highest sar specs attribute 7787c1d255d3SCy Schubert */ 7788c1d255d3SCy Schubert enum nl80211_sar_specs_attrs { 7789c1d255d3SCy Schubert __NL80211_SAR_ATTR_SPECS_INVALID, 7790c1d255d3SCy Schubert 7791c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS_POWER, 7792c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS_RANGE_INDEX, 7793c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS_START_FREQ, 7794c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS_END_FREQ, 7795c1d255d3SCy Schubert 7796c1d255d3SCy Schubert __NL80211_SAR_ATTR_SPECS_LAST, 7797c1d255d3SCy Schubert NL80211_SAR_ATTR_SPECS_MAX = __NL80211_SAR_ATTR_SPECS_LAST - 1, 7798c1d255d3SCy Schubert }; 7799c1d255d3SCy Schubert 7800*a90b9d01SCy Schubert /** 7801*a90b9d01SCy Schubert * enum nl80211_mbssid_config_attributes - multiple BSSID (MBSSID) and enhanced 7802*a90b9d01SCy Schubert * multi-BSSID advertisements (EMA) in AP mode. 7803*a90b9d01SCy Schubert * Kernel uses some of these attributes to advertise driver's support for 7804*a90b9d01SCy Schubert * MBSSID and EMA. 7805*a90b9d01SCy Schubert * Remaining attributes should be used by the userspace to configure the 7806*a90b9d01SCy Schubert * features. 7807*a90b9d01SCy Schubert * 7808*a90b9d01SCy Schubert * @__NL80211_MBSSID_CONFIG_ATTR_INVALID: Invalid 7809*a90b9d01SCy Schubert * 7810*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES: Used by the kernel to advertise 7811*a90b9d01SCy Schubert * the maximum number of MBSSID interfaces supported by the driver. 7812*a90b9d01SCy Schubert * Driver should indicate MBSSID support by setting 7813*a90b9d01SCy Schubert * wiphy->mbssid_max_interfaces to a value more than or equal to 2. 7814*a90b9d01SCy Schubert * 7815*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY: Used by the kernel 7816*a90b9d01SCy Schubert * to advertise the maximum profile periodicity supported by the driver 7817*a90b9d01SCy Schubert * if EMA is enabled. Driver should indicate EMA support to the userspace 7818*a90b9d01SCy Schubert * by setting wiphy->ema_max_profile_periodicity to 7819*a90b9d01SCy Schubert * a non-zero value. 7820*a90b9d01SCy Schubert * 7821*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_INDEX: Mandatory parameter to pass the index of 7822*a90b9d01SCy Schubert * this BSS (u8) in the multiple BSSID set. 7823*a90b9d01SCy Schubert * Value must be set to 0 for the transmitting interface and non-zero for 7824*a90b9d01SCy Schubert * all non-transmitting interfaces. The userspace will be responsible 7825*a90b9d01SCy Schubert * for using unique indices for the interfaces. 7826*a90b9d01SCy Schubert * Range: 0 to wiphy->mbssid_max_interfaces-1. 7827*a90b9d01SCy Schubert * 7828*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX: Mandatory parameter for 7829*a90b9d01SCy Schubert * a non-transmitted profile which provides the interface index (u32) of 7830*a90b9d01SCy Schubert * the transmitted profile. The value must match one of the interface 7831*a90b9d01SCy Schubert * indices advertised by the kernel. Optional if the interface being set up 7832*a90b9d01SCy Schubert * is the transmitting one, however, if provided then the value must match 7833*a90b9d01SCy Schubert * the interface index of the same. 7834*a90b9d01SCy Schubert * 7835*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_EMA: Flag used to enable EMA AP feature. 7836*a90b9d01SCy Schubert * Setting this flag is permitted only if the driver advertises EMA support 7837*a90b9d01SCy Schubert * by setting wiphy->ema_max_profile_periodicity to non-zero. 7838*a90b9d01SCy Schubert * 7839*a90b9d01SCy Schubert * @__NL80211_MBSSID_CONFIG_ATTR_LAST: Internal 7840*a90b9d01SCy Schubert * @NL80211_MBSSID_CONFIG_ATTR_MAX: highest attribute 7841*a90b9d01SCy Schubert */ 7842*a90b9d01SCy Schubert enum nl80211_mbssid_config_attributes { 7843*a90b9d01SCy Schubert __NL80211_MBSSID_CONFIG_ATTR_INVALID, 7844*a90b9d01SCy Schubert 7845*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES, 7846*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY, 7847*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_INDEX, 7848*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX, 7849*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_EMA, 7850*a90b9d01SCy Schubert 7851*a90b9d01SCy Schubert /* keep last */ 7852*a90b9d01SCy Schubert __NL80211_MBSSID_CONFIG_ATTR_LAST, 7853*a90b9d01SCy Schubert NL80211_MBSSID_CONFIG_ATTR_MAX = __NL80211_MBSSID_CONFIG_ATTR_LAST - 1, 7854*a90b9d01SCy Schubert }; 7855*a90b9d01SCy Schubert 7856*a90b9d01SCy Schubert /** 7857*a90b9d01SCy Schubert * enum nl80211_ap_settings_flags - AP settings flags 7858*a90b9d01SCy Schubert * 7859*a90b9d01SCy Schubert * @NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT: AP supports external 7860*a90b9d01SCy Schubert * authentication. 7861*a90b9d01SCy Schubert * @NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT: Userspace supports SA Query 7862*a90b9d01SCy Schubert * procedures offload to driver. If driver advertises 7863*a90b9d01SCy Schubert * %NL80211_AP_SME_SA_QUERY_OFFLOAD in AP SME features, userspace shall 7864*a90b9d01SCy Schubert * ignore SA Query procedures and validations when this flag is set by 7865*a90b9d01SCy Schubert * userspace. 7866*a90b9d01SCy Schubert */ 7867*a90b9d01SCy Schubert enum nl80211_ap_settings_flags { 7868*a90b9d01SCy Schubert NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1 << 0, 7869*a90b9d01SCy Schubert NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 1 << 1, 7870*a90b9d01SCy Schubert }; 7871*a90b9d01SCy Schubert 7872206b73d0SCy Schubert #endif /* __LINUX_NL80211_H */ 7873