developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 1 | From 02fb89a020d0bab2eac528f3d49379b535ebeda2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Wed, 31 Jul 2024 10:42:08 +0800 |
| 4 | Subject: [PATCH 011/126] mtk: hostapd: sync with wireless-next.git |
| 5 | include/uapi/linux/nl80211.h |
| 6 | |
| 7 | This brings in nl80211 definitions as of 2024-07-11. |
| 8 | |
| 9 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 10 | --- |
| 11 | src/drivers/driver_nl80211_event.c | 1 + |
| 12 | src/drivers/nl80211_copy.h | 537 ++++++++++++++++++++--------- |
| 13 | 2 files changed, 370 insertions(+), 168 deletions(-) |
| 14 | |
| 15 | diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c |
| 16 | index 768c72905..1787dbd99 100644 |
| 17 | --- a/src/drivers/driver_nl80211_event.c |
| 18 | +++ b/src/drivers/driver_nl80211_event.c |
| 19 | @@ -186,6 +186,7 @@ static const char * nl80211_command_to_string(enum nl80211_commands cmd) |
| 20 | C2S(NL80211_CMD_REMOVE_LINK_STA) |
| 21 | C2S(NL80211_CMD_SET_HW_TIMESTAMP) |
| 22 | C2S(NL80211_CMD_LINKS_REMOVED) |
| 23 | + C2S(NL80211_CMD_SET_TID_TO_LINK_MAPPING) |
| 24 | C2S(__NL80211_CMD_AFTER_LAST) |
| 25 | } |
| 26 | #undef C2S |
| 27 | diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h |
| 28 | index dced2c49d..f97f5adc8 100644 |
| 29 | --- a/src/drivers/nl80211_copy.h |
| 30 | +++ b/src/drivers/nl80211_copy.h |
| 31 | @@ -11,7 +11,7 @@ |
| 32 | * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com> |
| 33 | * Copyright 2008 Colin McCabe <colin@cozybit.com> |
| 34 | * Copyright 2015-2017 Intel Deutschland GmbH |
| 35 | - * Copyright (C) 2018-2023 Intel Corporation |
| 36 | + * Copyright (C) 2018-2024 Intel Corporation |
| 37 | * |
| 38 | * Permission to use, copy, modify, and/or distribute this software for any |
| 39 | * purpose with or without fee is hereby granted, provided that the above |
| 40 | @@ -72,7 +72,7 @@ |
| 41 | * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS |
| 42 | * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows: |
| 43 | * - a setup station entry is added, not yet authorized, without any rate |
| 44 | - * or capability information, this just exists to avoid race conditions |
| 45 | + * or capability information; this just exists to avoid race conditions |
| 46 | * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid |
| 47 | * to add rate and capability information to the station and at the same |
| 48 | * time mark it authorized. |
| 49 | @@ -87,7 +87,7 @@ |
| 50 | * DOC: Frame transmission/registration support |
| 51 | * |
| 52 | * Frame transmission and registration support exists to allow userspace |
| 53 | - * management entities such as wpa_supplicant react to management frames |
| 54 | + * management entities such as wpa_supplicant to react to management frames |
| 55 | * that are not being handled by the kernel. This includes, for example, |
| 56 | * certain classes of action frames that cannot be handled in the kernel |
| 57 | * for various reasons. |
| 58 | @@ -113,7 +113,7 @@ |
| 59 | * |
| 60 | * Frame transmission allows userspace to send for example the required |
| 61 | * responses to action frames. It is subject to some sanity checking, |
| 62 | - * but many frames can be transmitted. When a frame was transmitted, its |
| 63 | + * but many frames can be transmitted. When a frame is transmitted, its |
| 64 | * status is indicated to the sending socket. |
| 65 | * |
| 66 | * For more technical details, see the corresponding command descriptions |
| 67 | @@ -123,7 +123,7 @@ |
| 68 | /** |
| 69 | * DOC: Virtual interface / concurrency capabilities |
| 70 | * |
| 71 | - * Some devices are able to operate with virtual MACs, they can have |
| 72 | + * Some devices are able to operate with virtual MACs; they can have |
| 73 | * more than one virtual interface. The capability handling for this |
| 74 | * is a bit complex though, as there may be a number of restrictions |
| 75 | * on the types of concurrency that are supported. |
| 76 | @@ -135,7 +135,7 @@ |
| 77 | * Once concurrency is desired, more attributes must be observed: |
| 78 | * To start with, since some interface types are purely managed in |
| 79 | * software, like the AP-VLAN type in mac80211 for example, there's |
| 80 | - * an additional list of these, they can be added at any time and |
| 81 | + * an additional list of these; they can be added at any time and |
| 82 | * are only restricted by some semantic restrictions (e.g. AP-VLAN |
| 83 | * cannot be added without a corresponding AP interface). This list |
| 84 | * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute. |
| 85 | @@ -164,7 +164,7 @@ |
| 86 | * Packet coalesce feature helps to reduce number of received interrupts |
| 87 | * to host by buffering these packets in firmware/hardware for some |
| 88 | * predefined time. Received interrupt will be generated when one of the |
| 89 | - * following events occur. |
| 90 | + * following events occurs. |
| 91 | * a) Expiration of hardware timer whose expiration time is set to maximum |
| 92 | * coalescing delay of matching coalesce rule. |
| 93 | * b) Coalescing buffer in hardware reaches its limit. |
| 94 | @@ -174,7 +174,7 @@ |
| 95 | * rule. |
| 96 | * a) Maximum coalescing delay |
| 97 | * b) List of packet patterns which needs to be matched |
| 98 | - * c) Condition for coalescence. pattern 'match' or 'no match' |
| 99 | + * c) Condition for coalescence: pattern 'match' or 'no match' |
| 100 | * Multiple such rules can be created. |
| 101 | */ |
| 102 | |
| 103 | @@ -213,7 +213,7 @@ |
| 104 | /** |
| 105 | * DOC: FILS shared key authentication offload |
| 106 | * |
| 107 | - * FILS shared key authentication offload can be advertized by drivers by |
| 108 | + * FILS shared key authentication offload can be advertised by drivers by |
| 109 | * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support |
| 110 | * FILS shared key authentication offload should be able to construct the |
| 111 | * authentication and association frames for FILS shared key authentication and |
| 112 | @@ -239,7 +239,7 @@ |
| 113 | * The PMKSA can be maintained in userspace persistently so that it can be used |
| 114 | * later after reboots or wifi turn off/on also. |
| 115 | * |
| 116 | - * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS |
| 117 | + * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertised by a FILS |
| 118 | * capable AP supporting PMK caching. It specifies the scope within which the |
| 119 | * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and |
| 120 | * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based |
| 121 | @@ -290,12 +290,12 @@ |
| 122 | * If the configuration needs to be applied for specific peer then the MAC |
| 123 | * address of the peer needs to be passed in %NL80211_ATTR_MAC, otherwise the |
| 124 | * configuration will be applied for all the connected peers in the vif except |
| 125 | - * any peers that have peer specific configuration for the TID by default; if |
| 126 | - * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer specific values |
| 127 | + * any peers that have peer-specific configuration for the TID by default; if |
| 128 | + * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer-specific values |
| 129 | * will be overwritten. |
| 130 | * |
| 131 | - * All this configuration is valid only for STA's current connection |
| 132 | - * i.e. the configuration will be reset to default when the STA connects back |
| 133 | + * All this configuration is valid only for STA's current connection, |
| 134 | + * i.e., the configuration will be reset to default when the STA connects back |
| 135 | * after disconnection/roaming, and this configuration will be cleared when |
| 136 | * the interface goes down. |
| 137 | */ |
| 138 | @@ -413,8 +413,8 @@ |
| 139 | * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that |
| 140 | * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, |
| 141 | * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, |
| 142 | - * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, |
| 143 | - * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, |
| 144 | + * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHER_SUITES_PAIRWISE, |
| 145 | + * %NL80211_ATTR_CIPHER_SUITE_GROUP, %NL80211_ATTR_WPA_VERSIONS, |
| 146 | * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, |
| 147 | * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT, |
| 148 | * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS. |
| 149 | @@ -438,23 +438,19 @@ |
| 150 | * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type |
| 151 | * of disconnection indication should be sent to the station |
| 152 | * (Deauthentication or Disassociation frame and reason code for that |
| 153 | - * frame). |
| 154 | + * frame). %NL80211_ATTR_MLO_LINK_ID can be used optionally to remove |
| 155 | + * stations connected and using at least that link as one of its links. |
| 156 | * |
| 157 | * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to |
| 158 | - * destination %NL80211_ATTR_MAC on the interface identified by |
| 159 | - * %NL80211_ATTR_IFINDEX. |
| 160 | + * destination %NL80211_ATTR_MAC on the interface identified by |
| 161 | + * %NL80211_ATTR_IFINDEX. |
| 162 | * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to |
| 163 | - * destination %NL80211_ATTR_MAC on the interface identified by |
| 164 | - * %NL80211_ATTR_IFINDEX. |
| 165 | + * destination %NL80211_ATTR_MAC on the interface identified by |
| 166 | + * %NL80211_ATTR_IFINDEX. |
| 167 | * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by |
| 168 | * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP. |
| 169 | * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by |
| 170 | * %NL80211_ATTR_MAC. |
| 171 | - * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the |
| 172 | - * interface identified by %NL80211_ATTR_IFINDEX. |
| 173 | - * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC |
| 174 | - * or, if no MAC address given, all mesh paths, on the interface identified |
| 175 | - * by %NL80211_ATTR_IFINDEX. |
| 176 | * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by |
| 177 | * %NL80211_ATTR_IFINDEX. |
| 178 | * |
| 179 | @@ -475,15 +471,15 @@ |
| 180 | * after being queried by the kernel. CRDA replies by sending a regulatory |
| 181 | * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our |
| 182 | * current alpha2 if it found a match. It also provides |
| 183 | - * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each |
| 184 | - * regulatory rule is a nested set of attributes given by |
| 185 | - * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and |
| 186 | - * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by |
| 187 | - * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and |
| 188 | - * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. |
| 189 | + * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each |
| 190 | + * regulatory rule is a nested set of attributes given by |
| 191 | + * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and |
| 192 | + * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by |
| 193 | + * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and |
| 194 | + * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP. |
| 195 | * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain |
| 196 | - * to the specified ISO/IEC 3166-1 alpha2 country code. The core will |
| 197 | - * store this as a valid request and then query userspace for it. |
| 198 | + * to the specified ISO/IEC 3166-1 alpha2 country code. The core will |
| 199 | + * store this as a valid request and then query userspace for it. |
| 200 | * |
| 201 | * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the |
| 202 | * interface identified by %NL80211_ATTR_IFINDEX |
| 203 | @@ -521,7 +517,7 @@ |
| 204 | * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is |
| 205 | * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified, |
| 206 | * scheduled scan will run in an infinite loop with the specified interval. |
| 207 | - * These attributes are mutually exculsive, |
| 208 | + * These attributes are mutually exclusive, |
| 209 | * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if |
| 210 | * NL80211_ATTR_SCHED_SCAN_PLANS is defined. |
| 211 | * If for some reason scheduled scan is aborted by the driver, all scan |
| 212 | @@ -552,7 +548,7 @@ |
| 213 | * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface |
| 214 | * is brought down while a scheduled scan was running. |
| 215 | * |
| 216 | - * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation |
| 217 | + * @NL80211_CMD_GET_SURVEY: get survey results, e.g. channel occupation |
| 218 | * or noise level |
| 219 | * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to |
| 220 | * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) |
| 221 | @@ -563,40 +559,41 @@ |
| 222 | * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID, |
| 223 | * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS |
| 224 | * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier |
| 225 | - * advertized by a FILS capable AP identifying the scope of PMKSA in an |
| 226 | + * advertised by a FILS capable AP identifying the scope of PMKSA in an |
| 227 | * ESS. |
| 228 | * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC |
| 229 | * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID, |
| 230 | * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS |
| 231 | - * authentication. |
| 232 | + * authentication. Additionally in case of SAE offload and OWE offloads |
| 233 | + * PMKSA entry can be deleted using %NL80211_ATTR_SSID. |
| 234 | * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries. |
| 235 | * |
| 236 | * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain |
| 237 | - * has been changed and provides details of the request information |
| 238 | - * that caused the change such as who initiated the regulatory request |
| 239 | - * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx |
| 240 | - * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if |
| 241 | - * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or |
| 242 | - * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain |
| 243 | - * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is |
| 244 | - * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on |
| 245 | - * to (%NL80211_ATTR_REG_ALPHA2). |
| 246 | + * has been changed and provides details of the request information |
| 247 | + * that caused the change such as who initiated the regulatory request |
| 248 | + * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx |
| 249 | + * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if |
| 250 | + * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or |
| 251 | + * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain |
| 252 | + * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is |
| 253 | + * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on |
| 254 | + * to (%NL80211_ATTR_REG_ALPHA2). |
| 255 | * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon |
| 256 | - * has been found while world roaming thus enabling active scan or |
| 257 | - * any mode of operation that initiates TX (beacons) on a channel |
| 258 | - * where we would not have been able to do either before. As an example |
| 259 | - * if you are world roaming (regulatory domain set to world or if your |
| 260 | - * driver is using a custom world roaming regulatory domain) and while |
| 261 | - * doing a passive scan on the 5 GHz band you find an AP there (if not |
| 262 | - * on a DFS channel) you will now be able to actively scan for that AP |
| 263 | - * or use AP mode on your card on that same channel. Note that this will |
| 264 | - * never be used for channels 1-11 on the 2 GHz band as they are always |
| 265 | - * enabled world wide. This beacon hint is only sent if your device had |
| 266 | - * either disabled active scanning or beaconing on a channel. We send to |
| 267 | - * userspace the wiphy on which we removed a restriction from |
| 268 | - * (%NL80211_ATTR_WIPHY) and the channel on which this occurred |
| 269 | - * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) |
| 270 | - * the beacon hint was processed. |
| 271 | + * has been found while world roaming thus enabling active scan or |
| 272 | + * any mode of operation that initiates TX (beacons) on a channel |
| 273 | + * where we would not have been able to do either before. As an example |
| 274 | + * if you are world roaming (regulatory domain set to world or if your |
| 275 | + * driver is using a custom world roaming regulatory domain) and while |
| 276 | + * doing a passive scan on the 5 GHz band you find an AP there (if not |
| 277 | + * on a DFS channel) you will now be able to actively scan for that AP |
| 278 | + * or use AP mode on your card on that same channel. Note that this will |
| 279 | + * never be used for channels 1-11 on the 2 GHz band as they are always |
| 280 | + * enabled world wide. This beacon hint is only sent if your device had |
| 281 | + * either disabled active scanning or beaconing on a channel. We send to |
| 282 | + * userspace the wiphy on which we removed a restriction from |
| 283 | + * (%NL80211_ATTR_WIPHY) and the channel on which this occurred |
| 284 | + * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER) |
| 285 | + * the beacon hint was processed. |
| 286 | * |
| 287 | * @NL80211_CMD_AUTHENTICATE: authentication request and notification. |
| 288 | * This command is used both as a command (request to authenticate) and |
| 289 | @@ -607,7 +604,7 @@ |
| 290 | * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify |
| 291 | * the SSID (mainly for association, but is included in authentication |
| 292 | * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ + |
| 293 | - * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequence of the |
| 294 | + * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequency of the |
| 295 | * channel in MHz. %NL80211_ATTR_AUTH_TYPE is used to specify the |
| 296 | * authentication type. %NL80211_ATTR_IE is used to define IEs |
| 297 | * (VendorSpecificInfo, but also including RSN IE and FT IEs) to be added |
| 298 | @@ -816,7 +813,7 @@ |
| 299 | * reached. |
| 300 | * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ |
| 301 | * and the attributes determining channel width) the given interface |
| 302 | - * (identifed by %NL80211_ATTR_IFINDEX) shall operate on. |
| 303 | + * (identified by %NL80211_ATTR_IFINDEX) shall operate on. |
| 304 | * In case multiple channels are supported by the device, the mechanism |
| 305 | * with which it switches channels is implementation-defined. |
| 306 | * When a monitor interface is given, it can only switch channel while |
| 307 | @@ -888,7 +885,7 @@ |
| 308 | * inform userspace of the new replay counter. |
| 309 | * |
| 310 | * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace |
| 311 | - * of PMKSA caching dandidates. |
| 312 | + * of PMKSA caching candidates. |
| 313 | * |
| 314 | * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). |
| 315 | * In addition, this can be used as an event to request userspace to take |
| 316 | @@ -924,7 +921,7 @@ |
| 317 | * |
| 318 | * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface |
| 319 | * by sending a null data frame to it and reporting when the frame is |
| 320 | - * acknowleged. This is used to allow timing out inactive clients. Uses |
| 321 | + * acknowledged. This is used to allow timing out inactive clients. Uses |
| 322 | * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a |
| 323 | * direct reply with an %NL80211_ATTR_COOKIE that is later used to match |
| 324 | * up the event with the request. The event includes the same data and |
| 325 | @@ -1118,7 +1115,7 @@ |
| 326 | * current configuration is not changed. If it is present but |
| 327 | * set to zero, the configuration is changed to don't-care |
| 328 | * (i.e. the device can decide what to do). |
| 329 | - * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported. |
| 330 | + * @NL80211_CMD_NAN_MATCH: Notification sent when a match is reported. |
| 331 | * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and |
| 332 | * %NL80211_ATTR_COOKIE. |
| 333 | * |
| 334 | @@ -1135,11 +1132,15 @@ |
| 335 | * @NL80211_CMD_DEL_PMK: For offloaded 4-Way handshake, delete the previously |
| 336 | * configured PMK for the authenticator address identified by |
| 337 | * %NL80211_ATTR_MAC. |
| 338 | - * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates an 802.1X FT roam was |
| 339 | - * completed successfully. Drivers that support 4 way handshake offload |
| 340 | - * should send this event after indicating 802.1X FT assocation with |
| 341 | - * %NL80211_CMD_ROAM. If the 4 way handshake failed %NL80211_CMD_DISCONNECT |
| 342 | - * should be indicated instead. |
| 343 | + * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates port is authorized and |
| 344 | + * open for regular data traffic. For STA/P2P-client, this event is sent |
| 345 | + * with AP MAC address and for AP/P2P-GO, the event carries the STA/P2P- |
| 346 | + * client MAC address. |
| 347 | + * Drivers that support 4 way handshake offload should send this event for |
| 348 | + * STA/P2P-client after successful 4-way HS or after 802.1X FT following |
| 349 | + * NL80211_CMD_CONNECT or NL80211_CMD_ROAM. Drivers using AP/P2P-GO 4-way |
| 350 | + * handshake offload should send this event on successful completion of |
| 351 | + * 4-way handshake with the peer (STA/P2P-client). |
| 352 | * @NL80211_CMD_CONTROL_PORT_FRAME: Control Port (e.g. PAE) frame TX request |
| 353 | * and RX notification. This command is used both as a request to transmit |
| 354 | * a control port frame and as a notification that a control port frame |
| 355 | @@ -1323,6 +1324,11 @@ |
| 356 | * Multi-Link reconfiguration. %NL80211_ATTR_MLO_LINKS is used to provide |
| 357 | * information about the removed STA MLD setup links. |
| 358 | * |
| 359 | + * @NL80211_CMD_SET_TID_TO_LINK_MAPPING: Set the TID to Link Mapping for a |
| 360 | + * non-AP MLD station. The %NL80211_ATTR_MLO_TTLM_DLINK and |
| 361 | + * %NL80211_ATTR_MLO_TTLM_ULINK attributes are used to specify the |
| 362 | + * TID to Link mapping for downlink/uplink traffic. |
| 363 | + * |
| 364 | * @NL80211_CMD_MAX: highest used command number |
| 365 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 366 | */ |
| 367 | @@ -1578,6 +1584,8 @@ enum nl80211_commands { |
| 368 | |
| 369 | NL80211_CMD_LINKS_REMOVED, |
| 370 | |
| 371 | + NL80211_CMD_SET_TID_TO_LINK_MAPPING, |
| 372 | + |
| 373 | /* add new commands above here */ |
| 374 | |
| 375 | /* used to define NL80211_CMD_MAX below */ |
| 376 | @@ -1702,21 +1710,21 @@ enum nl80211_commands { |
| 377 | * (see &enum nl80211_plink_action). |
| 378 | * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path. |
| 379 | * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path |
| 380 | - * info given for %NL80211_CMD_GET_MPATH, nested attribute described at |
| 381 | + * info given for %NL80211_CMD_GET_MPATH, nested attribute described at |
| 382 | * &enum nl80211_mpath_info. |
| 383 | * |
| 384 | * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of |
| 385 | * &enum nl80211_mntr_flags. |
| 386 | * |
| 387 | * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the |
| 388 | - * current regulatory domain should be set to or is already set to. |
| 389 | - * For example, 'CR', for Costa Rica. This attribute is used by the kernel |
| 390 | - * to query the CRDA to retrieve one regulatory domain. This attribute can |
| 391 | - * also be used by userspace to query the kernel for the currently set |
| 392 | - * regulatory domain. We chose an alpha2 as that is also used by the |
| 393 | - * IEEE-802.11 country information element to identify a country. |
| 394 | - * Users can also simply ask the wireless core to set regulatory domain |
| 395 | - * to a specific alpha2. |
| 396 | + * current regulatory domain should be set to or is already set to. |
| 397 | + * For example, 'CR', for Costa Rica. This attribute is used by the kernel |
| 398 | + * to query the CRDA to retrieve one regulatory domain. This attribute can |
| 399 | + * also be used by userspace to query the kernel for the currently set |
| 400 | + * regulatory domain. We chose an alpha2 as that is also used by the |
| 401 | + * IEEE-802.11 country information element to identify a country. |
| 402 | + * Users can also simply ask the wireless core to set regulatory domain |
| 403 | + * to a specific alpha2. |
| 404 | * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory |
| 405 | * rules. |
| 406 | * |
| 407 | @@ -1759,9 +1767,9 @@ enum nl80211_commands { |
| 408 | * @NL80211_ATTR_BSS: scan result BSS |
| 409 | * |
| 410 | * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain |
| 411 | - * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* |
| 412 | + * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_* |
| 413 | * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently |
| 414 | - * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) |
| 415 | + * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*) |
| 416 | * |
| 417 | * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies |
| 418 | * an array of command numbers (i.e. a mapping index to command number) |
| 419 | @@ -1780,15 +1788,15 @@ enum nl80211_commands { |
| 420 | * a u32 |
| 421 | * |
| 422 | * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change |
| 423 | - * due to considerations from a beacon hint. This attribute reflects |
| 424 | - * the state of the channel _before_ the beacon hint processing. This |
| 425 | - * attributes consists of a nested attribute containing |
| 426 | - * NL80211_FREQUENCY_ATTR_* |
| 427 | + * due to considerations from a beacon hint. This attribute reflects |
| 428 | + * the state of the channel _before_ the beacon hint processing. This |
| 429 | + * attributes consists of a nested attribute containing |
| 430 | + * NL80211_FREQUENCY_ATTR_* |
| 431 | * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change |
| 432 | - * due to considerations from a beacon hint. This attribute reflects |
| 433 | - * the state of the channel _after_ the beacon hint processing. This |
| 434 | - * attributes consists of a nested attribute containing |
| 435 | - * NL80211_FREQUENCY_ATTR_* |
| 436 | + * due to considerations from a beacon hint. This attribute reflects |
| 437 | + * the state of the channel _after_ the beacon hint processing. This |
| 438 | + * attributes consists of a nested attribute containing |
| 439 | + * NL80211_FREQUENCY_ATTR_* |
| 440 | * |
| 441 | * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported |
| 442 | * cipher suites |
| 443 | @@ -1835,7 +1843,7 @@ enum nl80211_commands { |
| 444 | * using %CMD_CONTROL_PORT_FRAME. If control port routing over NL80211 is |
| 445 | * to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER |
| 446 | * flag. When used with %NL80211_ATTR_CONTROL_PORT_NO_PREAUTH, pre-auth |
| 447 | - * frames are not forwared over the control port. |
| 448 | + * frames are not forwarded over the control port. |
| 449 | * |
| 450 | * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver. |
| 451 | * We recommend using nested, driver-specific attributes within this. |
| 452 | @@ -1849,12 +1857,6 @@ enum nl80211_commands { |
| 453 | * that protected APs should be used. This is also used with NEW_BEACON to |
| 454 | * indicate that the BSS is to use protection. |
| 455 | * |
| 456 | - * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON |
| 457 | - * to indicate which unicast key ciphers will be used with the connection |
| 458 | - * (an array of u32). |
| 459 | - * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to |
| 460 | - * indicate which group key cipher will be used with the connection (a |
| 461 | - * u32). |
| 462 | * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to |
| 463 | * indicate which WPA version(s) the AP we want to associate with is using |
| 464 | * (a u32 with flags from &enum nl80211_wpa_versions). |
| 465 | @@ -1885,6 +1887,7 @@ enum nl80211_commands { |
| 466 | * with %NL80211_KEY_* sub-attributes |
| 467 | * |
| 468 | * @NL80211_ATTR_PID: Process ID of a network namespace. |
| 469 | + * @NL80211_ATTR_NETNS_FD: File descriptor of a network namespace. |
| 470 | * |
| 471 | * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for |
| 472 | * dumps. This number increases whenever the object list being |
| 473 | @@ -1939,6 +1942,7 @@ enum nl80211_commands { |
| 474 | * |
| 475 | * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was |
| 476 | * acknowledged by the recipient. |
| 477 | + * @NL80211_ATTR_ACK_SIGNAL: Station's ack signal strength (s32) |
| 478 | * |
| 479 | * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values. |
| 480 | * |
| 481 | @@ -1972,10 +1976,10 @@ enum nl80211_commands { |
| 482 | * bit. Depending on which antennas are selected in the bitmap, 802.11n |
| 483 | * drivers can derive which chainmasks to use (if all antennas belonging to |
| 484 | * a particular chain are disabled this chain should be disabled) and if |
| 485 | - * a chain has diversity antennas wether diversity should be used or not. |
| 486 | + * a chain has diversity antennas whether diversity should be used or not. |
| 487 | * HT capabilities (STBC, TX Beamforming, Antenna selection) can be |
| 488 | * derived from the available chains after applying the antenna mask. |
| 489 | - * Non-802.11n drivers can derive wether to use diversity or not. |
| 490 | + * Non-802.11n drivers can derive whether to use diversity or not. |
| 491 | * Drivers may reject configurations or RX/TX mask combinations they cannot |
| 492 | * support by returning -EINVAL. |
| 493 | * |
| 494 | @@ -2048,6 +2052,10 @@ enum nl80211_commands { |
| 495 | * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported |
| 496 | * interface combinations. In each nested item, it contains attributes |
| 497 | * defined in &enum nl80211_if_combination_attrs. |
| 498 | + * If the wiphy uses multiple radios (@NL80211_ATTR_WIPHY_RADIOS is set), |
| 499 | + * this attribute contains the interface combinations of the first radio. |
| 500 | + * See @NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS for the global wiphy |
| 501 | + * combinations for the sum of all radios. |
| 502 | * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like |
| 503 | * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that |
| 504 | * are managed in software: interfaces of these types aren't subject to |
| 505 | @@ -2136,6 +2144,9 @@ enum nl80211_commands { |
| 506 | * @NL80211_ATTR_DISABLE_HE: Force HE capable interfaces to disable |
| 507 | * this feature during association. This is a flag attribute. |
| 508 | * Currently only supported in mac80211 drivers. |
| 509 | + * @NL80211_ATTR_DISABLE_EHT: Force EHT capable interfaces to disable |
| 510 | + * this feature during association. This is a flag attribute. |
| 511 | + * Currently only supported in mac80211 drivers. |
| 512 | * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the |
| 513 | * ATTR_HT_CAPABILITY to which attention should be paid. |
| 514 | * Currently, only mac80211 NICs support this feature. |
| 515 | @@ -2145,6 +2156,12 @@ enum nl80211_commands { |
| 516 | * All values are treated as suggestions and may be ignored |
| 517 | * by the driver as required. The actual values may be seen in |
| 518 | * the station debugfs ht_caps file. |
| 519 | + * @NL80211_ATTR_VHT_CAPABILITY_MASK: Specify which bits of the |
| 520 | + * ATTR_VHT_CAPABILITY to which attention should be paid. |
| 521 | + * Currently, only mac80211 NICs support this feature. |
| 522 | + * All values are treated as suggestions and may be ignored |
| 523 | + * by the driver as required. The actual values may be seen in |
| 524 | + * the station debugfs vht_caps file. |
| 525 | * |
| 526 | * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country |
| 527 | * abides to when initiating radiation on DFS channels. A country maps |
| 528 | @@ -2403,7 +2420,7 @@ enum nl80211_commands { |
| 529 | * scheduled scan is started. Or the delay before a WoWLAN |
| 530 | * net-detect scan is started, counting from the moment the |
| 531 | * system is suspended. This value is a u32, in seconds. |
| 532 | - |
| 533 | + * |
| 534 | * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device |
| 535 | * is operating in an indoor environment. |
| 536 | * |
| 537 | @@ -2545,7 +2562,7 @@ enum nl80211_commands { |
| 538 | * from successful FILS authentication and is used with |
| 539 | * %NL80211_CMD_CONNECT. |
| 540 | * |
| 541 | - * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP |
| 542 | + * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertised by a FILS AP |
| 543 | * identifying the scope of PMKSAs. This is used with |
| 544 | * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA. |
| 545 | * |
| 546 | @@ -2826,6 +2843,31 @@ enum nl80211_commands { |
| 547 | * @NL80211_ATTR_MLO_LINK_DISABLED: Flag attribute indicating that the link is |
| 548 | * disabled. |
| 549 | * |
| 550 | + * @NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA: Include BSS usage data, i.e. |
| 551 | + * include BSSes that can only be used in restricted scenarios and/or |
| 552 | + * cannot be used at all. |
| 553 | + * |
| 554 | + * @NL80211_ATTR_MLO_TTLM_DLINK: Binary attribute specifying the downlink TID to |
| 555 | + * link mapping. The length is 8 * sizeof(u16). For each TID the link |
| 556 | + * mapping is as defined in section 9.4.2.314 (TID-To-Link Mapping element) |
| 557 | + * in Draft P802.11be_D4.0. |
| 558 | + * @NL80211_ATTR_MLO_TTLM_ULINK: Binary attribute specifying the uplink TID to |
| 559 | + * link mapping. The length is 8 * sizeof(u16). For each TID the link |
| 560 | + * mapping is as defined in section 9.4.2.314 (TID-To-Link Mapping element) |
| 561 | + * in Draft P802.11be_D4.0. |
| 562 | + * |
| 563 | + * @NL80211_ATTR_ASSOC_SPP_AMSDU: flag attribute used with |
| 564 | + * %NL80211_CMD_ASSOCIATE indicating the SPP A-MSDUs |
| 565 | + * are used on this connection |
| 566 | + * |
| 567 | + * @NL80211_ATTR_WIPHY_RADIOS: Nested attribute describing physical radios |
| 568 | + * belonging to this wiphy. See &enum nl80211_wiphy_radio_attrs. |
| 569 | + * |
| 570 | + * @NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS: Nested attribute listing the |
| 571 | + * supported interface combinations for all radios combined. In each |
| 572 | + * nested item, it contains attributes defined in |
| 573 | + * &enum nl80211_if_combination_attrs. |
| 574 | + * |
| 575 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 576 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 577 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 578 | @@ -3364,6 +3406,16 @@ enum nl80211_attrs { |
| 579 | |
| 580 | NL80211_ATTR_MLO_LINK_DISABLED, |
| 581 | |
| 582 | + NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA, |
| 583 | + |
| 584 | + NL80211_ATTR_MLO_TTLM_DLINK, |
| 585 | + NL80211_ATTR_MLO_TTLM_ULINK, |
| 586 | + |
| 587 | + NL80211_ATTR_ASSOC_SPP_AMSDU, |
| 588 | + |
| 589 | + NL80211_ATTR_WIPHY_RADIOS, |
| 590 | + NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS, |
| 591 | + |
| 592 | /* add attributes here, update the policy in nl80211.c */ |
| 593 | |
| 594 | __NL80211_ATTR_AFTER_LAST, |
| 595 | @@ -3504,6 +3556,7 @@ enum nl80211_iftype { |
| 596 | * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers |
| 597 | * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a |
| 598 | * previously added station into associated state |
| 599 | + * @NL80211_STA_FLAG_SPP_AMSDU: station supports SPP A-MSDUs |
| 600 | * @NL80211_STA_FLAG_MAX: highest station flag number currently defined |
| 601 | * @__NL80211_STA_FLAG_AFTER_LAST: internal use |
| 602 | */ |
| 603 | @@ -3516,6 +3569,7 @@ enum nl80211_sta_flags { |
| 604 | NL80211_STA_FLAG_AUTHENTICATED, |
| 605 | NL80211_STA_FLAG_TDLS_PEER, |
| 606 | NL80211_STA_FLAG_ASSOCIATED, |
| 607 | + NL80211_STA_FLAG_SPP_AMSDU, |
| 608 | |
| 609 | /* keep last */ |
| 610 | __NL80211_STA_FLAG_AFTER_LAST, |
| 611 | @@ -3526,7 +3580,7 @@ enum nl80211_sta_flags { |
| 612 | * enum nl80211_sta_p2p_ps_status - station support of P2P PS |
| 613 | * |
| 614 | * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism |
| 615 | - * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism |
| 616 | + * @NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism |
| 617 | * @NUM_NL80211_P2P_PS_STATUS: number of values |
| 618 | */ |
| 619 | enum nl80211_sta_p2p_ps_status { |
| 620 | @@ -3564,9 +3618,9 @@ enum nl80211_he_gi { |
| 621 | |
| 622 | /** |
| 623 | * enum nl80211_he_ltf - HE long training field |
| 624 | - * @NL80211_RATE_INFO_HE_1xLTF: 3.2 usec |
| 625 | - * @NL80211_RATE_INFO_HE_2xLTF: 6.4 usec |
| 626 | - * @NL80211_RATE_INFO_HE_4xLTF: 12.8 usec |
| 627 | + * @NL80211_RATE_INFO_HE_1XLTF: 3.2 usec |
| 628 | + * @NL80211_RATE_INFO_HE_2XLTF: 6.4 usec |
| 629 | + * @NL80211_RATE_INFO_HE_4XLTF: 12.8 usec |
| 630 | */ |
| 631 | enum nl80211_he_ltf { |
| 632 | NL80211_RATE_INFO_HE_1XLTF, |
| 633 | @@ -3681,7 +3735,7 @@ enum nl80211_eht_ru_alloc { |
| 634 | * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier |
| 635 | * (u8, see &enum nl80211_he_gi) |
| 636 | * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1) |
| 637 | - * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then |
| 638 | + * @NL80211_RATE_INFO_HE_RU_ALLOC: HE RU allocation, if not present then |
| 639 | * non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc) |
| 640 | * @NL80211_RATE_INFO_320_MHZ_WIDTH: 320 MHz bitrate |
| 641 | * @NL80211_RATE_INFO_EHT_MCS: EHT MCS index (u8, 0-15) |
| 642 | @@ -3784,7 +3838,7 @@ enum nl80211_sta_bss_param { |
| 643 | * (u64, to this station) |
| 644 | * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) |
| 645 | * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute |
| 646 | - * containing info as possible, see &enum nl80211_rate_info |
| 647 | + * containing info as possible, see &enum nl80211_rate_info |
| 648 | * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs) |
| 649 | * (u32, from this station) |
| 650 | * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs) |
| 651 | @@ -3813,8 +3867,8 @@ enum nl80211_sta_bss_param { |
| 652 | * Contains a nested array of signal strength attributes (u8, dBm) |
| 653 | * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average |
| 654 | * Same format as NL80211_STA_INFO_CHAIN_SIGNAL. |
| 655 | - * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the |
| 656 | - * 802.11 header (u32, kbps) |
| 657 | + * @NL80211_STA_INFO_EXPECTED_THROUGHPUT: expected throughput considering also |
| 658 | + * the 802.11 header (u32, kbps) |
| 659 | * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons |
| 660 | * (u64) |
| 661 | * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64) |
| 662 | @@ -4000,7 +4054,7 @@ enum nl80211_mpath_flags { |
| 663 | * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path |
| 664 | * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now |
| 665 | * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in |
| 666 | - * &enum nl80211_mpath_flags; |
| 667 | + * &enum nl80211_mpath_flags; |
| 668 | * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec |
| 669 | * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries |
| 670 | * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination |
| 671 | @@ -4140,7 +4194,7 @@ enum nl80211_band_attr { |
| 672 | * @NL80211_WMMR_CW_MAX: Maximum contention window slot. |
| 673 | * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space. |
| 674 | * @NL80211_WMMR_TXOP: Maximum allowed tx operation time. |
| 675 | - * @nl80211_WMMR_MAX: highest possible wmm rule. |
| 676 | + * @NL80211_WMMR_MAX: highest possible wmm rule. |
| 677 | * @__NL80211_WMMR_LAST: Internal use. |
| 678 | */ |
| 679 | enum nl80211_wmm_rule { |
| 680 | @@ -4162,15 +4216,16 @@ enum nl80211_wmm_rule { |
| 681 | * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current |
| 682 | * regulatory domain. |
| 683 | * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation |
| 684 | - * are permitted on this channel, this includes sending probe |
| 685 | - * requests, or modes of operation that require beaconing. |
| 686 | + * are permitted on this channel, this includes sending probe |
| 687 | + * requests, or modes of operation that require beaconing. |
| 688 | + * @__NL80211_FREQUENCY_ATTR_NO_IBSS: obsolete, same as _NO_IR |
| 689 | * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory |
| 690 | * on this channel in current regulatory domain. |
| 691 | * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm |
| 692 | * (100 * dBm). |
| 693 | * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS |
| 694 | * (enum nl80211_dfs_state) |
| 695 | - * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long |
| 696 | + * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in milliseconds for how long |
| 697 | * this channel is in this DFS state. |
| 698 | * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this |
| 699 | * channel as the control channel |
| 700 | @@ -4226,6 +4281,19 @@ enum nl80211_wmm_rule { |
| 701 | * in current regulatory domain. |
| 702 | * @NL80211_FREQUENCY_ATTR_PSD: Power spectral density (in dBm) that |
| 703 | * is allowed on this channel in current regulatory domain. |
| 704 | + * @NL80211_FREQUENCY_ATTR_DFS_CONCURRENT: Operation on this channel is |
| 705 | + * allowed for peer-to-peer or adhoc communication under the control |
| 706 | + * of a DFS master which operates on the same channel (FCC-594280 D01 |
| 707 | + * Section B.3). Should be used together with %NL80211_RRF_DFS only. |
| 708 | + * @NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT: Client connection to VLP AP |
| 709 | + * not allowed using this channel |
| 710 | + * @NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP |
| 711 | + * not allowed using this channel |
| 712 | + * @NL80211_FREQUENCY_ATTR_CAN_MONITOR: This channel can be used in monitor |
| 713 | + * mode despite other (regulatory) restrictions, even if the channel is |
| 714 | + * otherwise completely disabled. |
| 715 | + * @NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP: This channel can be used for a |
| 716 | + * very low power (VLP) AP, despite being NO_IR. |
| 717 | * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number |
| 718 | * currently defined |
| 719 | * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use |
| 720 | @@ -4265,6 +4333,11 @@ enum nl80211_frequency_attr { |
| 721 | NL80211_FREQUENCY_ATTR_NO_320MHZ, |
| 722 | NL80211_FREQUENCY_ATTR_NO_EHT, |
| 723 | NL80211_FREQUENCY_ATTR_PSD, |
| 724 | + NL80211_FREQUENCY_ATTR_DFS_CONCURRENT, |
| 725 | + NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT, |
| 726 | + NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT, |
| 727 | + NL80211_FREQUENCY_ATTR_CAN_MONITOR, |
| 728 | + NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP, |
| 729 | |
| 730 | /* keep last */ |
| 731 | __NL80211_FREQUENCY_ATTR_AFTER_LAST, |
| 732 | @@ -4277,6 +4350,10 @@ enum nl80211_frequency_attr { |
| 733 | #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR |
| 734 | #define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \ |
| 735 | NL80211_FREQUENCY_ATTR_IR_CONCURRENT |
| 736 | +#define NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT \ |
| 737 | + NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT |
| 738 | +#define NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT \ |
| 739 | + NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT |
| 740 | |
| 741 | /** |
| 742 | * enum nl80211_bitrate_attr - bitrate attributes |
| 743 | @@ -4299,16 +4376,16 @@ enum nl80211_bitrate_attr { |
| 744 | }; |
| 745 | |
| 746 | /** |
| 747 | - * enum nl80211_initiator - Indicates the initiator of a reg domain request |
| 748 | + * enum nl80211_reg_initiator - Indicates the initiator of a reg domain request |
| 749 | * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world |
| 750 | - * regulatory domain. |
| 751 | + * regulatory domain. |
| 752 | * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the |
| 753 | - * regulatory domain. |
| 754 | + * regulatory domain. |
| 755 | * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the |
| 756 | - * wireless core it thinks its knows the regulatory domain we should be in. |
| 757 | + * wireless core it thinks its knows the regulatory domain we should be in. |
| 758 | * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an |
| 759 | - * 802.11 country information element with regulatory information it |
| 760 | - * thinks we should consider. cfg80211 only processes the country |
| 761 | + * 802.11 country information element with regulatory information it |
| 762 | + * thinks we should consider. cfg80211 only processes the country |
| 763 | * code from the IE, and relies on the regulatory domain information |
| 764 | * structure passed by userspace (CRDA) from our wireless-regdb. |
| 765 | * If a channel is enabled but the country code indicates it should |
| 766 | @@ -4327,11 +4404,11 @@ enum nl80211_reg_initiator { |
| 767 | * to a specific country. When this is set you can count on the |
| 768 | * ISO / IEC 3166 alpha2 country code being valid. |
| 769 | * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory |
| 770 | - * domain. |
| 771 | + * domain. |
| 772 | * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom |
| 773 | - * driver specific world regulatory domain. These do not apply system-wide |
| 774 | - * and are only applicable to the individual devices which have requested |
| 775 | - * them to be applied. |
| 776 | + * driver specific world regulatory domain. These do not apply system-wide |
| 777 | + * and are only applicable to the individual devices which have requested |
| 778 | + * them to be applied. |
| 779 | * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product |
| 780 | * of an intersection between two regulatory domains -- the previously |
| 781 | * set regulatory domain on the system and the last accepted regulatory |
| 782 | @@ -4348,21 +4425,21 @@ enum nl80211_reg_type { |
| 783 | * enum nl80211_reg_rule_attr - regulatory rule attributes |
| 784 | * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved |
| 785 | * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional |
| 786 | - * considerations for a given frequency range. These are the |
| 787 | - * &enum nl80211_reg_rule_flags. |
| 788 | + * considerations for a given frequency range. These are the |
| 789 | + * &enum nl80211_reg_rule_flags. |
| 790 | * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory |
| 791 | - * rule in KHz. This is not a center of frequency but an actual regulatory |
| 792 | - * band edge. |
| 793 | + * rule in KHz. This is not a center of frequency but an actual regulatory |
| 794 | + * band edge. |
| 795 | * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule |
| 796 | - * in KHz. This is not a center a frequency but an actual regulatory |
| 797 | - * band edge. |
| 798 | + * in KHz. This is not a center a frequency but an actual regulatory |
| 799 | + * band edge. |
| 800 | * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this |
| 801 | * frequency range, in KHz. |
| 802 | * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain |
| 803 | - * for a given frequency range. The value is in mBi (100 * dBi). |
| 804 | - * If you don't have one then don't send this. |
| 805 | + * for a given frequency range. The value is in mBi (100 * dBi). |
| 806 | + * If you don't have one then don't send this. |
| 807 | * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for |
| 808 | - * a given frequency range. The value is in mBm (100 * dBm). |
| 809 | + * a given frequency range. The value is in mBm (100 * dBm). |
| 810 | * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds. |
| 811 | * If not present or 0 default CAC time will be used. |
| 812 | * @NL80211_ATTR_POWER_RULE_PSD: power spectral density (in dBm). |
| 813 | @@ -4414,14 +4491,7 @@ enum nl80211_reg_rule_attr { |
| 814 | * value as specified by &struct nl80211_bss_select_rssi_adjust. |
| 815 | * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching |
| 816 | * (this cannot be used together with SSID). |
| 817 | - * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the |
| 818 | - * band specific minimum rssi thresholds for the bands defined in |
| 819 | - * enum nl80211_band. The minimum rssi threshold value(s32) specific to a |
| 820 | - * band shall be encapsulated in attribute with type value equals to one |
| 821 | - * of the NL80211_BAND_* defined in enum nl80211_band. For example, the |
| 822 | - * minimum rssi threshold value for 2.4GHZ band shall be encapsulated |
| 823 | - * within an attribute of type NL80211_BAND_2GHZ. And one or more of such |
| 824 | - * attributes will be nested within this attribute. |
| 825 | + * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Obsolete |
| 826 | * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter |
| 827 | * attribute number currently defined |
| 828 | * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use |
| 829 | @@ -4434,7 +4504,7 @@ enum nl80211_sched_scan_match_attr { |
| 830 | NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI, |
| 831 | NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST, |
| 832 | NL80211_SCHED_SCAN_MATCH_ATTR_BSSID, |
| 833 | - NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, |
| 834 | + NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, /* obsolete */ |
| 835 | |
| 836 | /* keep last */ |
| 837 | __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST, |
| 838 | @@ -4456,8 +4526,9 @@ enum nl80211_sched_scan_match_attr { |
| 839 | * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links |
| 840 | * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links |
| 841 | * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed, |
| 842 | - * this includes probe requests or modes of operation that require |
| 843 | - * beaconing. |
| 844 | + * this includes probe requests or modes of operation that require |
| 845 | + * beaconing. |
| 846 | + * @__NL80211_RRF_NO_IBSS: obsolete, same as NO_IR |
| 847 | * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated |
| 848 | * base on contiguous rules and wider channels will be allowed to cross |
| 849 | * multiple contiguous/overlapping frequency ranges. |
| 850 | @@ -4470,6 +4541,14 @@ enum nl80211_sched_scan_match_attr { |
| 851 | * @NL80211_RRF_NO_320MHZ: 320MHz operation not allowed |
| 852 | * @NL80211_RRF_NO_EHT: EHT operation not allowed |
| 853 | * @NL80211_RRF_PSD: Ruleset has power spectral density value |
| 854 | + * @NL80211_RRF_DFS_CONCURRENT: Operation on this channel is allowed for |
| 855 | + * peer-to-peer or adhoc communication under the control of a DFS master |
| 856 | + * which operates on the same channel (FCC-594280 D01 Section B.3). |
| 857 | + * Should be used together with %NL80211_RRF_DFS only. |
| 858 | + * @NL80211_RRF_NO_6GHZ_VLP_CLIENT: Client connection to VLP AP not allowed |
| 859 | + * @NL80211_RRF_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP not allowed |
| 860 | + * @NL80211_RRF_ALLOW_6GHZ_VLP_AP: Very low power (VLP) AP can be permitted |
| 861 | + * despite NO_IR configuration. |
| 862 | */ |
| 863 | enum nl80211_reg_rule_flags { |
| 864 | NL80211_RRF_NO_OFDM = 1<<0, |
| 865 | @@ -4491,6 +4570,10 @@ enum nl80211_reg_rule_flags { |
| 866 | NL80211_RRF_NO_320MHZ = 1<<18, |
| 867 | NL80211_RRF_NO_EHT = 1<<19, |
| 868 | NL80211_RRF_PSD = 1<<20, |
| 869 | + NL80211_RRF_DFS_CONCURRENT = 1<<21, |
| 870 | + NL80211_RRF_NO_6GHZ_VLP_CLIENT = 1<<22, |
| 871 | + NL80211_RRF_NO_6GHZ_AFC_CLIENT = 1<<23, |
| 872 | + NL80211_RRF_ALLOW_6GHZ_VLP_AP = 1<<24, |
| 873 | }; |
| 874 | |
| 875 | #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR |
| 876 | @@ -4499,6 +4582,8 @@ enum nl80211_reg_rule_flags { |
| 877 | #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\ |
| 878 | NL80211_RRF_NO_HT40PLUS) |
| 879 | #define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT |
| 880 | +#define NL80211_RRF_NO_UHB_VLP_CLIENT NL80211_RRF_NO_6GHZ_VLP_CLIENT |
| 881 | +#define NL80211_RRF_NO_UHB_AFC_CLIENT NL80211_RRF_NO_6GHZ_AFC_CLIENT |
| 882 | |
| 883 | /* For backport compatibility with older userspace */ |
| 884 | #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS) |
| 885 | @@ -4645,8 +4730,8 @@ enum nl80211_mntr_flags { |
| 886 | * alternate between Active and Doze states, but may not wake up |
| 887 | * for neighbor's beacons. |
| 888 | * |
| 889 | - * @__NL80211_MESH_POWER_AFTER_LAST - internal use |
| 890 | - * @NL80211_MESH_POWER_MAX - highest possible power save level |
| 891 | + * @__NL80211_MESH_POWER_AFTER_LAST: internal use |
| 892 | + * @NL80211_MESH_POWER_MAX: highest possible power save level |
| 893 | */ |
| 894 | |
| 895 | enum nl80211_mesh_power_mode { |
| 896 | @@ -5027,6 +5112,36 @@ enum nl80211_bss_scan_width { |
| 897 | NL80211_BSS_CHAN_WIDTH_2, |
| 898 | }; |
| 899 | |
| 900 | +/** |
| 901 | + * enum nl80211_bss_use_for - bitmap indicating possible BSS use |
| 902 | + * @NL80211_BSS_USE_FOR_NORMAL: Use this BSS for normal "connection", |
| 903 | + * including IBSS/MBSS depending on the type. |
| 904 | + * @NL80211_BSS_USE_FOR_MLD_LINK: This BSS can be used as a link in an |
| 905 | + * MLO connection. Note that for an MLO connection, all links including |
| 906 | + * the assoc link must have this flag set, and the assoc link must |
| 907 | + * additionally have %NL80211_BSS_USE_FOR_NORMAL set. |
| 908 | + */ |
| 909 | +enum nl80211_bss_use_for { |
| 910 | + NL80211_BSS_USE_FOR_NORMAL = 1 << 0, |
| 911 | + NL80211_BSS_USE_FOR_MLD_LINK = 1 << 1, |
| 912 | +}; |
| 913 | + |
| 914 | +/** |
| 915 | + * enum nl80211_bss_cannot_use_reasons - reason(s) connection to a |
| 916 | + * BSS isn't possible |
| 917 | + * @NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY: NSTR nonprimary links aren't |
| 918 | + * supported by the device, and this BSS entry represents one. |
| 919 | + * @NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH: STA is not supporting |
| 920 | + * the AP power type (SP, VLP, AP) that the AP uses. |
| 921 | + */ |
| 922 | +enum nl80211_bss_cannot_use_reasons { |
| 923 | + NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1 << 0, |
| 924 | + NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 1 << 1, |
| 925 | +}; |
| 926 | + |
| 927 | +#define NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH \ |
| 928 | + NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH |
| 929 | + |
| 930 | /** |
| 931 | * enum nl80211_bss - netlink attributes for a BSS |
| 932 | * |
| 933 | @@ -5079,6 +5194,14 @@ enum nl80211_bss_scan_width { |
| 934 | * @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz |
| 935 | * @NL80211_BSS_MLO_LINK_ID: MLO link ID of the BSS (u8). |
| 936 | * @NL80211_BSS_MLD_ADDR: MLD address of this BSS if connected to it. |
| 937 | + * @NL80211_BSS_USE_FOR: u32 bitmap attribute indicating what the BSS can be |
| 938 | + * used for, see &enum nl80211_bss_use_for. |
| 939 | + * @NL80211_BSS_CANNOT_USE_REASONS: Indicates the reason that this BSS cannot |
| 940 | + * be used for all or some of the possible uses by the device reporting it, |
| 941 | + * even though its presence was detected. |
| 942 | + * This is a u64 attribute containing a bitmap of values from |
| 943 | + * &enum nl80211_cannot_use_reasons, note that the attribute may be missing |
| 944 | + * if no reasons are specified. |
| 945 | * @__NL80211_BSS_AFTER_LAST: internal |
| 946 | * @NL80211_BSS_MAX: highest BSS attribute |
| 947 | */ |
| 948 | @@ -5106,6 +5229,8 @@ enum nl80211_bss { |
| 949 | NL80211_BSS_FREQUENCY_OFFSET, |
| 950 | NL80211_BSS_MLO_LINK_ID, |
| 951 | NL80211_BSS_MLD_ADDR, |
| 952 | + NL80211_BSS_USE_FOR, |
| 953 | + NL80211_BSS_CANNOT_USE_REASONS, |
| 954 | |
| 955 | /* keep last */ |
| 956 | __NL80211_BSS_AFTER_LAST, |
| 957 | @@ -5454,7 +5579,7 @@ enum nl80211_tx_rate_setting { |
| 958 | * (%NL80211_TID_CONFIG_ATTR_TIDS, %NL80211_TID_CONFIG_ATTR_OVERRIDE). |
| 959 | * @NL80211_TID_CONFIG_ATTR_PEER_SUPP: same as the previous per-vif one, but |
| 960 | * per peer instead. |
| 961 | - * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribue, if set indicates |
| 962 | + * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribute, if set indicates |
| 963 | * that the new configuration overrides all previous peer |
| 964 | * configurations, otherwise previous peer specific configurations |
| 965 | * should be left untouched. |
| 966 | @@ -5626,7 +5751,7 @@ struct nl80211_pattern_support { |
| 967 | * "TCP connection wakeup" for more details. This is a nested attribute |
| 968 | * containing the exact information for establishing and keeping alive |
| 969 | * the TCP connection. |
| 970 | - * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the |
| 971 | + * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH: For wakeup reporting only, the |
| 972 | * wakeup packet was received on the TCP connection |
| 973 | * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the |
| 974 | * TCP connection was lost or failed to be established |
| 975 | @@ -5655,6 +5780,8 @@ struct nl80211_pattern_support { |
| 976 | * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one |
| 977 | * frequency, it means that the match occurred in more than one |
| 978 | * channel. |
| 979 | + * @NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC: For wakeup reporting only. |
| 980 | + * Wake up happened due to unprotected deauth or disassoc frame in MFP. |
| 981 | * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers |
| 982 | * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number |
| 983 | * |
| 984 | @@ -5682,6 +5809,7 @@ enum nl80211_wowlan_triggers { |
| 985 | NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS, |
| 986 | NL80211_WOWLAN_TRIG_NET_DETECT, |
| 987 | NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS, |
| 988 | + NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC, |
| 989 | |
| 990 | /* keep last */ |
| 991 | NUM_NL80211_WOWLAN_TRIG, |
| 992 | @@ -5837,7 +5965,7 @@ enum nl80211_attr_coalesce_rule { |
| 993 | |
| 994 | /** |
| 995 | * enum nl80211_coalesce_condition - coalesce rule conditions |
| 996 | - * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns |
| 997 | + * @NL80211_COALESCE_CONDITION_MATCH: coalesce Rx packets when patterns |
| 998 | * in a rule are matched. |
| 999 | * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns |
| 1000 | * in a rule are not matched. |
| 1001 | @@ -5936,7 +6064,7 @@ enum nl80211_if_combination_attrs { |
| 1002 | * enum nl80211_plink_state - state of a mesh peer link finite state machine |
| 1003 | * |
| 1004 | * @NL80211_PLINK_LISTEN: initial state, considered the implicit |
| 1005 | - * state of non existent mesh peer links |
| 1006 | + * state of non-existent mesh peer links |
| 1007 | * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to |
| 1008 | * this mesh peer |
| 1009 | * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received |
| 1010 | @@ -5972,7 +6100,7 @@ enum nl80211_plink_state { |
| 1011 | * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer |
| 1012 | * @NUM_NL80211_PLINK_ACTIONS: number of possible actions |
| 1013 | */ |
| 1014 | -enum plink_actions { |
| 1015 | +enum nl80211_plink_action { |
| 1016 | NL80211_PLINK_ACTION_NO_ACTION, |
| 1017 | NL80211_PLINK_ACTION_OPEN, |
| 1018 | NL80211_PLINK_ACTION_BLOCK, |
| 1019 | @@ -6229,7 +6357,7 @@ enum nl80211_feature_flags { |
| 1020 | * request to use RRM (see %NL80211_ATTR_USE_RRM) with |
| 1021 | * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set |
| 1022 | * the ASSOC_REQ_USE_RRM flag in the association request even if |
| 1023 | - * NL80211_FEATURE_QUIET is not advertized. |
| 1024 | + * NL80211_FEATURE_QUIET is not advertised. |
| 1025 | * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air |
| 1026 | * sniffer which means that it can be configured to hear packets from |
| 1027 | * certain groups which can be configured by the |
| 1028 | @@ -6241,13 +6369,15 @@ enum nl80211_feature_flags { |
| 1029 | * the BSS that the interface that requested the scan is connected to |
| 1030 | * (if available). |
| 1031 | * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the |
| 1032 | - * time the last beacon/probe was received. The time is the TSF of the |
| 1033 | - * BSS that the interface that requested the scan is connected to |
| 1034 | - * (if available). |
| 1035 | + * time the last beacon/probe was received. For a non-MLO connection, the |
| 1036 | + * time is the TSF of the BSS that the interface that requested the scan is |
| 1037 | + * connected to (if available). For an MLO connection, the time is the TSF |
| 1038 | + * of the BSS corresponding with link ID specified in the scan request (if |
| 1039 | + * specified). |
| 1040 | * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of |
| 1041 | * channel dwell time. |
| 1042 | * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate |
| 1043 | - * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate. |
| 1044 | + * configuration (AP/mesh), supporting a legacy (non-HT/VHT) rate. |
| 1045 | * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate |
| 1046 | * configuration (AP/mesh) with HT rates. |
| 1047 | * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate |
| 1048 | @@ -6297,6 +6427,7 @@ enum nl80211_feature_flags { |
| 1049 | * receiving control port frames over nl80211 instead of the netdevice. |
| 1050 | * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports |
| 1051 | * (average) ACK signal strength reporting. |
| 1052 | + * @NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: Backward-compatible ID |
| 1053 | * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate |
| 1054 | * TXQs. |
| 1055 | * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the |
| 1056 | @@ -6321,8 +6452,7 @@ enum nl80211_feature_flags { |
| 1057 | * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching |
| 1058 | * (set/del PMKSA operations) in AP mode. |
| 1059 | * |
| 1060 | - * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports |
| 1061 | - * filtering of sched scan results using band specific RSSI thresholds. |
| 1062 | + * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Obsolete |
| 1063 | * |
| 1064 | * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power |
| 1065 | * to a station. |
| 1066 | @@ -6426,6 +6556,16 @@ enum nl80211_feature_flags { |
| 1067 | * @NL80211_EXT_FEATURE_OWE_OFFLOAD_AP: Driver/Device wants to do OWE DH IE |
| 1068 | * handling in AP mode. |
| 1069 | * |
| 1070 | + * @NL80211_EXT_FEATURE_DFS_CONCURRENT: The device supports peer-to-peer or |
| 1071 | + * ad hoc operation on DFS channels under the control of a concurrent |
| 1072 | + * DFS master on the same channel as described in FCC-594280 D01 |
| 1073 | + * (Section B.3). This, for example, allows P2P GO and P2P clients to |
| 1074 | + * operate on DFS channels as long as there's a concurrent BSS connection. |
| 1075 | + * |
| 1076 | + * @NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT: The driver has support for SPP |
| 1077 | + * (signaling and payload protected) A-MSDUs and this shall be advertised |
| 1078 | + * in the RSNXE. |
| 1079 | + * |
| 1080 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 1081 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| 1082 | */ |
| 1083 | @@ -6467,7 +6607,7 @@ enum nl80211_ext_feature_index { |
| 1084 | NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER, |
| 1085 | NL80211_EXT_FEATURE_AIRTIME_FAIRNESS, |
| 1086 | NL80211_EXT_FEATURE_AP_PMKSA_CACHING, |
| 1087 | - NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, |
| 1088 | + NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, /* obsolete */ |
| 1089 | NL80211_EXT_FEATURE_EXT_KEY_ID, |
| 1090 | NL80211_EXT_FEATURE_STA_TX_PWR, |
| 1091 | NL80211_EXT_FEATURE_SAE_OFFLOAD, |
| 1092 | @@ -6499,6 +6639,8 @@ enum nl80211_ext_feature_index { |
| 1093 | NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA, |
| 1094 | NL80211_EXT_FEATURE_OWE_OFFLOAD, |
| 1095 | NL80211_EXT_FEATURE_OWE_OFFLOAD_AP, |
| 1096 | + NL80211_EXT_FEATURE_DFS_CONCURRENT, |
| 1097 | + NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT, |
| 1098 | |
| 1099 | /* add new features before the definition below */ |
| 1100 | NUM_NL80211_EXT_FEATURES, |
| 1101 | @@ -6583,7 +6725,7 @@ enum nl80211_timeout_reason { |
| 1102 | * request parameters IE in the probe request |
| 1103 | * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses |
| 1104 | * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at |
| 1105 | - * rate of at least 5.5M. In case non OCE AP is discovered in the channel, |
| 1106 | + * rate of at least 5.5M. In case non-OCE AP is discovered in the channel, |
| 1107 | * only the first probe req in the channel will be sent in high rate. |
| 1108 | * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request |
| 1109 | * tx deferral (dot11FILSProbeDelay shall be set to 15ms) |
| 1110 | @@ -6619,7 +6761,7 @@ enum nl80211_timeout_reason { |
| 1111 | * received on the 2.4/5 GHz channels to actively scan only the 6GHz |
| 1112 | * channels on which APs are expected to be found. Note that when not set, |
| 1113 | * the scan logic would scan all 6GHz channels, but since transmission of |
| 1114 | - * probe requests on non PSC channels is limited, it is highly likely that |
| 1115 | + * probe requests on non-PSC channels is limited, it is highly likely that |
| 1116 | * these channels would passively be scanned. Also note that when the flag |
| 1117 | * is set, in addition to the colocated APs, PSC channels would also be |
| 1118 | * scanned if the user space has asked for it. |
| 1119 | @@ -6669,6 +6811,8 @@ enum nl80211_acl_policy { |
| 1120 | * @NL80211_SMPS_STATIC: static SMPS (use a single antenna) |
| 1121 | * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and |
| 1122 | * turn on other antennas after CTS/RTS). |
| 1123 | + * @__NL80211_SMPS_AFTER_LAST: internal |
| 1124 | + * @NL80211_SMPS_MAX: highest used enumeration |
| 1125 | */ |
| 1126 | enum nl80211_smps_mode { |
| 1127 | NL80211_SMPS_OFF, |
| 1128 | @@ -6890,6 +7034,8 @@ enum nl80211_bss_select_attr { |
| 1129 | * @NL80211_NAN_FUNC_PUBLISH: function is publish |
| 1130 | * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe |
| 1131 | * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up |
| 1132 | + * @__NL80211_NAN_FUNC_TYPE_AFTER_LAST: internal use |
| 1133 | + * @NL80211_NAN_FUNC_MAX_TYPE: internal use |
| 1134 | */ |
| 1135 | enum nl80211_nan_function_type { |
| 1136 | NL80211_NAN_FUNC_PUBLISH, |
| 1137 | @@ -6951,7 +7097,7 @@ enum nl80211_nan_func_term_reason { |
| 1138 | * The instance ID for the follow up Service Discovery Frame. This is u8. |
| 1139 | * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type |
| 1140 | * is follow up. This is a u8. |
| 1141 | - * The requestor instance ID for the follow up Service Discovery Frame. |
| 1142 | + * The requester instance ID for the follow up Service Discovery Frame. |
| 1143 | * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the |
| 1144 | * follow up Service Discovery Frame. This is a binary attribute. |
| 1145 | * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a |
| 1146 | @@ -7050,7 +7196,7 @@ enum nl80211_nan_match_attributes { |
| 1147 | }; |
| 1148 | |
| 1149 | /** |
| 1150 | - * nl80211_external_auth_action - Action to perform with external |
| 1151 | + * enum nl80211_external_auth_action - Action to perform with external |
| 1152 | * authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION. |
| 1153 | * @NL80211_EXTERNAL_AUTH_START: Start the authentication. |
| 1154 | * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication. |
| 1155 | @@ -7068,7 +7214,7 @@ enum nl80211_external_auth_action { |
| 1156 | * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element |
| 1157 | * (9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10), |
| 1158 | * i.e. starting with the measurement token |
| 1159 | - * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element |
| 1160 | + * @NL80211_FTM_RESP_ATTR_CIVICLOC: The content of Measurement Report Element |
| 1161 | * (9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13), |
| 1162 | * i.e. starting with the measurement token |
| 1163 | * @__NL80211_FTM_RESP_ATTR_LAST: Internal |
| 1164 | @@ -7341,7 +7487,7 @@ enum nl80211_peer_measurement_attrs { |
| 1165 | * @NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED: flag attribute indicating if |
| 1166 | * trigger based ranging measurement is supported |
| 1167 | * @NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED: flag attribute indicating |
| 1168 | - * if non trigger based ranging measurement is supported |
| 1169 | + * if non-trigger-based ranging measurement is supported |
| 1170 | * |
| 1171 | * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal |
| 1172 | * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number |
| 1173 | @@ -7395,7 +7541,7 @@ enum nl80211_peer_measurement_ftm_capa { |
| 1174 | * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor |
| 1175 | * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based |
| 1176 | * ranging will be used. |
| 1177 | - * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non trigger based |
| 1178 | + * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non-trigger-based |
| 1179 | * ranging measurement (flag) |
| 1180 | * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED are |
| 1181 | * mutually exclusive. |
| 1182 | @@ -7473,7 +7619,7 @@ enum nl80211_peer_measurement_ftm_failure_reasons { |
| 1183 | * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames |
| 1184 | * transmitted (u32, optional) |
| 1185 | * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames |
| 1186 | - * that were acknowleged (u32, optional) |
| 1187 | + * that were acknowledged (u32, optional) |
| 1188 | * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the |
| 1189 | * busy peer (u32, seconds) |
| 1190 | * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent |
| 1191 | @@ -7711,6 +7857,7 @@ enum nl80211_sae_pwe_mechanism { |
| 1192 | * |
| 1193 | * @NL80211_SAR_TYPE_POWER: power limitation specified in 0.25dBm unit |
| 1194 | * |
| 1195 | + * @NUM_NL80211_SAR_TYPE: internal |
| 1196 | */ |
| 1197 | enum nl80211_sar_type { |
| 1198 | NL80211_SAR_TYPE_POWER, |
| 1199 | @@ -7724,6 +7871,8 @@ enum nl80211_sar_type { |
| 1200 | /** |
| 1201 | * enum nl80211_sar_attrs - Attributes for SAR spec |
| 1202 | * |
| 1203 | + * @__NL80211_SAR_ATTR_INVALID: Invalid |
| 1204 | + * |
| 1205 | * @NL80211_SAR_ATTR_TYPE: the SAR type as defined in &enum nl80211_sar_type. |
| 1206 | * |
| 1207 | * @NL80211_SAR_ATTR_SPECS: Nested array of SAR power |
| 1208 | @@ -7755,6 +7904,8 @@ enum nl80211_sar_attrs { |
| 1209 | /** |
| 1210 | * enum nl80211_sar_specs_attrs - Attributes for SAR power limit specs |
| 1211 | * |
| 1212 | + * @__NL80211_SAR_ATTR_SPECS_INVALID: Invalid |
| 1213 | + * |
| 1214 | * @NL80211_SAR_ATTR_SPECS_POWER: Required (s32)value to specify the actual |
| 1215 | * power limit value in units of 0.25 dBm if type is |
| 1216 | * NL80211_SAR_TYPE_POWER. (i.e., a value of 44 represents 11 dBm). |
| 1217 | @@ -7869,4 +8020,54 @@ enum nl80211_ap_settings_flags { |
| 1218 | NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 1 << 1, |
| 1219 | }; |
| 1220 | |
| 1221 | +/** |
| 1222 | + * enum nl80211_wiphy_radio_attrs - wiphy radio attributes |
| 1223 | + * |
| 1224 | + * @__NL80211_WIPHY_RADIO_ATTR_INVALID: Invalid |
| 1225 | + * |
| 1226 | + * @NL80211_WIPHY_RADIO_ATTR_INDEX: Index of this radio (u32) |
| 1227 | + * @NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE: Frequency range supported by this |
| 1228 | + * radio. Attribute may be present multiple times. |
| 1229 | + * @NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION: Supported interface |
| 1230 | + * combination for this radio. Attribute may be present multiple times |
| 1231 | + * and contains attributes defined in &enum nl80211_if_combination_attrs. |
| 1232 | + * |
| 1233 | + * @__NL80211_WIPHY_RADIO_ATTR_LAST: Internal |
| 1234 | + * @NL80211_WIPHY_RADIO_ATTR_MAX: Highest attribute |
| 1235 | + */ |
| 1236 | +enum nl80211_wiphy_radio_attrs { |
| 1237 | + __NL80211_WIPHY_RADIO_ATTR_INVALID, |
| 1238 | + |
| 1239 | + NL80211_WIPHY_RADIO_ATTR_INDEX, |
| 1240 | + NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE, |
| 1241 | + NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION, |
| 1242 | + |
| 1243 | + /* keep last */ |
| 1244 | + __NL80211_WIPHY_RADIO_ATTR_LAST, |
| 1245 | + NL80211_WIPHY_RADIO_ATTR_MAX = __NL80211_WIPHY_RADIO_ATTR_LAST - 1, |
| 1246 | +}; |
| 1247 | + |
| 1248 | +/** |
| 1249 | + * enum nl80211_wiphy_radio_freq_range - wiphy radio frequency range |
| 1250 | + * |
| 1251 | + * @__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID: Invalid |
| 1252 | + * |
| 1253 | + * @NL80211_WIPHY_RADIO_FREQ_ATTR_START: Frequency range start (u32). |
| 1254 | + * The unit is kHz. |
| 1255 | + * @NL80211_WIPHY_RADIO_FREQ_ATTR_END: Frequency range end (u32). |
| 1256 | + * The unit is kHz. |
| 1257 | + * |
| 1258 | + * @__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST: Internal |
| 1259 | + * @NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: Highest attribute |
| 1260 | + */ |
| 1261 | +enum nl80211_wiphy_radio_freq_range { |
| 1262 | + __NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID, |
| 1263 | + |
| 1264 | + NL80211_WIPHY_RADIO_FREQ_ATTR_START, |
| 1265 | + NL80211_WIPHY_RADIO_FREQ_ATTR_END, |
| 1266 | + |
| 1267 | + __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST, |
| 1268 | + NL80211_WIPHY_RADIO_FREQ_ATTR_MAX = __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST - 1, |
| 1269 | +}; |
| 1270 | + |
| 1271 | #endif /* __LINUX_NL80211_H */ |
| 1272 | -- |
| 1273 | 2.18.0 |
| 1274 | |