blob: 3ad3b4fd10c47aba31c2825c4a62e1cc07aca58b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/api/nl80211.h
2+++ b/api/nl80211.h
3@@ -11,7 +11,7 @@
4 * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com>
5 * Copyright 2008 Colin McCabe <colin@cozybit.com>
6 * Copyright 2015-2017 Intel Deutschland GmbH
7- * Copyright (C) 2018-2023 Intel Corporation
8+ * Copyright (C) 2018-2024 Intel Corporation
9 *
10 * Permission to use, copy, modify, and/or distribute this software for any
11 * purpose with or without fee is hereby granted, provided that the above
12@@ -72,7 +72,7 @@
13 * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS
14 * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows:
15 * - a setup station entry is added, not yet authorized, without any rate
16- * or capability information, this just exists to avoid race conditions
17+ * or capability information; this just exists to avoid race conditions
18 * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid
19 * to add rate and capability information to the station and at the same
20 * time mark it authorized.
21@@ -87,7 +87,7 @@
22 * DOC: Frame transmission/registration support
23 *
24 * Frame transmission and registration support exists to allow userspace
25- * management entities such as wpa_supplicant react to management frames
26+ * management entities such as wpa_supplicant to react to management frames
27 * that are not being handled by the kernel. This includes, for example,
28 * certain classes of action frames that cannot be handled in the kernel
29 * for various reasons.
30@@ -113,7 +113,7 @@
31 *
32 * Frame transmission allows userspace to send for example the required
33 * responses to action frames. It is subject to some sanity checking,
34- * but many frames can be transmitted. When a frame was transmitted, its
35+ * but many frames can be transmitted. When a frame is transmitted, its
36 * status is indicated to the sending socket.
37 *
38 * For more technical details, see the corresponding command descriptions
39@@ -123,7 +123,7 @@
40 /**
41 * DOC: Virtual interface / concurrency capabilities
42 *
43- * Some devices are able to operate with virtual MACs, they can have
44+ * Some devices are able to operate with virtual MACs; they can have
45 * more than one virtual interface. The capability handling for this
46 * is a bit complex though, as there may be a number of restrictions
47 * on the types of concurrency that are supported.
48@@ -135,7 +135,7 @@
49 * Once concurrency is desired, more attributes must be observed:
50 * To start with, since some interface types are purely managed in
51 * software, like the AP-VLAN type in mac80211 for example, there's
52- * an additional list of these, they can be added at any time and
53+ * an additional list of these; they can be added at any time and
54 * are only restricted by some semantic restrictions (e.g. AP-VLAN
55 * cannot be added without a corresponding AP interface). This list
56 * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute.
57@@ -164,17 +164,17 @@
58 * Packet coalesce feature helps to reduce number of received interrupts
59 * to host by buffering these packets in firmware/hardware for some
60 * predefined time. Received interrupt will be generated when one of the
61- * following events occur.
62+ * following events occurs.
63 * a) Expiration of hardware timer whose expiration time is set to maximum
64 * coalescing delay of matching coalesce rule.
65- * b) Coalescing buffer in hardware reaches it's limit.
66+ * b) Coalescing buffer in hardware reaches its limit.
67 * c) Packet doesn't match any of the configured coalesce rules.
68 *
69 * User needs to configure following parameters for creating a coalesce
70 * rule.
71 * a) Maximum coalescing delay
72 * b) List of packet patterns which needs to be matched
73- * c) Condition for coalescence. pattern 'match' or 'no match'
74+ * c) Condition for coalescence: pattern 'match' or 'no match'
75 * Multiple such rules can be created.
76 */
77
78@@ -213,7 +213,7 @@
79 /**
80 * DOC: FILS shared key authentication offload
81 *
82- * FILS shared key authentication offload can be advertized by drivers by
83+ * FILS shared key authentication offload can be advertised by drivers by
84 * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support
85 * FILS shared key authentication offload should be able to construct the
86 * authentication and association frames for FILS shared key authentication and
87@@ -239,7 +239,7 @@
88 * The PMKSA can be maintained in userspace persistently so that it can be used
89 * later after reboots or wifi turn off/on also.
90 *
91- * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS
92+ * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertised by a FILS
93 * capable AP supporting PMK caching. It specifies the scope within which the
94 * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and
95 * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based
96@@ -290,12 +290,12 @@
97 * If the configuration needs to be applied for specific peer then the MAC
98 * address of the peer needs to be passed in %NL80211_ATTR_MAC, otherwise the
99 * configuration will be applied for all the connected peers in the vif except
100- * any peers that have peer specific configuration for the TID by default; if
101- * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer specific values
102+ * any peers that have peer-specific configuration for the TID by default; if
103+ * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer-specific values
104 * will be overwritten.
105 *
106- * All this configuration is valid only for STA's current connection
107- * i.e. the configuration will be reset to default when the STA connects back
108+ * All this configuration is valid only for STA's current connection,
109+ * i.e., the configuration will be reset to default when the STA connects back
110 * after disconnection/roaming, and this configuration will be cleared when
111 * the interface goes down.
112 */
113@@ -326,7 +326,7 @@
114 /**
115 * DOC: Multi-Link Operation
116 *
117- * In Multi-Link Operation, a connection between to MLDs utilizes multiple
118+ * In Multi-Link Operation, a connection between two MLDs utilizes multiple
119 * links. To use this in nl80211, various commands and responses now need
120 * to or will include the new %NL80211_ATTR_MLO_LINKS attribute.
121 * Additionally, various commands that need to operate on a specific link
122@@ -335,6 +335,15 @@
123 */
124
125 /**
126+ * DOC: OWE DH IE handling offload
127+ *
128+ * By setting @NL80211_EXT_FEATURE_OWE_OFFLOAD flag, drivers can indicate
129+ * kernel/application space to avoid DH IE handling. When this flag is
130+ * advertised, the driver/device will take care of DH IE inclusion and
131+ * processing of peer DH IE to generate PMK.
132+ */
133+
134+/**
135 * enum nl80211_commands - supported nl80211 commands
136 *
137 * @NL80211_CMD_UNSPEC: unspecified command to catch errors
138@@ -404,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@@ -429,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@@ -466,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@@ -512,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@@ -543,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@@ -554,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@@ -598,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@@ -807,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@@ -879,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@@ -915,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@@ -1109,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@@ -1126,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@@ -1314,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@@ -1569,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@@ -1693,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@@ -1750,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@@ -1771,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@@ -1826,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@@ -1840,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@@ -1876,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@@ -1930,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@@ -1963,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@@ -2039,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@@ -2127,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@@ -2136,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@@ -2394,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@@ -2536,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@@ -2690,11 +2716,13 @@ enum nl80211_commands {
547 *
548 * @NL80211_ATTR_FILS_DISCOVERY: Optional parameter to configure FILS
549 * discovery. It is a nested attribute, see
550- * &enum nl80211_fils_discovery_attributes.
551+ * &enum nl80211_fils_discovery_attributes. Userspace should pass an empty
552+ * nested attribute to disable this feature and delete the templates.
553 *
554 * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure
555 * unsolicited broadcast probe response. It is a nested attribute, see
556- * &enum nl80211_unsol_bcast_probe_resp_attributes.
557+ * &enum nl80211_unsol_bcast_probe_resp_attributes. Userspace should pass an empty
558+ * nested attribute to disable this feature and delete the templates.
559 *
560 * @NL80211_ATTR_S1G_CAPABILITY: S1G Capability information element (from
561 * association request when used with NL80211_CMD_NEW_STATION)
562@@ -2815,6 +2843,34 @@ enum nl80211_commands {
563 * @NL80211_ATTR_MLO_LINK_DISABLED: Flag attribute indicating that the link is
564 * disabled.
565 *
566+ * @NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA: Include BSS usage data, i.e.
567+ * include BSSes that can only be used in restricted scenarios and/or
568+ * cannot be used at all.
569+ *
570+ * @NL80211_ATTR_MLO_TTLM_DLINK: Binary attribute specifying the downlink TID to
571+ * link mapping. The length is 8 * sizeof(u16). For each TID the link
572+ * mapping is as defined in section 9.4.2.314 (TID-To-Link Mapping element)
573+ * in Draft P802.11be_D4.0.
574+ * @NL80211_ATTR_MLO_TTLM_ULINK: Binary attribute specifying the uplink TID to
575+ * link mapping. The length is 8 * sizeof(u16). For each TID the link
576+ * mapping is as defined in section 9.4.2.314 (TID-To-Link Mapping element)
577+ * in Draft P802.11be_D4.0.
578+ *
579+ * @NL80211_ATTR_ASSOC_SPP_AMSDU: flag attribute used with
580+ * %NL80211_CMD_ASSOCIATE indicating the SPP A-MSDUs
581+ * are used on this connection
582+ *
583+ * @NL80211_ATTR_WIPHY_RADIOS: Nested attribute describing physical radios
584+ * belonging to this wiphy. See &enum nl80211_wiphy_radio_attrs.
585+ *
586+ * @NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS: Nested attribute listing the
587+ * supported interface combinations for all radios combined. In each
588+ * nested item, it contains attributes defined in
589+ * &enum nl80211_if_combination_attrs.
590+ *
591+ * @NL80211_ATTR_VIF_RADIO_MASK: Bitmask of allowed radios (u32).
592+ * A value of 0 means all radios.
593+ *
594 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
595 * @NL80211_ATTR_MAX: highest attribute number currently defined
596 * @__NL80211_ATTR_AFTER_LAST: internal use
597@@ -3353,6 +3409,18 @@ enum nl80211_attrs {
598
599 NL80211_ATTR_MLO_LINK_DISABLED,
600
601+ NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA,
602+
603+ NL80211_ATTR_MLO_TTLM_DLINK,
604+ NL80211_ATTR_MLO_TTLM_ULINK,
605+
606+ NL80211_ATTR_ASSOC_SPP_AMSDU,
607+
608+ NL80211_ATTR_WIPHY_RADIOS,
609+ NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS,
610+
611+ NL80211_ATTR_VIF_RADIO_MASK,
612+
613 /* add attributes here, update the policy in nl80211.c */
614
615 __NL80211_ATTR_AFTER_LAST,
616@@ -3493,6 +3561,7 @@ enum nl80211_iftype {
617 * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers
618 * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a
619 * previously added station into associated state
620+ * @NL80211_STA_FLAG_SPP_AMSDU: station supports SPP A-MSDUs
621 * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
622 * @__NL80211_STA_FLAG_AFTER_LAST: internal use
623 */
624@@ -3505,6 +3574,7 @@ enum nl80211_sta_flags {
625 NL80211_STA_FLAG_AUTHENTICATED,
626 NL80211_STA_FLAG_TDLS_PEER,
627 NL80211_STA_FLAG_ASSOCIATED,
628+ NL80211_STA_FLAG_SPP_AMSDU,
629
630 /* keep last */
631 __NL80211_STA_FLAG_AFTER_LAST,
632@@ -3515,7 +3585,7 @@ enum nl80211_sta_flags {
633 * enum nl80211_sta_p2p_ps_status - station support of P2P PS
634 *
635 * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism
636- * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism
637+ * @NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism
638 * @NUM_NL80211_P2P_PS_STATUS: number of values
639 */
640 enum nl80211_sta_p2p_ps_status {
641@@ -3553,9 +3623,9 @@ enum nl80211_he_gi {
642
643 /**
644 * enum nl80211_he_ltf - HE long training field
645- * @NL80211_RATE_INFO_HE_1xLTF: 3.2 usec
646- * @NL80211_RATE_INFO_HE_2xLTF: 6.4 usec
647- * @NL80211_RATE_INFO_HE_4xLTF: 12.8 usec
648+ * @NL80211_RATE_INFO_HE_1XLTF: 3.2 usec
649+ * @NL80211_RATE_INFO_HE_2XLTF: 6.4 usec
650+ * @NL80211_RATE_INFO_HE_4XLTF: 12.8 usec
651 */
652 enum nl80211_he_ltf {
653 NL80211_RATE_INFO_HE_1XLTF,
654@@ -3670,7 +3740,7 @@ enum nl80211_eht_ru_alloc {
655 * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier
656 * (u8, see &enum nl80211_he_gi)
657 * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1)
658- * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then
659+ * @NL80211_RATE_INFO_HE_RU_ALLOC: HE RU allocation, if not present then
660 * non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc)
661 * @NL80211_RATE_INFO_320_MHZ_WIDTH: 320 MHz bitrate
662 * @NL80211_RATE_INFO_EHT_MCS: EHT MCS index (u8, 0-15)
663@@ -3773,7 +3843,7 @@ enum nl80211_sta_bss_param {
664 * (u64, to this station)
665 * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
666 * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
667- * containing info as possible, see &enum nl80211_rate_info
668+ * containing info as possible, see &enum nl80211_rate_info
669 * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs)
670 * (u32, from this station)
671 * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs)
672@@ -3802,8 +3872,8 @@ enum nl80211_sta_bss_param {
673 * Contains a nested array of signal strength attributes (u8, dBm)
674 * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
675 * Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
676- * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
677- * 802.11 header (u32, kbps)
678+ * @NL80211_STA_INFO_EXPECTED_THROUGHPUT: expected throughput considering also
679+ * the 802.11 header (u32, kbps)
680 * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons
681 * (u64)
682 * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64)
683@@ -3989,7 +4059,7 @@ enum nl80211_mpath_flags {
684 * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path
685 * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now
686 * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in
687- * &enum nl80211_mpath_flags;
688+ * &enum nl80211_mpath_flags;
689 * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
690 * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries
691 * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination
692@@ -4129,7 +4199,7 @@ enum nl80211_band_attr {
693 * @NL80211_WMMR_CW_MAX: Maximum contention window slot.
694 * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space.
695 * @NL80211_WMMR_TXOP: Maximum allowed tx operation time.
696- * @nl80211_WMMR_MAX: highest possible wmm rule.
697+ * @NL80211_WMMR_MAX: highest possible wmm rule.
698 * @__NL80211_WMMR_LAST: Internal use.
699 */
700 enum nl80211_wmm_rule {
701@@ -4151,15 +4221,16 @@ enum nl80211_wmm_rule {
702 * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
703 * regulatory domain.
704 * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation
705- * are permitted on this channel, this includes sending probe
706- * requests, or modes of operation that require beaconing.
707+ * are permitted on this channel, this includes sending probe
708+ * requests, or modes of operation that require beaconing.
709+ * @__NL80211_FREQUENCY_ATTR_NO_IBSS: obsolete, same as _NO_IR
710 * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
711 * on this channel in current regulatory domain.
712 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
713 * (100 * dBm).
714 * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS
715 * (enum nl80211_dfs_state)
716- * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long
717+ * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in milliseconds for how long
718 * this channel is in this DFS state.
719 * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this
720 * channel as the control channel
721@@ -4213,6 +4284,21 @@ enum nl80211_wmm_rule {
722 * as the primary or any of the secondary channels isn't possible
723 * @NL80211_FREQUENCY_ATTR_NO_EHT: EHT operation is not allowed on this channel
724 * in current regulatory domain.
725+ * @NL80211_FREQUENCY_ATTR_PSD: Power spectral density (in dBm) that
726+ * is allowed on this channel in current regulatory domain.
727+ * @NL80211_FREQUENCY_ATTR_DFS_CONCURRENT: Operation on this channel is
728+ * allowed for peer-to-peer or adhoc communication under the control
729+ * of a DFS master which operates on the same channel (FCC-594280 D01
730+ * Section B.3). Should be used together with %NL80211_RRF_DFS only.
731+ * @NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT: Client connection to VLP AP
732+ * not allowed using this channel
733+ * @NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP
734+ * not allowed using this channel
735+ * @NL80211_FREQUENCY_ATTR_CAN_MONITOR: This channel can be used in monitor
736+ * mode despite other (regulatory) restrictions, even if the channel is
737+ * otherwise completely disabled.
738+ * @NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP: This channel can be used for a
739+ * very low power (VLP) AP, despite being NO_IR.
740 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
741 * currently defined
742 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
743@@ -4251,6 +4337,12 @@ enum nl80211_frequency_attr {
744 NL80211_FREQUENCY_ATTR_16MHZ,
745 NL80211_FREQUENCY_ATTR_NO_320MHZ,
746 NL80211_FREQUENCY_ATTR_NO_EHT,
747+ NL80211_FREQUENCY_ATTR_PSD,
748+ NL80211_FREQUENCY_ATTR_DFS_CONCURRENT,
749+ NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT,
750+ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT,
751+ NL80211_FREQUENCY_ATTR_CAN_MONITOR,
752+ NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP,
753
754 /* keep last */
755 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
756@@ -4263,6 +4355,10 @@ enum nl80211_frequency_attr {
757 #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR
758 #define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \
759 NL80211_FREQUENCY_ATTR_IR_CONCURRENT
760+#define NL80211_FREQUENCY_ATTR_NO_UHB_VLP_CLIENT \
761+ NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT
762+#define NL80211_FREQUENCY_ATTR_NO_UHB_AFC_CLIENT \
763+ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT
764
765 /**
766 * enum nl80211_bitrate_attr - bitrate attributes
767@@ -4285,16 +4381,16 @@ enum nl80211_bitrate_attr {
768 };
769
770 /**
771- * enum nl80211_initiator - Indicates the initiator of a reg domain request
772+ * enum nl80211_reg_initiator - Indicates the initiator of a reg domain request
773 * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world
774- * regulatory domain.
775+ * regulatory domain.
776 * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the
777- * regulatory domain.
778+ * regulatory domain.
779 * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the
780- * wireless core it thinks its knows the regulatory domain we should be in.
781+ * wireless core it thinks its knows the regulatory domain we should be in.
782 * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an
783- * 802.11 country information element with regulatory information it
784- * thinks we should consider. cfg80211 only processes the country
785+ * 802.11 country information element with regulatory information it
786+ * thinks we should consider. cfg80211 only processes the country
787 * code from the IE, and relies on the regulatory domain information
788 * structure passed by userspace (CRDA) from our wireless-regdb.
789 * If a channel is enabled but the country code indicates it should
790@@ -4313,11 +4409,11 @@ enum nl80211_reg_initiator {
791 * to a specific country. When this is set you can count on the
792 * ISO / IEC 3166 alpha2 country code being valid.
793 * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory
794- * domain.
795+ * domain.
796 * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom
797- * driver specific world regulatory domain. These do not apply system-wide
798- * and are only applicable to the individual devices which have requested
799- * them to be applied.
800+ * driver specific world regulatory domain. These do not apply system-wide
801+ * and are only applicable to the individual devices which have requested
802+ * them to be applied.
803 * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product
804 * of an intersection between two regulatory domains -- the previously
805 * set regulatory domain on the system and the last accepted regulatory
806@@ -4334,23 +4430,25 @@ enum nl80211_reg_type {
807 * enum nl80211_reg_rule_attr - regulatory rule attributes
808 * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved
809 * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
810- * considerations for a given frequency range. These are the
811- * &enum nl80211_reg_rule_flags.
812+ * considerations for a given frequency range. These are the
813+ * &enum nl80211_reg_rule_flags.
814 * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory
815- * rule in KHz. This is not a center of frequency but an actual regulatory
816- * band edge.
817+ * rule in KHz. This is not a center of frequency but an actual regulatory
818+ * band edge.
819 * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule
820- * in KHz. This is not a center a frequency but an actual regulatory
821- * band edge.
822+ * in KHz. This is not a center a frequency but an actual regulatory
823+ * band edge.
824 * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
825 * frequency range, in KHz.
826 * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
827- * for a given frequency range. The value is in mBi (100 * dBi).
828- * If you don't have one then don't send this.
829+ * for a given frequency range. The value is in mBi (100 * dBi).
830+ * If you don't have one then don't send this.
831 * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
832- * a given frequency range. The value is in mBm (100 * dBm).
833+ * a given frequency range. The value is in mBm (100 * dBm).
834 * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
835 * If not present or 0 default CAC time will be used.
836+ * @NL80211_ATTR_POWER_RULE_PSD: power spectral density (in dBm).
837+ * This could be negative.
838 * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
839 * currently defined
840 * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
841@@ -4368,6 +4466,8 @@ enum nl80211_reg_rule_attr {
842
843 NL80211_ATTR_DFS_CAC_TIME,
844
845+ NL80211_ATTR_POWER_RULE_PSD,
846+
847 /* keep last */
848 __NL80211_REG_RULE_ATTR_AFTER_LAST,
849 NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
850@@ -4396,14 +4496,7 @@ enum nl80211_reg_rule_attr {
851 * value as specified by &struct nl80211_bss_select_rssi_adjust.
852 * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching
853 * (this cannot be used together with SSID).
854- * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the
855- * band specific minimum rssi thresholds for the bands defined in
856- * enum nl80211_band. The minimum rssi threshold value(s32) specific to a
857- * band shall be encapsulated in attribute with type value equals to one
858- * of the NL80211_BAND_* defined in enum nl80211_band. For example, the
859- * minimum rssi threshold value for 2.4GHZ band shall be encapsulated
860- * within an attribute of type NL80211_BAND_2GHZ. And one or more of such
861- * attributes will be nested within this attribute.
862+ * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Obsolete
863 * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
864 * attribute number currently defined
865 * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
866@@ -4416,7 +4509,7 @@ enum nl80211_sched_scan_match_attr {
867 NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI,
868 NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST,
869 NL80211_SCHED_SCAN_MATCH_ATTR_BSSID,
870- NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI,
871+ NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI, /* obsolete */
872
873 /* keep last */
874 __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST,
875@@ -4438,8 +4531,9 @@ enum nl80211_sched_scan_match_attr {
876 * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
877 * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
878 * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed,
879- * this includes probe requests or modes of operation that require
880- * beaconing.
881+ * this includes probe requests or modes of operation that require
882+ * beaconing.
883+ * @__NL80211_RRF_NO_IBSS: obsolete, same as NO_IR
884 * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
885 * base on contiguous rules and wider channels will be allowed to cross
886 * multiple contiguous/overlapping frequency ranges.
887@@ -4451,6 +4545,15 @@ enum nl80211_sched_scan_match_attr {
888 * @NL80211_RRF_NO_HE: HE operation not allowed
889 * @NL80211_RRF_NO_320MHZ: 320MHz operation not allowed
890 * @NL80211_RRF_NO_EHT: EHT operation not allowed
891+ * @NL80211_RRF_PSD: Ruleset has power spectral density value
892+ * @NL80211_RRF_DFS_CONCURRENT: Operation on this channel is allowed for
893+ * peer-to-peer or adhoc communication under the control of a DFS master
894+ * which operates on the same channel (FCC-594280 D01 Section B.3).
895+ * Should be used together with %NL80211_RRF_DFS only.
896+ * @NL80211_RRF_NO_6GHZ_VLP_CLIENT: Client connection to VLP AP not allowed
897+ * @NL80211_RRF_NO_6GHZ_AFC_CLIENT: Client connection to AFC AP not allowed
898+ * @NL80211_RRF_ALLOW_6GHZ_VLP_AP: Very low power (VLP) AP can be permitted
899+ * despite NO_IR configuration.
900 */
901 enum nl80211_reg_rule_flags {
902 NL80211_RRF_NO_OFDM = 1<<0,
903@@ -4471,6 +4574,11 @@ enum nl80211_reg_rule_flags {
904 NL80211_RRF_NO_HE = 1<<17,
905 NL80211_RRF_NO_320MHZ = 1<<18,
906 NL80211_RRF_NO_EHT = 1<<19,
907+ NL80211_RRF_PSD = 1<<20,
908+ NL80211_RRF_DFS_CONCURRENT = 1<<21,
909+ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 1<<22,
910+ NL80211_RRF_NO_6GHZ_AFC_CLIENT = 1<<23,
911+ NL80211_RRF_ALLOW_6GHZ_VLP_AP = 1<<24,
912 };
913
914 #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
915@@ -4479,6 +4587,8 @@ enum nl80211_reg_rule_flags {
916 #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\
917 NL80211_RRF_NO_HT40PLUS)
918 #define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT
919+#define NL80211_RRF_NO_UHB_VLP_CLIENT NL80211_RRF_NO_6GHZ_VLP_CLIENT
920+#define NL80211_RRF_NO_UHB_AFC_CLIENT NL80211_RRF_NO_6GHZ_AFC_CLIENT
921
922 /* For backport compatibility with older userspace */
923 #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
924@@ -4593,6 +4703,7 @@ enum nl80211_survey_info {
925 * overrides all other flags.
926 * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
927 * and ACK incoming unicast packets.
928+ * @NL80211_MNTR_FLAG_SKIP_TX: do not pass local tx packets
929 *
930 * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
931 * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
932@@ -4605,6 +4716,7 @@ enum nl80211_mntr_flags {
933 NL80211_MNTR_FLAG_OTHER_BSS,
934 NL80211_MNTR_FLAG_COOK_FRAMES,
935 NL80211_MNTR_FLAG_ACTIVE,
936+ NL80211_MNTR_FLAG_SKIP_TX,
937
938 /* keep last */
939 __NL80211_MNTR_FLAG_AFTER_LAST,
940@@ -4625,8 +4737,8 @@ enum nl80211_mntr_flags {
941 * alternate between Active and Doze states, but may not wake up
942 * for neighbor's beacons.
943 *
944- * @__NL80211_MESH_POWER_AFTER_LAST - internal use
945- * @NL80211_MESH_POWER_MAX - highest possible power save level
946+ * @__NL80211_MESH_POWER_AFTER_LAST: internal use
947+ * @NL80211_MESH_POWER_MAX: highest possible power save level
948 */
949
950 enum nl80211_mesh_power_mode {
951@@ -5008,6 +5120,36 @@ enum nl80211_bss_scan_width {
952 };
953
954 /**
955+ * enum nl80211_bss_use_for - bitmap indicating possible BSS use
956+ * @NL80211_BSS_USE_FOR_NORMAL: Use this BSS for normal "connection",
957+ * including IBSS/MBSS depending on the type.
958+ * @NL80211_BSS_USE_FOR_MLD_LINK: This BSS can be used as a link in an
959+ * MLO connection. Note that for an MLO connection, all links including
960+ * the assoc link must have this flag set, and the assoc link must
961+ * additionally have %NL80211_BSS_USE_FOR_NORMAL set.
962+ */
963+enum nl80211_bss_use_for {
964+ NL80211_BSS_USE_FOR_NORMAL = 1 << 0,
965+ NL80211_BSS_USE_FOR_MLD_LINK = 1 << 1,
966+};
967+
968+/**
969+ * enum nl80211_bss_cannot_use_reasons - reason(s) connection to a
970+ * BSS isn't possible
971+ * @NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY: NSTR nonprimary links aren't
972+ * supported by the device, and this BSS entry represents one.
973+ * @NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH: STA is not supporting
974+ * the AP power type (SP, VLP, AP) that the AP uses.
975+ */
976+enum nl80211_bss_cannot_use_reasons {
977+ NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1 << 0,
978+ NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 1 << 1,
979+};
980+
981+#define NL80211_BSS_CANNOT_USE_UHB_PWR_MISMATCH \
982+ NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH
983+
984+/**
985 * enum nl80211_bss - netlink attributes for a BSS
986 *
987 * @__NL80211_BSS_INVALID: invalid
988@@ -5038,7 +5180,7 @@ enum nl80211_bss_scan_width {
989 * elements from a Beacon frame (bin); not present if no Beacon frame has
990 * yet been received
991 * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
992- * (u32, enum nl80211_bss_scan_width)
993+ * (u32, enum nl80211_bss_scan_width) - No longer used!
994 * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64)
995 * (not present if no beacon frame has been received yet)
996 * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and
997@@ -5059,6 +5201,14 @@ enum nl80211_bss_scan_width {
998 * @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz
999 * @NL80211_BSS_MLO_LINK_ID: MLO link ID of the BSS (u8).
1000 * @NL80211_BSS_MLD_ADDR: MLD address of this BSS if connected to it.
1001+ * @NL80211_BSS_USE_FOR: u32 bitmap attribute indicating what the BSS can be
1002+ * used for, see &enum nl80211_bss_use_for.
1003+ * @NL80211_BSS_CANNOT_USE_REASONS: Indicates the reason that this BSS cannot
1004+ * be used for all or some of the possible uses by the device reporting it,
1005+ * even though its presence was detected.
1006+ * This is a u64 attribute containing a bitmap of values from
1007+ * &enum nl80211_cannot_use_reasons, note that the attribute may be missing
1008+ * if no reasons are specified.
1009 * @__NL80211_BSS_AFTER_LAST: internal
1010 * @NL80211_BSS_MAX: highest BSS attribute
1011 */
1012@@ -5086,6 +5236,8 @@ enum nl80211_bss {
1013 NL80211_BSS_FREQUENCY_OFFSET,
1014 NL80211_BSS_MLO_LINK_ID,
1015 NL80211_BSS_MLD_ADDR,
1016+ NL80211_BSS_USE_FOR,
1017+ NL80211_BSS_CANNOT_USE_REASONS,
1018
1019 /* keep last */
1020 __NL80211_BSS_AFTER_LAST,
1021@@ -5434,7 +5586,7 @@ enum nl80211_tx_rate_setting {
1022 * (%NL80211_TID_CONFIG_ATTR_TIDS, %NL80211_TID_CONFIG_ATTR_OVERRIDE).
1023 * @NL80211_TID_CONFIG_ATTR_PEER_SUPP: same as the previous per-vif one, but
1024 * per peer instead.
1025- * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribue, if set indicates
1026+ * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribute, if set indicates
1027 * that the new configuration overrides all previous peer
1028 * configurations, otherwise previous peer specific configurations
1029 * should be left untouched.
1030@@ -5606,7 +5758,7 @@ struct nl80211_pattern_support {
1031 * "TCP connection wakeup" for more details. This is a nested attribute
1032 * containing the exact information for establishing and keeping alive
1033 * the TCP connection.
1034- * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the
1035+ * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH: For wakeup reporting only, the
1036 * wakeup packet was received on the TCP connection
1037 * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the
1038 * TCP connection was lost or failed to be established
1039@@ -5635,6 +5787,8 @@ struct nl80211_pattern_support {
1040 * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one
1041 * frequency, it means that the match occurred in more than one
1042 * channel.
1043+ * @NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC: For wakeup reporting only.
1044+ * Wake up happened due to unprotected deauth or disassoc frame in MFP.
1045 * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
1046 * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
1047 *
1048@@ -5662,6 +5816,7 @@ enum nl80211_wowlan_triggers {
1049 NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
1050 NL80211_WOWLAN_TRIG_NET_DETECT,
1051 NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
1052+ NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC,
1053
1054 /* keep last */
1055 NUM_NL80211_WOWLAN_TRIG,
1056@@ -5817,7 +5972,7 @@ enum nl80211_attr_coalesce_rule {
1057
1058 /**
1059 * enum nl80211_coalesce_condition - coalesce rule conditions
1060- * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns
1061+ * @NL80211_COALESCE_CONDITION_MATCH: coalesce Rx packets when patterns
1062 * in a rule are matched.
1063 * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns
1064 * in a rule are not matched.
1065@@ -5916,7 +6071,7 @@ enum nl80211_if_combination_attrs {
1066 * enum nl80211_plink_state - state of a mesh peer link finite state machine
1067 *
1068 * @NL80211_PLINK_LISTEN: initial state, considered the implicit
1069- * state of non existent mesh peer links
1070+ * state of non-existent mesh peer links
1071 * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to
1072 * this mesh peer
1073 * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received
1074@@ -5952,7 +6107,7 @@ enum nl80211_plink_state {
1075 * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer
1076 * @NUM_NL80211_PLINK_ACTIONS: number of possible actions
1077 */
1078-enum plink_actions {
1079+enum nl80211_plink_action {
1080 NL80211_PLINK_ACTION_NO_ACTION,
1081 NL80211_PLINK_ACTION_OPEN,
1082 NL80211_PLINK_ACTION_BLOCK,
1083@@ -6209,7 +6364,7 @@ enum nl80211_feature_flags {
1084 * request to use RRM (see %NL80211_ATTR_USE_RRM) with
1085 * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set
1086 * the ASSOC_REQ_USE_RRM flag in the association request even if
1087- * NL80211_FEATURE_QUIET is not advertized.
1088+ * NL80211_FEATURE_QUIET is not advertised.
1089 * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air
1090 * sniffer which means that it can be configured to hear packets from
1091 * certain groups which can be configured by the
1092@@ -6221,13 +6376,15 @@ enum nl80211_feature_flags {
1093 * the BSS that the interface that requested the scan is connected to
1094 * (if available).
1095 * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the
1096- * time the last beacon/probe was received. The time is the TSF of the
1097- * BSS that the interface that requested the scan is connected to
1098- * (if available).
1099+ * time the last beacon/probe was received. For a non-MLO connection, the
1100+ * time is the TSF of the BSS that the interface that requested the scan is
1101+ * connected to (if available). For an MLO connection, the time is the TSF
1102+ * of the BSS corresponding with link ID specified in the scan request (if
1103+ * specified).
1104 * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of
1105 * channel dwell time.
1106 * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate
1107- * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate.
1108+ * configuration (AP/mesh), supporting a legacy (non-HT/VHT) rate.
1109 * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate
1110 * configuration (AP/mesh) with HT rates.
1111 * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate
1112@@ -6277,6 +6434,7 @@ enum nl80211_feature_flags {
1113 * receiving control port frames over nl80211 instead of the netdevice.
1114 * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports
1115 * (average) ACK signal strength reporting.
1116+ * @NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: Backward-compatible ID
1117 * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate
1118 * TXQs.
1119 * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the
1120@@ -6301,8 +6459,7 @@ enum nl80211_feature_flags {
1121 * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching
1122 * (set/del PMKSA operations) in AP mode.
1123 *
1124- * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports
1125- * filtering of sched scan results using band specific RSSI thresholds.
1126+ * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Obsolete
1127 *
1128 * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power
1129 * to a station.
1130@@ -6400,6 +6557,22 @@ enum nl80211_feature_flags {
1131 * in authentication and deauthentication frames sent to unassociated peer
1132 * using @NL80211_CMD_FRAME.
1133 *
1134+ * @NL80211_EXT_FEATURE_OWE_OFFLOAD: Driver/Device wants to do OWE DH IE
1135+ * handling in station mode.
1136+ *
1137+ * @NL80211_EXT_FEATURE_OWE_OFFLOAD_AP: Driver/Device wants to do OWE DH IE
1138+ * handling in AP mode.
1139+ *
1140+ * @NL80211_EXT_FEATURE_DFS_CONCURRENT: The device supports peer-to-peer or
1141+ * ad hoc operation on DFS channels under the control of a concurrent
1142+ * DFS master on the same channel as described in FCC-594280 D01
1143+ * (Section B.3). This, for example, allows P2P GO and P2P clients to
1144+ * operate on DFS channels as long as there's a concurrent BSS connection.
1145+ *
1146+ * @NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT: The driver has support for SPP
1147+ * (signaling and payload protected) A-MSDUs and this shall be advertised
1148+ * in the RSNXE.
1149+ *
1150 * @NUM_NL80211_EXT_FEATURES: number of extended features.
1151 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
1152 */
1153@@ -6441,7 +6614,7 @@ enum nl80211_ext_feature_index {
1154 NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER,
1155 NL80211_EXT_FEATURE_AIRTIME_FAIRNESS,
1156 NL80211_EXT_FEATURE_AP_PMKSA_CACHING,
1157- NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,
1158+ NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, /* obsolete */
1159 NL80211_EXT_FEATURE_EXT_KEY_ID,
1160 NL80211_EXT_FEATURE_STA_TX_PWR,
1161 NL80211_EXT_FEATURE_SAE_OFFLOAD,
1162@@ -6471,6 +6644,10 @@ enum nl80211_ext_feature_index {
1163 NL80211_EXT_FEATURE_PUNCT,
1164 NL80211_EXT_FEATURE_SECURE_NAN,
1165 NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA,
1166+ NL80211_EXT_FEATURE_OWE_OFFLOAD,
1167+ NL80211_EXT_FEATURE_OWE_OFFLOAD_AP,
1168+ NL80211_EXT_FEATURE_DFS_CONCURRENT,
1169+ NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT,
1170
1171 /* add new features before the definition below */
1172 NUM_NL80211_EXT_FEATURES,
1173@@ -6555,7 +6732,7 @@ enum nl80211_timeout_reason {
1174 * request parameters IE in the probe request
1175 * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses
1176 * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at
1177- * rate of at least 5.5M. In case non OCE AP is discovered in the channel,
1178+ * rate of at least 5.5M. In case non-OCE AP is discovered in the channel,
1179 * only the first probe req in the channel will be sent in high rate.
1180 * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request
1181 * tx deferral (dot11FILSProbeDelay shall be set to 15ms)
1182@@ -6591,7 +6768,7 @@ enum nl80211_timeout_reason {
1183 * received on the 2.4/5 GHz channels to actively scan only the 6GHz
1184 * channels on which APs are expected to be found. Note that when not set,
1185 * the scan logic would scan all 6GHz channels, but since transmission of
1186- * probe requests on non PSC channels is limited, it is highly likely that
1187+ * probe requests on non-PSC channels is limited, it is highly likely that
1188 * these channels would passively be scanned. Also note that when the flag
1189 * is set, in addition to the colocated APs, PSC channels would also be
1190 * scanned if the user space has asked for it.
1191@@ -6641,6 +6818,8 @@ enum nl80211_acl_policy {
1192 * @NL80211_SMPS_STATIC: static SMPS (use a single antenna)
1193 * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and
1194 * turn on other antennas after CTS/RTS).
1195+ * @__NL80211_SMPS_AFTER_LAST: internal
1196+ * @NL80211_SMPS_MAX: highest used enumeration
1197 */
1198 enum nl80211_smps_mode {
1199 NL80211_SMPS_OFF,
1200@@ -6671,14 +6850,6 @@ enum nl80211_smps_mode {
1201 * applicable for ETSI dfs domain where pre-CAC is valid for ever.
1202 * @NL80211_RADAR_CAC_STARTED: Channel Availability Check has been started,
1203 * should be generated by HW if NL80211_EXT_FEATURE_DFS_OFFLOAD is enabled.
1204- * @NL80211_RADAR_BACKGROUND_CHAN_UPDATE: background channel is updated by the
1205- * driver.
1206- * @NL80211_RADAR_BACKGROUND_CHAN_EXPAND: background channel is updated by the
1207- * driver and required to expand main operating channel.
1208- * @NL80211_RADAR_STA_CAC_SKIPPED: STA set the DFS state to available
1209- * when receiving CSA/assoc resp
1210- * @NL80211_RADAR_STA_CAC_EXPIRED: STA set the DFS state to usable
1211- * when STA is disconnected or leaving the channel
1212 */
1213 enum nl80211_radar_event {
1214 NL80211_RADAR_DETECTED,
1215@@ -6687,10 +6858,6 @@ enum nl80211_radar_event {
1216 NL80211_RADAR_NOP_FINISHED,
1217 NL80211_RADAR_PRE_CAC_EXPIRED,
1218 NL80211_RADAR_CAC_STARTED,
1219- NL80211_RADAR_BACKGROUND_CHAN_UPDATE,
1220- NL80211_RADAR_BACKGROUND_CHAN_EXPAND,
1221- NL80211_RADAR_STA_CAC_SKIPPED,
1222- NL80211_RADAR_STA_CAC_EXPIRED,
1223 };
1224
1225 /**
1226@@ -6874,6 +7041,8 @@ enum nl80211_bss_select_attr {
1227 * @NL80211_NAN_FUNC_PUBLISH: function is publish
1228 * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe
1229 * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up
1230+ * @__NL80211_NAN_FUNC_TYPE_AFTER_LAST: internal use
1231+ * @NL80211_NAN_FUNC_MAX_TYPE: internal use
1232 */
1233 enum nl80211_nan_function_type {
1234 NL80211_NAN_FUNC_PUBLISH,
1235@@ -6935,7 +7104,7 @@ enum nl80211_nan_func_term_reason {
1236 * The instance ID for the follow up Service Discovery Frame. This is u8.
1237 * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type
1238 * is follow up. This is a u8.
1239- * The requestor instance ID for the follow up Service Discovery Frame.
1240+ * The requester instance ID for the follow up Service Discovery Frame.
1241 * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the
1242 * follow up Service Discovery Frame. This is a binary attribute.
1243 * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a
1244@@ -7034,7 +7203,7 @@ enum nl80211_nan_match_attributes {
1245 };
1246
1247 /**
1248- * nl80211_external_auth_action - Action to perform with external
1249+ * enum nl80211_external_auth_action - Action to perform with external
1250 * authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION.
1251 * @NL80211_EXTERNAL_AUTH_START: Start the authentication.
1252 * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication.
1253@@ -7052,7 +7221,7 @@ enum nl80211_external_auth_action {
1254 * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element
1255 * (9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10),
1256 * i.e. starting with the measurement token
1257- * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element
1258+ * @NL80211_FTM_RESP_ATTR_CIVICLOC: The content of Measurement Report Element
1259 * (9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13),
1260 * i.e. starting with the measurement token
1261 * @__NL80211_FTM_RESP_ATTR_LAST: Internal
1262@@ -7325,7 +7494,7 @@ enum nl80211_peer_measurement_attrs {
1263 * @NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED: flag attribute indicating if
1264 * trigger based ranging measurement is supported
1265 * @NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED: flag attribute indicating
1266- * if non trigger based ranging measurement is supported
1267+ * if non-trigger-based ranging measurement is supported
1268 *
1269 * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal
1270 * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number
1271@@ -7379,7 +7548,7 @@ enum nl80211_peer_measurement_ftm_capa {
1272 * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor
1273 * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based
1274 * ranging will be used.
1275- * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non trigger based
1276+ * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non-trigger-based
1277 * ranging measurement (flag)
1278 * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED are
1279 * mutually exclusive.
1280@@ -7457,7 +7626,7 @@ enum nl80211_peer_measurement_ftm_failur
1281 * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames
1282 * transmitted (u32, optional)
1283 * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames
1284- * that were acknowleged (u32, optional)
1285+ * that were acknowledged (u32, optional)
1286 * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the
1287 * busy peer (u32, seconds)
1288 * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent
1289@@ -7618,7 +7787,7 @@ enum nl80211_iftype_akm_attributes {
1290 * @NL80211_FILS_DISCOVERY_ATTR_INT_MIN: Minimum packet interval (u32, TU).
1291 * Allowed range: 0..10000 (TU = Time Unit)
1292 * @NL80211_FILS_DISCOVERY_ATTR_INT_MAX: Maximum packet interval (u32, TU).
1293- * Allowed range: 0..10000 (TU = Time Unit)
1294+ * Allowed range: 0..10000 (TU = Time Unit). If set to 0, the feature is disabled.
1295 * @NL80211_FILS_DISCOVERY_ATTR_TMPL: Template data for FILS discovery action
1296 * frame including the headers.
1297 *
1298@@ -7631,7 +7800,6 @@ enum nl80211_fils_discovery_attributes {
1299 NL80211_FILS_DISCOVERY_ATTR_INT_MIN,
1300 NL80211_FILS_DISCOVERY_ATTR_INT_MAX,
1301 NL80211_FILS_DISCOVERY_ATTR_TMPL,
1302- NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INTE,
1303
1304 /* keep last */
1305 __NL80211_FILS_DISCOVERY_ATTR_LAST,
1306@@ -7652,7 +7820,8 @@ enum nl80211_fils_discovery_attributes {
1307 *
1308 * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT: Maximum packet interval (u32, TU).
1309 * Allowed range: 0..20 (TU = Time Unit). IEEE P802.11ax/D6.0
1310- * 26.17.2.3.2 (AP behavior for fast passive scanning).
1311+ * 26.17.2.3.2 (AP behavior for fast passive scanning). If set to 0, the feature is
1312+ * disabled.
1313 * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL: Unsolicited broadcast probe response
1314 * frame template (binary).
1315 *
1316@@ -7695,6 +7864,7 @@ enum nl80211_sae_pwe_mechanism {
1317 *
1318 * @NL80211_SAR_TYPE_POWER: power limitation specified in 0.25dBm unit
1319 *
1320+ * @NUM_NL80211_SAR_TYPE: internal
1321 */
1322 enum nl80211_sar_type {
1323 NL80211_SAR_TYPE_POWER,
1324@@ -7708,6 +7878,8 @@ enum nl80211_sar_type {
1325 /**
1326 * enum nl80211_sar_attrs - Attributes for SAR spec
1327 *
1328+ * @__NL80211_SAR_ATTR_INVALID: Invalid
1329+ *
1330 * @NL80211_SAR_ATTR_TYPE: the SAR type as defined in &enum nl80211_sar_type.
1331 *
1332 * @NL80211_SAR_ATTR_SPECS: Nested array of SAR power
1333@@ -7739,6 +7911,8 @@ enum nl80211_sar_attrs {
1334 /**
1335 * enum nl80211_sar_specs_attrs - Attributes for SAR power limit specs
1336 *
1337+ * @__NL80211_SAR_ATTR_SPECS_INVALID: Invalid
1338+ *
1339 * @NL80211_SAR_ATTR_SPECS_POWER: Required (s32)value to specify the actual
1340 * power limit value in units of 0.25 dBm if type is
1341 * NL80211_SAR_TYPE_POWER. (i.e., a value of 44 represents 11 dBm).
1342@@ -7853,4 +8027,54 @@ enum nl80211_ap_settings_flags {
1343 NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 1 << 1,
1344 };
1345
1346+/**
1347+ * enum nl80211_wiphy_radio_attrs - wiphy radio attributes
1348+ *
1349+ * @__NL80211_WIPHY_RADIO_ATTR_INVALID: Invalid
1350+ *
1351+ * @NL80211_WIPHY_RADIO_ATTR_INDEX: Index of this radio (u32)
1352+ * @NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE: Frequency range supported by this
1353+ * radio. Attribute may be present multiple times.
1354+ * @NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION: Supported interface
1355+ * combination for this radio. Attribute may be present multiple times
1356+ * and contains attributes defined in &enum nl80211_if_combination_attrs.
1357+ *
1358+ * @__NL80211_WIPHY_RADIO_ATTR_LAST: Internal
1359+ * @NL80211_WIPHY_RADIO_ATTR_MAX: Highest attribute
1360+ */
1361+enum nl80211_wiphy_radio_attrs {
1362+ __NL80211_WIPHY_RADIO_ATTR_INVALID,
1363+
1364+ NL80211_WIPHY_RADIO_ATTR_INDEX,
1365+ NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE,
1366+ NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION,
1367+
1368+ /* keep last */
1369+ __NL80211_WIPHY_RADIO_ATTR_LAST,
1370+ NL80211_WIPHY_RADIO_ATTR_MAX = __NL80211_WIPHY_RADIO_ATTR_LAST - 1,
1371+};
1372+
1373+/**
1374+ * enum nl80211_wiphy_radio_freq_range - wiphy radio frequency range
1375+ *
1376+ * @__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID: Invalid
1377+ *
1378+ * @NL80211_WIPHY_RADIO_FREQ_ATTR_START: Frequency range start (u32).
1379+ * The unit is kHz.
1380+ * @NL80211_WIPHY_RADIO_FREQ_ATTR_END: Frequency range end (u32).
1381+ * The unit is kHz.
1382+ *
1383+ * @__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST: Internal
1384+ * @NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: Highest attribute
1385+ */
1386+enum nl80211_wiphy_radio_freq_range {
1387+ __NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID,
1388+
1389+ NL80211_WIPHY_RADIO_FREQ_ATTR_START,
1390+ NL80211_WIPHY_RADIO_FREQ_ATTR_END,
1391+
1392+ __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST,
1393+ NL80211_WIPHY_RADIO_FREQ_ATTR_MAX = __NL80211_WIPHY_RADIO_FREQ_ATTR_LAST - 1,
1394+};
1395+
1396 #endif /* __LINUX_NL80211_H */
1397--- a/iwinfo_nl80211.c
1398+++ b/iwinfo_nl80211.c
1399@@ -37,6 +37,11 @@
1400
1401 static struct nl80211_state *nls = NULL;
1402
1403+struct nl80211_if_data {
1404+ int mode;
1405+ int radio_idx;
1406+};
1407+
1408 static void nl80211_close(void)
1409 {
1410 if (nls)
1411@@ -862,7 +867,7 @@ static char * nl80211_phy2ifname(const c
1412
1413 static int nl80211_get_mode_cb(struct nl_msg *msg, void *arg)
1414 {
1415- int *mode = arg;
1416+ struct nl80211_if_data *data = arg;
1417 struct nlattr **tb = nl80211_parse(msg);
1418 const int ifmodes[NL80211_IFTYPE_MAX + 1] = {
1419 IWINFO_OPMODE_UNKNOWN, /* unspecified */
1420@@ -878,37 +883,57 @@ static int nl80211_get_mode_cb(struct nl
1421 };
1422
1423 if (tb[NL80211_ATTR_IFTYPE])
1424- *mode = ifmodes[nla_get_u32(tb[NL80211_ATTR_IFTYPE])];
1425+ data->mode = ifmodes[nla_get_u32(tb[NL80211_ATTR_IFTYPE])];
1426+
1427+ if (tb[NL80211_ATTR_VIF_RADIO_MASK]) {
1428+ uint32_t mask = nla_get_u32(tb[NL80211_ATTR_VIF_RADIO_MASK]);
1429+
1430+ for (int i = 0; mask && i < 32; i++, mask >>= 1)
1431+ if (mask & 1)
1432+ data->radio_idx = i;
1433+ }
1434
1435 return NL_SKIP;
1436 }
1437
1438
1439-static int nl80211_get_mode(const char *ifname, int *buf)
1440+static int nl80211_get_if_data(const char *ifname, struct nl80211_if_data *data)
1441 {
1442 char *res;
1443
1444- *buf = IWINFO_OPMODE_UNKNOWN;
1445-
1446 res = nl80211_phy2ifname(ifname);
1447
1448+ data->mode = IWINFO_OPMODE_UNKNOWN;
1449+ data->radio_idx = -1;
1450 nl80211_request(res ? res : ifname, NL80211_CMD_GET_INTERFACE, 0,
1451- nl80211_get_mode_cb, buf);
1452+ nl80211_get_mode_cb, data);
1453
1454- return (*buf == IWINFO_OPMODE_UNKNOWN) ? -1 : 0;
1455+ return (data->mode == IWINFO_OPMODE_UNKNOWN) ? -1 : 0;
1456+}
1457+
1458+static int nl80211_get_mode(const char *ifname, int *buf)
1459+{
1460+ struct nl80211_if_data data = {};
1461+ int ret;
1462+
1463+ ret = nl80211_get_if_data(ifname, &data);
1464+ *buf = data.mode;
1465+
1466+ return ret;
1467 }
1468
1469 static int __nl80211_hostapd_query(const char *ifname, ...)
1470 {
1471+ struct nl80211_if_data data = {};
1472 va_list ap, ap_cur;
1473 char *phy, *search, *dest, *key, *val, buf[128];
1474- int len, mode, found = 0, match = 1;
1475+ int len, found = 0, match = 1;
1476 FILE *fp;
1477
1478- if (nl80211_get_mode(ifname, &mode))
1479+ if (nl80211_get_if_data(ifname, &data))
1480 return 0;
1481
1482- if (mode != IWINFO_OPMODE_MASTER && mode != IWINFO_OPMODE_AP_VLAN)
1483+ if (data.mode != IWINFO_OPMODE_MASTER && data.mode != IWINFO_OPMODE_AP_VLAN)
1484 return 0;
1485
1486 phy = nl80211_ifname2phy(ifname);
1487@@ -916,7 +941,10 @@ static int __nl80211_hostapd_query(const
1488 if (!phy)
1489 return 0;
1490
1491- snprintf(buf, sizeof(buf), "/var/run/hostapd-%s.conf", phy);
1492+ if (data.radio_idx >= 0)
1493+ snprintf(buf, sizeof(buf), "/var/run/hostapd-%s.%d.conf", phy, data.radio_idx);
1494+ else
1495+ snprintf(buf, sizeof(buf), "/var/run/hostapd-%s.conf", phy);
1496 fp = fopen(buf, "r");
1497
1498 if (!fp)