14a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#ifndef __LINUX_NL80211_H 24a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define __LINUX_NL80211_H 34a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 44a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 netlink interface public header 54a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 64a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 74a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008 Michael Wu <flamingice@sourmilk.net> 84a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com> 94a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008 Michael Buesch <m@bues.ch> 104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com> 114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> 124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2008 Colin McCabe <colin@cozybit.com> 134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Copyright 2015 Intel Deutschland GmbH 144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Permission to use, copy, modify, and/or distribute this software for any 164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * purpose with or without fee is hereby granted, provided that the above 174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * copyright notice and this permission notice appear in all copies. 184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This header file defines the userspace API to the wireless stack. Please 314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be careful not to break things - i.e. don't move anything around or so 324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * unless you can demonstrate that it breaks neither API nor ABI. 334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Additions to the API should be accompanied by actual implementations in 354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an upstream driver, so that example implementations exist in case there 364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are ever concerns about the precise semantics of the API or changes are 374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * needed, and to ensure that code for dead (no longer implemented) API 384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * can actually be identified and removed. 394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Nonetheless, semantics should also be documented carefully in this file. 404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#include <linux/types.h> 434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_GENL_NAME "nl80211" 454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_CONFIG "config" 474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_SCAN "scan" 484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_REG "regulatory" 494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_MLME "mlme" 504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_VENDOR "vendor" 514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_NAN "nan" 524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MULTICAST_GROUP_TESTMODE "testmode" 534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: Station handling 564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Stations are added per interface, but a special case exists with VLAN 584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interfaces. When a station is bound to an AP interface, it may be moved 594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN). 604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The station is still assumed to belong to the AP interface it was added 614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to. 624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Station handling varies per interface type and depending on the driver's 644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capabilities. 654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS 674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: 684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * - a setup station entry is added, not yet authorized, without any rate 694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or capability information, this just exists to avoid race conditions 704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to add rate and capability information to the station and at the same 724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * time mark it authorized. 734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * - %NL80211_TDLS_ENABLE_LINK is then used 744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * - after this, the only valid operation is to remove it by tearing down 754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the TDLS link (%NL80211_TDLS_DISABLE_LINK) 764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TODO: need more info for other interface types 784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: Frame transmission/registration support 824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Frame transmission and registration support exists to allow userspace 844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management entities such as wpa_supplicant react to management frames 854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that are not being handled by the kernel. This includes, for example, 864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * certain classes of action frames that cannot be handled in the kernel 874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for various reasons. 884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Frame registration is done on a per-interface basis and registrations 904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cannot be removed other than by closing the socket. It is possible to 914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specify a registration filter to register, for example, only for a 924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * certain type of action frame. In particular with action frames, those 934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that userspace registers for will not be returned as unhandled by the 944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver, so that the registered application has to take responsibility 954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for doing that. 964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The type of frame that can be registered for is also dependent on the 984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver and interface type. The frame types are advertised in wiphy 994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes so applications know what to expect. 1004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NOTE: When an interface changes type while registrations are active, 1024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * these registrations are ignored until the interface type is 1034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * changed again. This means that changing the interface type can 1044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * lead to a situation that couldn't otherwise be produced, but 1054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * any such registrations will be dormant in the sense that they 1064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * will not be serviced, i.e. they will not receive any frames. 1074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Frame transmission allows userspace to send for example the required 1094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * responses to action frames. It is subject to some sanity checking, 1104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * but many frames can be transmitted. When a frame was transmitted, its 1114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * status is indicated to the sending socket. 1124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For more technical details, see the corresponding command descriptions 1144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * below. 1154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 1164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 1174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 1184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: Virtual interface / concurrency capabilities 1194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Some devices are able to operate with virtual MACs, they can have 1214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * more than one virtual interface. The capability handling for this 1224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is a bit complex though, as there may be a number of restrictions 1234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on the types of concurrency that are supported. 1244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * To start with, each device supports the interface types listed in 1264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the 1274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * types there no concurrency is implied. 1284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Once concurrency is desired, more attributes must be observed: 1304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * To start with, since some interface types are purely managed in 1314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * software, like the AP-VLAN type in mac80211 for example, there's 1324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an additional list of these, they can be added at any time and 1334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are only restricted by some semantic restrictions (e.g. AP-VLAN 1344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cannot be added without a corresponding AP interface). This list 1354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. 1364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Further, the list of supported combinations is exported. This is 1384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically, 1394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * it exports a list of "groups", and at any point in time the 1404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interfaces that are currently active must fall into any one of 1414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the advertised groups. Within each group, there are restrictions 1424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on the number of interfaces of different types that are supported 1434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and also the number of different channels, along with potentially 1444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * some other restrictions. See &enum nl80211_if_combination_attrs. 1454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * All together, these attributes define the concurrency of virtual 1474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interfaces that a given device supports. 1484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 1494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 1504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 1514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: packet coalesce support 1524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * In most cases, host that receives IPv4 and IPv6 multicast/broadcast 1544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packets does not do anything with these packets. Therefore the 1554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reception of these unwanted packets causes unnecessary processing 1564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and power consumption. 1574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Packet coalesce feature helps to reduce number of received interrupts 1594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to host by buffering these packets in firmware/hardware for some 1604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * predefined time. Received interrupt will be generated when one of the 1614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * following events occur. 1624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a) Expiration of hardware timer whose expiration time is set to maximum 1634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * coalescing delay of matching coalesce rule. 1644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * b) Coalescing buffer in hardware reaches it's limit. 1654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * c) Packet doesn't match any of the configured coalesce rules. 1664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * User needs to configure following parameters for creating a coalesce 1684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rule. 1694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a) Maximum coalescing delay 1704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * b) List of packet patterns which needs to be matched 1714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * c) Condition for coalescence. pattern 'match' or 'no match' 1724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Multiple such rules can be created. 1734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 1744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 1754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 1764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: FILS shared key authentication offload 1774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * FILS shared key authentication offload can be advertized by drivers by 1794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support 1804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * FILS shared key authentication offload should be able to construct the 1814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication and association frames for FILS shared key authentication and 1824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * eventually do a key derivation as per IEEE 802.11ai. The below additional 1834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * parameters should be given to driver in %NL80211_CMD_CONNECT. 1844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_USERNAME - used to construct keyname_nai 1854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_REALM - used to construct keyname_nai 1864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used to construct erp message 1874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_RRK - used to generate the rIK and rMSK 1884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rIK should be used to generate an authentication tag on the ERP message and 1894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rMSK should be used to derive a PMKSA. 1904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rIK, rMSK should be generated and keyname_nai, sequence number should be used 1914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as specified in IETF RFC 6696. 1924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When FILS shared key authentication is completed, driver needs to provide the 1944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * below additional parameters to userspace. 1954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_KEK - used for key renewal 1964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used in further EAP-RP exchanges 1974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_PMKID - used to identify the PMKSA used/generated 1984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %Nl80211_ATTR_PMK - used to update PMKSA cache in userspace 1994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The PMKSA can be maintained in userspace persistently so that it can be used 2004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * later after reboots or wifi turn off/on also. 2014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS 2034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capable AP supporting PMK caching. It specifies the scope within which the 2044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and 2054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based 2064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on FILS cache identifier. Additionally %NL80211_ATTR_PMK is used with 2074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_SET_PMKSA to specify the PMK corresponding to a PMKSA for driver to 2084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * use in a FILS shared key connection with PMKSA caching. 2094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 2104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 2114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 2124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_commands - supported nl80211 commands 2134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UNSPEC: unspecified command to catch errors 2154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request 2174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to get a list of all present wiphys. 2184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or 2194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, 2204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the 2214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes determining the channel width; this is used for setting 2224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * monitor mode channel), %NL80211_ATTR_WIPHY_RETRY_SHORT, 2234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 2244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD. 2254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * However, for setting the channel, see %NL80211_CMD_SET_CHANNEL 2264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * instead, the support here is for backward compatibility only. 2274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request 2284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or rename notification. Has attributes %NL80211_ATTR_WIPHY and 2294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_NAME. 2304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes 2314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME. 2324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration; 2344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * either a dump request for all interfaces or a specific get with a 2354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * single %NL80211_ATTR_IFINDEX is supported. 2364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires 2374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE. 2384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response 2394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX, 2404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also 2414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be sent from userspace to request creation of a new virtual interface, 2424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and 2434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFNAME. 2444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes 2454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from 2464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace to request deletion of a virtual interface, then requires 2474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute %NL80211_ATTR_IFINDEX. 2484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified 2504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. 2514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, 2524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. 2534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, 2544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER, 2554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_KEY_SEQ attributes. 2564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX 2574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or %NL80211_ATTR_MAC. 2584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_BEACON: (not used) 2604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface 2614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL 2624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes. For drivers that generate the beacon and probe responses 2634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * internally, the following attributes must be provided: %NL80211_ATTR_IE, 2644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. 2654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters 2664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that 2674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, 2684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, 2694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, 2704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, 2714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, 2724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, 2734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. 2744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The channel to use can be set on the interface or be given using the 2754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width. 2764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP 2774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface 2784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP 2794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_STATION: Get station attributes for station identified by 2814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_STATION: Set station attributes for station identified by 2834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 2844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the 2854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the interface identified by %NL80211_ATTR_IFINDEX. 2864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC 2874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or, if no MAC address given, all stations, on the interface identified 2884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and 2894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type 2904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of disconnection indication should be sent to the station 2914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (Deauthentication or Disassociation frame and reason code for that 2924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame). 2934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to 2954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * destination %NL80211_ATTR_MAC on the interface identified by 2964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX. 2974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to 2984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * destination %NL80211_ATTR_MAC on the interface identified by 2994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX. 3004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by 3014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. 3024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by 3034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC. 3044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the 3054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the interface identified by %NL80211_ATTR_IFINDEX. 3064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC 3074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or, if no MAC address given, all mesh paths, on the interface identified 3084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by %NL80211_ATTR_IFINDEX. 3094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by 3104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX. 3114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set 3134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device 3144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has a private regulatory domain, it will be returned. Otherwise, the 3154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * global regdomain will be returned. 3164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * A device will have a private regulatory domain if it uses the 3174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory_hint() API. Even when a private regdomain is used the channel 3184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * information will still be mended according to further hints from 3194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the regulatory core to help with compliance. A dump version of this API 3204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is now available which will returns the global regdomain as well as 3214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * all private regdomains of present wiphys (for those that have it). 3224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then 3234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * its private regdomain is the only valid one for it. The regulatory 3244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * core is not used to help with compliance in this case. 3254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command 3264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * after being queried by the kernel. CRDA replies by sending a regulatory 3274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our 3284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * current alpha2 if it found a match. It also provides 3294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each 3304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory rule is a nested set of attributes given by 3314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and 3324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by 3334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and 3344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. 3354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain 3364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the specified ISO/IEC 3166-1 alpha2 country code. The core will 3374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * store this as a valid request and then query userspace for it. 3384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the 3404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface identified by %NL80211_ATTR_IFINDEX 3414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the 3434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface identified by %NL80211_ATTR_IFINDEX 3444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The 3464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface is identified with %NL80211_ATTR_IFINDEX and the management 3474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be 3484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * added to the end of the specified management frame is specified with 3494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IE. If the command succeeds, the requested data will be 3504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * added to all specified management frames generated by 3514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * kernel/firmware/driver. 3524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note: This command has been removed and it is only reserved at this 3534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * point to avoid re-using existing command number. The functionality this 3544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command was planned for has been provided with cleaner design with the 3554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN, 3564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE, 3574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE. 3584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_SCAN: get scan results 3604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters 3614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 3624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * probe requests at CCK rate or not. %NL80211_ATTR_BSSID can be used to 3634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specify a BSSID to scan for; if not included, the wildcard BSSID will 3644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be used. 3654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to 3664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_GET_SCAN and on the "scan" multicast group) 3674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, 3684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * partial scan results may be available 3694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 3704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain 3714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * intervals and certain number of cycles, as specified by 3724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is 3734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified, 3744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan will run in an infinite loop with the specified interval. 3754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attributes are mutually exculsive, 3764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if 3774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_ATTR_SCHED_SCAN_PLANS is defined. 3784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If for some reason scheduled scan is aborted by the driver, all scan 3794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * plans are canceled (including scan plans that did not start yet). 3804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS) 3814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are passed, they are used in the probe requests. For 3824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * broadcast, a broadcast SSID must be passed (ie. an empty 3834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * string). If no SSID is passed, no probe requests are sent and 3844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a passive scan is performed. %NL80211_ATTR_SCAN_FREQUENCIES, 3854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if passed, define which channels should be scanned; if not 3864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * passed, all channels allowed for the current regulatory domain 3874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are used. Extra IEs can also be passed from the userspace by 3884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using the %NL80211_ATTR_IE attribute. The first cycle of the 3894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY 3904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is supplied. 3914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if 3924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan is not running. The caller may assume that as soon 3934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as the call returns, it is safe to start a new scheduled scan again. 3944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan 3954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * results available. 3964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has 3974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * stopped. The driver may issue this event at any time during a 3984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan. One reason for stopping the scan is if the hardware 3994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * does not support starting an association or a normal scan while running 4004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a scheduled scan. This event is also sent when the 4014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface 4024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is brought down while a scheduled scan was running. 4034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation 4054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or noise level 4064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to 4074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) 4084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry using %NL80211_ATTR_MAC 4104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (for the BSSID), %NL80211_ATTR_PMKID, and optionally %NL80211_ATTR_PMK 4114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (PMK is used for PTKSA derivation in case of FILS shared key offload) or 4124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID, 4134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS 4144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier 4154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * advertized by a FILS capable AP identifying the scope of PMKSA in an 4164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ESS. 4174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC 4184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, 4194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS 4204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication. 4214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. 4224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain 4244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has been changed and provides details of the request information 4254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that caused the change such as who initiated the regulatory request 4264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx 4274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if 4284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or 4294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain 4304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is 4314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on 4324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to (%NL80211_ATTR_REG_ALPHA2). 4334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon 4344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has been found while world roaming thus enabling active scan or 4354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * any mode of operation that initiates TX (beacons) on a channel 4364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * where we would not have been able to do either before. As an example 4374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if you are world roaming (regulatory domain set to world or if your 4384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver is using a custom world roaming regulatory domain) and while 4394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * doing a passive scan on the 5 GHz band you find an AP there (if not 4404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on a DFS channel) you will now be able to actively scan for that AP 4414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or use AP mode on your card on that same channel. Note that this will 4424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * never be used for channels 1-11 on the 2 GHz band as they are always 4434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enabled world wide. This beacon hint is only sent if your device had 4444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * either disabled active scanning or beaconing on a channel. We send to 4454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace the wiphy on which we removed a restriction from 4464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_ATTR_WIPHY) and the channel on which this occurred 4474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) 4484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the beacon hint was processed. 4494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_AUTHENTICATE: authentication request and notification. 4514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This command is used both as a command (request to authenticate) and 4524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as an event on the "mlme" multicast group indicating completion of the 4534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication process. 4544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When used as a command, %NL80211_ATTR_IFINDEX is used to identify the 4554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and 4564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify 4574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the SSID (mainly for association, but is included in authentication 4584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ is used 4594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to specify the frequence of the channel in MHz. %NL80211_ATTR_AUTH_TYPE 4604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used to specify the authentication type. %NL80211_ATTR_IE is used to 4614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * define IEs (VendorSpecificInfo, but also including RSN IE and FT IEs) 4624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to be added to the frame. 4634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When used as an event, this reports reception of an Authentication 4644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame in station and IBSS modes when the local MLME processed the 4654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame, i.e., it was for the local STA and was received in correct 4664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * state. This is similar to MLME-AUTHENTICATE.confirm primitive in the 4674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MLME SAP interface (kernel providing MLME, userspace SME). The 4684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * included %NL80211_ATTR_FRAME attribute contains the management frame 4694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (including both the header and frame body, but not FCS). This event is 4704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * also used to indicate if the authentication attempt timed out. In that 4714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * case the %NL80211_ATTR_FRAME attribute is replaced with a 4724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which 4734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * pending authentication timed out). 4744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ASSOCIATE: association request and notification; like 4754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_AUTHENTICATE but for Association and Reassociation 4764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request, 4774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). The 4784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_PREV_BSSID attribute is used to specify whether the 4794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * request is for the initial association to an ESS (that attribute not 4804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * included) or for reassociation within the ESS (that attribute is 4814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * included). 4824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like 4834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to 4844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication 4854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * primitives). 4864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like 4874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to 4884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives). 4894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael 4914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MIC (part of TKIP) failure; sent on the "mlme" multicast group; the 4924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event includes %NL80211_ATTR_MAC to describe the source MAC address of 4934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key 4944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and 4954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this 4964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event matches with MLME-MICHAELMICFAILURE.indication() primitive 4974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 4984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a 4994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * FREQ attribute (for the initial frequency if no peer can be found) 5004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those 5014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * should be fixed rather than automatically determined. Can only be 5024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * executed on a network interface that is UP, and fixed BSSID/FREQ 5034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * may be rejected. Another optional parameter is the beacon interval, 5044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not 5054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * given defaults to 100 TU (102.4ms). 5064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is 5074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * determined by the network interface. 5084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute 5104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to identify the device, and the TESTDATA blob attribute to pass through 5114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the driver. 5124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CONNECT: connection request and notification; this command 5144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requests to connect to a specified network but without separating 5154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * auth and assoc steps. For this, you need to specify the SSID in a 5164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SSID attribute, and can optionally specify the association 5174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP, 5184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, 5194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 5204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and 5214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_FREQ_HINT. 5224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are 5234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * restrictions on BSS selection, i.e., they effectively prevent roaming 5244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT 5254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * can be included to provide a recommendation of the initial BSS while 5264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * allowing the driver to roam to other BSSes within the ESS and also to 5274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ignore this recommendation if the indicated BSS is not ideal. Only one 5284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set of BSSID,frequency parameters is used (i.e., either the enforcing 5294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict 5304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT). 5314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_PREV_BSSID can be used to request a reassociation within 5324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the ESS in case the device is already associated and an association with 5334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a different BSS is desired. 5344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Background scan period can optionally be 5354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified in %NL80211_ATTR_BG_SCAN_PERIOD, 5364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if not specified default background scan configuration 5374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in driver is used and if period value is 0, bg scan will be disabled. 5384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This attribute is ignored if driver does not support roam scan. 5394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * It is also sent as an event, with the BSSID and response IEs when the 5404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * connection is established or failed to be established. This can be 5414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * determined by the %NL80211_ATTR_STATUS_CODE attribute (0 = success, 5424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * non-zero = failure). If %NL80211_ATTR_TIMED_OUT is included in the 5434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event, the connection attempt failed due to not being able to initiate 5444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication/association or not receiving a response from the AP. 5454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Non-zero %NL80211_ATTR_STATUS_CODE value is indicated in that case as 5464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * well to remain backwards compatible. 5474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ROAM: request that the card roam (currently not implemented), 5484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent as an event when the card/driver roamed by itself. 5494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When used as an event, and the driver roamed in a network that requires 5504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.1X authentication, %NL80211_ATTR_PORT_AUTHORIZED should be set 5514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if the 802.1X authentication was done by the driver or if roaming was 5524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * done using Fast Transition protocol (in which case 802.1X authentication 5534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is not needed). If %NL80211_ATTR_PORT_AUTHORIZED is not set, user space 5544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is responsible for the 802.1X authentication. 5554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify 5564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace that a connection was dropped by the AP or due to other 5574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and 5584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REASON_CODE attributes are used. 5594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices 5614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * associated with this wiphy must be down and will follow. 5624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified 5644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel for the specified amount of time. This can be used to do 5654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * off-channel operations like transmit a Public Action frame and wait for 5664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a response while being associated to an AP on another channel. 5674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus 5684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the 5694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frequency for the operation. 5704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds 5714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to remain on the channel. This command is also used as an event to 5724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notify when the requested duration starts (it may take a while for the 5734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver to schedule this time due to other concurrent needs for the 5744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * radio). 5754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE) 5764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that will be included with any events pertaining to this request; 5774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the cookie is also used to cancel the request. 5784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a 5794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * pending remain-on-channel duration if the desired operation has been 5804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * completed prior to expiration of the originally requested duration. 5814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the 5824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to 5834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * uniquely identify the request. 5844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This command is also used as an event to notify when a requested 5854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * remain-on-channel duration has expired. 5864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX 5884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface 5894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and @NL80211_ATTR_TX_RATES the set of allowed rates. 5904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames 5924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (via @NL80211_CMD_FRAME) for processing in userspace. This command 5934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requires an interface index, a frame type attribute (optional for 5944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * backward compatibility reasons, if not given assumes action frames) 5954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and a match attribute containing the first few bytes of the frame 5964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that should match, e.g. a single byte for only a category match or 5974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * four bytes for vendor frames including the OUI. The registration 5984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cannot be dropped, but is removed automatically when the netlink 5994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * socket is closed. Multiple registrations can be made. 6004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for 6014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * backward compatibility 6024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This 6034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command is used both as a request to transmit a management frame and 6044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as an event indicating reception of a frame that was not processed in 6054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * kernel code, but is for us (i.e., which may need to be processed in a 6064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * user space application). %NL80211_ATTR_FRAME is used to specify the 6074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used 6084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to indicate on which channel the frame is to be transmitted or was 6094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * received. If this channel is not the current channel (remain-on-channel 6104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or the operational channel) the device will switch to the given channel 6114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and transmit the frame, optionally waiting for a response for the time 6124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified using %NL80211_ATTR_DURATION. When called, this operation 6134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the 6144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TX status event pertaining to the TX request. 6154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the 6164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management frames at CCK rate or not in 2GHz band. 6174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA 6184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * counters which will be updated to the current value. This attribute 6194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used during CSA period. 6204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this 6214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command may be used with the corresponding cookie to cancel the wait 6224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * time if it is known that it is no longer necessary. 6234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility. 6244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame 6254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies 6264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the TX command and %NL80211_ATTR_FRAME includes the contents of the 6274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged 6284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the frame. 6294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for 6304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * backward compatibility. 6314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE 6334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE 6344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command 6364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used to configure connection quality monitoring notification trigger 6374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * levels. 6384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This 6394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command is used as an event to indicate the that a trigger level was 6404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reached. 6414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ 6424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and the attributes determining channel width) the given interface 6434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. 6444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * In case multiple channels are supported by the device, the mechanism 6454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with which it switches channels is implementation-defined. 6464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When a monitor interface is given, it can only switch channel while 6474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * no other interfaces are operating to avoid disturbing the operation 6484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of any other interfaces, and other interfaces will again take 6494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * precedence when they are used. 6504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. 6524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MULTICAST_TO_UNICAST: Configure if this AP should perform 6544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * multicast to unicast conversion. When enabled, all multicast packets 6554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with ethertype ARP, IPv4 or IPv6 (possibly within an 802.1Q header) 6564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * will be sent out to each station once with the destination (multicast) 6574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MAC address replaced by the station's MAC address. Note that this may 6584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * break certain expectations of the receiver, e.g. the ability to drop 6594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * unicast IP packets encapsulated in multicast L2 frames, or the ability 6604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to not send destination unreachable messages in such cases. 6614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This can only be toggled per BSS. Configure this on an interface of 6624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * type %NL80211_IFTYPE_AP. It applies to all its VLAN interfaces 6634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_IFTYPE_AP_VLAN), except for those in 4addr (WDS) mode. 6644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If %NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED is not present with this 6654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command, the feature is disabled. 6664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial 6684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mesh config parameters may be given. 6694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the 6704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * network is determined by the network interface. 6714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame 6734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notification. This event is used to indicate that an unprotected 6744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * deauthentication frame was dropped when MFP is in use. 6754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame 6764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notification. This event is used to indicate that an unprotected 6774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * disassociation frame was dropped when MFP is in use. 6784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a 6804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * beacon or probe response from a compatible mesh peer. This is only 6814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent while no station information (sta_info) exists for the new peer 6824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH, 6834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_AMPE, or 6844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_MPM is set. On reception of this 6854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notification, userspace may decide to create a new station 6864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (@NL80211_CMD_NEW_STATION). To stop this notification from 6874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reoccurring, the userspace authentication daemon may want to create the 6884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * new station with the AUTHENTICATED flag unset and maybe change it later 6894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * depending on the authentication result. 6904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 6914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings. 6924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings. 6934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Since wireless is more complex than wired ethernet, it supports 6944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * various triggers. These triggers can be configured through this 6954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For 6964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * more background information, see 6974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * http://wireless.kernel.org/en/users/Documentation/WoWLAN. 6984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The @NL80211_CMD_SET_WOWLAN command can also be used as a notification 6994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * from the driver reporting the wakeup reason. In this case, the 7004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason 7014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for the wakeup, if it was caused by wireless. If it is not present 7024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in the wakeup notification, the wireless device didn't cause the 7034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wakeup but reports that it was woken up. 7044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver 7064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the necessary information for supporting GTK rekey offload. This 7074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * feature is typically used during WoWLAN. The configuration data 7084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is contained in %NL80211_ATTR_REKEY_DATA (which is nested and 7094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * contains the data in sub-attributes). After rekeying happened, 7104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this command may also be sent by the driver as an MLME event to 7114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * inform userspace of the new replay counter. 7124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace 7144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of PMKSA caching dandidates. 7154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). 7174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * In addition, this can be used as an event to request userspace to take 7184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * actions on TDLS links (set up a new link or tear down an existing one). 7194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested 7204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * operation, %NL80211_ATTR_MAC contains the peer MAC address, and 7214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_REASON_CODE the reason code to be used (only with 7224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_TDLS_TEARDOWN). 7234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The 7244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be 7254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as 7264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 management frames, while TDLS action codes (802.11-2012 7274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8.5.13.1) will be encapsulated and sent as data frames. The currently 7284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES 7294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and the currently supported TDLS actions codes are given in 7304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum ieee80211_tdls_actioncode. 7314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP 7334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (or GO) interface (i.e. hostapd) to ask for unexpected frames to 7344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * implement sending deauth to stations that send unexpected class 3 7354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frames. Also used as the event sent by the kernel when such a frame 7364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is received. 7374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For the event, the %NL80211_ATTR_MAC attribute carries the TA and 7384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other attributes like the interface index are present. 7394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If used as the command it must have an interface index and you can 7404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * only unsubscribe from the event by closing the socket. Subscription 7414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events. 7424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the 7444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * associated station identified by %NL80211_ATTR_MAC sent a 4addr frame 7454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and wasn't already in a 4-addr VLAN. The event will be sent similarly 7464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener. 7474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface 7494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by sending a null data frame to it and reporting when the frame is 7504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * acknowleged. This is used to allow timing out inactive clients. Uses 7514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a 7524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * direct reply with an %NL80211_ATTR_COOKIE that is later used to match 7534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * up the event with the request. The event includes the same data and 7544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has %NL80211_ATTR_ACK set if the frame was ACKed. 7554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from 7574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other BSSes when any interfaces are in AP mode. This helps implement 7584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME 7594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * messages. Note that per PHY only one application may register. 7604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether 7624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * No Acknowledgement Policy should be applied. 7634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels 7654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * independently of the userspace SME, send this event indicating 7664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the 7674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes determining channel width. This indication may also be 7684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent when a remotely-initiated switch (e.g., when a STA receives a CSA 7694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * from the remote AP) is completed; 7704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch 7724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has been started on an interface, regardless of the initiator 7734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (ie. whether it was requested from a remote device or 7744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * initiated on our own). It indicates that 7754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ 7764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's. The userspace may 7774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * decide to react to this indication by requesting other 7784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interfaces to change channel as well. 7794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by 7814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * its %NL80211_ATTR_WDEV identifier. It must have been created with 7824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the 7834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * P2P Device can be used for P2P operations, e.g. remain-on-channel and 7844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * public action frame TX. 7854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by 7864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * its %NL80211_ATTR_WDEV identifier. 7874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to 7894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notify userspace that AP has rejected the connection request from a 7904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON 7914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used for this. 7924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames 7944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for IBSS or MESH vif. 7954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 7964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control. 7974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is to be used with the drivers advertising the support of MAC 7984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * address based access control. List of MAC addresses is passed in 7994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MAC_ADDRS and ACL policy is passed in 8004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it 8014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is not already done. The new list will replace any existing list. Driver 8024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * will clear its ACL when the list of MAC addresses passed is empty. This 8034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command is used in AP/P2P GO mode. Driver has to make sure to clear its 8044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ACL list during %NL80211_CMD_STOP_AP. 8054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once 8074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a radar is detected or the channel availability scan (CAC) has finished 8084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or was aborted, or a radar was detected, usermode will be notified with 8094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this event. This command is also used to notify userspace about radars 8104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * while operating on this channel. 8114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_RADAR_EVENT is used to inform about the type of the 8124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event. 8134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features, 8154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * i.e. features for the nl80211 protocol rather than device features. 8164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap. 8174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition 8194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Information Element to the WLAN driver 8204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver 8224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the supplicant. This will carry the target AP's MAC address along 8234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with the relevant Information Elements. This event is used to report 8244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE). 8254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running 8274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a critical protocol that needs more reliability in the connection to 8284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * complete. 8294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can 8314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * return back to normal. 8324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules. 8344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules. 8354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the 8374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the new channel information (Channel Switch Announcement - CSA) 8384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in the beacon for some time (as defined in the 8394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the 8404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * new channel. Userspace provides the new channel information (using 8414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel 8424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform 8434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other station that transmission must be blocked until the channel 8444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * switch is complete. 8454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified 8474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in 8484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in 8494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_VENDOR_DATA. 8504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is 8514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used in the wiphy data as a nested attribute containing descriptions 8524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (&struct nl80211_vendor_cmd_info) of the supported vendor commands. 8534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This may also be sent as an event with the same attributes. 8544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values. 8564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If 8574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that attribute is not included, QoS mapping is disabled. Since this 8584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * QoS mapping is relevant for IP packets, it is only valid during an 8594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * association. This is cleared on disassociation and AP restart. 8604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given 8624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO 8634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_ADMITTED_TIME parameters. 8644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note that the action frame handshake with the AP shall be handled by 8654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace via the normal management RX/TX framework, this only sets 8664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * up the TX TS in the driver/device. 8674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If the admitted time attribute is not added then the request just checks 8684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if a subsequent setup could be successful, the intent is to use this to 8694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * avoid setting up a session with the AP when local restrictions would 8704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * make that impossible. However, the subsequent "real" setup may still 8714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * fail even if the check was successful. 8724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID 8734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this 8744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * before removing a station entry entirely, or before disassociating 8754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or similar, cleanup will happen in the driver/device in this case. 8764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to 8784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * destination %NL80211_ATTR_MAC on the interface identified by 8794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFINDEX. 8804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and 8824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * bandwidth of a channel must be given. 8834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the 8844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * network is determined by the network interface. 8854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer, 8874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * identified by the %NL80211_ATTR_MAC parameter. A target channel is 8884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining 8894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel width/type. The target operating class is given via 8904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_OPER_CLASS. 8914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The driver is responsible for continually initiating channel-switching 8924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * operations and returning to the base channel for communication with the 8934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * AP. 8944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS 8954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel 8964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when this command completes. 8974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 8984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used 8994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as an event to indicate changes for devices with wiphy-specific regdom 9004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management. 9014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 9024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ABORT_SCAN: Stop an ongoing scan. Returns -ENOENT if a scan is 9034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * not running. The driver indicates the status of the scan through 9044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cfg80211_scan_done(). 9054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 9064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_START_NAN: Start NAN operation, identified by its 9074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WDEV interface. This interface must have been previously 9084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * created with %NL80211_CMD_NEW_INTERFACE. After it has been started, the 9094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NAN interface will create or join a cluster. This command must have a 9104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * valid %NL80211_ATTR_NAN_MASTER_PREF attribute and optional 9114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_NAN_DUAL attributes. 9124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * After this command NAN functions can be added. 9134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_STOP_NAN: Stop the NAN operation, identified by 9144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * its %NL80211_ATTR_WDEV interface. 9154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_ADD_NAN_FUNCTION: Add a NAN function. The function is defined 9164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with %NL80211_ATTR_NAN_FUNC nested attribute. When called, this 9174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * operation returns the strictly positive and unique instance id 9184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_ATTR_NAN_FUNC_INST_ID) and a cookie (%NL80211_ATTR_COOKIE) 9194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of the function upon success. 9204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Since instance ID's can be re-used, this cookie is the right 9214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * way to identify the function. This will avoid races when a termination 9224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event is handled by the user space after it has already added a new 9234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * function that got the same instance id from the kernel as the one 9244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * which just terminated. 9254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This cookie may be used in NAN events even before the command 9264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * returns, so userspace shouldn't process NAN events until it processes 9274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the response to this command. 9284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Look at %NL80211_ATTR_SOCKET_OWNER as well. 9294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie. 9304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This command is also used as a notification sent when a NAN function is 9314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID 9324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_COOKIE attributes. 9334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN 9344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * must be operational (%NL80211_CMD_START_NAN was executed). 9354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * It must contain at least one of the following attributes: 9364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_NAN_MASTER_PREF, %NL80211_ATTR_NAN_DUAL. 9374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported. 9384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and 9394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_COOKIE. 9404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 9414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_UPDATE_CONNECT_PARAMS: Update one or more connect parameters 9424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for subsequent roaming cases if the driver or firmware uses internal 9434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS selection. This command can be issued only while connected and it 9444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * does not result in a change for the current association. Currently, 9454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * only the %NL80211_ATTR_IE data is used and updated with this command. 9464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 9474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_MAX: highest used command number 9484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_CMD_AFTER_LAST: internal use 9494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 9504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_commands { 9514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* don't change the order or add anything between, this is ABI! */ 9524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UNSPEC, 9534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_WIPHY, /* can dump */ 9554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_WIPHY, 9564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_WIPHY, 9574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_WIPHY, 9584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_INTERFACE, /* can dump */ 9604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_INTERFACE, 9614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_INTERFACE, 9624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_INTERFACE, 9634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_KEY, 9654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_KEY, 9664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_KEY, 9674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_KEY, 9684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_BEACON, 9704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_BEACON, 9714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_START_AP, 9724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, 9734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_STOP_AP, 9744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, 9754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_STATION, 9774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_STATION, 9784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_STATION, 9794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_STATION, 9804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_MPATH, 9824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MPATH, 9834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_MPATH, 9844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_MPATH, 9854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_BSS, 9874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_REG, 9894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REQ_SET_REG, 9904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_MESH_CONFIG, 9924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MESH_CONFIG, 9934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, 9954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_REG, 9974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 9984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_SCAN, 9994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TRIGGER_SCAN, 10004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_SCAN_RESULTS, 10014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SCAN_ABORTED, 10024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REG_CHANGE, 10044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_AUTHENTICATE, 10064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ASSOCIATE, 10074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEAUTHENTICATE, 10084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DISASSOCIATE, 10094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_MICHAEL_MIC_FAILURE, 10114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REG_BEACON_HINT, 10134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_JOIN_IBSS, 10154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_LEAVE_IBSS, 10164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TESTMODE, 10184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CONNECT, 10204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ROAM, 10214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DISCONNECT, 10224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_WIPHY_NETNS, 10244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_SURVEY, 10264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_SURVEY_RESULTS, 10274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_PMKSA, 10294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_PMKSA, 10304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_FLUSH_PMKSA, 10314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REMAIN_ON_CHANNEL, 10334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL, 10344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_TX_BITRATE_MASK, 10364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REGISTER_FRAME, 10384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME, 10394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_FRAME, 10404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ACTION = NL80211_CMD_FRAME, 10414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_FRAME_TX_STATUS, 10424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS, 10434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_POWER_SAVE, 10454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_POWER_SAVE, 10464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_CQM, 10484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NOTIFY_CQM, 10494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_CHANNEL, 10514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_WDS_PEER, 10524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_FRAME_WAIT_CANCEL, 10544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_JOIN_MESH, 10564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_LEAVE_MESH, 10574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UNPROT_DEAUTHENTICATE, 10594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UNPROT_DISASSOCIATE, 10604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NEW_PEER_CANDIDATE, 10624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_WOWLAN, 10644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_WOWLAN, 10654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_START_SCHED_SCAN, 10674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_STOP_SCHED_SCAN, 10684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SCHED_SCAN_RESULTS, 10694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SCHED_SCAN_STOPPED, 10704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_REKEY_OFFLOAD, 10724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_PMKSA_CANDIDATE, 10744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TDLS_OPER, 10764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TDLS_MGMT, 10774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UNEXPECTED_FRAME, 10794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_PROBE_CLIENT, 10814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_REGISTER_BEACONS, 10834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UNEXPECTED_4ADDR_FRAME, 10854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_NOACK_MAP, 10874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CH_SWITCH_NOTIFY, 10894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_START_P2P_DEVICE, 10914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_STOP_P2P_DEVICE, 10924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CONN_FAILED, 10944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MCAST_RATE, 10964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MAC_ACL, 10984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 10994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_RADAR_DETECT, 11004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_PROTOCOL_FEATURES, 11024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UPDATE_FT_IES, 11044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_FT_EVENT, 11054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CRIT_PROTOCOL_START, 11074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CRIT_PROTOCOL_STOP, 11084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_COALESCE, 11104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_COALESCE, 11114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CHANNEL_SWITCH, 11134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_VENDOR, 11154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_QOS_MAP, 11174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ADD_TX_TS, 11194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_TX_TS, 11204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_GET_MPP, 11224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_JOIN_OCB, 11244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_LEAVE_OCB, 11254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CH_SWITCH_STARTED_NOTIFY, 11274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TDLS_CHANNEL_SWITCH, 11294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH, 11304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_WIPHY_REG_CHANGE, 11324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ABORT_SCAN, 11344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_START_NAN, 11364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_STOP_NAN, 11374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_ADD_NAN_FUNCTION, 11384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_DEL_NAN_FUNCTION, 11394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_CHANGE_NAN_CONFIG, 11404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_NAN_MATCH, 11414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_SET_MULTICAST_TO_UNICAST, 11434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_UPDATE_CONNECT_PARAMS, 11454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* add new commands above here */ 11474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* used to define NL80211_CMD_MAX below */ 11494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_CMD_AFTER_LAST, 11504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 11514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 11524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 11544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Allow user space programs to use #ifdef on new commands by defining them 11554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * here 11564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 11574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS 11584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE 11594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE 11604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE 11614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE 11624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE 11634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE 11644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT 11654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 11674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* source-level API compatibility */ 11694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG 11704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG 11714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE 11724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 11734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 11744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_attrs - nl80211 netlink attributes 11754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 11764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors 11774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 11784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf. 11794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * /sys/class/ieee80211/<phyname>/index 11804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) 11814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters 11824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz, 11834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defines the channel together with the (deprecated) 11844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes 11854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1 11864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_CENTER_FREQ2 11874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values 11884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of &enum nl80211_chan_width, describing the channel width. See the 11894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * documentation of the enum for more information. 11904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the 11914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel, used for anything but 20 MHz bandwidth 11924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the 11934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel, used only for 80+80 MHz bandwidth 11944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ 11954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if HT20 or HT40 are to be used (i.e., HT disabled if not included): 11964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including 11974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this attribute) 11984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CHAN_HT20 = HT20 only 11994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel 12004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel 12014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This attribute is now deprecated. 12024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is 12034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * less than or equal to the RTS threshold; allowed range: 1..255; 12044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * dot11ShortRetryLimit; u8 12054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is 12064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * greater than the RTS threshold; allowed range: 1..255; 12074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * dot11ShortLongLimit; u8 12084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum 12094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * length in octets for frames; allowed range: 256..8000, disable 12104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * fragmentation with (u32)-1; dot11FragmentationThreshold; u32 12114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length 12124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * larger than or equal to this use RTS/CTS handshake); allowed range: 12134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32 12144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11 12154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * section 7.3.2.9; dot11CoverageClass; u8 12164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on 12184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IFNAME: network interface name 12194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype 12204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices 12224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that don't have a netdev (u64) 12234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC: MAC address (various uses) 12254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of 12274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 12284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * keys 12294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3) 12304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 12314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * section 7.3.2.25.1, e.g. 0x000FAC04) 12324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 12334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * CCMP keys, each six bytes in little endian 12344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key 12354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the 12364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * default management key 12374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or 12384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other commands, indicates which pairwise cipher suites are used 12394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or 12404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other commands, indicates which group cipher suite is used 12414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU 12434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing 12444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE 12454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE 12464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_AID: Association ID for the station (u16) 12484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of 12494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2) 12504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by 12514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IEEE 802.11 7.3.1.6 (u16). 12524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported 12534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rates as defined by IEEE 802.11 7.3.2.2 but without the length 12544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * restriction (at most %NL80211_MAX_SUPP_RATES). 12554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station 12564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to, or the AP interface the station was originally added to to. 12574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_INFO: information about a station, part of station info 12584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * given for %NL80211_CMD_GET_STATION, nested attribute containing 12594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * info as possible, see &enum nl80211_sta_info. 12604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, 12624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * consisting of a nested array. 12634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes). 12654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link 12664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (see &enum nl80211_plink_action). 12674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. 12684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path 12694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * info given for %NL80211_CMD_GET_MPATH, nested attribute described at 12704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_mpath_info. 12714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of 12734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_mntr_flags. 12744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the 12764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * current regulatory domain should be set to or is already set to. 12774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For example, 'CR', for Costa Rica. This attribute is used by the kernel 12784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to query the CRDA to retrieve one regulatory domain. This attribute can 12794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * also be used by userspace to query the kernel for the currently set 12804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory domain. We chose an alpha2 as that is also used by the 12814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IEEE-802.11 country information element to identify a country. 12824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Users can also simply ask the wireless core to set regulatory domain 12834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to a specific alpha2. 12844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory 12854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rules. 12864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) 12884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled 12894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u8, 0 or 1) 12904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled 12914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u8, 0 or 1) 12924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic 12934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rates in format defined by IEEE 802.11 7.3.2.2 but without the length 12944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * restriction (at most %NL80211_MAX_SUPP_RATES). 12954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from 12974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * association request when used with NL80211_CMD_NEW_STATION) 12984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 12994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all 13004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported interface types, each a flag attribute with the number 13014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of the interface mode. 13024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for 13044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_SET_MGMT_EXTRA_IE. 13054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with 13074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_SET_MGMT_EXTRA_IE). 13084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with 13104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a single scan request, a wiphy attribute. 13114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can 13124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scan with a single scheduled scan request, a wiphy attribute. 13134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements 13144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that can be added to a scan request 13154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information 13164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * elements that can be added to a scheduled scan request 13174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be 13184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute. 13194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz) 13214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive 13224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scanning and include a zero-length SSID (wildcard) for wildcard scan 13234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS: scan result BSS 13244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain 13264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* 13274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently 13284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) 13294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies 13314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an array of command numbers (i.e. a mapping index to command number) 13324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that the driver for the given wiphy supports. 13334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header 13354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and 13364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_ASSOCIATE events 13374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets) 13384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type, 13394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * represented as a u32 13404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and 13414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_DISASSOCIATE, u16 13424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as 13444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a u32 13454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change 13474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * due to considerations from a beacon hint. This attribute reflects 13484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the state of the channel _before_ the beacon hint processing. This 13494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes consists of a nested attribute containing 13504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_FREQUENCY_ATTR_* 13514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change 13524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * due to considerations from a beacon hint. This attribute reflects 13534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the state of the channel _after_ the beacon hint processing. This 13544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes consists of a nested attribute containing 13554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_FREQUENCY_ATTR_* 13564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported 13584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cipher suites 13594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look 13614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for other networks on different channels 13624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this 13644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used, e.g., with %NL80211_CMD_AUTHENTICATE event 13654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is 13674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used for the association (&enum nl80211_mfp, represented as a u32); 13684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this attribute can be used 13694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests 13704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_FLAGS2: Attribute containing a 13724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &struct nl80211_sta_flag_update. 13734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls 13754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in 13764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE 13774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * request, the driver will assume that the port is unauthorized until 13784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authorized by user space. Otherwise, port is marked authorized by 13794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * default in station mode. 13804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the 13814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ethertype that will be used for key negotiation. It can be 13824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified with the associate and connect commands. If it is not 13834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified, the value defaults to 0x888E (PAE, 802.1X). This 13844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute is also used as a flag in the wiphy information to 13854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate that protocols other than PAE are supported. 13864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with 13874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom 13884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ethertype frames used for key negotiation must not be encrypted. 13894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. 13914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * We recommend using nested, driver-specific attributes within this. 13924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 13934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT 13944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event was due to the AP disconnecting the station, and not due to 13954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a local disconnect request. 13964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT 13974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * event (u16) 13984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating 13994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that protected APs should be used. This is also used with NEW_BEACON to 14004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate that the BSS is to use protection. 14014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON 14034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to indicate which unicast key ciphers will be used with the connection 14044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (an array of u32). 14054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate which group key cipher will be used with the connection (a 14074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * u32). 14084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate which WPA version(s) the AP we want to associate with is using 14104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (a u32 with flags from &enum nl80211_wpa_versions). 14114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to 14124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate which key management algorithm(s) to use (an array of u32). 14134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REQ_IE: (Re)association request information elements as 14154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent out by the card, for ROAM and successful CONNECT events. 14164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_RESP_IE: (Re)association response information elements as 14174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sent by peer, for ROAM and successful CONNECT events. 14184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used in ASSOCIATE and CONNECT 14204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * commands to specify a request to reassociate within an ESS, i.e., to use 14214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Reassociate Request frame (with the value of this attribute in the 14224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Current AP address field) instead of Association Request frame which is 14234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used for the initial association to an ESS. 14244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY: key information in a nested attribute with 14264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_KEY_* sub-attributes 14274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect() 14284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and join_ibss(), key information is in a nested attribute each 14294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with %NL80211_KEY_* sub-attributes 14304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PID: Process ID of a network namespace. 14324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for 14344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * dumps. This number increases whenever the object list being 14354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * dumped changes, and as such userspace can verify that it has 14364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * obtained a complete and consistent snapshot by verifying that 14374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * all dump messages contain the same generation number. If it 14384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * changed then the list changed and the dump should be repeated 14394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * completely from scratch. 14404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface 14424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of 14444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute 14454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing info as possible, see &enum survey_info. 14464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PMKID: PMK material for PMKSA caching. 14484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can 14494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cache, a wiphy attribute. 14504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32. 14524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that 14534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specifies the maximum duration that can be requested with the 14544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * remain-on-channel operation, in milliseconds, u32. 14554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects. 14574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TX_RATES: Nested set of attributes 14594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (enum nl80211_tx_rate_attributes) describing TX rates per band. The 14604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_band value is used as the index (nla_type() of the nested 14614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * data. If a band is not included, it will be configured to allow all 14624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rates based on negotiated supported rates information. This attribute 14634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP, 14644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and joining mesh networks (not IBSS yet). In the later case, it must 14654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specify just a single bitrate, which is to be used for the beacon. 14664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The driver must also specify support for this with the extended 14674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 14684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_EXT_FEATURE_BEACON_RATE_HT and 14694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_EXT_FEATURE_BEACON_RATE_VHT. 14704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain 14724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME. 14734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the 14744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_REGISTER_FRAME command. 14754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a 14764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 14774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * information about which frame types can be transmitted with 14784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_FRAME. 14794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a 14804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing 14814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * information about which frame types can be registered for RX. 14824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was 14844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * acknowledged by the recipient. 14854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. 14874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM: connection quality monitor configuration in a 14894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nested attribute with %NL80211_ATTR_CQM_* sub-attributes. 14904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command 14924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is requesting a local authentication/association state change without 14934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * invoking actual management frame exchange. This can be used with 14944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE, 14954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_CMD_DISASSOCIATE. 14964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 14974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations 14984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * connected to this BSS. 14994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See 15014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_tx_power_setting for possible values. 15024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units. 15034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING 15044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for non-automatic settings. 15054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly 15074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * means support for per-station GTKs. 15084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting. 15104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This can be used to mask out antennas which are not attached or should 15114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * not be used for transmitting. If an antenna is not selected in this 15124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * bitmap the hardware is not allowed to transmit on this antenna. 15134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each bit represents one antenna, starting with antenna 1 at the first 15154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * bit. Depending on which antennas are selected in the bitmap, 802.11n 15164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * drivers can derive which chainmasks to use (if all antennas belonging to 15174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a particular chain are disabled this chain should be disabled) and if 15184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a chain has diversity antennas wether diversity should be used or not. 15194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * HT capabilities (STBC, TX Beamforming, Antenna selection) can be 15204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * derived from the available chains after applying the antenna mask. 15214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Non-802.11n drivers can derive wether to use diversity or not. 15224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Drivers may reject configurations or RX/TX mask combinations they cannot 15234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * support by returning -EINVAL. 15244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving. 15264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This can be used to mask out antennas which are not attached or should 15274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * not be used for receiving. If an antenna is not selected in this bitmap 15284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the hardware should not be configured to receive on this antenna. 15294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX. 15304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available 15324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for configuration as TX antennas via the above parameters. 15334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available 15354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for configuration as RX antennas via the above parameters. 15364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS 15384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be 15404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * transmitted on another channel when the channel given doesn't match 15414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the current channel. If the current channel doesn't match and this 15424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * flag isn't set, the frame will be rejected. This is also used as an 15434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nl80211 capability flag. 15444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16) 15464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags 15484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes, specifying what a key should be set as default as. 15494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_key_default_types. 15504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters. These cannot be 15524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * changed once the mesh is active. 15534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute 15544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing attributes from &enum nl80211_meshconf_params. 15554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver 15564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * allows auth frames in a mesh to be passed to userspace for processing via 15574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag. 15584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in 15594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_plink_state. Used when userspace is driving the peer link 15604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management state machine. @NL80211_MESH_SETUP_USERSPACE_AMPE or 15614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_MPM must be enabled. 15624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy 15644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capabilities, the supported WoWLAN triggers 15654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to 15664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicate which WoW triggers should be enabled. This is also 15674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN 15684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * triggers. 15694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan 15714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cycles, in msecs. 15724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more 15744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sets of attributes to match during scheduled scans. Only BSSs 15754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that match any of the sets will be reported. These are 15764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * pass-thru filter rules. 15774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For a match to succeed, the BSS must match all attributes of a 15784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set. Since not every hardware supports matching all types of 15794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes, there is no guarantee that the reported BSSs are 15804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * fully complying with the match sets and userspace needs to be 15814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * able to ignore them by itself. 15824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Thus, the implementation is somewhat hardware-dependent, but 15834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this is only an optimization and the userspace application 15844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * needs to handle all the non-filtered results anyway. 15854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If the match attributes don't make sense when combined with 15864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID 15874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is included in the probe request, but the match attributes 15884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * will never let it go through), -EINVAL may be returned. 15894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If ommited, no filtering is done. 15904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported 15924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface combinations. In each nested item, it contains attributes 15934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defined in &enum nl80211_if_combination_attrs. 15944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like 15954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that 15964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are managed in software: interfaces of these types aren't subject to 15974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * any restrictions in their number or combinations. 15984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 15994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information 16004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * necessary for GTK rekeying in the device, see &enum nl80211_rekey_data. 16014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan, 16034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nested array attribute containing an entry for each band, with the entry 16044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but 16054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * without the length restriction (at most %NL80211_MAX_SUPP_RATES). 16064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon 16084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and Probe Response (when response to wildcard Probe Request); see 16094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_hidden_ssid, represented as a u32 16104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame. 16124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to 16134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the 16144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver (or firmware) replies to Probe Request frames. 16154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association 16164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Response frames. This is used with %NL80211_CMD_NEW_BEACON and 16174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into 16184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (Re)Association Response frames when the driver (or firmware) replies to 16194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (Re)Association Request frames. 16204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration 16224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of the station, see &enum nl80211_sta_wme_attr. 16234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working 16244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as AP. 16254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of 16274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * roaming to another AP in the same ESS if the signal lever is low. 16284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching 16304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * candidate information, see &enum nl80211_pmksa_candidate_attr. 16314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not 16334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for management frames transmission. In order to avoid p2p probe/action 16344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frames are being transmitted at CCK rate in 2GHz band, the user space 16354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * applications use this attribute. 16364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and 16374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_FRAME commands. 16384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup 16404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * request, link setup confirm, link teardown, etc.). Values are 16414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * described in the TDLS (802.11z) specification. 16424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a 16434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TDLS conversation between two devices. 16444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see 16454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_tdls_operation, represented as a u8. 16464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate 16474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as a TDLS peer sta. 16484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown 16494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * procedures should be performed by sending TDLS packets via 16504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be 16514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used for asking the driver to perform a TDLS operation. 16524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices 16544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that have AP support to indicate that they have the AP SME integrated 16554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with support for the features listed in this attribute, see 16564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_ap_sme_features. 16574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells 16594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the driver to not wait for an acknowledgement. Note that due to this, 16604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * it will also not give a status callback nor return a cookie. This is 16614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mostly useful for probe responses to save airtime. 16624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from 16644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_feature_flags and is advertised in wiphy information. 16654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe 16664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requests while operating in AP-mode. 16674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This attribute holds a bitmap of the supported protocols for 16684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * offloading (see &enum nl80211_probe_resp_offload_support_attr). 16694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire 16714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * probe-response frame. The DA field in the 802.11 header is zero-ed out, 16724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to be filled by the FW. 16734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable 16744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this feature. Currently, only supported in mac80211 drivers. 16754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the 16764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ATTR_HT_CAPABILITY to which attention should be paid. 16774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Currently, only mac80211 NICs support this feature. 16784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The values that may be configured are: 16794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40 16804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * AMPDU density and AMPDU factor. 16814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * All values are treated as suggestions and may be ignored 16824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by the driver as required. The actual values may be seen in 16834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the station debugfs ht_caps file. 16844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country 16864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * abides to when initiating radiation on DFS channels. A country maps 16874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to one DFS region. 16884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of 16904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * up to 16 TIDs. 16914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be 16934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used by the drivers which has MLME in firmware and does not have support 16944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to report per station tx/rx activity to free up the staion entry from 16954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the list. This needs to be used when the driver advertises the 16964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capability to timeout the stations. 16974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); 16994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this attribute is (depending on the driver capabilities) added to 17004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * received frames indicated with %NL80211_CMD_FRAME. 17014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds 17034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or 0 to disable background scan. 17044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from 17064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace. If unset it is assumed the hint comes directly from 17074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a user. If set code could specify exactly what type of source 17084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * was used to provide the hint. For the different types of 17094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * allowed user regulatory hints see nl80211_user_reg_hint_type. 17104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected 17124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the connection request from a station. nl80211_connect_failed_reason 17134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum has different reasons of connection failure. 17144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_AUTH_DATA: Fields and elements in Authentication frames. 17164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This contains the authentication frame body (non-IE and IE data), 17174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * excluding the Authentication algorithm number, i.e., starting at the 17184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Authentication transaction sequence number field. It is used with 17194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication algorithms that need special fields to be added into 17204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the frames (SAE and FILS). Currently, only the SAE cases use the 17214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * initial two fields (Authentication transaction sequence number and 17224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Status code). However, those fields are included in the attribute data 17234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for all authentication algorithms to keep the attribute definition 17244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * consistent. 17254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from 17274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * association request when used with NL80211_CMD_NEW_STATION) 17284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32) 17304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with 17324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the START_AP and SET_BSS commands 17334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the 17344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * START_AP and SET_BSS commands. This can have the values 0 or 1; 17354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if not given in START_AP 0 is assumed, if not given in SET_BSS 17364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * no change is made. 17374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode 17394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defined in &enum nl80211_mesh_power_mode. 17404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy, 17424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * carried in a u32 attribute 17434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for 17454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MAC ACL. 17464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum 17484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * number of MAC addresses that a device can support for MAC 17494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ACL. 17504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace, 17524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * contains a value of enum nl80211_radar_event (u32). 17534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver 17554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has and handles. The format is the same as the IE contents. See 17564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11-2012 8.4.2.29 for more information. 17574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver 17584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields. 17594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to 17614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the driver, e.g., to enable TDLS power save (PU-APSD). 17624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are 17644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * advertised to the driver, e.g., to enable TDLS off channel operations 17654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and PU-APSD. 17664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see 17684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_protocol_features, the attribute is a u32. 17694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports 17714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * receiving the data for a single wiphy split across multiple 17724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * messages, given with wiphy dump message 17734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MDID: Mobility Domain Identifier 17754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IE_RIC: Resource Information Container Information 17774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Element 17784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased 17804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reliability, see &enum nl80211_crit_proto_id (u16). 17814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which 17824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the connection should have increased reliability (u16). 17834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16). 17854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is similar to @NL80211_ATTR_STA_AID but with a difference of being 17864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * allowed to be used with the first @NL80211_CMD_SET_STATION command to 17874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * update a TDLS peer STA entry. 17884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information. 17904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 17914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's 17924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * until the channel switch event. 17934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission 17944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * must be blocked on the current channel (before the channel switch 17954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * operation). 17964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information 17974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for the time while performing a channel switch. 17984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel 17994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL). 18004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel 18014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * switch counters in the probe response (%NL80211_ATTR_PROBE_RESP). 18024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32. 18044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * As specified in the &enum nl80211_rxmgmt_flags. 18054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels. 18074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported 18094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported operating classes. 18104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space 18124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * controls DFS operation in IBSS mode. If the flag is included in 18134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS 18144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channels and reports radar events to userspace. Userspace is required 18154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to react to radar events, e.g. initiate a channel switch or leave the 18164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IBSS network. 18174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports 18194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 5 MHz channel bandwidth. 18204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports 18214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 10 MHz channel bandwidth. 18224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode 18244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Notification Element based on association request when used with 18254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_NEW_STATION; u8 attribute. 18264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if 18284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet) 18294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command 18304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this 18314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute is also used for vendor command feature advertisement 18324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy 18334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * info, containing a nested array of possible events 18344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This 18364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * data is in the format defined for the payload of the QoS Map Set element 18374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in IEEE Std 802.11-2012, 8.4.2.97. 18384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS 18404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS 18414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many 18434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * associated stations are supported in AP mode (including P2P GO); u32. 18444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Since drivers may not have a fixed limit on the maximum number (e.g., 18454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other concurrent operations may affect this), drivers are allowed to 18464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * advertise values that cannot always be met. In such cases, an attempt 18474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to add a new station entry with @NL80211_CMD_NEW_STATION may fail. 18484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which 18504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * should be updated when the frame is transmitted. 18514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum 18524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported number of csa counters. 18534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32. 18554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * As specified in the &enum nl80211_tdls_peer_capability. 18564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface 18584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * creation then the new interface will be owned by the netlink socket 18594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that created it and will be destroyed when the socket is closed. 18604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If set during scheduled scan start then the new scan req will be 18614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * owned by the netlink socket that created it and the scheduled scan will 18624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be stopped when the socket is closed. 18634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If set during configuration of regulatory indoor operation then the 18644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory indoor configuration would be owned by the netlink socket 18654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that configured the indoor setting, and the indoor operation would be 18664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cleared when the socket is closed. 18674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If set during NAN interface creation, the interface will be destroyed 18684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if the socket is closed just like any other interface. Moreover, only 18694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the netlink socket that created the interface will be allowed to add 18704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and remove functions. NAN notifications will be sent in unicast to that 18714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * socket. Without this attribute, any socket can add functions and the 18724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notifications will be sent to the %NL80211_MCGRP_NAN multicast group. 18734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is 18754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the TDLS link initiator. 18764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection 18784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * shall support Radio Resource Measurements (11k). This attribute can be 18794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests. 18804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * User space applications are expected to use this flag only if the 18814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * underlying device supports these minimal RRM features: 18824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES, 18834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_FEATURE_QUIET, 18844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Or, if global RRM is supported, see: 18854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_EXT_FEATURE_RRM 18864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If this flag is used, driver must add the Power Capabilities IE to the 18874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * association request. In addition, it must also set the RRM capability 18884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * flag in the association request's Capability Info field. 18894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout 18914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * estimation algorithm (dynack). In order to activate dynack 18924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower 18934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * drivers to indicate dynack capability. Dynack is automatically disabled 18944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * setting valid value for coverage class. 18954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 18964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TSID: a TSID value (u8 attribute) 18974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute) 18984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds 18994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (per second) (u16 attribute) 19004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see 19024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_smps_mode. 19034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_OPER_CLASS: operating class 19054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC_MASK: MAC address mask 19074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device 19094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is self-managing its regulatory information and any regulatory domain 19104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * obtained from it is coming from the device's wiphy and not the global 19114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cfg80211 regdomain. 19124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte 19144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * array. The feature flags are identified by their bit index (see &enum 19154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nl80211_ext_feature_index). The bit index is ordered starting at the 19164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * least-significant bit of the first byte in the array, ie. bit index 0 19174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is located at bit 0 of byte 0. bit index 25 would be located at bit 1 19184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of byte 3 (u8 array). 19194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be 19214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY 19224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * may return a survey entry without a channel indicating global radio 19234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * statistics (only some values are valid and make sense.) 19244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For devices that don't return such an entry even then, the information 19254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * should be contained in the result as the sum of the respective counters 19264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * over all channels. 19274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before the first cycle of a 19294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan is started. Or the delay before a WoWLAN 19304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * net-detect scan is started, counting from the moment the 19314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * system is suspended. This value is a u32, in seconds. 19324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 19334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device 19344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is operating in an indoor environment. 19354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for 19374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scheduled scan supported by the device (u32), a wiphy attribute. 19384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for 19394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a scan plan (u32), a wiphy attribute. 19404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in 19414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a scan plan (u32), a wiphy attribute. 19424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan. 19434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each scan plan defines the number of scan iterations and the interval 19444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * between scans. The last scan plan will always run infinitely, 19454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * thus it must not specify the number of iterations, only the interval 19464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * between scans. The scan plans are executed sequentially. 19474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan. 19484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PBSS: flag attribute. If set it means operate 19494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in a PBSS. Specified in %NL80211_CMD_CONNECT to request 19504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * connecting to a PCP, and in %NL80211_CMD_START_AP to start 19514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a PCP instead of AP. Relevant for DMG networks only. 19524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSS_SELECT: nested attribute for driver supporting the 19534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS selection feature. When used with %NL80211_CMD_GET_WIPHY it contains 19544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes according &enum nl80211_bss_select_attr to indicate what 19554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS selection behaviours are supported. When used with %NL80211_CMD_CONNECT 19564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * it contains the behaviour-specific attribute containing the parameters for 19574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS selection to be done by driver and/or firmware. 19584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported 19604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status 19614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment 19634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes: 19654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA, 19664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities per 19674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface type. 19684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO 19704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * groupID for monitor mode. 19714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The first 8 bytes are a mask that defines the membership in each 19724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * group (there are 64 groups, group 0 and 63 are reserved), 19734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * each bit represents a group and set to 1 for being a member in 19744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that group and 0 for not being a member. 19754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The remaining 16 bytes define the position in each group: 2 bits for 19764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * each group. 19774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (smaller group numbers represented on most significant bits and bigger 19784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * group numbers on least significant bits.) 19794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This attribute is used only if all interfaces are in monitor mode. 19804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Set this attribute in order to monitor packets using the given MU-MIMO 19814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * groupID data. 19824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to turn off that feature set all the bits of the groupID to zero. 19834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR: mac address for the sniffer to follow 19844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when using MU-MIMO air sniffer. 19854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to turn that feature off set an invalid mac address 19864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (e.g. FF:FF:FF:FF:FF:FF) 19874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 19884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_START_TIME_TSF: The time at which the scan was actually 19894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * started (u64). The time is the TSF of the BSS the interface that 19904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requested the scan is connected to (if available, otherwise this 19914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute must not be included). 19924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCAN_START_TIME_TSF_BSSID: The BSS according to which 19934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SCAN_START_TIME_TSF is set. 19944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MEASUREMENT_DURATION: measurement duration in TUs (u16). If 19954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY is not set, this is the 19964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * maximum measurement duration allowed. This attribute is used with 19974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * measurement requests. It can also be used with %NL80211_CMD_TRIGGER_SCAN 19984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if the scan is used for beacon report radio measurement. 19994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY: flag attribute that indicates 20004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that the duration specified with %NL80211_ATTR_MEASUREMENT_DURATION is 20014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mandatory. If this flag is not set, the duration is the maximum duration 20024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and the actual measurement duration may be shorter. 20034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer (u16). This is 20054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used to pull the stored data for mesh peer in power save state. 20064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by 20084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_START_NAN and optionally with 20094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0. 20104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Also, values 1 and 255 are reserved for certification purposes and 20114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * should not be used during a normal device operation. 20124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_NAN_DUAL: NAN dual band operation config (see 20134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_nan_dual_band_conf). This attribute is used with 20144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_START_NAN and optionally with 20154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_CHANGE_NAN_CONFIG. 20164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See 20174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_nan_func_attributes for description of this nested 20184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute. 20194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_NAN_MATCH: used to report a match. This is a nested attribute. 20204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_nan_match_attributes. 20214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_KEK: KEK for FILS (Re)Association Request/Response frame 20224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * protection. 20234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_NONCES: Nonces (part of AAD) for FILS (Re)Association 20244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Request/Response frame protection. This attribute contains the 16 octet 20254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * STA Nonce followed by 16 octets of AP Nonce. 20264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED: Indicates whether or not multicast 20284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packets should be send out as unicast to all stations (flag attribute). 20294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_BSSID: The BSSID of the AP. Note that %NL80211_ATTR_MAC is also 20314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used in various commands/events for specifying the BSSID. 20324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI: Relative RSSI threshold by which 20344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other BSSs has to be better or slightly worse than the current 20354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * connected BSS so that they get reported to user space. 20364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This will give an opportunity to userspace to consider connecting to 20374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * other matching BSSs which have better or slightly worse RSSI than 20384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the current connected BSS by using an offloaded operation to avoid 20394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * unnecessary wakeups. 20404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST: When present the RSSI level for BSSs in 20424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the specified band is to be adjusted before doing 20434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI based comparision to figure out 20444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * better BSSs. The attribute value is a packed structure 20454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * value as specified by &struct nl80211_bss_select_rssi_adjust. 20464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out. 20484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * u32 attribute with an &enum nl80211_timeout_reason value. This is used, 20494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * e.g., with %NL80211_CMD_CONNECT event. 20504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_ERP_USERNAME: EAP Re-authentication Protocol (ERP) 20524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * username part of NAI used to refer keys rRK and rIK. This is used with 20534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_CONNECT. 20544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_ERP_REALM: EAP Re-authentication Protocol (ERP) realm part 20564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of NAI specifying the domain name of the ER server. This is used with 20574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_CONNECT. 20584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM: Unsigned 16-bit ERP next sequence number 20604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to use in ERP messages. This is used in generating the FILS wrapped data 20614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for FILS authentication and is used with %NL80211_CMD_CONNECT. 20624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_ERP_RRK: ERP re-authentication Root Key (rRK) for the 20644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NAI specified by %NL80211_ATTR_FILS_ERP_USERNAME and 20654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_FILS_ERP_REALM. This is used for generating rIK and rMSK 20664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * from successful FILS authentication and is used with 20674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_CONNECT. 20684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP 20704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * identifying the scope of PMKSAs. This is used with 20714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA. 20724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PMK: PMK for the PMKSA identified by %NL80211_ATTR_PMKID. 20744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is used with @NL80211_CMD_SET_PMKSA. 20754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_PORT_AUTHORIZED: flag attribute used in %NL80211_CMD_ROAMED 20764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * notification indicating that that 802.1X authentication was done by 20774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the driver or is not needed (because roaming used the Fast Transition 20784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * protocol). 20794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 20804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_ATTR: total number of nl80211_attrs available 20814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAX: highest attribute number currently defined 20824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_ATTR_AFTER_LAST: internal use 20834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 20844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_attrs { 20854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* don't change the order or add anything between, this is ABI! */ 20864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_UNSPEC, 20874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 20884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY, 20894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_NAME, 20904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 20914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IFINDEX, 20924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IFNAME, 20934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IFTYPE, 20944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 20954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAC, 20964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 20974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_DATA, 20984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_IDX, 20994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_CIPHER, 21004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_SEQ, 21014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_DEFAULT, 21024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BEACON_INTERVAL, 21044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DTIM_PERIOD, 21054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BEACON_HEAD, 21064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BEACON_TAIL, 21074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_AID, 21094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_FLAGS, 21104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_LISTEN_INTERVAL, 21114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_SUPPORTED_RATES, 21124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_VLAN, 21134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_INFO, 21144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_BANDS, 21164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MNTR_FLAGS, 21184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MESH_ID, 21204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_PLINK_ACTION, 21214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MPATH_NEXT_HOP, 21224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MPATH_INFO, 21234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_CTS_PROT, 21254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_SHORT_PREAMBLE, 21264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_SHORT_SLOT_TIME, 21274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_HT_CAPABILITY, 21294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORTED_IFTYPES, 21314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_ALPHA2, 21334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_RULES, 21344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MESH_CONFIG, 21364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_BASIC_RATES, 21384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_TXQ_PARAMS, 21404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_FREQ, 21414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_CHANNEL_TYPE, 21424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_DEFAULT_MGMT, 21444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MGMT_SUBTYPE, 21464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IE, 21474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_NUM_SCAN_SSIDS, 21494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_FREQUENCIES, 21514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_SSIDS, 21524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */ 21534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS, 21544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_INITIATOR, 21564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_TYPE, 21574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORTED_COMMANDS, 21594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FRAME, 21614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SSID, 21624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_AUTH_TYPE, 21634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REASON_CODE, 21644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_TYPE, 21664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_SCAN_IE_LEN, 21684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CIPHER_SUITES, 21694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_BEFORE, 21714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_AFTER, 21724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_FIXED, 21744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_RETRY_SHORT, 21774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_RETRY_LONG, 21784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_FRAG_THRESHOLD, 21794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_RTS_THRESHOLD, 21804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TIMED_OUT, 21824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_USE_MFP, 21844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_FLAGS2, 21864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CONTROL_PORT, 21884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TESTDATA, 21904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PRIVACY, 21924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DISCONNECTED_BY_AP, 21944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STATUS_CODE, 21954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 21964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CIPHER_SUITES_PAIRWISE, 21974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CIPHER_SUITE_GROUP, 21984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WPA_VERSIONS, 21994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_AKM_SUITES, 22004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REQ_IE, 22024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_RESP_IE, 22034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PREV_BSSID, 22054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY, 22074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEYS, 22084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PID, 22104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_4ADDR, 22124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SURVEY_INFO, 22144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PMKID, 22164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_NUM_PMKIDS, 22174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DURATION, 22194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COOKIE, 22214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_COVERAGE_CLASS, 22234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TX_RATES, 22254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FRAME_MATCH, 22274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_ACK, 22294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PS_STATE, 22314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM, 22334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_LOCAL_STATE_CHANGE, 22354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_AP_ISOLATE, 22374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_TX_POWER_SETTING, 22394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_TX_POWER_LEVEL, 22404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TX_FRAME_TYPES, 22424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_RX_FRAME_TYPES, 22434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FRAME_TYPE, 22444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CONTROL_PORT_ETHERTYPE, 22464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, 22474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORT_IBSS_RSN, 22494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_ANTENNA_TX, 22514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_ANTENNA_RX, 22524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MCAST_RATE, 22544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_OFFCHANNEL_TX_OK, 22564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_HT_OPMODE, 22584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_KEY_DEFAULT_TYPES, 22604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION, 22624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MESH_SETUP, 22644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, 22664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, 22674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORT_MESH_AUTH, 22694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_PLINK_STATE, 22704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WOWLAN_TRIGGERS, 22724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, 22734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_INTERVAL, 22754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_INTERFACE_COMBINATIONS, 22774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SOFTWARE_IFTYPES, 22784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REKEY_DATA, 22804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, 22824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN, 22834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_SUPP_RATES, 22854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_HIDDEN_SSID, 22874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IE_PROBE_RESP, 22894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IE_ASSOC_RESP, 22904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_WME, 22924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORT_AP_UAPSD, 22934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_ROAM_SUPPORT, 22954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_MATCH, 22974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_MATCH_SETS, 22984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 22994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PMKSA_CANDIDATE, 23004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TX_NO_CCK_RATE, 23024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_ACTION, 23044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_DIALOG_TOKEN, 23054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_OPERATION, 23064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_SUPPORT, 23074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_EXTERNAL_SETUP, 23084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DEVICE_AP_SME, 23104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DONT_WAIT_FOR_ACK, 23124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FEATURE_FLAGS, 23144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PROBE_RESP_OFFLOAD, 23164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PROBE_RESP, 23184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DFS_REGION, 23204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DISABLE_HT, 23224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_HT_CAPABILITY_MASK, 23234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NOACK_MAP, 23254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_INACTIVITY_TIMEOUT, 23274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_RX_SIGNAL_DBM, 23294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BG_SCAN_PERIOD, 23314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WDEV, 23334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_USER_REG_HINT_TYPE, 23354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CONN_FAILED_REASON, 23374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_AUTH_DATA, 23394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VHT_CAPABILITY, 23414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_FLAGS, 23434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CHANNEL_WIDTH, 23454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CENTER_FREQ1, 23464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CENTER_FREQ2, 23474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_P2P_CTWINDOW, 23494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_P2P_OPPPS, 23504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_LOCAL_MESH_POWER_MODE, 23524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_ACL_POLICY, 23544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAC_ADDRS, 23564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAC_ACL_MAX, 23584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_RADAR_EVENT, 23604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_EXT_CAPA, 23624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_EXT_CAPA_MASK, 23634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_CAPABILITY, 23654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_EXT_CAPABILITY, 23664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PROTOCOL_FEATURES, 23684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SPLIT_WIPHY_DUMP, 23694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DISABLE_VHT, 23714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VHT_CAPABILITY_MASK, 23724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MDID, 23744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IE_RIC, 23754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CRIT_PROT_ID, 23774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_CRIT_PROT_DURATION, 23784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PEER_AID, 23804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COALESCE_RULE, 23824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CH_SWITCH_COUNT, 23844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CH_SWITCH_BLOCK_TX, 23854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CSA_IES, 23864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CSA_C_OFF_BEACON, 23874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CSA_C_OFF_PRESP, 23884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_RXMGMT_FLAGS, 23904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_SUPPORTED_CHANNELS, 23924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES, 23944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_HANDLE_DFS, 23964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 23974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORT_5_MHZ, 23984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SUPPORT_10_MHZ, 23994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_OPMODE_NOTIF, 24014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VENDOR_ID, 24034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VENDOR_SUBCMD, 24044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VENDOR_DATA, 24054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_VENDOR_EVENTS, 24064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_QOS_MAP, 24084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAC_HINT, 24104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_FREQ_HINT, 24114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_AP_ASSOC_STA, 24134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_PEER_CAPABILITY, 24154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SOCKET_OWNER, 24174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CSA_C_OFFSETS_TX, 24194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_CSA_COUNTERS, 24204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TDLS_INITIATOR, 24224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_USE_RRM, 24244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_DYN_ACK, 24264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TSID, 24284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_USER_PRIO, 24294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_ADMITTED_TIME, 24304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SMPS_MODE, 24324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_OPER_CLASS, 24344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAC_MASK, 24364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WIPHY_SELF_MANAGED_REG, 24384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_EXT_FEATURES, 24404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SURVEY_RADIO_STATS, 24424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NETNS_FD, 24444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_DELAY, 24464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_INDOOR, 24484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS, 24504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL, 24514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, 24524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_PLANS, 24534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PBSS, 24554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSS_SELECT, 24574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_STA_SUPPORT_P2P_PS, 24594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PAD, 24614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_IFTYPE_EXT_CAPA, 24634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MU_MIMO_GROUP_DATA, 24654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR, 24664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_START_TIME_TSF, 24684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCAN_START_TIME_TSF_BSSID, 24694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MEASUREMENT_DURATION, 24704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY, 24714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MESH_PEER_AID, 24734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NAN_MASTER_PREF, 24754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NAN_DUAL, 24764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NAN_FUNC, 24774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_NAN_MATCH, 24784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_KEK, 24804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_NONCES, 24814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED, 24834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_BSSID, 24854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, 24874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, 24884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_TIMEOUT_REASON, 24904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_ERP_USERNAME, 24924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_ERP_REALM, 24934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM, 24944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_ERP_RRK, 24954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FILS_CACHE_ID, 24964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PMK, 24984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 24994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_MULTI, 25004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_SCHED_SCAN_MAX_REQS, 25014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_WANT_1X_4WAY_HS, 25034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PMKR0_NAME, 25044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_PORT_AUTHORIZED, 25054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* add attributes here, update the policy in nl80211.c */ 25074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_ATTR_AFTER_LAST, 25094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST, 25104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1 25114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 25124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* source-level API compatibility */ 25144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION 25154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG 25164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER 25174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA 25184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 25204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Allow user space programs to use #ifdef on new attributes by defining them 25214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * here 25224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 25234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CMD_CONNECT NL80211_CMD_CONNECT 25244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY 25254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES 25264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS 25274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ 25284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE 25294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE 25304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_IE NL80211_ATTR_IE 25314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR 25324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE 25334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_FRAME NL80211_ATTR_FRAME 25344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_SSID NL80211_ATTR_SSID 25354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE 25364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE 25374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE 25384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP 25394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS 25404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES 25414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_KEY NL80211_ATTR_KEY 25424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_KEYS NL80211_ATTR_KEYS 25434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 25444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MAX_SUPP_RATES 32 25464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MAX_SUPP_HT_RATES 77 25474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MAX_SUPP_REG_RULES 64 25484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 25494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 25504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24 25514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_HT_CAPABILITY_LEN 26 25524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_VHT_CAPABILITY_LEN 12 25534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MAX_NR_CIPHER_SUITES 5 25554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MAX_NR_AKM_SUITES 2 25564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10 25584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* default RSSI threshold for scan results if none specified. */ 25604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SCAN_RSSI_THOLD_OFF -300 25614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CQM_TXE_MAX_INTVL 1800 25634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 25644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 25654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_iftype - (virtual) interface types 25664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 25674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides 25684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_ADHOC: independent BSS member 25694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_STATION: managed BSS member 25704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_AP: access point 25714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces 25724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are a bit special in that they must always be tied to a pre-existing 25734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * AP type interface. 25744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_WDS: wireless distribution interface 25754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames 25764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_MESH_POINT: mesh point 25774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_P2P_CLIENT: P2P client 25784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_P2P_GO: P2P group owner 25794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev 25804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and therefore can't be created in the normal ways, use the 25814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE 25824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * commands to create and destroy one 25834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IF_TYPE_OCB: Outside Context of a BSS 25844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This mode corresponds to the MIB variable dot11OCBActivated=true 25854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_NAN: NAN device interface type (not a netdev) 25864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFTYPE_MAX: highest interface type number currently defined 25874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_IFTYPES: number of defined interface types 25884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 25894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These values are used with the %NL80211_ATTR_IFTYPE 25904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to set the type of an interface. 25914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 25924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 25934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_iftype { 25944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_UNSPECIFIED, 25954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_ADHOC, 25964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_STATION, 25974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_AP, 25984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_AP_VLAN, 25994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_WDS, 26004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_MONITOR, 26014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_MESH_POINT, 26024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_P2P_CLIENT, 26034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_P2P_GO, 26044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_P2P_DEVICE, 26054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_OCB, 26064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_NAN, 26074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 26094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_IFTYPES, 26104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1 26114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 26124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 26144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sta_flags - station flags 26154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Station flags. When a station is added to an AP interface, it is 26174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * assumed to be already associated (and hence authenticated.) 26184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved 26204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) 26214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames 26224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with short barker preamble 26234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_WME: station is WME/QoS capable 26244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_MFP: station uses management frame protection 26254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated 26264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should 26274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * only be used in managed mode (even in the flags mask). Note that the 26284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * flag can't be changed, it is only valid while adding a station, and 26294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attempts to change it will silently be ignored (rather than rejected 26304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as errors.) 26314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers 26324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a 26334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * previously added station into associated state 26344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_FLAG_MAX: highest station flag number currently defined 26354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_FLAG_AFTER_LAST: internal use 26364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 26374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sta_flags { 26384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_FLAG_INVALID, 26394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_AUTHORIZED, 26404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_SHORT_PREAMBLE, 26414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_WME, 26424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_MFP, 26434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_AUTHENTICATED, 26444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_TDLS_PEER, 26454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_ASSOCIATED, 26464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 26484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_FLAG_AFTER_LAST, 26494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1 26504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 26514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 26534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sta_p2p_ps_status - station support of P2P PS 26544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism 26564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism 26574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_P2P_PS_STATUS: number of values 26584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 26594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sta_p2p_ps_status { 26604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_P2P_PS_UNSUPPORTED = 0, 26614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_P2P_PS_SUPPORTED, 26624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_P2P_PS_STATUS, 26644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 26654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER 26674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 26694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_sta_flag_update - station flags mask/set 26704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @mask: mask of station flags to set 26714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @set: which values to set them to 26724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Both mask and set contain bits as per &enum nl80211_sta_flags. 26744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 26754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_sta_flag_update { 26764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 mask; 26774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 set; 26784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius} __attribute__((packed)); 26794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 26804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 26814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_rate_info - bitrate information 26824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attribute types are used with %NL80211_STA_INFO_TXRATE 26844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when getting information about the bitrate of a station. 26854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * There are 2 attributes for bitrate, a legacy one that represents 26864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a 16-bit value, and new one that represents a 32-bit value. 26874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If the rate value fits into 16 bit, both attributes are reported 26884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with the same value. If the rate is too high to fit into 16 bits 26894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (>6.5535Gbps) only 32-bit attribute is included. 26904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * User space tools encouraged to use the 32-bit attribute and fall 26914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * back to the 16-bit one for compatibility with older kernels. 26924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 26934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved 26944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s) 26954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8) 26964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate 26974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval 26984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s) 26994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined 27004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8) 27014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8) 27024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate 27034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the 27044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * same as 160 for purposes of the bitrates 27054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate 27064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is 27074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a legacy rate and will be reported as the actual bitrate, i.e. 27084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * half the base (20 MHz) rate 27094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is 27104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a legacy rate and will be reported as the actual bitrate, i.e. 27114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a quarter of the base (20 MHz) rate 27124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_RATE_INFO_AFTER_LAST: internal use 27134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 27144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_rate_info { 27154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_RATE_INFO_INVALID, 27164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_BITRATE, 27174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_MCS, 27184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_40_MHZ_WIDTH, 27194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_SHORT_GI, 27204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_BITRATE32, 27214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_VHT_MCS, 27224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_VHT_NSS, 27234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_80_MHZ_WIDTH, 27244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_80P80_MHZ_WIDTH, 27254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_160_MHZ_WIDTH, 27264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_10_MHZ_WIDTH, 27274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_5_MHZ_WIDTH, 27284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 27294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 27304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_RATE_INFO_AFTER_LAST, 27314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1 27324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 27334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 27344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 27354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sta_bss_param - BSS information collected by STA 27364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 27374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM 27384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when getting information about the bitrate of a station. 27394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 27404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved 27414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag) 27424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled 27434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (flag) 27444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled 27454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (flag) 27464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8) 27474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16) 27484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined 27494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use 27504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 27514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sta_bss_param { 27524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_BSS_PARAM_INVALID, 27534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_CTS_PROT, 27544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_SHORT_PREAMBLE, 27554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME, 27564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_DTIM_PERIOD, 27574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_BEACON_INTERVAL, 27584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 27594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 27604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_BSS_PARAM_AFTER_LAST, 27614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1 27624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 27634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 27644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 27654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sta_info - station information 27664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 27674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attribute types are used with %NL80211_ATTR_STA_INFO 27684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when getting information about a station. 27694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 27704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved 27714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs) 27724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length) 27734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, from this station) 27744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length) 27754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, to this station) 27764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length) 27774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u64, from this station) 27784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length) 27794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u64, to this station) 27804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) 27814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute 27824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing info as possible, see &enum nl80211_rate_info 27834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs) 27844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, from this station) 27854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs) 27864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, to this station) 27874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station) 27884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs) 27894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, to this station) 27904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) 27914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_LLID: the station's mesh LLID 27924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_PLID: the station's mesh PLID 27934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station 27944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (see %enum nl80211_plink_state) 27954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested 27964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute, like NL80211_STA_INFO_TX_BITRATE. 27974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute 27984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing info as possible, see &enum nl80211_sta_bss_param 27994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected 28004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. 28014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) 28024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) 28034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode 28044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode 28054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards 28064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * non-peer STA 28074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU 28084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Contains a nested array of signal strength attributes (u8, dBm) 28094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average 28104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. 28114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the 28124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 header (u32, kbps) 28134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons 28144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u64) 28154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64) 28164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average 28174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for beacons only (u8, dBm) 28184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats) 28194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is a nested attribute where each the inner attribute number is the 28204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames; 28214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * each one of those is again nested with &enum nl80211_tid_stats 28224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes carrying the actual values. 28234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames 28244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * received from the station (u64, usec) 28254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment 28264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_INFO_AFTER_LAST: internal 28274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_INFO_MAX: highest possible station info attribute 28284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 28294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sta_info { 28304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_INFO_INVALID, 28314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_INACTIVE_TIME, 28324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_BYTES, 28334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_BYTES, 28344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_LLID, 28354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_PLID, 28364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_PLINK_STATE, 28374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_SIGNAL, 28384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_BITRATE, 28394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_PACKETS, 28404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_PACKETS, 28414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_RETRIES, 28424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_FAILED, 28434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_SIGNAL_AVG, 28444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_BITRATE, 28454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_BSS_PARAM, 28464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_CONNECTED_TIME, 28474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_STA_FLAGS, 28484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_BEACON_LOSS, 28494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_T_OFFSET, 28504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_LOCAL_PM, 28514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_PEER_PM, 28524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_NONPEER_PM, 28534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_BYTES64, 28544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TX_BYTES64, 28554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_CHAIN_SIGNAL, 28564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_CHAIN_SIGNAL_AVG, 28574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_EXPECTED_THROUGHPUT, 28584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_DROP_MISC, 28594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_BEACON_RX, 28604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_BEACON_SIGNAL_AVG, 28614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_TID_STATS, 28624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_RX_DURATION, 28634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_PAD, 28644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 28654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 28664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_INFO_AFTER_LAST, 28674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1 28684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 28694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 28704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 28714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_tid_stats - per TID statistics attributes 28724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved 28734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64) 28744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or 28754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attempted to transmit; u64) 28764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for 28774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * transmitted MSDUs (not counting the first attempt; u64) 28784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted 28794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * MSDUs (u64) 28804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment 28814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_TID_STATS: number of attributes here 28824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TID_STATS_MAX: highest numbered attribute here 28834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 28844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_tid_stats { 28854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_TID_STATS_INVALID, 28864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_RX_MSDU, 28874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_TX_MSDU, 28884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_TX_MSDU_RETRIES, 28894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_TX_MSDU_FAILED, 28904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_PAD, 28914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 28924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 28934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_TID_STATS, 28944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1 28954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 28964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 28974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 28984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mpath_flags - nl80211 mesh path flags 28994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 29004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active 29014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running 29024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN 29034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set 29044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded 29054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 29064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mpath_flags { 29074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_FLAG_ACTIVE = 1<<0, 29084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_FLAG_RESOLVING = 1<<1, 29094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_FLAG_SN_VALID = 1<<2, 29104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_FLAG_FIXED = 1<<3, 29114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_FLAG_RESOLVED = 1<<4, 29124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 29134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 29154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mpath_info - mesh path information 29164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 29174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting 29184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * information about a mesh path. 29194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 29204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved 29214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination 29224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_SN: destination sequence number 29234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path 29244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now 29254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in 29264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_mpath_flags; 29274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec 29284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries 29294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number 29304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defind 29314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MPATH_INFO_AFTER_LAST: internal use 29324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 29334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mpath_info { 29344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MPATH_INFO_INVALID, 29354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_FRAME_QLEN, 29364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_SN, 29374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_METRIC, 29384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_EXPTIME, 29394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_FLAGS, 29404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, 29414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_DISCOVERY_RETRIES, 29424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 29444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MPATH_INFO_AFTER_LAST, 29454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1 29464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 29474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 29494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_band_attr - band attributes 29504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved 29514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, 29524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an array of nested frequency attributes 29534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, 29544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an array of nested bitrate attributes 29554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as 29564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defined in 802.11n 29574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE 29584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n 29594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n 29604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as 29614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defined in 802.11ac 29624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE 29634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined 29644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BAND_ATTR_AFTER_LAST: internal use 29654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 29664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_band_attr { 29674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BAND_ATTR_INVALID, 29684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_FREQS, 29694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_RATES, 29704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_HT_MCS_SET, 29724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_HT_CAPA, 29734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_HT_AMPDU_FACTOR, 29744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_HT_AMPDU_DENSITY, 29754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_VHT_MCS_SET, 29774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_VHT_CAPA, 29784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 29804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BAND_ATTR_AFTER_LAST, 29814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 29824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 29834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA 29854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 29864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 29874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_frequency_attr - frequency attributes 29884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved 29894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz 29904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current 29914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory domain. 29924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation 29934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * are permitted on this channel, this includes sending probe 29944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requests, or modes of operation that require beaconing. 29954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory 29964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on this channel in current regulatory domain. 29974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm 29984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (100 * dBm). 29994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS 30004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (enum nl80211_dfs_state) 30014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long 30024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this channel is in this DFS state. 30034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this 30044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel as the control channel 30054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this 30064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel as the control channel 30074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel 30084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as the primary or any of the secondary channels isn't possible, 30094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this includes 80+80 channels 30104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel 30114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using this channel as the primary or any of the secondary channels 30124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * isn't possible 30134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 30144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this 30154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel. A channel that has the INDOOR_ONLY attribute can only be 30164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used when there is a clear assessment that the device is operating in 30174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * an indoor surroundings, i.e., it is connected to AC power (and not 30184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * through portable DC inverters) or is under the control of a master 30194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that is acting as an AP and is connected to AC power. 30204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this 30214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel if it's connected concurrently to a BSS on the same channel on 30224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz 30234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS 30244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * off-channel on a channel that has the IR_CONCURRENT attribute set can be 30254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * done when there is a clear assessment that the device is operating under 30264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the guidance of an authorized master, i.e., setting up a GO or TDLS 30274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * off-channel while the device is also connected to an AP with DFS and 30284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * radar detection on the UNII band (it is up to user-space, i.e., 30294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wpa_supplicant to perform the required verifications). Using this 30304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute for IR is disallowed for master interfaces (IBSS, AP). 30314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed 30324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on this channel in current regulatory domain. 30334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed 30344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on this channel in current regulatory domain. 30354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number 30364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defined 30374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use 30384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 30394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122 30404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for more information on the FCC description of the relaxations allowed 30414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and 30424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_FREQUENCY_ATTR_IR_CONCURRENT. 30434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 30444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_frequency_attr { 30454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_FREQUENCY_ATTR_INVALID, 30464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_FREQ, 30474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_DISABLED, 30484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_IR, 30494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_FREQUENCY_ATTR_NO_IBSS, 30504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_RADAR, 30514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_MAX_TX_POWER, 30524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_DFS_STATE, 30534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_DFS_TIME, 30544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_HT40_MINUS, 30554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_HT40_PLUS, 30564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_80MHZ, 30574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_160MHZ, 30584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_DFS_CAC_TIME, 30594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_INDOOR_ONLY, 30604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_IR_CONCURRENT, 30614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_20MHZ, 30624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_NO_10MHZ, 30634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 30644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 30654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_FREQUENCY_ATTR_AFTER_LAST, 30664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 30674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 30684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 30694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER 30704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR 30714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR 30724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR 30734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \ 30744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FREQUENCY_ATTR_IR_CONCURRENT 30754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 30764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 30774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_bitrate_attr - bitrate attributes 30784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved 30794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps 30804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported 30814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in 2.4 GHz band. 30824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number 30834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defined 30844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use 30854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 30864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_bitrate_attr { 30874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BITRATE_ATTR_INVALID, 30884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BITRATE_ATTR_RATE, 30894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, 30904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 30914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 30924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BITRATE_ATTR_AFTER_LAST, 30934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 30944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 30954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 30964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 30974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_initiator - Indicates the initiator of a reg domain request 30984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world 30994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory domain. 31004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the 31014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * regulatory domain. 31024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the 31034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wireless core it thinks its knows the regulatory domain we should be in. 31044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an 31054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 country information element with regulatory information it 31064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * thinks we should consider. cfg80211 only processes the country 31074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * code from the IE, and relies on the regulatory domain information 31084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * structure passed by userspace (CRDA) from our wireless-regdb. 31094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If a channel is enabled but the country code indicates it should 31104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be disabled we disable the channel and re-enable it upon disassociation. 31114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 31124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_reg_initiator { 31134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_SET_BY_CORE, 31144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_SET_BY_USER, 31154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_SET_BY_DRIVER, 31164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_SET_BY_COUNTRY_IE, 31174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 31184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 31204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_reg_type - specifies the type of regulatory domain 31214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains 31224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to a specific country. When this is set you can count on the 31234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ISO / IEC 3166 alpha2 country code being valid. 31244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory 31254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * domain. 31264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom 31274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * driver specific world regulatory domain. These do not apply system-wide 31284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and are only applicable to the individual devices which have requested 31294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * them to be applied. 31304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product 31314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of an intersection between two regulatory domains -- the previously 31324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set regulatory domain on the system and the last accepted regulatory 31334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * domain request to be processed. 31344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 31354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_reg_type { 31364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_TYPE_COUNTRY, 31374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_TYPE_WORLD, 31384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_TYPE_CUSTOM_WORLD, 31394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REGDOM_TYPE_INTERSECTION, 31404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 31414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 31434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_reg_rule_attr - regulatory rule attributes 31444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved 31454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional 31464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * considerations for a given frequency range. These are the 31474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &enum nl80211_reg_rule_flags. 31484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory 31494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rule in KHz. This is not a center of frequency but an actual regulatory 31504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * band edge. 31514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule 31524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in KHz. This is not a center a frequency but an actual regulatory 31534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * band edge. 31544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this 31554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frequency range, in KHz. 31564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain 31574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for a given frequency range. The value is in mBi (100 * dBi). 31584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If you don't have one then don't send this. 31594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for 31604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a given frequency range. The value is in mBm (100 * dBm). 31614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. 31624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If not present or 0 default CAC time will be used. 31634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number 31644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defined 31654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use 31664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 31674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_reg_rule_attr { 31684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_REG_RULE_ATTR_INVALID, 31694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_REG_RULE_FLAGS, 31704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_RANGE_START, 31724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_RANGE_END, 31734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_FREQ_RANGE_MAX_BW, 31744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, 31764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_POWER_RULE_MAX_EIRP, 31774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_DFS_CAC_TIME, 31794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 31814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_REG_RULE_ATTR_AFTER_LAST, 31824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1 31834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 31844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 31854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 31864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sched_scan_match_attr - scheduled scan match attributes 31874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved 31884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, 31894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * only report BSS with matching SSID. 31904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a 31914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS in scan results. Filtering is turned off if not specified. Note that 31924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if this attribute is in a match set of its own, then it is treated as 31934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the default value for all matchsets with an SSID, rather than being a 31944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * matchset of its own without an RSSI filter. This is due to problems with 31954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * how this API was implemented in the past. Also, due to the same problem, 31964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the only way to create a matchset with only an RSSI filter (with this 31974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute) is if there's only a single matchset with the RSSI attribute. 31984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI: Flag indicating whether 31994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_SCHED_SCAN_MATCH_ATTR_RSSI to be used as absolute RSSI or 32004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * relative to current bss's RSSI. 32014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST: When present the RSSI level for 32024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS-es in the specified band is to be adjusted before doing 32034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * RSSI-based BSS selection. The attribute value is a packed structure 32044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * value as specified by &struct nl80211_bss_select_rssi_adjust. 32054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter 32064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute number currently defined 32074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use 32084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 32094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sched_scan_match_attr { 32104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID, 32114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_MATCH_ATTR_SSID, 32134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_MATCH_ATTR_RSSI, 32144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI, 32154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST, 32164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 32184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, 32194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 32204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1 32214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 32224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* only for backward compatibility */ 32244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID 32254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 32274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_reg_rule_flags - regulatory rule flags 32284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 32294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed 32304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_CCK: CCK modulation not allowed 32314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_INDOOR: indoor operation not allowed 32324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed 32334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_DFS: DFS support is required to be used 32344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links 32354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links 32364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, 32374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this includes probe requests or modes of operation that require 32384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * beaconing. 32394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated 32404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * base on contiguous rules and wider channels will be allowed to cross 32414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * multiple contiguous/overlapping frequency ranges. 32424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_IR_CONCURRENT: See &NL80211_FREQUENCY_ATTR_IR_CONCURRENT 32434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation 32444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation 32454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed 32464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed 32474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 32484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_reg_rule_flags { 32494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_OFDM = 1<<0, 32504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_CCK = 1<<1, 32514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_INDOOR = 1<<2, 32524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_OUTDOOR = 1<<3, 32534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_DFS = 1<<4, 32544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_PTP_ONLY = 1<<5, 32554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_PTMP_ONLY = 1<<6, 32564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_IR = 1<<7, 32574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_RRF_NO_IBSS = 1<<8, 32584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_AUTO_BW = 1<<11, 32594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_IR_CONCURRENT = 1<<12, 32604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_HT40MINUS = 1<<13, 32614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_HT40PLUS = 1<<14, 32624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_80MHZ = 1<<15, 32634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_160MHZ = 1<<16, 32644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 32654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR 32674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR 32684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_NO_IR NL80211_RRF_NO_IR 32694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\ 32704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RRF_NO_HT40PLUS) 32714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT 32724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* For backport compatibility with older userspace */ 32744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS) 32754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 32774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_dfs_regions - regulatory DFS regions 32784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 32794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_UNSET: Country has no DFS master region specified 32804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_FCC: Country follows DFS master rules from FCC 32814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI 32824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec 32834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 32844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_dfs_regions { 32854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_UNSET = 0, 32864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_FCC = 1, 32874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_ETSI = 2, 32884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_JP = 3, 32894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 32904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 32914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 32924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_user_reg_hint_type - type of user regulatory hint 32934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 32944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always 32954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * assumed if the attribute is not set. 32964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular 32974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * base station. Device drivers that have been tested to work 32984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * properly to support this type of hint can enable these hints 32994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature 33004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capability on the struct wiphy. The wireless core will 33014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * ignore all cell base station hints until at least one device 33024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * present has been registered with the wireless core that 33034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a 33044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported feature. 33054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the 33064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * platform is operating in an indoor environment. 33074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 33084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_user_reg_hint_type { 33094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_USER_REG_HINT_USER = 0, 33104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_USER_REG_HINT_CELL_BASE = 1, 33114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_USER_REG_HINT_INDOOR = 2, 33124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 33134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 33154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_survey_info - survey information 33164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These attribute types are used with %NL80211_ATTR_SURVEY_INFO 33184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when getting information about a survey. 33194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved 33214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel 33224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 33234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used 33244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio 33254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * was turned on (on channel or globally) 33264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary 33274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel was sensed busy (either due to activity or energy detect) 33284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension 33294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel was sensed busy 33304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent 33314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * receiving data (on channel or globally) 33324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent 33334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * transmitting data (on channel or globally) 33344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan 33354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (on this channel or globally) 33364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment 33374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number 33384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defined 33394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use 33404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 33414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_survey_info { 33424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SURVEY_INFO_INVALID, 33434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_FREQUENCY, 33444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_NOISE, 33454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_IN_USE, 33464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME, 33474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME_BUSY, 33484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME_EXT_BUSY, 33494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME_RX, 33504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME_TX, 33514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_TIME_SCAN, 33524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_PAD, 33534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 33554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SURVEY_INFO_AFTER_LAST, 33564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1 33574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 33584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* keep old names for compatibility */ 33604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SURVEY_INFO_CHANNEL_TIME NL80211_SURVEY_INFO_TIME 33614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY NL80211_SURVEY_INFO_TIME_BUSY 33624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY NL80211_SURVEY_INFO_TIME_EXT_BUSY 33634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SURVEY_INFO_CHANNEL_TIME_RX NL80211_SURVEY_INFO_TIME_RX 33644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_SURVEY_INFO_CHANNEL_TIME_TX NL80211_SURVEY_INFO_TIME_TX 33654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 33674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mntr_flags - monitor configuration flags 33684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Monitor configuration flags. 33704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MNTR_FLAG_INVALID: reserved 33724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS 33744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP 33754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_CONTROL: pass control frames 33764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering 33774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing. 33784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * overrides all other flags. 33794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address 33804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and ACK incoming unicast packets. 33814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 33824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use 33834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag 33844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 33854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mntr_flags { 33864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MNTR_FLAG_INVALID, 33874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_FCSFAIL, 33884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_PLCPFAIL, 33894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_CONTROL, 33904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_OTHER_BSS, 33914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_COOK_FRAMES, 33924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_ACTIVE, 33934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 33954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MNTR_FLAG_AFTER_LAST, 33964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1 33974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 33984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 33994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 34004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mesh_power_mode - mesh power save modes 34014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is 34034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * not known or has not been set yet. 34044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is 34054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in Awake state all the time. 34064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will 34074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * alternate between Active and Doze states, but will wake up for 34084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * neighbor's beacons. 34094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will 34104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * alternate between Active and Doze states, but may not wake up 34114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for neighbor's beacons. 34124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MESH_POWER_AFTER_LAST - internal use 34144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_POWER_MAX - highest possible power save level 34154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 34164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 34174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mesh_power_mode { 34184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_POWER_UNKNOWN, 34194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_POWER_ACTIVE, 34204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_POWER_LIGHT_SLEEP, 34214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_POWER_DEEP_SLEEP, 34224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 34234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MESH_POWER_AFTER_LAST, 34244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1 34254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 34264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 34274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 34284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_meshconf_params - mesh configuration parameters 34294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Mesh configuration parameters. These can be changed while the mesh is 34314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * active. 34324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MESHCONF_INVALID: internal use 34344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in 34364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * millisecond units, used by the Peer Link Open message 34374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in 34394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * millisecond units, used by the peer link management to close a peer link 34404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in 34424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * millisecond units 34434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed 34454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * on this mesh interface 34464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link 34484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * open retries that can be sent to establish a new peer link instance in a 34494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mesh 34504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh 34524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * point. 34534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open 34554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * peer links when we detect compatible mesh peers. Disabled if 34564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are 34574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * set. 34584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames 34604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing a PREQ that an MP can send to a particular destination (path 34614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * target) 34624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths 34644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (in milliseconds) 34654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait 34674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * until giving up on a path discovery (in milliseconds) 34684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh 34704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * points receiving a PREQ shall consider the forwarding information from 34714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the root to be valid. (TU = time unit) 34724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in 34744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TUs) during which an MP can send only one action frame containing a PREQ 34754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * reference element 34764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) 34784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that it takes for an HWMP information element to propagate across the 34794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mesh 34804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not 34824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a 34844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * source mesh point for path selection elements. 34854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between 34874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * root announcements are transmitted. 34884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has 34904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * access to a broader network beyond the MBSS. This is done via Root 34914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Announcement frames. 34924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in 34944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TUs) during which a mesh STA can send only one Action frame containing a 34954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * PERR element. 34964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 34974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding 34984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or forwarding entity (default is TRUE - forwarding entity) 34994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the 35014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * threshold for average signal strength of candidate station to establish 35024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a peer link. 35034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors 35054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to synchronize to for 11s default synchronization method 35064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (see 11C.12.2.2) 35074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode. 35094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 35114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for 35134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * which mesh STAs receiving a proactive PREQ shall consider the forwarding 35144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * information to the root mesh STA to be valid. 35154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between 35174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * proactive PREQs are transmitted. 35184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time 35204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (in TUs) during which a mesh STA can send only one Action frame 35214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing a PREQ element for root path confirmation. 35224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links. 35244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * type &enum nl80211_mesh_power_mode (u32) 35254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs) 35274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've 35294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * established peering with for longer than this time (in seconds), then 35304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * remove it from the STA's list of peers. You may set this to 0 to disable 35314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the removal of the STA. Default is 30 minutes. 35324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 35344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 35354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_meshconf_params { 35364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MESHCONF_INVALID, 35374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_RETRY_TIMEOUT, 35384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_CONFIRM_TIMEOUT, 35394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HOLDING_TIMEOUT, 35404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_MAX_PEER_LINKS, 35414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_MAX_RETRIES, 35424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_TTL, 35434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_AUTO_OPEN_PLINKS, 35444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, 35454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_PATH_REFRESH_TIME, 35464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, 35474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, 35484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, 35494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, 35504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_ROOTMODE, 35514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_ELEMENT_TTL, 35524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_RANN_INTERVAL, 35534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_GATE_ANNOUNCEMENTS, 35544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, 35554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_FORWARDING, 35564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_RSSI_THRESHOLD, 35574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, 35584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HT_OPMODE, 35594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, 35604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_ROOT_INTERVAL, 35614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, 35624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_POWER_MODE, 35634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_AWAKE_WINDOW, 35644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_PLINK_TIMEOUT, 35654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 35664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 35674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MESHCONF_ATTR_AFTER_LAST, 35684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1 35694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 35704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 35714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 35724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mesh_setup_params - mesh setup parameters 35734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Mesh setup parameters. These are used to start/join a mesh and cannot be 35754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * changed while the mesh is active. 35764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MESH_SETUP_INVALID: Internal use 35784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a 35804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * vendor specific path selection algorithm or disable it to use the 35814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * default HWMP. 35824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a 35844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * vendor specific path metric or disable it to use the default Airtime 35854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * metric. 35864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a 35884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * robust security network ie, or a vendor specific information element 35894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that vendors will use to identify the path selection methods and 35904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * metrics in use. 35914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication 35934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * daemon will be authenticating mesh candidates. 35944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 35954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication 35964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * daemon will be securing peer link frames. AMPE is a secured version of 35974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Mesh Peering Management (MPM) and is implemented with the assistance of 35984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a userspace daemon. When this flag is set, the kernel will send peer 35994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management frames to a userspace daemon that will implement AMPE 36004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * functionality (security capabilities selection, key confirmation, and 36014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * key management). When the flag is unset (default), the kernel can 36024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * autonomously complete (unsecured) mesh peering without the need of a 36034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * userspace daemon. 36044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a 36064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * vendor specific synchronization method or disable it to use the default 36074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * neighbor offset synchronization 36084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will 36104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * implement an MPM which handles peer allocation and state. 36114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication 36134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE). 36144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Default is no authentication method required. 36154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number 36174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use 36194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 36204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mesh_setup_params { 36214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MESH_SETUP_INVALID, 36224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL, 36234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC, 36244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_IE, 36254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_USERSPACE_AUTH, 36264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_USERSPACE_AMPE, 36274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, 36284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_USERSPACE_MPM, 36294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_AUTH_PROTOCOL, 36304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 36324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_MESH_SETUP_ATTR_AFTER_LAST, 36334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1 36344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 36354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 36374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_txq_attr - TX queue parameter attributes 36384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved 36394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) 36404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning 36414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * disabled 36424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form 36434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2^n-1 in the range 1..32767] 36444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form 36454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 2^n-1 in the range 1..32767] 36464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255] 36474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal 36484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number 36494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 36504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_txq_attr { 36514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_TXQ_ATTR_INVALID, 36524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_AC, 36534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_TXOP, 36544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_CWMIN, 36554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_CWMAX, 36564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_AIFS, 36574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 36594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_TXQ_ATTR_AFTER_LAST, 36604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 36614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 36624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_ac { 36644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AC_VO, 36654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AC_VI, 36664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AC_BE, 36674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AC_BK, 36684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NUM_ACS 36694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 36704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* backward compat */ 36724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC 36734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXQ_Q_VO NL80211_AC_VO 36744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXQ_Q_VI NL80211_AC_VI 36754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXQ_Q_BE NL80211_AC_BE 36764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXQ_Q_BK NL80211_AC_BK 36774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 36794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_channel_type - channel type 36804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel 36814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_HT20: 20 MHz HT channel 36824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel 36834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * below the control channel 36844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel 36854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * above the control channel 36864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 36874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_channel_type { 36884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_NO_HT, 36894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_HT20, 36904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_HT40MINUS, 36914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_HT40PLUS 36924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 36934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 36944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 36954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_chan_width - channel width definitions 36964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 36974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH 36984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute. 36994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 37004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel 37014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel 37024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 37034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute must be provided as well 37044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 37054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute must be provided as well 37064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 37074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well 37084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1 37094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute must be provided as well 37104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel 37114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel 37124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 37134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_chan_width { 37144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_20_NOHT, 37154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_20, 37164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_40, 37174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_80, 37184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_80P80, 37194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_160, 37204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_5, 37214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CHAN_WIDTH_10, 37224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 37234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 37244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 37254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_bss_scan_width - control channel width for a BSS 37264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 37274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute. 37284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 37294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible 37304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide 37314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide 37324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 37334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_bss_scan_width { 37344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CHAN_WIDTH_20, 37354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CHAN_WIDTH_10, 37364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CHAN_WIDTH_5, 37374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 37384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 37394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 37404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_bss - netlink attributes for a BSS 37414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 37424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BSS_INVALID: invalid 37434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets) 37444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) 37454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) 37464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (if @NL80211_BSS_PRESP_DATA is present then this is known to be 37474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * from a probe response, otherwise it may be from the same beacon 37484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that the NL80211_BSS_BEACON_TSF will be from) 37494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) 37504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16) 37514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the 37524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * raw information elements from the probe response/beacon (bin); 37534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * if the %NL80211_BSS_BEACON_IES attribute is present and the data is 37544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * different then the IEs here are from a Probe Response frame; otherwise 37554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * they are from a Beacon frame. 37564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * However, if the driver does not indicate the source of the IEs, these 37574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * IEs may be from either frame subtype. 37584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the 37594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * data here is known to be from a probe response, without any heuristics. 37604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon 37614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in mBm (100 * dBm) (s32) 37624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon 37634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in unspecified units, scaled to 0..100 (u8) 37644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_STATUS: status, if this BSS is "used" 37654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms 37664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information 37674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * elements from a Beacon frame (bin); not present if no Beacon frame has 37684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * yet been received 37694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel 37704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (u32, enum nl80211_bss_scan_width) 37714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64) 37724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (not present if no beacon frame has been received yet) 37734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and 37744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_TSF is known to be from a probe response (flag attribute) 37754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry 37764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * was last updated by a received frame. The value is expected to be 37774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * accurate to about 10ms. (u64, nanoseconds) 37784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment 37794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_PARENT_TSF: the time at the start of reception of the first 37804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * octet of the timestamp field of the last beacon/probe received for 37814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this BSS. The time is the TSF of the BSS specified by 37824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_PARENT_BSSID. (u64). 37834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_PARENT_BSSID: the BSS according to which @NL80211_BSS_PARENT_TSF 37844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is set. 37854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_CHAIN_SIGNAL: per-chain signal strength of last BSS update. 37864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Contains a nested array of signal strength attributes (u8, dBm), 37874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using the nesting index as the antenna number. 37884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BSS_AFTER_LAST: internal 37894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_MAX: highest BSS attribute 37904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 37914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_bss { 37924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BSS_INVALID, 37934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_BSSID, 37944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_FREQUENCY, 37954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_TSF, 37964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_BEACON_INTERVAL, 37974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CAPABILITY, 37984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_INFORMATION_ELEMENTS, 37994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SIGNAL_MBM, 38004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SIGNAL_UNSPEC, 38014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_STATUS, 38024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SEEN_MS_AGO, 38034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_BEACON_IES, 38044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CHAN_WIDTH, 38054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_BEACON_TSF, 38064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_PRESP_DATA, 38074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_LAST_SEEN_BOOTTIME, 38084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_PAD, 38094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_PARENT_TSF, 38104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_PARENT_BSSID, 38114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_CHAIN_SIGNAL, 38124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 38144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BSS_AFTER_LAST, 38154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1 38164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 38194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_bss_status - BSS "status" 38204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS. 38214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note that this is no longer used since cfg80211 no longer 38224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * keeps track of whether or not authentication was done with 38234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a given BSS. 38244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS. 38254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS. 38264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 38274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The BSS status is a BSS attribute in scan dumps, which 38284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * indicates the status the interface has wrt. this BSS. 38294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 38304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_bss_status { 38314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_STATUS_AUTHENTICATED, 38324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_STATUS_ASSOCIATED, 38334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_STATUS_IBSS_JOINED, 38344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 38374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_auth_type - AuthenticationType 38384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 38394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication 38404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only) 38414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r) 38424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP) 38434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals 38444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_FILS_SK: Fast Initial Link Setup shared key 38454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_FILS_SK_PFS: Fast Initial Link Setup shared key with PFS 38464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_FILS_PK: Fast Initial Link Setup public key 38474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_AUTHTYPE_NUM: internal 38484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm 38494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by 38504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * trying multiple times); this is invalid in netlink -- leave out 38514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the attribute for this on CONNECT commands. 38524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 38534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_auth_type { 38544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_OPEN_SYSTEM, 38554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_SHARED_KEY, 38564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_FT, 38574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_NETWORK_EAP, 38584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_SAE, 38594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_FILS_SK, 38604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_FILS_SK_PFS, 38614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_FILS_PK, 38624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 38644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_AUTHTYPE_NUM, 38654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1, 38664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_AUTHTYPE_AUTOMATIC 38674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 38704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_key_type - Key Type 38714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key 38724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key 38734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS) 38744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_KEYTYPES: number of defined key types 38754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 38764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_key_type { 38774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEYTYPE_GROUP, 38784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEYTYPE_PAIRWISE, 38794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEYTYPE_PEERKEY, 38804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_KEYTYPES 38824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 38854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_mfp - Management frame protection state 38864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MFP_NO: Management frame protection not used 38874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_MFP_REQUIRED: Management frame protection required 38884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 38894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_mfp { 38904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MFP_NO, 38914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_MFP_REQUIRED, 38924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_wpa_versions { 38954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WPA_VERSION_1 = 1 << 0, 38964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WPA_VERSION_2 = 1 << 1, 38974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 38984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 38994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 39004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_key_default_types - key default types 39014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid 39024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default 39034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * unicast key 39044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default 39054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * multicast key 39064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types 39074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 39084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_key_default_types { 39094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_KEY_DEFAULT_TYPE_INVALID, 39104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DEFAULT_TYPE_UNICAST, 39114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DEFAULT_TYPE_MULTICAST, 39124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_KEY_DEFAULT_TYPES 39144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 39154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 39174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_key_attributes - key attributes 39184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_KEY_INVALID: invalid 39194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of 39204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC 39214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * keys 39224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_IDX: key ID (u8, 0-3) 39234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11 39244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * section 7.3.2.25.1, e.g. 0x000FAC04) 39254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and 39264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * CCMP keys, each six bytes in little endian 39274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DEFAULT: flag indicating default key 39284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key 39294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not 39304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified the default depends on whether a MAC address was 39314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * given with the command using the key or not (u32) 39324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags 39334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attributes, specifying what a key should be set as default as. 39344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_key_default_types. 39354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_KEY_AFTER_LAST: internal 39364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_KEY_MAX: highest key attribute 39374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 39384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_key_attributes { 39394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_KEY_INVALID, 39404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DATA, 39414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_IDX, 39424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_CIPHER, 39434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_SEQ, 39444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DEFAULT, 39454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DEFAULT_MGMT, 39464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_TYPE, 39474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_DEFAULT_TYPES, 39484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 39504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_KEY_AFTER_LAST, 39514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1 39524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 39534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 39554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_tx_rate_attributes - TX rate set attributes 39564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_TXRATE_INVALID: invalid 39574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection 39584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with 39594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 1 = 500 kbps) but without the IE length restriction (at most 39604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_MAX_SUPP_RATES in a single array). 39614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection 39624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in an array of MCS numbers. 39634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, 39644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * see &struct nl80211_txrate_vht 39654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi 39664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_TXRATE_AFTER_LAST: internal 39674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TXRATE_MAX: highest TX rate attribute 39684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 39694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_tx_rate_attributes { 39704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_TXRATE_INVALID, 39714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_LEGACY, 39724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_HT, 39734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_VHT, 39744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_GI, 39754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 39774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_TXRATE_AFTER_LAST, 39784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1 39794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 39804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_TXRATE_MCS NL80211_TXRATE_HT 39824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_VHT_NSS_MAX 8 39834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 39854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap 39864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.) 39874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 39884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_txrate_vht { 39894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u16 mcs[NL80211_VHT_NSS_MAX]; 39904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 39914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_txrate_gi { 39934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_DEFAULT_GI, 39944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_FORCE_SGI, 39954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TXRATE_FORCE_LGI, 39964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 39974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 39984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 39994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_band - Frequency band 40004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_2GHZ: 2.4 GHz ISM band 40014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz) 40024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz) 40034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace 40044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * since newer kernel versions may support more bands 40054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 40064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_band { 40074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_2GHZ, 40084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_5GHZ, 40094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BAND_60GHZ, 40104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_BANDS, 40124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 40134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 40154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_ps_state - powersave state 40164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PS_DISABLED: powersave is disabled 40174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PS_ENABLED: powersave is enabled 40184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 40194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_ps_state { 40204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PS_DISABLED, 40214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PS_ENABLED, 40224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 40234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 40254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_attr_cqm - connection quality monitor attributes 40264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_ATTR_CQM_INVALID: invalid 40274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies 40284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the threshold for the RSSI level at which an event will be sent. Zero 40294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to disable. 40304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies 40314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the minimum amount the RSSI level must change after an event before a 40324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * new event may be issued (to reduce effects of RSSI oscillation). 40334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event 40344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many 40354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * consecutive packets were not acknowledged by the peer 40364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures 40374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * during the given %NL80211_ATTR_CQM_TXE_INTVL before an 40384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and 40394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CQM_TXE_PKTS is generated. 40404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given 40414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is 40424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * checked. 40434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic 40444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interval in which %NL80211_ATTR_CQM_TXE_PKTS and 40454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an 40464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting. 40474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon 40484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * loss event 40494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_ATTR_CQM_AFTER_LAST: internal 40504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_CQM_MAX: highest key attribute 40514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 40524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_attr_cqm { 40534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_ATTR_CQM_INVALID, 40544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_RSSI_THOLD, 40554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_RSSI_HYST, 40564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, 40574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_PKT_LOSS_EVENT, 40584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_TXE_RATE, 40594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_TXE_PKTS, 40604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_TXE_INTVL, 40614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_BEACON_LOSS_EVENT, 40624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 40644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_ATTR_CQM_AFTER_LAST, 40654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1 40664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 40674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 40694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event 40704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the 40714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configured threshold 40724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the 40734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configured threshold 40744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent) 40754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 40764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_cqm_rssi_threshold_event { 40774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW, 40784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH, 40794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CQM_RSSI_BEACON_LOSS_EVENT, 40804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 40814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 40844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_tx_power_setting - TX power adjustment 40854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power 40864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter 40874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter 40884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 40894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_tx_power_setting { 40904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TX_POWER_AUTOMATIC, 40914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TX_POWER_LIMITED, 40924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TX_POWER_FIXED, 40934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 40944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 40954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 40964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_packet_pattern_attr - packet pattern attribute 40974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute 40984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has 40994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a zero bit are ignored 41004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have 41014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a bit for each byte in the pattern. The lowest-order bit corresponds 41024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the first byte of the pattern, but the bytes of the pattern are 41034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in a little-endian-like format, i.e. the 9th byte of the pattern 41044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * corresponds to the lowest-order bit in the second byte of the mask. 41054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where 41064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * xx indicates "don't care") would be represented by a pattern of 41074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * twelve zero bytes, and a mask of "0xed,0x01". 41084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note that the pattern matching is done as though frames were not 41094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked 41104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * first (including SNAP header unpacking) and then matched. 41114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after 41124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * these fixed number of bytes of received packet 41134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_PKTPAT: number of attributes 41144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_PKTPAT: max attribute number 41154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 41164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_packet_pattern_attr { 41174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_PKTPAT_INVALID, 41184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PKTPAT_MASK, 41194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PKTPAT_PATTERN, 41204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PKTPAT_OFFSET, 41214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 41224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_PKTPAT, 41234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1, 41244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 41254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 41264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 41274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_pattern_support - packet pattern support information 41284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_patterns: maximum number of patterns supported 41294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @min_pattern_len: minimum length of each pattern 41304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_pattern_len: maximum length of each pattern 41314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_pkt_offset: maximum Rx packet offset 41324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 41334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when 41344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in 41354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of 41364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_COALESCE_RULE in the capability information given 41374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by the kernel to userspace. 41384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 41394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_pattern_support { 41404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 max_patterns; 41414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 min_pattern_len; 41424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 max_pattern_len; 41434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 max_pkt_offset; 41444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius} __attribute__((packed)); 41454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 41464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* only for backward compatibility */ 41474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID 41484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK 41494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN 41504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET 41514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT 41524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT 41534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define nl80211_wowlan_pattern_support nl80211_pattern_support 41544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 41554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 41564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_wowlan_triggers - WoWLAN trigger definitions 41574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes 41584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put 41594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the chip into a special state -- works best with chips that have 41604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * support for low-power operation already (flag) 41614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note that this mode is incompatible with all of the others, if 41624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * any others are even supported by the device. 41634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect 41644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is detected is implementation-specific (flag) 41654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed 41664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by 16 repetitions of MAC addr, anywhere in payload) (flag) 41674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns 41684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * which are passed in an array of nested attributes, each nested attribute 41694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern. 41704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each pattern defines a wakeup packet. Packet offset is associated with 41714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * each pattern which is used while matching the pattern. The matching is 41724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the 41734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * pattern matching is done after the packet is converted to the MSDU. 41744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 41754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute 41764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * carrying a &struct nl80211_pattern_support. 41774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 41784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When reporting wakeup. it is a u32 attribute containing the 0-based 41794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * index of the pattern that caused the wakeup, in the patterns passed 41804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the kernel when configuring. 41814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be 41824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * used when setting, used only to indicate that GTK rekeying is supported 41834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * by the device (flag) 41844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if 41854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * done by the device) (flag) 41864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request 41874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packet (flag) 41884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag) 41894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released 41904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (on devices that have rfkill in the device) (flag) 41914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains 41924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame 41934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN 41944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute contains the original length. 41954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11 41964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 41974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute if the packet was truncated somewhere. 41984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the 41994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 802.11 packet that caused the wakeup, e.g. a magic packet. The frame may 42004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute 42014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * contains the original length. 42024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3 42034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 42044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute if the packet was truncated somewhere. 42054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section 42064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * "TCP connection wakeup" for more details. This is a nested attribute 42074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing the exact information for establishing and keeping alive 42084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the TCP connection. 42094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the 42104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wakeup packet was received on the TCP connection 42114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the 42124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TCP connection was lost or failed to be established 42134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only, 42144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the TCP connection ran out of tokens to use for data to send to the 42154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * service 42164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network 42174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is detected. This is a nested attribute that contains the 42184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * same attributes used with @NL80211_CMD_START_SCHED_SCAN. It 42194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specifies how the scan is performed (e.g. the interval, the 42204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channels to scan and the initial delay) as well as the scan 42214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * results that will trigger a wake (i.e. the matchsets). This 42224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute is also sent in a response to 42234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CMD_GET_WIPHY, indicating the number of match sets 42244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported by the driver (u32). 42254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute 42264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * containing an array with information about what triggered the 42274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wake up. If no elements are present in the array, it means 42284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that the information is not available. If more than one 42294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * element is present, it means that more than one match 42304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * occurred. 42314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each element in the array is a nested attribute that contains 42324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * one optional %NL80211_ATTR_SSID attribute and one optional 42334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SCAN_FREQUENCIES attribute. At least one of 42344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * these attributes must be present. If 42354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one 42364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * frequency, it means that the match occurred in more than one 42374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel. 42384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers 42394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number 42404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 42414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * These nested attributes are used to configure the wakeup triggers and 42424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to report the wakeup reason(s). 42434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 42444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_wowlan_triggers { 42454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_WOWLAN_TRIG_INVALID, 42464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_ANY, 42474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_DISCONNECT, 42484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_MAGIC_PKT, 42494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_PKT_PATTERN, 42504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED, 42514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE, 42524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST, 42534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE, 42544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_RFKILL_RELEASE, 42554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211, 42564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN, 42574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023, 42584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN, 42594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_TCP_CONNECTION, 42604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH, 42614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST, 42624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, 42634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_NET_DETECT, 42644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS, 42654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 42664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 42674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_WOWLAN_TRIG, 42684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1 42694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 42704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 42714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 42724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * DOC: TCP connection wakeup 42734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 42744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Some devices can establish a TCP connection in order to be woken up by a 42754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packet coming in from outside their network segment, or behind NAT. If 42764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configured, the device will establish a TCP connection to the given 42774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * service, and periodically send data to that service. The first data 42784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK. 42794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The data packets can optionally include a (little endian) sequence 42804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * number (in the TCP payload!) that is generated by the device, and, also 42814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * optionally, a token from a list of tokens. This serves as a keep-alive 42824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with the service, and for NATed connections, etc. 42834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 42844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * During this keep-alive period, the server doesn't send any data to the 42854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * client. When receiving data, it is compared against the wakeup pattern 42864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (and mask) and if it matches, the host is woken up. Similarly, if the 42874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * connection breaks or cannot be established to start with, the host is 42884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * also woken up. 42894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 42904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Developer's note: ARP offload is required for this, otherwise TCP 42914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * response packets might not go through correctly. 42924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 42934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 42944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 42954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence 42964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @start: starting value 42974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @offset: offset of sequence number in packet 42984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @len: length of the sequence value to write, 1 through 4 42994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 43004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note: don't confuse with the TCP sequence number(s), this is for the 43014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * keepalive packet payload. The actual value is written into the packet 43024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in little endian. 43034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 43044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_wowlan_tcp_data_seq { 43054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 start, offset, len; 43064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 43074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 43094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config 43104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @offset: offset of token in packet 43114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @len: length of each token 43124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @token_stream: stream of data to be used for the tokens, the length must 43134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be a multiple of @len for this to make sense 43144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 43154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_wowlan_tcp_data_token { 43164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 offset, len; 43174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u8 token_stream[]; 43184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 43194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 43214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_wowlan_tcp_data_token_feature - data token features 43224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @min_len: minimum token length 43234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_len: maximum token length 43244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @bufsize: total available token buffer size (max size of @token_stream) 43254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 43264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_wowlan_tcp_data_token_feature { 43274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 min_len, max_len, bufsize; 43284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 43294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 43314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters 43324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes 43334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order) 43344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address 43354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (in network byte order) 43364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because 43374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * route lookup when configured might be invalid by the time we suspend, 43384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and doing a route lookup when suspending is no longer possible as it 43394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * might require ARP querying. 43404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a 43414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * socket and port will be allocated 43424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16) 43434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte. 43444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * For feature advertising, a u32 attribute holding the maximum length 43454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of the data payload. 43464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration 43474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature 43484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * advertising it is just a flag 43494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration, 43504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * see &struct nl80211_wowlan_tcp_data_token and for advertising see 43514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &struct nl80211_wowlan_tcp_data_token_feature. 43524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum 43534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interval in feature advertising (u32) 43544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a 43554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * u32 attribute holding the maximum length 43564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for 43574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * feature advertising. The mask works like @NL80211_PKTPAT_MASK 43584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * but on the TCP payload only. 43594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes 43604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_WOWLAN_TCP: highest attribute number 43614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 43624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_wowlan_tcp_attrs { 43634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_WOWLAN_TCP_INVALID, 43644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_SRC_IPV4, 43654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DST_IPV4, 43664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DST_MAC, 43674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_SRC_PORT, 43684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DST_PORT, 43694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DATA_PAYLOAD, 43704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, 43714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, 43724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_DATA_INTERVAL, 43734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_WAKE_PAYLOAD, 43744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_WOWLAN_TCP_WAKE_MASK, 43754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 43774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_WOWLAN_TCP, 43784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1 43794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 43804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 43824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_coalesce_rule_support - coalesce rule support information 43834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_rules: maximum number of rules supported 43844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @pat: packet pattern support information 43854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @max_delay: maximum supported coalescing delay in msecs 43864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 43874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the 43884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * capability information given by the kernel to userspace. 43894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 43904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_coalesce_rule_support { 43914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 max_rules; 43924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius struct nl80211_pattern_support pat; 43934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 max_delay; 43944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius} __attribute__((packed)); 43954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 43964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 43974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_attr_coalesce_rule - coalesce rule attribute 43984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute 43994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing 44004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence, 44014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * see &enum nl80211_coalesce_condition. 44024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched 44034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * after these fixed number of bytes of received packet 44044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes 44054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number 44064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 44074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_attr_coalesce_rule { 44084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_COALESCE_RULE_INVALID, 44094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COALESCE_RULE_DELAY, 44104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COALESCE_RULE_CONDITION, 44114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COALESCE_RULE_PKT_PATTERN, 44124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 44134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 44144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_ATTR_COALESCE_RULE, 44154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1 44164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 44174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 44184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 44194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_coalesce_condition - coalesce rule conditions 44204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns 44214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in a rule are matched. 44224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns 44234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in a rule are not matched. 44244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 44254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_coalesce_condition { 44264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_COALESCE_CONDITION_MATCH, 44274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_COALESCE_CONDITION_NO_MATCH 44284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 44294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 44304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 44314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_iface_limit_attrs - limit attributes 44324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_LIMIT_UNSPEC: (reserved) 44334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that 44344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * can be chosen from this set of interface types (u32) 44354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a 44364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * flag attribute for each interface type in this set 44374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_IFACE_LIMIT: number of attributes 44384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_IFACE_LIMIT: highest attribute number 44394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 44404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_iface_limit_attrs { 44414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_LIMIT_UNSPEC, 44424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_LIMIT_MAX, 44434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_LIMIT_TYPES, 44444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 44454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 44464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_IFACE_LIMIT, 44474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1 44484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 44494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 44504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 44514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_if_combination_attrs -- interface combination attributes 44524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_UNSPEC: (reserved) 44544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits 44554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for given interface types, see &enum nl80211_iface_limit_attrs. 44564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of 44574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interfaces that can be created in this group. This number doesn't 44584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * apply to interfaces purely managed in software, which are listed 44594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE. 44604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that 44614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * beacon intervals within this group must be all the same even for 44624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * infrastructure and AP/GO combinations, i.e. the GO(s) must adopt 44634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the infrastructure network's beacon interval. 44644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many 44654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * different channels may be used within this group. 44664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap 44674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of supported channel widths for radar detection. 44684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap 44694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of supported regulatory regions for radar detection. 44704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_IFACE_COMB_BI_MIN_GCD: u32 attribute specifying the minimum GCD of 44714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * different beacon intervals supported by all the interface combinations 44724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in this group (if not present, all beacon intervals be identical). 44734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_IFACE_COMB: number of attributes 44744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_IFACE_COMB: highest attribute number 44754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Examples: 44774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2 44784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * => allows an AP and a STA that must match BIs 44794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * numbers = [ #{AP, P2P-GO} <= 8 ], BI min gcd, channels = 1, max = 8, 44814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * => allows 8 of AP/GO that can have BI gcd >= min gcd 44824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * numbers = [ #{STA} <= 2 ], channels = 2, max = 2 44844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * => allows two STAs on different channels 44854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4 44874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * => allows a STA plus three P2P interfaces 44884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The list of these four possiblities could completely be contained 44904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate 44914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that any of these groups must match. 44924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 44934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * "Combinations" of just a single interface will not be listed here, 44944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a single interface of any valid interface type is assumed to always 44954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be possible by itself. This means that implicitly, for each valid 44964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface type, the following group always exists: 44974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * numbers = [ #{<type>} <= 1 ], channels = 1, max = 1 44984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 44994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_if_combination_attrs { 45004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_UNSPEC, 45014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_LIMITS, 45024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_MAXNUM, 45034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_STA_AP_BI_MATCH, 45044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_NUM_CHANNELS, 45054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, 45064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, 45074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_IFACE_COMB_BI_MIN_GCD, 45084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 45104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_IFACE_COMB, 45114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1 45124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 45134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 45164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_plink_state - state of a mesh peer link finite state machine 45174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 45184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_LISTEN: initial state, considered the implicit 45194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * state of non existant mesh peer links 45204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to 45214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this mesh peer 45224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received 45234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * from this mesh peer 45244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been 45254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * received from this mesh peer 45264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_ESTAB: mesh peer link is established 45274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled 45284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh 45294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * plink are discarded 45304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_PLINK_STATES: number of peer link states 45314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states 45324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 45334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_plink_state { 45344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_LISTEN, 45354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_OPN_SNT, 45364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_OPN_RCVD, 45374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_CNF_RCVD, 45384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_ESTAB, 45394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_HOLDING, 45404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_BLOCKED, 45414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 45434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_PLINK_STATES, 45444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1 45454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 45464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 45484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_plink_action - actions to perform in mesh peers 45494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 45504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_ACTION_NO_ACTION: perform no action 45514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment 45524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer 45534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_PLINK_ACTIONS: number of possible actions 45544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 45554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum plink_actions { 45564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_ACTION_NO_ACTION, 45574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_ACTION_OPEN, 45584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PLINK_ACTION_BLOCK, 45594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_PLINK_ACTIONS, 45614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 45624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_KCK_LEN 16 45654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_KEK_LEN 16 45664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_REPLAY_CTR_LEN 8 45674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 45694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_rekey_data - attributes for GTK rekey offload 45704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes 45714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REKEY_DATA_KEK: key encryption key (binary) 45724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REKEY_DATA_KCK: key confirmation key (binary) 45734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary) 45744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal) 45754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal) 45764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 45774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_rekey_data { 45784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_REKEY_DATA_INVALID, 45794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REKEY_DATA_KEK, 45804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REKEY_DATA_KCK, 45814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_REKEY_DATA_REPLAY_CTR, 45824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 45844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_REKEY_DATA, 45854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1 45864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 45874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 45884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 45894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID 45904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in 45914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Beacon frames) 45924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element 45934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in Beacon frames 45944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID 45954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * element in Beacon frames but zero out each byte in the SSID 45964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 45974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_hidden_ssid { 45984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_HIDDEN_SSID_NOT_IN_USE, 45994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_HIDDEN_SSID_ZERO_LEN, 46004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_HIDDEN_SSID_ZERO_CONTENTS 46014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 46024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 46044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sta_wme_attr - station WME attributes 46054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_WME_INVALID: invalid number for nested attribute 46064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format 46074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is the same as the AC bitmap in the QoS info field. 46084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_WME_MAX_SP: max service period. the format is the same 46094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as the MAX_SP field in the QoS info field (but already shifted down). 46104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_STA_WME_AFTER_LAST: internal 46114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_STA_WME_MAX: highest station WME attribute 46124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 46134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sta_wme_attr { 46144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_WME_INVALID, 46154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_WME_UAPSD_QUEUES, 46164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_WME_MAX_SP, 46174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 46194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_STA_WME_AFTER_LAST, 46204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1 46214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 46224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 46244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates 46254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes 46264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher 46274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * priority) 46284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets) 46294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag) 46304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes 46314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (internal) 46324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute 46334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (internal) 46344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 46354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_pmksa_candidate_attr { 46364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_PMKSA_CANDIDATE_INVALID, 46374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PMKSA_CANDIDATE_INDEX, 46384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PMKSA_CANDIDATE_BSSID, 46394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PMKSA_CANDIDATE_PREAUTH, 46404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 46424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_PMKSA_CANDIDATE, 46434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1 46444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 46454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 46474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION 46484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request 46494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_SETUP: Setup TDLS link 46504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established 46514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link 46524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link 46534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 46544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_tdls_operation { 46554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_DISCOVERY_REQ, 46564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_SETUP, 46574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_TEARDOWN, 46584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_ENABLE_LINK, 46594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_DISABLE_LINK, 46604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 46614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 46634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_ap_sme_features - device-integrated AP features 46644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Reserved for future use, no bits are defined in 46654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_ATTR_DEVICE_AP_SME yet. 46664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_ap_sme_features { 46674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 46684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 46694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 46704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 46714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_feature_flags - device/driver features 46724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back 46734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TX status to the socket error queue when requested with the 46744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * socket option. 46754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. 46764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up 46774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the connected inactive stations in AP mode. 46784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested 46794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to work properly to suppport receiving regulatory hints from 46804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * cellular base stations. 46814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only 46824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * here to reserve the value for API/ABI compatibility) 46834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of 46844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station 46854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * mode 46864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan 46874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported 46884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif 46894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting 46904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform 46914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * OBSS scans and generate 20/40 BSS coex reports. This flag is used only 46924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied. 46934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window 46944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * setting 46954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic 46964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * powersave 46974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state 46984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * transitions for AP clients. Without this flag (and if the driver 46994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * doesn't have the AP SME in the device) the driver supports adding 47004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * stations only when they're associated and adds them in associated 47014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * state (to later be transitioned into authorized), with this flag 47024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * they should be added before even sending the authentication reply 47034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and then transitioned into authenticated, associated and authorized 47044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * states using station flags. 47054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Note that even for drivers that support this, the default is to add 47064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * stations in authenticated/associated state, so to add unauthenticated 47074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * stations the authenticated/associated bits have to be set in the mask. 47084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits 47094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (HT40, VHT 80/160 MHz) if this flag is set 47104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh 47114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Peering Management entity which may be implemented by registering for 47124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is 47134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * still generated by the driver. 47144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor 47154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface. An active monitor interface behaves like a normal monitor 47164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * interface, but gets added to the driver. It ensures that incoming 47174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * unicast packets directed at the configured interface address get ACKed. 47184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic 47194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the 47204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * lifetime of a BSS. 47214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter 47224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Set IE to probe requests. 47234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE 47244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to probe requests. 47254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period 47264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requests sent to it by an AP. 47274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the 47284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * current tx power value into the TPC Report IE in the spectrum 47294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * management TPC Report action frame, and in the Radio Measurement Link 47304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Measurement Report action frame. 47314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout 47324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used 47334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to enable dynack. 47344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial 47354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * multiplexing powersave, ie. can turn off all but one chain 47364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * even on HT connections that should be using more chains. 47374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial 47384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * multiplexing powersave, ie. can turn off all but one chain 47394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and then wake the rest up as required after, for example, 47404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * rts/cts handshake. 47414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM 47424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS 47434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it 47444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * needs to be able to handle Block-Ack agreements and other things. 47454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring 47464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the vif's MAC address upon creation. 47474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See 'macaddr' field in the vif_params (cfg80211.h). 47484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when 47494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * operating as a TDLS peer. 47504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a 47514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * random MAC address during scan (if the device is unassociated); the 47524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC 47534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * address mask/value will be used. 47544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports 47554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * using a random MAC address for every scan iteration during scheduled 47564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may 47574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be set for scheduled scan and the MAC address mask/value will be used. 47584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a 47594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * random MAC address for every scan iteration during "net detect", i.e. 47604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may 47614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be set for scheduled scan and the MAC address mask/value will be used. 47624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 47634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_feature_flags { 47644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SK_TX_STATUS = 1 << 0, 47654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_HT_IBSS = 1 << 1, 47664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, 47674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3, 47684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4, 47694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SAE = 1 << 5, 47704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6, 47714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SCAN_FLUSH = 1 << 7, 47724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_AP_SCAN = 1 << 8, 47734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_VIF_TXPOWER = 1 << 9, 47744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10, 47754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11, 47764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12, 47774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* bit 13 is reserved */ 47784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14, 47794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15, 47804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_USERSPACE_MPM = 1 << 16, 47814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17, 47824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18, 47834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19, 47844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20, 47854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_QUIET = 1 << 21, 47864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22, 47874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23, 47884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_STATIC_SMPS = 1 << 24, 47894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25, 47904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26, 47914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_MAC_ON_CREATE = 1 << 27, 47924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 1 << 28, 47934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 1 << 29, 47944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1 << 30, 47954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1 << 31, 47964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 47974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 47984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 47994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_ext_feature_index - bit index of extended features. 48004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates. 48014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_RRM: This driver supports RRM. When featured, user can 48024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * can request to use RRM (see %NL80211_ATTR_USE_RRM) with 48034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set 48044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the ASSOC_REQ_USE_RRM flag in the association request even if 48054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_FEATURE_QUIET is not advertized. 48064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air 48074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * sniffer which means that it can be configured to hear packets from 48084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * certain groups which can be configured by the 48094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MU_MIMO_GROUP_DATA attribute, 48104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * or can be configured to follow a station by configuring the 48114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR attribute. 48124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_SCAN_START_TIME: This driver includes the actual 48134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * time the scan started in scan results event. The time is the TSF of 48144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the BSS that the interface that requested the scan is connected to 48154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (if available). 48164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the 48174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * time the last beacon/probe was received. The time is the TSF of the 48184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS that the interface that requested the scan is connected to 48194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (if available). 48204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of 48214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * channel dwell time. 48224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate 48234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate. 48244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate 48254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configuration (AP/mesh) with HT rates. 48264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate 48274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * configuration (AP/mesh) with VHT rates. 48284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup 48294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode. 48304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA 48314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in @NL80211_CMD_FRAME while not associated. 48324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports 48334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * randomized TA in @NL80211_CMD_FRAME while associated. 48344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI: The driver supports sched_scan 48354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for reporting BSSs with better RSSI than the current connected BSS 48364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * (%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI). 48374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_CQM_RSSI_LIST: With this driver the 48384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_CQM_RSSI_THOLD attribute accepts a list of zero or more 48394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * RSSI threshold values to monitor rather than exactly one threshold. 48404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD: Driver SME supports FILS shared key 48414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * authentication with %NL80211_CMD_CONNECT. 48424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK: Device wants to do 4-way 48434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * handshake with PSK in station mode (PSK is passed as part of the connect 48444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and associate commands), doing it in the host might not be supported. 48454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X: Device wants to do doing 4-way 48464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * handshake with 802.1X in station mode (will pass EAP frames to the host 48474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and accept the set_pmk/del_pmk commands), doing it in the host might not 48484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be supported. 48494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME: Driver is capable of overriding 48504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the max channel attribute in the FILS request params IE with the 48514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * actual dwell time. 48524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP: Driver accepts broadcast probe 48534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * response 48544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE: Driver supports sending 48554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the first probe request in each channel at rate of at least 5.5Mbps. 48564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports 48574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * probe request tx deferral and suppression 48584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_MFP_OPTIONAL: Driver supports the %NL80211_MFP_OPTIONAL 48594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * value in %NL80211_ATTR_USE_MFP. 48604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_LOW_SPAN_SCAN: Driver supports low span scan. 48614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_LOW_POWER_SCAN: Driver supports low power scan. 48624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN: Driver supports high accuracy scan. 48634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 48644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_EXT_FEATURES: number of extended features. 48654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @MAX_NL80211_EXT_FEATURES: highest extended feature index. 48664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 48674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_ext_feature_index { 48684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_VHT_IBSS, 48694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_RRM, 48704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER, 48714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_SCAN_START_TIME, 48724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_BSS_PARENT_TSF, 48734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_SET_SCAN_DWELL, 48744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_BEACON_RATE_LEGACY, 48754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_BEACON_RATE_HT, 48764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_BEACON_RATE_VHT, 48774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_FILS_STA, 48784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA, 48794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED, 48804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI, 48814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_CQM_RSSI_LIST, 48824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_FILS_SK_OFFLOAD, 48834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK, 48844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X, 48854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME, 48864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP, 48874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE, 48884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION, 48894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_MFP_OPTIONAL, 48904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_LOW_SPAN_SCAN, 48914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_LOW_POWER_SCAN, 48924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN, 48934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 48944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* add new features before the definition below */ 48954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_EXT_FEATURES, 48964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1 48974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 48984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 48994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 49004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_probe_resp_offload_support_attr - optional supported 49014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * protocols for probe-response offloading by the driver/FW. 49024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute. 49034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Each enum value represents a bit in the bitmap of supported 49044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * protocols. Typically a subset of probe-requests belonging to a 49054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * supported protocol will be excluded from offload and uploaded 49064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to the host. 49074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 49084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1 49094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2 49104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P 49114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u 49124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 49134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_probe_resp_offload_support_attr { 49144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0, 49154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1, 49164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2, 49174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3, 49184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 49194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 49204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 49214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_connect_failed_reason - connection request failed reasons 49224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be 49234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * handled by the AP is reached. 49244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL. 49254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 49264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_connect_failed_reason { 49274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CONN_FAIL_MAX_CLIENTS, 49284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CONN_FAIL_BLOCKED_CLIENT, 49294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 49304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 49314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 49324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_timeout_reason - timeout reasons 49334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 49344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified. 49354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out. 49364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TIMEOUT_AUTH: Authentication timed out. 49374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TIMEOUT_ASSOC: Association timed out. 49384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 49394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_timeout_reason { 49404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TIMEOUT_UNSPECIFIED, 49414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TIMEOUT_SCAN, 49424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TIMEOUT_AUTH, 49434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TIMEOUT_ASSOC, 49444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 49454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 49464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 49474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_scan_flags - scan request control flags 49484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 49494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Scan request control flags are used to control the handling 49504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN 49514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * requests. 49524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 49534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_SCAN_FLAG_LOW_SPAN, NL80211_SCAN_FLAG_LOW_POWER, and 49544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * NL80211_SCAN_FLAG_HIGH_ACCURACY flags are exclusive of each other, i.e., only 49554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * one of them can be used in the request. 49564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 49574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority 49584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning 49594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured 49604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * as AP and the beaconing has already been configured. This attribute is 49614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * dangerous because will destroy stations performance as a lot of frames 49624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * will be lost while scanning off-channel, therefore it must be used only 49634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * when really needed 49644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or 49654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for scheduled scan: a different one for every scan iteration). When the 49664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * flag is set, depending on device capabilities the @NL80211_ATTR_MAC and 49674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ATTR_MAC_MASK attributes may also be given in which case only 49684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the masked bits will be preserved from the MAC address and the remainder 49694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * randomised. If the attributes are not given full randomisation (46 bits, 49704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * locally administered 1, multicast 0) is assumed. 49714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This flag must not be requested when the feature isn't supported, check 49724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the nl80211 feature flags for the device. 49734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * SSID and/or RSSI. 49744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_LOW_SPAN: Span corresponds to the total time taken to 49754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * accomplish the scan. Thus, this flag intends the driver to perform the 49764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scan request with lesser span/duration. It is specific to the driver 49774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * implementations on how this is accomplished. Scan accuracy may get 49784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * impacted with this flag. 49794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_LOW_POWER: This flag intends the scan attempts to consume 49804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * optimal possible power. Drivers can resort to their specific means to 49814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * optimize the power. Scan accuracy may get impacted with this flag. 49824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCAN_FLAG_HIGH_ACCURACY: Accuracy here intends to the extent of scan 49834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * results obtained. Thus HIGH_ACCURACY scan flag aims to get maximum 49844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * possible scan results. This flag hints the driver to use the best 49854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * possible scan configuration to improve the accuracy in scanning. 49864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Latency and power use may get impacted with this flag. 49874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 49884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_scan_flags { 49894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, 49904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_FLUSH = 1<<1, 49914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_AP = 1<<2, 49924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3, 49934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_LOW_SPAN = 1<<8, 49944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_LOW_POWER = 1<<9, 49954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCAN_FLAG_HIGH_ACCURACY = 1<<10, 49964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 49974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 49984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 49994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_acl_policy - access control policy 50004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Access control policy is applied on a MAC list set by 50024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to 50034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * be used with %NL80211_ATTR_ACL_POLICY. 50044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are 50064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * listed in ACL, i.e. allow all the stations which are not listed 50074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in ACL to authenticate. 50084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed 50094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * in ACL, i.e. deny all the stations which are not listed in ACL. 50104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_acl_policy { 50124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED, 50134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_ACL_POLICY_DENY_UNLESS_LISTED, 50144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 50154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 50174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_smps_mode - SMPS mode 50184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Requested SMPS mode (for AP mode) 50204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SMPS_OFF: SMPS off (use all antennas). 50224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) 50234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and 50244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * turn on other antennas after CTS/RTS). 50254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_smps_mode { 50274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SMPS_OFF, 50284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SMPS_STATIC, 50294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SMPS_DYNAMIC, 50304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SMPS_AFTER_LAST, 50324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1 50334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 50344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 50364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_radar_event - type of radar event for DFS operation 50374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace 50394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * about detected radars or success of the channel available check (CAC) 50404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is 50424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * now unusable. 50434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished, 50444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the channel is now available. 50454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no 50464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * change to the channel status. 50474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is 50484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * over, channel becomes usable. 50494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_radar_event { 50514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RADAR_DETECTED, 50524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RADAR_CAC_FINISHED, 50534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RADAR_CAC_ABORTED, 50544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RADAR_NOP_FINISHED, 50554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 50564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 50584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_dfs_state - DFS states for channels 50594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Channel states used by the DFS code. 50614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_USABLE: The channel can be used, but channel availability 50634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * check (CAC) must be performed before using it for AP or IBSS. 50644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it 50654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is therefore marked as not available. 50664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available. 50674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_dfs_state { 50694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_USABLE, 50704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_UNAVAILABLE, 50714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_DFS_AVAILABLE, 50724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 50734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 50754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum enum nl80211_protocol_features - nl80211 protocol features 50764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting 50774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wiphy dumps (if requested by the application with the attribute 50784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the 50794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or 50804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * %NL80211_ATTR_WDEV. 50814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_protocol_features { 50834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0, 50844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 50854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 50864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 50874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers 50884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 50894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified. 50904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol. 50914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol. 50924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_CRIT_PROTO_APIPA: APIPA protocol. 50934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_CRIT_PROTO: must be kept last. 50944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 50954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_crit_proto_id { 50964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CRIT_PROTO_UNSPEC, 50974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CRIT_PROTO_DHCP, 50984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CRIT_PROTO_EAPOL, 50994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_CRIT_PROTO_APIPA, 51004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* add other protocols before this one */ 51014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_CRIT_PROTO 51024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 51034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* maximum duration for critical protocol measures */ 51054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */ 51064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_rxmgmt_flags - flags for received management frame. 51094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Used by cfg80211_rx_mgmt() 51114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver. 51134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_rxmgmt_flags { 51154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0, 51164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 51174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/* 51194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * If this flag is unset, the lower 24 bits are an OUI, if set 51204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * a Linux nl80211 vendor ID is used (no such IDs are allocated 51214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * yet, so that's not valid so far) 51224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_VENDOR_ID_IS_LINUX 0x80000000 51244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_vendor_cmd_info - vendor command data 51274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the 51284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * value is a 24-bit OUI; if it is set then a separately allocated ID 51294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * may be used, but no such IDs are allocated yet. New IDs should be 51304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * added to this file when needed. 51314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @subcmd: sub-command ID for the command 51324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_vendor_cmd_info { 51344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 vendor_id; 51354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u32 subcmd; 51364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 51374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_tdls_peer_capability - TDLS peer flags. 51404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Used by tdls_mgmt() to determine which conditional elements need 51424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * to be added to TDLS Setup frames. 51434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable. 51454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable. 51464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable. 51474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_tdls_peer_capability { 51494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_PEER_HT = 1<<0, 51504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_PEER_VHT = 1<<1, 51514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_TDLS_PEER_WMM = 1<<2, 51524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 51534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_sched_scan_plan - scanning plan for scheduled scan 51564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SCHED_SCAN_PLAN_INVALID: attribute number 0 is reserved 51574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_PLAN_INTERVAL: interval between scan iterations. In 51584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * seconds (u32). 51594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_PLAN_ITERATIONS: number of scan iterations in this 51604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * scan plan (u32). The last scan plan must not specify this attribute 51614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * because it will run infinitely. A value of zero is invalid as it will 51624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * make the scan plan meaningless. 51634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_SCHED_SCAN_PLAN_MAX: highest scheduled scan plan attribute number 51644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * currently defined 51654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_SCHED_SCAN_PLAN_AFTER_LAST: internal use 51664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_sched_scan_plan { 51684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_PLAN_INVALID, 51694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_PLAN_INTERVAL, 51704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_PLAN_ITERATIONS, 51714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 51734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_PLAN_AFTER_LAST, 51744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_SCHED_SCAN_PLAN_MAX = 51754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_SCHED_SCAN_PLAN_AFTER_LAST - 1 51764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 51774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * struct nl80211_bss_select_rssi_adjust - RSSI adjustment parameters. 51804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @band: band of BSS that must match for RSSI value adjustment. 51824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @delta: value used to adjust the RSSI value of matching BSS. 51834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 51844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusstruct nl80211_bss_select_rssi_adjust { 51854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __u8 band; 51864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __s8 delta; 51874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius} __attribute__((packed)); 51884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 51894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 51904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_bss_select_attr - attributes for bss selection. 51914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 51924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BSS_SELECT_ATTR_INVALID: reserved. 51934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SELECT_ATTR_RSSI: Flag indicating only RSSI-based BSS selection 51944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is requested. 51954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SELECT_ATTR_BAND_PREF: attribute indicating BSS 51964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * selection should be done such that the specified band is preferred. 51974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * When there are multiple BSS-es in the preferred band, the driver 51984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * shall use RSSI-based BSS selection as a second step. The value of 51994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * this attribute is according to &enum nl80211_band (u32). 52004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SELECT_ATTR_RSSI_ADJUST: When present the RSSI level for 52014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * BSS-es in the specified band is to be adjusted before doing 52024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * RSSI-based BSS selection. The attribute value is a packed structure 52034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * value as specified by &struct nl80211_bss_select_rssi_adjust. 52044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_BSS_SELECT_ATTR_MAX: highest bss select attribute number. 52054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_BSS_SELECT_ATTR_AFTER_LAST: internal use. 52064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * One and only one of these attributes are found within %NL80211_ATTR_BSS_SELECT 52084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * for %NL80211_CMD_CONNECT. It specifies the required BSS selection behaviour 52094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * which the driver shall use. 52104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 52114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_bss_select_attr { 52124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BSS_SELECT_ATTR_INVALID, 52134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SELECT_ATTR_RSSI, 52144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SELECT_ATTR_BAND_PREF, 52154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SELECT_ATTR_RSSI_ADJUST, 52164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 52184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_BSS_SELECT_ATTR_AFTER_LAST, 52194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_BSS_SELECT_ATTR_MAX = __NL80211_BSS_SELECT_ATTR_AFTER_LAST - 1 52204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 52214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 52234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_dual_band_conf - NAN dual band configuration 52244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Defines the NAN dual band mode of operation 52264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_BAND_DEFAULT: device default mode 52284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_BAND_2GHZ: 2.4GHz mode 52294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_BAND_5GHZ: 5GHz mode 52304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 52314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_dual_band_conf { 52324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_BAND_DEFAULT = 1 << 0, 52334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_BAND_2GHZ = 1 << 1, 52344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_BAND_5GHZ = 1 << 2, 52354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 52364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 52384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_function_type - NAN function type 52394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Defines the function type of a NAN function 52414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_PUBLISH: function is publish 52434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe 52444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up 52454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 52464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_function_type { 52474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_PUBLISH, 52484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_SUBSCRIBE, 52494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_FOLLOW_UP, 52504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 52524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_NAN_FUNC_TYPE_AFTER_LAST, 52534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_MAX_TYPE = __NL80211_NAN_FUNC_TYPE_AFTER_LAST - 1, 52544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 52554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 52574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_publish_type - NAN publish tx type 52584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Defines how to send publish Service Discovery Frames 52604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SOLICITED_PUBLISH: publish function is solicited 52624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_UNSOLICITED_PUBLISH: publish function is unsolicited 52634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 52644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_publish_type { 52654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SOLICITED_PUBLISH = 1 << 0, 52664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1, 52674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 52684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 52704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_func_term_reason - NAN functions termination reason 52714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Defines termination reasons of a NAN function 52734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 52744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user 52754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout 52764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored 52774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 52784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_func_term_reason { 52794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST, 52804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED, 52814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TERM_REASON_ERROR, 52824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 52834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_NAN_FUNC_SERVICE_ID_LEN 6 52854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff 52864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff 52874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 52884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 52894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_func_attributes - NAN function attributes 52904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_NAN_FUNC_INVALID: invalid 52914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TYPE: &enum nl80211_nan_function_type (u8). 52924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_SERVICE_ID: 6 bytes of the service ID hash as 52934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specified in NAN spec. This is a binary attribute. 52944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_PUBLISH_TYPE: relevant if the function's type is 52954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * publish. Defines the transmission type for the publish Service Discovery 52964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Frame, see &enum nl80211_nan_publish_type. Its type is u8. 52974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_PUBLISH_BCAST: relevant if the function is a solicited 52984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * publish. Should the solicited publish Service Discovery Frame be sent to 52994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * the NAN Broadcast address. This is a flag. 53004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE: relevant if the function's type is 53014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * subscribe. Is the subscribe active. This is a flag. 53024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_FOLLOW_UP_ID: relevant if the function's type is follow up. 53034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The instance ID for the follow up Service Discovery Frame. This is u8. 53044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type 53054a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * is follow up. This is a u8. 53064a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * The requestor instance ID for the follow up Service Discovery Frame. 53074a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the 53084a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * follow up Service Discovery Frame. This is a binary attribute. 53094a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a 53104a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * close range. The range itself (RSSI) is defined by the device. 53114a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is a flag. 53124a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TTL: strictly positive number of DWs this function should 53134a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * stay active. If not present infinite TTL is assumed. This is a u32. 53144a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_SERVICE_INFO: array of bytes describing the service 53154a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * specific info. This is a binary attribute. 53164a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_SRF: Service Receive Filter. This is a nested attribute. 53174a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_nan_srf_attributes. 53184a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_RX_MATCH_FILTER: Receive Matching filter. This is a nested 53194a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute. It is a list of binary values. 53204a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TX_MATCH_FILTER: Transmit Matching filter. This is a 53214a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * nested attribute. It is a list of binary values. 53224a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_INSTANCE_ID: The instance ID of the function. 53234a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * Its type is u8 and it cannot be 0. 53244a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_TERM_REASON: NAN function termination reason. 53254a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_nan_func_term_reason. 53264a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 53274a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_NAN_FUNC_ATTR: internal 53284a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_FUNC_ATTR_MAX: highest NAN function attribute 53294a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 53304a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_func_attributes { 53314a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_NAN_FUNC_INVALID, 53324a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TYPE, 53334a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_SERVICE_ID, 53344a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_PUBLISH_TYPE, 53354a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_PUBLISH_BCAST, 53364a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE, 53374a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_FOLLOW_UP_ID, 53384a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID, 53394a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_FOLLOW_UP_DEST, 53404a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_CLOSE_RANGE, 53414a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TTL, 53424a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_SERVICE_INFO, 53434a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_SRF, 53444a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_RX_MATCH_FILTER, 53454a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TX_MATCH_FILTER, 53464a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_INSTANCE_ID, 53474a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_TERM_REASON, 53484a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 53494a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 53504a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_NAN_FUNC_ATTR, 53514a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_FUNC_ATTR_MAX = NUM_NL80211_NAN_FUNC_ATTR - 1 53524a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 53534a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 53544a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 53554a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_srf_attributes - NAN Service Response filter attributes 53564a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_NAN_SRF_INVALID: invalid 53574a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SRF_INCLUDE: present if the include bit of the SRF set. 53584a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * This is a flag. 53594a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SRF_BF: Bloom Filter. Present if and only if 53604a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &NL80211_NAN_SRF_MAC_ADDRS isn't present. This attribute is binary. 53614a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SRF_BF_IDX: index of the Bloom Filter. Mandatory if 53624a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * &NL80211_NAN_SRF_BF is present. This is a u8. 53634a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SRF_MAC_ADDRS: list of MAC addresses for the SRF. Present if 53644a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * and only if &NL80211_NAN_SRF_BF isn't present. This is a nested 53654a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * attribute. Each nested attribute is a MAC address. 53664a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_NAN_SRF_ATTR: internal 53674a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_SRF_ATTR_MAX: highest NAN SRF attribute 53684a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 53694a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_srf_attributes { 53704a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_NAN_SRF_INVALID, 53714a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SRF_INCLUDE, 53724a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SRF_BF, 53734a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SRF_BF_IDX, 53744a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SRF_MAC_ADDRS, 53754a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 53764a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 53774a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_NAN_SRF_ATTR, 53784a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_SRF_ATTR_MAX = NUM_NL80211_NAN_SRF_ATTR - 1, 53794a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 53804a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 53814a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius/** 53824a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * enum nl80211_nan_match_attributes - NAN match attributes 53834a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @__NL80211_NAN_MATCH_INVALID: invalid 53844a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_MATCH_FUNC_LOCAL: the local function that had the 53854a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * match. This is a nested attribute. 53864a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_nan_func_attributes. 53874a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_MATCH_FUNC_PEER: the peer function 53884a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * that caused the match. This is a nested attribute. 53894a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * See &enum nl80211_nan_func_attributes. 53904a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * 53914a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NUM_NL80211_NAN_MATCH_ATTR: internal 53924a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius * @NL80211_NAN_MATCH_ATTR_MAX: highest NAN match attribute 53934a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius */ 53944a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Piusenum nl80211_nan_match_attributes { 53954a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius __NL80211_NAN_MATCH_INVALID, 53964a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_MATCH_FUNC_LOCAL, 53974a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_MATCH_FUNC_PEER, 53984a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 53994a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius /* keep last */ 54004a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NUM_NL80211_NAN_MATCH_ATTR, 54014a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius NL80211_NAN_MATCH_ATTR_MAX = NUM_NL80211_NAN_MATCH_ATTR - 1 54024a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius}; 54034a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius 54044a10da1c100160f2ab357e108bfd602e4421bdb1Roshan Pius#endif /* __LINUX_NL80211_H */ 5405