blob: 3cc2f93c6618d4c75e73c96c83d932c02282ee14 [file] [log] [blame]
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001/*
2 * Qualcomm Atheros OUI and vendor specific assignments
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08003 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
Hai Shalom899fcc72020-10-19 14:38:18 -07004 * Copyright (c) 2018-2020, The Linux Foundation
Sunil Ravi036cec52023-03-29 11:35:17 -07005 * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08006 *
7 * This software may be distributed under the terms of the BSD license.
8 * See README for more details.
9 */
10
11#ifndef QCA_VENDOR_H
12#define QCA_VENDOR_H
13
14/*
15 * This file is a registry of identifier assignments from the Qualcomm Atheros
16 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
17 * can be assigned through normal review process for changes to the upstream
18 * hostap.git repository.
19 */
20
21#define OUI_QCA 0x001374
22
Hai Shalomfdcde762020-04-02 11:19:20 -070023#ifndef BIT
24#define BIT(x) (1U << (x))
25#endif
26
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080027/**
Dmitry Shmidtf9bdef92014-04-25 10:46:36 -070028 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
29 */
30enum qca_radiotap_vendor_ids {
31 QCA_RADIOTAP_VID_WLANTEST = 0,
32};
33
34/**
Sunil Ravi7f769292024-07-23 22:21:32 +000035 * DOC: TX/RX NSS and chain configurations
36 * This document describes all of the attributes used in the vendor command
37 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure the number of
38 * spatial streams (NSS) and the number of chains used for transmitting (TX) and
39 * receiving (RX) the data.
40 *
41 * Global NSS configuration - Applies to all bands (2.4 GHz and 5/6 GHz)
42 * The following attributes are used to dynamically configure the number of
43 * spatial streams to be used for transmitting or receiving the data in the
44 * 2.4 GHz and 5/6 GHz bands. When configured in disconnected state, the
45 * updated configuration will be considered for the immediately following
46 * connection attempt. If the NSS is updated during a connection, the updated
47 * NSS value is notified to the peer using operating mode notification/spatial
48 * multiplexing power save frame. The updated NSS value after the connection
49 * shall not be greater than the one negotiated during the connection. The
50 * driver rejects any such higher value configuration with a failure.
51 *
52 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NSS: Only symmetric NSS configuration
53 * (such as 2X2 or 1X1) can be done using this attribute.
54 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS: Configure NSS for transmitting the data
55 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS: Configure NSS for receiving the data
56 *
57 * The QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS
58 * attributes must be defined together or the driver will reject the command
59 * with a failure. They can be used to configure either symmetric NSS
60 * configuration (such as 2X2 or 1X1) or asymmetric configuration (such as 1X2).
61 *
62 * Per band NSS configuration - Applies to the 2.4 GHz or 5/6 GHz band
63 * The following attributes are used to dynamically configure the number of
64 * spatial streams to be used for transmitting or receiving the data in the
65 * 2.4 GHz band or 5/6 GHz band. All these attributes must be defined together
66 * to configure symmetric NSS configuration (such as 1X1 or 2X2) or asymmetric
67 * NSS configuration (such as 1X2). If any of the attributes is missing, the
68 * driver will reject the command with a failure. This configuration is allowed
69 * only when in connected state and will be effective until disconnected. The
70 * NSS value configured after the connection shall not be greater than the value
71 * negotiated during the connection. Any such higher value configuration shall
72 * be treated as invalid configuration by the driver.
73 *
74 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ: Configure TX_NSS in 2.4 GHz band
75 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ: Configure RX_NSS in 2.4 GHz band
76 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ: Configure TX_NSS in 5 or 6 GHz band
77 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ: Configure RX_NSS in 5 or 6 GHz band
78 *
79 * Global chain configuration - Applies to all bands (2.4 GHz and 5/6 GHz)
80 * The following attributes are used to dynamically configure the number of
81 * chains to be used for transmitting or receiving the data in the 2.4 GHz and
82 * 5/6 GHz bands. This configuration is allowed only when in connected state
83 * and will be effective until disconnected. The driver rejects this
84 * configuration if the number of spatial streams being used in the current
85 * connection cannot be supported by this configuration.
86 *
87 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS: The number of chains to be used
88 * for transmitting the data in both the 2.4 GHz and 5/6 GHz bands.
89 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS: The number of chains to be used
90 * for receiving the data in both the 2.4 GHz and 5/6 GHz bands.
91 *
92 * The attributes QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS and
93 * QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS must be defined together or the
94 * driver will reject the command with a failure.
95 *
96 * Per band chain configuration - Applies to the 2.4 GHz or 5/6 GHz band
97 * The following band specific attributes are used to dynamically configure the
98 * number of chains to be used for tranmissting or receiving the data in the
99 * 2.4 GHz or 5/6 GHz band. These attributes must be defined together or the
100 * driver will reject the command. This configuration is allowed only when in
101 * connected state and will be effective until disconnected. The driver rejects
102 * this configuration if the number of spatial streams being used in the
103 * current connection cannot be supported by this configuration.
104 *
105 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ: The number of chains to be
106 * used for transmitting the data in the 2.4 GHz band.
107 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ: The number of chains to be
108 * used for receiving the data in the 2.4 GHz band.
109 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ: The number of chains to be
110 * used for transmitting the data in the 5/6 GHz band.
111 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ: The number of chains to be
112 * used for receiving the data in the 5/6 GHz band.
113 *
114 * The following scenarios capture how the driver process the configuration when
115 * different TX/RX NSS and chain config attributes are used in the command.
116 *
117 * Case 1: CONFIG_NSS + CONFIG_TX_NSS/RX_NSS - Only CONFIG_NSS is applied
118 * since only one of the TX_NSS or RX_NSS attribute is present.
119 *
120 * Case 2: CONFIG_NSS + CONFIG_TX_NSS + CONFIG_RX_NSS - Same NSS values are
121 * used to configure TX,RX in both the 2.4 GHz and 5/6 GHz bands.
122 *
123 * Case 3: Case 2 + NUM_TX_CHAINS + NUM_RX_CHAINS - The NSS and the number of
124 * chains values are used to configure TX,RX in both the 2.4 GHz and 5/6 GHz
125 * bands.
126 *
127 * Case 4: TX_NSS_2GHZ/TX_NSS_5GHZ + RX_NSS_2GHZ/RX_NSS_5GHZ - Since per band
128 * TX/RX NSS attribute is missing, the driver rejects the command.
129 *
130 * Case 5: TX_NSS_2GHZ + TX_NSS_5GHZ + RX_NSS_2GHZ + RX_NSS_5GHZ - The 2.4 GHz
131 * band is configured with the TX_NSS_2GHZ, RX_NSS_2GHZ values. The 5/6 GHz band
132 * is configured with the TX_NSS_5GHZ, RX_NSS_5GHZ values.
133 *
134 * Case 6: TX_CHAINS_2GHZ/TX_CHAINS_5GHZ + RX_CHAINS_5GHZ/RX_CHAINS_5GHZ - Since
135 * per band TX/RX chains attribute is missing, the driver rejects the command.
136 *
137 * Case 7: TX_CHAINS_2GHZ + TX_CHAINS_5GHZ + RX_CHAINS_5GHZ + RX_CHAINS_5GHZ -
138 * The 2.4 GHz band is configured with the TX_CHAINS_2GHZ, RX_CHAINS_2GHZ
139 * values. The 5/6 GHz band is configured with the TX_CHAINS_5GHZ,
140 * RX_CHAINS_5GHZ values.
141 *
142 * Case 8: Case 5 + Case 7 - Per band TX,RX NSS and chains are configured.
143 *
144 * Case 9: Case 2 + Case 8 - Per band TX,RX NSS and chains are configured.
145 */
146
147/**
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800148 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
149 *
150 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
151 *
152 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
153 *
Dmitry Shmidt661b4f72014-09-29 14:58:27 -0700154 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
155 * internal BSS-selection. This command uses
156 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
157 * for the current connection (i.e., changes policy set by the nl80211
158 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
159 * included to indicate which BSS to use in case roaming is disabled.
160 *
Dmitry Shmidtcf32e602014-01-28 10:57:39 -0800161 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
162 * ranges to avoid to reduce issues due to interference or internal
Hai Shalom74f70d42019-02-11 14:42:39 -0800163 * co-existence information in the driver. These frequencies aim to
164 * minimize the traffic but not to totally avoid the traffic. That said
165 * for a P2P use case, these frequencies are allowed for the P2P
166 * discovery/negotiation but avoid the group to get formed on these
167 * frequencies. The event data structure is defined in
168 * struct qca_avoid_freq_list.
Dmitry Shmidtd11f0192014-03-24 12:09:47 -0700169 *
170 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
171 * for DFS offloading.
Dmitry Shmidt21de2142014-04-08 10:50:52 -0700172 *
173 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
174 * NAN Request/Response and NAN Indication messages. These messages are
Hai Shalomce48b4a2018-09-05 11:41:35 -0700175 * interpreted between the framework and the firmware component. While
176 * sending the command from userspace to the driver, payload is not
177 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
178 * is used when receiving vendor events in userspace from the driver.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800179 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +0000180 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
181 * capability or to form a session with the specified peer.
182 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
183 * indicates to enable TDLS capability on the interface.
184 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
185 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
186 * form a TDLS session with the specified peer MAC address.
187 * The attributes used with this command are defined in
188 * enum qca_wlan_vendor_attr_tdls_enable.
189 *
190 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
191 * capability or to terminate the session with the specified peer.
192 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
193 * indicates to disable TDLS capability on the interface.
194 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
195 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
196 * terminate TDLS session with the specified peer MAC address.
197 * The attributes used with this command are defined in
198 * enum qca_wlan_vendor_attr_tdls_disable.
199 *
200 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
201 * status at the interface level or with the specific peer.
202 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
203 * indicates the TDLS status query is at interface level.
204 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
205 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
206 * get TDLS session status with the specified peer MAC address.
207 * The attributes used with this command are defined in
208 * enum qca_wlan_vendor_attr_tdls_get_status.
209 *
210 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
211 * of the TDLS session request with the peer sent by userspace in
212 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
213 * The attributes used with this command are defined in
214 * enum qca_wlan_vendor_attr_tdls_state.
215 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800216 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
217 * used to configure PMK to the driver even when not connected. This can
218 * be used to request offloading of key management operations. Only used
219 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
220 *
221 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
222 * NL80211_CMD_ROAM event with optional attributes including information
223 * from offloaded key management operation. Uses
224 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
225 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
226 *
227 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
228 * invoke the ACS function in device and pass selected channels to
Hai Shalomc3565922019-10-28 11:58:20 -0700229 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -0800230 *
231 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
232 * supported by the driver. enum qca_wlan_vendor_features defines
Sunil Ravic0f5d412024-09-11 22:12:49 +0000233 * the possible features that are encoded in
234 * QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS.
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800235 *
236 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
237 * which supports DFS offloading, to indicate a channel availability check
238 * start.
239 *
240 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
241 * which supports DFS offloading, to indicate a channel availability check
242 * completion.
243 *
244 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
245 * which supports DFS offloading, to indicate that the channel availability
246 * check aborted, no change to the channel status.
247 *
248 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
249 * driver, which supports DFS offloading, to indicate that the
250 * Non-Occupancy Period for this channel is over, channel becomes usable.
251 *
252 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
253 * which supports DFS offloading, to indicate a radar pattern has been
254 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700255 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700256 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
257 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
258 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +0000259 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
260 * configure various wiphy or interface level configurations. Attributes
261 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
262 * or more configuration attributes with a single command. The driver
263 * accepts the command only if all the configurations are known, otherwise
264 * it rejects the command. The driver returns success only if processing of
265 * all the configurations succeeds. The driver continues to process all the
266 * configurations even if processing of some configurations failed and
267 * returns the last error occurred while processing the failed
268 * configurations.
269 *
270 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
271 * get the current values of the various wiphy or interface level
272 * configurations. Attributes are defined in enum
273 * qca_wlan_vendor_attr_config. Userspace needs to specify the
274 * configuration attributes for which it wants to get the values in the
275 * command, there is no significance for the value sent in the attribute
276 * unless explicitly specified in the corresponding configuration
277 * attribute documentation. The driver accepts the command only if all the
278 * configurations are known, otherwise it rejects the command. The driver
279 * returns success only if fetching of all configuration values succeeds
280 * and indicates the configuration values in corresponding attributes in
281 * the response. The driver continues to process all the configurations
282 * even if processing of some configurations failed and returns the last
283 * error occurred while processing the failed configurations.
284 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700285 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
286 * based on enum wifi_logger_supported_features. Attributes defined in
287 * enum qca_wlan_vendor_attr_get_logger_features.
288 *
289 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
290 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
291 * attribute for this command. Attributes defined in
292 * enum qca_wlan_vendor_attr_wifi_logger_start.
293 *
294 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
295 * capabilities of the driver, parameters includes the attributes defined
296 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
297 *
298 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
299 * sending of certain periodic IP packet to firmware, attributes defined in
300 * enum qca_wlan_vendor_attr_offloaded_packets.
301 *
302 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
303 * monitoring, defines min and max RSSI which are configured for RSSI
304 * monitoring. Also used to notify the RSSI breach and provides the BSSID
305 * and RSSI value that was breached. Attributes defined in
306 * enum qca_wlan_vendor_attr_rssi_monitoring.
307 *
308 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
309 * Data Path (NDP) related operations, attributes defined in
310 * enum qca_wlan_vendor_attr_ndp_params.
311 *
312 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
313 * Neighbour Discovery offload, attributes defined in
314 * enum qca_wlan_vendor_attr_nd_offload.
315 *
316 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
317 * configuration parameter for BPF packet filter, attributes defined in
318 * enum qca_wlan_vendor_attr_packet_filter.
319 *
320 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
321 * maximum supported size, attributes defined in
322 * enum qca_wlan_vendor_drv_info.
323 *
324 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
325 * data about wake reasons and datapath IP statistics, attributes defined
326 * in enum qca_wlan_vendor_attr_wake_stats.
327 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700328 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
329 * for IEEE 802.11 communicating outside the context of a basic service
330 * set, called OCB command. Uses the attributes defines in
331 * enum qca_wlan_vendor_attr_ocb_set_config.
332 *
333 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
334 * UTC time. Use the attributes defines in
335 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
336 *
337 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
338 * sending OCB timing advert frames. Uses the attributes defines in
339 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
340 *
341 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
342 * OCB timing advert. Uses the attributes defines in
343 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
344 *
345 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
346 * timer value. Uses the attributes defines in
347 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
348 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800349 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
350 * link properties of the respective interface. As an event, is used
351 * to notify the connected station's status. The attributes for this
352 * command are defined in enum qca_wlan_vendor_attr_link_properties.
353 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700354 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
355 * to the driver. This command sets the band(s) through either the
356 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
357 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
358 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
359 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
360 * bit unsigned bitmask values. The allowed values for
361 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
362 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
363 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
364 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
365 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
366 * are included for backwards compatibility, the configurations through
367 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
368 * that support both attributes.
369 *
Hai Shalomc3565922019-10-28 11:58:20 -0700370 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
371 * DFS policy and channel hint for ACS operation. This command uses the
372 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
373 * enum qca_acs_dfs_mode.
374 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700375 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
376 * start the P2P Listen offload function in device and pass the listen
377 * channel, period, interval, count, device types, and vendor specific
378 * information elements to the device driver and firmware.
379 * Uses the attributes defines in
380 * enum qca_wlan_vendor_attr_p2p_listen_offload.
381 *
382 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
383 * indicate stop request/response of the P2P Listen offload function in
384 * device. As an event, it indicates either the feature stopped after it
385 * was already running or feature has actually failed to start. Uses the
386 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
387 *
388 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
389 * beaconing, this sub command provides the driver, the frequencies on the
390 * 5 GHz band to check for any radar activity. Driver selects one channel
391 * from this priority list provided through
392 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
393 * to check for radar activity on it. If no radar activity is detected
394 * during the channel availability check period, driver internally switches
395 * to the selected frequency of operation. If the frequency is zero, driver
396 * internally selects a channel. The status of this conditional switch is
397 * indicated through an event using the same sub command through
398 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
399 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700400 *
401 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
402 * attributes defined in enum qca_wlan_gpio_attr.
403 *
404 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
405 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
406 * capabilities are to be fetched and other
407 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
408 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700409 *
410 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
411 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
412 * command and event.
413 *
414 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
415 * indoor location features. Capabilities are reported in
416 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
417 *
418 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
419 * (fine timing measurement) session with one or more peers.
420 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
421 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
422 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
423 * events will be reported, followed by
424 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
425 * end of session.
426 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
427 *
428 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
429 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
430 * status code indicating session was aborted.
431 *
432 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
433 * results for one peer. Results are reported in
434 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
435 *
436 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
437 * FTM session is finished, either successfully or aborted by
438 * request.
439 *
440 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
441 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
442 * to enable or disable the responder. LCI/LCR reports can be
443 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
444 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
445 * times to update the LCI/LCR reports.
446 *
447 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
448 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800449 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
450 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
451 * scan results cache and use the frequency from there).
452 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
453 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700454 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
455 *
456 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
457 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
458 *
459 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
460 * the AOA measurement result.
461 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
462 * success/failure status is reported in
463 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
464 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
465 * The antenna array(s) used in the measurement are reported in
466 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700467 *
468 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
469 * data as per the given parameters.
470 *
471 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
472 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800473 *
474 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
475 * configuration for a DMG RF sector. Specify sector index in
476 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
477 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
478 * to return sector information for in
479 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
480 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
481 * exact time where information was captured in
482 * QCA_WLAN_VENDOR_ATTR_TSF.
483 *
484 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
485 * configuration for a DMG RF sector. Specify sector index in
486 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
487 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
488 * for one or more DMG RF modules in
489 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
490 *
491 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
492 * DMG RF sector for a station. This is the sector that the HW
493 * will use to communicate with the station. Specify the MAC address
494 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
495 * needed for unassociated station). Specify sector type to return in
496 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
497 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
498 * Also return the exact time where the information was captured
499 * in QCA_WLAN_VENDOR_ATTR_TSF.
500 *
501 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
502 * selected DMG RF sector for a station. This is the sector that
503 * the HW will use to communicate with the station.
504 * Specify the MAC address of associated station/AP/PCP in
505 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
506 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
507 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
508 * The selected sector will be locked such that it will not be
509 * modified like it normally does (for example when station
510 * moves around). To unlock the selected sector for a station
511 * pass the special value 0xFFFF in the sector index. To unlock
512 * all connected stations also pass a broadcast MAC address.
513 *
514 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
515 * in the host driver. The different TDLS configurations are defined
516 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800517 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800518 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
519 * capabilities. The response uses the attributes defined in
520 * enum qca_wlan_vendor_attr_get_he_capabilities.
521 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800522 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
523 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
524 * carries the scan cookie of the corresponding scan request. The scan
525 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800526 *
527 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
528 * Absorption Rate (SAR) power limits. A critical regulation for
529 * FCC compliance, OEMs require methods to set SAR limits on TX
530 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
531 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800532 *
533 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
534 * host driver for offloading the implementation of Auto Channel Selection
535 * (ACS) to an external user space entity. This interface is used as the
536 * event from the host driver to the user space entity and also as the
537 * request from the user space entity to the host driver. The event from
538 * the host driver is used by the user space entity as an indication to
539 * start the ACS functionality. The attributes used by this event are
540 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
541 * User space entity uses the same interface to inform the host driver with
542 * selected channels after the ACS operation using the attributes defined
543 * by enum qca_wlan_vendor_attr_external_acs_channels.
544 *
545 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
546 * requisite information leading to a power save failure. The information
547 * carried as part of this event is represented by the
548 * enum qca_attr_chip_power_save_failure attributes.
549 *
550 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
551 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
552 *
553 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
554 * statistics are represented by the enum qca_attr_nud_stats_get
555 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800556 *
557 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
558 * the BSS transition status, whether accept or reject, for a list of
559 * candidate BSSIDs provided by the userspace. This uses the vendor
560 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
561 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
562 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
563 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
564 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
565 * the driver shall specify array of
566 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
567 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
568 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
569 *
570 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
571 * specific QCA module. The trace levels are represented by
572 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700573 *
574 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
575 * Protocol antenna limit in different modes. See enum
576 * qca_wlan_vendor_attr_brp_ant_limit_mode.
577 *
578 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
579 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
580 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700581 * identifying the operation in success case. In failure cases an
582 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
583 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700584 *
585 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
586 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
587 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
588 * be stopped.
589 *
590 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
591 * specific interface. This can be used to modify some of the low level
592 * scan parameters (off channel dwell time, home channel time) in the
593 * driver/firmware. These parameters are maintained within the host driver.
594 * This command is valid only when the interface is in the connected state.
595 * These scan parameters shall be reset by the driver/firmware once
596 * disconnected. The attributes used with this command are defined in
597 * enum qca_wlan_vendor_attr_active_tos.
598 *
599 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
600 * driver has detected an internal failure. This event carries the
601 * information indicating the reason that triggered this detection. The
602 * attributes for this command are defined in
603 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700604 *
605 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
606 * of spectral parameters used. The spectral scan parameters are specified
607 * by enum qca_wlan_vendor_attr_spectral_scan.
608 *
609 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
610 * for spectral scan functionality. The debug stats are specified by
611 * enum qca_wlan_vendor_attr_spectral_diag_stats.
612 *
613 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
614 * scan system capabilities. The capabilities are specified
615 * by enum qca_wlan_vendor_attr_spectral_cap.
616 *
617 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
618 * status of spectral scan. The status values are specified
619 * by enum qca_wlan_vendor_attr_spectral_scan_status.
620 *
621 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
622 * peer pending packets. Specify the peer MAC address in
623 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
624 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
625 * in enum qca_wlan_vendor_attr_flush_pending.
626 *
627 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
628 * RF Operating Parameter (RROP) information. The attributes for this
629 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
630 * intended for use by external Auto Channel Selection applications.
631 *
632 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
633 * (SAR) power limits. This is a companion to the command
634 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
635 * settings currently in use. The attributes returned by this command are
636 * defined by enum qca_vendor_attr_sar_limits.
637 *
638 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
639 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
640 * information attached to the respective MAC.
641 * This works both as a query (user space asks the current mode) or event
642 * interface (driver advertising the current mode to the user space).
643 * Driver does not trigger this event for temporary hardware mode changes.
644 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
645 * channel change, etc.) are updated with this event. Attributes for this
646 * interface are defined in enum qca_wlan_vendor_attr_mac.
647 *
648 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
649 * per peer per TID. Attributes for this command are define in
650 * enum qca_wlan_set_qdepth_thresh_attr.
651 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
652 * guide for WLAN driver. Request to suspend of driver and FW if the
653 * temperature is higher than the suspend threshold; resume action is
654 * requested to driver if the temperature is lower than the resume
655 * threshold. In user poll mode, request temperature data by user. For test
656 * purpose, getting thermal shutdown configuration parameters is needed.
657 * Attributes for this interface are defined in
658 * enum qca_wlan_vendor_attr_thermal_cmd.
659 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
660 * driver. Thermal temperature and indication of resume completion are
661 * reported as thermal events. The attributes for this command are defined
662 * in enum qca_wlan_vendor_attr_thermal_event.
663 *
664 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
665 * test configuration. Attributes for this command are defined in
666 * enum qca_wlan_vendor_attr_wifi_test_config.
667 *
668 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
669 * RX filter to receive frames from stations that are active on the
670 * operating channel, but not associated with the local device (e.g., STAs
671 * associated with other APs). Filtering is done based on a list of BSSIDs
672 * and STA MAC addresses added by the user. This command is also used to
673 * fetch the statistics of unassociated stations. The attributes used with
674 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700675 *
676 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
677 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
678 * carried a payload which was a binary blob of data. The command was not
679 * extendable to send more information. The newer version carries the
680 * legacy blob encapsulated within an attribute and can be extended with
681 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800682 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
683 * or stopped within driver/firmware in order to initiate roaming. The
684 * attributes used with this event are defined in enum
685 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
686 * in few cases, e.g., if the host processor is sleeping when this event
687 * is generated in firmware.
688 *
689 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
690 * configure parameters per peer to capture Channel Frequency Response
691 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800692 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
693 * can also be used to send CFR data from the driver to userspace when
694 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800695 *
696 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
697 * in throughput dynamically. The driver estimates the throughput based on
698 * number of packets being transmitted/received per second and indicates
699 * the changes in throughput to user space. Userspace tools can use this
700 * information to configure kernel's TCP parameters in order to achieve
701 * peak throughput. Optionally, the driver will also send guidance on
702 * modifications to kernel's TCP parameters which can be referred by
703 * userspace tools. The attributes used with this event are defined in enum
704 * qca_wlan_vendor_attr_throughput_change.
705 *
706 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
707 * priorities among different types of traffic during coex scenarios.
708 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
709 * profiles mentioned in enum qca_coex_config_profiles. The associated
710 * attributes used with this command are defined in enum
711 * qca_vendor_attr_coex_config.
712 *
713 * Based on the config provided, FW will boost the weight and prioritize
714 * the traffic for that subsystem (WLAN/BT/Zigbee).
715 *
716 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
717 * the supported AKM suite selectorss from the driver. It returns the list
718 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700719 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
720 * state from the driver. It returns the firmware state in the attribute
721 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
722 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
723 * is used by the driver to flush per-peer cached statistics to user space
724 * application. This interface is used as an event from the driver to
725 * user space application. Attributes for this event are specified in
726 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
727 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
728 * sent in the event.
729 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
730 * improve the success rate of Zigbee joining network.
731 * Due to PTA master limitation, Zigbee joining network success rate is
732 * low while WLAN is working. The WLAN driver needs to configure some
733 * parameters including Zigbee state and specific WLAN periods to enhance
734 * PTA master. All these parameters are delivered by the attributes
735 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700736 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
737 * implement Beacon frame reporting feature.
738 *
739 * Userspace can request the driver/firmware to periodically report
740 * received Beacon frames whose BSSID is same as the current connected
741 * BSS's MAC address.
742 *
743 * In case the STA seamlessly (without sending disconnect indication to
744 * userspace) roams to a different BSS, Beacon frame reporting will be
745 * automatically enabled for the Beacon frames whose BSSID is same as the
746 * MAC address of the new BSS. Beacon reporting will be stopped when the
747 * STA is disconnected (when the disconnect indication is sent to
748 * userspace) and need to be explicitly enabled by userspace for next
749 * connection.
750 *
751 * When a Beacon frame matching configured conditions is received, and if
752 * userspace has requested to send asynchronous beacon reports, the
753 * driver/firmware will encapsulate the details of the Beacon frame in an
754 * event and send it to userspace along with updating the BSS information
755 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
756 * scan cache with the information from the received Beacon frame but will
757 * not send any active report to userspace.
758 *
759 * The userspace can request the driver/firmware to stop reporting Beacon
760 * frames. If the driver/firmware is not able to receive Beacon frames due
761 * to other Wi-Fi operations such as off-channel activities, etc., the
762 * driver/firmware will send a pause event to userspace and stop reporting
763 * Beacon frames. Whether the beacon reporting will be automatically
764 * resumed or not by the driver/firmware later will be reported to
765 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
766 * flag. The beacon reporting shall be resumed for all the cases except
767 * either when userspace sets
768 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
769 * which triggered the current beacon reporting or during any disconnection
770 * case as indicated by setting
771 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
772 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
773 * driver.
774 *
775 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
776 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
777 * flag not set, the next first
778 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
779 * shall be considered as un-pause event.
780 *
781 * All the attributes used with this command are defined in
782 * enum qca_wlan_vendor_attr_beacon_reporting_params.
783 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
784 * interop issues with the DUT. This sub command is used to transfer the
785 * AP info between the driver and user space. This works both as a command
786 * and an event. As a command, it configures the stored list of APs from
787 * user space to firmware; as an event, it indicates the AP info detected
788 * by the firmware to user space for persistent storage. The attributes
789 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
790 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700791 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
792 * send/receive OEM data binary blobs to/from application/service to/from
793 * firmware. The attributes defined in enum
794 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
795 * parameters.
796 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
797 * to send/receive avoid frequency data using
798 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
799 * This new command is alternative to existing command
800 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
801 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800802 * attributes. User space sends unsafe frequency ranges to the driver using
803 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
804 * reception of this command, the driver shall check if an interface is
805 * operating on an unsafe frequency and the driver shall try to move to a
806 * safe channel when needed. If the driver is not able to find a safe
807 * channel the interface can keep operating on an unsafe channel with the
808 * TX power limit derived based on internal configurations like
809 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700810 *
811 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
812 * add the STA node details in driver/firmware. Attributes for this event
813 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
814 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
815 * coex chain mode from application/service.
816 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
817 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800818 *
819 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
820 * get information of a station from driver to userspace. This command can
821 * be used in both STA and AP modes. For STA mode, it provides information
822 * of the current association when in connected state or the last
823 * association when in disconnected state. For AP mode, only information
824 * of the currently connected stations is available. This command uses
825 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700826 *
827 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
828 * Host drivers can request the user space entity to set the SAR power
829 * limits with this event. Accordingly, the user space entity is expected
830 * to set the SAR power limits. Host drivers can retry this event to the
831 * user space for the SAR power limits configuration from user space. If
832 * the driver does not get the SAR power limits from user space for all
833 * the retried attempts, it can configure a default SAR power limit.
834 *
835 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
836 * is used to update the information about the station from the driver to
837 * userspace. Uses attributes from enum
838 * qca_wlan_vendor_attr_update_sta_info.
839 *
840 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
841 * The host driver initiates the disconnection for scenarios such as beacon
842 * miss, NUD failure, peer kick out, etc. The disconnection indication
843 * through cfg80211_disconnected() expects the reason codes from enum
844 * ieee80211_reasoncode which does not signify these various reasons why
845 * the driver has triggered the disconnection. This event will be used to
846 * send the driver specific reason codes by the host driver to userspace.
847 * Host drivers should trigger this event and pass the respective reason
848 * code immediately prior to triggering cfg80211_disconnected(). The
849 * attributes used with this event are defined in enum
850 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700851 *
852 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
853 * add/delete TSPEC for each AC. One command is for one specific AC only.
854 * This command can only be used in STA mode and the STA must be
855 * associated with an AP when the command is issued. Uses attributes
856 * defined in enum qca_wlan_vendor_attr_config_tspec.
857 *
858 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
859 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
860 *
861 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
862 * the driver. The band configurations obtained are referred through
863 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
864 *
865 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
866 * assessment.
867 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
868 *
869 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
870 * used to update SSID information in hostapd when it is updated in the
871 * driver. Uses the attribute NL80211_ATTR_SSID.
872 *
873 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
874 * the driver to send opaque data from the firmware to userspace. The
875 * driver sends an event to userspace whenever such data is received from
876 * the firmware.
877 *
878 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
879 * send this opaque data for this event.
880 *
881 * The format of the opaque data is specific to the particular firmware
882 * version and there is no guarantee of the format remaining same.
883 *
884 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
885 * The host driver selects Tx VDEV, and notifies user. The attributes
886 * used with this event are defined in enum
887 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800888 * This event contains Tx VDEV group information, other VDEVs
889 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700890 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000891 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
892 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800893 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000894 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800895 *
896 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
897 * to query usable channels for different interface types such as STA,
898 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
899 * channels in the response based on country code, different static
900 * configurations, concurrency combinations, etc. The attributes used
901 * with this command are defined in
902 * enum qca_wlan_vendor_attr_usable_channels.
903 *
904 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
905 * to get DFS radar history from the driver to userspace. The driver
906 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
907 * array of nested entries.
908 *
909 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
910 * enable/disable mDNS offload to the firmware. The attributes used with
911 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
912 *
913 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
914 * to set packet monitor mode that aims to send the specified set of TX and
915 * RX frames on the current client interface to an active monitor
916 * interface. If this monitor mode is set, the driver will send the
917 * configured frames, from the interface on which the command is issued, to
918 * an active monitor interface. The attributes used with this command are
919 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
920 *
921 * Though the monitor mode is configured for the respective
922 * Data/Management/Control frames, it is up to the respective WLAN
923 * driver/firmware/hardware designs to consider the possibility of sending
924 * these frames over the monitor interface. For example, the Control frames
925 * are handled within the hardware and thus passing such frames over the
926 * monitor interface is left to the respective designs.
927 *
928 * Also, this monitor mode is governed to behave accordingly in
929 * suspend/resume states. If the firmware handles any of such frames in
930 * suspend state without waking up the host and if the monitor mode is
931 * configured to notify all such frames, the firmware is expected to resume
932 * the host and forward the respective frames to the monitor interface.
933 * Please note that such a request to get the frames over the monitor
934 * interface will have a definite power implication.
935 *
936 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
937 * as a request to set the driver/firmware with the parameters to trigger
938 * the roaming events, and also used by the driver/firmware to pass on the
939 * various roam events to userspace.
940 * Applicable only for the STA mode. The attributes used with this command
941 * are defined in enum qca_wlan_vendor_attr_roam_events.
942 *
943 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
944 * rate mask config for a list of PHY types. Userspace shall provide an
945 * array of the vendor attributes defined in
946 * enum qca_wlan_vendor_attr_ratemask_params.
947 *
948 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
949 * when two interfaces are active on the same band, using two different
950 * home channels, and only supported by a single radio. In this scenario
951 * the device must split the use of the radio between the two interfaces.
952 * The percentage of time allocated to a given interface is the quota.
953 * Depending on the configuration, the quota can either be fixed or
954 * dynamic.
955 *
956 * When used as an event, the device will report the quota type, and for
957 * all interfaces operating in MCC it will report the current quota.
958 * When used as a command, the device can be configured for a specific
959 * quota type, and in the case of a fixed quota, the quota to apply to one
960 * of the interfaces.
961 *
962 * Applications can use the event to do TX bitrate control based on the
963 * information, and can use the command to explicitly set the quota to
964 * enhance performance in specific scenarios.
965 *
966 * The attributes used with this command are defined in
967 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000968 *
969 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
970 * get the WLAN radio combinations matrix supported by the device which
971 * provides the device simultaneous radio configurations such as
972 * standalone, dual band simultaneous, and single band simultaneous.
973 *
974 * The attributes used with this command are defined in
975 * enum qca_wlan_vendor_attr_radio_combination_matrix.
976 *
977 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
978 * that the driver is ready for operations again after recovering from
979 * internal failures. This occurs following a failure that was indicated by
980 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
981 *
982 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
983 * security negotiation and key generation to user space.
984 *
985 * When used as an event, the driver requests userspace to trigger the PASN
986 * authentication or dropping of a PTKSA for the indicated peer devices.
987 * When used as a command response, userspace indicates a consolidated
988 * status report for all the peers that were requested for.
989 *
990 * The attributes used with this command are defined in
991 * enum qca_wlan_vendor_attr_pasn.
992 *
993 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
994 * secure ranging context such as TK and LTF keyseed for each peer
995 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
996 *
997 * The attributes used with this command are defined in
998 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700999 *
1000 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
1001 * enable/disable offload processing in firmware during system/runtime
1002 * suspend for CoAP messages (see RFC7252: The Constrained Application
1003 * Protocol) and fetch information of the CoAP messages cached during
1004 * offload processing.
1005 *
1006 * The attributes used with this command are defined in
1007 * enum qca_wlan_vendor_attr_coap_offload.
1008 *
1009 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
1010 * (add, remove, or change) a Stream Classification Service (SCS) rule.
1011 *
1012 * The attributes used with this event are defined in
1013 * enum qca_wlan_vendor_attr_scs_rule_config.
1014 *
1015 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
1016 * supported by the WLAN firmware.
1017 *
1018 * The attributes used with this command are defined in
1019 * enum qca_wlan_vendor_attr_sar_capability.
1020 *
1021 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
1022 * (SR) feature. This command is used by userspace to configure SR
1023 * parameters to the driver and to get the SR related parameters and
1024 * statistics with synchronous responses from the driver.
1025 * The driver also uses this command to send asynchronous events to
1026 * userspace to indicate suspend/resume of SR feature and changes
1027 * in SR parameters.
1028 *
1029 * The attributes used with this command are defined in
1030 * enum qca_wlan_vendor_attr_sr.
Sunil Ravi77d572f2023-01-17 23:58:31 +00001031 *
1032 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
1033 * notify application layer about the primary netdev of an MLO connection.
1034 * In some implementations, MLO has multiple netdevs out of which one
1035 * netdev is designated as primary to provide a unified interface to the
1036 * bridge. In those implementations this event is sent on every MLO peer
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001037 * connection. User applications on an AP MLD will use this event to get
1038 * info for all the links from non-AP MLD that were negotiated to be used
1039 * for the ML association.
Sunil Ravi77d572f2023-01-17 23:58:31 +00001040 *
1041 * The attributes used with this event are defined in
1042 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
1043 *
1044 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
1045 * driver to notify different AFC events to userspace. The attributes used
1046 * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
1047 *
1048 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
1049 * userspace to deliver AFC response data to driver. The attributes used
1050 * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
1051 *
1052 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
1053 * operate in doze mode.
1054 *
1055 * Userspace uses this command to configure the AP interface to enter or
1056 * exit from doze mode. The driver sends this event after it enters or
1057 * exits the doze mode with the updated AP doze mode settings.
1058 *
1059 * The attributes used with this subcommand are defined in
1060 * enum qca_wlan_vendor_attr_dozed_ap.
1061 *
1062 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
1063 * to get the status of local packet capture of monitor mode. The monitor
1064 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
1065 * subcommand.
1066 *
1067 * The attributes used with this command are defined in enum
1068 * qca_wlan_vendor_attr_get_monitor_mode.
1069 *
1070 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
1071 * get roam information from the driver to user space. It provides the
1072 * latest several instances of roam information cached in the driver.
1073 * The command is only used for STA mode. The attributes used with this
1074 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
Sunil Ravi036cec52023-03-29 11:35:17 -07001075 *
1076 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
1077 * configure and fetch the state information of the MLO links affiliated
1078 * with the STA interface. The attributes used with this command are
1079 * defined in enum qca_wlan_vendor_attr_mlo_link_state.
Sunil Ravi640215c2023-06-28 23:08:09 +00001080 *
1081 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
1082 * vendor subcommand to trigger channel utilization measurement on entire
1083 * channel width of the connected channel(s). For MLO connection, connected
1084 * channel utilization measurement shall be done on all the MLO links.
1085 * The driver may use regular scan or wideband energy detection feature
1086 * based on the hardware capability for connected channel(s) utilization
1087 * measurement. The driver indicates the connected channel(s) utilization
1088 * measurement completion as an asynchronous event with this command ID to
1089 * userspace. Upon receiving this event, userspace can use
1090 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
1091 * connected channel(s) and can derive the channel utilization percentage
1092 * (CU) of each 20 MHz sub-channel of the entire connected channel using
1093 * %NL80211_CMD_GET_SURVEY response.
1094 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
1095 * This command is only used for STA mode.
1096 *
1097 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
1098 * used as an event to notify the userspace of TID-to-link map changes
1099 * negotiated by the driver or updated by associated AP MLD with Beacon,
1100 * Probe Response, or Action frames. The attributes used with this command
1101 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
1102 *
1103 * Note that the attribute
1104 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
1105 * the current connected AP MLD address.
1106 *
1107 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
1108 * of STA MLD setup links due to the AP MLD removing the corresponding
1109 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
1110 * links are removed during Multi-Link reconfiguration, the driver shall
1111 * use %NL80211_CMD_DISCONNECT instead of this command since it is a
1112 * connection drop. The attributes used with this command are defined in
1113 * enum qca_wlan_vendor_attr_link_reconfig.
1114 * Note that the attribute
1115 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
1116 * the current connected AP MLD address.
1117 *
1118 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
1119 * the driver with MLO link id information on which to transmit the TDLS
1120 * discovery response frame on the configured MLO BSS link when the
1121 * local station is connected in MLO mode. This command is sent to the
1122 * driver prior to the TDLS discovery response management transmit
1123 * operation and is followed immediately by the TDLS discovery response
1124 * management frame transmit command.
1125 *
1126 * The driver saves the configured MLO link id information and uses it for
1127 * the following TDLS discovery response frame transmission on the
1128 * configured MLO BSS link and the link id information is cleared in the
1129 * driver after the TDLS discovery response frame is successfully
1130 * transmitted. This behavior is indepent of the TDLS peer STA connection
1131 * mode (MLO or non-MLO).
1132 *
1133 * Uses the attributes defined in
1134 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001135 *
Sunil Ravic0f5d412024-09-11 22:12:49 +00001136 * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is
1137 * used to configure and indicate the audio transport switch in both
1138 * command and event paths. This is used when two or more audio transports
1139 * (e.g., WLAN and Bluetooth) are available between peers.
1140 *
1141 * If the driver needs to perform operations like scan, connection,
1142 * roaming, RoC, etc. and AP concurrency policy is set to either
1143 * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or
1144 * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends
1145 * audio transport switch event to userspace. Userspace application upon
1146 * receiving the event, can try to switch to the requested audio transport.
1147 * The userspace uses this command to send the status of transport
1148 * switching (either confirm or reject) to the driver using this
1149 * subcommand. The driver continues with the pending operation either upon
1150 * receiving the command from userspace or after waiting for a timeout from
1151 * sending the event to userspace. The driver can request userspace to
1152 * switch to WLAN upon availability of WLAN audio transport once after the
1153 * concurrent operations are completed.
1154 *
1155 * Userspace can also request audio transport switch from non-WLAN to WLAN
1156 * using this subcommand to the driver. The driver can accept or reject
1157 * depending on other concurrent operations in progress. The driver returns
1158 * success if it can allow audio transport when it receives the command or
1159 * appropriate kernel error code otherwise. Userspace indicates the audio
1160 * transport switch from WLAN to non-WLAN using this subcommand and the
1161 * driver can do other concurrent operations without needing to send any
1162 * event to userspace. This subcommand is used by userspace only when the
1163 * driver advertises support for
1164 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
1165 *
1166 * The attributes used with this command are defined in enum
1167 * qca_wlan_vendor_attr_audio_transport_switch.
1168 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001169 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
1170 * configure, retrieve, and report per-link transmit latency statistics.
1171 *
1172 * The attributes used with this subcommand are defined in
1173 * enum qca_wlan_vendor_attr_tx_latency.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001174 *
1175 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
1176 * query transmit power information on STA interface from the driver for a
1177 * connected AP. The attributes included in response are defined in
1178 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
1179 * TPC info may be returned. The information includes regulatory maximum
1180 * transmit power limit, AP local power constraint advertised from AP's
1181 * Beacon and Probe Response frames. For PSD power mode, the information
1182 * includes PSD power levels for each subchannel of operating bandwidth.
1183 * The information is driver calculated power limits based on the current
1184 * regulatory domain, AP local power constraint, and other IEs. The
1185 * information will be set to target. Target will decide the final TX power
1186 * based on this and chip specific power conformance test limits (CTL), and
1187 * SAR limits.
1188 *
1189 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
1190 * driver to user space which is carrying firmware page fault related
1191 * summary report. The attributes for this command are defined in
1192 * enum qca_wlan_vendor_attr_fw_page_fault_report.
1193 *
1194 * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver
1195 * to user space to disassociate with a peer based on the peer MAC address
1196 * provided. Specify the peer MAC address in
1197 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided.
Sunil Ravi99c035e2024-07-12 01:42:03 +00001198 *
1199 * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to
1200 * adjust transmit power. The attributes used with this subcommand are
1201 * defined in enum qca_wlan_vendor_attr_adjust_tx_power.
1202 *
1203 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the
1204 * driver to notify user application about the spectral scan completion.
1205 * The attributes used with this subcommand are defined in
1206 * enum qca_wlan_vendor_attr_spectral_scan_complete.
Sunil Ravi7f769292024-07-23 22:21:32 +00001207 *
1208 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION: Register for receiving
1209 * %NL80211_CMD_GET_STATION responses as unicast events when there are
1210 * %NL80211_CMD_GET_STATION requests from any userspace module on the same
1211 * interface index with which this command is sent. This command is also
1212 * used as the unicast event to indicate the %NL80211_CMD_GET_STATION
1213 * response. The attributes for this command are defined in
1214 * enum qca_wlan_vendor_async_get_station_attr.
1215 *
1216 * The driver will send the unicast events with same netlink port ID which
1217 * is used by userspace application for sending the registration command.
1218 * If multiple registration commands are received with different netlink
1219 * port IDs, the driver will send unicast events with each netlink port ID
1220 * separately.
1221 *
1222 * Userspace applications can deregister the unicast event reporting with
1223 * disable configuration. The registrations will be removed automatically
1224 * by the driver when the corresponding netlink socket is closed.
1225 *
1226 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND: Vendor command to put an AP interface
1227 * in suspend state. On enabling suspend, AP deauthenticates all associated
1228 * stations and stops TX/RX operations on the interface. The driver
1229 * retains the AP configuration and on resume, starts all TX/RX operations
1230 * with the same AP configuration.
1231 *
1232 * This subcommand is also used as an event to notify userspace about AP
1233 * suspended/resumed state changes.
1234 *
1235 * The attributes used with this command/event are defined in enum
1236 * qca_wlan_vendor_attr_ap_suspend.
1237 *
1238 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS: Event indication from the driver to
1239 * the userspace which contains all the statistics collected for a flow to
1240 * be classified. This event is sent if the userspace enables the
1241 * flow stats reporting via the command
1242 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY and when the driver has
1243 * collected the required flow statistics, as specified by the attributes
1244 * of this event. The attributes for this event are defined in
1245 * enum qca_wlan_vendor_attr_flow_stats.
1246 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT: This vendor command is used
1247 * to indicate the flow classification result based on the flow samples
1248 * received as a part of @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. The
1249 * attributes for this command are defined in the
1250 * enum qca_wlan_vendor_attr_flow_classify_result.
1251 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY: This vendor command is used to
1252 * indicate the ASYNC statistics policy from the userspace to the driver
1253 * and it contains the STATS type for which the command is intended. The
1254 * attributes for this command are defined in the
1255 * enum qca_wlan_vendor_attr_async_stats_policy.
1256 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT: Event indication from the
1257 * driver to the userspace containing all the samples of a classified
1258 * flow along with its classification result. This event is sent by the
1259 * driver to userspace when it receives classification result via the
1260 * command @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT and the
1261 * collection of these statistics has been enabled by the command
1262 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. The attributes for this
1263 * event are defined in enum qca_wlan_vendor_attr_flow_stats.
1264 *
1265 * @QCA_NL80211_VENDOR_SUBCMD_USD: Vendor subcommand to implement unsynchronized
1266 * service discovery (USD). Based on the type of the USD subcommand the USD
1267 * operation to publish, subscribe, update publish, cancel publish, or
1268 * cancel subscribe is triggered.
1269 *
1270 * When used as an event, the driver notifies the status of an USD command.
1271 *
1272 * The attributes used with this command are defined in
1273 * enum qca_wlan_vendor_attr_usd.
Sunil Ravic0f5d412024-09-11 22:12:49 +00001274 *
1275 * @QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT: This is an extension to
1276 * %NL80211_CMD_CONNECT command. Userspace can use this to indicate
1277 * additional information to be considered for the subsequent
1278 * (re)association request attempts with %NL80211_CMD_CONNECT. The
1279 * additional information sent with this command is applicable for the
1280 * entire duration of the connection established with %NL80211_CMD_CONNECT,
1281 * including the roams triggered by the driver internally due to other
1282 * vendor interfaces, driver internal logic, and BTM requests from the
1283 * connected AP.
1284 *
1285 * The attributes used with this command are defined in
1286 * enum qca_wlan_vendor_attr_connect_ext.
1287 *
1288 * @QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE: Vendor subcommand to configure
1289 * Wi-Fi Direct mode. This command sets the configuration through
1290 * the attributes defined in the enum qca_wlan_vendor_attr_set_p2p_mode.
1291 * It is applicable for P2P Group Owner only. This command is used before
1292 * starting the GO.
1293 *
1294 * @QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ: Vendor subcommand to request
1295 * transmission of a channel usage request. It carries channel usage
1296 * information for BSSs that are not infrastructure BSSs or an off channel
1297 * TDLS direct link.
1298 *
1299 * The attributes used with this command are defined in
1300 * enum qca_wlan_vendor_attr_chan_usage_req.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00001301 *
1302 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_SCAN_REPORT: Vendor subcommand that can be
1303 * used to fetch the current snapshot of scan data stored by firmware
1304 * during the offload scans such as PNO (Preferred Network Offload), RTT,
1305 * and roaming scans when the Apps or host is in suspended state. This scan
1306 * data comprises of only limited information of the scanned BSSs due to
1307 * memory limits of the firmware. The BSS information stored in the
1308 * firmware may not be pushed to the kernel (cfg80211) scan cache after
1309 * Apps or host coming out from suspended state if full Beacon or Probe
1310 * Response frame information is not available.
1311 *
1312 * The attributes used with this command are defined in
1313 * enum qca_wlan_vendor_attr_fw_scan_report.
1314 *
1315 * @QCA_NL80211_VENDOR_SUBCMD_IDLE_SHUTDOWN: If there are no active Wi-Fi
1316 * interfaces for a certain duration, the host driver might trigger idle
1317 * shutdown. The host driver rejects the user space commands between start
1318 * and completion of the idle shutdown. If a command is rejected, user
1319 * space can use this event to determine when to retry the specific
1320 * command.
1321 *
1322 * This is a wiphy specific vendor event and it indicates user space that
1323 * the host driver has reached the idle timer and has started or completed
1324 * idle shutdown procedure.
1325 *
1326 * The attributes used with this event are defined in
1327 * enum qca_wlan_vendor_attr_idle_shutdown.
Sunil Ravi876a49b2025-02-03 19:18:32 +00001328 *
1329 * @QCA_NL80211_VENDOR_SUBCMD_PRI_LINK_MIGRATE: Vendor subcommand that can
1330 * be used to trigger primary link migration from user space. Either just
1331 * one ML client or a bunch of clients can be migrated.
1332 *
1333 * The attributes used with this subcommand are defined in
1334 * &enum qca_wlan_vendor_attr_pri_link_migrate.
1335 *
1336 * @QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_MLD_MAC_ADDR and
1337 * @QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_CURRENT_PRI_LINK_ID are mutually
1338 * exclusive attributes. Migration should be requested for either one ML
1339 * client or a bunch of ML clients.
1340 *
1341 * @QCA_NL80211_VENDOR_SUBCMD_PERIODIC_PROBE_RSP_CFG: Vendor subcommand that
1342 * can be used to send periodic or on-demand directed Probe Response frames
1343 * to a connected peer.
1344 *
1345 * This command is only applicable for AP/P2P GO mode.
1346 *
1347 * The attributes used with this command are defined in
1348 * enum qca_wlan_vendor_attr_periodic_probe_rsp_cfg.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001349 */
1350enum qca_nl80211_vendor_subcmds {
1351 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
1352 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001353 /* subcmds 2..8 not yet allocated */
1354 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001355 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001356 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001357 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001358 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001359 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
1360 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
1361 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
1362 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
1363 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
1364 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
1365 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
1366 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
1367 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
1368 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
1369 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
1370 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
1371 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
1372 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
1373 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
1374 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
1375 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
1376 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
1377 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
1378 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
1379 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
1380 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
1381 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
1382 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
1383 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
1384 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
1385 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
1386 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
1387 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
1388 /* 43..49 - reserved for QCA */
1389 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
1390 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
1391 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001392 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001393 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1394 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001395 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1396 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1397 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1398 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1399 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001400 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1401 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1402 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1403 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1404 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1405 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1406 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1407 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1408 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1409 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1410 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1411 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1412 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001413 /* Wi-Fi configuration subcommands */
1414 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1415 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001416 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1417 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1418 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1419 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1420 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1421 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1422 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1423 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1424 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1425 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1426 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001427 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001428 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1429 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1430 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1431 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1432 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1433 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1434 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1435 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1436 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -07001437 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001438 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1439 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1440 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1441 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001442 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1443 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1444 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1445 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1446 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001447 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001448 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1449 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001450 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001451 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1452 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001453 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001454 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1455 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1456 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001457 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1458 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001459 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1460 /* FTM/indoor location subcommands */
1461 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1462 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1463 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1464 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1465 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1466 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1467 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1468 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1469 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001470 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1471 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001472 /* DMG low level RF sector operations */
1473 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1474 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1475 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1476 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1477 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001478 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001479 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001480 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001481 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1482 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1483 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1484 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001485 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1486 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001487 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1488 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1489 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1490 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1491 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001492 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1493 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1494 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1495 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1496 /* Flush peer pending data */
1497 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1498 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1499 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1500 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1501 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1502 /* Thermal shutdown commands to protect wifi chip */
1503 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1504 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1505 /* Wi-Fi test configuration subcommand */
1506 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1507 /* Frame filter operations for other BSSs/unassociated STAs */
1508 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001509 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001510 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1511 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001512 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1513 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1514 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001515 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1516 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1517 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001518 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1519 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001520 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1521 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1522 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1523 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001524 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001525 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1526 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1527 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001528 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1529 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1530 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1531 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1532 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1533 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1534 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001535 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001536 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1537 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1538 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1539 /* 201 - reserved for QCA */
1540 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1541 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1542 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1543 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001544 /* 206..212 - reserved for QCA */
1545 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1546 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1547 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1548 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001549 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1550 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1551 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1552 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001553 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1554 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1555 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1556 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1557 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1558 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001559 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Sunil Ravi640215c2023-06-28 23:08:09 +00001560 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1561 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1562 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1563 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001564 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001565 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1566 /* 234 - reserved for QCA */
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001567 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
1568 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
1569 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
1570 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
1571 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
1572 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
Sunil Ravi99c035e2024-07-12 01:42:03 +00001573 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241,
1574 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242,
Sunil Ravi7f769292024-07-23 22:21:32 +00001575 QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243,
1576 QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244,
1577 QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245,
1578 QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246,
1579 QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247,
1580 QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248,
1581 QCA_NL80211_VENDOR_SUBCMD_USD = 249,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001582 QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT = 250,
1583 QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE = 251,
1584 QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ = 252,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00001585 QCA_NL80211_VENDOR_SUBCMD_GET_FW_SCAN_REPORT = 253,
1586 QCA_NL80211_VENDOR_SUBCMD_IDLE_SHUTDOWN = 254,
1587 /* 255 - reserved for QCA */
Sunil Ravi876a49b2025-02-03 19:18:32 +00001588 QCA_NL80211_VENDOR_SUBCMD_PRI_LINK_MIGRATE = 256,
1589 QCA_NL80211_VENDOR_SUBCMD_PERIODIC_PROBE_RSP_CFG = 257,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001590};
1591
Sunil8cd6f4d2022-06-28 18:40:46 +00001592/* Compatibility defines for previously used subcmd names.
1593 * These values should not be used in any new implementation.
1594 */
1595#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1596 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1597
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001598enum qca_wlan_vendor_attr {
1599 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1600 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1601 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001602 /* Used only when driver sends vendor events to the userspace under the
1603 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1604 * commands to the driver.
1605 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001606 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001607 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1608 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001609 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1610 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001611 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001612 * by enum qca_roaming_policy.
1613 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001614 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1615 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001616 /* Feature flags contained in a byte array. The feature flags are
1617 * identified by their bit index (see &enum qca_wlan_vendor_features)
1618 * with the first byte being the least significant one and the last one
1619 * being the most significant one. Used by
1620 * QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001621 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001622 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001623 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1624 /* Unsigned 32-bit value. */
1625 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1626 /* Unsigned 32-bit value */
1627 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1628 /* Unsigned 32-bit value */
1629 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001630 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1631 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1632 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1633 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1634 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001635 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001636 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001637 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1638 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1639 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1640 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1641 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1642 */
1643 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1644 /* Indoor location capabilities, returned by
1645 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1646 * see enum qca_wlan_vendor_attr_loc_capa.
1647 */
1648 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1649 /* Array of nested attributes containing information about each peer
1650 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1651 * for supported attributes for each peer.
1652 */
1653 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1654 /* Array of nested attributes containing measurement results for
1655 * one or more peers, reported by the
1656 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1657 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1658 * attributes.
1659 */
1660 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1661 /* Flag attribute for enabling or disabling responder functionality. */
1662 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1663 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1664 * command to specify the LCI report that will be sent by
1665 * the responder during a measurement exchange. The format is
1666 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1667 */
1668 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1669 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1670 * command to specify the location civic report that will
1671 * be sent by the responder during a measurement exchange.
1672 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1673 */
1674 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1675 /* Session/measurement completion status code,
1676 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1677 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1678 * see enum qca_vendor_attr_loc_session_status.
1679 */
1680 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1681 /* Initial dialog token used by responder (0 if not specified),
1682 * unsigned 8 bit value.
1683 */
1684 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1685 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1686 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1687 * AOA measurements are needed as part of an FTM session.
1688 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1689 * enum qca_wlan_vendor_attr_aoa_type.
1690 */
1691 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1692 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1693 * by indoor location measurements. Refers to the antenna
1694 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1695 */
1696 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1697 /* AOA measurement data. Its contents depends on the AOA measurement
1698 * type and antenna array mask:
1699 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1700 * phase of the strongest CIR path for each antenna in the measured
1701 * array(s).
1702 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1703 * values, phase and amplitude of the strongest CIR path for each
1704 * antenna in the measured array(s).
1705 */
1706 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001707 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1708 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001709 * the corresponding antenna RSSI value
1710 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001711 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1712 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001713 * to report the specific antenna RSSI value (unsigned 32 bit value)
1714 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001715 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001716 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1717 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1718 /* TSF timer value, unsigned 64 bit value.
1719 * May be returned by various commands.
1720 */
1721 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1722 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1723 * 0..127 for sector indices or 65535 as special value used to
1724 * unlock sector selection in
1725 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1726 */
1727 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1728 /* DMG RF sector type, unsigned 8 bit value. One of the values
1729 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1730 */
1731 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1732 /* Bitmask of DMG RF modules for which information is requested. Each
1733 * bit corresponds to an RF module with the same index as the bit
1734 * number. Unsigned 32 bit number but only low 8 bits can be set since
1735 * all DMG chips currently have up to 8 RF modules.
1736 */
1737 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1738 /* Array of nested attributes where each entry is DMG RF sector
1739 * configuration for a single RF module.
1740 * Attributes for each entry are taken from enum
1741 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1742 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1743 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1744 */
1745 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1746 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1747 * to report frame aggregation statistics to userspace.
1748 */
1749 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1750 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001751 /* Unsigned 8-bit value representing MBO transition reason code as
1752 * provided by the AP used by subcommand
1753 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1754 * specified by the userspace in the request to the driver.
1755 */
1756 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1757 /* Array of nested attributes, BSSID and status code, used by subcommand
1758 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1759 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1760 * The userspace space specifies the list/array of candidate BSSIDs in
1761 * the order of preference in the request. The driver specifies the
1762 * status code, for each BSSID in the list, in the response. The
1763 * acceptable candidates are listed in the order preferred by the
1764 * driver.
1765 */
1766 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001767 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1768 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1769 */
1770 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1771 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1772 * to define the number of antennas to use for BRP.
1773 * different purpose in each ANT_LIMIT_MODE:
1774 * DISABLE - ignored
1775 * EFFECTIVE - upper limit to number of antennas to be used
1776 * FORCE - exact number of antennas to be used
1777 * unsigned 8 bit value
1778 */
1779 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1780 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001781 * to report the corresponding antenna index to the chain RSSI value
1782 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001783 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001784 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1785 * the specific antenna EVM value (unsigned 32 bit value). With a
1786 * determinate group of antennas, the driver specifies the EVM value
1787 * for each antenna ID, and application extract them in user space.
1788 */
1789 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001790 /*
1791 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1792 * wlan firmware current state. FW state is an unsigned 8 bit value,
1793 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1794 */
1795 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001796
Hai Shalom899fcc72020-10-19 14:38:18 -07001797 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1798 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1799 * of single values from enum qca_set_band are valid. This attribute
1800 * uses bitmask combinations to define the respective allowed band
1801 * combinations and this attributes takes precedence over
1802 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1803 */
1804 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1805
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001806 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1807 * This field describes the maximum number of links supported by the
1808 * chip for MLO association.
1809 * This is an optional attribute.
1810 */
1811 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
1812
1813 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1814 * This field describes the maximum number of Simultaneous Transmit
1815 * and Receive (STR) links used in Multi-Link Operation.
1816 * The maximum number of STR links used can be different
1817 * from the maximum number of radios supported by the chip.
1818 * This is a static configuration of the chip.
1819 * This is an optional attribute.
1820 */
1821 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
1822
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001823 /* keep last */
1824 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1825 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1826};
1827
Sunil Ravi7f769292024-07-23 22:21:32 +00001828/**
1829 * enum qca_roaming_policy - Represents the policies for roaming. Used by
1830 * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY.
1831 *
1832 * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled.
1833 *
1834 * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with
1835 * default RSSI thresholds.
1836 *
1837 * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of
1838 * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI
1839 * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS.
1840 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001841enum qca_roaming_policy {
1842 QCA_ROAMING_NOT_ALLOWED,
1843 QCA_ROAMING_ALLOWED_WITHIN_ESS,
Sunil Ravi7f769292024-07-23 22:21:32 +00001844 QCA_ROAMING_MODE_AGGRESSIVE,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001845};
1846
Hai Shalom021b0b52019-04-10 11:17:58 -07001847/**
1848 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1849 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1850 *
1851 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1852 * reasons.
1853 *
1854 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1855 * the configured threshold.
1856 *
1857 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1858 * beacon misses from the then connected AP.
1859 *
1860 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1861 * by the connected AP.
1862 *
1863 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1864 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1865 *
1866 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1867 * or environment being very noisy or congested.
1868 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001869 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001870 * from the user (user space).
1871 *
1872 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1873 * the connected AP.
1874 *
1875 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1876 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001877 *
1878 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1879 * transition request.
1880 *
1881 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1882 * data activity with the AP and the current RSSI falls below a certain
1883 * threshold.
1884 *
1885 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1886 * Disassociation frames received from the connected AP.
1887 *
1888 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1889 * that happens when there is no candidate AP found during the poor RSSI scan
1890 * trigger.
1891 *
1892 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1893 * obtained from an external scan (not aimed at roaming).
1894 *
1895 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1896 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001897 *
1898 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1899 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001900 */
1901enum qca_roam_reason {
1902 QCA_ROAM_REASON_UNKNOWN,
1903 QCA_ROAM_REASON_PER,
1904 QCA_ROAM_REASON_BEACON_MISS,
1905 QCA_ROAM_REASON_POOR_RSSI,
1906 QCA_ROAM_REASON_BETTER_RSSI,
1907 QCA_ROAM_REASON_CONGESTION,
1908 QCA_ROAM_REASON_USER_TRIGGER,
1909 QCA_ROAM_REASON_BTM,
1910 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001911 QCA_ROAM_REASON_WTC,
1912 QCA_ROAM_REASON_IDLE,
1913 QCA_ROAM_REASON_DISCONNECTION,
1914 QCA_ROAM_REASON_PERIODIC_TIMER,
1915 QCA_ROAM_REASON_BACKGROUND_SCAN,
1916 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001917 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001918};
1919
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001920enum qca_wlan_vendor_attr_roam_auth {
1921 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001922 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1923 * of the roamed AP for MLO roaming.
1924 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001925 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1926 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1927 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1928 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1929 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1930 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1931 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001932 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001933 /* Indicates the status of re-association requested by user space for
1934 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1935 * Type u16.
1936 * Represents the status code from AP. Use
1937 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1938 * real status code for failures.
1939 */
1940 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1941 /* This attribute indicates that the old association was maintained when
1942 * a re-association is requested by user space and that re-association
1943 * attempt fails (i.e., cannot connect to the requested BSS, but can
1944 * remain associated with the BSS with which the association was in
1945 * place when being requested to roam). Used along with
1946 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1947 * re-association status. Type flag.
1948 * This attribute is applicable only for re-association failure cases.
1949 */
1950 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1951 /* This attribute specifies the PMK if one was newly generated during
1952 * FILS roaming. This is added to the PMKSA cache and is used in
1953 * subsequent connections with PMKSA caching.
1954 */
1955 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1956 /* This attribute specifies the PMKID used/generated for the current
1957 * FILS roam. This is used in subsequent connections with PMKSA caching.
1958 */
1959 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1960 /* A 16-bit unsigned value specifying the next sequence number to use
1961 * in ERP message in the currently associated realm. This is used in
1962 * doing subsequent ERP based connections in the same realm.
1963 */
1964 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001965 /* A 16-bit unsigned value representing the reasons for the roaming.
1966 * Defined by enum qca_roam_reason.
1967 */
1968 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001969 /* A nested attribute containing per-link information of all the links
1970 * of MLO connection done while roaming. The attributes used inside this
1971 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1972 */
1973 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001974
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001975 /* keep last */
1976 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1977 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1978 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1979};
1980
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001981enum qca_wlan_vendor_attr_p2p_listen_offload {
1982 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1983 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1984 * of the social channels.
1985 */
1986 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1987 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1988 */
1989 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1990 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1991 */
1992 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1993 /* A 32-bit unsigned value; number of interval times the firmware needs
1994 * to run the offloaded P2P listen operation before it stops.
1995 */
1996 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1997 /* An array of arbitrary binary data with one or more 8-byte values.
1998 * The device types include both primary and secondary device types.
1999 */
2000 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
2001 /* An array of unsigned 8-bit characters; vendor information elements.
2002 */
2003 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
2004 /* A 32-bit unsigned value; a control flag to indicate whether listen
2005 * results need to be flushed to wpa_supplicant.
2006 */
2007 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
2008 /* A 8-bit unsigned value; reason code for P2P listen offload stop
2009 * event.
2010 */
2011 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
2012 /* keep last */
2013 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
2014 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
2015 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
2016};
2017
Hai Shalomc3565922019-10-28 11:58:20 -07002018/**
2019 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
2020 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
2021 *
2022 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
2023 * Used with event to notify the primary channel number selected in ACS
2024 * operation.
2025 * Note: If both the driver and user-space application supports the 6 GHz band,
2026 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
2027 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
2028 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
2029 * is still used if either of the driver or user space application doesn't
2030 * support the 6 GHz band.
2031 *
2032 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
2033 * Used with event to notify the secondary channel number selected in ACS
2034 * operation.
2035 * Note: If both the driver and user-space application supports the 6 GHz band,
2036 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
2037 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
2038 * To maintain backward compatibility,
2039 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
2040 * the driver or user space application doesn't support 6 GHz band.
2041 *
2042 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
2043 * (a) Used with command to configure hw_mode from
2044 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
2045 * (b) Also used with event to notify the hw_mode of selected primary channel
2046 * in ACS operation.
2047 *
2048 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
2049 * Used with command to configure ACS operation for HT mode.
2050 * Disable (flag attribute not present) - HT disabled and
2051 * Enable (flag attribute present) - HT enabled.
2052 *
2053 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
2054 * Used with command to configure ACS operation for HT40 mode.
2055 * Disable (flag attribute not present) - HT40 disabled and
2056 * Enable (flag attribute present) - HT40 enabled.
2057 *
2058 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
2059 * Used with command to configure ACS operation for VHT mode.
2060 * Disable (flag attribute not present) - VHT disabled and
2061 * Enable (flag attribute present) - VHT enabled.
2062 *
2063 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
2064 * mandatory with event.
2065 * If specified in command path, ACS operation is configured with the given
2066 * channel width (in MHz).
2067 * In event path, specifies the channel width of the primary channel selected.
2068 *
2069 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
2070 * Used with command to configure channel list using an array of
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002071 * channel numbers (u8). This represents the list of allowed channels for
2072 * the primary and non-primary channel operation. Channels which are not present
2073 * in the specified list shouldn't be used as a primary or non-primary channel.
Hai Shalomc3565922019-10-28 11:58:20 -07002074 * Note: If both the driver and user-space application supports the 6 GHz band,
2075 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
2076 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
2077 *
2078 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
2079 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07002080 * ACS operation. The value is the index of the channel center frequency for
2081 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
2082 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07002083 * Note: If both the driver and user-space application supports the 6 GHz band,
2084 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
2085 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
2086 * To maintain backward compatibility,
2087 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
2088 * the driver or user space application doesn't support the 6 GHz band.
2089 *
2090 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
2091 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07002092 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
2093 * The value is the index of the channel center frequency for 160 MHz channels
2094 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
2095 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07002096 * Note: If both the driver and user-space application supports the 6 GHz band,
2097 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
2098 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
2099 * To maintain backward compatibility,
2100 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
2101 * the driver or user space application doesn't support the 6 GHz band.
2102 *
2103 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
2104 * Used with command to configure the channel list using an array of channel
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002105 * center frequencies in MHz (u32). This represents the list of allowed
2106 * frequencies for the primary and non-primary channel operation. Frequencies
2107 * which are not present in the specified list shouldn't be used as a primary or
2108 * non-primary channel.
Hai Shalomc3565922019-10-28 11:58:20 -07002109 * Note: If both the driver and user-space application supports the 6 GHz band,
2110 * the driver first parses the frequency list and if it fails to get a frequency
2111 * list, parses the channel list specified using
2112 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
2113 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
2114 *
2115 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
2116 * Used with event to notify the primary channel center frequency (MHz) selected
2117 * in ACS operation.
2118 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2119 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
2120 *
2121 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
2122 * Used with event to notify the secondary channel center frequency (MHz)
2123 * selected in ACS operation.
2124 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2125 * includes this attribute along with
2126 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
2127 *
2128 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
2129 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
2130 * selected in ACS operation.
2131 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2132 * includes this attribute along with
2133 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
2134 *
2135 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
2136 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
2137 * selected in ACS operation.
2138 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2139 * includes this attribute along with
2140 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07002141 *
2142 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
2143 * Used with command to notify the driver of EDMG request for ACS
2144 * operation.
2145 *
2146 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
2147 * Used with event to notify the EDMG channel number selected in ACS
2148 * operation.
2149 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08002150 *
2151 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
2152 * Used with event to notify the puncture pattern selected in ACS operation.
2153 * Encoding for this attribute will follow the convention used in the Disabled
2154 * Subchannel Bitmap field of the EHT Operation IE.
2155 *
2156 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
2157 * Used with command to configure ACS operation for EHT mode.
2158 * Disable (flag attribute not present) - EHT disabled and
2159 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00002160 *
2161 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
2162 * Used with command to configure how older scan can be considered for ACS
2163 * scoring. In case scan was performed on a partial set of channels configured
2164 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
2165 * (in ms), scan only the remaining channels.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002166 *
2167 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
2168 * Used with command to configure ACS operation for a specific link affiliated
2169 * to an AP MLD.
2170 *
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002171 * @QCA_WLAN_VENDOR_ATTR_ACS_EXCLUDE_6GHZ_NON_PSC_PRIMARY: Optional flag
2172 * attribute. Used with command to indicate whether the driver is allowed to use
2173 * a 6 GHz non-PSC channel as a primary channel. If this flag is indicated the
2174 * driver shall not use 6 GHz non-PSC channels as a primary channel even if
2175 * %QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST includes 6 GHz non-PSC channels.
2176 * However, the driver is still allowed to use 6 GHz non-PSC channels specified
2177 * in %QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST as non-primary channels. User space is
2178 * allowed to specify this flag only when the driver indicates support for
2179 * %QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC.
Hai Shalomc3565922019-10-28 11:58:20 -07002180 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002181enum qca_wlan_vendor_attr_acs_offload {
2182 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002183 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
2184 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
2185 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
2186 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
2187 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
2188 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
2189 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
2190 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
2191 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
2192 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
2193 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
2194 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
2195 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
2196 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
2197 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07002198 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
2199 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002200 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
2201 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00002202 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002203 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002204 QCA_WLAN_VENDOR_ATTR_ACS_EXCLUDE_6GHZ_NON_PSC_PRIMARY = 22,
Hai Shalomc3565922019-10-28 11:58:20 -07002205
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002206 /* keep last */
2207 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
2208 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
2209 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
2210};
2211
Hai Shalomc3565922019-10-28 11:58:20 -07002212/**
2213 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
2214 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
2215 *
2216 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
2217 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
2218 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
2219 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
2220 * @QCA_ACS_MODE_IEEE80211ANY: all modes
2221 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
2222 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002223enum qca_wlan_vendor_acs_hw_mode {
2224 QCA_ACS_MODE_IEEE80211B,
2225 QCA_ACS_MODE_IEEE80211G,
2226 QCA_ACS_MODE_IEEE80211A,
2227 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002228 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07002229 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002230};
2231
2232/**
2233 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
2234 *
2235 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
2236 * management offload, a mechanism where the station's firmware
2237 * does the exchange with the AP to establish the temporal keys
2238 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002239 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
2240 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002241 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07002242 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002243 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
2244 * Listen offload; a mechanism where the station's firmware takes care of
2245 * responding to incoming Probe Request frames received from other P2P
2246 * Devices whilst in Listen state, rather than having the user space
2247 * wpa_supplicant do it. Information from received P2P requests are
2248 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002249 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
2250 * specific features.
2251 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
2252 * features.
2253 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
2254 * specific features only. If a Device sets this bit but not the
2255 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
2256 * this Device may not support all OCE AP functionalities but can support
2257 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002258 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
2259 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07002260 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07002261 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
2262 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07002263 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
2264 * and applying thermal configuration through
2265 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
2266 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
2267 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08002268 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
2269 * With Adaptive 11r feature, access points advertise the vendor
2270 * specific IEs and MDE but do not include FT AKM in the RSNE.
2271 * The Adaptive 11r supported stations are expected to identify
2272 * such vendor specific IEs and connect to the AP in FT mode though
2273 * the profile is configured in non-FT mode.
2274 * The driver-based SME cases also need to have this support for
2275 * Adaptive 11r to handle the connection and roaming scenarios.
2276 * This flag indicates the support for the same to the user space.
2277 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
2278 * concurrent network sessions on different Wi-Fi bands. This feature
2279 * capability is attributed to the hardware's capability to support
2280 * the same (e.g., DBS).
2281 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
2282 * responses for the respective TWT operations are asynchronous (separate
2283 * event message) from the driver. If not specified, the responses are
2284 * synchronous (in vendor command reply) to the request. Each TWT
2285 * operation is specifically mentioned (against its respective
2286 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07002287 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00002288 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07002289 * generic nl80211 commands for NDP interface create/delete and to
2290 * register/unregister the netdev instead of creating/deleting the NDP
2291 * interface using the vendor commands
2292 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
2293 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00002294 * (5.12 version onward), interface creation/deletion is not allowed using
2295 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
2296 * during the register/unregister of netdev. Create and delete NDP
2297 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
2298 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07002299 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
2300 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
2301 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
2302 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
2303 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
2304 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
2305 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
2306 * station mode supports secure RTT measurement exchange. If
2307 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2308 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
2309 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
2310 * mode supports secure RTT measurement exchange. If
2311 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2312 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
2313 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
2314 * the device in station mode supports protection of range negotiation and
2315 * measurement management frames. If
2316 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2317 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
2318 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
2319 * the device in AP mode supports protection of range negotiation and
2320 * measurement management frames. If
2321 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2322 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Sunil Ravi640215c2023-06-28 23:08:09 +00002323 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
2324 * in AP mode supports configuring allowed frequency list for AP operation
2325 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
2326 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
2327 * that the device supports enhanced audio experience over WLAN feature.
Sunil Ravi7f769292024-07-23 22:21:32 +00002328 * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device
2329 * in AP mode supports TWT responder mode in HT and VHT modes.
2330 *
2331 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA: Flag indicates that the device
Sunil Ravic0f5d412024-09-11 22:12:49 +00002332 * supports RSNE/RSNXE overriding in STA mode. Supplicant should enable
2333 * RSN overriding elements use only when the driver indicates this feature
2334 * flag. For BSS selection offload to the driver case, the driver shall
2335 * strip/modify the RSN Selection element indicated in connect request
2336 * elements or add that element if none was provided based on the BSS
2337 * selected by the driver.
Sunil Ravi7f769292024-07-23 22:21:32 +00002338 *
Sunil Ravic0f5d412024-09-11 22:12:49 +00002339 * @QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD: Flag indicates that the driver
2340 * supports Unsynchronized Service Discovery to be offloaded to it.
Sunil Ravi7f769292024-07-23 22:21:32 +00002341 *
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002342 * @QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC: Flag indicates that the driver
2343 * supports preferring 6 GHz PSC channel as a primary channel in ACS
2344 * result.
2345 *
Sunil Ravi876a49b2025-02-03 19:18:32 +00002346 * @QCA_WLAN_VENDOR_FEATURE_P2P_V2: Flag indicates that the driver supports
2347 * P2P R2 functionality (P2P R2 Discovery, Pairing, TWT power save, etc).
2348 *
2349 * @QCA_WLAN_VENDOR_FEATURE_PCC_MODE: Flag indicates that the driver supports
2350 * P2P Connection Compatibility mode in which GO allows connection
2351 * with both P2P R1 and R2 clients.
2352 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002353 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
2354 */
2355enum qca_wlan_vendor_features {
2356 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002357 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002358 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002359 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002360 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
2361 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
2362 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002363 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00002364 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07002365 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
2366 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07002367 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08002368 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
2369 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
2370 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07002371 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07002372 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
2373 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
2374 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
2375 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
2376 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
2377 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Sunil Ravi640215c2023-06-28 23:08:09 +00002378 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
2379 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
Sunil Ravi7f769292024-07-23 22:21:32 +00002380 QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24,
2381 QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA = 25,
Sunil Ravic0f5d412024-09-11 22:12:49 +00002382 QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD = 26,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002383 QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC = 27,
Sunil Ravi876a49b2025-02-03 19:18:32 +00002384 QCA_WLAN_VENDOR_FEATURE_P2P_V2 = 28,
2385 QCA_WLAN_VENDOR_FEATURE_PCC_MODE = 29,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002386 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
2387};
2388
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07002389/**
2390 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
2391 *
2392 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
2393 * the offloaded data.
2394 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
2395 * data.
2396 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
2397 * indication.
2398 */
2399enum qca_wlan_vendor_attr_data_offload_ind {
2400 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
2401 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
2402 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
2403 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
2404
2405 /* keep last */
2406 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
2407 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
2408 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
2409};
Ravi Joshie6ccb162015-07-16 17:45:41 -07002410
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002411/**
2412 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
2413 * OCB config
2414 *
2415 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
2416 * configuration
2417 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
2418 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
2419 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
2420 * scheduled
2421 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
2422 * information
2423 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
2424 * active state configuration
2425 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
2426 * OCB_CONFIG_FLAG_80211_FRAME_MODE
2427 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
2428 * use in the case that a packet is sent without a TX control header
2429 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
2430 * last TA received that the local time set by TA is synchronous to other
2431 * communicating OCB STAs.
2432 */
2433enum qca_wlan_vendor_attr_ocb_set_config {
2434 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
2435 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
2436 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
2437 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
2438 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
2439 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
2440 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
2441 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
2442 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
2443 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2444 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
2445 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
2446 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
2447};
2448
2449/**
2450 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
2451 * UTC time
2452 *
2453 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
2454 * 10 bytes
2455 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
2456 * 5 bytes
2457 */
2458enum qca_wlan_vendor_attr_ocb_set_utc_time {
2459 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
2460 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
2461 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
2462 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
2463 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
2464 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
2465};
2466
2467/**
2468 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
2469 * to start sending timing advert frames
2470 *
2471 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
2472 * on which to send the frames
2473 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
2474 * the frame is sent in 5 seconds
2475 */
2476enum qca_wlan_vendor_attr_ocb_start_timing_advert {
2477 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
2478 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
2479 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
2480 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
2481 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
2482 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
2483};
2484
2485/**
2486 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
2487 * to stop timing advert
2488 *
2489 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
2490 * frequency on which to stop the timing advert
2491 */
2492enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
2493 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
2494 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
2495 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
2496 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
2497 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
2498};
2499
2500/**
2501 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
2502 * get TSF timer value
2503 *
2504 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2505 * timer
2506 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2507 */
2508enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2509 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2510 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2511 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2512 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2513 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2514 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2515};
2516
Ravi Joshie6ccb162015-07-16 17:45:41 -07002517enum qca_vendor_attr_get_preferred_freq_list {
2518 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2519 /* A 32-unsigned value; the interface type/mode for which the preferred
2520 * frequency list is requested (see enum qca_iface_type for possible
2521 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2522 * kernel and in the kernel response back to user-space.
2523 */
2524 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2525 /* An array of 32-unsigned values; values are frequency (MHz); sent
2526 * from kernel space to user space.
2527 */
2528 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002529 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2530 * attribute. Each element contains frequency (MHz), weight, and flag
2531 * bit mask indicating how the frequency should be used in P2P
2532 * negotiation; sent from kernel space to user space.
2533 */
2534 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07002535 /* keep last */
2536 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2537 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2538 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2539};
2540
2541enum qca_vendor_attr_probable_oper_channel {
2542 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2543 /* 32-bit unsigned value; indicates the connection/iface type likely to
2544 * come on this channel (see enum qca_iface_type).
2545 */
2546 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2547 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2548 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2549 /* keep last */
2550 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2551 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2552 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2553};
2554
2555enum qca_iface_type {
2556 QCA_IFACE_TYPE_STA,
2557 QCA_IFACE_TYPE_AP,
2558 QCA_IFACE_TYPE_P2P_CLIENT,
2559 QCA_IFACE_TYPE_P2P_GO,
2560 QCA_IFACE_TYPE_IBSS,
2561 QCA_IFACE_TYPE_TDLS,
2562};
2563
2564enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07002565 QCA_SETBAND_AUTO = 0,
2566 QCA_SETBAND_5G = BIT(0),
2567 QCA_SETBAND_2G = BIT(1),
2568 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07002569};
2570
Dmitry Shmidt17022322016-04-06 13:28:42 -07002571/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002572 * enum qca_access_policy - Access control policy
2573 *
2574 * Access control policy is applied on the configured IE
2575 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2576 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2577 *
2578 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2579 * the specific configuration (IE) set, i.e., allow all the
2580 * connections which do not match the configuration.
2581 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2582 * the specific configuration (IE) set, i.e., deny all the
2583 * connections which do not match the configuration.
2584 */
2585enum qca_access_policy {
2586 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2587 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2588};
2589
2590/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002591 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2592 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2593 * Specify the TSF command. Possible values are defined in
2594 * &enum qca_tsf_cmd.
2595 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2596 * This attribute contains TSF timer value. This attribute is only available
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002597 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
2598 * response.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002599 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2600 * This attribute contains SOC timer value at TSF capture. This attribute is
2601 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2602 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2603 * This attribute is used to provide TSF sync interval and only applicable when
2604 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2605 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002606 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2607 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002608 */
2609enum qca_vendor_attr_tsf_cmd {
2610 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2611 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2612 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2613 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002614 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002615 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002616 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2617 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2618 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2619};
2620
2621/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002622 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002623 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2624 * @QCA_TSF_GET: Get TSF capture value
2625 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002626 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2627 * will automatically send TSF report to the host. To query
Sunil Ravi7f769292024-07-23 22:21:32 +00002628 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2629 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs
2630 * to be initiated first.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002631 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2632 * will not automatically send TSF report to the host. If
2633 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
Sunil Ravi7f769292024-07-23 22:21:32 +00002634 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2635 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried
2636 * anymore, this operation needs to be initiated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002637 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2638 * fetches TSF and host time mapping from the firmware with interval configured
2639 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2640 * interval value is not provided the driver will use the default value. The
2641 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2642 * command.
2643 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002644 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
2645 * starts beaconing on a new channel. The driver synchronously responds with the
2646 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
2647 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
2648 * on the AP interface. This TSF can be sent via OOB mechanism to connected
2649 * clients.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002650 */
2651enum qca_tsf_cmd {
2652 QCA_TSF_CAPTURE,
2653 QCA_TSF_GET,
2654 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002655 QCA_TSF_AUTO_REPORT_ENABLE,
2656 QCA_TSF_AUTO_REPORT_DISABLE,
2657 QCA_TSF_SYNC_START,
2658 QCA_TSF_SYNC_STOP,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002659 QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002660};
2661
2662/**
2663 * enum qca_vendor_attr_wisa_cmd
2664 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2665 * WISA setup vendor commands
2666 */
2667enum qca_vendor_attr_wisa_cmd {
2668 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2669 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2670 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2671 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2672 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2673};
2674
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002675/* IEEE 802.11 Vendor Specific elements */
2676
2677/**
2678 * enum qca_vendor_element_id - QCA Vendor Specific element types
2679 *
2680 * These values are used to identify QCA Vendor Specific elements. The
2681 * payload of the element starts with the three octet OUI (OUI_QCA) and
2682 * is followed by a single octet type which is defined by this enum.
2683 *
2684 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2685 * This element can be used to specify preference order for supported
2686 * channels. The channels in this list are in preference order (the first
2687 * one has the highest preference) and are described as a pair of
2688 * (global) Operating Class and Channel Number (each one octet) fields.
2689 *
2690 * This extends the standard P2P functionality by providing option to have
2691 * more than one preferred operating channel. When this element is present,
2692 * it replaces the preference indicated in the Operating Channel attribute.
2693 * For supporting other implementations, the Operating Channel attribute is
2694 * expected to be used with the highest preference channel. Similarly, all
2695 * the channels included in this Preferred channel list element are
2696 * expected to be included in the Channel List attribute.
2697 *
2698 * This vendor element may be included in GO Negotiation Request, P2P
2699 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002700 *
2701 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2702 * This element can be used for pre-standard publication testing of HE
2703 * before P802.11ax draft assigns the element ID. The payload of this
2704 * vendor specific element is defined by the latest P802.11ax draft.
2705 * Please note that the draft is still work in progress and this element
2706 * payload is subject to change.
2707 *
2708 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2709 * This element can be used for pre-standard publication testing of HE
2710 * before P802.11ax draft assigns the element ID. The payload of this
2711 * vendor specific element is defined by the latest P802.11ax draft.
2712 * Please note that the draft is still work in progress and this element
2713 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002714 *
2715 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2716 * element).
2717 * This element can be used for pre-standard publication testing of HE
2718 * before P802.11ax draft assigns the element ID extension. The payload of
2719 * this vendor specific element is defined by the latest P802.11ax draft
2720 * (not including the Element ID Extension field). Please note that the
2721 * draft is still work in progress and this element payload is subject to
2722 * change.
2723 *
2724 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2725 * This element can be used for pre-standard publication testing of HE
2726 * before P802.11ax draft assigns the element ID extension. The payload of
2727 * this vendor specific element is defined by the latest P802.11ax draft
2728 * (not including the Element ID Extension field). Please note that the
2729 * draft is still work in progress and this element payload is subject to
2730 * change.
2731 *
2732 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2733 * This element can be used for pre-standard publication testing of HE
2734 * before P802.11ax draft assigns the element ID extension. The payload of
2735 * this vendor specific element is defined by the latest P802.11ax draft
2736 * (not including the Element ID Extension field). Please note that the
2737 * draft is still work in progress and this element payload is subject to
2738 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002739 *
2740 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002741 */
2742enum qca_vendor_element_id {
2743 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002744 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2745 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002746 QCA_VENDOR_ELEM_RAPS = 3,
2747 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2748 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002749 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002750};
2751
2752/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002753 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2754 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2755 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2756 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2757 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2758 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2759 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2760 */
2761enum qca_wlan_vendor_scan_priority {
2762 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2763 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2764 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2765 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2766 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2767};
2768
2769/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002770 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2771 *
2772 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2773 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2774 * with frequencies to be scanned (in MHz)
2775 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2776 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2777 * rates to be included
2778 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002779 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002780 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2781 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002782 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002783 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002784 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002785 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002786 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002787 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002788 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002789 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2790 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002791 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2792 * microseconds. This is a common value which applies across all
2793 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002794 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2795 * other scan requests. It is a u32 attribute and takes values from enum
2796 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2797 * If this attribute is not configured, the driver shall use
2798 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002799 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2800 * alignment.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002801 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
2802 * when AP is operating as MLD to specify which link is requesting the
2803 * scan or which link the scan result is for. No need of this attribute
2804 * in other cases.
Sunil Ravic0f5d412024-09-11 22:12:49 +00002805 * @QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD: Optional (u32). Skip
2806 * scanning channels which are scanned recently within configured time
2807 * (in ms).
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002808 */
2809enum qca_wlan_vendor_attr_scan {
2810 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002811 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2812 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2813 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2814 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2815 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2816 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2817 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2818 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2819 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2820 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2821 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002822 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002823 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002824 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002825 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
Sunil Ravic0f5d412024-09-11 22:12:49 +00002826 QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD = 16,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002827 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2828 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2829 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2830};
2831
2832/**
2833 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002834 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002835 *
2836 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002837 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002838 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2839 */
2840enum scan_status {
2841 VENDOR_SCAN_STATUS_NEW_RESULTS,
2842 VENDOR_SCAN_STATUS_ABORTED,
2843 VENDOR_SCAN_STATUS_MAX,
2844};
2845
2846/**
2847 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2848 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2849 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2850 */
2851enum qca_vendor_attr_ota_test {
2852 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2853 /* 8-bit unsigned value to indicate if OTA test is enabled */
2854 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2855 /* keep last */
2856 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2857 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2858 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2859};
2860
2861/**
2862 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2863 *
2864 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2865 */
2866enum qca_vendor_attr_txpower_scale {
2867 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2868 /* 8-bit unsigned value to indicate the scaling of tx power */
2869 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2870 /* keep last */
2871 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2872 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2873 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2874};
2875
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002876/**
2877 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2878 *
2879 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2880 */
2881enum qca_vendor_attr_txpower_decr_db {
2882 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2883 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002884 * a virtual interface.
2885 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002886 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2887 /* keep last */
2888 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2889 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2890 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2891};
2892
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002893/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002894 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2895 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002896 */
2897enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002898 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002899 /* Unsigned 32-bit value to set the DTIM period.
2900 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2901 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2902 * DTIM beacons.
2903 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002904 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002905 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2906 * used to calculate statistics like average the TSF offset or average
2907 * number of frame leaked.
2908 * For instance, upon Beacon frame reception:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002909 * current_avg = ((beacon_TSF - TBTT) * factor +
2910 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002911 * For instance, when evaluating leaky APs:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002912 * current_avg = ((num frame received within guard time) * factor +
2913 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002914 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002915 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002916 /* Unsigned 32-bit value to configure guard time, i.e., when
2917 * implementing IEEE power management based on frame control PM bit, how
2918 * long the driver waits before shutting down the radio and after
2919 * receiving an ACK frame for a Data frame with PM bit set.
2920 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002921 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002922 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002923 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002924 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002925 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002926 /* Unsigned 32-bit value to configure the number of continuous
2927 * Beacon Miss which shall be used by the firmware to penalize
2928 * the RSSI.
2929 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002930 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002931 /* Unsigned 8-bit value to configure the channel avoidance indication
2932 * behavior. Firmware to send only one indication and ignore duplicate
2933 * indications when set to avoid multiple Apps wakeups.
2934 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002935 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002936 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002937 * aggregation.
2938 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002939 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002940 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002941 * aggregation.
2942 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002943 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002944 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002945 * retry threshold (0 disable, 31 max).
2946 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002947 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002948 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002949 * retry threshold (0 disable, 31 max).
2950 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002951 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002952 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002953 * retry threshold (0 disable, 31 max).
2954 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002955 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002956 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002957 * retry threshold (0 disable, 31 max).
2958 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002959 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002960 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002961 * 2G/5G band (0~63, units in us)
2962 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002963 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002964 /* Unsigned 32-bit value to configure the number of unicast TX fail
2965 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002966 * reached.
2967 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002968 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002969 /* Attribute used to set scan default IEs to the driver.
2970 *
2971 * These IEs can be used by scan operations that will be initiated by
2972 * the driver/firmware.
2973 *
2974 * For further scan requests coming to the driver, these IEs should be
2975 * merged with the IEs received along with scan request coming to the
2976 * driver. If a particular IE is present in the scan default IEs but not
2977 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002978 * sent in the Probe Request frames for that scan request.
2979 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002980 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002981 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002982 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002983 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002984 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002985 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002986 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002987 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002988 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2989 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002990 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002991 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002992 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2993 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002994 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002995 /* Unsigned 32-bit, defining the access policy.
2996 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002997 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2998 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002999 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003000 /* Sets the list of full set of IEs for which a specific access policy
3001 * has to be applied. Used along with
3002 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003003 * Zero length payload can be used to clear this access constraint.
3004 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003005 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003006 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
3007 * corresponding configurations are applied. If the interface index is
3008 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07003009 * wiphy.
3010 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003011 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003012 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003013 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003014 /* 8-bit unsigned value to configure the driver and below layers to
3015 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07003016 * 1-Ignore, 0-Don't ignore
3017 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003018 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003019 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07003020 * 1-Enable, 0-Disable
3021 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003022 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003023 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003024 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003025 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07003026 * 1-Enable, 0-Disable
3027 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003028 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07003029 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07003030 * the unit is micro-second
3031 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003032 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
3033 /* 32-bit unsigned value to set reorder timeout for AC_VO */
3034 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
3035 /* 32-bit unsigned value to set reorder timeout for AC_VI */
3036 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
3037 /* 32-bit unsigned value to set reorder timeout for AC_BE */
3038 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
3039 /* 32-bit unsigned value to set reorder timeout for AC_BK */
3040 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
3041 /* 6-byte MAC address to point out the specific peer */
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003042 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
3043 /* Backward compatibility with the original name */
3044 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
3045 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003046 /* 32-bit unsigned value to set window size for specific peer */
3047 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003048 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
3049 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
3050 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
3051 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003052 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
3053 * station device while in disconnect state. The attribute use the
3054 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
3055 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
3056 * 10 MHz channel width, the station will not connect to a BSS using 20
3057 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07003058 * clear this constraint.
3059 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003060 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
3061 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07003062 * for 2G/5G band (units in us)
3063 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003064 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
3065 /* 32-bit unsigned value to set probe period */
3066 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
3067 /* 32-bit unsigned value to set stay period */
3068 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
3069 /* 32-bit unsigned value to set snr diff */
3070 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
3071 /* 32-bit unsigned value to set probe dwell time */
3072 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
3073 /* 32-bit unsigned value to set mgmt snr weight */
3074 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
3075 /* 32-bit unsigned value to set data snr weight */
3076 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
3077 /* 32-bit unsigned value to set ack snr weight */
3078 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
3079 /* 32-bit unsigned value to configure the listen interval.
3080 * This is in units of beacon intervals. This configuration alters
3081 * the negotiated listen interval with the AP during the connection.
3082 * It is highly recommended to configure a value less than or equal to
3083 * the one negotiated during the association. Configuring any greater
3084 * value can have adverse effects (frame loss, AP disassociating STA,
3085 * etc.).
3086 */
3087 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
3088 /*
3089 * 8 bit unsigned value that is set on an AP/GO virtual interface to
3090 * disable operations that would cause the AP/GO to leave its operating
3091 * channel.
3092 *
3093 * This will restrict the scans to the AP/GO operating channel and the
3094 * channels of the other band, if DBS is supported.A STA/CLI interface
3095 * brought up after this setting is enabled, will be restricted to
3096 * connecting to devices only on the AP/GO interface's operating channel
3097 * or on the other band in DBS case. P2P supported channel list is
3098 * modified, to only include AP interface's operating-channel and the
3099 * channels of the other band if DBS is supported.
3100 *
3101 * These restrictions are only applicable as long as the AP/GO interface
3102 * is alive. If the AP/GO interface is brought down then this
3103 * setting/restriction is forgotten.
3104 *
3105 * If this variable is set on an AP/GO interface while a multi-channel
3106 * concurrent session is active, it has no effect on the operation of
3107 * the current interfaces, other than restricting the scan to the AP/GO
3108 * operating channel and the other band channels if DBS is supported.
3109 * However, if the STA is brought down and restarted then the new STA
3110 * connection will either be formed on the AP/GO channel or on the
3111 * other band in a DBS case. This is because of the scan being
3112 * restricted on these channels as mentioned above.
3113 *
3114 * 1-Restrict / 0-Don't restrict offchannel operations.
3115 */
3116 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
3117 /*
3118 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
3119 * on an interface.
3120 * 1 - Enable, 0 - Disable.
3121 */
3122 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
3123
3124 /*
3125 * 8 bit unsigned value to globally enable/disable scan
3126 * 1 - Enable, 0 - Disable.
3127 */
3128 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
3129
3130 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07003131 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003132 */
3133 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
3134
3135 /* Unsigned 32-bit value to configure the number of continuous
3136 * Beacon Miss which shall be used by the firmware to penalize
3137 * the RSSI for BTC.
3138 */
3139 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
3140
3141 /* 8-bit unsigned value to configure the driver and below layers to
3142 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003143 * 0-enable, 1-disable
3144 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003145 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003146
Roshan Pius3a1667e2018-07-03 15:17:14 -07003147 /* 16-bit unsigned value to configure the level of WLAN latency
3148 * module. See enum qca_wlan_vendor_attr_config_latency_level.
3149 */
3150 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
3151
3152 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
3153 * the connect interface. Exclusively used for the scenarios where the
3154 * device is used as a test bed device with special functionality and
3155 * not recommended for production. This helps driver to not validate the
3156 * RSNE passed from user space and thus allow arbitrary IE data to be
3157 * used for testing purposes.
3158 * 1-enable, 0-disable.
3159 * Applications set/reset this configuration. If not reset, this
3160 * parameter remains in use until the driver is unloaded.
3161 */
3162 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
3163
3164 /* 8-bit unsigned value to trigger green Tx power saving.
3165 * 1-Enable, 0-Disable
3166 */
3167 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
3168
Hai Shalomc3565922019-10-28 11:58:20 -07003169 /* Attribute to configure disconnect IEs to the driver.
3170 * This carries an array of unsigned 8-bit characters.
3171 *
3172 * If this is configured, driver shall fill the IEs in disassoc/deauth
3173 * frame.
3174 * These IEs are expected to be considered only for the next
3175 * immediate disconnection (disassoc/deauth frame) originated by
3176 * the DUT, irrespective of the entity (user space/driver/firmware)
3177 * triggering the disconnection.
3178 * The host drivers are not expected to use the IEs set through
3179 * this interface for further disconnections after the first immediate
3180 * disconnection initiated post the configuration.
3181 * If the IEs are also updated through cfg80211 interface (after the
3182 * enhancement to cfg80211_disconnect), host driver is expected to
3183 * take the union of IEs from both of these interfaces and send in
3184 * further disassoc/deauth frames.
3185 */
Hai Shalomfdcde762020-04-02 11:19:20 -07003186 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07003187
3188 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07003189 * 0 - Disable eLNA bypass.
3190 * 1 - Enable eLNA bypass.
3191 * 2 - Reset eLNA bypass configuration, the driver should
3192 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07003193 */
3194 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
3195
Hai Shalomfdcde762020-04-02 11:19:20 -07003196 /* 8-bit unsigned value. This attribute enables/disables the host driver
3197 * to send the Beacon Report Response with failure reason for the
3198 * scenarios where STA cannot honor the Beacon Report Request from AP.
3199 * 1-Enable, 0-Disable.
3200 */
3201 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
3202
3203 /* 8-bit unsigned value. This attribute enables/disables the host driver
3204 * to send roam reason information in the Reassociation Request frame to
3205 * the target AP when roaming within the same ESS.
3206 * 1-Enable, 0-Disable.
3207 */
3208 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
3209
Hai Shalom899fcc72020-10-19 14:38:18 -07003210 /* 32-bit unsigned value to configure different PHY modes to the
3211 * driver/firmware. The possible values are defined in
3212 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
3213 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
3214 * the driver.
3215 */
3216 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
3217
3218 /* 8-bit unsigned value to configure the maximum supported channel width
3219 * for STA mode. If this value is configured when STA is in connected
3220 * state, it should not exceed the negotiated channel width. If it is
3221 * configured when STA is in disconnected state, the configured value
3222 * will take effect for the next immediate connection.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003223 * This configuration can be sent inside
3224 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3225 * supported channel width per-MLO link.
Sunil Ravi036cec52023-03-29 11:35:17 -07003226 *
3227 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07003228 */
3229 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
3230
3231 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
3232 * This attribute is only applicable for STA mode. When dynamic
3233 * bandwidth adjustment is disabled, STA will use static channel width
3234 * the value of which is negotiated during connection.
3235 * 1-enable (default), 0-disable
3236 */
3237 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
3238
3239 /* 8-bit unsigned value to configure the maximum number of subframes of
3240 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
3241 * it is decided by the hardware.
3242 */
3243 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
3244
3245 /* 8-bit unsigned value to configure the maximum number of subframes of
3246 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
3247 * it is decided by the hardware.
3248 */
3249 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
3250
3251 /* 8-bit unsigned value. This attribute is used to dynamically
3252 * enable/disable the LDPC capability of the device. When configured in
3253 * the disconnected state, the updated configuration will be considered
3254 * for the immediately following connection attempt. If this
3255 * configuration is modified while the device is in the connected state,
3256 * the LDPC TX will be updated with this configuration immediately,
3257 * while the LDPC RX configuration update will take place starting from
3258 * the subsequent association attempt.
3259 * 1-Enable, 0-Disable.
3260 */
3261 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
3262
3263 /* 8-bit unsigned value. This attribute is used to dynamically
3264 * enable/disable the TX STBC capability of the device. When configured
3265 * in the disconnected state, the updated configuration will be
3266 * considered for the immediately following connection attempt. If the
3267 * connection is formed with TX STBC enabled and if this configuration
3268 * is disabled during that association, the TX will be impacted
3269 * immediately. Further connection attempts will disable TX STBC.
3270 * However, enabling the TX STBC for a connected session with disabled
3271 * capability is not allowed and will fail.
3272 * 1-Enable, 0-Disable.
3273 */
3274 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
3275
3276 /* 8-bit unsigned value. This attribute is used to dynamically
3277 * enable/disable the RX STBC capability of the device. When configured
3278 * in the disconnected state, the updated configuration will be
3279 * considered for the immediately following connection attempt. If the
3280 * configuration is modified in the connected state, there will be no
3281 * impact for the current association, but further connection attempts
3282 * will use the updated configuration.
3283 * 1-Enable, 0-Disable.
3284 */
3285 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
3286
Sunil Ravi7f769292024-07-23 22:21:32 +00003287 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003288 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
Sunil Ravi7f769292024-07-23 22:21:32 +00003289
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003290 /* 8-bit unsigned value to configure Optimized Power Management mode:
3291 * Modes are defined by enum qca_wlan_vendor_opm_mode.
3292 *
3293 * This attribute shall be configured along with
3294 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3295 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
3296 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
Hai Shalom899fcc72020-10-19 14:38:18 -07003297 */
3298 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
3299
3300 /* 8-bit unsigned value. This attribute takes the QoS/access category
3301 * value represented by the enum qca_wlan_ac_type and expects the driver
3302 * to upgrade the UDP frames to this access category. The value of
3303 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
3304 * DSCP value configured in the frame with the intention to only upgrade
3305 * the access category. That said, it is not intended to downgrade the
3306 * access category for the frames.
3307 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3308 * disabled, as BK is of the lowest priority and an upgrade to it does
3309 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003310 *
3311 * If only UDP frames of BE or BK access category needs to be upgraded
3312 * without changing the access category of VO or VI UDP frames, refer to
3313 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
3314 *
3315 * This attribute is not recommended to be used as it blindly forces all
3316 * UDP packets to a higher access category which could impact the
3317 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07003318 */
3319 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
3320
Sunil Ravi7f769292024-07-23 22:21:32 +00003321 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003322 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
Sunil Ravi7f769292024-07-23 22:21:32 +00003323
3324 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003325 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
3326
3327 /* 8-bit unsigned value to configure ANI setting type.
3328 * See &enum qca_wlan_ani_setting for possible values.
3329 */
3330 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
3331 /* 32-bit signed value to configure ANI level. This is used when
3332 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
3333 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
3334 * is invalid, the driver will return a failure.
3335 */
3336 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
3337
Hai Shalom60840252021-02-19 19:02:11 -08003338 /* 8-bit unsigned value. This attribute is used to dynamically configure
3339 * the number of spatial streams used for transmitting the data. When
3340 * configured in the disconnected state, the configured value will
3341 * be considered for the following connection attempt.
3342 * If the NSS is updated after the connection, the updated NSS value
3343 * is notified to the peer using the Operating Mode Notification/Spatial
3344 * Multiplexing Power Save frame.
3345 * The TX NSS value configured after the connection shall not be greater
3346 * than the value negotiated during the connection. Any such higher
3347 * value configuration shall be treated as invalid configuration by
3348 * the driver. This attribute shall be configured along with
3349 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
3350 * configuration (such as 2X2 or 1X1) or the asymmetric
3351 * configuration (such as 1X2).
3352 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3353 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
3354 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
3355 */
3356 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
3357
3358 /* 8-bit unsigned value. This attribute is used to dynamically configure
3359 * the number of spatial streams used for receiving the data. When
3360 * configured in the disconnected state, the configured value will
3361 * be considered for the following connection attempt.
3362 * If the NSS is updated after the connection, the updated NSS value
3363 * is notified to the peer using the Operating Mode Notification/Spatial
3364 * Multiplexing Power Save frame.
3365 * The RX NSS value configured after the connection shall not be greater
3366 * than the value negotiated during the connection. Any such higher
3367 * value configuration shall be treated as invalid configuration by
3368 * the driver. This attribute shall be configured along with
3369 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
3370 * configuration (such as 2X2 or 1X1) or the asymmetric
3371 * configuration (such as 1X2).
3372 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3373 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
3374 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
3375 */
3376 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
3377
Hai Shaloma20dcd72022-02-04 13:43:00 -08003378 /*
3379 * 8-bit unsigned value. This attribute, when set, indicates whether the
3380 * specified interface is the primary STA interface when there are more
3381 * than one STA interfaces concurrently active.
3382 *
3383 * This configuration helps the firmware/hardware to support certain
3384 * features (e.g., roaming) on this primary interface, if the same
3385 * cannot be supported on the concurrent STA interfaces simultaneously.
3386 *
3387 * This configuration is only applicable for a single STA interface on
3388 * a device and gives the priority for it only over other concurrent STA
3389 * interfaces.
3390 *
3391 * If the device is a multi wiphy/soc, this configuration applies to a
3392 * single STA interface across the wiphys.
3393 *
3394 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
3395 */
3396 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
3397
3398 /*
3399 * 8-bit unsigned value. This attribute can be used to configure the
3400 * driver to enable/disable FT-over-DS feature. Possible values for
3401 * this attribute are 1-Enable and 0-Disable.
3402 */
3403 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
3404
3405 /*
3406 * 8-bit unsigned value. This attribute can be used to configure the
3407 * firmware to enable/disable ARP/NS offload feature. Possible values
3408 * for this attribute are 0-Disable and 1-Enable.
3409 *
3410 * This attribute is only applicable for STA/P2P-Client interface,
3411 * and is optional, default behavior is ARP/NS offload enabled.
3412 *
3413 * This attribute can be set in disconnected and connected state, and
3414 * will restore to the default behavior if the interface is closed.
3415 */
3416 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
3417
Sunil8cd6f4d2022-06-28 18:40:46 +00003418 /*
3419 * 8-bit unsigned value. This attribute can be used to configure the
3420 * data path mode to be followed for audio traffic. Possible values
3421 * are defined in enum qca_wlan_audio_data_path.
Sunil Ravi640215c2023-06-28 23:08:09 +00003422 *
3423 * This attribute is used only when the driver advertises support for
3424 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +00003425 */
3426 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
3427
Sunil Ravi89eba102022-09-13 21:04:37 -07003428 /*
3429 * 8-bit unsigned value. This attribute can be used to configure the
3430 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
3431 * this attribute are defined in the enum qca_wlan_dbam_config.
3432 */
3433 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
3434
Sunil Ravi77d572f2023-01-17 23:58:31 +00003435 /* 8-bit unsigned value. This attribute takes the QoS/access category
3436 * value represented by the enum qca_wlan_ac_type and expects the driver
3437 * to upgrade the UDP frames of BE or BK access category to this access
3438 * category. This attribute will not modify UDP frames of VO or VI
3439 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
3440 * attribute.
3441 *
3442 * This will override the DSCP value configured in the frame with the
3443 * intention to only upgrade the access category. That said, it is not
3444 * intended to downgrade the access category for the frames.
3445 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3446 * disabled, as BK is of the lowest priority and an upgrade to it does
3447 * not result in any changes for the frames.
3448 *
3449 * This attribute behavior is similar to
3450 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
3451 * only UDP frames of BE or BK access category are upgraded and not
3452 * UDP frames of VI or VO access category.
3453 *
3454 * This attribute is not recommended to be used as it blindly forces all
3455 * UDP packets of BE or BK access category to a higher access category
3456 * which could impact the traffic pattern of all apps using UDP and can
3457 * cause unknown behavior.
3458 */
3459 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
3460
3461 /* 8-bit unsigned value to configure the driver to enable/disable the
3462 * periodic sounding for Tx beamformer functionality. The default
3463 * behavior uses algorithm to do sounding based on packet stats.
3464 *
3465 * 0 - Default behavior.
3466 * 1 - Enable the periodic sounding for Tx beamformer.
3467 */
3468 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
3469
3470 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
3471 * userspace sends this information to the driver/firmware to configure
3472 * wfc state. The driver/firmware uses this information to
3473 * optimize power savings, rate adaption, roaming, etc.
3474 *
3475 * 1 - wfc is on.
3476 * 0 - wfc is off.
3477 */
3478 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
3479
3480 /* 8-bit unsigned value to configure the driver to enable/disable the
3481 * EHT EML capability in management frame EHT capabilities.
3482 * 1 - Enable, 0 - Disable.
3483 */
3484 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
3485
3486 /* 8-bit unsigned value to configure the driver with EHT MLO max
3487 * simultaneous links to be used for MLO connection.
3488 * The range of the value is 0 to 14.
3489 */
3490 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
3491
3492 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003493 * number of links to be used for MLO connection. Value 0 restores the
3494 * default value of the maximum MLO links capability of the device.
3495 * The range of the value is 0 to 15.
3496 *
3497 * 0 - Restore default device limit.
3498 * 1 to 15 - Set the maximum number of links to be used for an MLO
3499 * connection.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003500 */
3501 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
3502
3503 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
3504 * Uses enum qca_wlan_eht_mlo_mode values.
3505 */
3506 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
3507
Sunil Ravi640215c2023-06-28 23:08:09 +00003508 /* Nested attribute with frequencies in u32 attributes to configure a
3509 * list of allowed 20 MHz channel center frequencies in MHz for AP
3510 * operation. Whenever performing a channel selection operation, the
3511 * driver shall generate a new list based on this provided list by
3512 * filtering out channels that cannot be used at that time due to
3513 * regulatory or other constraints. The resulting list is used as the
3514 * list of all allowed channels, i.e., operation on any channel that is
3515 * not included is not allowed, whenever performing operations like ACS
3516 * and DFS.
3517 *
3518 * Userspace shall configure this before starting the AP and the
3519 * configuration is valid only from the next BSS start and until the
3520 * BSS is stopped. The driver shall clear this configuration when the
3521 * AP is stopped and fall back to the default behavior for subsequent
3522 * AP operation.
3523 *
3524 * The default behavior when this configuration is not applicable is the
3525 * driver can choose any of the channels supported by the hardware
3526 * except the channels that cannot be used due to regulatory or other
3527 * constraints.
3528 *
3529 * The driver shall reject this configuration if done after the AP is
3530 * started. This attribute can be used to specify user's choice of
3531 * frequencies and static puncture channel list, etc.
3532 */
3533 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3534
3535 /* Nested attribute to indicate EHT MLO links to be forced active.
3536 * It contains link MAC address attributes. These nested attributes are
3537 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3538 * MLO links corresponding to the indicated link MAC addresses.
3539 * Subsequently, the links corresponding to the link MAC addresses that
3540 * are not indicated are forced inactive.
3541 */
3542 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3543
3544 /* 8-bit unsigned value to configure EMLSR mode entry or exit.
3545 * Uses enum qca_wlan_emlsr_mode values.
3546 */
3547 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3548
3549 /* 8-bit unsigned value to configure the channel bandwidth
3550 * for CTS frame transmission during the dymamic bandwidth
3551 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3552 * 10.3.2.9 CTS and DMG CTS procedure.
3553 * This configuration is used for testing purposes.
3554 *
3555 * This uses values defined in enum nl80211_chan_width.
3556 */
3557 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3558
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003559 /* 8-bit unsigned value. This attribute is used to dynamically
3560 * enable/suspend trigger based UL MU transmission.
3561 * This is supported in STA mode and the device sends Operating
3562 * Mode Indication to inform the change as described in
3563 * IEEE Std 802.11ax-2021, 26.9.
3564 *
3565 * This attribute can be configured when the STA is associated
3566 * to an AP and the configuration is maintained until the current
3567 * association terminates.
3568 *
3569 * By default all UL MU transmissions are enabled.
3570 *
3571 * Uses enum qca_ul_mu_config values.
3572 */
3573 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
3574
3575 /* 8-bit unsigned value. Optionally specified along with
3576 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
3577 * state. This configuration is applicable only for the current
3578 * connection. This configuration not allowed in disconnected state.
3579 * This configuration can be sent inside
3580 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3581 * supported channel width update type per-MLO link.
3582 *
3583 * Uses enum qca_chan_width_update_type values.
3584 */
3585 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
3586
3587 /* 8-bit unsigned value to set EPCS (Emergency Preparedness
3588 * Communications Service) feature capability
3589 * 1 - Enable, 0 - Disable.
3590 *
3591 * This configuration is used for testing purposes.
3592 */
3593 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
3594
3595 /* 8-bit unsigned value to enable/disable EPCS priority access
3596 * 1 - Enable, 0 - Disable.
3597 * The EPCS priority access shall be enabled only when EPCS feature
3598 * capability is also enabled (see
3599 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
3600 *
3601 * This configuration is used for testing purposes.
3602 */
3603 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
3604
3605 /* 8-bit unsigned value. Used to specify the MLO link ID of a link
3606 * that is being configured. This attribute must be included in each
3607 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
3608 * may be included without nesting to indicate the link that is the
3609 * target of other configuration attributes.
3610 */
3611 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
3612
3613 /* Array of nested links each identified by
3614 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
3615 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
3616 * added for the attributes in enum qca_wlan_vendor_attr_config to
3617 * support per-MLO link configuration through
3618 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
3619 *
3620 * Userspace can configure a single link or multiple links with this
3621 * attribute by nesting the corresponding configuration attributes and
3622 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3623 *
3624 * Userspace can fetch the configuration attribute values for a single
3625 * link or multiple links with this attribute by nesting the
3626 * corresponding configuration attributes and
3627 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3628 *
3629 * For STA interface, this attribute is applicable only in connected
3630 * state when the current connection is MLO capable. The valid values of
3631 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
3632 * connected AP MLD links.
3633 *
3634 * For AP interface, this configuration applicable only after adding
3635 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
3636 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
3637 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
3638 * the AP interface.
3639 */
3640 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
3641
3642 /* 16-bit unsigned value to configure power save inactivity timeout in
3643 * milliseconds.
3644 *
3645 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
3646 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
3647 *
3648 * This attribute shall be configured along with
3649 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
3650 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3651 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3652 */
3653 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
3654
3655 /* 16-bit unsigned value to configure speculative wake interval in
3656 * milliseconds.
3657 *
3658 * STA speculatively wakes up to look for buffered data by AP at
3659 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
3660 * entering into power save. If configured zero, STA wakes up at
3661 * upcoming DTIM beacon.
3662 *
3663 * This attribute shall be configured along with
3664 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3665 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3666 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3667 */
3668 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
3669
3670 /*
3671 * 16-bit unsigned value to configure TX max A-MPDU count.
3672 *
3673 * For STA interface, this attribute is applicable only in connected
3674 * state, peer MAC address is not required to be provided.
3675 *
3676 * For AP interface, this attribute is applicable only in started
3677 * state and one of the associated peer STAs must be specified with
3678 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
3679 * association, the peer MAC address provided is the link address of
3680 * the non-AP MLD.
3681 *
3682 * This attribute runtime configures the TX maximum aggregation size.
3683 * The value must be in range of 1 to BA window size for the specific
3684 * peer.
3685 */
3686 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
3687
3688 /*
3689 * 8-bit unsigned value to configure TID-to-link mapping negotiation
3690 * type.
3691 * Uses enum qca_wlan_ttlm_negotiation_support values.
3692 *
3693 * This value applies to the complete AP/non-AP MLD interface, and the
3694 * MLD advertises it within the Basic Multi-Link element in the
3695 * association frames. If a new value is configured during an active
3696 * connection, it will take effect in the subsequent associations and
3697 * is not reset during disconnection.
3698 *
3699 * This attribute is used for testing purposes.
3700 */
3701 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
3702
3703 /* 8-bit unsigned value.
3704 *
3705 * This attribute configures a traffic shaping mode
3706 * applied during coex scenarios.
3707 * By default all coex traffic shaping modes are enabled,
3708 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
3709 * To shape traffic, STA may enter in power save mode
3710 * and AP may send CTS-to-self frame.
3711 *
3712 * Uses enum qca_coex_traffic_shaping_mode values.
3713 */
3714 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
3715
Sunil Ravib0ac25f2024-07-12 01:42:03 +00003716 /* 8-bit unsigned value.
3717 *
3718 * This attribute is used to specify whether an associated peer is a QCA
3719 * device. The associated peer is specified with
3720 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
3721 * address of the peer is used.
3722 * 1 - QCA device, 0 - non-QCA device.
3723 */
3724 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
3725
Sunil Ravi99c035e2024-07-12 01:42:03 +00003726 /* 8-bit unsigned value to configure BTM support.
3727 *
3728 * The attribute is applicable only for STA interface. Uses enum
3729 * qca_wlan_btm_support values. This configuration is not allowed in
3730 * connected state.
3731 */
3732 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
3733
Sunil Ravi7f769292024-07-23 22:21:32 +00003734 /* 16-bit unsigned value to configure client's keep-alive interval in
3735 * seconds. The driver will reduce the keep-alive interval to this
3736 * configured value if the AP advertises BSS maximum idle period and if
3737 * that BSS max idle period is larger than this configured value. If the
3738 * AP does not advertise a maximum value, the configured value will be
3739 * used as a keep-alive period for unprotected frames.
3740 *
3741 * This configuration is applicable only during the STA's current
3742 * association.
3743 */
3744 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
3745
3746 /* 8-bit unsigned value to configure reduced power scan mode.
3747 *
3748 * This attribute is used to configure the driver to optimize power
3749 * during scan. For example, the driver can switch to 1x1 from 2x2 mode
3750 * for additional power save.
3751 *
3752 * 1 - Enable reduced power scan mode.
3753 * 0 - Disable reduced power scan mode.
3754 */
3755 QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109,
3756
3757 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3758 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110,
3759
3760 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3761 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111,
3762
3763 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3764 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112,
3765
3766 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3767 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113,
3768
3769 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3770 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114,
3771
3772 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3773 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115,
3774
3775 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3776 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116,
3777
3778 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3779 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117,
3780
3781 /* 16-bit unsigned value. This attribute is used to dynamically
3782 * configure the time duration of data stall detection. Unit is
3783 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the
3784 * value is 0, the previously configured value is cleared. The driver
3785 * rejects this configuration if the value is out of range. This
3786 * configuration is effective for all connections on the chip. If the
3787 * duration is greater than this configuration and consecutive TX no ack
3788 * count is greater than
3789 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
3790 * data stall event is sent to userspace.
3791 */
3792 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118,
3793
3794 /* 16-bit unsigned value. This attribute is used to dynamically
3795 * configure the threshold of data stall detection. Valid value is 0 or
3796 * greater than 10. if the value is 0, the previously configured value
3797 * is cleared. The driver rejects this configuration if the value is out
3798 * of range. This configuration is effective for all connections on the
3799 * chip. If consecutive TX no ack count is greater than this
3800 * configuration and duration is greater than
3801 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION,
3802 * data stall event is sent to userspace.
3803 */
3804 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119,
3805
3806 /* 8-bit unsigned value to configure the interface offload type
3807 *
3808 * This attribute is used to configure the interface offload capability.
3809 * User can configure software based acceleration, hardware based
3810 * acceleration, or a combination of both using this option. More
3811 * details on each option is described under the enum definition below.
3812 * Uses enum qca_wlan_intf_offload_type for values.
3813 */
3814 QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120,
3815
3816 /* 8-bit unsigned integer to configure the driver to follow AP's
3817 * preference values to select a roam candidate from BTM request.
3818 *
3819 * This attribute is used to configure the driver to select the roam
3820 * candidate based on AP advertised preference values. If not set,
3821 * the driver uses its internal scoring algorithm to do the same.
3822 *
3823 * 1 - STA follows AP's preference values to select a roam candidate
3824 * 0 - STA uses internal scoring algorithm to select a roam candidate
3825 */
3826 QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121,
3827
Sunil Ravic0f5d412024-09-11 22:12:49 +00003828 /* 16-bit unsigned value to configure P2P GO beacon interval in TUs.
3829 * This attribute is used to update the P2P GO beacon interval
3830 * dynamically.
3831 *
3832 * Updating the beacon interval while the GO continues operating the BSS
3833 * will likely interoperability issues and is not recommended to be
3834 * used. All the values should be multiples of the minimum used value to
3835 * minimize risk of issues.
3836 */
3837 QCA_WLAN_VENDOR_ATTR_CONFIG_P2P_GO_BEACON_INTERVAL = 122,
3838
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00003839 /* 8-bit unsigned value. Disable DFS owner capability
3840 * 1: disable DFS owner capability in the driver.
3841 * 0: reset DFS owner capability to the default DFS owner capability of
3842 * the driver.
3843 *
3844 * If DFS owner capability is disabled, the driver will not start AP
3845 * mode operations on DFS channels, and all the features depending on
3846 * DFS owner functionality will not be supported.
3847 */
3848 QCA_WLAN_VENDOR_ATTR_CONFIG_DFS_OWNER_DISABLE = 123,
3849
3850 /* 16-bit unsigned value. For probing RSSI on other antennas, this
3851 * attribute specifies the number of WLAN probes.
3852 */
3853 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_WLAN = 124,
3854
3855 /* 16-bit unsigned value. For probing RSSI on other antennas, this
3856 * attribute specifies the number of BT probes.
3857 */
3858 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_BT = 125,
3859
3860 /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
3861 * threshold. The firmware will start to probe RSSI on other antenna
3862 * if WLAN RSSI is lower than the threshold.
3863 */
3864 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_WLAN_RSSI_THRESHOLD = 126,
3865
3866 /* 16-bit unsigned value. This attribute specifies the BT RSSI
3867 * threshold. The firmware will start to probe RSSI on other antenna
3868 * if BT RSSI is lower than the threshold.
3869 */
3870 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_BT_RSSI_THRESHOLD = 127,
3871
3872 /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
3873 * difference. The firmware will select a better antenna if WLAN RSSI
3874 * difference is larger than the value.
3875 */
3876 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_WLAN_RSSI_DIFF = 128,
3877
3878 /* 16-bit unsigned value. This attribute specifies the BT RSSI
3879 * difference. The firmware will select a better antenna if WLAN RSSI
3880 * difference larger than the value.
3881 */
3882 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_BT_RSSI_DIFF = 129,
3883
Sunil Ravi876a49b2025-02-03 19:18:32 +00003884 /* 8-bit unsigned value to enable/disable setup link Reconfiguration
3885 * feature support in STA mode.
3886 * 1 - Enable
3887 * 0 - Disable.
3888 */
3889 QCA_WLAN_VENDOR_ATTR_CONFIG_SETUP_LINK_RECONFIG_SUPPORT = 130,
3890
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003891 /* keep last */
3892 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3893 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3894 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3895};
3896
Hai Shalomfdcde762020-04-02 11:19:20 -07003897/* Compatibility defines for previously used incorrect enum
3898 * qca_wlan_vendor_attr_config names. These values should not be used in any
3899 * new implementation. */
3900#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3901 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3902#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3903 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3904
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003905/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003906 * enum qca_ul_mu_config - UL MU configuration
3907 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
3908 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
3909 */
3910enum qca_ul_mu_config {
3911 QCA_UL_MU_SUSPEND = 0,
3912 QCA_UL_MU_ENABLE = 1,
3913};
3914
3915/**
Sunil Ravi89eba102022-09-13 21:04:37 -07003916 * enum qca_dbam_config - Specifies DBAM config mode
3917 * @QCA_DBAM_DISABLE: Firmware disables DBAM
3918 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3919 * internal criteria are met.
3920 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3921 */
3922enum qca_dbam_config {
3923 QCA_DBAM_DISABLE = 0,
3924 QCA_DBAM_ENABLE = 1,
3925 QCA_DBAM_FORCE_ENABLE = 2,
3926};
3927
3928/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003929 * enum qca_wlan_ani_setting - ANI setting type
3930 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3931 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3932 */
3933enum qca_wlan_ani_setting {
3934 QCA_WLAN_ANI_SETTING_AUTO = 0,
3935 QCA_WLAN_ANI_SETTING_FIXED = 1,
3936};
3937
3938/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003939 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07003940 *
3941 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3942 * Channel number on which Access Point should restart.
3943 * Note: If both the driver and user space application supports the 6 GHz band,
3944 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3945 * should be used.
3946 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3947 * is still used if either of the driver or user space application doesn't
3948 * support the 6 GHz band.
3949 *
3950 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3951 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003952 */
3953enum qca_wlan_vendor_attr_sap_config {
3954 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07003955 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3956
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003957 /* List of frequencies on which AP is expected to operate.
3958 * This is irrespective of ACS configuration. This list is a priority
3959 * based one and is looked for before the AP is created to ensure the
3960 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3961 * the system.
3962 */
3963 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07003964 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003965
3966 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3967 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3968 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3969};
3970
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003971/**
3972 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3973 * conditional channel switch
3974 */
3975enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3976 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3977 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07003978 * order)
3979 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003980 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3981 /* Status of the conditional switch (u32).
3982 * 0: Success, Non-zero: Failure
3983 */
3984 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3985
3986 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3987 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3988 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3989};
3990
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003991/**
3992 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003993 *
3994 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3995 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3996 * for the available values.
3997 *
3998 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3999 * value to specify the GPIO number.
4000 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4001 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
4002 *
4003 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
4004 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
4005 * for the available values.
4006 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4007 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
4008 *
Hai Shalom60840252021-02-19 19:02:11 -08004009 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07004010 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
4011 * for the available values.
4012 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08004013 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
4014 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
4015 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
4016 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07004017 *
Hai Shalom60840252021-02-19 19:02:11 -08004018 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07004019 * value to specify the GPIO interrupt mode. Please refer to enum
4020 * qca_gpio_interrupt_mode for the available values.
4021 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08004022 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
4023 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
4024 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
4025 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07004026 *
Hai Shalom60840252021-02-19 19:02:11 -08004027 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07004028 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
4029 * for the available values.
4030 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08004031 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
4032 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
4033 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
4034 * attribute is present.
4035 *
4036 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
4037 * Value to specify the mux config. Meaning of a given value is dependent
4038 * on the target chipset and GPIO pin. Must be of the range 0-15.
4039 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4040 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
4041 *
4042 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
4043 * Value to specify the drive, refer to enum qca_gpio_drive.
4044 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4045 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
4046 *
4047 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
4048 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4049 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
4050 * other parameters for the given GPIO will be obtained from internal
4051 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
4052 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004053 */
4054enum qca_wlan_gpio_attr {
4055 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
4056 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07004057 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004058 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07004059 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004060 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07004061 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004062 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07004063 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004064 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07004065 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
4066 /* Unsigned 32-bit attribute for GPIO direction to configure */
4067 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08004068 /* Unsigned 32-bit attribute for GPIO mux config */
4069 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
4070 /* Unsigned 32-bit attribute for GPIO drive */
4071 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
4072 /* Flag attribute for using internal GPIO configuration */
4073 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004074
4075 /* keep last */
4076 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
4077 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
4078 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
4079};
4080
4081/**
Hai Shalom899fcc72020-10-19 14:38:18 -07004082 * enum gpio_cmd_type - GPIO configuration command type
4083 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
4084 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
4085 */
4086enum qca_gpio_cmd_type {
4087 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
4088 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
4089};
4090
4091/**
4092 * enum qca_gpio_pull_type - GPIO pull type
4093 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
4094 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
4095 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
4096 */
4097enum qca_gpio_pull_type {
4098 QCA_WLAN_GPIO_PULL_NONE = 0,
4099 QCA_WLAN_GPIO_PULL_UP = 1,
4100 QCA_WLAN_GPIO_PULL_DOWN = 2,
4101 QCA_WLAN_GPIO_PULL_MAX,
4102};
4103
4104/**
4105 * enum qca_gpio_direction - GPIO direction
4106 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
4107 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
4108 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
4109 */
4110enum qca_gpio_direction {
4111 QCA_WLAN_GPIO_INPUT = 0,
4112 QCA_WLAN_GPIO_OUTPUT = 1,
4113 QCA_WLAN_GPIO_DIR_MAX,
4114};
4115
4116/**
4117 * enum qca_gpio_value - GPIO Value
4118 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
4119 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
4120 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
4121 */
4122enum qca_gpio_value {
4123 QCA_WLAN_GPIO_LEVEL_LOW = 0,
4124 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
4125 QCA_WLAN_GPIO_LEVEL_MAX,
4126};
4127
4128/**
4129 * enum gpio_interrupt_mode - GPIO interrupt mode
4130 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
4131 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
4132 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
4133 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
4134 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
4135 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
4136 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
4137 */
4138enum qca_gpio_interrupt_mode {
4139 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
4140 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
4141 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
4142 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
4143 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
4144 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
4145 QCA_WLAN_GPIO_INTMODE_MAX,
4146};
4147
4148/**
Hai Shalom60840252021-02-19 19:02:11 -08004149 * enum qca_gpio_drive - GPIO drive
4150 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
4151 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
4152 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
4153 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
4154 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
4155 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
4156 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
4157 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
4158 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
4159 */
4160enum qca_gpio_drive {
4161 QCA_WLAN_GPIO_DRIVE_2MA = 0,
4162 QCA_WLAN_GPIO_DRIVE_4MA = 1,
4163 QCA_WLAN_GPIO_DRIVE_6MA = 2,
4164 QCA_WLAN_GPIO_DRIVE_8MA = 3,
4165 QCA_WLAN_GPIO_DRIVE_10MA = 4,
4166 QCA_WLAN_GPIO_DRIVE_12MA = 5,
4167 QCA_WLAN_GPIO_DRIVE_14MA = 6,
4168 QCA_WLAN_GPIO_DRIVE_16MA = 7,
4169 QCA_WLAN_GPIO_DRIVE_MAX,
4170};
4171
4172/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07004173 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
4174 * MSDUQ depth threshold per peer per tid in the target
4175 *
4176 * Associated Vendor Command:
4177 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
4178 */
4179enum qca_wlan_set_qdepth_thresh_attr {
4180 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
4181 /* 6-byte MAC address */
4182 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
4183 /* Unsigned 32-bit attribute for holding the TID */
4184 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
4185 /* Unsigned 32-bit attribute for holding the update mask
4186 * bit 0 - Update high priority msdu qdepth threshold
4187 * bit 1 - Update low priority msdu qdepth threshold
4188 * bit 2 - Update UDP msdu qdepth threshold
4189 * bit 3 - Update Non UDP msdu qdepth threshold
4190 * rest of bits are reserved
4191 */
4192 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
4193 /* Unsigned 32-bit attribute for holding the threshold value */
4194 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
4195
4196 /* keep last */
4197 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
4198 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
4199 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
4200};
4201
4202/**
Hai Shalomc3565922019-10-28 11:58:20 -07004203 * enum qca_acs_dfs_mode - Defines different types of DFS channel
4204 * configurations for ACS operation.
4205 *
4206 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
4207 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
4208 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
4209 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
4210 */
4211enum qca_acs_dfs_mode {
4212 QCA_ACS_DFS_MODE_NONE = 0,
4213 QCA_ACS_DFS_MODE_ENABLE = 1,
4214 QCA_ACS_DFS_MODE_DISABLE = 2,
4215 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
4216};
4217
4218/**
4219 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
4220 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
4221 *
4222 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
4223 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
4224 *
4225 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
4226 * channel number hint for ACS operation, if valid channel is specified then
4227 * ACS operation gives priority to this channel.
4228 * Note: If both the driver and user space application supports the 6 GHz band,
4229 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
4230 * should be used.
4231 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
4232 * is still used if either of the driver or user space application doesn't
4233 * support the 6 GHz band.
4234 *
4235 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
4236 * Channel center frequency (MHz) hint for ACS operation, if a valid center
4237 * frequency is specified, ACS operation gives priority to this channel.
4238 */
4239enum qca_wlan_vendor_attr_acs_config {
4240 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
4241 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
4242 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
4243 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
4244
4245 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
4246 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
4247 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
4248};
4249
4250/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004251 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
4252 */
4253enum qca_wlan_vendor_attr_get_hw_capability {
4254 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
4255 /* Antenna isolation
4256 * An attribute used in the response.
4257 * The content of this attribute is encoded in a byte array. Each byte
4258 * value is an antenna isolation value. The array length is the number
4259 * of antennas.
4260 */
4261 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
4262 /* Request HW capability
4263 * An attribute used in the request.
4264 * The content of this attribute is a u32 array for one or more of
4265 * hardware capabilities (attribute IDs) that are being requested. Each
4266 * u32 value has a value from this
4267 * enum qca_wlan_vendor_attr_get_hw_capability
4268 * identifying which capabilities are requested.
4269 */
4270 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
4271
4272 /* keep last */
4273 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
4274 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
4275 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
4276};
4277
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004278/**
4279 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
4280 * offload which is an extension for LL_STATS.
4281 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
4282 * If MAC counters do not exceed the threshold, FW will report monitored
4283 * link layer counters periodically as this setting. The first report is
4284 * always triggered by this timer.
4285 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
4286 * For each MAC layer counter, FW holds two copies. One is the current value.
4287 * The other is the last report. Once a current counter's increment is larger
4288 * than the threshold, FW will indicate that counter to host even if the
4289 * monitoring timer does not expire.
4290 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
4291 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
4292 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
4293 * failure code.
4294 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
4295 * 1: TX packet discarded
4296 * 2: No ACK
4297 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004298 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
4299 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
4300 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
4301 * Threshold for all monitored parameters. If per counter dedicated threshold
4302 * is not enabled, this threshold will take effect.
4303 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
4304 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
4305 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
4306 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
4307 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
4308 * Bit0: TX counter unit in MSDU
4309 * Bit1: TX counter unit in MPDU
4310 * Bit2: TX counter unit in PPDU
4311 * Bit3: TX counter unit in byte
4312 * Bit4: Dropped MSDUs
4313 * Bit5: Dropped Bytes
4314 * Bit6: MPDU retry counter
4315 * Bit7: MPDU failure counter
4316 * Bit8: PPDU failure counter
4317 * Bit9: MPDU aggregation counter
4318 * Bit10: MCS counter for ACKed MPDUs
4319 * Bit11: MCS counter for Failed MPDUs
4320 * Bit12: TX Delay counter
4321 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
4322 * Bit0: MAC RX counter unit in MPDU
4323 * Bit1: MAC RX counter unit in byte
4324 * Bit2: PHY RX counter unit in PPDU
4325 * Bit3: PHY RX counter unit in byte
4326 * Bit4: Disorder counter
4327 * Bit5: Retry counter
4328 * Bit6: Duplication counter
4329 * Bit7: Discard counter
4330 * Bit8: MPDU aggregation size counter
4331 * Bit9: MCS counter
4332 * Bit10: Peer STA power state change (wake to sleep) counter
4333 * Bit11: Peer STA power save counter, total time in PS mode
4334 * Bit12: Probe request counter
4335 * Bit13: Other management frames counter
4336 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
4337 * Bit0: Idle time
4338 * Bit1: TX time
4339 * Bit2: time RX in current bss
4340 * Bit3: Out of current bss time
4341 * Bit4: Wireless medium busy time
4342 * Bit5: RX in bad condition time
4343 * Bit6: TX in bad condition time
4344 * Bit7: time wlan card not available
4345 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
4346 * Bit0: Per channel SNR counter
4347 * Bit1: Per channel noise floor counter
4348 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
4349 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
4350 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
4351 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
4352 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
4353 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
4354 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
4355 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
4356 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
4357 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
4358 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
4359 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
4360 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
4361 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
4362 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
4363 * aggregation stats buffer length
4364 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
4365 * buffer for ACKed MPDUs.
4366 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
4367 * buffer for failed MPDUs.
4368 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
4369 * length of delay stats array.
4370 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
4371 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
4372 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
4373 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
4374 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
4375 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
4376 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
4377 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
4378 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
4379 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
4380 * flagged as retransmissions
4381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
4382 * flagged as duplicated
4383 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
4384 * packets discarded
4385 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
4386 * stats buffer.
4387 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
4388 * stats buffer.
4389 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
4390 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
4391 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
4392 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
4393 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
4394 * requests received
4395 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
4396 * frames received
4397 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
4398 * there is no TX, nor RX, nor interference.
4399 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
4400 * transmitting packets.
4401 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
4402 * for receiving.
4403 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
4404 * interference detected.
4405 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
4406 * receiving packets with errors.
4407 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
4408 * TX no-ACK.
4409 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
4410 * the chip is unable to work in normal conditions.
4411 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
4412 * receiving packets in current BSS.
4413 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
4414 * receiving packets not in current BSS.
4415 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
4416 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
4417 * This is a container for per antenna signal stats.
4418 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
4419 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
4420 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
4421 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07004422 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
4423 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
4424 * message, user layer APP could call gettimeofday to get another
4425 * timestamp and calculate transfer delay for the message.
4426 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
4427 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07004428 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
4429 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004430 */
4431enum qca_wlan_vendor_attr_ll_stats_ext {
4432 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
4433
4434 /* Attributes for configurations */
4435 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
4436 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
4437
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004438 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004439 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
4440
4441 /* TX failure event */
4442 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
4443 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
4444 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
4445
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004446 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
4447 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
4448
4449 /* MAC counters */
4450 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
4451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
4452 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
4453 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
4454 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
4455 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
4456 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
4457 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
4458 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
4459 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
4460 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
4461 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
4462
4463 /* Sub-attributes for PEER_AC_TX */
4464 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
4465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
4466 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
4467 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
4468 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
4469 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
4470 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
4471 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
4472 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
4473 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
4474 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
4475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
4476 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
4477 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
4478 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
4479 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
4480 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
4481
4482 /* Sub-attributes for PEER_AC_RX */
4483 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
4484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
4485 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
4486 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
4487 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
4488 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
4489 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
4490 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
4491 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
4492 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
4493 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
4494 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
4495 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
4496 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
4497 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
4498 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
4499
4500 /* Sub-attributes for CCA_BSS */
4501 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
4502 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
4503 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
4504 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
4505 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
4506 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
4507 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
4508
4509 /* sub-attribute for BSS_RX_TIME */
4510 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
4511 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
4512
4513 /* Sub-attributes for PEER_SIGNAL */
4514 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
4515 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
4516 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
4517 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
4518
4519 /* Sub-attributes for IFACE_BSS */
4520 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
4521 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
4522
Roshan Pius3a1667e2018-07-03 15:17:14 -07004523 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
4524 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07004525 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004526
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004527 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
4528 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
4529 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
4530};
4531
4532/* Attributes for FTM commands and events */
4533
4534/**
4535 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
4536 *
4537 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
4538 * enum qca_wlan_vendor_attr_loc_capa_flags.
4539 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
4540 * of measurement sessions that can run concurrently.
4541 * Default is one session (no session concurrency).
4542 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
4543 * peers that are supported in running sessions. For example,
4544 * if the value is 8 and maximum number of sessions is 2, you can
4545 * have one session with 8 unique peers, or 2 sessions with 4 unique
4546 * peers each, and so on.
4547 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
4548 * of bursts per peer, as an exponent (2^value). Default is 0,
4549 * meaning no multi-burst support.
4550 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
4551 * of measurement exchanges allowed in a single burst.
4552 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
4553 * types. A bit mask (unsigned 32 bit value), each bit corresponds
4554 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
4555 */
4556enum qca_wlan_vendor_attr_loc_capa {
4557 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
4558 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
4559 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
4560 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
4561 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
4562 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
4563 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
4564 /* keep last */
4565 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
4566 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
4567 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
4568};
4569
4570/**
4571 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
4572 *
4573 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
4574 * can be configured as an FTM responder (for example, an AP that
4575 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
4576 * will be supported if set.
4577 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
4578 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
4579 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004580 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004581 * supports immediate (ASAP) response.
4582 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
4583 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
4584 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
4585 * requesting AOA measurements as part of an FTM session.
4586 */
4587enum qca_wlan_vendor_attr_loc_capa_flags {
4588 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
4589 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
4590 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
4591 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
4592 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
4593};
4594
4595/**
4596 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
4597 * a single peer in a measurement session.
4598 *
4599 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
4600 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
4601 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004602 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004603 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
4604 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
4605 * list of supported attributes.
4606 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
4607 * secure measurement.
4608 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
4609 * measurement every <value> bursts. If 0 or not specified,
4610 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004611 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
4612 * the measurement frames are exchanged. Optional; if not
4613 * specified, try to locate the peer in the kernel scan
4614 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004615 */
4616enum qca_wlan_vendor_attr_ftm_peer_info {
4617 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
4618 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
4619 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004620 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004621 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
4622 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004623 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004624 /* keep last */
4625 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
4626 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
4627 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
4628};
4629
4630/**
4631 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
4632 * per-peer
4633 *
4634 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
4635 * immediate (ASAP) response from peer.
4636 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
4637 * LCI report from peer. The LCI report includes the absolute
4638 * location of the peer in "official" coordinates (similar to GPS).
4639 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
4640 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
4641 * Location civic report from peer. The LCR includes the location
4642 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
4643 * 11.24.6.7 for more information.
4644 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
4645 * request a secure measurement.
4646 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
4647 */
4648enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
4649 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
4650 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
4651 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
4652 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
4653};
4654
4655/**
4656 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
4657 *
4658 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
4659 * to perform in a single burst.
4660 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
4661 * perform, specified as an exponent (2^value).
4662 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
4663 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
4664 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
4665 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
4666 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
4667 */
4668enum qca_wlan_vendor_attr_ftm_meas_param {
4669 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
4670 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
4671 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
4672 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
4673 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
4674 /* keep last */
4675 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
4676 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
4677 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
4678};
4679
4680/**
4681 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
4682 *
4683 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
4684 * peer.
4685 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
4686 * request for this peer.
4687 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
4688 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
4689 * to measurement results for this peer.
4690 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
4691 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
4692 * request failed and peer requested not to send an additional request
4693 * for this number of seconds.
4694 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
4695 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4696 * 9.4.2.22.10.
4697 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
4698 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4699 * 9.4.2.22.13.
4700 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
4701 * overridden some measurement request parameters. See
4702 * enum qca_wlan_vendor_attr_ftm_meas_param.
4703 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
4704 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
4705 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
4706 * results. Each entry is a nested attribute defined
4707 * by enum qca_wlan_vendor_attr_ftm_meas.
4708 */
4709enum qca_wlan_vendor_attr_ftm_peer_result {
4710 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
4711 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
4712 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
4713 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
4714 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
4715 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
4716 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
4717 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
4718 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
4719 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
4720 /* keep last */
4721 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
4722 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
4723 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
4724};
4725
4726/**
4727 * enum qca_wlan_vendor_attr_ftm_peer_result_status
4728 *
4729 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
4730 * will be provided. Peer may have overridden some measurement parameters,
4731 * in which case overridden parameters will be report by
4732 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
4733 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
4734 * of performing the measurement request. No more results will be sent
4735 * for this peer in this session.
4736 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
4737 * failed, and requested not to send an additional request for number
4738 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
4739 * attribute.
4740 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
4741 * failed. Request was not sent over the air.
4742 */
4743enum qca_wlan_vendor_attr_ftm_peer_result_status {
4744 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
4745 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
4746 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
4747 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
4748};
4749
4750/**
4751 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
4752 * for measurement result, per-peer
4753 *
4754 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
4755 * measurement completed for this peer. No more results will be reported
4756 * for this peer in this session.
4757 */
4758enum qca_wlan_vendor_attr_ftm_peer_result_flags {
4759 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
4760};
4761
4762/**
4763 * enum qca_vendor_attr_loc_session_status: Session completion status code
4764 *
4765 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
4766 * successfully.
4767 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
4768 * by request.
4769 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
4770 * was invalid and was not started.
4771 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
4772 * and did not complete normally (for example out of resources).
4773 */
4774enum qca_vendor_attr_loc_session_status {
4775 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
4776 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
4777 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
4778 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
4779};
4780
4781/**
4782 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
4783 *
4784 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
4785 * recorded by responder, in picoseconds.
4786 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4787 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
4788 * initiator, in picoseconds.
4789 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4790 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
4791 * initiator, in picoseconds.
4792 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4793 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
4794 * responder, in picoseconds.
4795 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4796 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
4797 * during this measurement exchange. Optional and will be provided if
4798 * the hardware can measure it.
4799 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
4800 * responder. Not always provided.
4801 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4802 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
4803 * responder. Not always provided.
4804 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4805 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
4806 * initiator. Not always provided.
4807 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4808 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
4809 * initiator. Not always provided.
4810 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07004811 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
4812 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004813 */
4814enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004815 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004816 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
4817 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
4818 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
4819 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
4820 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
4821 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
4822 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
4823 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
4824 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
4825 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
4826 /* keep last */
4827 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
4828 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
4829 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
4830};
4831
4832/**
4833 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
4834 *
4835 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
4836 * CIR (channel impulse response) path for each antenna.
4837 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
4838 * of the strongest CIR path for each antenna.
4839 */
4840enum qca_wlan_vendor_attr_aoa_type {
4841 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
4842 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
4843 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
4844};
4845
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004846/**
4847 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
4848 * validate encryption engine
4849 *
4850 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
4851 * This will be included if the request is for decryption; if not included,
4852 * the request is treated as a request for encryption by default.
4853 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
4854 * indicating the key cipher suite. Takes same values as
4855 * NL80211_ATTR_KEY_CIPHER.
4856 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
4857 * Key Id to be used for encryption
4858 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
4859 * Key (TK) to be used for encryption/decryption
4860 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4861 * Packet number to be specified for encryption/decryption
4862 * 6 bytes for TKIP/CCMP/GCMP.
4863 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4864 * representing the 802.11 packet (header + payload + FCS) that
4865 * needs to be encrypted/decrypted.
4866 * Encrypted/decrypted response from the driver will also be sent
4867 * to userspace with the same attribute.
4868 */
4869enum qca_wlan_vendor_attr_encryption_test {
4870 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4871 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4872 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4873 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4874 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4875 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4876 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4877
4878 /* keep last */
4879 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4880 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4881 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4882};
4883
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004884/**
4885 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4886 * sector for DMG RF sector operations.
4887 *
4888 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4889 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4890 */
4891enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4892 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4893 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4894 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4895};
4896
4897/**
Hai Shalom021b0b52019-04-10 11:17:58 -07004898 * enum qca_wlan_vendor_attr_fw_state - State of firmware
4899 *
4900 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4901 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4902 */
4903enum qca_wlan_vendor_attr_fw_state {
4904 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4905 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4906 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4907};
4908
4909/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004910 * BRP antenna limit mode
4911 *
4912 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4913 * antenna limit, BRP will be performed as usual.
4914 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4915 * antennas limit. the hardware may use less antennas than the
4916 * maximum limit.
4917 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4918 * use exactly the specified number of antennas for BRP.
4919 */
4920enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4921 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4922 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4923 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4924 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4925};
4926
4927/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004928 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4929 * DMG RF sector configuration for a single RF module.
4930 * The values are defined in a compact way which closely matches
4931 * the way it is stored in HW registers.
4932 * The configuration provides values for 32 antennas and 8 distribution
4933 * amplifiers, and together describes the characteristics of the RF
4934 * sector - such as a beam in some direction with some gain.
4935 *
4936 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4937 * of RF module for this configuration.
4938 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4939 * amplifier gain index. Unsigned 32 bit number containing
4940 * bits for all 32 antennas.
4941 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4942 * amplifier gain index. Unsigned 32 bit number containing
4943 * bits for all 32 antennas.
4944 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4945 * amplifier gain index. Unsigned 32 bit number containing
4946 * bits for all 32 antennas.
4947 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4948 * for first 16 antennas, 2 bits per antenna.
4949 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4950 * for last 16 antennas, 2 bits per antenna.
4951 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4952 * DTYPE values (3 bits) for each distribution amplifier, followed
4953 * by X16 switch bits for each distribution amplifier. There are
4954 * total of 8 distribution amplifiers.
4955 */
4956enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4957 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4958 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4959 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4960 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4961 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4962 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4963 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4964 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4965
4966 /* keep last */
4967 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4968 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4969 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4970};
4971
4972enum qca_wlan_vendor_attr_ll_stats_set {
4973 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4974 /* Unsigned 32-bit value */
4975 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4976 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4977 /* keep last */
4978 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4979 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4980 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4981};
4982
Sunil Ravi640215c2023-06-28 23:08:09 +00004983/**
4984 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4985 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4986 *
4987 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4988 *
4989 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4990 * radio statistics.
4991 *
4992 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4993 * statistics within radio statistics.
4994 *
4995 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4996 * radio statistics.
4997 *
4998 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4999 *
5000 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
5001 * within interface statistics.
5002 *
5003 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
5004 * interface statistics.
5005 *
5006 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
5007 * (min, max, avg) statistics within AC statistics.
5008 *
5009 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
5010 * on this interface.
5011 *
5012 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
5013 * statistics depending on the peer_mac.
5014 */
5015enum qca_wlan_ll_stats_clr_req_bitmap {
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005016 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
5017 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
5018 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
5019 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
5020 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
5021 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
5022 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
Sunil Ravi640215c2023-06-28 23:08:09 +00005023 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005024 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
5025 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
Sunil Ravi640215c2023-06-28 23:08:09 +00005026};
5027
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005028enum qca_wlan_vendor_attr_ll_stats_clr {
5029 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00005030 /* Unsigned 32bit bitmap for clearing statistics, specified
5031 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005032 */
5033 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
5034 /* Unsigned 8 bit value: Request to stop statistics collection */
5035 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
5036
5037 /* Unsigned 32 bit bitmap: Response from the driver
5038 * for the cleared statistics
5039 */
5040 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
5041 /* Unsigned 8 bit value: Response from driver/firmware
5042 * for the stop request
5043 */
5044 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
5045 /* keep last */
5046 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
5047 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
5048 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
5049};
5050
Sunil Ravi640215c2023-06-28 23:08:09 +00005051/**
5052 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
5053 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
5054 *
5055 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
5056 *
5057 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
5058 *
5059 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
5060 *
5061 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
5062 */
5063enum qca_wlan_ll_stats_get_req_bitmap {
5064 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
5065 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005066 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
5067 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
Sunil Ravi640215c2023-06-28 23:08:09 +00005068};
5069
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005070enum qca_wlan_vendor_attr_ll_stats_get {
5071 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
5072 /* Unsigned 32 bit value provided by the caller issuing the GET stats
5073 * command. When reporting the stats results, the driver uses the same
5074 * value to indicate which GET request the results correspond to.
5075 */
5076 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
5077 /* Unsigned 32 bit value - bit mask to identify what statistics are
Sunil Ravi640215c2023-06-28 23:08:09 +00005078 * requested for retrieval specified in the enum
5079 * qca_wlan_ll_stats_get_req_bitmap
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005080 */
5081 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
5082 /* keep last */
5083 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
5084 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
5085 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
5086};
5087
5088enum qca_wlan_vendor_attr_ll_stats_results {
5089 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00005090
5091 /*
5092 * For Multi Link Operation (MLO) connection, per-link statistics will
5093 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
5094 * cumulative statistics will be sent outside of
5095 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
5096 * compatibility with legacy user space. Attributes which don't have
5097 * explicit documentation for MLO will be sent only outside of
5098 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
5099 * don't depend on whether the connection is MLO capable or not, e.g.,
5100 * radio and channel specific attributes.
5101 */
5102
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005103 /* Unsigned 32bit value. Used by the driver; must match the request id
5104 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
5105 */
5106 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
5107
Sunil Ravi640215c2023-06-28 23:08:09 +00005108 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5109 * the link with the best RSSI outside
5110 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5111 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5112 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005113 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
Sunil Ravi640215c2023-06-28 23:08:09 +00005114 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5115 * the link with the best RSSI outside
5116 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5117 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5118 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005119 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
Sunil Ravi640215c2023-06-28 23:08:09 +00005120 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5121 * the link with the best RSSI outside
5122 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5123 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5124 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005125 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
Sunil Ravi640215c2023-06-28 23:08:09 +00005126 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5127 * the link with the best RSSI outside
5128 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5129 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5130 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005131 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00005132 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5133 * the link with the best RSSI outside
5134 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5135 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5136 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005137 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
Sunil Ravi640215c2023-06-28 23:08:09 +00005138 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5139 * the link with the best RSSI outside
5140 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5141 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5142 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005143 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
Sunil Ravi640215c2023-06-28 23:08:09 +00005144 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5145 * the link with the best RSSI outside
5146 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5147 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5148 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005149 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
5150
5151 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
5152 * nested within the interface stats.
5153 */
5154
5155 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
5156 * Type = enum wifi_interface_mode.
5157 */
5158 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
5159 /* Interface MAC address. An array of 6 Unsigned int8 */
5160 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
5161 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
5162 * AUTHENTICATING, etc. valid for STA, CLI only.
5163 */
5164 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
5165 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
5166 */
5167 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
5168 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
5169 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
5170 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
5171 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
Sunil Ravi640215c2023-06-28 23:08:09 +00005172 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
5173 * address of the AP. An array of 6 unsigned 8 bit values */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005174 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
5175 /* Country string advertised by AP. An array of 3 unsigned 8 bit
5176 * values.
5177 */
5178 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
5179 /* Country string for this association. An array of 3 unsigned 8 bit
5180 * values.
5181 */
5182 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
5183
5184 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
5185 * be nested within the interface stats.
Sunil Ravi640215c2023-06-28 23:08:09 +00005186 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
5187 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
5188 * indicate the aggregate of all links outside
5189 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5190 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
5191 * indicate value of the MLO link with the best RSSI outside
5192 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5193 * These attributes indicate the link specific value inside
5194 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005195 */
5196
5197 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
5198 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
5199 /* Unsigned int 32 value corresponding to respective AC */
5200 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
5201 /* Unsigned int 32 value corresponding to respective AC */
5202 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
5203 /* Unsigned int 32 value corresponding to respective AC */
5204 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
5205 /* Unsigned int 32 value corresponding to respective AC */
5206 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
5207 /* Unsigned int 32 value corresponding to respective AC */
5208 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
5209 /* Unsigned int 32 value corresponding to respective AC */
5210 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
5211 /* Unsigned int 32 value corresponding to respective AC */
5212 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
5213 /* Unsigned int 32 value corresponding to respective AC */
5214 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
5215 /* Unsigned int 32 value corresponding to respective AC */
5216 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
5217 /* Unsigned int 32 values corresponding to respective AC */
5218 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
5219 /* Unsigned int 32 values corresponding to respective AC */
5220 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
5221 /* Unsigned int 32 values corresponding to respective AC */
5222 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
5223 /* Unsigned int 32 values corresponding to respective AC */
5224 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
5225 /* Unsigned int 32 values corresponding to respective AC */
5226 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
5227 /* Unsigned 32 bit value. Number of peers */
5228 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
5229
5230 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
5231 * nested within the interface stats.
5232 */
5233
5234 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
5235 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
5236 /* MAC addr corresponding to respective peer. An array of 6 unsigned
5237 * 8 bit values.
5238 */
5239 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
5240 /* Unsigned int 32 bit value representing capabilities corresponding
5241 * to respective peer.
5242 */
5243 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
5244 /* Unsigned 32 bit value. Number of rates */
5245 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
5246
5247 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5248 * are nested within the rate stat.
5249 */
5250
5251 /* Wi-Fi Rate - separate attributes defined for individual fields */
5252
5253 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
5254 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
5255 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
5256 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
5257 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
5258 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
5259 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07005260 * in the units of 0.5 Mbps HT/VHT it would be MCS index
5261 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005262 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
5263
5264 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
5265 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
5266
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005267 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
5268 * nested within the peer info stats.
5269 */
5270
5271 /* Unsigned int 32 bit value. Number of successfully transmitted data
5272 * packets, i.e., with ACK received corresponding to the respective
5273 * rate.
5274 */
5275 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
5276 /* Unsigned int 32 bit value. Number of received data packets
5277 * corresponding to the respective rate.
5278 */
5279 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
5280 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
5281 * received corresponding to the respective rate.
5282 */
5283 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
5284 /* Unsigned int 32 bit value. Total number of data packet retries for
5285 * the respective rate.
5286 */
5287 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
5288 /* Unsigned int 32 bit value. Total number of short data packet retries
5289 * for the respective rate.
5290 */
5291 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
5292 /* Unsigned int 32 bit value. Total number of long data packet retries
5293 * for the respective rate.
5294 */
5295 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
5296
Sunil Ravi640215c2023-06-28 23:08:09 +00005297 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
5298 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5299 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
5300 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
5301 * of the MLO link.
5302 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005303 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
5304 /* Unsigned 32 bit value. Total number of msecs the radio is awake
5305 * accruing over time.
5306 */
5307 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
5308 /* Unsigned 32 bit value. Total number of msecs the radio is
5309 * transmitting accruing over time.
5310 */
5311 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
5312 /* Unsigned 32 bit value. Total number of msecs the radio is in active
5313 * receive accruing over time.
5314 */
5315 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
5316 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5317 * to all scan accruing over time.
5318 */
5319 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
5320 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5321 * to NAN accruing over time.
5322 */
5323 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
5324 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5325 * to GSCAN accruing over time.
5326 */
5327 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
5328 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5329 * to roam scan accruing over time.
5330 */
5331 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
5332 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5333 * to PNO scan accruing over time.
5334 */
5335 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
5336 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5337 * to Hotspot 2.0 scans and GAS exchange accruing over time.
5338 */
5339 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
5340 /* Unsigned 32 bit value. Number of channels. */
5341 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
5342
5343 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
5344 * be nested within the channel stats.
5345 */
5346
5347 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
5348 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
Sunil Ravi640215c2023-06-28 23:08:09 +00005349 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
5350 * indicate the primary frequency of the channel when
5351 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5352 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
5353 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
5354 * on which the MLO link is operating.
5355 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005356 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
5357 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
5358 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
5359 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
5360 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
5361
5362 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
5363 * nested within the radio stats.
5364 */
5365
5366 /* Unsigned int 32 bit value representing total number of msecs the
5367 * radio is awake on that channel accruing over time, corresponding to
5368 * the respective channel.
5369 */
5370 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
5371 /* Unsigned int 32 bit value representing total number of msecs the CCA
5372 * register is busy accruing over time corresponding to the respective
5373 * channel.
5374 */
5375 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
5376
5377 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
5378
5379 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07005380 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005381 */
5382 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
5383
5384 /* Signifies the nested list of peer info attributes
Sunil Ravi640215c2023-06-28 23:08:09 +00005385 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
5386 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
5387 * indicate on which link the peer is connected.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005388 */
5389 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
5390
5391 /* Signifies the nested list of rate info attributes
5392 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5393 */
5394 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
5395
5396 /* Signifies the nested list of wmm info attributes
5397 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
5398 */
5399 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
5400
5401 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
5402 * that more stats, e.g., peers or radio, are to follow in the next
5403 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
5404 * Otherwise, it is set to 0.
5405 */
5406 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
5407
Sunil Ravi640215c2023-06-28 23:08:09 +00005408 /* Unsigned 64 bit value. For an MLO connection, indicates the value of
5409 * the link with the best RSSI outside
5410 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5411 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5412 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005413 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
5414
Sunil Ravi640215c2023-06-28 23:08:09 +00005415 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5416 * the link with the best RSSI outside
5417 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5418 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5419 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005420 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
5421
Sunil Ravi640215c2023-06-28 23:08:09 +00005422 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5423 * the link with the best RSSI outside
5424 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5425 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5426 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005427 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
5428
Sunil Ravi640215c2023-06-28 23:08:09 +00005429 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5430 * the link with the best RSSI outside
5431 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5432 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5433 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005434 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
5435
5436 /* Unsigned 32 bit value */
5437 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
5438
5439 /* Unsigned 32 bit value */
5440 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
5441
5442 /* Number of msecs the radio spent in transmitting for each power level
5443 */
5444 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
5445
Sunil Ravi640215c2023-06-28 23:08:09 +00005446 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5447 * the link with the best RSSI outside
5448 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5449 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5450 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005451 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
Sunil Ravi640215c2023-06-28 23:08:09 +00005452 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5453 * the link with the best RSSI outside
5454 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5455 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5456 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005457 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
Sunil Ravi640215c2023-06-28 23:08:09 +00005458 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5459 * the link with the best RSSI outside
5460 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5461 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5462 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005463 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
Sunil Ravi640215c2023-06-28 23:08:09 +00005464 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5465 * the link with the best RSSI outside
5466 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5467 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5468 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005469 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
5470
Roshan Pius3a1667e2018-07-03 15:17:14 -07005471 /* Unsigned int 32 value.
5472 * Pending MSDUs corresponding to respective AC.
5473 */
5474 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
5475
Hai Shalom899fcc72020-10-19 14:38:18 -07005476 /* u32 value representing total time in milliseconds for which the radio
5477 * is transmitting on this channel. This attribute will be nested
5478 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5479 */
5480 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
5481 /* u32 value representing total time in milliseconds for which the radio
5482 * is receiving all 802.11 frames intended for this device on this
5483 * channel. This attribute will be nested within
5484 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5485 */
5486 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005487 /* u8 value representing the channel load percentage. Possible values
5488 * are 0-100.
5489 */
5490 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
5491 /* u8 value representing the time slicing duty cycle percentage.
Sunil Ravi640215c2023-06-28 23:08:09 +00005492 * Possible values are 0-100. For an MLO connection, indicates the value
5493 * of the link with the best RSSI outside
5494 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5495 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005496 */
5497 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07005498 /* Unsigned 32 bit value. The number of Beacon frames which are received
5499 * from the associated AP and indicate buffered unicast frame(s) for us
Sunil Ravi640215c2023-06-28 23:08:09 +00005500 * in the TIM element. For an MLO connection, indicates the value of the
5501 * link with the best RSSI outside
5502 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5503 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005504 */
5505 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
5506 /* Unsigned 32 bit value. The total number of Beacon frames received
5507 * from the associated AP that have wrongly indicated buffered unicast
5508 * traffic in the TIM element for us.
5509 * Below scenarios will be considered as wrong TIM element beacon:
5510 * 1) The related TIM element is set in the beacon for STA but STA
5511 * doesn’t receive any unicast data after this beacon.
5512 * 2) The related TIM element is still set in the beacon for STA
5513 * after STA has indicated power save exit by QoS Null Data frame.
Sunil Ravi640215c2023-06-28 23:08:09 +00005514 * For an MLO connection, indicates the value of the link with the best
5515 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
5516 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005517 */
5518 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07005519
5520 /* Signed 32 bit value. It represents the noise floor calibration value.
Sunil Ravi640215c2023-06-28 23:08:09 +00005521 * Possible values are -120~-50 dBm. For an MLO connection, indicates
5522 * the value of the link with the best RSSI outside
5523 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5524 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi036cec52023-03-29 11:35:17 -07005525 */
5526 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07005527
Sunil Ravi640215c2023-06-28 23:08:09 +00005528 /* Attribute used for padding for 64-bit alignment */
5529 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
5530
5531 /* Unsigned u8 value, link ID of an MLO link. Used inside nested
5532 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
5533 * link ID of the MLO link for which the statistics are embedded in the
5534 * nested attribute. Used inside nested attribute
5535 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
5536 * link ID of the peer.
5537 */
5538 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
5539
5540 /* A nested array of attributes for each MLO link, each containing
5541 * per-link statistics of a multi link connection. The attributes used
5542 * inside this nested attribute are defined in enum
5543 * qca_wlan_vendor_attr_ll_stats_results.
5544 *
5545 * For non-MLO connection, this attribute is not present and the
5546 * statistics will be sent outside this attribute (without nesting).
5547 *
5548 * For MLO connection, this attribute is present and also cumulative
5549 * statistics of all the links will be sent outside of this attribute
5550 * to be compatible with legacy user space.
5551 */
5552 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
5553
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005554 /* keep last */
5555 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
5556 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
5557 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
5558};
5559
Roshan Pius3a1667e2018-07-03 15:17:14 -07005560enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005561 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
5562 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
5563 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
5564 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
5565
5566 /* keep last */
5567 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
5568 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
5569 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
5570};
5571
5572/**
5573 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5574 * TDLS configuration to the host driver.
5575 *
5576 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5577 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5578 * represents the different TDLS trigger modes.
5579 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5580 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5581 * of packets shall meet the criteria for implicit TDLS setup.
5582 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
5583 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
5584 * to initiate a TDLS setup.
5585 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
5586 * a TDLS Discovery to the peer.
5587 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5588 * discovery attempts to know the TDLS capability of the peer. A peer is
5589 * marked as TDLS not capable if there is no response for all the attempts.
5590 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5591 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5592 * number of TX / RX frames meet the criteria for TDLS teardown.
5593 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
5594 * of Tx/Rx packets within a duration
5595 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
5596 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5597 * corresponding to the RSSI of the peer below which a TDLS setup is
5598 * triggered.
5599 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5600 * corresponding to the RSSI of the peer above which a TDLS teardown is
5601 * triggered.
5602 */
5603enum qca_wlan_vendor_attr_tdls_configuration {
5604 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5605 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5606
5607 /* Attributes configuring the TDLS Implicit Trigger */
5608 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5609 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5610 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5611 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5612 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5613 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5614 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5615 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5616
5617 /* keep last */
5618 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5619 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5620 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5621};
5622
5623/**
5624 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5625 * the driver
5626 *
5627 * The following are the different values for
5628 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5629 *
5630 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
5631 * the TDLS connection to a respective peer comes from the user space.
5632 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
5633 * TDLS_DISCOVER to do this.
5634 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5635 * setup/teardown to the eligible peer once the configured criteria
5636 * (such as TX/RX threshold, RSSI) is met. The attributes
5637 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5638 * the different configuration criteria for the TDLS trigger from the
5639 * host driver.
5640 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5641 * the TDLS setup / teardown through the implicit mode only to the
5642 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
5643 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
5644 * External mode works on top of the implicit mode. Thus the host driver
5645 * is expected to configure in TDLS Implicit mode too to operate in
5646 * External mode.
5647 * Configuring External mode alone without Implicit mode is invalid.
5648 *
5649 * All the above implementations work as expected only when the host driver
5650 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
5651 * that the TDLS message exchange is not internal to the host driver, but
5652 * depends on wpa_supplicant to do the message exchange.
5653 */
5654enum qca_wlan_vendor_tdls_trigger_mode {
5655 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5656 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5657 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5658};
5659
Dmitry Shmidt29333592017-01-09 12:27:11 -08005660/**
5661 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5662 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5663 * that is hard-coded in the Board Data File (BDF).
5664 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5665 * that is hard-coded in the Board Data File (BDF).
5666 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5667 * that is hard-coded in the Board Data File (BDF).
5668 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5669 * that is hard-coded in the Board Data File (BDF).
5670 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5671 * that is hard-coded in the Board Data File (BDF).
5672 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5673 * source of SAR power limits, thereby disabling the SAR power
5674 * limit feature.
5675 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5676 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005677 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5678 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005679 *
5680 * This enumerates the valid set of values that may be supplied for
5681 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005682 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5683 * the response to an instance of the
5684 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005685 */
5686enum qca_vendor_attr_sar_limits_selections {
5687 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5688 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5689 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5690 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5691 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5692 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5693 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005694 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005695};
5696
5697/**
5698 * enum qca_vendor_attr_sar_limits_spec_modulations -
5699 * SAR limits specification modulation
5700 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5701 * CCK modulation
5702 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5703 * OFDM modulation
5704 *
5705 * This enumerates the valid set of values that may be supplied for
5706 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5707 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5708 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07005709 * command or in the response to an instance of the
5710 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005711 */
5712enum qca_vendor_attr_sar_limits_spec_modulations {
5713 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5714 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5715};
5716
5717/**
5718 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5719 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005720 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08005721 * select which SAR power limit table should be used. Valid
5722 * values are enumerated in enum
5723 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5724 * power limit selection is unchanged if this attribute is not
5725 * present.
5726 *
5727 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5728 * which specifies the number of SAR power limit specifications
5729 * which will follow.
5730 *
5731 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5732 * limit specifications. The number of specifications is
5733 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5734 * specification contains a set of
5735 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5736 * specification is uniquely identified by the attributes
5737 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5738 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5739 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5740 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07005741 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
5742 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5743 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5744 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5745 * needed based upon the value of
5746 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005747 *
5748 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5749 * indicate for which band this specification applies. Valid
5750 * values are enumerated in enum %nl80211_band (although not all
5751 * bands may be supported by a given device). If the attribute is
5752 * not supplied then the specification will be applied to all
5753 * supported bands.
5754 *
5755 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5756 * to indicate for which antenna chain this specification
5757 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5758 * attribute is not supplied then the specification will be
5759 * applied to all chains.
5760 *
5761 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5762 * value to indicate for which modulation scheme this
5763 * specification applies. Valid values are enumerated in enum
5764 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5765 * is not supplied then the specification will be applied to all
5766 * modulation schemes.
5767 *
5768 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5769 * value to specify the actual power limit value in units of 0.5
5770 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07005771 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5772 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005773 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07005774 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5775 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5776 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5777 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5778 *
5779 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5780 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005781 */
5782enum qca_vendor_attr_sar_limits {
5783 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5784 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5785 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5786 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5787 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5788 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5789 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5790 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005791 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005792
5793 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5794 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5795 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5796};
5797
5798/**
5799 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
5800 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07005801 *
5802 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
5803 * should be set to any U8 value to indicate that the driver version
5804 * should be returned. When enabled in this manner, in a response this
5805 * attribute will contain a string representation of the driver version.
5806 *
5807 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
5808 * should be set to any U8 value to indicate that the firmware version
5809 * should be returned. When enabled in this manner, in a response this
5810 * attribute will contain a string representation of the firmware version.
5811 *
5812 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
5813 * should be set to any U32 value to indicate that the current radio
5814 * index should be returned. When enabled in this manner, in a response
5815 * this attribute will contain a U32 radio index value.
5816 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08005817 */
5818enum qca_wlan_vendor_attr_get_wifi_info {
5819 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
5820 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
5821 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005822 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005823
5824 /* keep last */
5825 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
5826 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
5827 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
5828};
5829
5830/*
5831 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
5832 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
5833 */
5834enum qca_wlan_vendor_attr_wifi_logger_start {
5835 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5836 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5837 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5838 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5839
5840 /* keep last */
5841 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5842 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
5843 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5844};
5845
5846enum qca_wlan_vendor_attr_logger_results {
5847 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
5848
5849 /* Unsigned 32-bit value; must match the request Id supplied by
5850 * Wi-Fi HAL in the corresponding subcmd NL msg.
5851 */
5852 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
5853
5854 /* Unsigned 32-bit value; used to indicate the size of memory
5855 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005856 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005857 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
5858
5859 /* keep last */
5860 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5861 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5862 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5863};
5864
Hai Shalomc3565922019-10-28 11:58:20 -07005865/**
5866 * enum qca_scan_freq_list_type: Frequency list types
5867 *
5868 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5869 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5870 * a preferred frequency list for roaming.
5871 *
5872 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5873 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5874 * a specific frequency list for roaming.
5875 */
5876enum qca_scan_freq_list_type {
5877 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5878 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5879};
5880
5881/**
5882 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5883 *
5884 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5885 * List of frequencies in MHz to be considered for a roam scan.
5886 *
5887 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5888 * Type of frequency list scheme being configured/gotten as defined by the
5889 * enum qca_scan_freq_list_type.
5890 */
5891enum qca_vendor_attr_scan_freq_list_scheme {
5892 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5893 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5894
5895 /* keep last */
5896 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5897 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5898 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5899};
5900
Hai Shalom899fcc72020-10-19 14:38:18 -07005901/**
5902 * enum qca_roam_scan_scheme: Scan scheme
5903 *
5904 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5905 * Indicates the driver to not scan on a Roam Trigger scenario, but
5906 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5907 * disconnect from the current connected AP by notifying a failure
5908 * code in the BTM response.
5909 *
5910 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5911 * trigger partial frequency scans. These frequencies are the ones learned
5912 * or maintained by the driver based on the probability of finding the
5913 * BSSIDs in the ESS for which the roaming is triggered.
5914 *
5915 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5916 * trigger the scan on all the valid frequencies to find better
5917 * candidates to roam.
5918 */
5919enum qca_roam_scan_scheme {
5920 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5921 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5922 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5923};
5924
Hai Shalomc3565922019-10-28 11:58:20 -07005925/*
5926 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5927 *
5928 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5929 * a bad packet error rates (PER).
5930 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5931 * based on beacon misses from the connected AP.
5932 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5933 * due to poor RSSI of the connected AP.
5934 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5935 * upon finding a BSSID with a better RSSI than the connected BSSID.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005936 * Also, set if the roam has to be triggered due to the high RSSI of the
5937 * current connected AP (better than
5938 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
5939 * the current BSSID need not be poor.
Hai Shalomc3565922019-10-28 11:58:20 -07005940 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5941 * by triggering a periodic scan to find a better AP to roam.
5942 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5943 * when the connected channel environment is too noisy/congested.
5944 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5945 * when BTM Request frame is received from the connected AP.
5946 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5947 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07005948 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5949 * based on the request from the user (space).
5950 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5951 * device receives Deauthentication/Disassociation frame from connected AP.
5952 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5953 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5954 * is determined to be a poor one.
5955 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5956 * based on continuous TX Data frame failures to the connected AP.
5957 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5958 * based on the scan results obtained from an external scan (not triggered
5959 * to aim roaming).
Sunil Ravi876a49b2025-02-03 19:18:32 +00005960 * @QCA_ROAM_TRIGGER_REASON_WTC: Set if the roam has to be triggered
5961 * due to Wireless to Cellular BSS Transition Management (BTM) request.
5962 * @QCA_ROAM_TRIGGER_REASON_BT_ACTIVITY: Set if the roam has to be triggered
5963 * due to Bluetooth connection is established when the station is connected
5964 * in the 2.4 GHz band.
Hai Shalomc3565922019-10-28 11:58:20 -07005965 *
5966 * Set the corresponding roam trigger reason bit to consider it for roam
5967 * trigger.
5968 * Userspace can set multiple bits and send to the driver. The driver shall
5969 * consider all of them to trigger/initiate a roam scan.
5970 */
5971enum qca_vendor_roam_triggers {
5972 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
5973 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
5974 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
5975 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
5976 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
5977 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
5978 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
5979 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005980 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
5981 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
5982 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
5983 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
5984 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Sunil Ravi876a49b2025-02-03 19:18:32 +00005985 QCA_ROAM_TRIGGER_REASON_WTC = 1 << 13,
5986 QCA_ROAM_TRIGGER_REASON_BT_ACTIVITY = 1 << 14,
Hai Shalomc3565922019-10-28 11:58:20 -07005987};
5988
Hai Shalom60840252021-02-19 19:02:11 -08005989/*
5990 * enum qca_vendor_roam_fail_reasons: Defines the various roam
5991 * fail reasons. This enum value is used in
5992 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5993 *
5994 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5995 * able to trigger the scan.
5996 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5997 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5998 * scan.
5999 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
6000 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
6001 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
6002 * status code.
6003 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
6004 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
6005 * frame.
6006 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
6007 * with error status code.
6008 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
6009 * received.
6010 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
6011 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
6012 * frame.
6013 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
6014 * internally before transmission.
6015 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
6016 * Request frame.
6017 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
6018 * dropped internally.
6019 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
6020 * times out.
6021 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
6022 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
6023 * internally.
6024 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
6025 * M2 frame.
6026 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
6027 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
6028 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
6029 * internally.
6030 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
6031 * frame.
6032 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
6033 * started for final beacon miss case.
6034 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
6035 * received from the AP during roaming handoff.
6036 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
6037 * or host is suspended and gives the indication of the last roamed AP only
6038 * when the Apps is resumed. If the Apps is resumed while the roaming is in
6039 * progress, this ongoing roaming is aborted and the last roamed AP is
6040 * indicated to host.
6041 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
6042 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
6043 * out.
6044 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
Sunil Ravi640215c2023-06-28 23:08:09 +00006045 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
6046 * current network conditions are fine.
Hai Shalom60840252021-02-19 19:02:11 -08006047 */
6048enum qca_vendor_roam_fail_reasons {
6049 QCA_ROAM_FAIL_REASON_NONE = 0,
6050 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
6051 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
6052 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
6053 QCA_ROAM_FAIL_REASON_HOST = 4,
6054 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
6055 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
6056 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
6057 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
6058 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
6059 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
6060 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
6061 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
6062 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
6063 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
6064 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
6065 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
6066 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
6067 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
6068 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
6069 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
6070 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
6071 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
6072 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
6073 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
6074 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
6075 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
6076 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
6077 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
6078 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
Sunil Ravi640215c2023-06-28 23:08:09 +00006079 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
Hai Shalom60840252021-02-19 19:02:11 -08006080};
6081
6082/*
6083 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
6084 * invoke fail reasons. This enum value is used in
6085 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
6086 *
6087 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
6088 * in roam invoke command.
6089 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
6090 * enabled.
6091 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
6092 * length is invalid.
6093 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
6094 * in progress.
6095 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
6096 * of the AP in the roam invoke command to firmware. This reason is sent by the
6097 * firmware when the given AP is configured to be ignored or SSID/security
6098 * does not match.
6099 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
6100 * firmware internal reasons.
6101 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
6102 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
6103 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
6104 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
6105 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
6106 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
6107 */
6108enum qca_vendor_roam_invoke_fail_reasons {
6109 QCA_ROAM_INVOKE_STATUS_NONE = 0,
6110 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
6111 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
6112 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
6113 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
6114 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
6115 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
6116 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
6117 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
6118 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
6119 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
6120 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
6121 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
6122
6123};
6124
Hai Shalomc3565922019-10-28 11:58:20 -07006125/**
6126 * enum qca_vendor_attr_roam_candidate_selection_criteria:
6127 *
6128 * Each attribute carries a weightage in percentage (%).
6129 *
6130 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
6131 * Represents the weightage to be given for the RSSI selection
6132 * criteria among other parameters.
6133 *
6134 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
6135 * Represents the weightage to be given for the rate selection
6136 * criteria among other parameters.
6137 *
6138 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
6139 * Represents the weightage to be given for the band width selection
6140 * criteria among other parameters.
6141 *
6142 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
6143 * Represents the weightage to be given for the band selection
6144 * criteria among other parameters.
6145 *
6146 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
6147 * Represents the weightage to be given for the NSS selection
6148 * criteria among other parameters.
6149 *
6150 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
6151 * Represents the weightage to be given for the channel congestion
6152 * selection criteria among other parameters.
6153 *
6154 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
6155 * Represents the weightage to be given for the beamforming selection
6156 * criteria among other parameters.
6157 *
6158 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
6159 * Represents the weightage to be given for the OCE selection
6160 * criteria among other parameters.
6161 */
6162enum qca_vendor_attr_roam_candidate_selection_criteria {
6163 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
6164 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
6165 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
6166 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
6167 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
6168 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
6169 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
6170 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
6171
6172 /* keep last */
6173 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
6174 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
6175 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
6176};
6177
6178/**
6179 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00006180 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07006181 * configurations to/from the driver.
6182 * For the get, the attribute for the configuration to be queried shall
6183 * carry any of its acceptable values to the driver. In return, the driver
6184 * shall send the configured values within the same attribute to the user
6185 * space.
6186 *
6187 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
6188 * Signifies to enable/disable roam control in driver.
6189 * 1-enable, 0-disable
6190 * Enable: Mandates the driver to do the further roams using the
6191 * configuration parameters set through
6192 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
6193 * Disable: Disables the driver/firmware roaming triggered through
6194 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
6195 * expected to continue with the default configurations.
6196 *
6197 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
6198 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
6199 * Roam control status is obtained through this attribute.
6200 *
6201 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
6202 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
6203 * is to be cleared in the driver.
6204 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
6205 * and shall be ignored if used with other sub commands.
6206 * If this attribute is specified along with subcmd
6207 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
6208 * all other attributes, if there are any.
6209 * If this attribute is not specified when the subcmd
6210 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
6211 * clear the data corresponding to the attributes specified.
6212 *
6213 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
6214 * list of frequencies and its type, represented by
6215 * enum qca_vendor_attr_scan_freq_list_scheme.
6216 * Frequency list and its type are mandatory for this attribute to set
6217 * the frequencies.
6218 * Frequency type is mandatory for this attribute to get the frequencies
6219 * and the frequency list is obtained through
6220 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
6221 * Frequency list type is mandatory for this attribute to clear the
6222 * frequencies.
6223 *
6224 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
6225 * Carries the value of scan period in seconds to set.
6226 * The value of scan period is obtained with the same attribute for get.
6227 * Clears the scan period in the driver when specified with clear command.
6228 * Scan period is the idle time in seconds between each subsequent
6229 * channel scans.
6230 *
6231 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
6232 * Carries the value of full scan period in seconds to set.
6233 * The value of full scan period is obtained with the same attribute for
6234 * get.
6235 * Clears the full scan period in the driver when specified with clear
6236 * command. Full scan period is the idle period in seconds between two
6237 * successive full channel roam scans.
6238 *
6239 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
6240 * Carries a bitmap of the roam triggers specified in
6241 * enum qca_vendor_roam_triggers.
6242 * The driver shall enable roaming by enabling corresponding roam triggers
6243 * based on the trigger bits sent with this attribute.
6244 * If this attribute is not configured, the driver shall proceed with
6245 * default behavior.
6246 * The bitmap configured is obtained with the same attribute for get.
6247 * Clears the bitmap configured in driver when specified with clear
6248 * command.
6249 *
6250 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
6251 * weightage in percentage (%) to be given for each selection criteria.
6252 * Different roam candidate selection criteria are represented by
6253 * enum qca_vendor_attr_roam_candidate_selection_criteria.
6254 * The driver shall select the roam candidate based on corresponding
6255 * candidate selection scores sent.
6256 *
6257 * An empty nested attribute is used to indicate that no specific
6258 * preference score/criteria is configured (i.e., to disable this mechanism
6259 * in the set case and to show that the mechanism is disabled in the get
6260 * case).
6261 *
6262 * Userspace can send multiple attributes out of this enum to the driver.
6263 * Since this attribute represents the weight/percentage of preference for
6264 * the respective selection criteria, it is preferred to configure 100%
6265 * total weightage. The value in each attribute or cumulative weight of the
6266 * values in all the nested attributes should not exceed 100%. The driver
6267 * shall reject such configuration.
6268 *
6269 * If the weights configured through this attribute are less than 100%,
6270 * the driver shall honor the weights (x%) passed for the corresponding
6271 * selection criteria and choose/distribute rest of the weight (100-x)%
6272 * for the other selection criteria, based on its internal logic.
6273 *
6274 * The selection criteria configured is obtained with the same
6275 * attribute for get.
6276 *
6277 * Clears the selection criteria configured in the driver when specified
6278 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07006279 *
6280 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
6281 * Represents value of the scan frequency scheme from enum
6282 * qca_roam_scan_scheme.
6283 * It's an optional attribute. If this attribute is not configured, the
6284 * driver shall proceed with default behavior.
6285 *
6286 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6287 * signifying the RSSI threshold of the current connected AP, indicating
6288 * the driver to trigger roam only when the current connected AP's RSSI
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006289 * is less than this threshold. The RSSI threshold through this attribute
6290 * is only used by the STA when the connected AP asks it to roam through
6291 * a BTM request. Based on this threshold, the STA can either honor or
6292 * reject the AP's request to roam, and notify the status to the AP in a
6293 * BTM response.
Hai Shalom899fcc72020-10-19 14:38:18 -07006294 *
6295 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6296 * signifying the RSSI threshold of the candidate AP, indicating
6297 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08006298 * better than this threshold. If RSSI thresholds for candidate APs found
6299 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
6300 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
6301 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
6302 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
6303 * take precedence over the value configured using the
6304 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07006305 *
6306 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
6307 * user defined reason code to be sent to the AP in response to AP's
6308 * request to trigger the roam if the roaming cannot be triggered.
6309 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
6310 *
6311 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
6312 * Carries a bitmap of the roam triggers specified in
6313 * enum qca_vendor_roam_triggers.
6314 * Represents the roam triggers for which the specific scan scheme from
6315 * enum qca_roam_scan_scheme has to be applied.
6316 * It's an optional attribute. If this attribute is not configured, but
6317 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
6318 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
6319 * all the roams.
6320 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
6321 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
6322 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006323 *
6324 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
6325 * in dBm, signifying the RSSI threshold of the candidate AP found in the
6326 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
6327 * AP found in the 2.4 GHz band only if its RSSI value is better than this
6328 * threshold. Optional attribute. If this attribute is not included, the
6329 * threshold value specified by the
6330 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6331 *
6332 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
6333 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
6334 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6335 * found in the 5 GHz band only if its RSSI value is better than this
6336 * threshold. Optional attribute. If this attribute is not included, the
6337 * threshold value specified by tge
6338 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6339 *
6340 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
6341 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
6342 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6343 * found in the 6 GHz band only if its RSSI value is better than this
6344 * threshold. Optional attribute. If this attribute is not included, the
6345 * threshold value specified by the
6346 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6347 *
6348 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
6349 * Carries bitmask value of bits from &enum qca_set_band and represents
6350 * all the bands in which roaming is allowed. The configuration is valid
6351 * until next disconnection. If this attribute is not present, the
6352 * existing configuration shall be used. By default, roaming is allowed on
6353 * all bands supported by the local device. When the value is set to
6354 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
6355 *
6356 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
6357 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
6358 * bands. If this attribute is not configured, the driver shall proceed
6359 * with default behavior.
6360 *
6361 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
6362 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
6363 * band. If this attribute is not configured, the driver shall proceed with
6364 * default behavior.
6365 *
6366 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
6367 * Optional parameter. The minimum duration to stay on the connected AP
6368 * channel during the channel scanning. If this attribute is not
6369 * configured, the driver shall proceed with default behavior.
6370 *
6371 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
6372 * Optional parameter. The maximum duration for which the radio can scan
6373 * foreign channels consecutively without coming back to home channel. If
6374 * this attribute is not configured, the driver shall proceed with default
6375 * behavior.
6376 *
6377 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
6378 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
6379 * If this attribute is not configured, the driver shall proceed with
6380 * default behavior.
6381 *
6382 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
6383 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
6384 * Channels. If this attribute is not configured, the driver shall proceed
6385 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00006386 *
6387 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
6388 * Optional parameter. RX link speed threshold to disable roaming.
6389 * If the current RX link speed is above the threshold, roaming is not
6390 * needed. If this attribute is not configured, or if it is set to 0, the
6391 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00006392 *
6393 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
6394 * Optional parameter. This configuration delays hand-off by the
6395 * specified duration to receive pending RX frames from the current BSS.
6396 *
6397 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
6398 * value.
6399 * During the roam scan, if there are no desired APs found in the partial
6400 * frequency list, an immediate full scan on all the supported frequencies
6401 * is initiated as a fallback. This flag controls the frequency list
6402 * creation for the full scan on the following lines.
6403 * 1 - Full scan to exclude the frequencies that were already scanned by
6404 * the previous partial scan.
6405 * 0 - Full scan to include all the supported frequencies irrespective of
6406 * the ones part of the earlier partial scan.
6407 * If this flag is not specified, a full scan shall include all the
6408 * supported frequencies irrespective of the ones part of an earlier
6409 * partial scan.
6410 *
6411 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
6412 * value.
6413 * During the roam scan, if there are no desired APs found in the partial
6414 * frequency list, an immediate full scan on all the supported frequencies
6415 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
6416 * frequencies, including all PSC frequencies by default. This attribute
6417 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
6418 * as following.
6419 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
6420 * prior discovery of any 6 GHz frequency support in the environment.
6421 * This discovery can happen through a prior RNR, 11k neighbor
6422 * request, 11v BTM request, host scan, etc.
6423 * 0 - Default behavior. Full scan to include all the supported 6 GHz
6424 * PSC frequencies regardless of whether 6 GHz BSSs have been
6425 * discovered.
6426 * The default behavior if this flag is not specified is to include all
6427 * the supported 6 GHz PSC frequencies in the roam full scan.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006428 *
6429 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
6430 * in dBm.
6431 * This attribute configures the low RSSI threshold of the connected AP,
6432 * based on which the STA can start looking for the neighbor APs and
6433 * trigger the roam eventually. STA keeps monitoring for the connected
6434 * AP's RSSI and will start scanning for neighboring APs once the RSSI
6435 * falls below this threshold. This attribute differs from
6436 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
6437 * threshold is used only when the connected AP asks the STA to roam
6438 * through a BTM request.
6439 *
6440 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6441 * This attribute signifies the RSSI difference threshold between the
6442 * connected AP and the new candidate AP. This parameter influences the
6443 * STA to roam to the new candidate only when its RSSI is better than
6444 * the current connected one by this threshold.
6445 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
6446 *
6447 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6448 * This attribute signifies the RSSI difference threshold between the
6449 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the
6450 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz
6451 * candidate only when its RSSI is better than the current connected one
6452 * by this threshold. This threshold overrides
6453 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
6454 * GHz to 6 GHz alone with the intention to have a different value to roam
6455 * to the preferred 6 GHz band.
6456 *
6457 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
6458 * This attribute signifies the RSSI offset that is added to low RSSI
6459 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
6460 * high RSSI threshold. STA is expected to trigger roam if the current
6461 * connected AP's RSSI gets above this high RSSI threshold. STA's roam
6462 * attempt on high RSSI threshold aims to find candidates from other
6463 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
6464 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
6465 * for 2.4 GHz BSS).
Hai Shalomc3565922019-10-28 11:58:20 -07006466 */
6467enum qca_vendor_attr_roam_control {
6468 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
6469 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
6470 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006471 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
Hai Shalomc3565922019-10-28 11:58:20 -07006472 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
6473 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
6474 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
6475 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006476 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
6477 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
6478 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
6479 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
6480 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006481 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
6482 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
6483 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
6484 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
6485 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
6486 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
6487 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
6488 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
6489 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
6490 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00006491 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006492 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
6493 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
6494 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006495 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
6496 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
6497 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
6498 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
Hai Shalomc3565922019-10-28 11:58:20 -07006499
6500 /* keep last */
6501 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
6502 QCA_ATTR_ROAM_CONTROL_MAX =
6503 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
6504};
6505
6506/*
6507 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
6508 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
6509 *
6510 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
6511 * Represents the different roam sub commands referred by
6512 * enum qca_wlan_vendor_roaming_subcmd.
6513 *
6514 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
6515 * Represents the Request ID for the specific set of commands.
6516 * This also helps to map specific set of commands to the respective
6517 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07006518 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07006519 * matching ID.
6520 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006521 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
6522 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07006523 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006524 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
6525 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006526 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006527 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
6528 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07006529 * represent the list of SSIDs to which the firmware/driver can consider
6530 * to roam to.
6531 *
6532 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
6533 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
6534 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
6535 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
6536 *
6537 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
6538 * value, RSSI threshold above which 5GHz RSSI is favored.
6539 *
6540 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
6541 * value, RSSI threshold below which 5GHz RSSI is penalized.
6542 *
6543 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
6544 * value, factor by which 5GHz RSSI is boosted.
6545 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
6546 *
6547 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
6548 * value, factor by which 5GHz RSSI is penalized.
6549 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
6550 *
6551 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
6552 * value, maximum boost that can be applied to a 5GHz RSSI.
6553 *
6554 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
6555 * value, boost applied to current BSSID to ensure the currently
6556 * associated BSSID is favored so as to prevent ping-pong situations.
6557 *
6558 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
6559 * value, RSSI below which "Alert" roam is enabled.
6560 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
6561 * because the RSSI is low, or because many successive beacons have been
6562 * lost or other bad link conditions.
6563 *
6564 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
6565 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08006566 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07006567 * the RSSI of the link is good. The parameters enabling the roaming are
6568 * configured through the PARAM_A_BAND_XX attrbutes.
6569 *
6570 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
6571 * represents the BSSIDs preferred over others while evaluating them
6572 * for the roaming.
6573 *
6574 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
6575 * 32-bit value. Represents the number of preferred BSSIDs set.
6576 *
6577 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
6578 * address representing the BSSID to be preferred.
6579 *
6580 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
6581 * 32-bit value, representing the modifier to be applied to the RSSI of
6582 * the BSSID for the purpose of comparing it with other roam candidate.
6583 *
6584 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006585 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07006586 *
6587 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07006588 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006589 *
6590 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07006591 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07006592 *
6593 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006594 * indicates this request to ignore the BSSID as a hint to the driver. The
6595 * driver can select this BSSID in the worst case (when no other BSSIDs are
6596 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07006597 *
6598 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
6599 * set/get/clear the roam control config as
6600 * defined @enum qca_vendor_attr_roam_control.
6601 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006602enum qca_wlan_vendor_attr_roaming_config_params {
6603 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
6604
6605 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
6606 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
6607
Hai Shaloma20dcd72022-02-04 13:43:00 -08006608 /* Attributes for wifi_set_ssid_allow_list */
6609 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
6610 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
6611 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006612
6613 /* Attributes for set_roam_params */
6614 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
6615 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
6616 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
6617 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
6618 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
6619 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
6620 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
6621
6622 /* Attribute for set_lazy_roam */
6623 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
6624
6625 /* Attribute for set_lazy_roam with preferences */
6626 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
6627 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
6628 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
6629 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
6630
Hai Shalom899fcc72020-10-19 14:38:18 -07006631 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006632 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
6633 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
6634 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07006635 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07006636 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006637
Hai Shalomc3565922019-10-28 11:58:20 -07006638 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
6639
Dmitry Shmidt29333592017-01-09 12:27:11 -08006640 /* keep last */
6641 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
6642 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
6643 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
6644};
6645
Hai Shaloma20dcd72022-02-04 13:43:00 -08006646/* old names for API compatibility */
6647#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
6648 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
6649#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
6650 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
6651#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
6652 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
6653
Dmitry Shmidt29333592017-01-09 12:27:11 -08006654/*
Hai Shalomc3565922019-10-28 11:58:20 -07006655 * enum qca_wlan_vendor_roaming_subcmd: Referred by
6656 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
6657 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006658 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
6659 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07006660 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006661 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
6662 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
6663 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07006664 *
6665 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
6666 * configure the Roam params. These parameters are evaluated on the GScan
6667 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
6668 * params.
6669 *
6670 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
6671 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
6672 * to enable/disable Lazy roam.
6673 *
6674 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
6675 * preference. Contains the attribute
6676 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
6677 * preference.
6678 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006679 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07006680 * to ignore in roaming decision. Uses
6681 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07006682 *
6683 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
6684 * roam control config to the driver with the attribute
6685 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6686 *
6687 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
6688 * roam control config from driver with the attribute
6689 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6690 * For the get, the attribute for the configuration to be queried shall
6691 * carry any of its acceptable value to the driver. In return, the driver
6692 * shall send the configured values within the same attribute to the user
6693 * space.
6694 *
6695 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
6696 * roam control config in the driver with the attribute
6697 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6698 * The driver shall continue with its default roaming behavior when data
6699 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08006700 */
Hai Shalomc3565922019-10-28 11:58:20 -07006701enum qca_wlan_vendor_roaming_subcmd {
6702 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006703 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07006704 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
6705 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
6706 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
6707 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006708 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07006709 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
6710 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
6711 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006712};
6713
Hai Shaloma20dcd72022-02-04 13:43:00 -08006714/* old names for API compatibility */
6715#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
6716 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
6717#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
6718 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
6719
Dmitry Shmidt29333592017-01-09 12:27:11 -08006720enum qca_wlan_vendor_attr_gscan_config_params {
6721 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
6722
6723 /* Unsigned 32-bit value */
6724 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
6725
6726 /* Attributes for data used by
6727 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
6728 */
6729 /* Unsigned 32-bit value */
6730 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
6731 = 2,
6732 /* Unsigned 32-bit value */
6733 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
6734 = 3,
6735
6736 /* Attributes for input params used by
6737 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
6738 */
6739
6740 /* Unsigned 32-bit value; channel frequency */
6741 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
6742 /* Unsigned 32-bit value; dwell time in ms. */
6743 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
6744 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
6745 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
6746 /* Unsigned 8-bit value; channel class */
6747 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
6748
6749 /* Unsigned 8-bit value; bucket index, 0 based */
6750 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
6751 /* Unsigned 8-bit value; band. */
6752 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
6753 /* Unsigned 32-bit value; desired period, in ms. */
6754 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
6755 /* Unsigned 8-bit value; report events semantics. */
6756 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
6757 /* Unsigned 32-bit value. Followed by a nested array of
6758 * GSCAN_CHANNEL_SPEC_* attributes.
6759 */
6760 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
6761
6762 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
6763 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6764 */
6765 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
6766
6767 /* Unsigned 32-bit value; base timer period in ms. */
6768 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
6769 /* Unsigned 32-bit value; number of APs to store in each scan in the
6770 * BSSID/RSSI history buffer (keep the highest RSSI APs).
6771 */
6772 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
6773 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
6774 * up AP.
6775 */
6776 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
6777 = 16,
6778
6779 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
6780 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
6781 * of the array is determined by NUM_BUCKETS.
6782 */
6783 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
6784
6785 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
6786 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
6787 */
6788 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
6789
6790 /* Unsigned 8-bit value */
6791 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
6792 = 19,
6793 /* Unsigned 32-bit value; maximum number of results to be returned. */
6794 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
6795 = 20,
6796
6797 /* An array of 6 x unsigned 8-bit value */
6798 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
6799 /* Signed 32-bit value */
6800 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
6801 /* Signed 32-bit value */
6802 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
6803 /* Unsigned 32-bit value */
6804 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
6805
6806 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
6807 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
6808 * array is determined by NUM_AP.
6809 */
6810 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
6811
6812 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
6813 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6814 */
6815 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
6816
6817 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
6818 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
6819 = 27,
6820 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6821 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
6822 = 28,
6823 /* Unsigned 32-bit value; number of APs breaching threshold. */
6824 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
6825 /* Unsigned 32-bit value; number of APs. Followed by an array of
6826 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
6827 */
6828 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
6829 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6830 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
6831 = 31,
6832 /* Unsigned 32-bit value. If max_period is non zero or different than
6833 * period, then this bucket is an exponential backoff bucket.
6834 */
6835 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
6836 /* Unsigned 32-bit value. */
6837 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
6838 /* Unsigned 32-bit value. For exponential back off bucket, number of
6839 * scans to perform for a given period.
6840 */
6841 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
6842 /* Unsigned 8-bit value; in number of scans, wake up AP after these
6843 * many scans.
6844 */
6845 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
6846 = 35,
6847
6848 /* Attributes for data used by
6849 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
6850 */
6851 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
6852 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
6853 = 36,
6854 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
6855 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
6856 * size of the array is determined by NUM_SSID.
6857 */
6858 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
6859 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
6860 * attributes.
6861 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
6862 */
6863 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
6864
6865 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6866 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
6867 /* Unsigned 8-bit value */
6868 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
6869 /* Signed 32-bit value */
6870 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
6871 /* Signed 32-bit value */
6872 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
6873 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
6874 */
6875 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
6876
6877 /* keep last */
6878 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
6879 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
6880 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
6881};
6882
6883enum qca_wlan_vendor_attr_gscan_results {
6884 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
6885
6886 /* Unsigned 32-bit value; must match the request Id supplied by
6887 * Wi-Fi HAL in the corresponding subcmd NL msg.
6888 */
6889 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
6890
6891 /* Unsigned 32-bit value; used to indicate the status response from
6892 * firmware/driver for the vendor sub-command.
6893 */
6894 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
6895
6896 /* GSCAN Valid Channels attributes */
6897 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
6898 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
6899 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
6900 * representing channel numbers.
6901 */
6902 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
6903
6904 /* GSCAN Capabilities attributes */
6905 /* Unsigned 32-bit value */
6906 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
6907 /* Unsigned 32-bit value */
6908 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
6909 /* Unsigned 32-bit value */
6910 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
6911 = 7,
6912 /* Unsigned 32-bit value */
6913 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
6914 = 8,
6915 /* Signed 32-bit value */
6916 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6917 = 9,
6918 /* Unsigned 32-bit value */
6919 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6920 /* Unsigned 32-bit value */
6921 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6922 = 11,
6923 /* Unsigned 32-bit value */
6924 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6925 = 12,
6926
6927 /* GSCAN Attributes used with
6928 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6929 */
6930
6931 /* Unsigned 32-bit value */
6932 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6933
6934 /* GSCAN attributes used with
6935 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6936 */
6937
6938 /* An array of NUM_RESULTS_AVAILABLE x
6939 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6940 */
6941 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6942
6943 /* Unsigned 64-bit value; age of sample at the time of retrieval */
6944 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6945 /* 33 x unsigned 8-bit value; NULL terminated SSID */
6946 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6947 /* An array of 6 x unsigned 8-bit value */
6948 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6949 /* Unsigned 32-bit value; channel frequency in MHz */
6950 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6951 /* Signed 32-bit value */
6952 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6953 /* Unsigned 32-bit value */
6954 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6955 /* Unsigned 32-bit value */
6956 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6957 /* Unsigned 16-bit value */
6958 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6959 /* Unsigned 16-bit value */
6960 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6961 /* Unsigned 32-bit value; size of the IE DATA blob */
6962 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6963 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6964 * information elements found in the beacon; this data should be a
6965 * packed list of wifi_information_element objects, one after the
6966 * other.
6967 */
6968 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6969
6970 /* Unsigned 8-bit value; set by driver to indicate more scan results are
6971 * available.
6972 */
6973 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6974
6975 /* GSCAN attributes for
6976 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6977 */
6978 /* Unsigned 8-bit value */
6979 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6980 /* Unsigned 32-bit value */
6981 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6982
6983 /* GSCAN attributes for
6984 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6985 */
6986 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6987 * to indicate number of results.
6988 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6989 * list of results.
6990 */
6991
6992 /* GSCAN attributes for
6993 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6994 */
6995 /* An array of 6 x unsigned 8-bit value */
6996 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6997 /* Unsigned 32-bit value */
6998 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6999 = 30,
7000 /* Unsigned 32-bit value. */
7001 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
7002 = 31,
7003 /* A nested array of signed 32-bit RSSI values. Size of the array is
7004 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
7005 */
7006 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
7007 = 32,
7008
7009 /* GSCAN attributes used with
7010 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
7011 */
7012 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
7013 * to indicate number of gscan cached results returned.
7014 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
7015 * the list of gscan cached results.
7016 */
7017
7018 /* An array of NUM_RESULTS_AVAILABLE x
7019 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
7020 */
7021 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
7022 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
7023 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
7024 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
7025 */
7026 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
7027 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
7028 * to indicate number of wifi scan results/bssids retrieved by the scan.
7029 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
7030 * list of wifi scan results returned for each cached result block.
7031 */
7032
7033 /* GSCAN attributes for
7034 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
7035 */
7036 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
7037 * number of results.
7038 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
7039 * list of wifi scan results returned for each
7040 * wifi_passpoint_match_result block.
7041 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
7042 */
7043
7044 /* GSCAN attributes for
7045 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
7046 */
7047 /* Unsigned 32-bit value */
7048 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
7049 = 36,
7050 /* A nested array of
7051 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
7052 * attributes. Array size =
7053 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
7054 */
7055 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
7056
7057 /* Unsigned 32-bit value; network block id for the matched network */
7058 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
7059 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
7060 * list of wifi scan results returned for each
7061 * wifi_passpoint_match_result block.
7062 */
7063 /* Unsigned 32-bit value */
7064 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
7065 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
7066 * ANQP data in the information_element format.
7067 */
7068 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
7069
7070 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7071 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
7072 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7073 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
7074 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7075 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
7076 = 43,
7077 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08007078 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08007079 = 44,
7080
7081 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
7082
Hai Shalomce48b4a2018-09-05 11:41:35 -07007083 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
7084 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07007085 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08007086 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07007087 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
7088 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08007089 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07007090
Sunil Ravi036cec52023-03-29 11:35:17 -07007091 /* Attribute used for padding for 64-bit alignment */
7092 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
7093
Dmitry Shmidt29333592017-01-09 12:27:11 -08007094 /* keep last */
7095 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
7096 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
7097 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
7098};
7099
Hai Shaloma20dcd72022-02-04 13:43:00 -08007100/* old names for API compatibility */
7101#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
7102 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
7103#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
7104 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
7105
Dmitry Shmidt29333592017-01-09 12:27:11 -08007106enum qca_wlan_vendor_attr_pno_config_params {
7107 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
7108 /* Attributes for data used by
7109 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
7110 */
7111 /* Unsigned 32-bit value */
7112 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
7113 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
7114 * attributes. Array size =
7115 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
7116 */
7117 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
7118
7119 /* Unsigned 32-bit value */
7120 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
7121 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
7122 * realm, 0 if unspecified.
7123 */
7124 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
7125 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
7126 * match, 0 if unspecified.
7127 */
7128 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
7129 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
7130 * unspecified.
7131 */
7132 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
7133
7134 /* Attributes for data used by
7135 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
7136 */
7137 /* Unsigned 32-bit value */
7138 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
7139 /* Array of nested
7140 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
7141 * attributes. Array size =
7142 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
7143 */
7144 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
7145 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
7146 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
7147 /* Signed 8-bit value; threshold for considering this SSID as found,
7148 * required granularity for this threshold is 4 dBm to 8 dBm.
7149 */
7150 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
7151 = 10,
7152 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
7153 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
7154 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
7155 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
7156 /* Unsigned 8-bit to indicate ePNO type;
7157 * It takes values from qca_wlan_epno_type
7158 */
7159 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
7160
7161 /* Nested attribute to send the channel list */
7162 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
7163
7164 /* Unsigned 32-bit value; indicates the interval between PNO scan
7165 * cycles in msec.
7166 */
7167 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
7168 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
7169 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
7170 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
7171 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
7172 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
7173 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
7174 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007175 /* Unsigned 32-bit value, representing the PNO Request ID */
7176 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08007177
7178 /* keep last */
7179 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
7180 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
7181 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
7182};
7183
Paul Stewart092955c2017-02-06 09:13:09 -08007184/**
7185 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7186 * the ACS has to be triggered. These values are used by
7187 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7188 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7189 */
7190enum qca_wlan_vendor_acs_select_reason {
7191 /* Represents the reason that the ACS triggered during the AP start */
7192 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7193 /* Represents the reason that DFS found with the current channel */
7194 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7195 /* Represents the reason that LTE co-exist in the current band. */
7196 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07007197 /* Represents the reason that generic, uncategorized interference has
7198 * been found in the current channel.
7199 */
7200 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7201 /* Represents the reason that excessive 802.11 interference has been
7202 * found in the current channel.
7203 */
7204 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7205 /* Represents the reason that generic Continuous Wave (CW) interference
7206 * has been found in the current channel.
7207 */
7208 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7209 /* Represents the reason that Microwave Oven (MWO) interference has been
7210 * found in the current channel.
7211 */
7212 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7213 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
7214 * (FHSS) interference has been found in the current channel. This may
7215 * include 802.11 waveforms.
7216 */
7217 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7218 /* Represents the reason that non-802.11 generic Frequency-Hopping
7219 * Spread Spectrum (FHSS) interference has been found in the current
7220 * channel.
7221 */
7222 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7223 /* Represents the reason that generic Wideband (WB) interference has
7224 * been found in the current channel. This may include 802.11 waveforms.
7225 */
7226 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7227 /* Represents the reason that non-802.11 generic Wideband (WB)
7228 * interference has been found in the current channel.
7229 */
7230 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7231 /* Represents the reason that Jammer interference has been found in the
7232 * current channel.
7233 */
7234 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07007235 /* Represents the reason that ACS triggered by AFC */
7236 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08007237};
7238
7239/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007240 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7241 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7242 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7243 * external ACS policies to select the channels w.r.t. the PCL weights.
7244 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7245 * their PCL weights.)
7246 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7247 * select a channel with non-zero PCL weight.
7248 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7249 * channel with non-zero PCL weight.
7250 *
7251 */
7252enum qca_wlan_vendor_attr_external_acs_policy {
7253 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7254 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7255};
7256
7257/**
Paul Stewart092955c2017-02-06 09:13:09 -08007258 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
7259 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
7260 */
7261enum qca_wlan_vendor_channel_prop_flags {
7262 /* Bits 0, 1, 2, and 3 are reserved */
7263
7264 /* Turbo channel */
7265 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
7266 /* CCK channel */
7267 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
7268 /* OFDM channel */
7269 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
7270 /* 2.4 GHz spectrum channel. */
7271 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
7272 /* 5 GHz spectrum channel */
7273 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
7274 /* Only passive scan allowed */
7275 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
7276 /* Dynamic CCK-OFDM channel */
7277 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
7278 /* GFSK channel (FHSS PHY) */
7279 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
7280 /* Radar found on channel */
7281 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
7282 /* 11a static turbo channel only */
7283 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
7284 /* Half rate channel */
7285 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
7286 /* Quarter rate channel */
7287 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
7288 /* HT 20 channel */
7289 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
7290 /* HT 40 with extension channel above */
7291 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
7292 /* HT 40 with extension channel below */
7293 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
7294 /* HT 40 intolerant */
7295 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
7296 /* VHT 20 channel */
7297 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
7298 /* VHT 40 with extension channel above */
7299 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
7300 /* VHT 40 with extension channel below */
7301 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
7302 /* VHT 80 channel */
7303 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
7304 /* HT 40 intolerant mark bit for ACS use */
7305 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
7306 /* Channel temporarily blocked due to noise */
7307 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
7308 /* VHT 160 channel */
7309 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
7310 /* VHT 80+80 channel */
7311 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007312 /* HE 20 channel */
7313 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
7314 /* HE 40 with extension channel above */
7315 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
7316 /* HE 40 with extension channel below */
7317 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
7318 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07007319 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007320};
7321
7322/**
7323 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
7324 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
7325 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
7326 */
7327enum qca_wlan_vendor_channel_prop_flags_2 {
7328 /* HE 40 intolerant mark bit for ACS use */
7329 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
7330 /* HE 80 channel */
7331 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
7332 /* HE 160 channel */
7333 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
7334 /* HE 80+80 channel */
7335 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007336};
7337
7338/**
7339 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
7340 * each channel. This is used by
7341 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
7342 */
7343enum qca_wlan_vendor_channel_prop_flags_ext {
7344 /* Radar found on channel */
7345 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
7346 /* DFS required on channel */
7347 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
7348 /* DFS required on channel for 2nd band of 80+80 */
7349 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
7350 /* If channel has been checked for DFS */
7351 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
7352 /* Excluded in 802.11d */
7353 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
7354 /* Channel Switch Announcement received on this channel */
7355 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
7356 /* Ad-hoc is not allowed */
7357 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
7358 /* Station only channel */
7359 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07007360 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007361 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07007362 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007363 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
7364};
7365
7366/**
7367 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
7368 * information. These attributes are sent as part of
7369 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
7370 * attributes correspond to a single channel.
7371 */
7372enum qca_wlan_vendor_external_acs_event_chan_info_attr {
7373 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
7374
7375 /* A bitmask (u32) with flags specified in
7376 * enum qca_wlan_vendor_channel_prop_flags.
7377 */
7378 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
7379 /* A bitmask (u32) with flags specified in
7380 * enum qca_wlan_vendor_channel_prop_flags_ext.
7381 */
7382 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
7383 /* frequency in MHz (u32) */
7384 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
7385 /* maximum regulatory transmission power (u32) */
7386 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
7387 /* maximum transmission power (u32) */
7388 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
7389 /* minimum transmission power (u32) */
7390 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
7391 /* regulatory class id (u8) */
7392 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
7393 /* maximum antenna gain in (u8) */
7394 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
7395 /* VHT segment 0 (u8) */
7396 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
7397 /* VHT segment 1 (u8) */
7398 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007399 /* A bitmask (u32) with flags specified in
7400 * enum qca_wlan_vendor_channel_prop_flags_2.
7401 */
7402 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007403
Hai Shalomc3565922019-10-28 11:58:20 -07007404 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007405 * Segment 0 in MHz (u32).
7406 *
7407 * For 20/40/80 MHz bandwidth, this indicates the channel center
7408 * frequency index for the 20/40/80 MHz operating channel.
7409 * For 160 MHz bandwidth, this indicates the channel center
7410 * frequency of the primary 80 MHz channel.
7411 * For 320 MHz bandwidth, indicates the channel center frequency
7412 * of the primary 160 MHz channel.
7413 *
7414 * To maintain backward compatibility,
7415 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7416 * is also maintained.
7417 */
7418 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
7419 /* Legacy alias for the Segment 0 attribute.
7420 *
Hai Shalomc3565922019-10-28 11:58:20 -07007421 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
7422 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7423 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7424 * along with
7425 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
7426 *
7427 * If both the driver and user-space application supports the 6 GHz
7428 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
7429 * is deprecated and
7430 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7431 * should be used.
7432 *
7433 * To maintain backward compatibility,
7434 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7435 * is still used if either of the driver or user space application
7436 * doesn't support the 6 GHz band.
7437 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007438 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
7439 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07007440
7441 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007442 * Segment 1 in MHz (u32).
7443 *
7444 * For 20/40/80 MHz bandwidth, this is set to 0.
7445 * For 160 MHz bandwidth, indicates the channel center frequency of the
7446 * 160 MHz channel.
7447 * For 320 MHz bandwidth, indicates the channel center frequency of the
7448 * 320 MHz channel.
7449 *
7450 * To maintain backward compatibility,
7451 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7452 * is also maintained.
7453 */
7454 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
7455 /* Legacy alias for the Segment 1 attribute.
7456 *
Hai Shalomc3565922019-10-28 11:58:20 -07007457 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
7458 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7459 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7460 * along with
7461 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
7462 *
7463 * If both the driver and user-space application supports the 6 GHz
7464 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
7465 * is deprecated and
7466 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7467 * should be considered.
7468 *
7469 * To maintain backward compatibility,
7470 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7471 * is still used if either of the driver or user space application
7472 * doesn't support the 6 GHz band.
7473 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007474 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
7475 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07007476
Sunil Ravia04bd252022-05-02 22:54:18 -07007477 /*
7478 * 16-bit attribute of bits indicating the AP power modes supported by
7479 * the channel (u16).
7480 * Note: Currently, only 3 bits are used in the attribute and each bit
7481 * corresponds to the power mode mentioned in enum
7482 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
7483 * set if the associated mode is supported.
7484 */
7485 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
7486 = 14,
7487 /* Array of nested attributes for each power mode. It takes attr as
7488 * defined in enum
7489 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
7490 */
7491 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007492 /*
7493 * This indicates the overlapping 320 MHz center frequency in MHz
7494 * (u32), if the given primary channel supports more than one
7495 * 320 MHz channel bonding.
7496 *
7497 * Example:
7498 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
7499 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
7500 * possible segment 2 frequencies for this (320 MHz center
7501 * frequencies):
7502 *
7503 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
7504 * from frequency 5945 MHz - 6265 MHz
7505 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
7506 * from frequency 6105 MHz - 6425 MHz
7507 *
7508 * In this case,
7509 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
7510 * return 6185 MHz.
7511 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
7512 * return 6105 MHz.
7513 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7514 * will return 6265 MHz.
7515 */
7516 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7517 = 16,
7518
Paul Stewart092955c2017-02-06 09:13:09 -08007519 /* keep last */
7520 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
7521 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
7522 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
7523};
7524
7525/**
Sunil Ravia04bd252022-05-02 22:54:18 -07007526 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
7527 * values that the vendor external ACS channel power attribute
7528 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
7529 * take.
7530 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
7531 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
7532 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
7533 */
7534enum qca_wlan_vendor_external_acs_chan_power_level {
7535 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
7536 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
7537 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
7538};
7539
7540/**
7541 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
7542 * attributes for power mode type and power values corresponding to that.
7543 * These attributes are sent as part of
7544 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
7545 */
7546enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
7547 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
7548 /*
7549 * Power mode (u8) takes the values defined in enum
7550 * qca_wlan_vendor_external_acs_chan_power_mode
7551 */
7552 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
7553 = 1,
7554 /*
7555 * Indicates if power value is a PSD/EIRP value (flag). If flag is
7556 * present, it indicates a PSD value.
7557 */
7558 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
7559 /*
7560 * Power value (u32) PSD/EIRP as indicated by
7561 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
7562 * for power mode corresponding to the
7563 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
7564 * Units for PSD - dBm/MHz
7565 * Units for EIRP - dBm
7566 */
7567 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
7568 = 3,
7569 /* keep last */
7570 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
7571 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
7572 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
7573};
7574
7575/**
Paul Stewart092955c2017-02-06 09:13:09 -08007576 * qca_wlan_vendor_attr_pcl: Represents attributes for
7577 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07007578 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
7579 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08007580 */
7581enum qca_wlan_vendor_attr_pcl {
7582 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
7583
7584 /* Channel number (u8) */
7585 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
7586 /* Channel weightage (u8) */
7587 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007588 /* Channel frequency (u32) in MHz */
7589 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
7590 /* Channel flags (u32)
7591 * bit 0 set: channel to be used for GO role,
7592 * bit 1 set: channel to be used on CLI role,
7593 * bit 2 set: channel must be considered for operating channel
7594 * selection & peer chosen operating channel should be
7595 * one of the channels with this flag set,
7596 * bit 3 set: channel should be excluded in GO negotiation
7597 */
7598 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07007599
7600 /* Keep last */
7601 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
7602 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08007603};
7604
7605/**
7606 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
7607 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
7608 * host driver.
7609 */
7610enum qca_wlan_vendor_attr_external_acs_event {
7611 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
7612
7613 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
7614 * This helps ACS module to understand why ACS needs to be started.
7615 */
7616 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
7617 /* Flag attribute to indicate if driver supports spectral scanning */
7618 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
7619 /* Flag attribute to indicate if 11ac is offloaded to firmware */
7620 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
7621 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07007622 * capability as part of scan operation
7623 */
Paul Stewart092955c2017-02-06 09:13:09 -08007624 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
7625 /* Flag attribute to indicate interface status is UP */
7626 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
7627 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07007628 * values.
7629 */
Paul Stewart092955c2017-02-06 09:13:09 -08007630 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
7631 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
7632 * This is the upper bound of channel width. ACS logic should try to get
7633 * a channel with the specified width and if not found, look for lower
7634 * values.
7635 */
7636 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
7637 /* This (u8) will hold values of one of enum nl80211_bands */
7638 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
7639 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07007640 * values
7641 */
Paul Stewart092955c2017-02-06 09:13:09 -08007642 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
7643 /* Array of (u32) supported frequency list among which ACS should choose
7644 * best frequency.
7645 */
7646 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
7647 /* Preferred channel list by the driver which will have array of nested
7648 * values as per enum qca_wlan_vendor_attr_pcl attribute.
7649 */
7650 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
7651 /* Array of nested attribute for each channel. It takes attr as defined
7652 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
7653 */
7654 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007655 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
7656 * It uses values defined in enum
7657 * qca_wlan_vendor_attr_external_acs_policy.
7658 */
7659 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007660 /* Reference RF Operating Parameter (RROP) availability information
7661 * (u16). It uses values defined in enum
7662 * qca_wlan_vendor_attr_rropavail_info.
7663 */
7664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07007665 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
7666 * for External ACS
7667 */
7668 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Sunil Ravic0f5d412024-09-11 22:12:49 +00007669 /* Link ID attibute (u8) is used to identify a specific link affiliated
7670 * to an AP MLD.
7671 */
7672 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LINK_ID = 16,
Paul Stewart092955c2017-02-06 09:13:09 -08007673
7674 /* keep last */
7675 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
7676 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
7677 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
7678};
7679
7680/**
Hai Shalomc3565922019-10-28 11:58:20 -07007681 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08007682 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7683 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07007684 *
7685 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7686 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7687 *
7688 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7689 * Array of nested values for each channel with following attributes:
7690 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7691 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7692 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7693 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7694 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7695 * Note: If both the driver and user-space application supports the 6 GHz band,
7696 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7697 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7698 * To maintain backward compatibility,
7699 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7700 * is still used if either of the driver or user space application doesn't
7701 * support the 6 GHz band.
7702 *
7703 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7704 * Primary channel number
7705 * Note: If both the driver and user-space application supports the 6 GHz band,
7706 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7707 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7708 * To maintain backward compatibility,
7709 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7710 * is still used if either of the driver or user space application doesn't
7711 * support the 6 GHz band.
7712 *
7713 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7714 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7715 * Note: If both the driver and user-space application supports the 6 GHz band,
7716 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7717 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7718 * To maintain backward compatibility,
7719 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7720 * is still used if either of the driver or user space application
7721 * doesn't support the 6 GHz band.
7722 *
7723 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7724 * VHT seg0 channel number
7725 * Note: If both the driver and user-space application supports the 6 GHz band,
7726 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7727 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7728 * To maintain backward compatibility,
7729 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7730 * is still used if either of the driver or user space application
7731 * doesn't support the 6 GHz band.
7732 *
7733 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7734 * VHT seg1 channel number
7735 * Note: If both the driver and user-space application supports the 6 GHz band,
7736 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7737 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7738 * To maintain backward compatibility,
7739 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7740 * is still used if either of the driver or user space application
7741 * doesn't support the 6 GHz band.
7742 *
7743 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7744 * Takes one of enum nl80211_chan_width values.
7745 *
7746 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7747 * Array of nested values for each channel with following attributes:
7748 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7749 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7750 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7751 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7752 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7753 * Note: If user-space application has no support of the 6 GHz band, this
7754 * attribute is optional.
7755 *
7756 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7757 * Primary channel frequency in MHz
7758 * Note: If user-space application has no support of the 6 GHz band, this
7759 * attribute is optional.
7760 *
7761 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7762 * Secondary channel frequency in MHz used for HT 40 MHz channels.
7763 * Note: If user-space application has no support of the 6 GHz band, this
7764 * attribute is optional.
7765 *
7766 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7767 * VHT seg0 channel frequency in MHz
7768 * Note: If user-space application has no support of the 6GHz band, this
7769 * attribute is optional.
7770 *
7771 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7772 * VHT seg1 channel frequency in MHz
7773 * Note: If user-space application has no support of the 6 GHz band, this
7774 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00007775 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7776 * Puncture Bitmap for selected primary channel. Optional if no support
7777 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7778 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7779 * element.
Sunil Ravi7f769292024-07-23 22:21:32 +00007780 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8).
7781 * Used with command to configure external ACS operation for a specific link
7782 * affiliated to an AP MLD.
Paul Stewart092955c2017-02-06 09:13:09 -08007783 */
7784enum qca_wlan_vendor_attr_external_acs_channels {
7785 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7786
7787 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7788 */
7789 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7790
7791 /* Array of nested values for each channel with following attributes:
7792 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7793 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7794 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7795 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7796 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7797 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7798 */
7799 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7800 /* This (u8) will hold values of one of enum nl80211_bands */
7801 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7802 /* Primary channel (u8) */
7803 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7804 /* Secondary channel (u8) used for HT 40 MHz channels */
7805 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7806 /* VHT seg0 channel (u8) */
7807 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7808 /* VHT seg1 channel (u8) */
7809 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7810 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7811 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7812
Hai Shalomc3565922019-10-28 11:58:20 -07007813 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7814 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7815 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7816 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7817 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007818 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Sunil Ravi7f769292024-07-23 22:21:32 +00007819 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15,
Hai Shalomc3565922019-10-28 11:58:20 -07007820
Paul Stewart092955c2017-02-06 09:13:09 -08007821 /* keep last */
7822 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7823 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7824 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7825};
7826
7827enum qca_chip_power_save_failure_reason {
7828 /* Indicates if the reason for the failure is due to a protocol
7829 * layer/module.
7830 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007831 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08007832 /* Indicates if the reason for the failure is due to a hardware issue.
7833 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007834 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007835};
7836
7837/**
7838 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
7839 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
7840 * information leading to the power save failure.
7841 */
7842enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07007843 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
7844 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08007845 * These reasons are represented by
7846 * enum qca_chip_power_save_failure_reason.
7847 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007848 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007849
Roshan Pius3a1667e2018-07-03 15:17:14 -07007850 /* keep last */
7851 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
7852 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
7853 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
7854};
7855
7856/**
7857 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
7858 * data types for which the stats have to get collected.
7859 */
7860enum qca_wlan_vendor_nud_stats_data_pkt_flags {
7861 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
7862 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
7863 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
7864 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
7865 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
7866 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
7867 * to represent the stats of respective data type.
7868 */
7869 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
7870 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
7871 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
7872};
7873
7874enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
7875 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
7876 /* Represents the data packet type to be monitored (u32).
7877 * Host driver tracks the stats corresponding to each data frame
7878 * represented by these flags.
7879 * These data packets are represented by
7880 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
7881 */
7882 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
7883 /* Name corresponding to the DNS frame for which the respective DNS
7884 * stats have to get monitored (string). Max string length 255.
7885 */
7886 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
7887 /* source port on which the respective proto stats have to get
7888 * collected (u32).
7889 */
7890 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
7891 /* destination port on which the respective proto stats have to get
7892 * collected (u32).
7893 */
7894 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
7895 /* IPv4 address for which the destined data packets have to be
7896 * monitored. (in network byte order), u32.
7897 */
7898 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
7899 /* IPv6 address for which the destined data packets have to be
7900 * monitored. (in network byte order), 16 bytes array.
7901 */
7902 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
7903
7904 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
7905 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
7906 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007907};
7908
7909/**
7910 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
7911 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
7912 * information to start/stop the NUD statistics collection.
7913 */
7914enum qca_attr_nud_stats_set {
7915 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
7916
7917 /* Flag to start/stop the NUD statistics collection.
7918 * Start - If included, Stop - If not included
7919 */
7920 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007921 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08007922 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007923 /* Represents the list of data packet types to be monitored.
7924 * Host driver tracks the stats corresponding to each data frame
7925 * represented by these flags.
7926 * These data packets are represented by
7927 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7928 */
7929 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007930
7931 /* keep last */
7932 QCA_ATTR_NUD_STATS_SET_LAST,
7933 QCA_ATTR_NUD_STATS_SET_MAX =
7934 QCA_ATTR_NUD_STATS_SET_LAST - 1,
7935};
7936
Roshan Pius3a1667e2018-07-03 15:17:14 -07007937enum qca_attr_nud_data_stats {
7938 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7939 /* Data packet type for which the stats are collected (u32).
7940 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7941 */
7942 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7943 /* Name corresponding to the DNS frame for which the respective DNS
7944 * stats are monitored (string). Max string length 255.
7945 */
7946 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7947 /* source port on which the respective proto stats are collected (u32).
7948 */
7949 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7950 /* destination port on which the respective proto stats are collected
7951 * (u32).
7952 */
7953 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7954 /* IPv4 address for which the destined data packets have to be
7955 * monitored. (in network byte order), u32.
7956 */
7957 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7958 /* IPv6 address for which the destined data packets have to be
7959 * monitored. (in network byte order), 16 bytes array.
7960 */
7961 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7962 /* Data packet Request count received from netdev (u32). */
7963 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7964 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
7965 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7966 /* Data packet Request count received by lower MAC from upper MAC
7967 * (u32)
7968 */
7969 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7970 /* Data packet Request count successfully transmitted by the device
7971 * (u32)
7972 */
7973 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7974 /* Data packet Response count received by lower MAC (u32) */
7975 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7976 /* Data packet Response count received by upper MAC (u32) */
7977 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7978 /* Data packet Response count delivered to netdev (u32) */
7979 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7980 /* Data Packet Response count that are dropped out of order (u32) */
7981 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7982
7983 /* keep last */
7984 QCA_ATTR_NUD_DATA_STATS_LAST,
7985 QCA_ATTR_NUD_DATA_STATS_MAX =
7986 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7987};
7988
Paul Stewart092955c2017-02-06 09:13:09 -08007989/**
7990 * qca_attr_nud_stats_get: Attributes to vendor subcmd
7991 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7992 * NUD statistics collected when queried.
7993 */
7994enum qca_attr_nud_stats_get {
7995 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007996 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007997 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007998 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007999 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008000 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008001 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008002 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008003 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008004 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008005 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008006 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008007 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008008 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008009 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008010 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08008011 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
8012 /* Flag indicating if the station's link to the AP is active.
8013 * Active Link - If included, Inactive link - If not included
8014 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008015 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08008016 /* Flag indicating if there is any duplicate address detected (DAD).
8017 * Yes - If detected, No - If not detected.
8018 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008019 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008020 /* List of Data packet types for which the stats are requested.
8021 * This list does not carry ARP stats as they are done by the
8022 * above attributes. Represented by enum qca_attr_nud_data_stats.
8023 */
8024 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08008025
8026 /* keep last */
8027 QCA_ATTR_NUD_STATS_GET_LAST,
8028 QCA_ATTR_NUD_STATS_GET_MAX =
8029 QCA_ATTR_NUD_STATS_GET_LAST - 1,
8030};
8031
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08008032enum qca_wlan_btm_candidate_status {
8033 QCA_STATUS_ACCEPT = 0,
8034 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
8035 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
8036 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
8037 QCA_STATUS_REJECT_LOW_RSSI = 4,
8038 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
8039 QCA_STATUS_REJECT_UNKNOWN = 6,
8040};
8041
8042enum qca_wlan_vendor_attr_btm_candidate_info {
8043 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
8044
8045 /* 6-byte MAC address representing the BSSID of transition candidate */
8046 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
8047 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
8048 * returned by the driver. It says whether the BSSID provided in
8049 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
8050 * the driver, if not it specifies the reason for rejection.
8051 * Note that the user-space can overwrite the transition reject reason
8052 * codes provided by driver based on more information.
8053 */
8054 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
8055
8056 /* keep last */
8057 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
8058 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
8059 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
8060};
8061
8062enum qca_attr_trace_level {
8063 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
8064 /*
8065 * Nested array of the following attributes:
8066 * QCA_ATTR_TRACE_LEVEL_MODULE,
8067 * QCA_ATTR_TRACE_LEVEL_MASK.
8068 */
8069 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
8070 /*
8071 * Specific QCA host driver module. Please refer to the QCA host
8072 * driver implementation to get the specific module ID.
8073 */
8074 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
8075 /* Different trace level masks represented in the QCA host driver. */
8076 QCA_ATTR_TRACE_LEVEL_MASK = 3,
8077
8078 /* keep last */
8079 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
8080 QCA_ATTR_TRACE_LEVEL_MAX =
8081 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
8082};
8083
8084/**
8085 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
8086 */
8087enum qca_wlan_vendor_attr_get_he_capabilities {
8088 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
8089 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07008090 * (u8 attribute: 0 = not supported, 1 = supported)
8091 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08008092 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
8093 /* HE PHY capabilities, array of 3 u32 values */
8094 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
8095 /* HE MAC capabilities (u32 attribute) */
8096 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
8097 /* HE MCS map (u32 attribute) */
8098 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
8099 /* Number of SS (u32 attribute) */
8100 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
8101 /* RU count (u32 attribute) */
8102 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
8103 /* PPE threshold data, array of 8 u32 values */
8104 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
8105
8106 /* keep last */
8107 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
8108 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
8109 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
8110};
8111
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008112/**
8113 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8114 */
8115enum qca_wlan_vendor_attr_spectral_scan {
8116 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8117 /* Number of times the chip enters spectral scan mode before
8118 * deactivating spectral scans. When set to 0, chip will enter spectral
8119 * scan mode continuously. u32 attribute.
8120 */
8121 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8122 /* Spectral scan period. Period increment resolution is 256*Tclk,
8123 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8124 */
8125 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8126 /* Spectral scan priority. u32 attribute. */
8127 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8128 /* Number of FFT data points to compute. u32 attribute. */
8129 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8130 /* Enable targeted gain change before starting the spectral scan FFT.
8131 * u32 attribute.
8132 */
8133 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8134 /* Restart a queued spectral scan. u32 attribute. */
8135 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8136 /* Noise floor reference number for the calculation of bin power.
8137 * u32 attribute.
8138 */
8139 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8140 /* Disallow spectral scan triggers after TX/RX packets by setting
8141 * this delay value to roughly SIFS time period or greater.
8142 * u32 attribute.
8143 */
8144 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8145 /* Number of strong bins (inclusive) per sub-channel, below
8146 * which a signal is declared a narrow band tone. u32 attribute.
8147 */
8148 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8149 /* Specify the threshold over which a bin is declared strong (for
8150 * scan bandwidth analysis). u32 attribute.
8151 */
8152 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8153 /* Spectral scan report mode. u32 attribute. */
8154 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8155 /* RSSI report mode, if the ADC RSSI is below
8156 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8157 * then FFTs will not trigger, but timestamps and summaries get
8158 * reported. u32 attribute.
8159 */
8160 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8161 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
8162 * to ensure spectral scan reporting with normal error code.
8163 * u32 attribute.
8164 */
8165 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8166 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
8167 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8168 * u32 attribute.
8169 */
8170 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8171 /* Format of FFT report to software for spectral scan triggered FFTs.
8172 * 0: No FFT report (only spectral scan summary report)
8173 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8174 * report
8175 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8176 * bins (in-band) per FFT + spectral scan summary report
8177 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8178 * bins (all) per FFT + spectral scan summary report
8179 * u32 attribute.
8180 */
8181 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8182 /* Number of LSBs to shift out in order to scale the FFT bins.
8183 * u32 attribute.
8184 */
8185 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8186 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8187 * in dBm power. u32 attribute.
8188 */
8189 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8190 /* Per chain enable mask to select input ADC for search FFT.
8191 * u32 attribute.
8192 */
8193 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8194 /* An unsigned 64-bit integer provided by host driver to identify the
8195 * spectral scan request. This attribute is included in the scan
8196 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8197 * and used as an attribute in
8198 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8199 * specific scan to be stopped.
8200 */
8201 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008202 /* Skip interval for FFT reports. u32 attribute */
8203 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8204 /* Set to report only one set of FFT results.
8205 * u32 attribute.
8206 */
8207 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8208 /* Debug level for spectral module in driver.
8209 * 0 : Verbosity level 0
8210 * 1 : Verbosity level 1
8211 * 2 : Verbosity level 2
8212 * 3 : Matched filterID display
8213 * 4 : One time dump of FFT report
8214 * u32 attribute.
8215 */
8216 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8217 /* Type of spectral scan request. u32 attribute.
8218 * It uses values defined in enum
8219 * qca_wlan_vendor_attr_spectral_scan_request_type.
8220 */
8221 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07008222 /* This specifies the frequency span over which spectral
8223 * scan would be carried out. Its value depends on the
8224 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8225 * the relation is as follows.
8226 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8227 * Not applicable. Spectral scan would happen in the
8228 * operating span.
8229 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8230 * Center frequency (in MHz) of the span of interest or
8231 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07008232 * in the span of interest. For 80+80 MHz agile spectral scan
8233 * request it represents center frequency (in MHz) of the primary
8234 * 80 MHz span or for convenience, center frequency (in MHz) of any
8235 * channel in the primary 80 MHz span. If agile spectral scan is
8236 * initiated without setting a valid frequency it returns the
8237 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07008238 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8239 * u32 attribute.
8240 */
8241 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8242 /* Spectral scan mode. u32 attribute.
8243 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8244 * If this attribute is not present, it is assumed to be
8245 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8246 */
8247 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8248 /* Spectral scan error code. u32 attribute.
8249 * It uses values defined in enum
8250 * qca_wlan_vendor_spectral_scan_error_code.
8251 * This attribute is included only in failure scenarios.
8252 */
8253 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8254 /* 8-bit unsigned value to enable/disable debug of the
8255 * Spectral DMA ring.
8256 * 1-enable, 0-disable
8257 */
8258 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8259 /* 8-bit unsigned value to enable/disable debug of the
8260 * Spectral DMA buffers.
8261 * 1-enable, 0-disable
8262 */
8263 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008264 /* This specifies the frequency span over which spectral scan would be
8265 * carried out. Its value depends on the value of
8266 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8267 * follows.
8268 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8269 * Not applicable. Spectral scan would happen in the operating span.
8270 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8271 * This attribute is applicable only for agile spectral scan
8272 * requests in 80+80 MHz mode. It represents center frequency (in
8273 * MHz) of the secondary 80 MHz span or for convenience, center
8274 * frequency (in MHz) of any channel in the secondary 80 MHz span.
8275 * u32 attribute.
8276 */
8277 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008278 /* This attribute specifies the bandwidth to be used for spectral scan
8279 * operation. This is an u8 attribute and uses the values in enum
8280 * nl80211_chan_width. This is an optional attribute.
8281 * If this attribute is not populated, the driver should configure the
8282 * spectral scan bandwidth to the maximum value supported by the target
8283 * for the current operating bandwidth.
8284 */
8285 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008286 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
8287 * Recapture can only be enabled for scan period greater than 52 us.
8288 * If this attribute is enabled, re-triggers will be enabled when AGC
8289 * gain changes.
8290 */
8291 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07008292 /* Attribute used for padding for 64-bit alignment */
8293 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Sunil Ravi99c035e2024-07-12 01:42:03 +00008294 /* Spectral data transport mode. u32 attribute. It uses values
8295 * defined in enum qca_wlan_vendor_spectral_data_transport_mode.
8296 * This is an optional attribute. If this attribute is not populated,
8297 * the driver should configure the default transport mode to netlink.
8298 */
8299 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33,
8300 /* Spectral scan completion timeout. u32 attribute. This
8301 * attribute is used to configure a timeout value (in us). The
8302 * timeout value would be from the beginning of a spectral
8303 * scan. This is an optional attribute. If this attribute is
8304 * not populated, the driver would internally derive the
8305 * timeout value.
8306 */
8307 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008308
8309 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8310 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8311 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8312};
8313
Roshan Pius3a1667e2018-07-03 15:17:14 -07008314/**
8315 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8316 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8317 */
8318enum qca_wlan_vendor_attr_spectral_diag_stats {
8319 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8320 /* Number of spectral TLV signature mismatches.
8321 * u64 attribute.
8322 */
8323 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8324 /* Number of spectral phyerror events with insufficient length when
8325 * parsing for secondary 80 search FFT report. u64 attribute.
8326 */
8327 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8328 /* Number of spectral phyerror events without secondary 80
8329 * search FFT report. u64 attribute.
8330 */
8331 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8332 /* Number of spectral phyerror events with vht operation segment 1 id
8333 * mismatches in search fft report. u64 attribute.
8334 */
8335 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8336 /* Number of spectral phyerror events with vht operation segment 2 id
8337 * mismatches in search fft report. u64 attribute.
8338 */
8339 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07008340 /* Attribute used for padding for 64-bit alignment */
8341 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008342
8343 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8344 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8345 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8346};
8347
8348/**
8349 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8350 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8351 */
8352enum qca_wlan_vendor_attr_spectral_cap {
8353 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8354 /* Flag attribute to indicate phydiag capability */
8355 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8356 /* Flag attribute to indicate radar detection capability */
8357 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8358 /* Flag attribute to indicate spectral capability */
8359 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8360 /* Flag attribute to indicate advanced spectral capability */
8361 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8362 /* Spectral hardware generation. u32 attribute.
8363 * It uses values defined in enum
8364 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8365 */
8366 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008367 /* Spectral bin scaling formula ID. u16 attribute.
8368 * It uses values defined in enum
8369 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8370 */
8371 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8372 /* Spectral bin scaling param - low level offset.
8373 * s16 attribute.
8374 */
8375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8376 /* Spectral bin scaling param - high level offset.
8377 * s16 attribute.
8378 */
8379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8380 /* Spectral bin scaling param - RSSI threshold.
8381 * s16 attribute.
8382 */
8383 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8384 /* Spectral bin scaling param - default AGC max gain.
8385 * u8 attribute.
8386 */
8387 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07008388 /* Flag attribute to indicate agile spectral scan capability
8389 * for 20/40/80 MHz modes.
8390 */
Hai Shalom81f62d82019-07-22 12:10:00 -07008391 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07008392 /* Flag attribute to indicate agile spectral scan capability
8393 * for 160 MHz mode.
8394 */
8395 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8396 /* Flag attribute to indicate agile spectral scan capability
8397 * for 80+80 MHz mode.
8398 */
8399 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008400 /* Number of spectral detectors used for scan in 20 MHz.
8401 * u32 attribute.
8402 */
8403 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8404 /* Number of spectral detectors used for scan in 40 MHz.
8405 * u32 attribute.
8406 */
8407 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8408 /* Number of spectral detectors used for scan in 80 MHz.
8409 * u32 attribute.
8410 */
8411 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8412 /* Number of spectral detectors used for scan in 160 MHz.
8413 * u32 attribute.
8414 */
8415 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8416 /* Number of spectral detectors used for scan in 80+80 MHz.
8417 * u32 attribute.
8418 */
8419 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008420 /* Flag attribute to indicate agile spectral scan capability
8421 * for 320 MHz mode.
8422 */
8423 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8424 /* Number of spectral detectors used for scan in 320 MHz.
8425 * u32 attribute.
8426 */
8427 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008428
8429 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8430 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8431 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8432};
8433
8434/**
8435 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8436 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8437 */
8438enum qca_wlan_vendor_attr_spectral_scan_status {
8439 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8440 /* Flag attribute to indicate whether spectral scan is enabled */
8441 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8442 /* Flag attribute to indicate whether spectral scan is in progress*/
8443 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07008444 /* Spectral scan mode. u32 attribute.
8445 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8446 * If this attribute is not present, normal mode
8447 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8448 * requested.
8449 */
8450 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008451
8452 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8454 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8455};
8456
8457/**
8458 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8459 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8460 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8461 * spectral scan request types.
8462 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8463 * set the spectral parameters and start scan.
8464 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8465 * only set the spectral parameters.
8466 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8467 * only start the spectral scan.
8468 */
8469enum qca_wlan_vendor_attr_spectral_scan_request_type {
8470 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8471 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8472 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8473};
8474
8475/**
Hai Shalom81f62d82019-07-22 12:10:00 -07008476 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8477 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8478 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8479 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8480 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8481 * spectral scan modes.
8482 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8483 * spectral scan in the current operating span.
8484 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8485 * spectral scan in the configured agile span.
8486 */
8487enum qca_wlan_vendor_spectral_scan_mode {
8488 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8489 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8490};
8491
8492/**
8493 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8494 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8495 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8496 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8497 * of a parameter is not supported.
8498 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8499 * mode is not supported.
8500 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8501 * has invalid value.
8502 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8503 * is not initialized.
8504 */
8505enum qca_wlan_vendor_spectral_scan_error_code {
8506 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8507 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8508 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8509 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8510};
8511
8512/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008513 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8514 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8515 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8516 * spectral hardware generation.
8517 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8518 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8519 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8520 */
8521enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8522 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8523 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8524 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8525};
8526
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008527enum qca_wlan_vendor_tos {
8528 QCA_WLAN_VENDOR_TOS_BK = 0,
8529 QCA_WLAN_VENDOR_TOS_BE = 1,
8530 QCA_WLAN_VENDOR_TOS_VI = 2,
8531 QCA_WLAN_VENDOR_TOS_VO = 3,
8532};
8533
8534/**
8535 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
8536 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
8537 */
8538enum qca_wlan_vendor_attr_active_tos {
8539 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
8540 /* Type Of Service - Represented by qca_wlan_vendor_tos */
8541 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
8542 /* Flag attribute representing the start (attribute included) or stop
8543 * (attribute not included) of the respective TOS.
8544 */
8545 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
8546};
8547
8548enum qca_wlan_vendor_hang_reason {
8549 /* Unspecified reason */
8550 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
8551 /* No Map for the MAC entry for the received frame */
8552 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
8553 /* Peer deletion timeout happened */
8554 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
8555 /* Peer unmap timeout */
8556 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
8557 /* Scan request timed out */
8558 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
8559 /* Consecutive Scan attempt failures */
8560 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
8561 /* Unable to get the message buffer */
8562 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
8563 /* Current command processing is timedout */
8564 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
8565 /* Timeout for an ACK from FW for suspend request */
8566 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
8567 /* Timeout for an ACK from FW for resume request */
8568 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
8569 /* Transmission timeout for consecutive data frames */
8570 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
8571 /* Timeout for the TX completion status of data frame */
8572 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
8573 /* DXE failure for TX/RX, DXE resource unavailability */
8574 QCA_WLAN_HANG_DXE_FAILURE = 12,
8575 /* WMI pending commands exceed the maximum count */
8576 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07008577 /* Timeout for peer STA connection accept command's response from the
8578 * FW in AP mode. This command is triggered when a STA (peer) connects
8579 * to AP (DUT).
8580 */
8581 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
8582 /* Timeout for the AP connection accept command's response from the FW
8583 * in STA mode. This command is triggered when the STA (DUT) connects
8584 * to an AP (peer).
8585 */
8586 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
8587 /* Timeout waiting for the response to the MAC HW mode change command
8588 * sent to FW as a part of MAC mode switch among DBS (Dual Band
8589 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
8590 * Channel Concurrency) mode.
8591 */
8592 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
8593 /* Timeout waiting for the response from FW to configure the MAC HW's
8594 * mode. This operation is to configure the single/two MACs in either
8595 * SCC/MCC/DBS mode.
8596 */
8597 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
8598 /* Timeout waiting for response of VDEV start command from the FW */
8599 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
8600 /* Timeout waiting for response of VDEV restart command from the FW */
8601 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
8602 /* Timeout waiting for response of VDEV stop command from the FW */
8603 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
8604 /* Timeout waiting for response of VDEV delete command from the FW */
8605 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
8606 /* Timeout waiting for response of peer all delete request command to
8607 * the FW on a specific VDEV.
8608 */
8609 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08008610 /* WMI sequence mismatch between WMI command and Tx completion */
8611 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
8612 /* Write to Device HAL register failed */
8613 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
8614 /* No credit left to send the wow_wakeup_from_sleep to firmware */
8615 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
8616 /* Bus failure */
8617 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008618 /* tasklet/credit latency found */
8619 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00008620 /* MSDU buffers received in REO error ring, exceeding certain
8621 * threshold
8622 */
8623 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
8624 /* Vdev SM is out of sync and connect req received
8625 * when already connected
8626 */
8627 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
8628 /* Stats request timeout */
8629 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
8630 /* Leak in TX descriptor for a packet */
8631 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
8632 /* Scheduler watchdog timeout */
8633 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
8634 /* Failed to send self peer deletion cmd to firmware */
8635 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
8636 /* Received del self sta without del bss */
8637 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
8638 /* Recovery needed when sending flush completion to userspace */
8639 QCA_WLAN_HANG_FLUSH_LOGS = 35,
8640 /* Host wakeup because of page fault */
8641 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008642};
8643
8644/**
8645 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
8646 * QCA_NL80211_VENDOR_SUBCMD_HANG.
8647 */
8648enum qca_wlan_vendor_attr_hang {
8649 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
8650 /* Reason for the hang - u32 attribute with a value from enum
8651 * qca_wlan_vendor_hang_reason.
8652 */
8653 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008654 /* The binary blob data associated with the hang reason specified by
8655 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
8656 * contain the required dump to analyze the reason for the hang.
8657 * NLA_BINARY attribute, the max size is 1024 bytes.
8658 */
8659 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008660
8661 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
8662 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
8663 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
8664};
8665
Roshan Pius3a1667e2018-07-03 15:17:14 -07008666/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008667 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
8668 * the policy to flush pending frames, configured via
8669 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
8670 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
8671 *
8672 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
8673 * the flush policy configured before. This command basically disables the
8674 * flush config set by the user.
8675 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
8676 * the flush policy to be immediate. All pending packets for the peer/TID are
8677 * flushed when this command/policy is received.
8678 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
8679 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
8680 * are flushed when the end of TWT SP is reached.
8681 */
8682enum qca_wlan_vendor_flush_pending_policy {
8683 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
8684 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
8685 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
8686};
8687
8688/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008689 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
8690 * flushing pending traffic in firmware.
8691 *
8692 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
8693 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
8694 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
8695 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08008696 * flush packets with access category. This is optional. See below.
8697 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
8698 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
8699 * bit to 1 to act upon the TID. This is optional. Either this attribute or
8700 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
8701 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
8702 * it is an error.
8703 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
8704 * packets corresponding to the peer/TID provided. It is a u32 value,
8705 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
8706 * value is honored only when TID mask is provided. This is not honored when AC
8707 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008708 */
8709enum qca_wlan_vendor_attr_flush_pending {
8710 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
8711 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
8712 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008713 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
8714 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008715
8716 /* keep last */
8717 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
8718 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
8719 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
8720};
8721
8722/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008723 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8724 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8725 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8726 * Spectral bin scaling formula ID.
8727 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8728 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8729 * and RSSI threshold based formula.
8730 */
8731enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8732 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8733 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8734};
8735
8736/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008737 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8738 * RF Operating Parameter (RROP) information is available, and if so, at which
8739 * point in the application-driver interaction sequence it can be retrieved by
8740 * the application from the driver. This point may vary by architecture and
8741 * other factors. This is a u16 value.
8742 */
8743enum qca_wlan_vendor_attr_rropavail_info {
8744 /* RROP information is unavailable. */
8745 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8746 /* RROP information is available and the application can retrieve the
8747 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8748 * event from the driver.
8749 */
8750 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8751 /* RROP information is available only after a vendor specific scan
8752 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8753 * successfully completed. The application can retrieve the information
8754 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8755 * the driver.
8756 */
8757 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8758};
8759
8760/**
8761 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8762 * Representative RF Operating Parameter (RROP) information. It is sent for the
8763 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8764 * intended for use by external Auto Channel Selection applications. It provides
8765 * guidance values for some RF parameters that are used by the system during
8766 * operation. These values could vary by channel, band, radio, and so on.
8767 */
8768enum qca_wlan_vendor_attr_rrop_info {
8769 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8770
8771 /* Representative Tx Power List (RTPL) which has an array of nested
8772 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8773 */
8774 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8775
8776 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8777 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8778 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8779};
8780
8781/**
8782 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8783 * entry instances in the Representative Tx Power List (RTPL). It provides
8784 * simplified power values intended for helping external Auto channel Selection
8785 * applications compare potential Tx power performance between channels, other
8786 * operating conditions remaining identical. These values are not necessarily
8787 * the actual Tx power values that will be used by the system. They are also not
8788 * necessarily the max or average values that will be used. Instead, they are
8789 * relative, summarized keys for algorithmic use computed by the driver or
8790 * underlying firmware considering a number of vendor specific factors.
8791 */
8792enum qca_wlan_vendor_attr_rtplinst {
8793 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8794
Hai Shalomfdcde762020-04-02 11:19:20 -07008795 /* Primary channel number (u8).
8796 * Note: If both the driver and user space application support the
8797 * 6 GHz band, this attribute is deprecated and
8798 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8799 * maintain backward compatibility,
8800 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8801 * driver or user space application or both do not support the 6 GHz
8802 * band.
8803 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008804 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8805 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
8806 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8807 /* Representative Tx power in dBm (s32) with emphasis on range. */
8808 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07008809 /* Primary channel center frequency (u32) in MHz */
8810 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008811
8812 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8813 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8814 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8815};
8816
8817/**
8818 * enum qca_wlan_vendor_attr_config_latency_level - Level for
8819 * wlan latency module.
8820 *
8821 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8822 * power saving which would causing data exchange out of service, this
8823 * would be a big impact on latency. For latency sensitive applications over
8824 * Wi-Fi are intolerant to such operations and thus would configure them
8825 * to meet their respective needs. It is well understood by such applications
8826 * that altering the default behavior would degrade the Wi-Fi functionality
8827 * w.r.t the above pointed WLAN operations.
8828 *
8829 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8830 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008831 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8832 * Use XR level to benefit XR (extended reality) application to achieve
8833 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008834 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07008835 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07008836 * downloading or video streaming via constraint scan/adaptive PS.
8837 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8838 * Use ultra low latency level to benefit for gaming/voice
8839 * application via constraint scan/roaming/adaptive PS.
8840 */
8841enum qca_wlan_vendor_attr_config_latency_level {
8842 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8843 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008844 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8845 /* legacy name */
8846 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8847 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008848 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8849 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8850
8851 /* keep last */
8852 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8853 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8854 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8855};
8856
8857/**
8858 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
8859 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8860 */
8861enum qca_wlan_vendor_attr_mac {
8862 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8863
8864 /* MAC mode info list which has an array of nested values as
8865 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
8866 */
8867 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8868
8869 /* keep last */
8870 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8871 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8872 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8873};
8874
8875/**
8876 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8877 * Wi-Fi netdev interface on a respective MAC.
8878 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8879 */
8880enum qca_wlan_vendor_attr_mac_iface_info {
8881 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8882 /* Wi-Fi netdev's interface index (u32) */
8883 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8884 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
8885 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8886
8887 /* keep last */
8888 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8889 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8890 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8891};
8892
8893/**
8894 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8895 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8896 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8897 */
8898enum qca_wlan_vendor_attr_mac_info {
8899 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8900 /* Hardware MAC ID associated for the MAC (u32) */
8901 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8902 /* Band supported by the MAC at a given point.
8903 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
8904 * nl80211_band.
8905 */
8906 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8907 /* Refers to list of WLAN netdev interfaces associated with this MAC.
8908 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
8909 */
8910 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8911
8912 /* keep last */
8913 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8914 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8915 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8916};
8917
8918/**
8919 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
8920 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
8921 */
8922enum qca_wlan_vendor_attr_get_logger_features {
8923 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
8924 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
8925 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
8926 /* keep last */
8927 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
8928 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
8929 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
8930};
8931
8932/**
8933 * enum wifi_logger_supported_features - Values for supported logger features
8934 */
8935enum wifi_logger_supported_features {
8936 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
8937 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
8938 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8939 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8940 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8941 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8942 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8943 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8944 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8945};
8946
8947/**
8948 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8949 * capabilities features
8950 */
8951enum qca_wlan_tdls_caps_features_supported {
8952 WIFI_TDLS_SUPPORT = (1 << (0)),
8953 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008954 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
8955
8956 /* Indicates if the TDLS session can be formed with the peer using
8957 * higher bandwidth than the bandwidth of the AP path.
8958 */
8959 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
Roshan Pius3a1667e2018-07-03 15:17:14 -07008960};
8961
8962/**
8963 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8964 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8965 */
8966enum qca_wlan_vendor_attr_tdls_get_capabilities {
8967 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8968 /* Indicates the max concurrent sessions */
8969 /* Unsigned 32-bit value */
8970 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8971 /* Indicates the support for features */
8972 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8973 */
8974 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8975
8976 /* keep last */
8977 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8978 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8979 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8980};
8981
8982/**
8983 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8984 * command used as value for the attribute
8985 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8986 */
8987enum qca_wlan_offloaded_packets_sending_control {
8988 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8989 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8990 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8991};
8992
8993/**
8994 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8995 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8996 */
8997enum qca_wlan_vendor_attr_offloaded_packets {
8998 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8999 /* Takes valid value from the enum
9000 * qca_wlan_offloaded_packets_sending_control
9001 * Unsigned 32-bit value
9002 */
9003 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
9004 /* Unsigned 32-bit value */
9005 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
9006 /* array of u8 len: Max packet size */
9007 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
9008 /* 6-byte MAC address used to represent source MAC address */
9009 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
9010 /* 6-byte MAC address used to represent destination MAC address */
9011 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
9012 /* Unsigned 32-bit value, in milli seconds */
9013 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07009014 /* This optional unsigned 16-bit attribute is used for specifying
9015 * ethernet protocol type. If not specified ethertype defaults to IPv4.
9016 */
9017 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009018
9019 /* keep last */
9020 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
9021 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
9022 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
9023};
9024
9025/**
9026 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
9027 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
9028 */
9029enum qca_wlan_rssi_monitoring_control {
9030 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
9031 QCA_WLAN_RSSI_MONITORING_START,
9032 QCA_WLAN_RSSI_MONITORING_STOP,
9033};
9034
9035/**
9036 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
9037 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
9038 */
9039enum qca_wlan_vendor_attr_rssi_monitoring {
9040 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
9041 /* Takes valid value from the enum
9042 * qca_wlan_rssi_monitoring_control
9043 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
9044 */
9045 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
9046 /* Unsigned 32-bit value */
9047 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
9048 /* Signed 8-bit value in dBm */
9049 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
9050 /* Signed 8-bit value in dBm */
9051 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
9052 /* attributes to be used/received in callback */
9053 /* 6-byte MAC address used to represent current BSSID MAC address */
9054 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
9055 /* Signed 8-bit value indicating the current RSSI */
9056 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
9057 /* keep last */
9058 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
9059 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
9060 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
9061};
9062
9063/**
9064 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
9065 * QCA_NL80211_VENDOR_SUBCMD_NDP.
9066 */
9067enum qca_wlan_vendor_attr_ndp_params {
9068 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
9069 /* Unsigned 32-bit value
9070 * enum of sub commands values in qca_wlan_ndp_sub_cmd
9071 */
9072 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
9073 /* Unsigned 16-bit value */
9074 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
9075 /* NL attributes for data used NDP SUB cmds */
9076 /* Unsigned 32-bit value indicating a service info */
9077 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
9078 /* Unsigned 32-bit value; channel frequency in MHz */
9079 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
9080 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
9081 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
9082 /* Interface name on which NDP is being created */
9083 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
9084 /* Unsigned 32-bit value for security */
9085 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
9086 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
9087 /* Unsigned 32-bit value for QoS */
9088 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
9089 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
9090 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
9091 /* Unsigned 32-bit value for NDP instance Id */
9092 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
9093 /* Array of instance Ids */
9094 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
9095 /* Unsigned 32-bit value for initiator/responder NDP response code
9096 * accept/reject
9097 */
9098 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
9099 /* NDI MAC address. An array of 6 Unsigned int8 */
9100 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
9101 /* Unsigned 32-bit value errors types returned by driver
9102 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
9103 * NanStatusType includes these values.
9104 */
9105 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
9106 /* Unsigned 32-bit value error values returned by driver
9107 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
9108 * NanInternalStatusType includes these values.
9109 */
9110 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
9111 /* Unsigned 32-bit value for Channel setup configuration
9112 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
9113 * NanDataPathChannelCfg includes these values.
9114 */
9115 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
9116 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
9117 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
9118 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
9119 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
9120 /* Security Context Identifier that contains the PMKID
9121 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
9122 */
9123 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
9124 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
9125 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
9126 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
9127 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
9128 /* Unsigned 32-bit bitmap indicating schedule update
9129 * BIT_0: NSS Update
9130 * BIT_1: Channel list update
9131 */
9132 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
9133 /* Unsigned 32-bit value for NSS */
9134 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
9135 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
9136 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
9137 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
9138 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
9139 */
9140 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
9141 /* Array of channel/band width */
9142 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
9143 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
9144 * This attribute is used and optional for ndp request, ndp response,
9145 * ndp indication, and ndp confirm.
9146 */
9147 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
9148 /* Unsigned 16-bit value indicating transport port used by NDP.
9149 * This attribute is used and optional for ndp response, ndp indication,
9150 * and ndp confirm.
9151 */
9152 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
9153 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
9154 * the Internet Assigned Numbers Authority (IANA) as per:
9155 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
9156 * This attribute is used and optional for ndp response, ndp indication,
9157 * and ndp confirm.
9158 */
9159 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009160 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
9161 * 1:support 0:not support
9162 */
9163 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07009164 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
9165 * 48 bits of the SHA-256 hash of the Service Name.
9166 * A lower-case representation of the Service Name shall be used to
9167 * calculate the Service ID.
9168 * Array of u8: length is 6 bytes
9169 * This attribute is used and optional for ndp indication.
9170 */
9171 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009172 /* Unsigned 8-bit value for Cipher Suite capabilities.
9173 * u8 attribute.
9174 * This attribute is used and optional in ndp request, ndp response,
9175 * ndp indication, and ndp confirm.
9176 * This attribute is used to indicate the Capabilities field of Cipher
9177 * Suite Information attribute (CSIA) of NDP frames as defined in
9178 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
9179 * Firmware can accept or ignore any of the capability bits.
9180 */
9181 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
9182 /* Indicate that GTK protection is required for NDP.
9183 * NLA_FLAG attribute.
9184 * This attribute can be used in ndp request, ndp response, ndp
9185 * indication, and ndp confirm.
9186 * GTK protection required is indicated in the NDPE attribute of NAN
9187 * action frame (NAF) during NDP negotiation as defined in
9188 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
9189 * If the device and peer supports GTKSA and if GTK protection required
9190 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
9191 * of Data Path Security Confirm and Data Path Security Install frames
9192 * of NDP negotiation to send and receive protected group addressed data
9193 * frames from each other.
9194 */
9195 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009196
9197 /* keep last */
9198 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
9199 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
9200 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
9201};
9202
9203enum qca_wlan_ndp_sub_cmd {
9204 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07009205 /* Command to create a NAN data path interface.
9206 * This command was initially designed to both create and start a NAN
9207 * data path interface. However, changes to Linux 5.12 no longer allow
9208 * interface creation via vendor commands. When the driver advertises
9209 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
9210 * userspace must explicitly first create the interface using
9211 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
9212 * to start the interface.
9213 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009214 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07009215 /* Command to delete a NAN data path interface.
9216 * This command was initially designed to both stop and delete a NAN
9217 * data path interface. However, changes to Linux 5.12 no longer allow
9218 * interface deletion via vendor commands. When the driver advertises
9219 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
9220 * userspace must explicitly delete the interface using
9221 * NL80211_CMD_DEL_INTERFACE after calling this command.
9222 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009223 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
9224 /* Command to initiate a NAN data path session */
9225 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
9226 /* Command to notify if the NAN data path session was sent */
9227 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
9228 /* Command to respond to NAN data path session */
9229 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
9230 /* Command to notify on the responder about the response */
9231 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
9232 /* Command to initiate a NAN data path end */
9233 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
9234 /* Command to notify the if end request was sent */
9235 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
9236 /* Command to notify the peer about the end request */
9237 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
9238 /* Command to confirm the NAN data path session is complete */
9239 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
9240 /* Command to indicate the peer about the end request being received */
9241 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
9242 /* Command to indicate the peer of schedule update */
9243 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
9244};
9245
9246/**
9247 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
9248 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
9249 */
9250enum qca_wlan_vendor_attr_nd_offload {
9251 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
9252 /* Flag to set Neighbour Discovery offload */
9253 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
9254 /* Keep last */
9255 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
9256 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
9257 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
9258};
9259
9260/**
9261 * enum packet_filter_sub_cmd - Packet filter sub commands
9262 */
9263enum packet_filter_sub_cmd {
9264 /**
9265 * Write packet filter program and/or data. The driver/firmware should
9266 * disable APF before writing into local buffer and re-enable APF after
9267 * writing is done.
9268 */
9269 QCA_WLAN_SET_PACKET_FILTER = 1,
9270 /* Get packet filter feature capabilities from driver */
9271 QCA_WLAN_GET_PACKET_FILTER = 2,
9272 /**
9273 * Write packet filter program and/or data. User space will send the
9274 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
9275 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
9276 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
9277 * enable/disable is given to user space with this command. Also,
9278 * user space sends the length of program portion in the buffer within
9279 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
9280 */
9281 QCA_WLAN_WRITE_PACKET_FILTER = 3,
9282 /* Read packet filter program and/or data */
9283 QCA_WLAN_READ_PACKET_FILTER = 4,
9284 /* Enable APF feature */
9285 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
9286 /* Disable APF feature */
9287 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
9288};
9289
9290/**
9291 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
9292 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
9293 */
9294enum qca_wlan_vendor_attr_packet_filter {
9295 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
9296 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
9297 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
9298 /* Unsigned 32-bit value indicating the packet filter version */
9299 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
9300 /* Unsigned 32-bit value indicating the packet filter id */
9301 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
9302 /**
9303 * Unsigned 32-bit value indicating the packet filter size including
9304 * program + data.
9305 */
9306 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
9307 /* Unsigned 32-bit value indicating the packet filter current offset */
9308 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
9309 /* Program and/or data in bytes */
9310 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
9311 /* Unsigned 32-bit value of the length of the program section in packet
9312 * filter buffer.
9313 */
9314 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
9315
9316 /* keep last */
9317 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
9318 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
9319 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
9320};
9321
9322/**
9323 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
9324 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
9325 */
9326enum qca_wlan_vendor_drv_info {
9327 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
9328 /* Maximum Message size info between firmware & HOST
9329 * Unsigned 32-bit value
9330 */
9331 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
9332 /* keep last */
9333 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
9334 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
9335 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
9336};
9337
9338/**
9339 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
9340 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
9341 */
9342enum qca_wlan_vendor_attr_wake_stats {
9343 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
9344 /* Unsigned 32-bit value indicating the total count of wake event */
9345 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
9346 /* Array of individual wake count, each index representing wake reason
9347 */
9348 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
9349 /* Unsigned 32-bit value representing wake count array */
9350 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
9351 /* Unsigned 32-bit total wake count value of driver/fw */
9352 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
9353 /* Array of wake stats of driver/fw */
9354 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
9355 /* Unsigned 32-bit total wake count value of driver/fw */
9356 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
9357 /* Unsigned 32-bit total wake count value of packets received */
9358 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
9359 /* Unsigned 32-bit wake count value unicast packets received */
9360 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
9361 /* Unsigned 32-bit wake count value multicast packets received */
9362 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
9363 /* Unsigned 32-bit wake count value broadcast packets received */
9364 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
9365 /* Unsigned 32-bit wake count value of ICMP packets */
9366 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
9367 /* Unsigned 32-bit wake count value of ICMP6 packets */
9368 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
9369 /* Unsigned 32-bit value ICMP6 router advertisement */
9370 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
9371 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
9372 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
9373 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
9374 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
9375 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
9376 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
9377 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
9378 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
9379 /* Unsigned 32-bit wake count value of receive side multicast */
9380 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
9381 /* Unsigned 32-bit wake count value of a given RSSI breach */
9382 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
9383 /* Unsigned 32-bit wake count value of low RSSI */
9384 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
9385 /* Unsigned 32-bit value GSCAN count */
9386 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
9387 /* Unsigned 32-bit value PNO complete count */
9388 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
9389 /* Unsigned 32-bit value PNO match count */
9390 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
9391 /* keep last */
9392 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
9393 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
9394 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
9395};
9396
9397/**
Hai Shalomfdcde762020-04-02 11:19:20 -07009398 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07009399 * configured by userspace to the driver/firmware.
9400 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
9401 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07009402 * The driver/firmware takes actions requested by userspace such as throttling
9403 * wifi TX etc. in order to mitigate high temperature.
9404 *
9405 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
9406 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
9407 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
9408 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
9409 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
9410 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
9411 */
9412enum qca_wlan_vendor_thermal_level {
9413 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
9414 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
9415 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
9416 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
9417 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
9418 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
9419};
9420
9421/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009422 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
9423 * cmd value. Used for NL attributes for data used by
9424 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9425 */
9426enum qca_wlan_vendor_attr_thermal_cmd {
9427 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
9428 /* The value of command, driver will implement different operations
9429 * according to this value. It uses values defined in
9430 * enum qca_wlan_vendor_attr_thermal_cmd_type.
9431 * u32 attribute.
9432 */
9433 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07009434 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07009435 * driver/firmware, or get thermal level from the driver/firmware.
9436 * Used in request or response, u32 attribute,
9437 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07009438 */
9439 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
9440 /* Userspace uses this attribute to configure the time in which the
9441 * driver/firmware should complete applying settings it received from
9442 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
9443 * command type. Used in request, u32 attribute, value is in
9444 * milliseconds. A value of zero indicates to apply the settings
9445 * immediately. The driver/firmware can delay applying the configured
9446 * thermal settings within the time specified in this attribute if
9447 * there is any critical ongoing operation.
9448 */
9449 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009450 /* Nested attribute, the driver/firmware uses this attribute to report
9451 * thermal statistics of different thermal levels to userspace when
9452 * requested using the
9453 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
9454 * type. This attribute contains a nested array of records of thermal
9455 * statistics of multiple levels. The attributes used inside this nested
9456 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
9457 */
9458 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009459
9460 /* keep last */
9461 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
9462 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
9463 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
9464};
9465
9466/**
9467 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
9468 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
9469 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
9470 * thermal command types sent to driver.
9471 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
9472 * get thermal shutdown configuration parameters for display. Parameters
9473 * responded from driver are defined in
9474 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
9475 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
9476 * get temperature. Host should respond with a temperature data. It is defined
9477 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
9478 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
9479 * suspend action.
9480 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
9481 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07009482 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
9483 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07009484 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
9485 * thermal level from the driver/firmware. The driver should respond with a
9486 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009487 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
9488 * current thermal statistics from the driver/firmware. The driver should
9489 * respond with statistics of all thermal levels encapsulated in the attribute
9490 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
9491 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
9492 * the current thermal statistics for all thermal levels maintained in the
9493 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009494 */
9495enum qca_wlan_vendor_attr_thermal_cmd_type {
9496 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
9497 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
9498 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
9499 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07009500 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07009501 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009502 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
9503 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009504};
9505
9506/**
9507 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
9508 * to get chip temperature by user.
9509 * enum values are used for NL attributes for data used by
9510 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
9511 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9512 */
9513enum qca_wlan_vendor_attr_thermal_get_temperature {
9514 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
9515 /* Temperature value (degree Celsius) from driver.
9516 * u32 attribute.
9517 */
9518 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
9519
9520 /* keep last */
9521 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
9522 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
9523 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
9524};
9525
9526/**
9527 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
9528 * to get configuration parameters of thermal shutdown feature. Enum values are
9529 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
9530 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9531 */
9532enum qca_wlan_vendor_attr_get_thermal_params_rsp {
9533 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
9534 /* Indicate if the thermal shutdown feature is enabled.
9535 * NLA_FLAG attribute.
9536 */
9537 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
9538 /* Indicate if the auto mode is enabled.
9539 * Enable: Driver triggers the suspend/resume action.
9540 * Disable: User space triggers the suspend/resume action.
9541 * NLA_FLAG attribute.
9542 */
9543 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
9544 /* Thermal resume threshold (degree Celsius). Issue the resume command
9545 * if the temperature value is lower than this threshold.
9546 * u16 attribute.
9547 */
9548 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
9549 /* Thermal warning threshold (degree Celsius). FW reports temperature
9550 * to driver if it's higher than this threshold.
9551 * u16 attribute.
9552 */
9553 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
9554 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
9555 * if the temperature value is higher than this threshold.
9556 * u16 attribute.
9557 */
9558 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
9559 /* FW reports temperature data periodically at this interval (ms).
9560 * u16 attribute.
9561 */
9562 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
9563
9564 /* keep last */
9565 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
9566 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
9567 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
9568};
9569
9570/**
9571 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
9572 * report thermal events from driver to user space.
9573 * enum values are used for NL attributes for data used by
9574 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
9575 */
9576enum qca_wlan_vendor_attr_thermal_event {
9577 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
9578 /* Temperature value (degree Celsius) from driver.
9579 * u32 attribute.
9580 */
9581 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
9582 /* Indication of resume completion from power save mode.
9583 * NLA_FLAG attribute.
9584 */
9585 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07009586 /* Thermal level from the driver.
9587 * u32 attribute. Possible values are defined in
9588 * enum qca_wlan_vendor_thermal_level.
9589 */
9590 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009591
9592 /* keep last */
9593 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
9594 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
9595 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
9596};
9597
9598/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009599 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9600 * to get thermal status from the driver/firmware.
9601 * enum values are used for NL attributes encapsulated inside the
9602 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9603 *
9604 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9605 * of a thermal level in Celsius. u32 size.
9606 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9607 * of a thermal level in Celsius. u32 size.
9608 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9609 * thermal level in milliseconds. u32 size.
9610 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9611 * of times the temperature crossed into the temperature range defined by the
9612 * thermal level from both higher and lower directions. u32 size.
9613 */
9614enum qca_wlan_vendor_attr_thermal_stats {
9615 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9616 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9617 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9618 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9619 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9620
9621 /* keep last */
9622 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9623 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9624 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9625};
9626
9627/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009628 * enum he_fragmentation_val - HE fragmentation support values
9629 * Indicates level of dynamic fragmentation that is supported by
9630 * a STA as a recipient.
9631 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
9632 * (HE MAC Capabilities Information field) and are used in HE Capabilities
9633 * element to advertise the support. These values are validated in the driver
9634 * to check the device capability and advertised in the HE Capabilities
9635 * element. These values are used to configure testbed device to allow the
9636 * advertised hardware capabilities to be downgraded for testing purposes.
9637 *
9638 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9639 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9640 * contained within an MPDU or S-MPDU, no support for dynamic fragments
9641 * within an A-MPDU that is not an S-MPDU.
9642 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9643 * contained within an MPDU or S-MPDU and support for up to one dynamic
9644 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
9645 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9646 * MPDU or S-MPDU.
9647 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9648 * contained within an MPDU or S-MPDU and support for multiple dynamic
9649 * fragments for each MSDU and for each A-MSDU if supported by the
9650 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9651 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9652 */
9653enum he_fragmentation_val {
9654 HE_FRAG_DISABLE,
9655 HE_FRAG_LEVEL1,
9656 HE_FRAG_LEVEL2,
9657 HE_FRAG_LEVEL3,
9658};
9659
9660/**
9661 * enum he_mcs_config - HE MCS support configuration
9662 *
9663 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9664 * These values are used in driver to configure the HE MCS map to advertise
9665 * Tx/Rx MCS map in HE capability and these values are applied for all the
9666 * streams supported by the device. To configure MCS for different bandwidths,
9667 * vendor command needs to be sent using this attribute with appropriate value.
9668 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9669 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
9670 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
9671 * These values are used to configure testbed device to allow the advertised
9672 * hardware capabilities to be downgraded for testing purposes. The enum values
9673 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
9674 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
9675 * These values are validated in the driver before setting the MCS map and
9676 * driver returns error if the input is other than these enum values.
9677 *
9678 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
9679 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
9680 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
9681 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
9682 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
9683 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
9684 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
9685 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
9686 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
9687 */
9688enum he_mcs_config {
9689 HE_80_MCS0_7 = 0,
9690 HE_80_MCS0_9 = 1,
9691 HE_80_MCS0_11 = 2,
9692 HE_160_MCS0_7 = 4,
9693 HE_160_MCS0_9 = 5,
9694 HE_160_MCS0_11 = 6,
9695 HE_80P80_MCS0_7 = 8,
9696 HE_80P80_MCS0_9 = 9,
9697 HE_80P80_MCS0_11 = 10,
9698};
9699
9700/**
9701 * enum qca_wlan_ba_session_config - BA session configuration
9702 *
9703 * Indicates the configuration values for BA session configuration attribute.
9704 *
9705 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9706 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9707 */
9708enum qca_wlan_ba_session_config {
9709 QCA_WLAN_ADD_BA = 1,
9710 QCA_WLAN_DELETE_BA = 2,
9711};
9712
9713/**
9714 * enum qca_wlan_ac_type - Access category type
9715 *
9716 * Indicates the access category type value.
9717 *
9718 * @QCA_WLAN_AC_BE: BE access category
9719 * @QCA_WLAN_AC_BK: BK access category
9720 * @QCA_WLAN_AC_VI: VI access category
9721 * @QCA_WLAN_AC_VO: VO access category
9722 * @QCA_WLAN_AC_ALL: All ACs
9723 */
9724enum qca_wlan_ac_type {
9725 QCA_WLAN_AC_BE = 0,
9726 QCA_WLAN_AC_BK = 1,
9727 QCA_WLAN_AC_VI = 2,
9728 QCA_WLAN_AC_VO = 3,
9729 QCA_WLAN_AC_ALL = 4,
9730};
9731
9732/**
9733 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9734 *
9735 * Indicates the HE LTF configuration value.
9736 *
9737 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
9738 * based on the GI setting
9739 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9740 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9741 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9742 */
9743enum qca_wlan_he_ltf_cfg {
9744 QCA_WLAN_HE_LTF_AUTO = 0,
9745 QCA_WLAN_HE_LTF_1X = 1,
9746 QCA_WLAN_HE_LTF_2X = 2,
9747 QCA_WLAN_HE_LTF_4X = 3,
9748};
9749
Hai Shalomc9e41a12018-07-31 14:41:42 -07009750/**
9751 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9752 *
9753 * Indicates the HE trigger frame MAC padding duration value.
9754 *
9755 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9756 * process the trigger frame.
9757 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9758 * trigger frame.
9759 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9760 * trigger frame.
9761 */
9762enum qca_wlan_he_mac_padding_dur {
9763 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9764 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9765 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9766};
9767
Hai Shalom74f70d42019-02-11 14:42:39 -08009768/**
9769 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9770 *
9771 * Indicates the HE Operating mode control channel width setting value.
9772 *
9773 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9774 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9775 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9776 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9777 */
9778enum qca_wlan_he_om_ctrl_ch_bw {
9779 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9780 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9781 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9782 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9783};
9784
9785/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009786 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9787 *
9788 * Indicates the frame types to use for keep alive data.
9789 *
9790 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9791 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9792 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9793 */
9794enum qca_wlan_keep_alive_data_type {
9795 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9796 QCA_WLAN_KEEP_ALIVE_DATA = 1,
9797 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9798};
9799
9800/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00009801 * enum eht_mcs_config - EHT MCS support configuration
9802 *
9803 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9804 * These values are used in the driver to configure the EHT MCS map to advertise
9805 * Tx/Rx MCS map in EHT capability and these values are applied for all the
9806 * streams supported by the device.
9807 * @EHT_MCS0_7: EHT MCS 0 to 7 support
9808 * @EHT_MCS0_9: EHT MCS 0 to 9 support
9809 * @EHT_MCS0_11: EHT MCS 0 to 11 support
9810 * @EHT_MCS0_13: EHT MCS 0 to 13 support
9811 */
9812enum eht_mcs_config {
9813 EHT_MCS0_7 = 0,
9814 EHT_MCS0_9 = 1,
9815 EHT_MCS0_11 = 2,
9816 EHT_MCS0_13 = 3,
9817};
9818
9819/**
9820 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9821 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9822 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9823 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9824 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9825 * multi-link multi radio mode.
9826 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9827 * multi-link multi radio mode.
9828 */
9829enum qca_wlan_eht_mlo_mode {
9830 QCA_WLAN_EHT_MODE_INVALID = 0,
9831 QCA_WLAN_EHT_MLSR = 1,
9832 QCA_WLAN_EHT_EMLSR = 2,
9833 QCA_WLAN_EHT_NON_STR_MLMR = 3,
9834 QCA_WLAN_EHT_STR_MLMR = 4,
9835};
9836
9837/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009838 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9839 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9840 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9841 */
9842enum qca_wlan_emlsr_mode {
9843 QCA_WLAN_EMLSR_MODE_ENTER = 0,
9844 QCA_WLAN_EMLSR_MODE_EXIT = 1,
9845};
9846
9847/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009848 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9849 * support
9850 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9851 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9852 * both DL and UL
9853 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9854 * different link set
9855 */
9856enum qca_wlan_ttlm_negotiation_support {
9857 QCA_WLAN_TTLM_DISABLE = 0,
9858 QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9859 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9860};
9861
9862/**
9863 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9864 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9865 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9866 */
9867enum qca_coex_traffic_shaping_mode {
9868 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9869 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9870};
9871
9872/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009873 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9874 * EHT operating mode control transmit request. These attributes are
9875 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
Hai Shalom74f70d42019-02-11 14:42:39 -08009876 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9877 *
9878 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9879 * indicates the maximum number of spatial streams, NSS, that the STA
9880 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9881 * and is set to NSS - 1.
9882 *
9883 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9884 * indicates the operating channel width supported by the STA for both
9885 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9886 *
9887 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9888 * indicates the all trigger based UL MU operations by the STA.
9889 * 0 - UL MU operations are enabled by the STA.
9890 * 1 - All triggered UL MU transmissions are suspended by the STA.
9891 *
9892 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9893 * indicates the maximum number of space-time streams, NSTS, that
9894 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07009895 *
9896 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9897 * combined with the UL MU Disable subfield and the recipient's setting
9898 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9899 * capabilities to determine which HE TB PPDUs are possible by the
9900 * STA to transmit.
9901 * 0 - UL MU data operations are enabled by the STA.
9902 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9903 * bit is not set, else UL MU Tx is suspended.
9904 *
Sunil Ravi640215c2023-06-28 23:08:09 +00009905 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9906 * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9907 * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9908 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9909 *
9910 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9911 * 320 MHz operating channel width supported by the EHT STA for both reception
9912 * and transmission.
9913 *
9914 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9915 * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9916 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9917 * that the STA supports in transmission for PPDU bandwidths less than or equal
9918 * to 80 MHz.
Hai Shalom74f70d42019-02-11 14:42:39 -08009919 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009920enum qca_wlan_vendor_attr_omi_tx {
Hai Shalom74f70d42019-02-11 14:42:39 -08009921 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9922 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9923 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9924 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9925 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07009926 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00009927 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9928 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9929 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
Hai Shalom74f70d42019-02-11 14:42:39 -08009930
9931 /* keep last */
Sunil Ravi640215c2023-06-28 23:08:09 +00009932 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9933 QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9934 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
Hai Shalom74f70d42019-02-11 14:42:39 -08009935};
9936
Sunil Ravi640215c2023-06-28 23:08:09 +00009937/* deprecated legacy names */
9938#define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9939 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9940#define qca_wlan_vendor_attr_he_omi_tx \
9941 qca_wlan_vendor_attr_omi_tx
9942#define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9943 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9944#define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9945 QCA_WLAN_VENDOR_ATTR_OMI_MAX
9946
Hai Shalom899fcc72020-10-19 14:38:18 -07009947 /**
9948 * enum qca_wlan_vendor_phy_mode - Different PHY modes
9949 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9950 *
9951 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9952 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9953 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9954 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9955 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9956 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9957 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9958 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9959 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9960 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9961 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9962 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9963 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9964 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9965 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9966 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9967 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9968 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9969 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9970 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9971 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9972 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9973 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9974 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9975 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9976 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9977 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9978 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9979 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9980 */
9981enum qca_wlan_vendor_phy_mode {
9982 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9983 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9984 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9985 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9986 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9987 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9988 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9989 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9990 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9991 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9992 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9993 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9994 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9995 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9996 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9997 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9998 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9999 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
10000 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
10001 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
10002 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
10003 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
10004 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
10005 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
10006 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
10007 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
10008 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
10009 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
10010 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
10011};
10012
Roshan Pius3a1667e2018-07-03 15:17:14 -070010013/* Attributes for data used by
10014 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
10015 */
10016enum qca_wlan_vendor_attr_wifi_test_config {
10017 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
10018 /* 8-bit unsigned value to configure the driver to enable/disable
10019 * WMM feature. This attribute is used to configure testbed device.
10020 * 1-enable, 0-disable
10021 */
10022 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
10023
10024 /* 8-bit unsigned value to configure the driver to accept/reject
10025 * the addba request from peer. This attribute is used to configure
10026 * the testbed device.
10027 * 1-accept addba, 0-reject addba
10028 */
10029 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
10030
10031 /* 8-bit unsigned value to configure the driver to send or not to
10032 * send the addba request to peer.
10033 * This attribute is used to configure the testbed device.
10034 * 1-send addba, 0-do not send addba
10035 */
10036 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
10037
10038 /* 8-bit unsigned value to indicate the HE fragmentation support.
10039 * Uses enum he_fragmentation_val values.
10040 * This attribute is used to configure the testbed device to
10041 * allow the advertised hardware capabilities to be downgraded
10042 * for testing purposes.
10043 */
10044 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
10045
10046 /* 8-bit unsigned value to indicate the HE MCS support.
10047 * Uses enum he_mcs_config values.
10048 * This attribute is used to configure the testbed device to
10049 * allow the advertised hardware capabilities to be downgraded
10050 * for testing purposes.
10051 */
10052 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
10053
10054 /* 8-bit unsigned value to configure the driver to allow or not to
10055 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
10056 * This attribute is used to configure the testbed device.
10057 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
10058 */
10059 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
10060
10061 /* 8-bit unsigned value to configure the driver to add a
10062 * new BA session or delete the existing BA session for
10063 * given TID. ADDBA command uses the buffer size and TID
10064 * configuration if user specifies the values else default
10065 * value for buffer size is used for all TIDs if the TID
10066 * also not specified. For DEL_BA command TID value is
10067 * required to process the command.
10068 * Uses enum qca_wlan_ba_session_config values.
10069 * This attribute is used to configure the testbed device.
10070 */
10071 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
10072
Hai Shalomce48b4a2018-09-05 11:41:35 -070010073 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -070010074 * request and response frames.
10075 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -070010076 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010077 */
10078 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
10079
10080 /* 8-bit unsigned value to configure the buffer size in addba
10081 * request and response frames.
10082 * This attribute is used to configure the testbed device.
10083 */
10084 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
10085
10086 /* 8-bit unsigned value to configure the no ack policy.
10087 * To configure no ack policy, access category value is
10088 * required to process the command.
10089 * This attribute is used to configure the testbed device.
10090 * 1 - enable no ack, 0 - disable no ack.
10091 */
10092 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
10093
10094 /* 8-bit unsigned value to configure the AC for no ack policy
10095 * This attribute is used to configure the testbed device.
10096 * Uses the enum qca_wlan_ac_type values.
10097 */
10098 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
10099
10100 /* 8-bit unsigned value to configure the HE LTF
10101 * This attribute is used to configure the testbed device.
10102 * Uses the enum qca_wlan_he_ltf_cfg values.
10103 */
10104 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
10105
10106 /* 8-bit unsigned value to configure the tx beamformee.
10107 * This attribute is used to configure the testbed device.
10108 * 1-enable, 0-disable.
10109 */
10110 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
10111
10112 /* 8-bit unsigned value to configure the tx beamformee number
10113 * of space-time streams.
10114 * This attribute is used to configure the testbed device.
10115 * The range of the value is 0 to 8.
10116 */
10117 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
10118
10119 /* 8-bit unsigned value to configure the MU EDCA params for given AC
10120 * This attribute is used to configure the testbed device.
10121 * Uses the enum qca_wlan_ac_type values.
10122 */
10123 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
10124
10125 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
10126 * To configure MU EDCA AIFSN value, MU EDCA access category value
10127 * is required to process the command.
10128 * This attribute is used to configure the testbed device.
10129 */
10130 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
10131
10132 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
10133 * given AC.
10134 * To configure MU EDCA ECW min value, MU EDCA access category value
10135 * is required to process the command.
10136 * This attribute is used to configure the testbed device.
10137 */
10138 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
10139
10140 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
10141 * given AC.
10142 * To configure MU EDCA ECW max value, MU EDCA access category value
10143 * is required to process the command.
10144 * This attribute is used to configure the testbed device.
10145 */
10146 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
10147
10148 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
10149 * To configure MU EDCA timer value, MU EDCA access category value
10150 * is required to process the command.
10151 * This attribute is used to configure the testbed device.
10152 */
10153 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
10154
Hai Shalomc9e41a12018-07-31 14:41:42 -070010155 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
10156 * duration.
10157 * This attribute is used to configure the testbed device.
10158 * Uses the enum qca_wlan_he_mac_padding_dur values.
10159 */
10160 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
10161
Hai Shalomce48b4a2018-09-05 11:41:35 -070010162 /* 8-bit unsigned value to override the MU EDCA params to defaults
10163 * regardless of the AP beacon MU EDCA params. If it is enabled use
10164 * the default values else use the MU EDCA params from AP beacon.
10165 * This attribute is used to configure the testbed device.
10166 * 1-enable, 0-disable.
10167 */
10168 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
10169
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010170 /* 8-bit unsigned value to configure the support for receiving
10171 * an MPDU that contains an operating mode control subfield.
10172 * This attribute is used to configure the testbed device.
10173 * 1-enable, 0-disable.
10174 */
10175 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
10176
10177 /* Nested attribute values required to setup the TWT session.
10178 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
10179 * information to set up the session. It contains broadcast flags,
10180 * set_up flags, trigger value, flow type, flow ID, wake interval
10181 * exponent, protection, target wake time, wake duration, wake interval
10182 * mantissa. These nested attributes are used to setup a host triggered
10183 * TWT session.
10184 */
10185 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
10186
10187 /* This nested attribute is used to terminate the current TWT session.
10188 * It does not currently carry any attributes.
10189 */
10190 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
10191
10192 /* This nested attribute is used to suspend the current TWT session.
10193 * It does not currently carry any attributes.
10194 */
10195 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
10196
10197 /* Nested attribute values to indicate the request for resume.
10198 * This attribute is used to resume the TWT session.
10199 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
10200 * parameters required to resume the TWT session.
10201 */
10202 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
10203
Hai Shalom74f70d42019-02-11 14:42:39 -080010204 /* 8-bit unsigned value to set the HE operating mode control
10205 * (OM CTRL) Channel Width subfield.
10206 * The Channel Width subfield indicates the operating channel width
10207 * supported by the STA for both reception and transmission.
10208 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
10209 * This setting is cleared with the
10210 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10211 * flag attribute to reset defaults.
10212 * This attribute is used to configure the testbed device.
10213 */
10214 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
10215
10216 /* 8-bit unsigned value to configure the number of spatial
10217 * streams in HE operating mode control field.
10218 * This setting is cleared with the
10219 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10220 * flag attribute to reset defaults.
10221 * This attribute is used to configure the testbed device.
10222 */
10223 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
10224
10225 /* Flag attribute to configure the UL MU disable bit in
10226 * HE operating mode control field.
10227 * This setting is cleared with the
10228 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10229 * flag attribute to reset defaults.
10230 * This attribute is used to configure the testbed device.
10231 */
10232 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
10233
10234 /* Flag attribute to clear the previously set HE operating mode
10235 * control field configuration.
10236 * This attribute is used to configure the testbed device to reset
10237 * defaults to clear any previously set HE operating mode control
10238 * field configuration.
10239 */
10240 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
10241
10242 /* 8-bit unsigned value to configure HE single user PPDU
10243 * transmission. By default this setting is disabled and it
10244 * is disabled in the reset defaults of the device configuration.
10245 * This attribute is used to configure the testbed device.
10246 * 1-enable, 0-disable
10247 */
10248 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
10249
10250 /* 8-bit unsigned value to configure action frame transmission
10251 * in HE trigger based PPDU transmission.
10252 * By default this setting is disabled and it is disabled in
10253 * the reset defaults of the device configuration.
10254 * This attribute is used to configure the testbed device.
10255 * 1-enable, 0-disable
10256 */
10257 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
10258
10259 /* Nested attribute to indicate HE operating mode control field
10260 * transmission. It contains operating mode control field Nss,
10261 * channel bandwidth, Tx Nsts and UL MU disable attributes.
10262 * These nested attributes are used to send HE operating mode control
10263 * with configured values.
Sunil Ravi640215c2023-06-28 23:08:09 +000010264 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
Hai Shalom74f70d42019-02-11 14:42:39 -080010265 * This attribute is used to configure the testbed device.
10266 */
Sunil Ravi640215c2023-06-28 23:08:09 +000010267 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
Hai Shalom74f70d42019-02-11 14:42:39 -080010268
10269 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
10270 * support for the reception of a frame that carries an HE variant
10271 * HT Control field.
10272 * This attribute is used to configure the testbed device.
10273 * 1-enable, 0-disable
10274 */
10275 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
10276
Hai Shalom021b0b52019-04-10 11:17:58 -070010277 /* 8-bit unsigned value to configure VHT support in 2.4G band.
10278 * This attribute is used to configure the testbed device.
10279 * 1-enable, 0-disable
10280 */
10281 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
10282
10283 /* 8-bit unsigned value to configure HE testbed defaults.
10284 * This attribute is used to configure the testbed device.
10285 * 1-set the device HE capabilities to testbed defaults.
10286 * 0-reset the device HE capabilities to supported config.
10287 */
10288 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
10289
10290 /* 8-bit unsigned value to configure TWT request support.
10291 * This attribute is used to configure the testbed device.
10292 * 1-enable, 0-disable.
10293 */
10294 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
10295
Hai Shalom899fcc72020-10-19 14:38:18 -070010296 /* 8-bit unsigned value to configure protection for Management
10297 * frames when PMF is enabled for the association.
10298 * This attribute is used to configure the testbed device.
10299 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
10300 */
10301 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
10302
10303 /* Flag attribute to inject Disassociation frame to the connected AP.
10304 * This attribute is used to configure the testbed device.
10305 */
10306 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
10307
10308 /* 8-bit unsigned value to configure an override for the RSNXE Used
10309 * subfield in the MIC control field of the FTE in FT Reassociation
10310 * Request frame.
10311 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
10312 * This attribute is used to configure the testbed device.
10313 * This attribute can be configured only when STA is in associated state
10314 * and the configuration is valid until the disconnection.
10315 */
10316 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
10317
10318 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
10319 * Switch Announcement) when STA is in connected state.
10320 * 0 - Default behavior, 1 - Ignore CSA.
10321 * This attribute is used to configure the testbed device.
10322 * This attribute can be configured only when STA is in associated state
10323 * and the configuration is valid until the disconnection.
10324 */
10325 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
10326
10327 /* Nested attribute values required to configure OCI (Operating Channel
10328 * Information). Attributes defined in enum
10329 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
10330 * This attribute is used to configure the testbed device.
10331 * This attribute can be configured only when STA is in associated state
10332 * and the configuration is valid until the disconnection.
10333 */
10334 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
10335
10336 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
10337 * Query timeout. If this configuration is enabled STA shall not send
10338 * Deauthentication frmae when SA Query times out (mainly, after a
10339 * channel switch when OCV is enabled).
10340 * 0 - Default behavior, 1 - Ignore SA Query timeout.
10341 * This attribute is used to configure the testbed device.
10342 * This attribute can be configured only when STA is in associated state
10343 * and the configuration is valid until the disconnection.
10344 */
10345 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
10346
10347 /* 8-bit unsigned value to configure the driver/firmware to start or
10348 * stop transmitting FILS discovery frames.
10349 * 0 - Stop transmitting FILS discovery frames
10350 * 1 - Start transmitting FILS discovery frames
10351 * This attribute is used to configure the testbed device.
10352 * This attribute can be configured only in AP mode and the
10353 * configuration is valid until AP restart.
10354 */
10355 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
10356
Hai Shalom60840252021-02-19 19:02:11 -080010357 /* 8-bit unsigned value to configure the driver/firmware to enable or
10358 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
10359 * information field.
10360 * 0 - Disable full bandwidth UL MU-MIMO subfield
10361 * 1 - Enable full bandwidth UL MU-MIMO subfield
10362 * This attribute is used to configure the testbed device.
10363 */
10364 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
10365
10366 /* 16-bit unsigned value to configure the driver with a specific BSS
10367 * max idle period to advertise in the BSS Max Idle Period element
10368 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
10369 * This attribute is used to configure the testbed device.
10370 */
10371 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
10372
10373 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
10374 * for data transmission.
10375 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
10376 * This attribute is used to configure the testbed device.
10377 */
10378 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
10379
10380 /* 8-bit unsigned value to configure the driver to disable data and
10381 * management response frame transmission to test the BSS max idle
10382 * feature.
10383 * 0 - Default behavior, 1 - Disable data and management response Tx.
10384 * This attribute is used to configure the testbed device.
10385 */
10386 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
10387
10388 /* 8-bit unsigned value to configure the driver/firmware to enable or
10389 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
10390 * information field.
10391 * 0 - Disable Punctured Preamble Rx subfield
10392 * 1 - Enable Punctured Preamble Rx subfield
10393 * This attribute is used to configure the testbed device.
10394 */
10395 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
10396
Hai Shaloma20dcd72022-02-04 13:43:00 -080010397 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
10398 * requirement mismatch for 6 GHz connection.
10399 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
10400 * This attribute is used to configure the testbed device.
10401 */
10402 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
10403
10404 /* 8-bit unsigned value to configure the driver to allow 6 GHz
10405 * connection with all security modes.
10406 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
10407 * modes.
10408 * This attribute is used for testing purposes.
10409 */
10410 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
10411
10412 /* 8-bit unsigned value to configure the driver to transmit data with
10413 * ER SU PPDU type.
10414 *
10415 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
10416 * This attribute is used for testing purposes.
10417 */
10418 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
10419
10420 /* 8-bit unsigned value to configure the driver to use Data or
10421 * Management frame type for keep alive data.
10422 * Uses enum qca_wlan_keep_alive_data_type values.
10423 *
10424 * This attribute is used for testing purposes.
10425 */
10426 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
10427
10428 /* 8-bit unsigned value to configure the driver to use scan request
10429 * BSSID value in Probe Request frame RA(A1) during the scan. The
10430 * driver saves this configuration and applies this setting to all user
10431 * space scan requests until the setting is cleared. If this
10432 * configuration is set, the driver uses the BSSID value from the scan
10433 * request to set the RA(A1) in the Probe Request frames during the
10434 * scan.
10435 *
10436 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
10437 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
10438 * This attribute is used for testing purposes.
10439 */
10440 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
10441
10442 /* 8-bit unsigned value to configure the driver to enable/disable the
10443 * BSS max idle period support.
10444 *
10445 * 0 - Disable the BSS max idle support.
10446 * 1 - Enable the BSS max idle support.
10447 * This attribute is used for testing purposes.
10448 */
10449 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
10450
10451 /* 8-bit unsigned value to configure the driver/firmware to enable or
10452 * disable Rx control frame to MultiBSS subfield in the HE MAC
10453 * capabilities information field.
10454 * 0 - Disable Rx control frame to MultiBSS subfield
10455 * 1 - Enable Rx control frame to MultiBSS subfield
10456 * This attribute is used to configure the testbed device.
10457 */
10458 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
10459
10460 /* 8-bit unsigned value to configure the driver/firmware to enable or
10461 * disable Broadcast TWT support subfield in the HE MAC capabilities
10462 * information field.
10463 * 0 - Disable Broadcast TWT support subfield
10464 * 1 - Enable Broadcast TWT support subfield
10465 * This attribute is used to configure the testbed device.
10466 */
10467 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
10468
Sunil Ravia04bd252022-05-02 22:54:18 -070010469 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
10470 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
10471 * to 1, and if the firmware supports this capability too, the STA
10472 * advertises this capability to the AP over Association Request frame.
10473 * This attribute will not have any effect on legacy devices with no
10474 * IEEE 802.11be support.
10475 * 0 - Default behavior
10476 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
10477 * This attribute is used to configure the testbed device.
10478 */
10479 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
10480
Sunil Ravi89eba102022-09-13 21:04:37 -070010481 /* 8-bit unsigned value to configure the driver to enable/disable the
10482 * periodic sounding for Tx beamformer functionality. The default
10483 * behavior uses algorithm to do sounding based on packet stats.
10484 *
10485 * 0 - Default behavior.
10486 * 1 - Enable the periodic sounding for Tx beamformer.
10487 * This attribute is used for testing purposes.
10488 */
10489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
10490
Sunil Ravi77d572f2023-01-17 23:58:31 +000010491 /* 8-bit unsigned value to configure beamformee SS EHT capability
10492 * to indicate the maximum number of spatial streams that the STA
10493 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
10494 * The range of the value is 3 to 7.
10495 * This attribute is used to configure the testbed device.
10496 */
10497 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
10498
10499 /* 8-bit unsigned value to configure beamformee SS EHT capability
10500 * to indicate the maximum number of spatial streams that the STA
10501 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
10502 * The range of the value is 3 to 7.
10503 * This attribute is used to configure the testbed device.
10504 */
10505 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
10506
10507 /* 8-bit unsigned value to configure beamformee SS EHT capability
10508 * to indicate the maximum number of spatial streams that the STA
10509 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
10510 * The range of the value is 3 to 7.
10511 * This attribute is used to configure the testbed device.
10512 */
10513 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
10514
10515 /* 8-bit unsigned value to configure the driver to exclude station
10516 * profile in Probe Request frame Multi-Link element.
10517 * 0 - Default behavior, sends the Probe Request frame with station
10518 * profile data included in the Multi-Link element.
10519 * 1 - Exclude station profile in Probe Request frame Multi-Link
10520 * element.
10521 * This attribute is used to configure the testbed device.
10522 */
10523 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10524
10525 /* 8-bit unsigned value to configure EHT testbed defaults.
10526 * This attribute is used to configure the testbed device.
10527 * 1 - Set the device EHT capabilities to testbed defaults.
10528 * 0 - Reset the device EHT capabilities to supported config.
10529 */
10530 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10531
10532 /* 8-bit unsigned value to indicate the EHT MCS support.
10533 * Uses enum eht_mcs_config values.
10534 * This attribute is used to configure the testbed device to
10535 * allow the advertised hardware capabilities to be downgraded
10536 * for testing purposes.
10537 */
10538 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10539
10540 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
10541 * Rate Limit capability.
10542 * This attribute is used to configure the testbed device.
10543 * 0 - Indicates no maximum supported data rate limitation.
10544 * 1 - Indicates the maximum supported data rate is the lower of
10545 * the 1500 Mb/s and the maximum supported data rate.
10546 */
10547 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10548
Sunil Ravi640215c2023-06-28 23:08:09 +000010549 /* 8-bit unsigned value to configure the support for receiving an MPDU
10550 * that contains an EHT operating mode control subfield.
10551 * This attribute is used to configure the testbed device.
10552 * 1-enable, 0-disable.
10553 */
10554 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10555
10556 /* 8-bit unsigned value to configure the driver with EMLSR padding delay
10557 * subfield value.
10558 *
10559 * 0 - 0 us
10560 * 1 - 32 us
10561 * 2 - 64 us
10562 * 3 - 128 us
10563 * 4 - 256 us
10564 * 5-255 - Reserved
10565 *
10566 * This attribute is used for testing purposes.
10567 */
10568 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10569
10570 /*
10571 * 8-bit unsigned value to indicate the firmware to force the active MLO
10572 * links to power save mode for the configured number of beacon periods.
10573 * This allows the firmware to suspend STA links for X beacon periods
10574 * and remain asleep even if the AP advertises TIM as opposed to regular
10575 * power save mode where STA links wake up if the AP indicates that it
10576 * has buffered data to send.
10577 * This attribute is used to configure the testbed device.
10578 */
10579 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10580
10581 /*
10582 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10583 * to enable simultaneous transmission of PPDUs on all active links.
10584 * 0 - Default behavior
10585 * 1 - Enter STR mode for simultaneous data transmission on all links
10586 */
10587 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10588
Sunil Ravi2a14cf12023-11-21 00:54:38 +000010589 /* Nested attribute to indicate EHT MLO links on which powersave to be
10590 * enabled. It contains link ID attributes. These nested attributes are
10591 * of the type u8 and are used to enable the powersave on associated
10592 * MLO links corresponding to the link IDs provided in the command.
10593 * This attribute is used to configure the testbed device.
10594 */
10595 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10596
10597 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10598 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10599 * testcase, STA can request information of non-Tx BSS through Tx BSS
10600 * by configuring non-Tx BSS MLD ID within the ML probe request that
10601 * is transmitted via host initiated scan request.
10602 *
10603 * This attribute is used for testing purposes.
10604 */
10605 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10606
Sunil Ravib0ac25f2024-07-12 01:42:03 +000010607 /* 8-bit unsigned value to configure the SCS traffic description
10608 * support in the EHT capabilities of an Association Request frame.
10609 * 1-enable, 0-disable
10610 * This attribute is used to configure the testbed device.
10611 */
10612 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
10613
Sunil Ravic0f5d412024-09-11 22:12:49 +000010614 /* 8-bit unsigned value to disable or not disable the channel switch
10615 * initiation in P2P GO mode.
10616 * 0 - Not-disable, 1 - Disable
10617 *
10618 * This attribute is used for testing purposes.
10619 */
10620 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_CHAN_SWITCH_INITIATION = 74,
10621
10622 /* 8-bit unsigned value. This indicates number of random PMKIDs to be
10623 * added in the RSNE of the (Re)Association request frames. This is
10624 * exclusively used for the scenarios where the device is used as a test
10625 * bed device with special functionality and not recommended for
10626 * production. Default value is zero. If the user space configures a
10627 * non-zero value, that remains in use until the driver is unloaded or
10628 * the user space resets the value to zero.
10629 *
10630 * This attribute is used for testing purposes.
10631 */
10632 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RSNE_ADD_RANDOM_PMKIDS = 75,
10633
Sunil Ravi876a49b2025-02-03 19:18:32 +000010634 /* 8-bit unsigned value to configure Triggered SU Beamforming Feedback
10635 * support in the EHT capabilities of an Association Request frame.
10636 * 1-enable, 0-disable
10637 *
10638 * This attribute is used for testing purposes.
10639 */
10640 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TRIG_SU_BFORMING_FEEDBACK = 76,
10641
10642 /* 8-bit unsigned value to configure the extra EHT-LTFs support in the
10643 * EHT capabilities of an Association Request frame.
10644 * 1-enable, 0-disable
10645 *
10646 * This attribute is used for testing purposes.
10647 */
10648 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_EXTRA_LTF = 77,
10649
10650 /* 8-bit unsigned integer to configure the firmware to reject AP's BSS
10651 * Transition Management (BTM) request frame by sending a BTM response
10652 * with error status code.
10653 *
10654 * 1 - STA rejects AP's BTM request frame
10655 * 0 - STA accepts AP's BTM request frame
10656 *
10657 * This attribute is used for testing purposes.
10658 */
10659 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BTM_REQ_REJECT = 78,
10660
10661 /* Nested attribute to control the response of the driver upon receiving
10662 * a BTM request from the AP.
10663 * Uses the enum qca_wlan_vendor_attr_btm_req_resp attributes.
10664 * This attribute is used to configure the STA.
10665 */
10666 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BTM_REQ_RESP = 79,
10667
Roshan Pius3a1667e2018-07-03 15:17:14 -070010668 /* keep last */
10669 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10670 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10671 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10672};
10673
10674/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010675 * enum qca_wlan_twt_operation - Operation of the config TWT request
10676 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -080010677 * The response for the respective operations can be either synchronous or
10678 * asynchronous (wherever specified). If synchronous, the response to this
10679 * operation is obtained in the corresponding vendor command reply to the user
10680 * space. For the asynchronous case the response is obtained as an event with
10681 * the same operation type.
10682 *
10683 * Drivers shall support either of these modes but not both simultaneously.
10684 * This support for asynchronous mode is advertised through the flag
10685 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10686 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -070010687 *
10688 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10689 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010690 * qca_wlan_vendor_attr_twt_setup. Depending upon the
10691 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10692 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010693 *
10694 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10695 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010696 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010697 *
10698 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10699 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10700 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010701 * This terminate can either get triggered by the user space or can as well be
10702 * a notification from the firmware if it initiates a terminate.
10703 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10704 * the request from user space can either be a synchronous or asynchronous
10705 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010706 *
10707 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10708 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10709 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010710 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10711 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010712 *
10713 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10714 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10715 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010716 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10717 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10718 * capability, this is either a synchronous or asynchronous operation.
10719 *
10720 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10721 * combination of suspend and resume in a single request. Required parameters
10722 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10723 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10724 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10725 * capability, this is either a synchronous or asynchronous operation.
10726 *
10727 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10728 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10729 * session is setup. It's a synchronous operation.
10730 *
10731 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10732 * Valid only after the TWT session is setup. It's a synchronous operation.
10733 *
10734 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10735 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10736 * operation.
10737 *
Sunil Ravia04bd252022-05-02 22:54:18 -070010738 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -080010739 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010740 *
10741 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10742 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10743 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -070010744 *
10745 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10746 * related information for example TWT required bit in AP capabilities etc.
10747 * The reason for the notification is sent using
10748 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -070010749 */
10750enum qca_wlan_twt_operation {
10751 QCA_WLAN_TWT_SET = 0,
10752 QCA_WLAN_TWT_GET = 1,
10753 QCA_WLAN_TWT_TERMINATE = 2,
10754 QCA_WLAN_TWT_SUSPEND = 3,
10755 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -080010756 QCA_WLAN_TWT_NUDGE = 5,
10757 QCA_WLAN_TWT_GET_STATS = 6,
10758 QCA_WLAN_TWT_CLEAR_STATS = 7,
10759 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10760 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010761 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -070010762 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -070010763};
10764
10765/**
10766 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10767 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10768 *
10769 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
10770 * operation of this request. Possible values are defined in enum
10771 * qca_wlan_twt_operation. The parameters for the respective operation is
10772 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10773 *
10774 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10775 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -080010776 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010777 * enum qca_wlan_vendor_attr_twt_set_param, or
10778 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -070010779 *
10780 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10781 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10782 * The values used by this attribute are defined in
10783 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -070010784 */
10785enum qca_wlan_vendor_attr_config_twt {
10786 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10787 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10788 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -070010789 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -070010790
10791 /* keep last */
10792 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10793 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10794 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10795};
10796
10797/**
Roshan Pius3a1667e2018-07-03 15:17:14 -070010798 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
10799 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10800 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
10801 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
10802 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
10803 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
10804 * statistics of an unassociated station by specifying the MAC address in
10805 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
10806 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
10807 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
10808 * the statistics of all unassociated stations by specifying the Broadcast MAC
10809 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
10810 * above procedure. In the response, driver shall specify statistics
10811 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
10812 */
10813enum qca_wlan_vendor_attr_bss_filter {
10814 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
10815 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
10816 /* Other BSS filter type, unsigned 8 bit value. One of the values
10817 * in enum qca_wlan_vendor_bss_filter_type.
10818 */
10819 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
10820 /* Other BSS filter action, unsigned 8 bit value. One of the values
10821 * in enum qca_wlan_vendor_bss_filter_action.
10822 */
10823 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
10824 /* Array of nested attributes where each entry is the statistics
10825 * information of the specified station that belong to another BSS.
10826 * Attributes for each entry are taken from enum
10827 * qca_wlan_vendor_bss_filter_sta_stats.
10828 * Other BSS station configured in
10829 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
10830 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
10831 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
10832 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
10833 */
10834 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
10835
10836 /* keep last */
10837 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
10838 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
10839 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
10840};
10841
10842/**
10843 * enum qca_wlan_vendor_bss_filter_type - Type of
10844 * filter used in other BSS filter operations. Used by the vendor command
10845 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10846 *
10847 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
10848 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
10849 */
10850enum qca_wlan_vendor_bss_filter_type {
10851 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
10852 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
10853};
10854
10855/**
10856 * enum qca_wlan_vendor_bss_filter_action - Type of
10857 * action in other BSS filter operations. Used by the vendor command
10858 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10859 *
10860 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
10861 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
10862 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
10863 */
10864enum qca_wlan_vendor_bss_filter_action {
10865 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
10866 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
10867 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
10868};
10869
10870/**
10871 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
10872 * the statistics of a specific unassociated station belonging to another BSS.
10873 * The statistics provides information of the unassociated station
10874 * filtered by other BSS operation - such as MAC, signal value.
10875 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10876 *
10877 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
10878 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
10879 * of the station. Unsigned 8 bit number containing RSSI.
10880 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
10881 * driver for the last received RSSI. Unsigned 64 bit number containing
10882 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -070010883 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
10884 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010885 */
10886enum qca_wlan_vendor_bss_filter_sta_stats {
10887 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
10888 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
10889 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
10890 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070010891 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -070010892
10893 /* keep last */
10894 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
10895 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
10896 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
10897};
10898
Hai Shalomce48b4a2018-09-05 11:41:35 -070010899/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10900 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10901 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10902 */
10903enum qca_wlan_nan_ext_subcmd_type {
10904 /* Subcmd of type NAN Enable Request */
10905 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10906 /* Subcmd of type NAN Disable Request */
10907 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10908};
10909
10910/**
10911 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10912 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10913 */
10914enum qca_wlan_vendor_attr_nan_params {
10915 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10916 /* Carries NAN command for firmware component. Every vendor command
10917 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10918 * payload containing the NAN command. NLA_BINARY attribute.
10919 */
10920 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10921 /* Indicates the type of NAN command sent with
10922 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10923 * describes the possible range of values. This attribute is mandatory
10924 * if the command being issued is either
10925 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10926 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10927 */
10928 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10929 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10930 * band. This attribute is mandatory when command type is
10931 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10932 */
10933 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10934 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10935 * band. This attribute is optional and should be included when command
10936 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10937 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10938 */
10939 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10940
10941 /* keep last */
10942 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10943 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10944 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10945};
10946
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010947/**
Hai Shalom60840252021-02-19 19:02:11 -080010948 * qca_wlan_twt_setup_state: Represents the TWT session states.
10949 *
10950 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10951 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10952 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10953 */
10954enum qca_wlan_twt_setup_state {
10955 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10956 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10957 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10958};
10959
10960/**
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000010961 * enum qca_wlan_twt_session_suspendable: The values used with
10962 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE.
10963 *
10964 * @QCA_WLAN_TWT_SESSION_NOT_SUSPENDABLE: TWT session cannot be suspended.
10965 * @QCA_WLAN_TWT_SESSION_SUSPENDABLE: TWT session can be suspended.
10966 */
10967enum qca_wlan_twt_session_suspendable {
10968 QCA_WLAN_TWT_SESSION_NOT_SUSPENDABLE = 0,
10969 QCA_WLAN_TWT_SESSION_SUSPENDABLE = 1,
10970};
10971
10972/**
10973 * enum qca_wlan_twt_session_updatable: Define the values used with
10974 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE.
10975 *
10976 * @QCA_WLAN_TWT_SESSION_NOT_UPDATABLE: TWT session cannot be updated.
10977 * @QCA_WLAN_TWT_SESSION_UPDATABLE: TWT session can be updated.
10978 */
10979enum qca_wlan_twt_session_updatable {
10980 QCA_WLAN_TWT_SESSION_NOT_UPDATABLE = 0,
10981 QCA_WLAN_TWT_SESSION_UPDATABLE = 1,
10982};
10983
10984/**
10985 * enum qca_wlan_twt_session_implicit: Define the values used with
10986 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT.
10987 *
10988 * @QCA_WLAN_TWT_SESSION_NOT_IMPLICIT: TWT session cannot be implicit.
10989 * @QCA_WLAN_TWT_SESSION_IMPLICIT: TWT session can be implicit.
10990 */
10991enum qca_wlan_twt_session_implicit {
10992 QCA_WLAN_TWT_SESSION_NOT_IMPLICIT = 0,
10993 QCA_WLAN_TWT_SESSION_IMPLICIT = 1,
10994};
10995
10996/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010997 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10998 * TWT (Target Wake Time) setup request. These attributes are sent as part of
10999 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -070011000 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
Sunil Ravic0f5d412024-09-11 22:12:49 +000011001 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT and
11002 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011003 *
11004 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
11005 * Disable (flag attribute not present) - Individual TWT
11006 * Enable (flag attribute present) - Broadcast TWT.
11007 * Individual means the session is between the STA and the AP.
11008 * This session is established using a separate negotiation between
11009 * STA and AP.
11010 * Broadcast means the session is across multiple STAs and an AP. The
11011 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -070011012 * This is used in
11013 * 1. TWT SET Request and Response
11014 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011015 *
11016 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
11017 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -070011018 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011019 *
11020 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
11021 * Enable (flag attribute present) - TWT with trigger support.
11022 * Disable (flag attribute not present) - TWT without trigger support.
11023 * Trigger means the AP will send the trigger frame to allow STA to send data.
11024 * Without trigger, the STA will wait for the MU EDCA timer before
11025 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -070011026 * This is used in
11027 * 1. TWT SET Request and Response
11028 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011029 *
11030 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
11031 * 0 - Announced TWT - In this mode, STA may skip few service periods to
11032 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
11033 * NULL frame to AP.
11034 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070011035 * This is a required parameter for
11036 * 1. TWT SET Request and Response
11037 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011038 *
11039 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
11040 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -070011041 * If not provided then dialog ID will be set to zero.
11042 * This is an optional parameter for
11043 * 1. TWT SET Request and Response
11044 * 2. TWT GET Request and Response
11045 * 3. TWT TERMINATE Request and Response
11046 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -080011047 * Flow ID values from 0 to 254 represent a single TWT session
11048 * Flow ID value of 255 represents all TWT sessions for the following
11049 * 1. TWT TERMINATE Request and Response
11050 * 2. TWT SUSPEND Request and Response
11051 * 4. TWT CLEAR STATISTICS request
11052 * 5. TWT GET STATISTICS request and response
11053 * If an invalid dialog ID is provided, status
11054 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011055 *
11056 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
11057 * This attribute (exp) is used along with the mantissa to derive the
11058 * wake interval using the following formula:
11059 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
11060 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070011061 * This is a required parameter for
11062 * 1. TWT SET Request and Response
11063 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011064 *
11065 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
11066 * Enable (flag attribute present) - Protection required.
11067 * Disable (flag attribute not present) - Protection not required.
11068 * If protection is enabled, then the AP will use protection
11069 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -070011070 * This is used in
11071 * 1. TWT SET Request and Response
11072 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011073 *
11074 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
11075 * This attribute is used as the SP offset which is the offset from
11076 * TSF after which the wake happens. The units are in microseconds. If
11077 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -070011078 * This is an optional parameter for
11079 * 1. TWT SET Request and Response
11080 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011081 *
11082 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -070011083 * This is the duration of the service period. This is specified as
11084 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
11085 * This is a required parameter for
11086 * 1. TWT SET Request and Response
11087 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011088 *
11089 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
11090 * This attribute is used to configure wake interval mantissa.
11091 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -070011092 * This is a required parameter for
11093 * 1. TWT SET Request and Response
11094 * 2. TWT GET Response
11095 *
11096 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
11097 * This field is applicable for TWT response only.
11098 * This contains status values in enum qca_wlan_vendor_twt_status
11099 * and is passed to the userspace. This is used in TWT SET operation.
11100 * This is a required parameter for
11101 * 1. TWT SET Response
11102 * 2. TWT TERMINATE Response
11103 * 3. TWT SUSPEND Response
11104 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -080011105 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -070011106 *
11107 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
11108 * This field is applicable for TWT response only.
11109 * This field contains response type from the TWT responder and is
11110 * passed to the userspace. The values for this field are defined in
11111 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
11112 * response.
11113 *
11114 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -080011115 * In TWT setup command this field contains absolute TSF that will
11116 * be used by TWT requester during setup.
11117 * In TWT response this field contains absolute TSF value of the
11118 * wake time received from the TWT responder and is passed to
11119 * the userspace.
11120 * This is an optional parameter for
11121 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -070011122 * This is a required parameter for
11123 * 1. TWT SET Response
11124 * 2. TWT GET Response
11125 *
11126 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
11127 * Enable (flag attribute present) - Indicates that the TWT responder
11128 * supports reception of TWT information frame from the TWT requestor.
11129 * Disable (flag attribute not present) - Indicates that the responder
11130 * doesn't support reception of TWT information frame from requestor.
11131 * This is used in
11132 * 1. TWT SET Response
11133 * 2. TWT GET Response
11134 *
11135 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
11136 * Represents the MAC address of the peer for which the TWT session
11137 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -080011138 * client.
11139 * In AP mode, this is a required parameter in response for
11140 * 1. TWT SET
11141 * 2. TWT GET
11142 * 3. TWT TERMINATE
11143 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -070011144 * In STA mode, this is an optional parameter in request and response for
11145 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011146 * In AP mode, this is a required parameter in request for
11147 * 1. TWT GET
11148 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -080011149 *
11150 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
11151 * Minimum tolerance limit of wake interval parameter in microseconds.
11152 *
11153 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
11154 * Maximum tolerance limit of wake interval parameter in microseconds.
11155 *
11156 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
11157 * Minimum tolerance limit of wake duration parameter in microseconds.
11158 *
11159 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
11160 * Maximum tolerance limit of wake duration parameter in microseconds.
11161 *
11162 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
11163 * TWT state for the given dialog id. The values for this are represented
11164 * by enum qca_wlan_twt_setup_state.
11165 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011166 *
11167 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
11168 * This attribute is used to configure wake interval mantissa.
11169 * The unit is microseconds. This attribute, when specified, takes
11170 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
11171 * This parameter is used for
11172 * 1. TWT SET Request and Response
11173 * 2. TWT GET Response
11174 *
11175 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
11176 * This attribute is used to configure Broadcast TWT ID.
11177 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
11178 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
11179 * This parameter is used for
11180 * 1. TWT SET Request
11181 * 2. TWT TERMINATE Request
11182 *
11183 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
11184 * This attribute is used to configure Broadcast TWT recommendation.
11185 * The Broadcast TWT Recommendation subfield contains a value that indicates
11186 * recommendations on the types of frames that are transmitted by TWT
11187 * scheduled STAs and scheduling AP during the broadcast TWT SP.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011188 * The allowed values are 0 - 4.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011189 * This parameter is used for
11190 * 1. TWT SET Request
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011191 * 2. R-TWT SET Request
Hai Shaloma20dcd72022-02-04 13:43:00 -080011192 *
11193 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
11194 * This attribute is used to configure Broadcast TWT Persistence.
11195 * The Broadcast TWT Persistence subfield indicates the number of
11196 * TBTTs during which the Broadcast TWT SPs corresponding to this
11197 * broadcast TWT Parameter set are present. The number of beacon intervals
11198 * during which the Broadcast TWT SPs are present is equal to the value in the
11199 * Broadcast TWT Persistence subfield plus 1 except that the value 255
11200 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
11201 * This parameter is used for
11202 * 1. TWT SET Request
11203 *
11204 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
11205 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
Sunil Ravi7f769292024-07-23 22:21:32 +000011206 * from TWT response frame. During TWT setup request, this attribute is used to
11207 * configure the Responder PM Mode bit in the control field of the TWT element
11208 * for broadcast TWT schedule.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011209 * This parameter is used for
11210 * 1. TWT SET Response
11211 * 2. TWT GET Response
Sunil Ravi7f769292024-07-23 22:21:32 +000011212 * 3. TWT SET Request
Hai Shaloma20dcd72022-02-04 13:43:00 -080011213 *
11214 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
11215 * This attribute is used to configure the announce timeout value (in us) in
11216 * the firmware. This timeout value is only applicable for the announced TWT. If
11217 * the timeout value is non-zero the firmware waits up to the timeout value to
11218 * use Data frame as an announcement frame. If the timeout value is 0 the
11219 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
11220 * start. The default value in the firmware is 0.
11221 * This parameter is used for
11222 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -070011223 *
11224 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
11225 * alignment.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011226 *
11227 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE: Optional (u8)
11228 * This attribute indicates whether the TWT session being negotiated can be
11229 * suspended.
11230 * Refers the enum qca_wlan_twt_session_suspendable.
11231 * This parameter is used for
11232 * 1. TWT SET Response
11233 *
11234 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_DOWNLINK_TID_BITMAP: Optional (u32)
11235 * This attribute is used to configure downlink TIDs for R-TWT scheduling.
11236 * This attribute only applicable when requesting R-TWT schedules.
11237 *
11238 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_UPLINK_TID_BITMAP: Optional (u32)
11239 * This attribute is used to configure uplink TIDs for R-TWT scheduling.
11240 * This attribute only applicable when requesting R-TWT schedules.
11241 *
11242 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE: Optional (u8)
11243 * This attribute indicates whether the parameters of the TWT session being
11244 * negotiated (like wake interval, wake duration, etc.) can be updated after
11245 * session setup.
11246 * Refers the enum qca_wlan_twt_session_updatable.
11247 * This parameter is used for
11248 * 1. TWT SET Response
11249 *
11250 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT: Optional (u8)
11251 * This attribute indicates whether the TWT session being negotiated is
11252 * an implicit TWT, where the requesting STA calculates the start time of the
11253 * next TWT service period, or an explicit TWT, where the responding STA
11254 * calculates the start time of the next TWT service period.
11255 * Refers the enum qca_wlan_twt_session_implicit.
11256 * This parameter is used for
11257 * 1. TWT SET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011258 */
11259enum qca_wlan_vendor_attr_twt_setup {
11260 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
11261 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
11262 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
11263 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
11264 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
11265 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
11266 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
11267 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
11268 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
11269 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
11270 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
11271
Hai Shalom899fcc72020-10-19 14:38:18 -070011272 /* TWT Response only attributes */
11273 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
11274 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
11275 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
11276 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
11277
11278 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -080011279 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
11280 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
11281 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
11282 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
11283 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -070011284
Hai Shaloma20dcd72022-02-04 13:43:00 -080011285 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
11286
11287 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
11288 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
11289 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
11290
11291 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
11292 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
11293
Sunil Ravi036cec52023-03-29 11:35:17 -070011294 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011295 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE = 28,
11296 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_DOWNLINK_TID_BITMAP = 29,
11297 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_UPLINK_TID_BITMAP = 30,
11298 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE = 31,
11299 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT = 32,
Sunil Ravi036cec52023-03-29 11:35:17 -070011300
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011301 /* keep last */
11302 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
11303 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
11304 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
11305};
11306
11307/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011308 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
11309 * TWT operation
11310 *
11311 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
11312 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
11313 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
11314 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
11315 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
11316 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
11317 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
11318 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
11319 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
11320 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
11321 * request/response frame
11322 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
11323 * frame
11324 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
11325 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
11326 * unknown reason
11327 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
11328 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -080011329 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
11330 * invalid IE in the received TWT frame
11331 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
11332 * the responder are not in the specified range
11333 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
11334 * session due to request from the responder. Used on the TWT_TERMINATE
11335 * notification from the firmware.
11336 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
11337 * session due to roaming. Used on the TWT_TERMINATE notification from the
11338 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011339 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
11340 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
11341 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
11342 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
11343 * request due to roaming in progress.
11344 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
11345 * setup request due to channel switch in progress.
11346 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
11347 * request due to scan in progress.
11348 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
11349 * terminate an existing TWT session on power save exit request from userspace.
11350 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -070011351 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
11352 * required bit in its capabilities.
11353 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
11354 * the TWT required bit(1->0) in its capabilities.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011355 * @QCA_WLAN_VENDOR_TWT_STATUS_MULTIPLE_LINKS_ACTIVE_TERMINATE: FW terminated
11356 * the TWT session due to more than one MLO link becoming active. Used on the
11357 * TWT_TERMINATE notification from the driver/firmware.
11358 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_ALREADY_RESUMED: TWT session already in
11359 * resumed state. Used on the TWT_RESUME notification from the driver/firmware.
11360 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_REJECTED: Requested TWT operation is
11361 * rejected by the peer. Used on the TWT_SET notification from the
11362 * driver/firmware.
11363 * @QCA_WLAN_VENDOR_TWT_STATUS_TIMEOUT: Requested TWT operation has timed out.
11364 * Used on the TWT_SET, TWT_TERMINATE notification from the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -070011365 */
11366enum qca_wlan_vendor_twt_status {
11367 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
11368 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
11369 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
11370 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
11371 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
11372 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
11373 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
11374 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
11375 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
11376 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
11377 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
11378 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
11379 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
11380 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -080011381 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
11382 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
11383 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
11384 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011385 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
11386 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
11387 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
11388 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
11389 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -070011390 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
11391 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011392 QCA_WLAN_VENDOR_TWT_STATUS_MULTIPLE_LINKS_ACTIVE_TERMINATE = 25,
11393 QCA_WLAN_VENDOR_TWT_STATUS_TWT_ALREADY_RESUMED = 26,
11394 QCA_WLAN_VENDOR_TWT_STATUS_PEER_REJECTED = 27,
11395 QCA_WLAN_VENDOR_TWT_STATUS_TIMEOUT = 28,
Hai Shalom899fcc72020-10-19 14:38:18 -070011396};
11397
11398/**
11399 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011400 * TWT (Target Wake Time) resume request. These attributes are sent as part of
11401 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -070011402 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
11403 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011404 *
11405 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -070011406 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
11407 * These attributes are used as the SP offset which is the offset from TSF after
11408 * which the wake happens. The units are in microseconds. Please note that
11409 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
11410 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
11411 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
11412 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011413 *
11414 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
11415 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -070011416 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11417 * and 4 for 64 bits.
11418 *
11419 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
11420 * Flow ID is the unique identifier for each TWT session. This attribute
11421 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -080011422 * Flow ID values from 0 to 254 represent a single TWT session
11423 * Flow ID value of 255 represents all TWT sessions.
11424 * If an invalid dialog id is provided, status
11425 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -070011426 *
11427 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
11428 * Represents the MAC address of the peer to which TWT Resume is
11429 * being sent. This is used in AP mode to represent the respective
11430 * client and is a required parameter. In STA mode, this is an optional
11431 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011432 */
11433enum qca_wlan_vendor_attr_twt_resume {
11434 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
11435 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
11436 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070011437 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
11438 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
11439 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011440
11441 /* keep last */
11442 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
11443 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
11444 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
11445};
11446
11447/**
Hai Shalom60840252021-02-19 19:02:11 -080011448 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
11449 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
11450 * and resume in a single request. These attributes are sent as part of
11451 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11452 *
11453 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
11454 * Flow ID is the unique identifier for each TWT session. This attribute
11455 * represents the respective TWT session to suspend and resume.
11456 * Flow ID values from 0 to 254 represent a single TWT session
11457 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
11458 * and response.
11459 * If an invalid dialog id is provided, status
11460 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
11461 *
11462 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
11463 * This attribute is used as the SP offset which is the offset from
11464 * TSF after which the wake happens. The units are in microseconds.
11465 *
11466 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
11467 * This attribute represents the next TWT subfield size.
11468 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11469 * and 4 for 64 bits.
11470 *
11471 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
11472 * Represents the MAC address of the peer to which TWT Suspend and Resume is
11473 * being sent. This is used in AP mode to represent the respective
11474 * client and is a required parameter. In STA mode, this is an optional
11475 * parameter.
11476 *
11477 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
11478 * This field contains absolute TSF value of the time at which the TWT
11479 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -070011480 *
11481 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
11482 * This field will be used when device supports Flexible TWT.
11483 * This field contains an offset value by which to shift the starting time
11484 * of the next service period. The value of offset can be negative or positive.
11485 * If provided, this attribute will override
11486 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
11487 *
Sunil Ravi036cec52023-03-29 11:35:17 -070011488 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
11489 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -080011490 */
11491enum qca_wlan_vendor_attr_twt_nudge {
11492 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
11493 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
11494 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
11495 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
11496 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
11497 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070011498 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -070011499 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -080011500
11501 /* keep last */
11502 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
11503 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
11504 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
11505};
11506
11507/**
11508 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
11509 * TWT (Target Wake Time) get statistics and clear statistics request.
11510 * These attributes are sent as part of
11511 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11512 *
11513 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
11514 * Flow ID is the unique identifier for each TWT session. This attribute
11515 * represents the respective TWT session for get and clear TWT statistics.
11516 * Flow ID values from 0 to 254 represent a single TWT session
11517 * Flow ID value of 255 represents all TWT sessions in
11518 * 1) TWT GET STATISTICS request and response
11519 * 2) TWT CLEAR STATISTICS request
11520 *
11521 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
11522 * Represents the MAC address of the peer for which TWT Statistics
11523 * is required.
11524 * In AP mode this is used to represent the respective
11525 * client and is a required parameter for
11526 * 1) TWT GET STATISTICS request and response
11527 * 2) TWT CLEAR STATISTICS request and response
11528 * In STA mode, this is an optional parameter.
11529 *
11530 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
11531 * This is the duration of the service period in microseconds.
11532 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11533 *
11534 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
11535 * Average of the actual wake duration observed so far. Unit is microseconds.
11536 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11537 *
11538 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
11539 * The number of TWT service periods elapsed so far.
11540 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11541 *
11542 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
11543 * This is the minimum value of the wake duration observed across
11544 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11545 * microseconds.
11546 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11547 *
11548 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
11549 * This is the maximum value of wake duration observed across
11550 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11551 * microseconds.
11552 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11553 *
11554 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
11555 * Average number of MPDUs transmitted successfully across
11556 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11557 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11558 *
11559 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
11560 * Average number of MPDUs received successfully across
11561 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11562 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11563 *
11564 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
11565 * Average number of bytes transmitted successfully across
11566 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11567 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11568 *
11569 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
11570 * Average number of bytes received successfully across
11571 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11572 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11573 *
11574 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
11575 * Status of the TWT GET STATISTICS request.
11576 * This contains status values in enum qca_wlan_vendor_twt_status
11577 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011578 *
11579 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_EOSP_DUR_US: Optional (u32)
11580 * Average of duration of the early terminated TWT service periods
11581 * in micro seconds.
11582 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11583 *
11584 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_EOSP_COUNT: Optional (u32)
11585 * Number of early terminated TWT service periods observed over
11586 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11587 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
Hai Shalom60840252021-02-19 19:02:11 -080011588 */
11589enum qca_wlan_vendor_attr_twt_stats {
11590 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
11591 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
11592 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
11593 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
11594 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
11595 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
11596 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
11597 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
11598 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
11599 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
11600 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
11601 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
11602 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011603 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_EOSP_DUR_US = 13,
11604 QCA_WLAN_VENDOR_ATTR_TWT_STATS_EOSP_COUNT = 14,
Hai Shalom60840252021-02-19 19:02:11 -080011605
11606 /* keep last */
11607 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
11608 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
11609 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
11610};
11611
11612/**
11613 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
11614 * supported by the device and the peer.
11615 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
11616 *
11617 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
11618 * TWT non-scheduling STA. This capability is advertised in the HE
11619 * Capability/Extended Capabilities information element in the
11620 * Association Request frame by the device.
11621 *
11622 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
11623 * the TWT scheduling AP. This capability is advertised in the Extended
11624 * Capabilities/HE Capabilities information element.
11625 *
11626 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
11627 * for the broadcast TWT functionality. On the responder side, this indicates
11628 * support for the role of broadcast TWT scheduling functionality. This
11629 * capability is advertised in the HE Capabilities information element.
11630 *
11631 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
11632 * This capability is advertised in the HE Capabilities information element.
11633 *
11634 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
11635 * that it mandates the associated HE STAs to support TWT. This capability is
11636 * advertised by AP in the HE Operation Parameters field of the HE Operation
11637 * information element.
11638 */
11639enum qca_wlan_twt_capa {
11640 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
11641 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
11642 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
11643 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
11644 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
11645};
11646
11647/**
11648 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
11649 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
11650 * operation.
11651 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
11652 * Represents the MAC address of the peer for which the TWT capabilities
11653 * are being queried. This is used in AP mode to represent the respective
11654 * client. In STA mode, this is an optional parameter.
11655 *
11656 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
11657 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
11658 * enum qca_wlan_twt_capa.
11659 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
11660 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
11661 * enum qca_wlan_twt_capa.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011662 *
11663 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_INTVL: (u32).
11664 * Minimum tolerance limit of wake interval parameter in microseconds.
11665 *
11666 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_INTVL: (u32).
11667 * Maximum tolerance limit of wake interval parameter in microseconds.
11668 *
11669 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_DURATION: (u32).
11670 * Minimum tolerance limit of wake duration parameter in microseconds.
11671 *
11672 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_DURATION: (u32).
11673 * Maximum tolerance limit of wake duration parameter in microseconds.
Hai Shalom60840252021-02-19 19:02:11 -080011674 */
11675enum qca_wlan_vendor_attr_twt_capability {
11676 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
11677 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
11678 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
11679 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011680 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_INTVL = 4,
11681 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_INTVL = 5,
11682 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_DURATION = 6,
11683 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_DURATION = 7,
Hai Shalom60840252021-02-19 19:02:11 -080011684
11685 /* keep last */
11686 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
11687 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
11688 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
11689};
11690
11691/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011692 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
11693 * TWT (Target Wake Time) related parameters. It is used when
11694 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
11695 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11696 *
11697 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
11698 * This attribute configures AC parameters to be used for all TWT
11699 * sessions in AP mode.
11700 * Uses the enum qca_wlan_ac_type values.
Sunil Ravi7f769292024-07-23 22:21:32 +000011701 *
11702 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute,
11703 * used by TWT responder to indicate unavailability outside of the SPs.
11704 * Enable (flag attribute present) - Indicates that the TWT responder may be
11705 * unavailable outside of the SPs of its broadcast TWT schedule.
11706 * Disable (flag attribute not present) - Indicates that the responder will be
11707 * available for all TWT sessions (including individual TWT).
Hai Shaloma20dcd72022-02-04 13:43:00 -080011708 */
11709enum qca_wlan_vendor_attr_twt_set_param {
11710 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
11711 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
Sunil Ravi7f769292024-07-23 22:21:32 +000011712 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011713
11714 /* keep last */
11715 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
11716 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
11717 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
11718};
11719
11720/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011721 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
11722 * the TWT responder
11723 *
11724 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
11725 * parameters that are different from TWT requesting STA suggested
11726 * or demanded TWT parameters
11727 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
11728 * parameters that are different from TWT requesting STA TWT suggested
11729 * or demanded parameters
11730 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
11731 * setup
11732 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
11733 * setup.
11734 */
11735enum qca_wlan_vendor_twt_setup_resp_type {
11736 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
11737 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
11738 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
11739 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
11740};
11741
11742/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011743 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11744 * Represents the setup type being requested for TWT.
11745 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11746 * parameters but relying on AP to fill the parameters during the negotiation.
11747 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11748 * values which the AP may accept or AP may provide alternative parameters
11749 * which the STA may accept.
11750 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11751 * alternate parameters than the requested ones.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011752 * @QCA_WLAN_VENDOR_TWT_SETUP_TWT_GROUPING: TWT responding STA suggests TWT
11753 * group parameters that are different from the suggested or demanded TWT
11754 * parameters of the TWT requesting STA.
11755 * @QCA_WLAN_VENDOR_TWT_SETUP_ACCEPT_TWT: TWT responding STA or TWT scheduling
11756 * AP accepts the TWT request with the TWT parameters indicated in the TWT
11757 * element transmitted by the TWT requesting STA or TWT scheduled STA.
11758 * @QCA_WLAN_VENDOR_TWT_SETUP_ALTERNATE_TWT: TWT responding STA or TWT
11759 * scheduling AP suggests TWT parameters that are different from those suggested
11760 * by the TWT requesting STA or TWT scheduled STA.
11761 * @QCA_WLAN_VENDOR_TWT_SETUP_DICTATE_TWT: TWT responding STA or TWT scheduling
11762 * dictates TWT parameters that are different from those suggested by the
11763 * TWT requesting STA or TWT scheduled STA.
11764 * @QCA_WLAN_VENDOR_TWT_SETUP_REJECT_TWT: A TWT responding STA or TWT scheduling
11765 * AP rejects setup or terminates an existing broadcast TWT, or a TWT scheduled
11766 * STA terminates its membership in a broadcast TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011767 */
11768enum qca_wlan_vendor_twt_setup_req_type {
11769 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11770 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11771 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011772 QCA_WLAN_VENDOR_TWT_SETUP_TWT_GROUPING = 4,
11773 QCA_WLAN_VENDOR_TWT_SETUP_ACCEPT_TWT = 5,
11774 QCA_WLAN_VENDOR_TWT_SETUP_ALTERNATE_TWT = 6,
11775 QCA_WLAN_VENDOR_TWT_SETUP_DICTATE_TWT = 7,
11776 QCA_WLAN_VENDOR_TWT_SETUP_REJECT_TWT = 8,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011777};
11778
11779/**
11780 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
11781 *
11782 * Indicates the type of roam scan event sent by firmware/driver.
11783 *
11784 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
11785 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
11786 */
11787enum qca_wlan_roam_scan_event_type {
11788 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
11789 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
11790};
11791
11792/**
11793 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
11794 *
11795 * Indicates the reason for triggering roam scan by firmware/driver.
11796 *
11797 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
11798 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
11799 */
11800enum qca_wlan_roam_scan_trigger_reason {
11801 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
11802 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
11803};
11804
11805/**
11806 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
11807 * roam scan related details from driver/firmware to user space. enum values
11808 * are used for NL attributes sent with
11809 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
11810 */
11811enum qca_wlan_vendor_attr_roam_scan {
11812 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
11813 /* Encapsulates type of roam scan event being reported. enum
11814 * qca_wlan_roam_scan_event_type describes the possible range of
11815 * values. u32 attribute.
11816 */
11817 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
11818 /* Encapsulates reason for triggering roam scan. enum
11819 * qca_wlan_roam_scan_trigger_reason describes the possible range of
11820 * values. u32 attribute.
11821 */
11822 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
11823
11824 /* keep last */
11825 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
11826 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
11827 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
11828};
11829
11830/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011831 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11832 * transport modes and is used by the attribute
11833 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
11834 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11835 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
11836 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11837 * data. The data shall be encapsulated within
11838 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
11839 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11840 */
11841enum qca_wlan_vendor_cfr_data_transport_modes {
11842 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11843 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11844};
11845
11846/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011847 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11848 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11849 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070011850 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
11851 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
11852 * with phase
11853 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011854 */
11855enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011856 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070011857 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11858 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11859};
11860
11861/**
11862 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11863 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11864 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11865 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11866 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11867 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11868 * is provided by one or more of below attributes:
11869 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11870 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11871 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11872 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11873 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11874 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11875 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11876 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11877 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11878 */
11879enum qca_wlan_vendor_cfr_capture_type {
11880 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11881 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11882 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11883 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11884 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11885 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011886};
11887
11888/**
11889 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11890 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11891 * Channel Frequency Response capture parameters and enable periodic CFR
11892 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070011893 *
11894 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11895 * MAC address of peer. This is for CFR version 1 only.
11896 *
11897 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11898 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
11899 * capture. If this attribute is not present, peer CFR capture is disabled.
11900 *
11901 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11902 * BW of measurement, attribute uses the values in enum nl80211_chan_width
11903 * Supported values: 20, 40, 80, 80+80, 160.
11904 * Note that all targets may not support all bandwidths.
11905 * This attribute is mandatory for version 1 if attribute
11906 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11907 *
11908 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11909 * Periodicity of CFR measurement in milliseconds.
11910 * Periodicity should be a multiple of Base timer.
11911 * Current Base timer value supported is 10 milliseconds (default).
11912 * 0 for one shot capture.
11913 * This attribute is mandatory for version 1 if attribute
11914 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11915 *
11916 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11917 * Method used to capture Channel Frequency Response.
11918 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11919 * This attribute is mandatory for version 1 if attribute
11920 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11921 *
11922 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11923 * Enable periodic CFR capture.
11924 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11925 * If this attribute is not present, periodic CFR capture is disabled.
11926 *
11927 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
11928 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11929 * can't be enabled at same time. This attribute is mandatory if target
11930 * support both versions and use one of them.
11931 *
11932 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11933 * This attribute is mandatory for version 2 if
11934 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11935 * Bits 15:0 bitfield indicates which group is to be enabled.
11936 * Bits 31:16 Reserved for future use.
11937 *
11938 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11939 * CFR capture duration in microsecond. This attribute is mandatory for
11940 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11941 *
11942 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11943 * CFR capture interval in microsecond. This attribute is mandatory for
11944 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11945 *
11946 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11947 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11948 * This attribute is mandatory for version 2.
11949 *
11950 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11951 * Bitfield indicating which user in the current UL MU transmissions are
11952 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
11953 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
11954 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
11955 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
11956 * reserved for future use. This is for CFR version 2 only.
11957 *
11958 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11959 * Indicates the number of consecutive RX frames to be skipped before CFR
11960 * capture is enabled again. This is for CFR version 2 only.
11961 *
11962 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11963 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11964 *
11965 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11966 * the following group attributes:
11967 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11968 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11969 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11970 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11971 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11972 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11973 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11974 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11975 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11976 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11977 *
11978 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11979 * Target supports multiple groups for some configurations. The group number
11980 * can be any value between 0 and 15. This is for CFR version 2 only.
11981 *
11982 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11983 * Transmitter address which is used to filter frames. This MAC address takes
11984 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
11985 * version 2 only.
11986 *
11987 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11988 * Receiver address which is used to filter frames. This MAC address takes
11989 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
11990 * version 2 only.
11991 *
11992 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11993 * Mask of transmitter address which is used to filter frames. This is for CFR
11994 * version 2 only.
11995 *
11996 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11997 * Mask of receiver address which is used to filter frames. This is for CFR
11998 * version 2 only.
11999 *
12000 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
12001 * Indicates frames with a specific NSS will be filtered for CFR capture.
12002 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
12003 * capture to be done for frames matching the NSS specified within this bitmask.
12004 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
12005 * bit 0 : NSS 1
12006 * bit 1 : NSS 2
12007 * ...
12008 * bit 7 : NSS 8
12009 *
12010 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
12011 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
12012 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
12013 * capture to be done for frames matching the bandwidths specified within this
12014 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
12015 * numerated in enum nl80211_band (although not all bands may be supported
12016 * by a given device).
12017 *
12018 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
12019 * Management frames matching the subtype filter categories will be filtered in
12020 * by MAC for CFR capture. This is a bitmask in which each bit represents the
12021 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
12022 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
12023 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
12024 *
12025 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
12026 * Control frames matching the subtype filter categories will be filtered in by
12027 * MAC for CFR capture. This is a bitmask in which each bit represents the
12028 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
12029 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
12030 *
12031 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
12032 * Data frames matching the subtype filter categories will be filtered in by
12033 * MAC for CFR capture. This is a bitmask in which each bit represents the
12034 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
12035 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012036 *
12037 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
12038 * Userspace can use this attribute to specify the driver about which transport
12039 * mode shall be used by the driver to send CFR data to userspace. Uses values
12040 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
12041 * not present, the driver shall use the default transport mechanism which is
12042 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
12043 *
12044 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
12045 * Userspace can use this attribute to specify the nl port id of the application
12046 * which receives the CFR data and processes it further so that the drivers can
12047 * unicast the netlink events to a specific application. Optionally included
12048 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
12049 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
12050 * shall multicast the netlink events when this attribute is not included.
12051 *
12052 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
12053 * This attribute will be used by the driver to encapsulate and send CFR data
12054 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
12055 * asynchronous event when the driver is configured to send CFR data using
12056 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070012057 *
12058 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
12059 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012060 */
12061enum qca_wlan_vendor_peer_cfr_capture_attr {
12062 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012063 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012064 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012065 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012066 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012067 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012068 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070012069 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
12070 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
12071 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
12072 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
12073 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
12074 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
12075 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
12076 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
12077 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
12078 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
12079 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
12080 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
12081 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
12082 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
12083 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
12084 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
12085 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
12086 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
12087 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012088 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
12089 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
12090 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070012091 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012092
12093 /* Keep last */
12094 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
12095 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
12096 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
12097};
12098
Hai Shalom74f70d42019-02-11 14:42:39 -080012099/**
12100 * enum qca_wlan_throughput_level - Current throughput level
12101 *
12102 * Indicates the current level of throughput calculated by the driver. The
12103 * driver may choose different thresholds to decide whether the throughput level
12104 * is low or medium or high based on variety of parameters like physical link
12105 * capacity of the current connection, the number of packets being dispatched
12106 * per second, etc. The throughput level events might not be consistent with the
12107 * actual current throughput value being observed.
12108 *
12109 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
12110 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
12111 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
12112 */
12113enum qca_wlan_throughput_level {
12114 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
12115 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
12116 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
12117};
12118
12119/**
12120 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
12121 * report throughput changes from the driver to user space. enum values are used
12122 * for netlink attributes sent with
12123 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
12124 */
12125enum qca_wlan_vendor_attr_throughput_change {
12126 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
12127 /* Indicates the direction of throughput in which the change is being
12128 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
12129 */
12130 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
12131 /* Indicates the newly observed throughput level. enum
12132 * qca_wlan_throughput_level describes the possible range of values.
12133 * u8 attribute.
12134 */
12135 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
12136 /* Indicates the driver's guidance on the new value to be set to
12137 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
12138 * driver may optionally include this attribute.
12139 */
12140 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
12141 /* Indicates the driver's guidance on the new value to be set to
12142 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
12143 * values are from -31 to 31. The driver may optionally include this
12144 * attribute.
12145 */
12146 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
12147 /* Indicates the driver's guidance on the new value to be set to
12148 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
12149 * optionally include this attribute.
12150 */
12151 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
12152
12153 /* keep last */
12154 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
12155 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
12156 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
12157};
12158
12159/**
12160 * enum qca_coex_config_profiles - This enum defines different types of
12161 * traffic streams that can be prioritized one over the other during coex
12162 * scenarios.
12163 * The types defined in this enum are categorized in the below manner.
12164 * 0 - 31 values corresponds to WLAN
12165 * 32 - 63 values corresponds to BT
12166 * 64 - 95 values corresponds to Zigbee
12167 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
12168 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
12169 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
12170 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
12171 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
12172 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
12173 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
12174 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
12175 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
12176 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
12177 * @QCA_BT_A2DP: Prioritize BT A2DP
12178 * @QCA_BT_BLE: Prioritize BT BLE
12179 * @QCA_BT_SCO: Prioritize BT SCO
12180 * @QCA_ZB_LOW: Prioritize Zigbee Low
12181 * @QCA_ZB_HIGH: Prioritize Zigbee High
12182 */
12183enum qca_coex_config_profiles {
12184 /* 0 - 31 corresponds to WLAN */
12185 QCA_WIFI_STA_DISCOVERY = 0,
12186 QCA_WIFI_STA_CONNECTION = 1,
12187 QCA_WIFI_STA_CLASS_3_MGMT = 2,
12188 QCA_WIFI_STA_DATA = 3,
12189 QCA_WIFI_STA_ALL = 4,
12190 QCA_WIFI_SAP_DISCOVERY = 5,
12191 QCA_WIFI_SAP_CONNECTION = 6,
12192 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
12193 QCA_WIFI_SAP_DATA = 8,
12194 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070012195 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080012196 /* 32 - 63 corresponds to BT */
12197 QCA_BT_A2DP = 32,
12198 QCA_BT_BLE = 33,
12199 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070012200 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080012201 /* 64 - 95 corresponds to Zigbee */
12202 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070012203 QCA_ZB_HIGH = 65,
12204 QCA_ZB_CASE_MAX = 95,
12205 /* 0xff is default value if the u8 profile value is not set. */
12206 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
12207};
12208
12209/**
12210 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
12211 * This enum defines the valid set of values of coex configuration types. These
12212 * values may used by attribute
12213 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
12214 *
12215 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
12216 * weights to default values.
12217 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
12218 * weights with configurability value.
12219 */
12220enum qca_vendor_attr_coex_config_types {
12221 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
12222 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
12223 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080012224};
12225
12226/**
12227 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
12228 *
12229 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
12230 * length array of 8-bit values from enum qca_coex_config_profiles.
12231 * FW will prioritize the profiles in the order given in the array encapsulated
12232 * in this attribute.
12233 * For example:
12234 * -----------------------------------------------------------------------
12235 * | 1 | 34 | 32 | 65 |
12236 * -----------------------------------------------------------------------
12237 * If the attribute contains the values defined in above array then it means
12238 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
12239 * 2) BT_SCO has priority over BT_A2DP.
12240 * 3) BT_A2DP has priority over ZIGBEE HIGH.
12241 * Profiles which are not listed in this array shall not be preferred over the
12242 * profiles which are listed in the array as a part of this attribute.
12243 */
12244enum qca_vendor_attr_coex_config {
12245 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
12246 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
12247
12248 /* Keep last */
12249 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
12250 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
12251 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
12252};
12253
12254/**
Hai Shalom021b0b52019-04-10 11:17:58 -070012255 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
12256 * attributes
12257 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
12258 *
12259 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
12260 * Indicate config type.
12261 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
12262 *
12263 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
12264 * Indicate the Priority 1 profiles.
12265 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12266 * In same priority level, maximum to 4 profiles can be set here.
12267 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
12268 * Indicate the Priority 2 profiles.
12269 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12270 * In same priority level, maximum to 4 profiles can be set here.
12271 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
12272 * Indicate the Priority 3 profiles.
12273 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12274 * In same priority level, maximum to 4 profiles can be set here.
12275 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
12276 * Indicate the Priority 4 profiles.
12277 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12278 * In same priority level, maximum to 4 profiles can be set here.
12279 * NOTE:
12280 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
12281 * arrangement:
12282 * 1: In the same u32 attribute (priority x), the profiles enum values own
12283 * same priority level.
12284 * 2: 0xff is default value if the u8 profile value is not set.
12285 * 3: max to 4 rules/profiles in same priority level.
12286 * 4: max to 4 priority level (priority 1 - priority 4)
12287 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
12288 * hybrid rules not support.
12289 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
12290 * remain blank to reset all parameters.
12291 * For example:
12292 *
12293 * If the attributes as follow:
12294 * priority 1:
12295 * ------------------------------------
12296 * | 0xff | 0 | 1 | 2 |
12297 * ------------------------------------
12298 * priority 2:
12299 * -------------------------------------
12300 * | 0xff | 0xff | 0xff | 32 |
12301 * -------------------------------------
12302 * priority 3:
12303 * -------------------------------------
12304 * | 0xff | 0xff | 0xff | 65 |
12305 * -------------------------------------
12306 * then it means:
12307 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
12308 * owns same priority level.
12309 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
12310 * has priority over BT_A2DP and ZB_HIGH.
12311 * 3: BT_A2DP has priority over ZB_HIGH.
12312 */
Hai Shalom021b0b52019-04-10 11:17:58 -070012313enum qca_vendor_attr_coex_config_three_way {
12314 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
12315 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
12316 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
12317 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
12318 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
12319 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
12320
12321 /* Keep last */
12322 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
12323 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
12324 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
12325};
12326
12327/**
Hai Shalom74f70d42019-02-11 14:42:39 -080012328 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
12329 *
12330 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
12331 * (STA/AP) for the connected link.
12332 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
12333 * &struct nl80211_sta_flag_update for the respective connected link. MAC
12334 * address of the peer represented by
12335 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
12336 */
12337enum qca_wlan_vendor_attr_link_properties {
12338 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
12339 /* 1 - 3 are reserved */
12340 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
12341 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
12342
12343 /* Keep last */
12344 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
12345 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
12346 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
12347};
12348
Hai Shalom021b0b52019-04-10 11:17:58 -070012349/**
12350 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
12351 * This enum defines the valid set of values of peer stats cache types. These
12352 * values are used by attribute
12353 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
12354 *
12355 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
12356 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
12357 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
12358 * statistics
12359 */
12360enum qca_vendor_attr_peer_stats_cache_type {
12361 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
12362
12363 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
12364 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
12365 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
12366};
12367
12368/**
12369 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
12370 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
12371 * Information in these attributes is used to flush peer rate statistics from
12372 * the driver to user application.
12373 *
12374 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
12375 * Indicate peer statistics cache type.
12376 * The statistics types are 32-bit values from
12377 * enum qca_vendor_attr_peer_stats_cache_type.
12378 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
12379 * of size 6 octets, representing the peer MAC address.
12380 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
12381 * containing buffer of statistics to send to application layer entity.
12382 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
12383 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070012384 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
12385 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070012386 */
12387enum qca_wlan_vendor_attr_peer_stats_cache_params {
12388 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
12389
12390 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
12391 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
12392 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
12393 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070012394 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070012395
12396 /* Keep last */
12397 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
12398 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
12399 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
12400};
12401
12402/**
12403 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
12404 * This enum defines all the possible states of Zigbee, which can be
12405 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
12406 *
12407 * @ZIGBEE_IDLE: Zigbee in idle state
12408 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
12409 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
12410 * @ZIGBEE_JOIN: Zigbee joining network
12411 * @ZIGBEE_NETWORK_UP: Zigbee network is up
12412 * @ZIGBEE_HMI: Zigbee in HMI mode
12413 */
12414enum qca_mpta_helper_attr_zigbee_state {
12415 ZIGBEE_IDLE = 0,
12416 ZIGBEE_FORM_NETWORK = 1,
12417 ZIGBEE_WAIT_JOIN = 2,
12418 ZIGBEE_JOIN = 3,
12419 ZIGBEE_NETWORK_UP = 4,
12420 ZIGBEE_HMI = 5,
12421};
12422
12423/*
12424 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
12425 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
12426 */
12427enum qca_mpta_helper_vendor_attr {
12428 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
12429 /* Optional attribute used to update Zigbee state.
12430 * enum qca_mpta_helper_attr_zigbee_state.
12431 * NLA_U32 attribute.
12432 */
12433 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
12434 /* Optional attribute used to configure WLAN duration for Shape-OCS
12435 * during interrupt.
12436 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
12437 * Value range 0 ~ 300 (ms).
12438 * NLA_U32 attribute.
12439 */
12440 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
12441 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12442 * during interrupt.
12443 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
12444 * Value range 0 ~ 300 (ms).
12445 * NLA_U32 attribute.
12446 */
12447 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
12448 /* Optional attribute used to configure WLAN duration for Shape-OCS
12449 * monitor period.
12450 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
12451 * Value range 0 ~ 300 (ms)
12452 * NLA_U32 attribute
12453 */
12454 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
12455 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12456 * monitor period.
12457 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
12458 * Value range 0 ~ 300 (ms)
12459 * NLA_U32 attribute
12460 */
12461 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
12462 /* Optional attribute used to configure OCS interrupt duration.
12463 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
12464 * Value range 1000 ~ 20000 (ms)
12465 * NLA_U32 attribute
12466 */
12467 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
12468 /* Optional attribute used to configure OCS monitor duration.
12469 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
12470 * Value range 1000 ~ 20000 (ms)
12471 * NLA_U32 attribute
12472 */
12473 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
12474 /* Optional attribute used to notify WLAN firmware the current Zigbee
12475 * channel.
12476 * Value range 11 ~ 26
12477 * NLA_U32 attribute
12478 */
12479 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
12480 /* Optional attribute used to configure WLAN mute duration.
12481 * Value range 0 ~ 400 (ms)
12482 * NLA_U32 attribute
12483 */
12484 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
12485
12486 /* keep last */
12487 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
12488 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
12489 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
12490};
12491
Hai Shalom81f62d82019-07-22 12:10:00 -070012492/**
12493 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
12494 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
12495 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
12496 *
12497 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
12498 * to request the driver to start reporting Beacon frames.
12499 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
12500 * request the driver to stop reporting Beacon frames.
12501 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
12502 * userspace to report received Beacon frames.
12503 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
12504 * to indicate that the driver is going to pause reporting Beacon frames.
12505 */
12506enum qca_wlan_vendor_beacon_reporting_op_types {
12507 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
12508 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
12509 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
12510 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
12511};
12512
12513/**
12514 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
12515 * of reasons for which the driver is pausing reporting Beacon frames. Will be
12516 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
12517 *
12518 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
12519 * reasons.
12520 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
12521 * driver/firmware is starting a scan.
12522 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
12523 * driver/firmware disconnects from the ESS and indicates the disconnection to
12524 * userspace (non-seamless roaming case). This reason code will be used by the
12525 * driver/firmware to indicate stopping of beacon report events. Userspace will
12526 * need to start beacon reporting again (if desired) by sending vendor command
12527 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
12528 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
12529 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
12530 * completed.
12531 */
12532enum qca_wlan_vendor_beacon_reporting_pause_reasons {
12533 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
12534 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
12535 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
12536};
12537
12538/*
12539 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
12540 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
12541 */
12542enum qca_wlan_vendor_attr_beacon_reporting_params {
12543 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
12544 /* Specifies the type of operation that the vendor command/event is
12545 * intended for. Possible values for this attribute are defined in
12546 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
12547 */
12548 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
12549 /* Optionally set by userspace to request the driver to report Beacon
12550 * frames using asynchronous vendor events when the
12551 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12552 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12553 * If this flag is not set, the driver will only update Beacon frames in
12554 * cfg80211 scan cache but not send any vendor events.
12555 */
12556 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
12557 /* Optionally used by userspace to request the driver/firmware to report
12558 * Beacon frames periodically when the
12559 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12560 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
12561 * u32 attribute, indicates the period of Beacon frames to be reported
12562 * and in the units of beacon interval.
12563 * If this attribute is missing in the command, then the default value
12564 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
12565 * Zero is an invalid value.
12566 * If a valid value is received for this attribute, the driver will
12567 * update the cfg80211 scan cache periodically as per the value received
12568 * in this attribute in addition to updating the cfg80211 scan cache
12569 * when there is significant change in Beacon frame IEs.
12570 */
12571 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
12572 /* Used by the driver to encapsulate the SSID when the
12573 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12574 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12575 * u8 array with a maximum size of 32.
12576 *
12577 * When generating beacon report from non-MBSSID Beacon frame, the SSID
12578 * will be taken from the SSID element of the received Beacon frame.
12579 *
12580 * When generating beacon report from Multiple BSSID Beacon frame and if
12581 * the BSSID of the current connected BSS matches the BSSID of the
12582 * transmitting BSS, the SSID will be taken from the SSID element of the
12583 * received Beacon frame.
12584 *
12585 * When generating beacon report from Multiple BSSID Beacon frame and if
12586 * the BSSID of the current connected BSS matches the BSSID of one of
12587 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
12588 * included in the nontransmitted BSS profile whose derived BSSID is
12589 * same as the BSSID of the current connected BSS. When there is no
12590 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
12591 * of current connected* BSS, this attribute will not be present.
12592 */
12593 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
12594 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
12595 * currently connected to when the
12596 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12597 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
12598 * fixed size of 6 bytes.
12599 *
12600 * When generating beacon report from a Multiple BSSID beacon and the
12601 * current connected BSSID matches one of the nontransmitted BSSIDs in a
12602 * Multiple BSSID set, this BSSID will be that particular nontransmitted
12603 * BSSID and not the transmitted BSSID (i.e., the transmitting address
12604 * of the Beacon frame).
12605 */
12606 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
12607 /* Used by the driver to encapsulate the frequency in MHz on which
12608 * the Beacon frame was received when the
12609 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
12610 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12611 * u32 attribute.
12612 */
12613 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
12614 /* Used by the driver to encapsulate the Beacon interval
12615 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12616 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12617 * u16 attribute. The value will be copied from the Beacon frame and the
12618 * units are TUs.
12619 */
12620 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
12621 /* Used by the driver to encapsulate the Timestamp field from the Beacon
12622 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
12623 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12624 * u64 attribute.
12625 */
12626 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
12627 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
12628 * Beacon frame is received in the driver when the
12629 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12630 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
12631 * the units of nanoseconds. This value is expected to have accuracy of
12632 * about 10 ms.
12633 */
12634 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
12635 /* Used by the driver to encapsulate the IEs of the Beacon frame from
12636 * which this event is generated when the
12637 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12638 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
12639 */
12640 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
12641 /* Used by the driver to specify the reason for the driver/firmware to
12642 * pause sending beacons to userspace when the
12643 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12644 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
12645 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
12646 * attribute.
12647 */
12648 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
12649 /* Used by the driver to specify whether the driver will automatically
12650 * resume reporting beacon events to userspace later (for example after
12651 * the ongoing off-channel activity is completed etc.) when the
12652 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12653 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
12654 */
12655 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
12656 /* Optionally set by userspace to request the driver not to resume
12657 * beacon reporting after a pause is completed, when the
12658 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12659 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12660 * If this flag is set, the driver will not resume beacon reporting
12661 * after any pause in beacon reporting is completed. Userspace has to
12662 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
12663 * to initiate beacon reporting again. If this flag is set in the recent
12664 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
12665 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
12666 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
12667 * set by the driver. Setting this flag until and unless there is a
12668 * specific need is not recommended as there is a chance of some beacons
12669 * received after pause command and next start command being not
12670 * reported.
12671 */
12672 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070012673 /* Attribute used for padding for 64-bit alignment */
12674 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070012675
12676 /* Keep last */
12677 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
12678 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
12679 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
12680};
12681
12682/**
12683 * enum qca_vendor_interop_issues_ap_type - Interop issue types
12684 * This enum defines the valid set of values of interop issue types. These
12685 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
12686 *
12687 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
12688 * when the STA's Qpower feature is enabled.
12689 */
12690enum qca_vendor_interop_issues_ap_type {
12691 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
12692 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
12693};
12694
12695/**
12696 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
12697 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
12698 *
12699 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
12700 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
12701 * 32-bit unsigned value. The values defined in enum
12702 * qca_vendor_interop_issues_ap_type are used.
12703 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
12704 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
12705 * It is present and mandatory for the command but is not used for the event
12706 * since only a single BSSID is reported in an event.
12707 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
12708 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
12709 * attribute in command case and without such encapsulation in the event case.
12710 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
12711 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
12712 */
12713enum qca_vendor_attr_interop_issues_ap {
12714 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
12715 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
12716 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
12717 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
12718 /* keep last */
12719 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
12720 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
12721 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
12722};
12723
Hai Shalomc3565922019-10-28 11:58:20 -070012724/**
12725 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
12726 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
12727 *
12728 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
12729 * a virtual device.
12730 *
12731 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
12732 * a physical device.
12733 */
12734enum qca_vendor_oem_device_type {
12735 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
12736 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
12737};
12738
12739/**
12740 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
12741 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
12742 *
Hai Shalom899fcc72020-10-19 14:38:18 -070012743 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
12744 * used to set/query the data to/from the firmware. On query, the same
12745 * attribute is used to carry the respective data in the reply sent by the
12746 * driver to userspace. The request to set/query the data and the format of the
12747 * respective data from the firmware are embedded in the attribute. The
12748 * maximum size of the attribute payload is 1024 bytes.
12749 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
12750 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012751 *
12752 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
12753 * based on this field. This optional attribute is included to specify whether
12754 * the device type is a virtual device or a physical device for the
12755 * command/event. This attribute can be omitted for a virtual device (default)
12756 * command/event.
12757 * This u8 attribute is used to carry information for the device type using
12758 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070012759 *
12760 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
12761 * is set when the userspace queries data from the firmware. This attribute
12762 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012763 */
12764enum qca_wlan_vendor_attr_oem_data_params {
12765 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
12766 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
12767 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070012768 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070012769
12770 /* keep last */
12771 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
12772 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
12773 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
12774};
12775
12776/**
12777 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
12778 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
12779 *
12780 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
12781 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012782 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
12783 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
12784 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070012785 *
12786 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
12787 * Starting center frequency in MHz.
12788 *
12789 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
12790 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012791 *
12792 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
12793 * s32 attribute, optional. It is a per frequency range attribute.
12794 * The maximum TX power limit from user space is to be applied on an
12795 * unrestricted interface for corresponding frequency range. It is also
12796 * possible that the actual TX power may be even lower than this cap due to
12797 * other considerations such as regulatory compliance, SAR, etc. In absence of
12798 * this attribute the driver shall follow current behavior which means
12799 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
12800 * power derived by the driver based on regulatory/SAR during interface up.
12801 *
12802 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
12803 * u32 attribute, optional. Indicates all the interface types which are
12804 * restricted for all frequency ranges provided in
12805 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
12806 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
12807 * This attribute encapsulates bitmasks of interface types defined in
12808 * enum nl80211_iftype. If an interface is marked as restricted the driver must
12809 * move to a safe channel and if no safe channel is available the driver shall
12810 * terminate that interface functionality. In absence of this attribute,
12811 * interface (SAP/P2P) can still continue operating on an unsafe channel with
12812 * TX power limit derived from either
12813 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
12814 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
12815 * is not provided.
Sunil Ravi99c035e2024-07-12 01:42:03 +000012816 *
12817 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional.
12818 * This specifies the interface index (netdev) for which the corresponding
12819 * configurations are applied. If the interface index is not specified, the
12820 * configurations are applied based on
12821 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK.
12822 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this
12823 * attribute shall have the matching nl80211_iftype.
Hai Shalomc3565922019-10-28 11:58:20 -070012824 */
12825enum qca_wlan_vendor_attr_avoid_frequency_ext {
12826 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
12827 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
12828 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
12829 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012830 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
12831 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Sunil Ravi99c035e2024-07-12 01:42:03 +000012832 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6,
Hai Shalomc3565922019-10-28 11:58:20 -070012833
12834 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
12835 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
12836 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
12837};
12838
12839/*
12840 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
12841 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
12842 */
12843enum qca_wlan_vendor_attr_add_sta_node_params {
12844 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
12845 /* 6 byte MAC address of STA */
12846 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
12847 /* Authentication algorithm used by the station of size u16;
12848 * defined in enum nl80211_auth_type.
12849 */
12850 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
12851
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012852 /*
12853 * This flag attribute is set if the node being added is an
12854 * MLD STA node.
12855 */
12856 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
12857
Sunil Ravic0f5d412024-09-11 22:12:49 +000012858 /*
12859 * This is u8 attribute used to identify a specific link affiliated
12860 * to an AP MLD.
12861 */
12862 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_LINK_ID = 4,
12863
Hai Shalomc3565922019-10-28 11:58:20 -070012864 /* keep last */
12865 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12866 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12867 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12868};
12869
12870/**
12871 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12872 * This enum defines the valid set of values of BT coex chain mode.
12873 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12874 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12875 *
Sunil Ravi89eba102022-09-13 21:04:37 -070012876 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12877 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12878 * separated, hybrid mode.
12879 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12880 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070012881 */
12882enum qca_btc_chain_mode {
12883 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070012884 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12885 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070012886};
12887
Sunil Ravi89eba102022-09-13 21:04:37 -070012888/* deprecated legacy name */
12889#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12890
Hai Shalomc3565922019-10-28 11:58:20 -070012891/**
12892 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12893 * chain mode.
12894 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12895 *
12896 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12897 * Indicates the BT coex chain mode, are 32-bit values from
12898 * enum qca_btc_chain_mode. This attribute is mandatory.
12899 *
12900 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12901 * If set, vdev should be restarted when BT coex chain mode is updated.
12902 * This attribute is optional.
12903 */
12904enum qca_vendor_attr_btc_chain_mode {
12905 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12906 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12907 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12908
12909 /* Keep last */
12910 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12911 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12912 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12913};
12914
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012915/**
12916 * enum qca_vendor_wlan_sta_flags - Station feature flags
12917 * Bits will be set to 1 if the corresponding features are enabled.
12918 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12919 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12920 for the station
12921 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12922 for the station
12923 */
12924enum qca_vendor_wlan_sta_flags {
12925 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12926 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12927 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12928};
12929
12930/**
12931 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12932 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12933 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12934 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12935 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12936 */
12937enum qca_vendor_wlan_sta_guard_interval {
12938 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12939 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12940 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12941 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12942};
12943
12944/**
12945 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12946 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12947 *
12948 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070012949 * Required attribute in request for AP mode only, 6-byte MAC address,
12950 * corresponding to the station's MAC address for which information is
12951 * requested. For STA mode this is not required as the info always correspond
12952 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012953 *
12954 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12955 * Optionally used in response, u32 attribute, contains a bitmap of different
12956 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12957 *
12958 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12959 * Optionally used in response, u32 attribute, possible values are defined in
12960 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12961 * Guard interval used by the station.
12962 *
12963 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12964 * Optionally used in response, u32 attribute, used in AP mode only.
12965 * Value indicates the number of data frames received from station with retry
12966 * bit set to 1 in FC.
12967 *
12968 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12969 * Optionally used in response, u32 attribute, used in AP mode only.
12970 * Counter for number of data frames with broadcast or multicast address in
12971 * the destination address received from the station.
12972 *
12973 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12974 * Optionally used in response, u32 attribute, used in both STA and AP modes.
12975 * Value indicates the number of data frames successfully transmitted only
12976 * after retrying the packets and for which the TX status has been updated
12977 * back to host from target.
12978 *
12979 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012980 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012981 * Value indicates the number of data frames not transmitted successfully even
12982 * after retrying the packets for the number of times equal to the total number
12983 * of retries allowed for that packet and for which the TX status has been
12984 * updated back to host from target.
12985 *
12986 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12987 * Optionally used in response, u32 attribute, used in AP mode only.
12988 * Counter in the target for the number of data frames successfully transmitted
12989 * to the station.
12990 *
12991 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12992 * Optionally used in response, u32 attribute, used in AP mode only.
12993 * Value indicates the number of data frames successfully transmitted only
12994 * after retrying the packets.
12995 *
12996 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012997 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012998 * Value indicates the number of data frames not transmitted successfully even
12999 * after retrying the packets for the number of times equal to the total number
13000 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070013001 *
13002 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
13003 * the STA mode only. Represent the number of probe requests sent by the STA
13004 * while attempting to roam on missing certain number of beacons from the
13005 * connected AP. If queried in the disconnected state, this represents the
13006 * count for the last connected state.
13007 *
13008 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
13009 * the STA mode. Represent the number of probe responses received by the station
13010 * while attempting to roam on missing certain number of beacons from the
13011 * connected AP. When queried in the disconnected state, this represents the
13012 * count when in last connected state.
13013 *
13014 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
13015 * STA mode only. Represents the total number of frames sent out by STA
13016 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
13017 * only for the connect session. Represents the count of last connected session,
13018 * when queried in the disconnected state.
13019 *
13020 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
13021 * Total number of RTS sent out by the STA. This data is maintained per connect
13022 * session. Represents the count of last connected session, when queried in the
13023 * disconnected state.
13024 *
13025 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
13026 * STA mode.Represent the number of RTS transmission failure that reach retry
13027 * limit. This data is maintained per connect session. Represents the count of
13028 * last connected session, when queried in the disconnected state.
13029 *
13030 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
13031 * the STA mode. Represent the total number of non aggregated frames transmitted
13032 * by the STA. This data is maintained per connect session. Represents the count
13033 * of last connected session, when queried in the disconnected state.
13034 *
13035 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
13036 * STA mode. Represent the total number of aggregated frames transmitted by the
13037 * STA. This data is maintained per connect session. Represents the count of
13038 * last connected session, when queried in the disconnected state.
13039 *
13040 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
13041 * the STA mode. Represents the number of received frames with a good PLCP. This
13042 * data is maintained per connect session. Represents the count of last
13043 * connected session, when queried in the disconnected state.
13044 *
13045 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
13046 * used in the STA mode. Represents the number of occasions that no valid
13047 * delimiter is detected by A-MPDU parser. This data is maintained per connect
13048 * session. Represents the count of last connected session, when queried in the
13049 * disconnected state.
13050 *
13051 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
13052 * STA mode. Represents the number of frames for which CRC check failed in the
13053 * MAC. This data is maintained per connect session. Represents the count of
13054 * last connected session, when queried in the disconnected state.
13055 *
13056 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
13057 * STA mode. Represents the number of unicast ACKs received with good FCS. This
13058 * data is maintained per connect session. Represents the count of last
13059 * connected session, when queried in the disconnected state.
13060 *
13061 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
13062 * mode. Represents the number of received Block Acks. This data is maintained
13063 * per connect session. Represents the count of last connected session, when
13064 * queried in the disconnected state.
13065 *
13066 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
13067 * mode. Represents the number of beacons received from the connected BSS. This
13068 * data is maintained per connect session. Represents the count of last
13069 * connected session, when queried in the disconnected state.
13070 *
13071 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
13072 * STA mode. Represents the number of beacons received by the other BSS when in
13073 * connected state (through the probes done by the STA). This data is maintained
13074 * per connect session. Represents the count of last connected session, when
13075 * queried in the disconnected state.
13076 *
13077 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
13078 * the STA mode. Represents the number of received DATA frames with good FCS and
13079 * matching Receiver Address when in connected state. This data is maintained
13080 * per connect session. Represents the count of last connected session, when
13081 * queried in the disconnected state.
13082 *
13083 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
13084 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
13085 * when in the connected state. This data is maintained per connect session.
13086 * Represents the count of last connected session, when queried in the
13087 * disconnected state.
13088 *
13089 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
13090 * STA mode. This represents the target power in dBm for the transmissions done
13091 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
13092 * connect session. Represents the count of last connected session, when
13093 * queried in the disconnected state.
13094 *
13095 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
13096 * STA mode. This represents the Target power in dBm for transmissions done to
13097 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
13098 * session. Represents the count of last connected session, when queried in the
13099 * disconnected state.
13100 *
13101 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
13102 * STA mode. This represents the Target power in dBm for transmissions done to
13103 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
13104 * Represents the count of last connected session, when queried in the
13105 * disconnected state.
13106 *
13107 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
13108 * STA mode. This represents the Target power in dBm for transmissions done to
13109 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
13110 * session. Represents the count of last connected session, when queried in
13111 * the disconnected state.
13112 *
13113 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013114 * STA mode. This represents the Target power in dBm for transmissions done
Hai Shalomfdcde762020-04-02 11:19:20 -070013115 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
13116 * Represents the count of last connected session, when queried in the
13117 * disconnected state.
13118 *
13119 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
13120 * in the STA mode. This represents the Nested attribute representing the
13121 * overflow counts of each receive buffer allocated to the hardware during the
13122 * STA's connection. The number of hw buffers might vary for each WLAN
13123 * solution and hence this attribute represents the nested array of all such
13124 * HW buffer count. This data is maintained per connect session. Represents
13125 * the count of last connected session, when queried in the disconnected state.
13126 *
13127 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
13128 * allowed as per the regulatory requirements for the current or last connected
13129 * session. Used in the STA mode.
13130 *
13131 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
13132 * (dBm) used by the station in its latest unicast frame while communicating
13133 * to the AP in the connected state. When queried in the disconnected state,
13134 * this represents the TX power used by the STA with last AP communication
13135 * when in connected state.
13136 *
13137 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
13138 * level used to adjust the RX sensitivity. Represents the current ANI level
13139 * when queried in the connected state. When queried in the disconnected
13140 * state, this corresponds to the latest ANI level at the instance of
13141 * disconnection.
13142 *
13143 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
13144 * the raw information elements from Beacon frames. Represents the Beacon frames
13145 * of the current BSS in the connected state. When queried in the disconnected
13146 * state, these IEs correspond to the last connected BSSID.
13147 *
13148 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
13149 * containing the raw information elements from Probe Response frames.
13150 * Represents the Probe Response frames of the current BSS in the connected
13151 * state. When queried in the disconnected state, these IEs correspond to the
13152 * last connected BSSID.
13153 *
13154 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
13155 * disconnect reason for the last disconnection if the disconnection is
13156 * triggered from the host driver. The values are referred from
13157 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070013158 *
13159 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
13160 * only. This represents the number of group addressed robust management frames
13161 * received from this station with an invalid MIC or a missing MME when PMF is
13162 * enabled.
13163 *
13164 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
13165 * only. This represents the number of group addressed robust management frames
13166 * received from this station with the packet number less than or equal to the
13167 * last received packet number when PMF is enabled.
13168 *
13169 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
13170 * mode only. This represents the number of Beacon frames received from this
13171 * station with an invalid MIC or a missing MME when beacon protection is
13172 * enabled.
13173 *
13174 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
13175 * only. This represents number of Beacon frames received from this station with
13176 * the packet number less than or equal to the last received packet number when
13177 * beacon protection is enabled.
13178 *
13179 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
13180 * STA mode only. The driver uses this attribute to populate the connection
13181 * failure reason codes and the values are defined in
13182 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
13183 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
13184 * a connection failure indication from the driver. The driver shall not
13185 * include this attribute in response to the
13186 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
13187 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080013188 *
13189 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
13190 * used by the station in its last TX frame while communicating to the AP in the
13191 * connected state. When queried in the disconnected state, this represents the
13192 * rate used by the STA in the last TX frame to the AP when it was connected.
13193 * This attribute is used for STA mode only.
13194 *
13195 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
13196 * This represents the rate index used by the STA for the last TX frame to the
13197 * AP. When queried in the disconnected state, this gives the last RIX used by
13198 * the STA in the last TX frame to the AP when it was connected.
13199 *
13200 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
13201 * mode only. This represents the number of times the STA TSF goes out of sync
13202 * from the AP after the connection. If queried in the disconnected state, this
13203 * gives the count of TSF out of sync for the last connection.
13204 *
13205 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
13206 * mode only. This represents the roam trigger reason for the last roaming
13207 * attempted by the firmware. This can be queried either in connected state or
13208 * disconnected state. Each bit of this attribute represents the different
13209 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
13210 *
13211 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
13212 * only. This represents the roam fail reason for the last failed roaming
13213 * attempt by the firmware. Different roam failure reason codes are specified
13214 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
13215 * connected state or disconnected state.
13216 *
13217 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
13218 * STA mode only. This represents the roam invoke fail reason for the last
13219 * failed roam invoke. Different roam invoke failure reason codes
13220 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
13221 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013222 *
13223 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
13224 * This represents the average congestion duration of uplink frames in MAC
13225 * queue in unit of ms. This can be queried either in connected state or
13226 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070013227 *
13228 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
13229 * values, used in AP mode. This represents the MPDU packet count per MCS
13230 * rate value of TX packets. Every index of this nested attribute corresponds
13231 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
13232 * queried in connected state.
13233 *
13234 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
13235 * values, used in AP mode. This represents the MPDU packet count per MCS
13236 * rate value of RX packets. Every index of this nested attribute corresponds
13237 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
13238 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070013239 *
13240 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
13241 * 64-bit alignment.
Sunil Ravi7f769292024-07-23 22:21:32 +000013242 *
13243 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode
13244 * only. This represents the average of the delta between successive uplink
13245 * frames congestion duration in MAC queue in unit of ms. This can be queried
13246 * either in connected state or disconnected state.
13247 *
13248 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes,
13249 * used in STA mode. This represents the number of MSDU packets
13250 * (unicast/multicast/broadcast) transmitted/received with each NSS value. See
13251 * enum qca_wlan_vendor_attr_nss_pkt.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080013252 */
13253enum qca_wlan_vendor_attr_get_sta_info {
13254 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
13255 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
13256 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
13257 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
13258 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
13259 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
13260 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
13261 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
13262 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
13263 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
13264 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070013265 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
13266 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
13267 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
13268 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
13269 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
13270 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
13271 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
13272 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
13273 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
13274 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
13275 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
13276 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
13277 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
13278 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
13279 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
13280 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
13281 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
13282 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
13283 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
13284 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
13285 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
13286 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
13287 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
13288 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
13289 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
13290 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
13291 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
13292 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070013293 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
13294 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
13295 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
13296 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
13297 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080013298 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
13299 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
13300 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
13301 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
13302 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
13303 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013304 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070013305 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
13306 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070013307 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Sunil Ravi7f769292024-07-23 22:21:32 +000013308 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54,
13309 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080013310
13311 /* keep last */
13312 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
13313 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
13314 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
13315};
13316
Hai Shalomfdcde762020-04-02 11:19:20 -070013317/**
13318 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
13319 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
13320 *
13321 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
13322 * Used in STA mode. This attribute represents the list of channel center
13323 * frequencies in MHz (u32) the station has learnt during the last connection
13324 * or roaming attempt. This information shall not signify the channels for
13325 * an explicit scan request from the user space. Host drivers can update this
13326 * information to the user space in both connected and disconnected state.
13327 * In the disconnected state this information shall signify the channels
13328 * scanned in the last connection/roam attempt that lead to the disconnection.
13329 */
13330enum qca_wlan_vendor_attr_update_sta_info {
13331 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
13332 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
13333
13334 /* keep last */
13335 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
13336 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
13337 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
13338};
13339
13340/**
13341 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
13342 * Used when the driver triggers the STA to disconnect from the AP.
13343 *
13344 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
13345 * disconnection with the AP due to unspecified reasons.
13346 *
13347 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
13348 * disconnection with the AP due to a roaming failure. This roaming is triggered
13349 * internally (host driver/firmware).
13350 *
13351 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
13352 * the AP when the user/external triggered roaming fails.
13353 *
13354 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
13355 * by the host driver whenever gateway reachability failure is detected and the
13356 * driver disconnects with AP.
13357 *
13358 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
13359 * the AP on a channel switch announcement from it with an unsupported channel.
13360 *
13361 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
13362 * with indoor channels disabled and if the STA is connected on one of these
13363 * disabled channels, the host driver disconnected the STA with this reason
13364 * code.
13365 *
13366 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
13367 * explicit request from the user to disable the current operating channel.
13368 *
13369 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
13370 * the internal host driver/firmware recovery.
13371 *
13372 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
13373 * a timeout for the key installations from the user space.
13374 *
13375 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
13376 * STA on a band change request from the user space to a different band from the
13377 * current operation channel/band.
13378 *
13379 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
13380 * interface down trigger from the user space.
13381 *
13382 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
13383 * STA on getting continuous transmission failures for multiple Data frames.
13384 *
13385 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
13386 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
13387 * represents inactivity from AP on such transmissions.
13388
13389 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
13390 * disconnection when SA Query times out (AP does not respond to SA Query).
13391 *
13392 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
13393 * STA on missing the beacons continuously from the AP.
13394 *
13395 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
13396 * able to move to the channel mentioned by the AP in CSA.
13397 *
13398 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
13399 */
13400enum qca_disconnect_reason_codes {
13401 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
13402 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
13403 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
13404 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
13405 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
13406 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
13407 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
13408 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
13409 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
13410 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
13411 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
13412 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
13413 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
13414 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
13415 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
13416 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
13417 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
13418};
13419
13420/**
13421 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
13422 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
13423 *
13424 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
13425 * This attribute represents the driver specific reason codes (local
13426 * driver/firmware initiated reasons for disconnection) defined
13427 * in enum qca_disconnect_reason_codes.
13428 */
13429enum qca_wlan_vendor_attr_driver_disconnect_reason {
13430 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
13431 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
13432
13433 /* keep last */
13434 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
13435 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
13436 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
13437};
13438
Hai Shalom899fcc72020-10-19 14:38:18 -070013439/**
13440 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
13441 *
13442 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
13443 */
13444enum qca_wlan_tspec_operation {
13445 QCA_WLAN_TSPEC_ADD = 0,
13446 QCA_WLAN_TSPEC_DEL = 1,
13447 QCA_WLAN_TSPEC_GET = 2,
13448};
13449
13450/**
13451 * enum qca_wlan_tspec_direction - Direction in TSPEC
13452 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
13453 *
13454 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
13455 */
13456enum qca_wlan_tspec_direction {
13457 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
13458 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
13459 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
13460 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
13461};
13462
13463/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013464 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
Hai Shalom899fcc72020-10-19 14:38:18 -070013465 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
13466 *
13467 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
13468 */
13469enum qca_wlan_tspec_ack_policy {
13470 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
13471 QCA_WLAN_TSPEC_NO_ACK = 1,
13472 /* Reserved */
13473 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
13474};
13475
13476/**
13477 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
13478 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
13479 *
13480 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
13481 * u8 attribute. Specify the TSPEC operation of this request. Possible values
13482 * are defined in enum qca_wlan_tspec_operation.
13483 * Mandatory attribute for all kinds of config TSPEC requests.
13484 *
13485 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
13486 * u8 attribute. TS ID. Possible values are 0-7.
13487 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
13488 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
13489 *
13490 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
13491 * u8 attribute. Direction of data carried by the TS. Possible values are
13492 * defined in enum qca_wlan_tspec_direction.
13493 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13494 *
13495 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
13496 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
13497 * with the TS. set - enabled, not set - disabled.
13498 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13499 *
13500 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
13501 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
13502 * belonging to this TS. Possible values are 0-7.
13503 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13504 *
13505 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
13506 * u8 attribute. Indicate whether MAC acknowledgements are required for
13507 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
13508 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
13509 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13510 *
13511 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
13512 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
13513 * belonging to this TS.
13514 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13515 *
13516 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
13517 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
13518 * belonging to this TS.
13519 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13520 *
13521 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
13522 * u32 attribute. Specify the minimum interval in microseconds between the
13523 * start of two successive SPs.
13524 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13525 *
13526 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
13527 * u32 attribute. Specify the maximum interval in microseconds between the
13528 * start of two successive SPs.
13529 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13530 *
13531 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
13532 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13533 * without arrival or transfer of an MPDU belonging to the TS before this TS
13534 * is deleted by the MAC entity at the HC.
13535 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13536 *
13537 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
13538 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13539 * without arrival or transfer of an MSDU belonging to the TS before the
13540 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
13541 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
13542 * interval is always less than or equal to the inactivity interval.
13543 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13544 *
13545 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
13546 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
13547 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13548 * bounds of this TSPEC.
13549 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13550 *
13551 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
13552 * u32 attribute. Indicate the average data rate in bps specified at the MAC
13553 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13554 * bounds of this TSPEC.
13555 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13556 *
13557 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
13558 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
13559 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
13560 * the bounds of this TSPEC.
13561 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13562 *
13563 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
13564 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
13565 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
13566 * value of 0 indicates that there are no bursts.
13567 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13568 *
13569 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
13570 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
13571 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
13572 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13573 *
13574 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
13575 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
13576 * and above the stated application rates required to transport an MSDU/A-MSDU
13577 * belonging to the TS in this TSPEC.
13578 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13579 */
13580enum qca_wlan_vendor_attr_config_tspec {
13581 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
13582 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
13583 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
13584 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
13585 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
13586 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
13587 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
13588 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
13589 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
13590 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
13591 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
13592 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
13593 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
13594 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
13595 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
13596 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
13597 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
13598 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
13599 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
13600
13601 /* keep last */
13602 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
13603 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
13604 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
13605};
13606
13607/**
13608 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
13609 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
13610 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
13611 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
13612 * frame
13613 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
13614 * Request frame.
13615 */
13616enum qca_wlan_vendor_oci_override_frame_type {
13617 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
13618 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
13619 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
13620 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
13621};
13622
13623/**
13624 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
13625 * OCI override request. These attributes are used inside nested attribute
13626 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
13627 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
13628 *
13629 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
13630 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
13631 * attribute to specify the frame type in which the OCI is to be overridden.
13632 *
13633 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
13634 * OCI frequency (in MHz) to override in the specified frame type.
13635 */
13636enum qca_wlan_vendor_attr_oci_override {
13637 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
13638 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
13639 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
13640
13641 /* keep last */
13642 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
13643 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
13644 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
13645};
13646
13647/**
13648 * enum qca_wlan_medium_assess_type - Type of medium assess request
13649 *
13650 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
13651 */
13652enum qca_wlan_medium_assess_type {
13653 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
13654 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
13655};
13656
13657/**
13658 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
13659 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
13660 *
13661 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
13662 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
13663 * Specify the type of medium assess request and indicate its type in response.
13664 * Possible values are defined in enum qca_wlan_medium_assess_type.
13665 *
13666 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
13667 * u32 attribute. Mandatory in CCA request.
13668 * Specify the assessment period in terms of seconds. Assessment result will be
13669 * sent as the response to the CCA request after the assessment period.
13670 *
13671 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
13672 * u32 attribute. Mandatory in response to CCA request.
13673 * Total timer tick count of the assessment cycle.
13674 *
13675 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
13676 * u32 attribute. Mandatory in response to CCA request.
13677 * Timer tick count of idle time in the assessment cycle.
13678 *
13679 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
13680 * u32 attribute. Mandatory in response to CCA request.
13681 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
13682 *
13683 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
13684 * u32 attribute. Mandatory in response to CCA request.
13685 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
13686 *
13687 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
13688 * s32 attribute. Mandatory in response to CCA request.
13689 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
13690 *
13691 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
13692 * s32 attribute. Mandatory in response to CCA request.
13693 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
13694 *
13695 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
13696 * u8 attribute. Mandatory in congestion report request.
13697 * 1-enable 0-disable.
13698 *
13699 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
13700 * u8 attribute. Mandatory in congestion report enable request and will be
13701 * ignored if present in congestion report disable request. Possible values are
13702 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
13703 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
13704 * congestion percentage reaches the configured threshold.
13705 *
13706 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
13707 * u8 attribute. Optional in congestion report enable request and will be
13708 * ignored if present in congestion report disable request.
13709 * Specify the interval of congestion report event in terms of seconds. Possible
13710 * values are 1-255. Default value 1 will be used if this attribute is omitted
13711 * or using invalid values.
13712 *
13713 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
13714 * u8 attribute. Mandatory in congestion report event.
13715 * Indicate the actual congestion percentage. Possible values are 0-100.
13716 */
13717enum qca_wlan_vendor_attr_medium_assess {
13718 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
13719 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
13720
13721 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
13722 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
13723 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
13724 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
13725 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
13726 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
13727 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
13728
13729 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
13730 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
13731 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
13732 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
13733
13734 /* keep last */
13735 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
13736 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
13737 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
13738};
13739
13740/**
13741 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
13742 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
13743 *
13744 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
13745 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
13746 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
13747 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013748 *
13749 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
13750 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
13751 *
13752 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
13753 * u8 attribute, required. Indicates group id of Tx VDEV.
13754 *
13755 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
13756 * Nested attribute. This attribute shall be used by the driver to send
13757 * group information. The attributes defined in enum
13758 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
13759 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070013760 */
13761enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
13762 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
13763 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013764 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
13765 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
13766 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070013767
13768 /* keep last */
13769 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
13770 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
13771 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
13772};
13773
13774/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013775 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
13776 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
13777 *
13778 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
13779 * u32 attribute, required. Contains interface index.
13780 *
13781 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
13782 * u8 attribute, required. 0 - means vdev is in down state.
13783 * 1 - means vdev is in up state.
13784 */
13785enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
13786 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
13787 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
13788 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
13789
13790 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
13791 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
13792 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
13793};
13794
13795/**
13796 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
13797 *
13798 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
13799 * STA interface has to be given while selecting the connection policies
13800 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
13801 * An interface is set as primary through the attribute
13802 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
13803 * applicable if the primary interface has not been set earlier.
13804 *
13805 * The intention is not to downgrade the primary STA performance, such as:
13806 * - Do not reduce the number of TX/RX chains of primary connection.
13807 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
13808 * chains.
13809 * - If using MCC, should set the MCC duty cycle of the primary connection to
13810 * be higher than the secondary connection.
13811 *
13812 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
13813 * subsequent STA connection shall be chosen to balance with the existing
13814 * concurrent STA's performance.
13815 * Such as
13816 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
13817 * capability.
13818 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
13819 * to the secondary.
13820 * - Prefer BSSID candidates which will help provide the best "overall"
13821 * performance for all the STA connections.
13822 */
13823enum qca_wlan_concurrent_sta_policy_config {
13824 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
13825 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
13826};
13827
13828/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013829 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080013830 *
Sunil8cd6f4d2022-06-28 18:40:46 +000013831 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
13832 * interface.
13833 *
13834 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
13835 * to meet gaming audio latency requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013836 * This policy is used only when the driver advertises support for
13837 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +000013838 *
13839 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
13840 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013841 * This policy is used only when the driver advertises support for
13842 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013843 *
13844 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
13845 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000013846 */
13847enum qca_wlan_concurrent_ap_policy_config {
13848 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
13849 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
13850 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013851 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000013852};
13853
13854/**
13855 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
13856 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
13857 *
13858 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080013859 * u8 attribute. Configures the concurrent STA policy configuration.
13860 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000013861
13862 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
13863 * u8 attribute. Configures the concurrent AP policy configuration.
13864 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013865 */
Sunil8cd6f4d2022-06-28 18:40:46 +000013866enum qca_wlan_vendor_attr_concurrent_policy {
13867 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
13868 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
13869 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013870
13871 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000013872 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
13873 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
13874 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013875
13876};
13877
Sunil8cd6f4d2022-06-28 18:40:46 +000013878/* Compatibility defines for previously used enum
13879 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
13880 * in any new implementation.
13881 */
13882#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
13883 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
13884#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
13885 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
13886#define qca_wlan_vendor_attr_concurrent_sta_policy \
13887 qca_wlan_vendor_attr_concurrent_policy
13888
Hai Shaloma20dcd72022-02-04 13:43:00 -080013889/**
Hai Shalom899fcc72020-10-19 14:38:18 -070013890 * enum qca_sta_connect_fail_reason_codes - Defines values carried
13891 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
13892 * attribute.
13893 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
13894 * for unicast Probe Request frame.
13895 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
13896 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
13897 * auth request.
13898 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
13899 * received from AP.
13900 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
13901 * Association Request frame.
13902 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
13903 * Association Request frame.
13904 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
13905 * frame is not received from AP.
13906 */
13907enum qca_sta_connect_fail_reason_codes {
13908 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
13909 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
13910 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
13911 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
13912 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
13913 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
13914 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
13915};
13916
Hai Shaloma20dcd72022-02-04 13:43:00 -080013917/**
13918 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
13919 * filters defined in this enum are used in attribute
13920 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
13921 *
13922 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
13923 * shall filter the channels which are not usable because of coexistence with
13924 * cellular radio.
13925 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
13926 * shall filter the channels which are not usable because of existing active
13927 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13928 *
13929 */
13930enum qca_wlan_vendor_usable_channels_filter {
13931 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13932 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13933};
13934
13935/**
13936 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13937 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13938 *
13939 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13940 * u32 attribute, required. Indicates the center frequency of the primary
13941 * channel in MHz.
13942 *
13943 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13944 * u32 attribute. Indicates the center frequency of the primary segment of the
13945 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13946 * 160 MHz, and 320 MHz channels.
13947 *
13948 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13949 * u32 attribute. Indicates the center frequency of the secondary segment of
13950 * 80+80 channel in MHz. This attribute is required only when
13951 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13952 *
13953 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13954 * u32 attribute, required. Indicates the bandwidth of the channel, possible
13955 * values are defined in enum nl80211_chan_width.
13956 *
13957 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13958 * u32 attribute, required. Indicates all the interface types for which this
13959 * channel is usable. This attribute encapsulates bitmasks of interface types
13960 * defined in enum nl80211_iftype.
13961 *
13962 */
13963enum qca_wlan_vendor_attr_chan_info {
13964 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13965 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13966 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13967 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13968 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13969 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13970
13971 /* keep last */
13972 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13973 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13974 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13975};
13976
13977/**
13978 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13979 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13980 *
13981 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13982 * u32 attribute. Indicates the bands from which the channels should be reported
13983 * in response. This attribute encapsulates bit masks of bands defined in enum
13984 * nl80211_band. Optional attribute, if not present in the request the driver
13985 * shall return channels from all supported bands.
13986 *
13987 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13988 * u32 attribute. Indicates all the interface types for which the usable
13989 * channels information is requested. This attribute encapsulates bitmasks of
13990 * interface types defined in enum nl80211_iftype. Optional attribute, if not
13991 * present in the request the driver shall send information of all supported
13992 * interface modes.
13993 *
13994 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13995 * u32 attribute. This attribute carries information of all filters that shall
13996 * be applied while populating usable channels information by the driver. This
13997 * attribute carries bit masks of different filters defined in enum
13998 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13999 * in the request the driver shall send information of channels without applying
14000 * any of the filters that can be configured through this attribute.
14001 *
14002 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
14003 * Nested attribute. This attribute shall be used by the driver to send
14004 * usability information of each channel. The attributes defined in enum
14005 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
14006 */
14007enum qca_wlan_vendor_attr_usable_channels {
14008 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
14009 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
14010 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
14011 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
14012 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
14013
14014 /* keep last */
14015 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
14016 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
14017 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
14018};
14019
14020/**
14021 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
14022 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
14023 *
14024 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
14025 * the list of radar history entries.
14026 * Each entry contains freq, timestamp, and radar signal detect flag.
14027 * The driver shall add an entry when CAC has finished, or radar signal
14028 * has been detected post AP beaconing. The driver shall maintain at least
14029 * 8 entries in order to save CAC result for a 160 MHz channel.
14030 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
14031 * Channel frequency in MHz.
14032 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
14033 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
14034 * or radar detection.
14035 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
14036 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070014037 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
14038 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014039 */
14040enum qca_wlan_vendor_attr_radar_history {
14041 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
14042
14043 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
14044 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
14045 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
14046 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070014047 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014048
14049 /* keep last */
14050 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
14051 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
14052 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
14053};
14054
14055/**
14056 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
14057 *
14058 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
14059 * target exited MCC state and cleared the quota information. In the
14060 * command it clears MCC quota setting and restores adaptive scheduling.
14061 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
14062 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070014063 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014064 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
14065 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070014066 * This quota type is only present in event.
14067 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
14068 * by the target for low latency.
14069 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014070 */
14071enum qca_wlan_vendor_mcc_quota_type {
14072 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
14073 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
14074 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070014075 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014076};
14077
14078/**
14079 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
14080 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
14081 * quota information or as a command to set the required MCC quota for an
14082 * interface.
14083 *
14084 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
14085 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
14086 * In a command this specifies the MCC quota type to be set for the interface.
14087 * In an event this provides the current quota type in force.
14088 * This is required in a command and an event.
14089 *
14090 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
14091 * the list of channel quota entries.
14092 * In an event each entry contains the frequency and respective time quota for
14093 * all the MCC interfaces.
14094 * In a command it specifies the interface index and respective time quota.
14095 * In a command only one entry (ifindex, quota pair) may be specified.
14096 *
14097 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
14098 * Channel frequency in MHz. This is present only in an event.
14099 *
14100 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
14101 * Channel time quota expressed as percentage.
14102 * This is present in an event and a command.
14103 * In an command, the user shall specify the quota to be allocated for the
14104 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
14105 * In an event this provides the existing quota for the channel.
14106 *
14107 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
14108 * Specifies the interface index (netdev) for which the corresponding
14109 * configurations are applied. This is required in a command only. Only one
14110 * interface index may be specified. If not specified, the configuration is
14111 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070014112 *
14113 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
14114 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
14115 * low latency mode. The firmware will do optimization for low
14116 * latency in Multi-Channel concurrency state if enabled. And all existing
14117 * user quota setting will be overwritten by the target.
14118 * 0 - disable(default), 1 - enable.
14119 * It is only present in a command with quota type of
14120 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014121 */
14122enum qca_wlan_vendor_attr_mcc_quota {
14123 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
14124 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
14125 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
14126 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
14127 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
14128 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070014129 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014130
14131 /* keep last */
14132 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
14133 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
14134 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
14135};
14136
14137/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000014138 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
14139 * are used by the attribute
14140 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
14141 *
14142 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
14143 * invoke roam.
14144 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
14145 * detection failed when the roam trigger.
14146 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
14147 */
14148
14149enum qca_wlan_roam_stats_invoke_reason {
14150 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
14151 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
14152 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
14153};
14154
14155/**
14156 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
14157 * values are used by the attribute
14158 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
14159 *
14160 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
14161 * roam by kickout.
14162 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
14163 * trigger by kickout.
14164 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
14165 * roam trigger by kickout.
14166 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
14167 * roam trigger by kickout.
14168 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
14169 * disappeared, and all TX is failing when roam trigger by kickout.
14170 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
14171 * timeout when roam trigger by kickout.
14172 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
14173 * peer has roamed to a repeater.
14174 */
14175enum qca_wlan_roam_stats_tx_failures_reason {
14176 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
14177 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
14178 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
14179 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
14180 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
14181 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
14182 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
14183};
14184
14185/**
14186 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
14187 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
14188 *
14189 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
14190 * detailed reason for roam scan being aborted.
14191 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
14192 * started due to high data RSSI during LOW-RSSI roaming.
14193 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
14194 * started due to good link speed during LOW-RSSI roaming.
14195 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
14196 * due to high data RSSI during background roaming.
14197 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
14198 * started due to high beacon RSSI during background roaming
14199 */
14200enum qca_wlan_roam_stats_abort_reason {
14201 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
14202 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
14203 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
14204 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
14205 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
14206};
14207
14208/**
Sunil Ravi036cec52023-03-29 11:35:17 -070014209 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
14210 * These values are used by the attribute
14211 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
14212 *
14213 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
14214 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
14215 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
14216 * This is generally used in BTM events to indicate BTM frame exchange logs.
14217 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
14218 * from 2.4 GHz to 5 GHz or 6 GHz
14219 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
14220 * 5 GHz to 6 GHz
14221 */
14222enum qca_wlan_roam_stats_scan_type {
14223 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
14224 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
14225 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
14226 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
14227 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
14228};
14229
14230/**
14231 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
14232 * These values are used by the attribute
14233 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
14234 *
14235 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
14236 * detailed roam scan type.
14237 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
14238 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
14239 */
14240enum qca_wlan_roam_stats_scan_dwell_type {
14241 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
14242 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
14243 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
14244};
14245
14246/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000014247 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
14248 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
14249 */
14250enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
14251 /* 32-bit unsigned value to indicate center frequency of the primary
14252 * channel in MHz for each roam scan channel.
14253 */
14254 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
14255 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070014256 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014257 */
14258 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
14259 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
14260 * for each roam scan channel.
14261 */
14262 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
14263
14264 /* keep last */
14265 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
14266 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
14267 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
14268};
14269
14270/**
14271 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
14272 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
14273 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014274 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
14275 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000014276 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
14277 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
14278 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
14279 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
14280 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
14281 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014282 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
14283 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000014284 */
14285enum qca_wlan_roam_stats_frame_subtype {
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014286 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
14287 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014288 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
14289 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
14290 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
14291 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
14292 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
14293 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014294 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
14295 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014296};
14297
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014298/* Compatibility defines for previously used names.
14299 * These values should not be used in any new implementation.
14300 */
14301#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
14302 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
14303#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
14304 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
14305
Sunil Ravi77d572f2023-01-17 23:58:31 +000014306/**
14307 * enum roam_frame_status - Specifies the valid values the vendor roam frame
14308 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
14309 *
14310 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
14311 * sent or received successfully.
14312 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
14313 * receiving failed.
14314 */
14315enum qca_wlan_roam_stats_frame_status {
14316 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
14317 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
14318};
14319
14320/**
14321 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
14322 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
14323 */
14324enum qca_wlan_vendor_attr_roam_stats_frame_info {
14325 /* 8-bit unsigned value to indicate the frame subtype during
14326 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
14327 */
14328 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
14329 /* 8-bit unsigned value to indicate the frame is successful or failed
14330 * during roaming, one of the values in
14331 * qca_wlan_roam_stats_frame_status.
14332 */
14333 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
14334 /* 64-bit unsigned value to indicate the timestamp for frame of
14335 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
14336 * when sent or received during roaming, timestamp in milliseconds
14337 * from system boot.
14338 */
14339 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070014340 /* Attribute used for padding for 64-bit alignment */
14341 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014342 /* This attribute indicates a 6-byte MAC address representing
14343 * the BSSID of the AP.
14344 * For non-MLO scenario, it indicates the AP BSSID.
14345 * For MLO scenario, it indicates the AP BSSID which may be the primary
14346 * link BSSID or a nonprimary link BSSID.
14347 */
14348 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014349
14350 /* keep last */
14351 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
14352 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
14353 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
14354};
14355
14356/**
14357 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
14358 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
14359 */
14360enum qca_wlan_vendor_attr_roam_stats_info {
14361 /* 64-bit unsigned value to indicate the timestamp when roam was
14362 * triggered by the firmware, timestamp in milliseconds from system
14363 * boot.
14364 */
14365 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
14366 /* 32-bit unsigned value to indicate the roam trigger reason for the
14367 * last roaming attempted by the firmware. This can be queried either
14368 * in a connected state or disconnected state. The values of this
14369 * attribute represent the roam trigger reason codes, which
14370 * are defined in enum qca_roam_reason.
14371 */
14372 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
14373 /* 8-bit unsigned value to indicate percentage of packets for which
14374 * the RX rate is lower than the RX rate threshold in total RX packets,
14375 * used for roaming trigger by per.
14376 */
14377 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
14378 /* 8-bit unsigned value to indicate percentage of packets for which
14379 * the TX rate is lower than TX rate threshold in total TX packets,
14380 * used for roaming trigger by per.
14381 */
14382 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
14383 /* 32-bit unsigned value to indicate final beacon miss count for
14384 * trigger reason of beacon miss.
14385 */
14386 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
14387 /* 32-bit unsigned value to indicate consecutive beacon miss count
14388 * for trigger reason of beacon miss.
14389 */
14390 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
14391 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
14392 * reason of beacon miss, 0 - success, 1 - fail.
14393 * If QOS-NULL TX status is successful, beacon miss final count and
14394 * consecutive beacon miss count will be reset to zero, and roam will
14395 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
14396 * count and consecutive beacon miss count continue to calculate until
14397 * roaming trigger by beacon miss.
14398 */
14399 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070014400 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014401 * for trigger reason of poor RSSI.
14402 */
14403 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070014404 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014405 * for trigger reason of poor RSSI.
14406 */
14407 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
14408 /* 8-bit unsigned value to indicate RX link speed status
14409 * for trigger reason of poor RSSI, 0 - good link speed,
14410 * 1 - bad link speed.
14411 */
14412 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070014413 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014414 * for trigger reason of better RSSI.
14415 */
14416 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070014417 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014418 * for trigger reason of better RSSI.
14419 */
14420 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
14421 /* 32-bit unsigned value to indicate RX throughput in bytes per second
14422 * for trigger reason of congestion.
14423 */
14424 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
14425 /* 32-bit unsigned value to indicate TX throughput in bytes per second
14426 * for trigger reason of congestion.
14427 */
14428 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
14429 /* 8-bit unsigned value to indicate roamable AP count
14430 * for trigger reason of congestion.
14431 */
14432 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
14433 /* 8-bit unsigned value to indicate invoke reason, one of the values
14434 * defined in qca_wlan_roam_stats_invoke_reason.
14435 */
14436 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
14437 /* 8-bit unsigned value to indicate request mode for trigger reason
14438 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
14439 */
14440 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
14441 /* 32-bit unsigned value to indicate disassociate time in milliseconds
14442 * for trigger reason of BTM.
14443 */
14444 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
14445 /* 32-bit unsigned value to indicate preferred candidate list valid
14446 * interval in milliseconds for trigger reason of BTM.
14447 */
14448 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
14449 /* 8-bit unsigned value to indicate the number of preferred
14450 * candidates for trigger reason of BTM.
14451 */
14452 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
14453 /* 8-bit unsigned value to indicate response status for trigger
14454 * reason of BTM, values are defined in IEEE Std 802.11-2020,
14455 * Table 9-428 (BTM status code definitions).
14456 */
14457 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
14458 /* 32-bit unsigned value to indicate BSS termination timeout value
14459 * in milliseconds for trigger reason of BTM.
14460 */
14461 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
14462 /* 32-bit unsigned value to indicate MBO associate retry timeout
14463 * value in milliseconds for trigger reason of BTM.
14464 */
14465 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
14466 /* 8-bit unsigned value to indicate dialog token number
14467 * for trigger reason of BTM.
14468 */
14469 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
14470 /* 8-bit unsigned value to indicate percentage of connected AP
14471 * channel congestion utilization for trigger reason of BSS load.
14472 */
14473 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
14474 /* 8-bit unsigned value to indicate disconnection type
14475 * for trigger reason of disconnection. 1 - Deauthentication,
14476 * 2 - Disassociation.
14477 */
14478 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
14479 /* 16-bit unsigned value to indicate deauthentication or disassociation
14480 * reason for trigger reason of disconnection, values are defined
14481 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
14482 */
14483 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
14484 /* 32-bit unsigned value to indicate milliseconds of roam scan
14485 * periodicity when needing to roam to find a better AP for trigger
14486 * reason of periodic timer.
14487 */
14488 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070014489 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000014490 * trigger reason of background scan.
14491 */
14492 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070014493 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000014494 * of background scan.
14495 */
14496 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070014497 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014498 * for trigger reason of background scan.
14499 */
14500 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
14501 /* 32-bit unsigned value to indicate consecutive TX failure threshold
14502 * for trigger reason of TX failures.
14503 */
14504 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
14505 /* 8-bit unsigned value to indicate TX failure reason for trigger
14506 * reason of TX failures, one of the values defined in
14507 * qca_wlan_roam_stats_tx_failures_reason.
14508 */
14509 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
14510 /* 8-bit unsigned value to indicate detail abort reason. One of the
14511 * values in enum qca_wlan_roam_stats_abort_reason.
14512 */
14513 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070014514 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000014515 * roam scan.
14516 */
14517 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070014518 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000014519 * aborting the roam scan.
14520 */
14521 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
14522 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
14523 * speed status when aborting the roam scan.
14524 * 0 - good link speed, 1 - bad link speed
14525 */
14526 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
14527 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070014528 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014529 */
14530 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
14531 /* 8-bit unsigned value to indicate roaming result, used in STA mode
14532 * only.
14533 * 0-Roaming is successful, 1-Roaming is failed
14534 */
14535 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
14536 /* 8-bit unsigned value to indicate the roam fail reason for the
14537 * last failed roaming attempt by the firmware. Different roam failure
14538 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
14539 * This can be queried either in connected state or disconnected state.
14540 */
14541 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
14542 /* Nested attribute. Indicate roam scan info for each channel, the
14543 * attributes defined in enum
14544 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
14545 * this attribute.
14546 */
14547 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
14548 /* 32-bit unsigned value to indicate total scan time during roam scan
14549 * all channels, time in milliseconds.
14550 */
14551 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
14552 /* Nested attribute. This attribute shall be used by the driver to
14553 * send roam information of each subtype. The attributes defined in
14554 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
14555 * this attribute.
14556 */
14557 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070014558 /* Attribute used for padding for 64-bit alignment */
14559 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014560 /* 6-byte MAC address used by the driver to send roam stats information
14561 * of the original AP BSSID. The original AP is the connected AP before
14562 * roam happens, regardless of the roam resulting in success or failure.
14563 * This attribute is only present when
14564 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14565 * 0 (success) or 1 (failure).
14566 * For non-MLO scenario, it indicates the original connected AP BSSID.
14567 * For MLO scenario, it indicates the original BSSID of the link
14568 * for which the reassociation occurred during the roam.
14569 */
14570 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
14571 /* 6-byte MAC address used by the driver to send roam stats information
14572 * of the roam candidate AP BSSID when roam failed. This is only present
14573 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14574 * 1 (failure). If the firmware updates more than one candidate AP BSSID
14575 * to the driver, the driver only fills the last candidate AP BSSID and
14576 * reports it to user space.
14577 * For non-MLO scenario, it indicates the last candidate AP BSSID.
14578 * For MLO scenario, it indicates the AP BSSID which may be the primary
14579 * link BSSID or a nonprimary link BSSID.
14580 */
14581 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
14582 /* 6-byte MAC address used by the driver to send roam stats information
14583 * of the roamed AP BSSID when roam succeeds. This is only present when
14584 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14585 * 0 (success).
14586 * For non-MLO scenario, it indicates the new AP BSSID to which has
14587 * been successfully roamed.
14588 * For MLO scenario, it indicates the new AP BSSID of the link on
14589 * which the reassociation occurred during the roam.
14590 */
14591 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014592
14593 /* keep last */
14594 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
14595 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
14596 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
14597};
14598
14599/**
14600 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
14601 * report cached roam info from the driver to user space, enum values are used
14602 * for netlink attributes sent with the
14603 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
14604 */
14605enum qca_wlan_vendor_attr_roam_cached_stats {
14606 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
14607 /* Nested attribute, this attribute contains nested array roam info
14608 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
14609 */
14610 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
14611
14612 /* keep last */
14613 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
14614 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
14615 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
14616};
14617
14618/**
Sunil8cd6f4d2022-06-28 18:40:46 +000014619 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
14620 * radio configurations present in each radio combination.
14621 *
14622 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
14623 * the band info in the radio configuration. Uses the enum qca_set_band values.
14624 *
14625 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
14626 * the number of antennas info in the radio configuration.
14627 */
14628enum qca_wlan_vendor_attr_supported_radio_cfg {
14629 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
14630 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
14631 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
14632
14633 /* keep last */
14634 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
14635 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
14636 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
14637};
14638
14639/**
14640 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
14641 * radio combinations supported by the device.
14642 *
14643 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
14644 * provides the radio configurations present in the radio combination.
14645 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
14646 * This attribute provides the values for radio combination matrix.
14647 * For standalone config, the number of config values is one and the config
14648 * carries the band and antenna information for standalone configuration. For
14649 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
14650 * configuration the number of config values is two and the config carries the
14651 * band and antenna information for each simultaneous radio.
14652 */
14653enum qca_wlan_vendor_attr_radio_combination {
14654 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
14655 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
14656
14657 /* keep last */
14658 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
14659 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
14660 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
14661};
14662
14663/**
14664 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
14665 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
14666 *
14667 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
14668 * provides the radio combinations supported by the device.
14669 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
14670 * For example, in the radio combination matrix for a device which has two
14671 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
14672 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
14673 * combinations is 5 and the radio combinations are
14674 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
14675 * {{5 GHz 2X2}}, //Standalone 5 GHz
14676 * {{6 GHz 2X2}}, //Standalone 6 GHz
14677 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
14678 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
14679 * The band and antenna info together as nested data provides one radio config.
14680 * Standalone configuration has one config with band and antenna nested data.
14681 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
14682 * have two nested band and antenna info data.
14683 */
14684enum qca_wlan_vendor_attr_radio_combination_matrix {
14685 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
14686 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
14687
14688 /* keep last */
14689 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
14690 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
14691 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
14692};
14693
14694/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080014695 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
14696 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
14697 *
14698 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
14699 * Enable mDNS offload. This attribute is mandatory to enable
14700 * mDNS offload feature. If this attribute is not present, mDNS offload
14701 * is disabled.
14702 *
14703 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
14704 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
14705 * attribute is mandatory when enabling the feature, and not required when
14706 * disabling the feature.
14707 *
14708 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
14709 * the following attributes:
14710 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
14711 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
14712 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
14713 *
14714 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
14715 * It consists of a hostname and ".local" as the domain name. The character
14716 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
14717 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
14718 * supported per vdev.
14719 * For example: myphone.local
14720 *
14721 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
14722 * u16 attribute. It specifies the total number of resource records present
14723 * in the answer section of the answer payload. This attribute is needed by the
14724 * firmware to populate the mDNS response frame for mDNS queries without having
14725 * to parse the answer payload.
14726 *
14727 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
14728 * attribute sent by the mdnsResponder from userspace. It contains resource
14729 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
14730 * payload is passed down to the firmware and is transmitted in response to
14731 * mDNS queries.
14732 * The maximum supported size of the answer payload is 512 bytes.
14733 */
14734enum qca_wlan_vendor_attr_mdns_offload {
14735 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
14736 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
14737 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
14738 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
14739 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
14740 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
14741 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
14742
14743 /* keep last */
14744 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
14745 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
14746 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
14747};
14748
14749/**
14750 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14751 * Data frame types to be sent over the monitor interface.
14752 */
14753enum qca_wlan_vendor_monitor_data_frame_type {
14754 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14755 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
14756 */
14757 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14758 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14759 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14760 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14761 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14762 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14763 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14764 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14765 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14766 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14767 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14768 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14769 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14770 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14771 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14772 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14773 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14774};
14775
14776/**
14777 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14778 * Management frame types to be sent over the monitor interface.
14779 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
14780 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
14781 * except the Beacon frame.
14782 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14783 * BSSID Beacon frames. Valid only in the connected state.
14784 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14785 * the Beacon frames obtained during the scan (off channel and connected
14786 * channel), when in connected state.
14787 */
14788enum qca_wlan_vendor_monitor_mgmt_frame_type {
14789 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14790 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
14791 */
14792 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
14793 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14794 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14795};
14796
14797/**
14798 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14799 * Control frame types to be sent over the monitor interface.
14800 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
14801 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
14802 */
14803enum qca_wlan_vendor_monitor_ctrl_frame_type {
14804 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14805 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
14806 */
14807 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14808};
14809
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014810/*
14811 * enum qca_wlan_vendor_monitor_operating_type: Attributes used by vendor
14812 * attribute %QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE
14813 *
14814 * @QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_LPC: Local packet capture.
14815 * Capture frames sent and received by the current client interface from the
14816 * BSS.
14817 *
14818 * @QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_OCC: Operating channel capture.
14819 * Capture all frames on the current operating channel of client interface.
14820 */
14821enum qca_wlan_vendor_monitor_operating_type {
14822 QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_LPC = 0,
14823 QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_OCC = 1,
14824};
14825
Hai Shaloma20dcd72022-02-04 13:43:00 -080014826/**
14827 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14828 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14829 * monitor mode.
14830 *
14831 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
14832 * Represents the TX Data frame types to be monitored (u32). These Data frames
14833 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14834 *
14835 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
14836 * Represents the RX Data frame types to be monitored (u32). These Data frames
14837 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14838 *
14839 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
14840 * Represents the TX Management frame types to be monitored (u32). These
14841 * Management frames are represented by
14842 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14843 *
14844 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
14845 * Represents the RX Management frame types to be monitored (u32). These
14846 * Management frames are represented by
14847 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14848 *
14849 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
14850 * Represents the TX Control frame types to be monitored (u32). These Control
14851 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14852 *
14853 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
14854 * Represents the RX Control frame types to be monitored (u32). These Control
14855 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14856 *
14857 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
14858 * attribute.
14859 * Represents the interval in milliseconds only for the connected Beacon frames,
14860 * expecting the connected BSS's Beacon frames to be sent on the monitor
14861 * interface at this specific interval.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014862 *
14863 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE: u32 attribute.
14864 * Represents the monitor operating type (u32). These operating types are
14865 * defined in enum qca_wlan_vendor_monitor_operating_type.
14866 * If this attribute is not included, default operating type LPC ("local
14867 * packet capture") used.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014868 */
14869enum qca_wlan_vendor_attr_set_monitor_mode {
14870 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14871 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14872 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14873 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14874 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14875 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14876 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14877 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014878 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE = 8,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014879
14880 /* keep last */
14881 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14882 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14883 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14884};
14885
14886/**
14887 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14888 * Bits will be set to 1 if the corresponding state is enabled.
14889 *
14890 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14891 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14892 */
14893enum qca_wlan_vendor_roam_scan_state {
14894 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14895 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14896};
14897
14898/**
14899 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14900 * Bits will be set to 1 if the corresponding event is notified.
14901 *
14902 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14903 * carries the trigger reason. When set, it is expected that the roam event
14904 * carries the respective reason via the attribute
14905 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14906 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14907 *
14908 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14909 * carries the roam fail reason. When set, it is expected that the roam event
14910 * carries the respective reason via the attribute
14911 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14912 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14913 *
14914 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14915 * event carries the roam invoke fail reason. When set, it is expected that
14916 * the roam event carries the respective reason via the attribute
14917 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14918 *
14919 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14920 * carries the roam scan state. When set, it is expected that the roam event
14921 * carries the respective scan state via the attribute
14922 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14923 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14924 */
14925enum qca_wlan_vendor_roam_event_type {
14926 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14927 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14928 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14929 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14930};
14931
14932/**
14933 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14934 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14935 *
14936 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14937 * representing the BSSID of the AP to which the roam is attempted.
14938 *
14939 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14940 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14941 * attempted.
14942 *
14943 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
14944 * on which the roam is attempted.
14945 *
14946 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14947 * STA mode only. This represents the roam fail reason for the last failed
14948 * roaming attempt by the firmware for the specific BSSID. Different roam
14949 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14950 */
14951enum qca_wlan_vendor_attr_roam_events_candidate_info {
14952 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14953 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14954 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14955 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14956 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14957
14958 /* keep last */
14959 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14960 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14961 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14962};
14963
14964/**
14965 * enum qca_wlan_vendor_attr_roam_events - Used by the
14966 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14967 * roam events to the driver or notify these events from the driver.
14968 *
14969 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14970 * driver/firmware to enable/disable the notification of roam events. It's a
14971 * mandatory attribute and used only in the request from the userspace to the
14972 * host driver. 1-Enable, 0-Disable.
14973 * If the roaming is totally offloaded to the firmware, this request when
14974 * enabled shall mandate the firmware to notify all the relevant roam events
14975 * represented by the below attributes. If the host is in the suspend mode,
14976 * the behavior of the firmware to notify these events is guided by
14977 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14978 * these events in the suspend state, the firmware is expected to wake up the
14979 * host before the respective events are notified. Please note that such a
14980 * request to get the events in the suspend state will have a definite power
14981 * implication.
14982 *
14983 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14984 * that the roam events need to be notified in the suspend state too. By
14985 * default, these roam events are notified in the resume state. With this flag,
14986 * the roam events are notified in both resume and suspend states.
14987 * This attribute is used in the request from the userspace to the host driver.
14988 *
14989 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14990 * Represents the different roam event types, signified by the enum
14991 * qca_wlan_vendor_roam_event_type.
14992 * Each bit of this attribute represents the different roam even types reported
14993 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14994 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14995 *
14996 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14997 * mode only. This represents the roam trigger reason for the last roaming
14998 * attempted by the firmware. Each bit of this attribute represents the
14999 * different roam trigger reason code which are defined in enum
15000 * qca_vendor_roam_triggers.
15001 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
15002 *
15003 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
15004 * STA mode only. This represents the roam invoke fail reason for the last
15005 * failed roam invoke. Different roam invoke failure reason codes
15006 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
15007 *
15008 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
15009 * for which the roam is attempted. Each entry is a nested attribute defined
15010 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
15011 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
15012 *
15013 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
15014 * the scan state on which the roam events need to be notified. The values for
15015 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
15016 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
15017 *
15018 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
15019 * u32 values. List of frequencies in MHz considered for a roam scan.
15020 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
15021 */
15022enum qca_wlan_vendor_attr_roam_events {
15023 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
15024 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
15025 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
15026 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
15027 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
15028 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
15029 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
15030 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
15031 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
15032
15033 /* keep last */
15034 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
15035 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015036 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080015037};
15038
15039/**
15040 * enum qca_wlan_ratemask_params_type - Rate mask config type
15041 *
15042 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
15043 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
15044 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
15045 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015046 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
Hai Shaloma20dcd72022-02-04 13:43:00 -080015047 */
15048enum qca_wlan_ratemask_params_type {
15049 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
15050 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
15051 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
15052 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015053 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080015054};
15055
15056/**
15057 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
15058 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
15059 * This is used to set the rate mask value to be used in rate selection.
15060 *
15061 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
15062 * Array of nested containing attributes
15063 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
15064 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
15065 *
15066 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
15067 * the different PHY types to which the rate mask config is to be applied.
15068 * The values for this attribute are referred from enum
15069 * qca_wlan_vendor_ratemask_params_type.
15070 *
15071 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
15072 * A bit value of 1 represents rate is enabled and a value of 0
15073 * represents rate is disabled.
Sunil Ravi99c035e2024-07-12 01:42:03 +000015074 * For EHT targets,
15075 * b0-1 => NSS1, MCS 14-15
15076 * b2-15 => NSS1, MCS 0-13
15077 * b16-29 => NSS2, MCS 0-13
15078 * For HE targets, 14 bits correspond to one NSS setting.
Hai Shaloma20dcd72022-02-04 13:43:00 -080015079 * b0-13 => NSS1, MCS 0-13
15080 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
15081 * For VHT targets, 10 bits correspond to one NSS setting.
15082 * b0-9 => NSS1, MCS 0-9
15083 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
15084 * For HT targets, 8 bits correspond to one NSS setting.
15085 * b0-7 => NSS1, MCS 0-7
15086 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
15087 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
Sunil Ravi99c035e2024-07-12 01:42:03 +000015088 *
15089 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the
15090 * MLO link ID of a link to be configured. Optional attribute.
15091 * No need of this attribute in non-MLO cases. If the attribute is
15092 * not provided, ratemask will be applied for setup link.
Hai Shaloma20dcd72022-02-04 13:43:00 -080015093 */
15094enum qca_wlan_vendor_attr_ratemask_params {
15095 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
15096 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
15097 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
15098 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
Sunil Ravi99c035e2024-07-12 01:42:03 +000015099 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080015100
15101 /* keep last */
15102 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
15103 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
15104 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
15105};
15106
Sunil8cd6f4d2022-06-28 18:40:46 +000015107/**
15108 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
15109 * traffic.
15110 *
15111 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
15112 * Send audio traffic through the host processor.
15113 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
15114 * Send audio traffic using the low power DSP to/from the encoder.
15115 */
15116enum qca_wlan_audio_data_path {
15117 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
15118 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
15119};
15120
15121/**
15122 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
15123 * for) or drop existing PASN security association for the listed the
15124 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
15125 * to userspace.
15126 *
15127 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
15128 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
15129 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
15130 * the driver to userspace to inform that the existing PASN keys of the
15131 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
15132 * not valid anymore.
15133 */
15134enum qca_wlan_vendor_pasn_action {
15135 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
15136 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
15137};
15138
15139/**
15140 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
15141 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
15142 *
15143 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
15144 * event from the driver to userspace and represents the local MAC address
15145 * to be used for PASN handshake. When this attribute is present, userspace
15146 * shall use the source address specified in this attribute by the driver
15147 * for PASN handshake with peer device.
15148 * This attribute is required in a command response from userspace to the
15149 * driver and represents the MAC address that was used in PASN handshake
15150 * with the peer device.
15151 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
15152 * peer device to which PASN handshake is requested in an event from the
15153 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15154 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
15155 * Indicates the MAC address of the peer device for which the keys are to
15156 * be invalidated in an event from the driver to userspace when
15157 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15158 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
15159 * Indicates the MAC address of the peer device for which the status is
15160 * being sent in a status report from userspace to the driver.
15161 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
15162 * in the event from the driver to userspace. When set, userspace is
15163 * required to derive LTF key seed from KDK and set it to the driver.
15164 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
15165 * attribute is used in the command response from userspace to the driver.
15166 * If present, it indicates the successful PASN handshake with the peer. If
15167 * this flag is not present, it indicates that the PASN handshake with the
15168 * peer device failed.
Sunil Ravi876a49b2025-02-03 19:18:32 +000015169 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_AKM: Optional u32 attribute. It indicates the
15170 * AKM suite that is preferred in the PASN handshake in the event from the
15171 * driver to userspace when %QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15172 * %QCA_WLAN_VENDOR_PASN_ACTION_AUTH. In the status report from userspace
15173 * to the driver, it indicates the actual AKM suite used in the handshake.
15174 * Userspace can select the AKM based on the AP's capabilities, if the
15175 * given AKM suite is not applicable. Possible values are defined in
15176 * IEEE Std 802.11-2020, 9.4.2.24.3 (AKM suites) (e.g., 0x000FAC04)
15177 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_CIPHER: Optional u32 attribute. It indicates
15178 * the pairwise cipher suite that is preferred in the PASN handshake in
15179 * the event from the driver to userspace when
15180 * %QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15181 * %QCA_WLAN_VENDOR_PASN_ACTION_AUTH. In the status report from userspace
15182 * to the driver, it indicates the actual cipher used in the handshake.
15183 * Userspace can select the cipher suite based on the capabilities of the
15184 * P, if the given cipher suite is not applicable. Possible values are
15185 * defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
15186 * (e.g., 0x000FAC04).
15187 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_PASSWORD: This is a variable length byte
15188 * array attribute. This attribute is present if the AKM suite specified
15189 * in %QCA_WLAN_VENDOR_ATTR_PASN_PEER_AKM requires a password. The
15190 * password is used in PASN handshake request in an event from the driver
15191 * to userspace when %QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15192 * %QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
15193 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_PMKID: This is a byte array attribute with a
15194 * size of 16 bytes. When this attribute is present this PMKSA caching
15195 * using the PMKSA identified by this PMKID is preferred to be used with
15196 * PASN. This attribute is sent along with PASN handshake request in an
15197 * event from the driver to userspace when
15198 * %QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15199 * %QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
15200 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_COMEBACK_AFTER: u16 attribute in units for
15201 * TUs (1024 microseconds). This attribute is sent from userspace along
15202 * with the attribute %QCA_WLAN_VENDOR_ATTR_PASN_PEER_COOKIE to the
15203 * driver in the status report using the %QCA_NL80211_VENDOR_SUBCMD_PASN
15204 * subcommand when the AP request PASN to be retried later.
15205 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_COOKIE: This is a variable length byte array
15206 * attribute. In case an AP refused PASN temporarily, the STA can retry
15207 * PASN handshake by attaching this attribute data to PASN request after
15208 * the time period mentioned in the attribute
15209 * %QCA_WLAN_VENDOR_ATTR_PASN_PEER_COMEBACK_AFTER.
15210 * In case the AP refused the PASN handshake temporarily, cookie data is
15211 * received from the AP and it is sent from userspace to the driver along
15212 * with the attribute %QCA_WLAN_VENDOR_ATTR_PASN_PEER_COMEBACK_AFTER in
15213 * the status report using the %QCA_NL80211_VENDOR_SUBCMD_PASN subcommand.
15214 * When the driver wants to retry PASN with the same AP after having
15215 * received this information, this attribute must be sent along with PASN
15216 * handshake request in an event from the driver to
15217 * userspace when %QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15218 * %QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
Sunil8cd6f4d2022-06-28 18:40:46 +000015219 */
15220enum qca_wlan_vendor_attr_pasn_peer {
15221 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
15222 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
15223 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
15224 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
15225 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
Sunil Ravi876a49b2025-02-03 19:18:32 +000015226 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AKM = 5,
15227 QCA_WLAN_VENDOR_ATTR_PASN_PEER_CIPHER = 6,
15228 QCA_WLAN_VENDOR_ATTR_PASN_PEER_PASSWORD = 7,
15229 QCA_WLAN_VENDOR_ATTR_PASN_PEER_PMKID = 8,
15230 QCA_WLAN_VENDOR_ATTR_PASN_PEER_COMEBACK_AFTER = 9,
15231 QCA_WLAN_VENDOR_ATTR_PASN_PEER_COOKIE = 10,
Sunil8cd6f4d2022-06-28 18:40:46 +000015232
15233 /* keep last */
15234 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
15235 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
15236 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
15237};
15238
15239/**
15240 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
15241 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
15242 *
15243 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
15244 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
15245 * from the driver to userspace.
15246 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
15247 * details for each peer and used in both an event and a command response.
15248 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
15249 * defined in enum qca_wlan_vendor_attr_pasn_peer.
Sunil Ravi7f769292024-07-23 22:21:32 +000015250 * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a
15251 * specific link affiliated to an MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000015252 */
15253enum qca_wlan_vendor_attr_pasn {
15254 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
15255 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
15256 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
Sunil Ravi7f769292024-07-23 22:21:32 +000015257 QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000015258
15259 /* keep last */
15260 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
15261 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
15262 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
15263};
15264
15265/**
15266 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
15267 * the ranging security context derived from PASN for each peer. Used in
15268 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
15269 *
15270 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
15271 * context for the peer.
15272 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
15273 * context for the peer.
15274 */
15275enum qca_wlan_vendor_secure_ranging_ctx_action {
15276 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
15277 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
15278};
15279
15280/**
15281 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
15282 * used for deriving PASN keys to the driver. Used in
15283 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
15284 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
15285 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
15286 */
15287enum qca_wlan_vendor_sha_type {
15288 QCA_WLAN_VENDOR_SHA_256,
15289 QCA_WLAN_VENDOR_SHA_384,
15290};
15291
15292/**
15293 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
15294 * to set security context for the PASN peer from userspace to the driver.
15295 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
15296 *
15297 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
15298 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
15299 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
15300 * was used during the PASN handshake.
15301 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
15302 * the peer device for which secure ranging context is being configured.
15303 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
15304 * hash algorithm to be used, possible values are defined in enum
15305 * qca_wlan_vendor_sha_type.
15306 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
15307 * the temporal key generated from the PASN handshake. The length of this
15308 * attribute is dependent on the value of
15309 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
15310 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
15311 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
15312 * (e.g., 0x000FAC04).
15313 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
15314 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
15315 * The length of this attribute is dependent on the value of
15316 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
Sunil Ravi7f769292024-07-23 22:21:32 +000015317 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used
15318 * for secure ranging to identify a specific link affiliated to an AP MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000015319 */
15320enum qca_wlan_vendor_attr_secure_ranging_ctx {
15321 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
15322 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
15323 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
15324 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
15325 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
15326 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
15327 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
15328 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
Sunil Ravi7f769292024-07-23 22:21:32 +000015329 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8,
Sunil8cd6f4d2022-06-28 18:40:46 +000015330
15331 /* keep last */
15332 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
15333 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
15334 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
15335};
15336
Sunil Ravi89eba102022-09-13 21:04:37 -070015337/**
15338 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
15339 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
15340 * nested attribute. The packets that match a filter will be replied with
15341 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
15342 *
15343 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
15344 * u32 attribute. Destination IPv4 address in network byte order, the
15345 * IPv4 packets with different address will be filtered out.
15346 * This attribute is optional.
15347 *
15348 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
15349 * Flag attribute. If it's present, indicates that
15350 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
15351 * address; while if not, indicates that the address is a unicast/multicast
15352 * address.
15353 * This attribute is optional.
15354 *
15355 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
15356 * NLA_BINARY attribute, length is 16 bytes.
15357 * Destination IPv6 address in network byte order, the IPv6 packets
15358 * with different destination address will be filtered out.
15359 * This attribute is optional.
15360 *
15361 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
15362 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
15363 * Packets on both IPv4 and IPv6 will be processed if both are configured.
15364 *
15365 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
15366 * u16 attribute. Destination UDP port, the packets with different destination
15367 * UDP port will be filtered out.
15368 * This attribute is mandatory.
15369 *
15370 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
15371 * u32 attribute. Represents the offset (in UDP payload) of the data
15372 * to be matched.
15373 * This attribute is mandatory.
15374 *
15375 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
15376 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
15377 * Binary data that is compared bit-by-bit against the data (specified
15378 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
15379 * payload, the packets don't match will be filtered out.
15380 * This attribute is mandatory.
15381 */
15382enum qca_wlan_vendor_attr_coap_offload_filter {
15383 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
15384 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
15385 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
15386 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
15387 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
15388 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
15389 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
15390
15391 /* keep last */
15392 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
15393 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
15394 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
15395};
15396
15397/**
15398 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
15399 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
15400 *
15401 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
15402 * u32 attribute. Source address (in network byte order) for replying
15403 * the matching broadcast/multicast IPv4 packets.
15404 * This attribute is optional.
15405 *
15406 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
15407 * NLA_BINARY attribute, length is 16 bytes.
15408 * Source address (in network byte order) for replying the matching
15409 * multicast IPv6 packets.
15410 * This attribute is optional.
15411 *
15412 * For broadcast/multicast offload reply, one of
15413 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
15414 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
15415 * configured according to version of the IP address(es) configured in
15416 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
15417 * while for unicast case, firmware will take the destination IP address
15418 * in the received matching packet as the source address for replying.
15419 *
15420 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
15421 * Nested attribute. Filter for the received UDP packets, only the matching
15422 * packets will be replied and cached.
15423 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
15424 * attributes.
15425 * This attribute is mandatory.
15426 *
15427 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
15428 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15429 * CoAP message (UDP payload) to be sent upon receiving matching packets.
15430 * Firmware is responsible for adding any necessary protocol headers.
15431 * This attribute is mandatory.
15432 *
15433 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
15434 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
15435 * A cached message will be dropped by firmware if it's expired.
15436 * This attribute is optional. A default value of 40000 will be used in the
15437 * absence of it.
15438 */
15439enum qca_wlan_vendor_attr_coap_offload_reply {
15440 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
15441 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
15442 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
15443 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
15444 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
15445 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
15446
15447 /* keep last */
15448 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
15449 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
15450 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
15451};
15452
15453/**
15454 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
15455 * CoAP message (UDP) transmitting on IPv4.
15456 *
15457 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
15458 * u32 attribute. Source address (in network byte order) for transmitting
15459 * packets on IPv4.
15460 * This attribute is mandatory.
15461 *
15462 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
15463 * u16 attribute. Source UDP port.
15464 * This attribute is optional, a random port is taken if it's not present.
15465 *
15466 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
15467 * u32 attribute. Destination IPv4 address (in network byte order).
15468 * This attribute is mandatory.
15469 *
15470 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
15471 * Flag attribute. If it's present, indicates that
15472 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
15473 * address; while if not, indicates that the address is unicast/multicast
15474 * address.
15475 * This attribute is optional.
15476 *
15477 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
15478 * u16 attribute. Destination UDP port.
15479 * This attribute is mandatory.
15480 */
15481enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
15482 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
15483 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
15484 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
15485 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
15486 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
15487 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
15488
15489 /* keep last */
15490 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
15491 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
15492 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
15493};
15494
15495/**
15496 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
15497 * CoAP message (UDP) transmitting on IPv6.
15498 *
15499 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
15500 * NLA_BINARY attribute, length is 16 bytes.
15501 * Source address (in network byte order) for transmitting packets on IPv6.
15502 * This attribute is mandatory.
15503 *
15504 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
15505 * u16 attribute. Source UDP port.
15506 * This attribute is optional, a random port is taken if it's not present.
15507 *
15508 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
15509 * NLA_BINARY attribute, length is 16 bytes.
15510 * Destination IPv6 address (in network byte order).
15511 * This attribute is mandatory.
15512 *
15513 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
15514 * u16 attribute. Destination UDP port.
15515 * This attribute is mandatory.
15516 */
15517enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
15518 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
15519 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
15520 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
15521 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
15522 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
15523
15524 /* keep last */
15525 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
15526 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
15527 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
15528};
15529
15530/**
15531 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
15532 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
15533 *
15534 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
15535 * Nested attribute. The IPv4 source/destination address/port for offload
15536 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
15537 * of supported attributes.
15538 * This attribute is optional.
15539 *
15540 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
15541 * Nested attribute. The IPv6 source/destination address/port for offload
15542 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
15543 * of supported attributes.
15544 * This attribute is optional.
15545 *
15546 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
15547 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
15548 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
15549 * configured.
15550 *
15551 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
15552 * u32 attribute. Period in milliseconds for the periodic transmitting.
15553 * This attribute is mandatory.
15554 *
15555 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
15556 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15557 * CoAP message (UDP payload) to be periodically transmitted. Firmware
15558 * is responsible for adding any necessary protocol headers.
15559 * This attribute is mandatory.
15560 */
15561enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
15562 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
15563 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
15564 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
15565 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
15566 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
15567
15568 /* keep last */
15569 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
15570 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
15571 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
15572};
15573
15574/**
15575 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
15576 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
15577 *
15578 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
15579 * u64 attribute. Received time (since system booted in microseconds) of
15580 * the cached CoAP message.
15581 * This attribute is mandatory.
15582 *
15583 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
15584 * u32 attribute. Source IPv4 address (in network byte order) of the cached
15585 * CoAP message.
15586 * This attribute is optional.
15587 *
15588 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
15589 * NLA_BINARY attribute, length is 16 bytes.
15590 * Source IPv6 address (in network byte order) of the cached CoAP message.
15591 * This attribute is optional.
15592 *
15593 * At most and at least one of
15594 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
15595 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
15596 * an entry.
15597 *
15598 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
15599 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15600 * The cached CoAP message (UDP payload). If the actual message size is
15601 * greater than the maximum size, it will be truncated and leaving only
15602 * the first 1152 bytes.
15603 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070015604 *
15605 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
15606 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070015607 */
15608enum qca_wlan_vendor_attr_coap_offload_cache_info {
15609 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
15610 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
15611 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
15612 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
15613 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070015614 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015615
15616 /* keep last */
15617 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
15618 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
15619 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
15620};
15621
15622/**
15623 * enum qca_wlan_vendor_coap_offload_action - Actions for
15624 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15625 *
15626 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
15627 * Enable CoAP offload reply.
15628 * If it's enabled, firmware will start offload processing on each suspend
15629 * and stop on each resume.
15630 *
15631 * Offload reply on match works as follows:
15632 * Reply the packets that match the filter with the given CoAP
15633 * message (with necessary protocol headers), increase the CoAP message
15634 * ID in the given CoAP message by one for the next use after each successful
15635 * transmission, and try to store the information of the received packet,
15636 * including the received time, source IP address, and CoAP message (UDP
15637 * payload).
15638 *
15639 * Firmware has a limit to the maximum stored entries, it takes the source IP
15640 * address as the key of an entry, and keeps at most one entry for each key.
15641 * A packet won't be stored if no entry for the same key is present and the
15642 * total number of the existing unexpired entries reaches the maximum value.
15643 *
15644 * If any configured item is changed, user space should disable offload reply
15645 * first and then issue a new enable request.
15646 *
15647 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
15648 * Disable CoAP offload reply and return information of any cached CoAP
15649 * messages.
15650 *
15651 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
15652 * Enable CoAP offload periodic transmitting.
15653 * If it's enabled, firmware will start offload periodic transmitting on
15654 * each suspend and stop on each resume.
15655 *
15656 * Offload periodic transmitting works as follows:
15657 * Send the given CoAP message (with necessary protocol headers) with the given
15658 * source/destination IP address/UDP port periodically based on the given
15659 * period and increase the CoAP message ID in the given CoAP message by one
15660 * for the next use after each successful transmission.
15661 *
15662 * If any configured item is changed, user space should disable offload
15663 * periodic transmitting first and then issue a new enable request.
15664 *
15665 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
15666 * Disable CoAP offload periodic transmitting.
15667 *
15668 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
15669 * Get information of the CoAP messages cached during offload reply
15670 * processing. The cache is cleared after retrieval.
15671 */
15672enum qca_wlan_vendor_coap_offload_action {
15673 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
15674 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
15675 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
15676 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
15677 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
15678};
15679
15680/**
15681 * enum qca_wlan_vendor_attr_coap_offload - Used by the
15682 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15683 * This is used to set parameters for CoAP offload processing, or get
15684 * cached CoAP messages from firmware.
15685 *
15686 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
15687 * u32 attribute. Action to take in this vendor command.
15688 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
15689 * This attribute is mandatory.
15690 *
15691 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
15692 * u32 attribute. Represents the Request ID for the CoAP offload
15693 * configuration, which can help to identify the user entity starting
15694 * the CoAP offload processing and accordingly stop the respective
15695 * ones/get the cached CoAP messages with the matching ID.
15696 * This attribute is mandatory.
15697 *
15698 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
15699 * Nested attribute. Parameters for offload reply.
15700 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
15701 * supported attributes.
15702 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15703 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
15704 * otherwise.
15705 *
15706 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
15707 * Nested attribute. Parameters for offload periodic transmitting.
15708 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
15709 * supported attributes.
15710 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
15711 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
15712 * otherwise.
15713 *
15714 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
15715 * Array of nested attributes. Information of the cached CoAP messages,
15716 * where each entry is taken from
15717 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
15718 * This attribute is used for reporting the cached CoAP messages
15719 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15720 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
15721 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
15722 * cached item if this attribute is not present.
15723 */
15724enum qca_wlan_vendor_attr_coap_offload {
15725 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
15726 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
15727 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
15728 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
15729 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
15730 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
15731
15732 /* keep last */
15733 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
15734 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
15735 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
15736};
15737
15738/**
15739 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
15740 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
15741 * Service (SCS) rule.
15742 *
15743 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
15744 * Represents the unique id of SCS rule to be configured.
15745
15746 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
15747 * Represents the request type: add, remove, or change.
15748 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
15749 * Type definitions).
15750 *
15751 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
15752 * in case of add/change request type.
15753 * Represents the output traffic identifier (TID) to be assigned to the flow
15754 * matching the rule.
15755 *
15756 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
15757 * attribute in case of add/change request type.
15758 * Represents type of classifier parameters present in SCS rule.
15759 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
15760 * Only classifier types 4 and 10 are supported for SCS.
15761 *
15762 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
15763 * in case of add/change request type when classifier type is TCLAS4.
15764 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
15765 *
15766 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
15767 * attribute in case of add/change request type when classifier type is TCLAS4
15768 * and version attribute is IPv4.
15769 * Represents the source IPv4 address in the rule which is to be compared
15770 * against the source IP address in the IPv4 header.
15771 *
15772 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
15773 * attribute in case of add/change request type when classifier type is TCLAS4
15774 * and version attribute is IPv4.
15775 * Represents the destination IPv4 address in the rule which is to be compared
15776 * against the destination IP address in the IPv4 header.
15777 *
15778 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
15779 * attribute in case of add/change request type when classifier type is TCLAS4
15780 * and version attribute is IPv6.
15781 * Represents the source IPv6 address in the rule which is to be compared
15782 * against the source IP address in the IPv6 header.
15783 *
15784 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
15785 * attribute in case of add/change request type when classifier type is TCLAS4
15786 * and version attribute is IPv6.
15787 * Represents the destination IPv6 address in the rule which is to be compared
15788 * against the destination IP address in the IPv6 header.
15789 *
15790 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
15791 * in case of add/change request type when classifier type is TCLAS4.
15792 * Represents the source port number in the rule which is to be compared against
15793 * the source port number in the protocol header.
15794 *
15795 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
15796 * in case of add/change request type when classifier type is TCLAS4.
15797 * Represents the destination port number in the rule which is to be compared
15798 * against the destination port number in the protocol header.
15799 *
15800 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
15801 * in case of add/change request type when classifier type is TCLAS4.
15802 * Represents the DSCP value in the rule which is to be compared against the
15803 * DSCP field present in the IP header.
15804 *
15805 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
15806 * attribute in case of add/change request type when classifier type is TCLAS4.
15807 * Represents the protocol/next header in the rule which is to be compared
15808 * against the protocol/next header field present in the IPv4/IPv6 header.
15809 *
15810 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
15811 * attribute of size 3 bytes present in case of add/change request type
15812 * when classifier type is TCLAS4 and version is IPv6.
15813 * Represents the flow label value in the rule which is to be compared against
15814 * the flow label field present in the IPv6 header.
15815 *
15816 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
15817 * attribute in case of add/change request type when classifier type is TCLAS10.
15818 * Represents the protocol instance number in the rule.
15819 *
15820 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
15821 * attribute in case of add/change request type when classifier type is TCLAS10.
15822 * Represents the protocol/next header in the rule which is to be compared
15823 * against the protocol/next header field present in the IPv4/IPv6 header.
15824 *
15825 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
15826 * attribute of variable length present when request type is add/change and
15827 * classifier type is TCLAS10.
15828 * Represents the mask to be used for masking the header contents of the header
15829 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15830 * attribute.
15831 *
15832 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15833 * attribute of variable length present when request type is add/change and
15834 * classifier type is TCLAS10.
15835 * Represents the value to be compared against after masking the header contents
15836 * of the header specified by the
15837 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15838 * filter mask specified by the
15839 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015840 *
15841 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15842 * attribute.
15843 * Represents the service class id of the configured SCS rule.
15844 *
15845 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15846 * MAC address.
15847 * Represents the destination MAC address in the rule.
15848 *
15849 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15850 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070015851 */
15852enum qca_wlan_vendor_attr_scs_rule_config {
15853 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15854 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15855 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15856 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15857 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15858 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15859 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15860 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15861 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15862 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15863 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15864 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15865 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15866 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15867 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15868 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15869 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15870 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15871 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015872 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15873 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15874 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070015875
15876 /* Keep last */
15877 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15878 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15879 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15880};
15881
15882/**
15883 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
15884 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
15885 *
15886 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
15887 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
15888 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
15889 */
15890enum qca_wlan_vendor_attr_mlo_links {
15891 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
15892 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
15893 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
15894 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
15895
15896 /* Keep last */
15897 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
15898 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
15899 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
15900};
15901
15902/**
15903 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15904 * used in the firmware.
15905 *
15906 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15907 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15908 *
15909 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15910 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15911 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15912 * groups.
15913 *
15914 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15915 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15916 * CTL group but user can choose up to 3 SAR set index only, as the top half
15917 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15918 * the SAR index (3 to 5) is used for DBS mode.
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015919 *
15920 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
15921 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
15922 * for power limit computation in collaboration with WWAN.
15923 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
15924 *
15925 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
15926 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
15927 * instead of fixed static SAR power limit firmware uses time averaging
15928 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
15929 * In this mode firmware has up to 43 indexes.
Sunil Ravi89eba102022-09-13 21:04:37 -070015930 */
15931enum qca_wlan_vendor_sar_version {
15932 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15933 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15934 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15935 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015936 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
15937 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015938};
15939
15940/**
15941 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15942 * CTL grouping is enabled or disabled in the firmware.
15943 *
15944 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15945 * is enabled in firmware.
15946 *
15947 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15948 * is disabled in firmware.
15949 *
15950 */
15951enum qca_wlan_vendor_sar_ctl_group_state {
15952 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15953 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15954 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15955};
15956
15957/**
15958 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15959 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15960 * supported by the firmware.
15961
15962 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15963 * u32 attribute. This field describes current SAR version supported by the
15964 * firmware.
15965 * See enum qca_wlan_vendor_sar_version for more information.
15966 * This attribute is mandatory.
15967
15968 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15969 * u32 attribute. This field describes whether CTL groups are enabled
15970 * or disabled in the firmware.
15971 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15972 * This attribute is optional.
15973 */
15974
15975enum qca_wlan_vendor_attr_sar_capability {
15976 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15977 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15978 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15979
15980 /* Keep last */
15981 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15982 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15983 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15984};
15985
15986/**
15987 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15988 * These statistics are sent from the driver in a response when userspace
15989 * queries to get the statistics using the operation
15990 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15991 * by the driver when the SR feature is enabled, when the driver receives
15992 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15993 *
15994 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15995 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15996 * This represents the number of non-SRG TX opportunities.
15997 *
15998 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15999 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
16000 * This represents the number of non-SRG PPDUs tried to transmit.
16001 *
16002 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
16003 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
16004 * This represents the number of non-SRG PPDUs successfully transmitted.
16005 *
16006 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
16007 * Mandatory only when SRG is supported by the AP and optional otherwise.
16008 * This represents the number of SRG TX opportunities.
16009 *
16010 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
16011 * Mandatory only when SRG is supported by the AP and optional otherwise.
16012 * This represents the number of SRG PPDUs tried to transmit.
16013 *
16014 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
16015 * Mandatory only when SRG is supported by the AP and optional otherwise.
16016 * This represents the number of SRG PPDUs successfully transmitted.
16017 */
16018enum qca_wlan_vendor_attr_sr_stats {
16019 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
16020 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
16021 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
16022 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
16023 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
16024 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
16025 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
16026
16027 /* Keep last */
16028 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
16029 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
16030 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
16031};
16032
16033/**
16034 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
16035 * Spatial Reuse feature.
16036 *
16037 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
16038 * roaming to an AP that doesn't support/supports SR feature, respectively.
16039 *
16040 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
16041 * to change in concurrent interfaces that are supported by the driver.
16042 */
16043enum qca_wlan_sr_reason_code {
16044 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
16045 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
16046};
16047
16048/**
16049 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
16050 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
16051 *
16052 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
16053 * driver to enable the Spatial Reuse feature. Attributes
16054 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
16055 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
16056 * operation.
16057 *
16058 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
16059 * driver to disable the Spatial Reuse feature.
16060 *
16061 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
16062 * asynchronous event sent to userspace when the SR feature is disabled.
16063 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
16064 * and sent along with the asynchronous event.
16065 *
16066 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
16067 * asynchronous event when the SR feature is enabled again after the SR feature
16068 * was suspended by the driver earlier. The enable reason is
16069 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
16070 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
16071 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
16072 *
16073 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
16074 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
16075 * reuse transmissions. Userspace sends this operation to the driver.
16076 * The driver/firmware upon receiving this operation shall prohibit PSR-based
16077 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
16078 *
16079 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
16080 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
16081 * reuse transmissions. Userspace sends this operation to the driver.
16082 * The driver/firmware upon receiving this operation shall allow PSR-based
16083 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
16084 *
16085 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
16086 * driver to get the SR statistics and the driver sends a synchronous response
16087 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
16088 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
16089 *
16090 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
16091 * driver to clear the SR statistics and upon receiving this operation
16092 * the driver/firmware shall clear the SR statistics.
16093 *
16094 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
16095 * driver to get the SR parameters and the driver sends the synchronous response
16096 * with the following required attributes:
16097 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
16098 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
16099 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
16100 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
16101 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
16102 *
16103 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
16104 * asynchronous event to userspace to update any changes in SR parameters.
16105 * The following attributes are used with this operation:
16106 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
16107 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
16108 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
16109 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
16110 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
16111 */
16112enum qca_wlan_sr_operation {
16113 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
16114 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
16115 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
16116 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
16117 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
16118 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
16119 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
16120 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
16121 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
16122 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
16123};
16124
16125/**
16126 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
16127 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
16128 *
16129 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
16130 * This attribute is optionally set in response to
16131 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
16132 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
16133 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
16134 * about HESIGA_Spatial_reuse_value15_allowed.
16135 *
16136 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
16137 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
16138 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
16139 * allowed or not at non-AP STAs that are associated with the AP. If present
16140 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
16141 *
16142 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
16143 * attribute. This attribute is used in response to
16144 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
16145 * Min Offset field which contains an unsigned integer that is added to -82 dBm
16146 * to generate the value of the SRG OBSS PD Min parameter.
16147 *
16148 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
16149 * attribute. This attribute is used in response to
16150 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
16151 * Max Offset field which contains an unsigned integer that is added to -82 dBm
16152 * to generate the value of the SRG OBSS PD Max parameter.
16153 *
16154 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
16155 * attribute. This attribute is used in response to
16156 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
16157 * PD Max Offset field which contains an unsigned integer that is added to -82
16158 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
16159 *
16160 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
16161 * Userspace optionally sends this attribute with
16162 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
16163 * preferred SRG PD threshold. The driver shall send this attribute to
16164 * userspace in SR resume event to indicate the PD threshold being used for SR.
16165 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
16166 * the driver shall indicate the userspace the newly configured SRG PD threshold
16167 * using an asynchronous event.
16168 *
16169 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
16170 * Userspace optionally sends this attribute with
16171 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
16172 * preferred non-SRG PD threshold. The driver shall send this attribute to
16173 * userspace in SR resume event to indicate the PD threshold being used for SR.
16174 * When there is change in non-SRG PD threshold (for example, due to roaming,
16175 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
16176 * threshold using an asynchronous event.
16177 *
16178 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
16179 * values are defined in enum qca_wlan_sr_reason_code. This
16180 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
16181 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
16182 */
16183enum qca_wlan_vendor_attr_sr_params {
16184 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
16185 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
16186 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
16187 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
16188 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
16189 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
16190 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
16191 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
16192 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
16193
16194 /* keep last */
16195 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
16196 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
16197 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
16198};
16199
16200/**
16201 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
16202 * command QCA_NL80211_VENDOR_SUBCMD_SR.
16203 *
16204 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
16205 * from userspace to the driver. Possible values are defined in enum
16206 * qca_wlan_sr_operation.
16207 *
16208 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
16209 * configuration parameters. The possible attributes inside this attribute are
16210 * defined in enum qca_wlan_vendor_attr_sr_params.
16211 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
16212 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
16213 * also in response from the driver to userspace when the response is sent for
16214 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
16215 * The driver uses this attribute in asynchronous events in which the operation
16216 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
16217 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
16218 *
16219 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
16220 * statistics. These attributes used inside this are defined in enum
16221 * qca_wlan_vendor_attr_sr_stats.
16222 * This attribute is used in response from the driver to a command in which
16223 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
16224 * %QCA_WLAN_SR_OPERATION_GET_STATS.
16225 */
16226enum qca_wlan_vendor_attr_sr {
16227 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
16228 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
16229 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
16230 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
16231
16232 /* Keep last */
16233 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
16234 QCA_WLAN_VENDOR_ATTR_SR_MAX =
16235 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
16236};
16237
Sunil Ravi77d572f2023-01-17 23:58:31 +000016238/**
16239 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
16240 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
16241 *
16242 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
16243 * used by the peer on the link that corresponds to the link used for sending
16244 * the event notification.
16245 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
16246 * MLD MAC address of the peer.
16247 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
16248 * used to pass ifindex of the primary netdev.
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016249 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
16250 * used to pass ifindex of the MLD netdev.
16251 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
16252 * used to indicate the number of links that the non-AP MLD negotiated to be
16253 * used in the ML connection.
16254 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
16255 * attribute, contains information regarding links of the non-AP MLD.
16256 * User applications need to know all the links of a non-AP MLD that are
16257 * participating in the ML association. The possible attributes inside this
16258 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
Sunil Ravi77d572f2023-01-17 23:58:31 +000016259 */
16260enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
16261 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
16262 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
16263 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
16264 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016265 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
16266 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
16267 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
Sunil Ravi77d572f2023-01-17 23:58:31 +000016268
16269 /* keep last */
16270 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
16271 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
16272 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
16273};
16274
16275/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016276 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
16277 * non-AP MLD link parameters used by the attribute
16278 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
16279 *
16280 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
16281 * to pass the netdev ifindex of the non-AP MLD link.
16282 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
16283 * the non-AP MLD link.
16284 */
16285enum qca_wlan_vendor_attr_mlo_link_info {
16286 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
16287 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
16288 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
16289
16290 /* keep last */
16291 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
16292 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
16293 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
16294};
16295
16296/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000016297 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
16298 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
16299 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
16300 * and PSD information.
16301 *
16302 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
16303 * u32. This attribute is used to indicate the start of the queried frequency
16304 * range in MHz.
16305 *
16306 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
16307 * This attribute is used to indicate the end of the queried frequency range
16308 * in MHz.
16309 *
16310 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
16311 * This attribute will contain the PSD information for a single range as
16312 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
16313 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
16314 *
16315 * The PSD power info (dBm/MHz) from user space should be multiplied
16316 * by a factor of 100 when sending to the driver to preserve granularity
16317 * up to 2 decimal places.
16318 * Example:
16319 * PSD power value: 10.21 dBm/MHz
16320 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
16321 *
16322 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
16323 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
16324 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
16325 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16326 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16327 *
16328 * The following set of attributes will be used to exchange frequency and
16329 * corresponding PSD information for AFC between the user space and the driver.
16330 */
16331enum qca_wlan_vendor_attr_afc_freq_psd_info {
16332 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
16333 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
16334 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
16335 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
16336
16337 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
16338 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
16339 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
16340};
16341
16342/**
16343 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
16344 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
16345 * channel list and corresponding EIRP information.
16346 *
16347 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
16348 * This attribute is used to indicate queried channel from
16349 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
16350 *
16351 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
16352 * This attribute is used to configure the EIRP power info corresponding
16353 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
16354 * The EIRP power info(dBm) from user space should be multiplied
16355 * by a factor of 100 when sending to Driver to preserve granularity up to
16356 * 2 decimal places.
16357 * Example:
16358 * EIRP power value: 34.23 dBm
16359 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
16360 *
16361 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
16362 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16363 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
16364 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16365 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
16366 *
16367 * The following set of attributes will be used to exchange Channel and
16368 * corresponding EIRP information for AFC between the user space and Driver.
16369 */
16370enum qca_wlan_vendor_attr_afc_chan_eirp_info {
16371 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
16372 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
16373 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
16374
16375 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
16376 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
16377 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
16378};
16379
16380/**
16381 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
16382 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16383 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
16384 * channel, and EIRP related information.
16385 *
16386 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
16387 * This attribute is used to indicate the operating class, as listed under
16388 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
16389 *
16390 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
16391 * for updating the channel number and EIRP power information.
16392 * It uses the attributes defined in
16393 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
16394 *
16395 * Operating class information packing format for
16396 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16397 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16398 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
16399 *
16400 * m - Total number of operating classes.
16401 * n, j - Number of queried channels for the corresponding operating class.
16402 *
16403 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16404 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16405 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16406 * .....
16407 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16408 * ....
16409 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16410 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16411 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16412 * ....
16413 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16414 *
16415 * Operating class information packing format for
16416 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16417 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16418 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16419 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16420 *
16421 * m - Total number of operating classes.
16422 * n, j - Number of channels for the corresponding operating class.
16423 *
16424 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16425 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16426 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16427 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16428 * .....
16429 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16430 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
16431 * ....
16432 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16433 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16434 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16435 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16436 * ....
16437 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16438 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
16439 *
16440 * The following set of attributes will be used to exchange operating class
16441 * information for AFC between the user space and the driver.
16442 */
16443enum qca_wlan_vendor_attr_afc_opclass_info {
16444 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
16445 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
16446 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
16447
16448 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
16449 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
16450 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
16451};
16452
16453/**
16454 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
16455 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
16456 *
16457 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
16458 * driver to userspace in order to query the new AFC power values.
16459 *
16460 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
16461 * complete event will be sent from the driver to userspace to indicate
16462 * processing of the AFC response.
16463 *
16464 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
16465 * will be sent from the driver to userspace to indicate last received
16466 * AFC response data has been cleared on the AP due to invalid data
16467 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
16468 *
16469 * The following enum defines the different event types that will be
16470 * used by the driver to help trigger corresponding AFC functionality in user
16471 * space.
16472 */
16473enum qca_wlan_vendor_afc_event_type {
16474 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
16475 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
16476 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
16477};
16478
16479/**
16480 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
16481 * deployment type.
16482 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
16483 *
16484 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
16485 *
16486 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
16487 *
16488 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
16489 *
16490 * The following enum defines different deployment modes that the AP might
16491 * come up in. This information will be essential to retrieve deployment-type
16492 * specific SP power values for AFC operation.
16493 */
16494enum qca_wlan_vendor_afc_ap_deployment_type {
16495 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
16496 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
16497 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
16498};
16499
16500/**
16501 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
16502 * indicate AFC response status.
16503 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
16504 *
16505 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
16506 *
16507 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
16508 * command was not received within the expected time of the AFC expiry event
16509 * being triggered.
16510 *
16511 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
16512 * parsing error by the driver.
16513 *
16514 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
16515 * error.
16516 *
16517 * The following enum defines the status codes that the driver will use to
16518 * indicate whether the AFC data is valid or not.
16519 */
16520enum qca_wlan_vendor_afc_evt_status_code {
16521 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
16522 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
16523 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
16524 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
16525};
16526
16527/**
16528 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
16529 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
16530 * support sending only a single request to the user space at a time.
16531 *
16532 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
16533 * Used with event to notify the type of AFC event received.
16534 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
16535 *
16536 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
16537 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16538 * otherwise unused.
16539 *
16540 * This attribute is used to indicate the AP deployment type in the AFC request.
16541 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
16542 *
16543 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
16544 * Unique request identifier generated by the AFC client for every
16545 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
16546 * The user space application is responsible for ensuring no duplicate values
16547 * are in-flight with the server, e.g., by delaying a request, should the same
16548 * value be received from different radios in parallel.
16549 *
16550 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
16551 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16552 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
16553 *
16554 * This attribute indicates the AFC spec version information. This will
16555 * indicate the AFC version AFC client must use to query the AFC data.
16556 * Bits 15:0 - Minor version
16557 * Bits 31:16 - Major version
16558 *
16559 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
16560 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16561 * otherwise unused.
16562 * This attribute indicates the minimum desired power (in dBm) for
16563 * the queried spectrum.
16564 *
16565 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
16566 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16567 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16568 *
16569 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
16570 * This attribute is used to indicate if there were any errors parsing the
16571 * AFC response.
16572 *
16573 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
16574 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16575 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16576 *
16577 * This attribute indicates the AFC response code. The AFC response codes are
16578 * in the following categories:
16579 * -1: General Failure.
16580 * 0: Success.
16581 * 100 - 199: General errors related to protocol.
16582 * 300 - 399: Error events specific to message exchange
16583 * for the Available Spectrum Inquiry.
16584 *
16585 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
16586 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16587 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16588 *
16589 * This attribute indicates the date until which the current response is
16590 * valid for in UTC format.
16591 * Date format: bits 7:0 - DD (Day 1-31)
16592 * bits 15:8 - MM (Month 1-12)
16593 * bits 31:16 - YYYY (Year)
16594 *
16595 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
16596 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16597 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16598 *
16599 * This attribute indicates the time until which the current response is
16600 * valid for in UTC format.
16601 * Time format: bits 7:0 - SS (Seconds 0-59)
16602 * bits 15:8 - MM (Minutes 0-59)
16603 * bits 23:16 - HH (Hours 0-23)
16604 * bits 31:24 - Reserved
16605 *
16606 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
16607 * for updating the list of frequency ranges to be queried.
16608 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16609 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16610 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16611 * It uses the attributes defined in
16612 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
16613 *
16614 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
16615 * for updating the list of operating classes and corresponding channels to be
16616 * queried.
16617 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16618 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16619 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16620 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
16621 */
16622enum qca_wlan_vendor_attr_afc_event {
16623 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
16624 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
16625 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
16626 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
16627 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
16628 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
16629 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
16630 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
16631 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
16632 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
16633 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
16634 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
16635
16636 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
16637 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
16638 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
16639};
16640
16641/**
16642 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
16643 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
16644 * will support sending only a single AFC response to the driver at a time.
16645 *
16646 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
16647 * This attribute will be used to send a single Spectrum Inquiry response object
16648 * from the 'availableSpectrumInquiryResponses' array object from the response
16649 * JSON.
16650 *
16651 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
16652 *
16653 * This attribute indicates the period (in seconds) for which the response
16654 * data received is valid for.
16655 *
16656 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
16657 *
16658 * This attribute indicates the request ID for which the corresponding
16659 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
16660 *
16661 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
16662 *
16663 * This attribute indicates the date until which the current response is
16664 * valid for in UTC format.
16665 * Date format: bits 7:0 - DD (Day 1-31)
16666 * bits 15:8 - MM (Month 1-12)
16667 * bits 31:16 - YYYY (Year)
16668 *
16669 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
16670 *
16671 * This attribute indicates the time until which the current response is
16672 * valid for in UTC format.
16673 * Time format: bits 7:0 - SS (Seconds 0-59)
16674 * bits 15:8 - MM (Minutes 0-59)
16675 * bits 23:16 - HH (Hours 0-23)
16676 * bits 31:24 - Reserved
16677 *
16678 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
16679 *
16680 * This attribute indicates the AFC response code. The AFC response codes are
16681 * in the following categories:
16682 * -1: General Failure.
16683 * 0: Success.
16684 * 100 - 199: General errors related to protocol.
16685 * 300 - 399: Error events specific to message exchange
16686 * for the Available Spectrum Inquiry.
16687 *
16688 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
16689 * for PSD info of all the queried frequency ranges. It uses the attributes
16690 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
16691 *
16692 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
16693 * attributes for EIRP info of all queried operating class/channels. It uses
16694 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
16695 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
16696 *
16697 */
16698enum qca_wlan_vendor_attr_afc_response {
16699 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
16700 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
16701 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
16702 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
16703 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
16704 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
16705 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
16706 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
16707 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
16708
16709 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
16710 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
16711 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
16712};
16713
16714/**
16715 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
16716 *
16717 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
16718 *
16719 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
16720 * beaconing at higher beacon interval with Rx disabled.
16721 */
16722enum qca_wlan_dozed_ap_state {
16723 QCA_WLAN_DOZED_AP_DISABLE = 0,
16724 QCA_WLAN_DOZED_AP_ENABLE = 1,
16725};
16726
16727/**
16728 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
16729 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
16730 * configuration.
16731 *
16732 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
16733 * Configures the doze state for an AP interface. Possible values are defined
16734 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
16735 * gets triggered asynchronously to provide updated AP interface configuration.
16736 *
16737 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
16738 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
16739 * command, which is used later to maintain synchronization between commands
16740 * and asynchronous events.
16741 *
16742 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
16743 * Used in event to indicate the next TBTT TSF timer value after applying the
16744 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
16745 * the first beacon after entering or exiting dozed mode.
16746 *
16747 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
16748 * Used with event to inform the periodicity of beacon transmission that would
16749 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070016750 *
16751 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
16752 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000016753 */
16754enum qca_wlan_vendor_attr_dozed_ap {
16755 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
16756 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
16757 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
16758 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
16759 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070016760 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000016761
16762 /* Keep last */
16763 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
16764 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
16765 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
16766};
16767
16768/**
16769 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
16770 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
16771 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
16772 * capture running status.
16773 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
16774 * capture running status.
16775 **/
16776
16777enum qca_wlan_vendor_monitor_mode_status {
16778 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
16779 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
16780};
16781
16782/**
16783 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
16784 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
16785 * information regarding the local packet capture over the monitor mode.
16786 *
16787 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
16788 * represents the status of the start capture commands. The values used with
16789 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
16790 * is returned by the driver in the response to the command.
16791 */
16792
16793enum qca_wlan_vendor_attr_get_monitor_mode {
16794 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
16795 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
16796
16797 /* Keep last */
16798 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
16799 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
16800 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
16801};
16802
Sunil Ravi036cec52023-03-29 11:35:17 -070016803/**
16804 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
16805 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
16806 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
16807 *
16808 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
16809 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
16810 */
16811enum qca_wlan_vendor_link_state_op_types {
16812 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
16813 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
16814};
16815
16816/**
16817 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
16818 * links state control modes. This enum is used by
16819 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
16820 *
16821 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
16822 * by the driver.
16823 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
16824 * user space.
16825 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
16826 * desired number of MLO links to operate in active state at any given time.
16827 * The driver will choose which MLO links should operate in the active state.
16828 * See enum qca_wlan_vendor_link_state for active state definition.
16829 */
16830enum qca_wlan_vendor_link_state_control_modes {
16831 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16832 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16833 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16834};
16835
16836/**
16837 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16838 * links state operation modes. This enum is used by
16839 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16840 *
16841 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16842 * mode, the driver selects the operating mode of the links, without any
16843 * guidance from the user space.
16844 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16845 * operation mode the driver should select MLO links that will achieve low
16846 * latency.
16847 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16848 * throughput operation mode the driver should select MLO links that will
16849 * achieve higher throughput.
16850 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16851 * operation mode the driver should select MLO links that will achieve low
16852 * power.
16853 */
16854enum qca_wlan_vendor_link_state_operation_modes {
16855 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16856 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16857 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16858 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16859};
16860
16861/**
16862 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16863 * MLO link.
16864 *
16865 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
16866 * be used for data transmission but it can have TIDs mapped to it. It will be
16867 * in doze state always and does not monitor the beacons.
16868 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
16869 * used for data TX/RX and monitors the beacons to check TIM bit indication.
16870 * It may enter doze state and comes out based on the transmit data traffic and
16871 * TIM bit indication in the beacon.
16872 */
16873enum qca_wlan_vendor_link_state {
16874 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16875 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16876};
16877
16878/**
16879 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16880 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16881 *
16882 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16883 * MLO link.
16884 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16885 * enum qca_wlan_vendor_link_state for possible MLO link states.
16886 */
16887
16888enum qca_wlan_vendor_attr_link_state_config {
16889 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16890 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16891 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16892
16893 /* Keep last */
16894 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16895 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16896 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16897};
16898
16899/**
16900 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16901 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16902 *
16903 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16904 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16905 * Required only in a command. Possible values for this attribute are defined in
16906 * enum qca_wlan_vendor_link_state_op_types.
16907 *
16908 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16909 * links control mode type. Optional attribute in a command when
16910 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16911 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16912 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16913 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16914 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16915 *
16916 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16917 * Indicates the state of the each MLO link affiliated with the interface.
16918 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16919 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16920 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16921 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16922 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16923 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16924 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16925 *
16926 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16927 * Represents the number of active state links. See enum
16928 * qca_wlan_vendor_link_state for active state definition.
16929 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16930 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16931 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16932 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16933 *
16934 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16935 * links operation mode type. Optional attribute in a command when
16936 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16937 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16938 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16939 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16940 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16941 * modes.
16942 */
16943enum qca_wlan_vendor_attr_mlo_link_state {
16944 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16945 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16946 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16947 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16948 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16949 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16950
16951 /* keep last */
16952 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16953 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16954 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16955};
16956
Sunil Ravi640215c2023-06-28 23:08:09 +000016957/**
16958 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16959 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16960 *
16961 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16962 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16963 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16964 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16965 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16966 * traffic for that link.
16967 *
16968 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16969 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16970 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16971 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16972 * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16973 * downlink traffic for that link.
16974 */
16975enum qca_wlan_vendor_attr_tid_link_map_status {
16976 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16977 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16978 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16979
16980 /* keep last */
16981 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16982 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16983 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16984};
16985
16986/*
16987 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16988 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16989 *
16990 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16991 * AP MLD address with which this TID-to-link negotiation mapping is
16992 * established/updated.
16993 *
16994 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16995 * nested attributes containing TID-to-links mapping information. This will have
16996 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16997 * map information. If this attribute is not present the default TID-to-link
16998 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16999 * downlink traffic.
17000 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
17001 */
17002enum qca_wlan_vendor_attr_tid_to_link_map {
17003 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
17004 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
17005 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
17006
17007 /* keep last */
17008 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
17009 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
17010 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
17011};
17012
17013/**
17014 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
17015 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
17016 *
17017 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
17018 * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
17019 *
17020 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
17021 * A bitmap of the removed setup links link IDs.
17022 */
17023enum qca_wlan_vendor_attr_link_reconfig {
Sunil Ravi640215c2023-06-28 23:08:09 +000017024 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
17025 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
17026 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
17027
17028 /* keep last */
17029 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
17030 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
17031 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
17032};
17033
17034/**
17035 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
17036 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
17037 *
17038 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
17039 * Indicates the MLO link id on which the TDLS discovery response
17040 * frame is to be transmitted.
17041 */
17042enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
17043 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
17044 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
17045
17046 /* Keep last */
17047 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
17048 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
17049 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
17050};
17051
Sunil Ravi2a14cf12023-11-21 00:54:38 +000017052/**
17053 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
17054 *
17055 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
17056 * for all stations.
17057 *
17058 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
17059 * establish the session.
17060 *
17061 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
17062 * established.
17063 *
17064 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
17065 * session is established using MCC.
17066 *
17067 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
17068 * established, but is temporarily dropped currently.
17069 *
17070 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
17071 */
17072enum qca_wlan_vendor_tdls_state {
17073 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
17074 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
17075 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
17076 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
17077 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
17078 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
17079};
17080
17081/**
17082 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
17083 *
17084 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
17085 *
17086 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
17087 *
17088 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
17089 *
17090 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
17091 *
17092 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
17093 * than through direct link.
17094 *
17095 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
17096 * session anymore.
17097 */
17098
17099enum qca_wlan_vendor_tdls_reason {
17100 QCA_WLAN_TDLS_REASON_SUCCESS = 0,
17101 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
17102 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
17103 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
17104 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
17105 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
17106};
17107
17108/**
17109 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
17110 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
17111 *
17112 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
17113 * station to enable the TDLS session. Optional attribute. The driver sends the
17114 * TDLS session result as an asynchronous response using the command
17115 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
17116 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
17117 *
17118 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
17119 * channel on which the TDLS session to be established. Required only when
17120 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
17121 *
17122 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
17123 * Indicates the global operating class of the TDLS session to be established.
17124 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
17125 *
17126 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
17127 * the maximum latency of the WLAN packets to be transmitted/received in
17128 * milliseconds on TDLS session. Required only when
17129 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
17130 *
17131 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
17132 * Indicates the minimum bandwidth to be used to establish the TDLS session
17133 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
17134 * present.
17135 */
17136enum qca_wlan_vendor_attr_tdls_enable {
17137 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
17138 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
17139 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
17140 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
17141 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
17142 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
17143
17144 /* keep last */
17145 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
17146 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
17147 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
17148};
17149
17150/**
17151 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
17152 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
17153 *
17154 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
17155 * station to disable the TDLS session. Optional attribute.
17156 */
17157enum qca_wlan_vendor_attr_tdls_disable {
17158 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
17159 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
17160
17161 /* keep last */
17162 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
17163 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
17164 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
17165};
17166
17167/**
17168 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
17169 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
17170 *
17171 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
17172 * peer station. Optional attribute. Used in
17173 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
17174 *
17175 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
17176 * TDLS session state with the peer specified in
17177 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
17178 * enum qca_wlan_vendor_tdls_state. Used in
17179 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17180 *
17181 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
17182 * reason for the TDLS session state indicated in
17183 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
17184 * qca_wlan_vendor_tdls_reason. Used in
17185 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17186 *
17187 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
17188 * channel of the TDLS session established with
17189 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
17190 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17191 *
17192 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
17193 * Indicates the global operating class of the TDLS session established with
17194 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
17195 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17196 *
17197 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
17198 * the current number of active TDLS sessions. This is indicated in the response
17199 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
17200 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
17201 *
17202 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
17203 * whether the driver can initiate new TDLS session. This is indicated in the
17204 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
17205 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
17206 */
17207enum qca_wlan_vendor_attr_tdls_get_status {
17208 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
17209 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
17210 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
17211 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
17212 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
17213 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
17214 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
17215 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
17216
17217 /* keep last */
17218 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
17219 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
17220 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
17221};
17222
17223/**
17224 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
17225 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
17226 *
17227 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
17228 * peer station. Required attribute.
17229 *
17230 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
17231 * the current TDLS state. Required attribute. Uses the values from
17232 * enum qca_wlan_vendor_tdls_state.
17233 *
17234 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
17235 * reason of the current TDLS session state. Required attribute. Uses the values
17236 * from enum qca_wlan_vendor_tdls_reason.
17237 *
17238 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
17239 * TDLS session channel. Required attribute.
17240 *
17241 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
17242 * Indicates the TDLS session global operating class. Required attribute.
17243 */
17244enum qca_wlan_vendor_attr_tdls_state {
17245 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
17246 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
17247 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
17248 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
17249 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
17250 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
17251
17252 /* keep last */
17253 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
17254 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
17255 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
17256};
17257
17258/*
17259 * enum qca_wlan_vendor_opm_mode - Modes supported by
17260 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
17261 *
17262 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
17263 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
17264 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
17265 * to configure power save inactivity timeout and speculative wake up
17266 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
17267 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
17268 */
17269
17270enum qca_wlan_vendor_opm_mode {
17271 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
17272 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
17273 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
17274};
17275
17276/*
17277 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
17278 * types.
17279 *
17280 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
17281 * from: An MSDU is presented to the driver
17282 * to: the MSDU is queued into TCL SRNG
17283 *
17284 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
17285 * from: the MSDU is queued into TCL SRNG
17286 * to: the MSDU is released by the driver
17287 *
17288 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
17289 * from: the MSDU is presented to the hardware
17290 * to: the MSDU is released by the hardware
17291 *
17292 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
17293 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
17294 * from: A PPDU is presented to the hardware LMAC
17295 * to: over-the-air transmission is started for the PPDU
17296 */
17297enum qca_wlan_vendor_tx_latency_type {
17298 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
17299 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
17300 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
17301 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
17302};
17303
17304/**
17305 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
17306 * used inside nested attributes
17307 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
17308 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
17309 *
17310 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
17311 * Indicates the latency type.
17312 * See enum qca_wlan_vendor_tx_latency_type for the supported types.
17313 *
17314 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
17315 * Indicates the granularity (in microseconds) of the distribution for the
17316 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
17317 * must be positive.
17318 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
17319 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
17320 * of 1000, and the maximum allowed value is 15000 (us).
17321 *
17322 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
17323 * Indicates the average of the latency (in microseconds) for the type
17324 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
17325 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
17326 * otherwise, it represents the quotient of <accumulated latency of the
17327 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
17328 * MSDUs/MPDUs in a cycle>.
17329 *
17330 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
17331 * Array of u32, 4 elements in total, represents the latency distribution for
17332 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
17333 * Each element holds the count of MSDUs/PPDUs (according to the latency type)
17334 * within a range:
17335 * element[0]: latency >= 0 && latency < granularity
17336 * element[1]: latency >= granularity && latency < granularity * 2
17337 * element[2]: latency >= granularity * 2 && latency < granularity * 3
17338 * element[3]: latency >= granularity * 3
17339 */
17340enum qca_wlan_vendor_attr_tx_latency_bucket {
17341 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
17342 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
17343 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
17344 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
17345 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
17346
17347 /* keep last */
17348 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
17349 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
17350 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
17351};
17352
17353/**
17354 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
17355 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
17356 *
17357 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
17358 * Indicates link MAC address of the remote peer. For example, when running
17359 * in station mode, it's the BSSID of the link; while when running in AP
17360 * mode, it's the link MAC address of the remote station.
17361 *
17362 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
17363 * Array of nested attribute.
17364 * Represents the transmit latency statistics for the link specified by
17365 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17366 * Each entry represents the statistics for one of the types defined in
17367 * enum qca_wlan_vendor_tx_latency_type.
17368 * Each defined type has and must have one entry.
17369 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
17370 */
17371enum qca_wlan_vendor_attr_tx_latency_link {
17372 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
17373 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
17374 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
17375
17376 /* keep last */
17377 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
17378 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
17379 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
17380};
17381
17382/**
17383 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
17384 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
17385 *
17386 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
17387 * Disable transmit latency monitoring.
17388 *
17389 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
17390 * Enable transmit latency monitoring.
17391 *
17392 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
17393 * Get transmit latency statistics of the last cycle (period is specified by
17394 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
17395 */
17396enum qca_wlan_vendor_tx_latency_action {
17397 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
17398 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
17399 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
17400};
17401
17402/**
17403 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
17404 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
17405 * per-link transmit latency statistics.
17406 *
17407 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
17408 * 1) used as a command to enable the feature
17409 * Precondition(s):
17410 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17411 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
17412 * Mandatory attribute(s):
17413 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17414 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
17415 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
17416 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17417 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
17418 * Notes:
17419 * The driver will monitor the transmit latency for the active links
17420 * and save the statistics for each cycle (period is set by
17421 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
17422 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
17423 * report is required.
17424 *
17425 * 2) used as a command to disable the feature
17426 * Precondition(s):
17427 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17428 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
17429 * Mandatory attribute(s):
17430 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17431 *
17432 * 3) used as a command to retrieve the statistics for all the active links on
17433 * the requested interface
17434 * Precondition(s):
17435 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17436 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17437 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
17438 * Mandatory attribute(s):
17439 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17440 * Notes:
17441 * The driver returns failure directly if the feature is not enabled or
17442 * there is no active link.
17443 * The driver returns the statistics of the last cycle in the case of
17444 * success.
17445 *
17446 * 4) used as a command to retrieve the statistics for the specified links
17447 * Precondition(s):
17448 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17449 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17450 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
17451 * Mandatory attribute(s):
17452 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17453 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
17454 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17455 * Notes:
17456 * The driver returns failure directly if the feature is not enabled or
17457 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
17458 * does not exist or is not in active state.
17459 *
17460 * 5) used as a command response for #3 or #4
17461 * Precondition(s):
17462 * Userspace issues command #3 or #4, and the driver gets corresponding
17463 * statistics successfully.
17464 * Mandatory attribute(s):
17465 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17466 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17467 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17468 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17469 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17470 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17471 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17472 *
17473 * 6) used as an asynchronous event to report the statistics periodically
17474 * Precondition(s):
17475 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
17476 * #1.
17477 * One or more links are in active state.
17478 * Mandatory attribute(s):
17479 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17480 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17481 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17482 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17483 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17484 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17485 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17486 *
17487 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
17488 *
17489 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
17490 * Action to take in this vendor command.
17491 * See enum qca_wlan_vendor_tx_latency_action for supported actions.
17492 *
17493 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
17494 * Enable (flag attribute present) - The driver needs to report transmit latency
17495 * statistics at the end of each statistical period.
17496 * Disable (flag attribute not present) - The driver doesn't need to report
17497 * transmit latency statistics periodically.
17498 *
17499 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
17500 * Indicates statistical period for transmit latency in terms of milliseconds,
17501 * the minimal allowed value is 100 and the maximum allowed value is 60000.
17502 *
17503 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
17504 * Each entry represents the latency buckets configuration for one of the types
17505 * defined in enum qca_wlan_vendor_tx_latency_type.
17506 * Each defined type has and must have one entry.
17507 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
17508 * supported attributes.
17509 *
17510 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
17511 * Information of the links, each entry represents for one link.
17512 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
17513 * supported attributes for each entry.
17514 */
17515enum qca_wlan_vendor_attr_tx_latency {
17516 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
17517 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
17518 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
17519 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
17520 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
17521 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
17522
17523 /* keep last */
17524 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
17525 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
17526 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
17527};
17528
17529/**
17530 * enum qca_chan_width_update_type - Represents the possible values for
17531 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
17532 *
17533 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
17534 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
17535 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
17536 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
17537 * with AP to indicate the change in the maximum allowed operating bandwidth.
17538 *
17539 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
17540 * bandwidth only to Tx path. In this case the driver doesn't need to conduct
17541 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
17542 * expected to be less than the current connection maximum negotiated bandwidth.
17543 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
17544 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
17545 * to 80 MHz only in the Tx path.
17546 *
17547 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
17548 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
17549 * phymode bandwidth to avoid interoperability issues with APs which don't
17550 * handle the maximum bandwidth change indication correctly.
17551 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
17552 * bandwidth configured is 20 MHz, now the driver indicates the change in
17553 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
17554 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
17555 * interoperability issues with APs which still use 40 MHz for sending the
17556 * frames though it received maximum allowed bandwidth indication as 20 MHz
17557 * from the STA.
17558 */
17559enum qca_chan_width_update_type {
17560 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
17561 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
17562 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
17563};
17564
Sunil Ravib0ac25f2024-07-12 01:42:03 +000017565/**
17566 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
17567 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
17568 *
17569 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
17570 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
17571 * frequency. If non PSD power, carries either 20 MHz bandwidth's center
17572 * channel frequency or 40 MHz bandwidth's center channel frequency
17573 * (or 80/160 MHz bandwidth's center channel frequency).
17574 *
17575 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
17576 * If PSD power, carries PSD power value of the
17577 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
17578 * If non PSD power, carries EIRP power value of bandwidth mentioned
17579 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
17580 */
17581enum qca_wlan_vendor_attr_tpc_pwr_level {
17582 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
17583 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
17584 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
17585
17586 /* keep last */
17587 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
17588 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
17589 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
17590};
17591
17592/**
17593 * enum qca_wlan_vendor_tpc - Definition of link attributes
17594 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
17595 *
17596 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
17597 * For MLO STA, AP BSSID indicates the AP's link address.
17598 *
17599 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
17600 * Indicates using PSD power mode if this flag is present.
17601 *
17602 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
17603 * value in dBm
17604 *
17605 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
17606 * AP, refer to Table E-12-Regulatory Info subfield encoding in
17607 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
17608 *
17609 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
17610 * (dBm) advertised by AP in Power Constraint element, refer to
17611 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
17612 *
17613 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
17614 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
17615 * If PSD power, each power level describes each 20 MHz subchannel PSD
17616 * power value. If non PSD power, each power level describes each supported
17617 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
17618 * each level attribute contains corresponding bandwidth's center channel
17619 * frequency and its EIRP power value.
17620 */
17621enum qca_wlan_vendor_attr_tpc {
17622 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
17623 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
17624 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
17625 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
17626 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
17627 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
17628 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
17629
17630 /* keep last */
17631 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
17632 QCA_WLAN_VENDOR_ATTR_TPC_MAX =
17633 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17634};
17635
17636/**
17637 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
17638 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
17639 *
17640 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
17641 * per-link TPC information of all the active links of MLO STA.
17642 * For non MLO STA, only one link TPC information will be returned
17643 * for connected AP in this nested attribute.
17644 * The attributes used inside this nested attributes are defined
17645 * in enum qca_wlan_vendor_attr_tpc.
17646 */
17647enum qca_wlan_vendor_attr_tpc_links {
17648 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
17649 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
17650
17651 /* keep last */
17652 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
17653 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
17654 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17655};
17656
17657/**
17658 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
17659 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
17660 *
17661 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
17662 * associated with the firmware page fault that is expected to contain the
17663 * required dump to analyze frequent page faults.
17664 * NLA_BINARY attribute, the maximum size is 1024 bytes.
17665 */
17666enum qca_wlan_vendor_attr_fw_page_fault_report {
17667 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
17668 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
17669
17670 /* keep last */
17671 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
17672 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
17673 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
17674};
17675
Sunil Ravi99c035e2024-07-12 01:42:03 +000017676/**
17677 * enum qca_wlan_btm_support: BTM support configuration
17678 *
17679 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
17680 * follows the BSS Transition bit in the Extended Capabilities element from the
17681 * connect request IEs with the default BTM support policy.
17682 *
17683 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
17684 * (re)association attempts. The driver shall restore the default BTM support
17685 * policy during the first disconnection after successful association. When this
17686 * configuration is enabled, the driver shall overwrite the BSS Transition bit
17687 * as zero in the Extended Capabilities element while sending (Re)Association
17688 * Request frames. Also, the driver shall drop the BTM frames from userspace and
17689 * the connected AP when this configuration is enabled.
17690 */
17691enum qca_wlan_btm_support {
17692 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
17693 QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
17694};
17695
17696/**
17697 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for
17698 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE.
17699 *
17700 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code
17701 * used in OFDM/CCK.
17702 *
17703 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index.
17704 *
17705 */
17706enum qca_wlan_vendor_data_rate_type {
17707 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0,
17708 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1,
17709};
17710
17711/**
17712 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition
17713 * of data rate related attributes which is used inside nested attribute
17714 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG.
17715 *
17716 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type.
17717 * For this attribute, valid values are enumerated in enum
17718 * %qca_wlan_vendor_data_rate_type.
17719 *
17720 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value.
17721 * This attribute value is interpreted according to the value of attribute
17722 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config
17723 * type, this attribute value is defined in the units of 0.5 Mbps.
17724 * For non legacy config type, this attribute carries the MCS index number.
17725 *
17726 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm.
17727 * Usually the target computes a final transmit power that is the maximum
17728 * power level that doesn't exceed the limits enforced by various sources
17729 * like chip-specific conformance test limits (CTL), Specific Absorption
17730 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific
17731 * limits, channel avoidance limits, Automated Frequency Coordination (AFC),
17732 * and others. In some cases it may be desirable to use a power level that is
17733 * lower than the maximum power level allowed by all of these limits, so this
17734 * attribute provides an additional limit that can be used to reduce the
17735 * transmit power level.
17736 *
17737 */
17738enum qca_wlan_vendor_attr_adjust_tx_power_rate {
17739 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0,
17740 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1,
17741 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2,
17742 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3,
17743
17744 /* keep last */
17745 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST,
17746 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX =
17747 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1,
17748};
17749
17750/**
17751 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition
17752 * of chain related attributes which is used inside nested attribute
17753 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG.
17754 *
17755 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value.
17756 * Represents a particular chain for which transmit power adjustment needed.
17757 *
17758 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested
17759 * attribute containing data rate related information to adjust transmit
17760 * power. The attributes used inside this nested attributes are defined in
17761 * enum qca_wlan_vendor_attr_adjust_tx_power_rate.
17762 */
17763enum qca_wlan_vendor_attr_adjust_tx_power_chain_config {
17764 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0,
17765 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1,
17766 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2,
17767
17768 /* keep last */
17769 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST,
17770 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX =
17771 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1,
17772};
17773
17774/**
17775 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition
17776 * of band related attributes which is used inside nested attribute
17777 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG.
17778 *
17779 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to
17780 * indicate band for which configuration applies. Valid values are enumerated
17781 * in enum %nl80211_band.
17782 *
17783 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested
17784 * attribute containing per chain related information to adjust transmit
17785 * power. The attributes used inside this nested attribute are defined in
17786 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config.
17787 *
17788 */
17789enum qca_wlan_vendor_attr_adjust_tx_power_band_config {
17790 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0,
17791 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1,
17792 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2,
17793
17794 /* keep last */
17795 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST,
17796 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX =
17797 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1,
17798};
17799
17800/**
17801 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes
17802 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand.
17803 *
17804 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute
17805 * containing per band related information to adjust transmit power.
17806 * The attributes used inside this nested attributes are defined in
17807 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config.
17808 */
17809enum qca_wlan_vendor_attr_adjust_tx_power {
17810 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0,
17811 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1,
17812
17813 /* keep last */
17814 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST,
17815 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX =
17816 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1,
17817};
17818
17819/**
17820 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute
17821 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE.
17822 *
17823 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to
17824 * send spectral data to userspace applications.
17825 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface
17826 * to send spectral data to userspace applications.
17827 */
17828enum qca_wlan_vendor_spectral_data_transport_mode {
17829 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0,
17830 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1,
17831};
17832
17833/* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute
17834 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to
17835 * indicate the completion status for a spectral scan.
17836 *
17837 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL:
17838 * Indicates a successful completion of the scan.
17839 *
17840 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates
17841 * a timeout has occured while processing the spectral reports.
17842 */
17843enum qca_wlan_vendor_spectral_scan_complete_status {
17844 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0,
17845 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1,
17846};
17847
17848/* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of
17849 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE
17850 * to indicate scan status and samples received from hardware.
17851 *
17852 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute
17853 *
17854 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute.
17855 * Indicates completion status, either the scan is successful or a timeout
17856 * is issued by the driver.
17857 * See enum qca_wlan_vendor_spectral_scan_complete_status.
17858 *
17859 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32
17860 * attribute. Number of spectral samples received after the scan has started.
17861 */
17862enum qca_wlan_vendor_attr_spectral_scan_complete {
17863 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0,
17864 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1,
17865 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2,
17866
17867 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST,
17868 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX =
17869 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1,
17870};
17871
Sunil Ravi7f769292024-07-23 22:21:32 +000017872/**
17873 * enum qca_wlan_vendor_async_get_station_attr - Attribute values for
17874 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command.
17875 *
17876 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to
17877 * configure the driver to enable/disable reporting
17878 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable.
17879 * This is required in a command.
17880 *
17881 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is
17882 * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event.
17883 * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC
17884 * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see
17885 * enum nl80211_sta_info.
17886 */
17887enum qca_wlan_vendor_async_get_station_attr {
17888 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0,
17889 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1,
17890 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2,
17891
17892 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST,
17893 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX =
17894 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1,
17895};
17896
17897/* enum qca_wlan_vendor_ap_suspend_state - Attribute values for
17898 * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE.
17899 *
17900 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used
17901 * with a command, the driver resumes AP with the same configuration that was
17902 * applied earlier and starts all TX/RX operations. When used in an event,
17903 * indicates the AP interface resumed.
17904 *
17905 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this
17906 * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP
17907 * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE
17908 * or AP stop/teardown operations. When used in an event, indicates the AP
17909 * interface suspended.
17910 */
17911enum qca_wlan_vendor_ap_suspend_state {
17912 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0,
17913 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1,
17914};
17915
17916/* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for
17917 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state.
17918 *
17919 * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify
17920 * suspend state defined in enum qca_wlan_vendor_ap_suspend_state.
17921 */
17922enum qca_wlan_vendor_attr_ap_suspend {
17923 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0,
17924 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1,
17925
17926 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST,
17927 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX =
17928 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1,
17929};
17930
17931/**
17932 * enum qca_traffic_type - Traffic types into which the flows can be classified.
17933 * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming
17934 * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming
17935 * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call
17936 * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call
17937 * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share
17938 * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown
17939 * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type
Sunil Ravi876a49b2025-02-03 19:18:32 +000017940 * @QCA_TRAFFIC_TYPE_BROWSING: Traffic type is browsing website
17941 * @QCA_TRAFFIC_TYPE_APERIODIC_BURSTS: Traffic type is aperiodic bursts
Sunil Ravi7f769292024-07-23 22:21:32 +000017942 */
17943enum qca_traffic_type {
17944 QCA_TRAFFIC_TYPE_STREAMING = 0,
17945 QCA_TRAFFIC_TYPE_GAMING = 1,
17946 QCA_TRAFFIC_TYPE_VOICE_CALL = 2,
17947 QCA_TRAFFIC_TYPE_VIDEO_CALL = 3,
17948 QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4,
17949 QCA_TRAFFIC_TYPE_UNKNOWN = 5,
17950 QCA_TRAFFIC_TYPE_INVALID = 6,
Sunil Ravi876a49b2025-02-03 19:18:32 +000017951 QCA_TRAFFIC_TYPE_BROWSING = 7,
17952 QCA_TRAFFIC_TYPE_APERIODIC_BURSTS = 8,
Sunil Ravi7f769292024-07-23 22:21:32 +000017953};
17954
17955/**
17956 * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify
17957 * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL.
17958 *
17959 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow
17960 *
17961 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow
17962 */
17963enum qca_wlan_vendor_flow_tuple_proto {
17964 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0,
17965 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1,
17966};
17967
17968/**
17969 * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a
17970 * flow tuple.
17971 *
17972 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute
17973 * indicates the source IPv4 address (in network byte order).
17974 *
17975 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute
17976 * indicates the destination IPv4 address (in network byte order).
17977 *
17978 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY
17979 * attribute of 16 bytes length that indicates the source IPv6 address
17980 * (in network byte order) for a flow.
17981 *
17982 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY
17983 * attribute of 16 bytes length that indicates the destination IPv6 address
17984 * (in network byte order) for a flow.
17985 *
17986 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates
17987 * the TCP/UDP source port.
17988 *
17989 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates
17990 * the TCP/UDP destination port.
17991 *
17992 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates
17993 * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto.
17994 *
17995 * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR
17996 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR.
17997 * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR
17998 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR.
17999 */
18000enum qca_wlan_vendor_attr_flow_tuple {
18001 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0,
18002 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1,
18003 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2,
18004 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3,
18005 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4,
18006 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5,
18007 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6,
18008 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7,
18009
18010 /* keep last */
18011 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST,
18012 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX =
18013 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1,
18014};
18015
18016/**
18017 * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify
18018 * TX/RX sample for one window.
18019 *
18020 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates
18021 * the total number of uplink/downlink bytes within the sampling window.
18022 *
18023 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates
18024 * the total number of packets (uplink/downlink) within the sampling window.
18025 *
18026 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute
18027 * indicates the minimum uplink/downlink packet size (in bytes) during the
18028 * sampling window.
18029 *
18030 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute
18031 * indicates the maximum uplink/downlink packet size (in bytes) during the
18032 * sampling window.
18033 *
18034 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute
18035 * indicates the minimum uplink/downlink packet IAT (inter-arrival time)
18036 * in microseconds, during the sampling window.
18037 *
18038 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute
18039 * indicates the maximum uplink/downlink packet IAT (inter-arrival time)
18040 * in microseconds, during the sampling window.
18041 *
18042 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute
18043 * indicates the sum of all the values of uplink/downlink packet IAT
18044 * (inter-arrival time) in microseconds, during the sampling window.
18045 * This attribute is used to calculate the mean packet (inter-arrival time)
18046 * during the sampling window.
18047 */
18048enum qca_wlan_vendor_attr_txrx_stats {
18049 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0,
18050 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1,
18051 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2,
18052 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3,
18053 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4,
18054 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5,
18055 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6,
18056 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7,
18057
18058 /* keep last */
18059 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST,
18060 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX =
18061 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1,
18062};
18063
18064/**
18065 * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes
18066 * to specify the TX/RX statistics collected in a sampling window.
18067 *
18068 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32
18069 * attribute indicates window size for packet TX/RX sampling (in milliseconds).
18070 *
18071 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested
18072 * attribute containing the uplink TX/RX packet statistics for a flow. Uses the
18073 * enum qca_wlan_vendor_attr_txrx_stats.
18074 *
18075 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested
18076 * attribute containing the downlink TX/RX packet statistics for a flow. Uses
18077 * the enum qca_wlan_vendor_attr_txrx_stats.
18078 */
18079enum qca_wlan_vendor_attr_txrx_samples_windows {
18080 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0,
18081 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1,
18082 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2,
18083 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3,
18084
18085 /* keep last */
18086 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST,
18087 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX =
18088 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1,
18089};
18090
18091/**
18092 * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify
18093 * a TX/RX sample.
18094 *
18095 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested
18096 * attributes that indicates the TX/RX samples in multiple overlapping windows.
18097 * This uses the attributes defined by
18098 * enum qca_wlan_vendor_attr_txrx_samples_windows.
18099 */
18100enum qca_wlan_vendor_attr_txrx_samples {
18101 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0,
18102 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1,
18103
18104 /* keep last */
18105 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST,
18106 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX =
18107 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1,
18108};
18109
18110/**
18111 * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify
18112 * burst statistics.
18113 *
18114 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute
18115 * indicates minimum burst duration (in milliseconds) during the sampling
18116 * window.
18117 *
18118 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute
18119 * indicates maximum burst duration (in milliseconds) during the sampling
18120 * window.
18121 *
18122 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute
18123 * indicates the sum of all the values of burst duration (in milliseconds)
18124 * during the sampling window. This attribute is used to calculate the mean
18125 * burst duration (in milliseconds) during the sampling window.
18126 *
18127 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute
18128 * indicates minimum burst size (in bytes) during the sampling window.
18129 *
18130 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute
18131 * indicates maximum burst size (in bytes) during the sampling window.
18132 *
18133 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute
18134 * indicates the sum of all the values of burst size (in bytes) during the
18135 * sampling window. This attribute is used to calculate the mean burst size
18136 * (in bytes) during the sampling window.
18137 *
18138 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute
18139 * indicates the number of bursts during the sampling window.
18140 */
18141enum qca_wlan_vendor_attr_burst_stats {
18142 QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0,
18143 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1,
18144 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2,
18145 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3,
18146 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4,
18147 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5,
18148 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6,
18149 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7,
18150
18151 /* keep last */
18152 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST,
18153 QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX =
18154 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1,
18155};
18156
18157/**
18158 * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify
18159 * a burst sample.
18160 *
18161 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute
18162 * indicates the uplink and downlink packet statistics collected in a
18163 * sampling window, containing attributes defined in
18164 * enum qca_wlan_vendor_attr_txrx_samples_windows.
18165 *
18166 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute
18167 * indicates the uplink burst stats, containing attributes defined in
18168 * enum qca_wlan_vendor_attr_burst_stats.
18169 *
18170 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute
18171 * indicates the downlink burst stats, containing attributes defined in
18172 * enum qca_wlan_vendor_attr_burst_stats.
18173 */
18174enum qca_wlan_vendor_attr_burst_sample {
18175 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0,
18176 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1,
18177 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2,
18178 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3,
18179
18180 /* keep last */
18181 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST,
18182 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX =
18183 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1,
18184};
18185
18186/**
18187 * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by
18188 * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and
18189 * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS.
18190 *
18191 * Presence of one of the attributes
18192 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and
18193 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory.
18194 *
18195 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute
18196 * containing the flow tuple of the flow for which the statistics are being
18197 * reported.
18198 * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple.
18199 *
18200 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute
18201 * indicates the traffic type classified for this flow tuple. Uses the
18202 * enum qca_traffic_type values.
18203 * This attribute is mandatory for the command
18204 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT.
18205 *
18206 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute
18207 * containing nested array of TX/RX samples defined in
18208 * enum qca_wlan_vendor_attr_txrx_samples.
18209 *
18210 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute
18211 * indicates the packet burst statistics for a flow. Uses attributes defined by
18212 * enum qca_wlan_vendor_attr_burst_sample.
18213 */
18214enum qca_wlan_vendor_attr_flow_stats {
18215 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0,
18216 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1,
18217 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2,
18218 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3,
18219 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4,
18220
18221 /* keep last */
18222 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST,
18223 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX =
18224 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1,
18225};
18226
18227/**
18228 * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to
18229 * specify the flow classification result. This enum is used by
18230 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT.
18231 *
18232 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested
18233 * attribute containing attributes defined by
18234 * enum qca_wlan_vendor_attr_flow_tuple.
18235 *
18236 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8
18237 * attribute indicates the traffic type learned for this flow tuple. Uses the
18238 * enum qca_traffic_type values.
18239 */
18240enum qca_wlan_vendor_attr_flow_classify_result {
18241 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0,
18242 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1,
18243 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2,
18244
18245 /* keep last */
18246 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST,
18247 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX =
18248 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1,
18249};
18250
18251/**
18252 * enum qca_async_stats_sub_module - The statistics type used in async
18253 * statistics policy.
18254 * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE.
18255 *
18256 * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics
18257 *
18258 * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics
18259 *
18260 * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics
18261 */
18262enum qca_async_stats_type {
18263 QCA_ASYNC_STATS_TYPE_POWERSAVE = 0,
18264 QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1,
18265 QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2,
18266};
18267
18268/**
18269 * enum qca_async_stats_action - ASYNC statistics action. Used by
18270 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION.
18271 *
18272 * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics
18273 * collection.
18274 * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics
18275 * collection.
18276 */
18277enum qca_async_stats_action {
18278 QCA_ASYNC_STATS_ACTION_START = 0,
18279 QCA_ASYNC_STATS_ACTION_STOP = 1,
18280};
18281
18282/**
18283 * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to
18284 * specify the ASYNC statistics policy. This enum is used by
18285 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY.
18286 *
18287 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8
18288 * attribute indicates the statistics type for which the async statistics policy
18289 * needs to be applied by the driver. Uses the enum qca_async_stats_type values.
18290 *
18291 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute
18292 * indicates the action as part of this policy.
18293 * Uses the enum qca_async_stats_action values.
18294 *
18295 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32
18296 * attribute indicates the periodicity (in milliseconds) for the statistics to
18297 * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE.
18298 */
18299enum qca_wlan_vendor_attr_async_stats_policy {
18300 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0,
18301 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1,
18302 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2,
18303 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3,
18304
18305 /* keep last */
18306 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST,
18307 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX =
18308 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1,
18309};
18310
18311/**
18312 * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by
18313 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT.
18314 *
18315 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This
18316 * represents the number of spatial streams.
18317 *
18318 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This
18319 * represents the number of MSDU packets transmitted with the number of spatial
18320 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
18321 *
18322 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This
18323 * represents the number of MSDU packets received with the number of spatial
18324 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
18325 */
18326enum qca_wlan_vendor_attr_nss_pkt {
18327 QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0,
18328 QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1,
18329 QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2,
18330 QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3,
18331
18332 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST,
18333 QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX =
18334 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1,
18335};
18336
18337/**
18338 * enum qca_wlan_intf_offload_type - Definition of available values for
18339 * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for
18340 * packets handled through a network device.
18341 *
18342 * There are three offload paths possible for handling packet forwarding between
18343 * Ethernet and Wi-Fi network, and which path to use can be configured on a per
18344 * netdevice level based on use case. Userspace can choose different options
18345 * based on use cases like performance requirements, traffic control features
18346 * and limitations provided in each option.
18347 *
18348 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured.
18349 * Packets are processed through the Linux kernel networking stack.
18350 *
18351 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through
18352 * the shortcut forwarding engine (SFE) to bypass the Linux networking stack
18353 * for improved throughput performance. This option is applicable for AP, STA,
18354 * and Mesh mode and available for all radio designs. From the performance
18355 * aspect, this option consumes more CPU compared to the other two options.
18356 * Linux traffic control can be further applied with this option to have more
18357 * control on the traffic flows.
18358 *
18359 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed
18360 * through both hardware and software in this case. Packet classification is
18361 * done by the hardware and then the packets are delivered to software along
18362 * with classification results as meta data. Software can choose to do more
18363 * classification/QoS based on use cases. This is applicable for AP, STA, and
18364 * Mesh modes and this is available for all radio designs. From the performance
18365 * aspect, this option consumes relatively less CPU compared to the SFE option
18366 * above. Linux traffic control rules cannot be applied with this option.
18367 *
18368 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through
18369 * special hardware (Direct Switch) rings which can directly forward the packets
18370 * between Ethernet hardware and Wi-Fi hardware with very little software
18371 * involvement. This is applicable only for AP and STA modes; not applicable
18372 * for Mesh mode. From the performance aspect, this option consumes very much
18373 * less CPU compared to the other options. Linux traffic control rules cannot be
18374 * applied when this option is used. This option is applicable only for
18375 * specific radio designs. When this option is not available, the default option
18376 * (SFE) would be configured.
18377 */
18378enum qca_wlan_intf_offload_type {
18379 QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0,
18380 QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1,
18381 QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2,
18382 QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3,
18383};
18384
18385/**
18386 * enum qca_wlan_vendor_attr_usd_op_type: Attribute values for
18387 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE to the vendor subcmd
18388 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a mandatory u8 attribute which
18389 * represents the USD command type.
18390 *
18391 * @QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH: Indicates USD tear down of all active
18392 * publish and subscribe sessions.
18393 *
18394 * @QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH: Indicates USD solicited publish
18395 * operation that enables to offer a service for other devices based on
18396 * given parameters.
18397 *
18398 * @QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE: Indicates USD active subscribe
18399 * operation that requests for a given service with given parameters from
18400 * other devices that offer the service.
18401 *
18402 * @QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH: Indicates update of an instance
18403 * of the publish function of given publish id.
18404 *
18405 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH: Indicates cancellation of an
18406 * instance of the publish function.
18407 *
18408 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE: Indicates cancellation of an
18409 * instance of the subscribe function.
18410 */
18411enum qca_wlan_vendor_attr_an_usd_op_type {
18412 QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH = 0,
18413 QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH = 1,
18414 QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE = 2,
18415 QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH = 3,
18416 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH = 4,
18417 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE = 5,
18418};
18419
18420/**
18421 * enum qca_wlan_vendor_attr_usd_service_protocol_type: Attribute values for
18422 * %QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE to the vendor subcmd
18423 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a u8 attribute which represents the
18424 * USD service protocol type for service specific information.
18425 *
18426 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR: Indicates SSI info is
18427 * of type Bonjour
18428 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC: Indicates SSI info is
18429 * of type generic
18430 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER: Indicates SSI info
18431 * is of type CSA/Matter
18432 */
18433enum qca_wlan_vendor_attr_usd_service_protocol_type {
18434 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR = 1,
18435 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC = 2,
18436 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER = 3,
18437};
18438
18439/**
18440 * enum qca_wlan_vendor_attr_usd_chan_config - Attributes used inside nested
18441 * attribute %QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG.
18442 *
18443 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ: Required
18444 * u32 attribute containing the default channel frequency (MHz).
18445 *
18446 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST: Optional array of channel
18447 * frequencies in MHz (u32) to publish or subscribe.
18448 */
18449enum qca_wlan_vendor_attr_usd_chan_config {
18450 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_INVALID = 0,
18451 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ = 1,
18452 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST = 2,
18453
18454 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST,
18455 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_MAX =
18456 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST - 1,
18457};
18458
18459/**
18460 * enum qca_wlan_vendor_attr_usd_status
18461 *
18462 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS: USD request success status.
18463 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED: USD request failed status.
18464 */
18465enum qca_wlan_vendor_attr_usd_status {
18466 QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS,
18467 QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED,
18468};
18469
18470/* enum qca_wlan_vendor_attr_usd: Attributes used by vendor command
18471 * %QCA_NL80211_VENDOR_SUBCMD_USD.
18472 *
18473 * @QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR: 6-byte source MAC address
18474 * Mandatory attribute used with type
18475 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18476 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18477 *
18478 * @QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE: Required u8 attribute.
18479 * It indicates the type of the USD command. It uses values defined in enum
18480 * qca_wlan_vendor_attr_usd_op_type.
18481 *
18482 * @QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID: Required u8 attribute.
18483 * It contains the publisher/subscribe id that is specific to the
18484 * publish/subscribe instance.
18485 *
18486 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID: Required 6-byte attribute.
18487 * It contains the service id that is specific to the service being
18488 * published/subscribed.
18489 *
18490 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE: u8 attribute that indicates
18491 * the service protocol type of service specific info. It uses values
18492 * defined in enum qca_wlan_vendor_attr_usd_service_protocol_type. It is
18493 * applicable when %QCA_WLAN_VENDOR_ATTR_USD_SSI is present.
18494 *
18495 * @QCA_WLAN_VENDOR_ATTR_USD_SSI: u8 array containing service specific
18496 * information that has to be conveyed in publish/subscribe message.
18497 * Optional attribute used with type
18498 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH,
18499 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE, and
18500 * %QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH.
18501 *
18502 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG: Nested attribute containing USD
18503 * channel configuration parameters.
18504 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18505 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18506 * See enum qca_wlan_vendor_attr_usd_chan_config for nested attributes.
18507 *
18508 * @QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER: u8 array containing a USD
18509 * element container buffer that has to be conveyed in publish/subscribe
18510 * message.
18511 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18512 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18513 *
18514 * @QCA_WLAN_VENDOR_ATTR_USD_TTL: u16 attribute. Indicates the timeout
18515 * for each request in seconds. Timeout value 0 represents single time
18516 * operation.
18517 *
18518 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS: u8 attribute. Status received in event
18519 * indicating whether the underlying driver/firmware has started the USD
18520 * operation as indicated by attributes
18521 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE and
18522 * %QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID.
18523 * enum qca_wlan_vendor_attr_usd_status indicates status values.
18524 */
18525enum qca_wlan_vendor_attr_usd {
18526 QCA_WLAN_VENDOR_ATTR_USD_INVALID = 0,
18527 QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR = 1,
18528 QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE = 2,
18529 QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID = 3,
18530 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID = 4,
18531 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE = 5,
18532 QCA_WLAN_VENDOR_ATTR_USD_SSI = 6,
18533 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG = 7,
18534 QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER = 8,
18535 QCA_WLAN_VENDOR_ATTR_USD_TTL = 9,
18536 QCA_WLAN_VENDOR_ATTR_USD_STATUS = 10,
18537
18538 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST,
18539 QCA_WLAN_VENDOR_ATTR_USD_MAX =
18540 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST - 1,
18541};
18542
Sunil Ravic0f5d412024-09-11 22:12:49 +000018543/**
18544 * enum qca_wlan_audio_transport_switch_type - Represents the possible transport
18545 * switch types.
18546 *
18547 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
18548 * via non-WLAN transport (e.g., Bluetooth).
18549 *
18550 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
18551 * WLAN transport.
18552 */
18553enum qca_wlan_audio_transport_switch_type {
18554 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
18555 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
18556};
18557
18558/**
18559 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
18560 * transport switch request.
18561 *
18562 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
18563 * has been rejected. For example, when transport switch is requested from WLAN
18564 * to non-WLAN transport, user space modules and peers would evaluate the switch
18565 * request and may not be ready for switch and hence switch to non-WLAN
18566 * transport gets rejected.
18567 *
18568 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch
18569 * transport has been completed. This is sent only in the command path. For
18570 * example, when the driver had requested for audio transport switch and
18571 * userspace modules as well as peers are ready for the switch, userspace module
18572 * switches the transport and sends the subcommand with status completed to the
18573 * driver.
18574 */
18575enum qca_wlan_audio_transport_switch_status {
18576 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
18577 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
18578};
18579
18580/**
18581 * enum qca_wlan_audio_transport_switch_reason - Represents the reason of audio
18582 * transport switch request.
18583 *
18584 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING: Requester transport is
18585 * terminating. After this indication, requester module may not be available to
18586 * process further request on its transport. For example, to handle a high
18587 * priority concurrent interface, WLAN transport needs to terminate and hence
18588 * indicates switch to a non-WLAN transport with reason terminating. User space
18589 * modules switch to non-WLAN immediately without waiting for further
18590 * confirmation.
18591 */
18592enum qca_wlan_audio_transport_switch_reason {
18593 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING = 0,
18594};
18595
18596/**
18597 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
18598 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
18599 *
18600 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
18601 * the transport switch type from one of the values in enum
18602 * qca_wlan_audio_transport_switch_type. This is mandatory attribute in both
18603 * command and event path. This attribute is included in both requests and
18604 * responses.
18605 *
18606 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
18607 * the transport switch status from one of the values in enum
18608 * qca_wlan_audio_transport_switch_status. This is optional attribute and used
18609 * in both command and event path. This attribute must not be included in
18610 * requests.
18611 *
18612 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON: u8 attribute. Indicates
18613 * the transport switch reason from one of the values in enum
18614 * qca_wlan_audio_transport_switch_reason. This is optional attribute and used
18615 * in both command and event path.
18616 */
18617enum qca_wlan_vendor_attr_audio_transport_switch {
18618 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
18619 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
18620 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
18621 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON = 3,
18622
18623 /* keep last */
18624 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
18625 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
18626 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
18627};
18628
18629
18630/**
18631 * enum qca_wlan_connect_ext_features - Feature flags for
18632 * %QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES
18633 *
18634 * @QCA_CONNECT_EXT_FEATURE_RSNO: Flag attribute. This indicates supplicant
18635 * support for RSN overriding. The driver shall enable RSN overriding in the
18636 * (re)association attempts only if this flag is indicated. This functionality
18637 * is available only when the driver indicates support for
18638 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA.
18639 *
18640 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits.
18641 */
18642enum qca_wlan_connect_ext_features {
18643 QCA_CONNECT_EXT_FEATURE_RSNO = 0,
18644 NUM_QCA_CONNECT_EXT_FEATURES /* keep last */
18645};
18646
18647/* enum qca_wlan_vendor_attr_connect_ext: Attributes used by vendor command
18648 * %QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT.
18649 *
18650 * @QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES: Feature flags contained in a byte
18651 * array. The feature flags are identified by their bit index (see &enum
18652 * qca_wlan_connect_ext_features) with the first byte being the least
18653 * significant one and the last one being the most significant one.
18654 */
18655enum qca_wlan_vendor_attr_connect_ext {
18656 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_INVALID = 0,
18657 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES = 1,
18658
18659 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST,
18660 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_MAX =
18661 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST - 1,
18662};
18663
18664/**
18665 * enum qca_wlan_vendor_p2p_mode - Defines the values used with
18666 * %QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG.
18667 *
18668 * @QCA_P2P_MODE_WFD_R1: Wi-Fi Direct R1 only.
18669 * @QCA_P2P_MODE_WFD_R2: Wi-Fi Direct R2 only.
18670 * @QCA_P2P_MODE_WFD_PCC: P2P Connection Compatibility Mode which supports both
18671 * Wi-Fi Direct R1 and R2.
18672 */
18673enum qca_wlan_vendor_p2p_mode {
18674 QCA_P2P_MODE_WFD_R1 = 0,
18675 QCA_P2P_MODE_WFD_R2 = 1,
18676 QCA_P2P_MODE_WFD_PCC = 2,
18677};
18678
18679/* enum qca_wlan_vendor_attr_set_p2p_mode: Attributes used by vendor command
18680 * %QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE.
18681 *
18682 * @QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG: u8 attribute. Sets the P2P device
18683 * mode. The values used are defined in enum qca_wlan_vendor_p2p_mode.
18684 * This configuration is valid until the interface is brought up next time after
18685 * this configuration and the driver shall use this configuration only when the
18686 * interface is brought up in NL80211_IFTYPE_P2P_GO mode.
18687 * When this parameter has not been set, the interface is brought up with
18688 * Wi-Fi Direct R1 only configuration by default.
18689 */
18690enum qca_wlan_vendor_attr_set_p2p_mode {
18691 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_INVALID = 0,
18692 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG = 1,
18693
18694 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST,
18695 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_MAX =
18696 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST - 1,
18697};
18698
18699/**
18700 * enum qca_wlan_vendor_attr_chan_usage_req_chan_list: Attributes used inside
18701 * nested attributes %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST.
18702 *
18703 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN: u8 attribute. Indicates
18704 * the channel number of the channel list entry.
18705 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS: u8 attribute.
18706 * Indicates the operating class of the channel list entry.
18707 */
18708enum qca_wlan_vendor_attr_chan_usage_req_chan_list {
18709 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_INVALID = 0,
18710 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN = 1,
18711 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS = 2,
18712
18713 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST,
18714 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_MAX =
18715 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST - 1,
18716};
18717
18718/**
18719 * enum qca_wlan_vendor_attr_chan_usage_req_mode: Defines the values used
18720 * with %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE.
18721 *
18722 * @QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION: Mode set by STA to indicate
18723 * the AP about its unavailability during a peer-to-peer TWT agreement.
18724 *
18725 * @QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ: Mode set by the STA that is in a
18726 * channel-usage-aidable BSS to request a channel switch. Other Channel Usage
18727 * elements are not required. Optional HT/VHT/HE Capabilities are present.
18728 */
18729enum qca_wlan_vendor_attr_chan_usage_req_mode {
18730 QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION = 3,
18731 QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ = 4,
18732};
18733
18734/**
18735 * enum qca_wlan_vendor_attr_chan_usage_req: Attributes used by vendor command
18736 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ.
18737 *
18738 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE: Required u8 attribute. Identifies
18739 * the usage of the channel list entry provided in the channel usage request.
18740 * Channel switch request and unavailability channel usage modes are
18741 * configured on a STA/P2P Client.
18742 * See enum qca_wlan_vendor_attr_chan_usage_req_mode for attribute values.
18743 * See IEEE P802.11-REVme/D7.0, 9.4.2.84, Table 9-268 for more information.
18744 *
18745 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST: Required array of nested
18746 * attributes containing channel usage parameters.
18747 * Required when channel usage mode is Channel-usage-aidable BSS channel
18748 * switch request.
18749 * See enum qca_wlan_vendor_attr_req_chan_list for nested attributes.
18750 *
18751 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS: Nested
18752 * attribute representing the parameters configured for unavailability
18753 * indication. Required when channel usage mode is unavailability indication.
18754 *
18755 * Below attributes from enum qca_wlan_vendor_attr_twt_setup are used inside
18756 * this nested attribute:
18757 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE,
18758 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE,
18759 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER,
18760 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE,
18761 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP,
18762 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION,
18763 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION,
18764 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
18765 */
18766enum qca_wlan_vendor_attr_chan_usage_req {
18767 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_INVALID = 0,
18768 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE = 1,
18769 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST = 2,
18770 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS = 3,
18771
18772 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST,
18773 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MAX =
18774 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST - 1,
18775};
18776
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000018777/**
18778 * enum qca_wlan_fw_scan_bss_flags - Flags for
18779 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS
18780 *
18781 * @QCA_WLAN_FW_SCAN_BSS_HT_OPS: This indicates HT Operation element
18782 * (IEEE Std 802.11-2020, 9.4.2.56) is present in the Beacon or Probe Response
18783 * frame of the BSS.
18784 *
18785 * @QCA_WLAN_FW_SCAN_BSS_VHT_OPS: This indicates VHT Operation element
18786 * (IEEE Std 802.11-2020, 9.4.2.158) is present in the Beacon or Probe Response
18787 * frame of the BSS.
18788 *
18789 * @QCA_WLAN_FW_SCAN_BSS_HE_OPS: This indicates HE Operation element
18790 * (IEEE Std 802.11ax-2021, 9.4.2.249) is present in the Beacon or Probe
18791 * Response frame of the BSS.
18792 *
18793 * @QCA_WLAN_FW_SCAN_BSS_EHT_OPS: This indicates EHT Operation element
18794 * (IEEE P802.11be/D7.0, 9.4.2.321) is present in the Beacon or Probe Response
18795 * frame of the BSS.
18796 *
18797 * @QCA_WLAN_FW_SCAN_BSS_FTM_RESPONDER: This indicates Fine Timing Measurement
18798 * Responder bit is set to 1 in the Extended Capabilities field of the Extended
18799 * Capabilities element (IEEE Std 802.11-2020, 9.4.2.26) in the Beacon or Probe
18800 * Response frame of the BSS.
18801 *
18802 * @NUM_QCA_WLAN_FW_SCAN_BSS_FLAGS: Number of assigned feature bits.
18803 */
18804enum qca_wlan_fw_scan_bss_flags {
18805 QCA_WLAN_FW_SCAN_BSS_HT_OPS = 0,
18806 QCA_WLAN_FW_SCAN_BSS_VHT_OPS = 1,
18807 QCA_WLAN_FW_SCAN_BSS_HE_OPS = 2,
18808 QCA_WLAN_FW_SCAN_BSS_EHT_OPS = 3,
18809 QCA_WLAN_FW_SCAN_BSS_FTM_RESPONDER = 4,
18810
18811 NUM_QCA_WLAN_FW_SCAN_BSS_FLAGS /* keep last */
18812};
18813
18814/* enum qca_wlan_vendor_attr_fw_scan_bss: Attributes used inside
18815 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST nested attribute.
18816 *
18817 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MS_AGO: Required (u32). Indicates how many
18818 * milliseconds ago from %QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP this BSS
18819 * was last scanned (i.e., Beacon or Probe Response frame received).
18820 *
18821 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_BSSID: Required (6-byte MAC address). BSSID
18822 * of the BSS.
18823 *
18824 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_SSID: Required (binary attribute,
18825 * 0..32 octets). SSID of the BSS.
18826 *
18827 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_RSSI: Required (s8). RSSI of the last
18828 * received Beacon or Probe Response frame.
18829 *
18830 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CAPABILITY: Required (CPU byte order, u16).
18831 * The Capability Information field from the last received Beacon or Probe
18832 * Response frame.
18833 *
18834 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS: BSS capability flags contained in a
18835 * byte array. The flags are identified by their bit index (see &enum
18836 * qca_wlan_fw_scan_bss_flags) with the first byte being the least significant
18837 * one and the last one being the most significant one. This information will be
18838 * populated from the last received Beacon or Probe Response frame. This is a
18839 * mandatory attribute.
18840 *
18841 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_PRIMARY_FREQ: Required (u32). Indicates
18842 * primary 20 MHz channel center frequency in MHz of the BSS.
18843 *
18844 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH: Required (u8). Indicates
18845 * channel width of the BSS. This uses values defined in
18846 * enum nl80211_chan_width.
18847 *
18848 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ1: Required (u32). Indicates the
18849 * center frequency (MHz) of the first segment.
18850 *
18851 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ2: Optional (u32). Indicates the
18852 * center frequency (MHz) of the second segment. Used only for
18853 * %NL80211_CHAN_WIDTH_80P80 value in
18854 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH.
18855 */
18856enum qca_wlan_vendor_attr_fw_scan_bss {
18857 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_INVALID = 0,
18858 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MS_AGO = 1,
18859 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_BSSID = 2,
18860 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_SSID = 3,
18861 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_RSSI = 4,
18862 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CAPABILITY = 5,
18863 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS = 6,
18864 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_PRIMARY_FREQ = 7,
18865 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH = 8,
18866 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ1 = 9,
18867 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ2 = 10,
18868
18869 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_AFTER_LAST,
18870 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MAX =
18871 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_AFTER_LAST - 1,
18872};
18873
18874/* enum qca_wlan_vendor_attr_fw_scan_report: Attributes used by vendor command
18875 * %QCA_NL80211_VENDOR_SUBCMD_GET_FW_SCAN_REPORT.
18876 *
18877 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP: 64-bit unsigned value to
18878 * indicate the timestamp when this report is generated, timestamp in
18879 * microseconds from system boot. A mandatory attribute.
18880 *
18881 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_FREQ_LIST: Nested attribute of u32
18882 * attributes. This indicates the list of frequencies that were scanned. This is
18883 * an optional attribute. If this is not specified, all frequencies allowed in
18884 * the current regulatory domain were scanned.
18885 *
18886 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST: Nested attribute.
18887 * This indicates information of the scanned BSSs by the firmware. This is an
18888 * optional attribute.
18889 *
18890 * The attributes defined in enum qca_wlan_vendor_attr_fw_scan_bss are nested
18891 * in this attribute.
18892 */
18893enum qca_wlan_vendor_attr_fw_scan_report {
18894 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_INVALID = 0,
18895 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP = 1,
18896 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_FREQ_LIST = 2,
18897 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST = 3,
18898
18899 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_AFTER_LAST,
18900 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_MAX =
18901 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_AFTER_LAST - 1,
18902};
18903
18904/*
18905 * enum qca_wlan_idle_shutdown_status: Represents idle shutdown status.
18906 *
18907 * @QCA_WLAN_IDLE_SHUTDOWN_STARTED: Indicates idle shutdown is started in the
18908 * host driver.
18909 * @QCA_WLAN_IDLE_SHUTDOWN_COMPLETED: Indicates idle shutdown is completed in
18910 * the host driver.
18911 */
18912enum qca_wlan_idle_shutdown_status {
18913 QCA_WLAN_IDLE_SHUTDOWN_STARTED = 0,
18914 QCA_WLAN_IDLE_SHUTDOWN_COMPLETED = 1,
18915};
18916
18917/*
18918 * enum qca_wlan_vendor_attr_idle_shutdown: Attributes used by vendor event
18919 * %QCA_NL80211_VENDOR_SUBCMD_IDLE_SHUTDOWN.
18920 *
18921 * @QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_STATUS: Required u8 attribute. Indicates
18922 * the status of the idle shutdown from one of the values in enum
18923 * qca_wlan_idle_shutdown_status.
18924 */
18925enum qca_wlan_vendor_attr_idle_shutdown {
18926 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_INVALID = 0,
18927 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_STATUS = 1,
18928
18929 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_AFTER_LAST,
18930 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_MAX =
18931 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_AFTER_LAST - 1,
18932};
18933
Sunil Ravi876a49b2025-02-03 19:18:32 +000018934/**
18935 * enum qca_wlan_vendor_attr_pri_link_migrate: Attributes used by the vendor
18936 * subcommand %QCA_NL80211_VENDOR_SUBCMD_PRI_LINK_MIGRATE.
18937 *
18938 * @QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_MLD_MAC_ADDR: 6 byte MAC address. When
18939 * specified, indicates that primary link migration will occur only for
18940 * the ML client with the given MLD MAC address.
18941 * @QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_CURRENT_PRI_LINK_ID: Optional u8
18942 * attribute. When specified, all ML clients having their current primary
18943 * link as specified will be considered for migration.
18944 * @QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_NEW_PRI_LINK_ID: Optional u8 attribute.
18945 * Indicates the new primary link to which the selected ML clients
18946 * should be migrated to. If not provided, the driver will select a
18947 * suitable primary link on its own.
18948 */
18949enum qca_wlan_vendor_attr_pri_link_migrate {
18950 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_INVALID = 0,
18951 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_MLD_MAC_ADDR = 1,
18952 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_CURRENT_PRI_LINK_ID = 2,
18953 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_NEW_PRI_LINK_ID = 3,
18954
18955 /* keep this last */
18956 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_AFTER_LAST,
18957 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_MAX =
18958 QCA_WLAN_VENDOR_ATTR_PRI_LINK_MIGR_AFTER_LAST - 1,
18959};
18960
18961/**
18962 * enum qca_wlan_vendor_btm_req_resp_type: Represents response types to follow
18963 * upon receiving BTM request from AP.
18964 *
18965 * @QCA_WLAN_BTM_REQ_RESP_DEFAULT: Reset to default behavior.
18966 * @QCA_WLAN_BTM_REQ_RESP_RECONFIG_FRAME: Send link reconfiguration request
18967 * frames with specified info.
18968 * @QCA_WLAN_BTM_REQ_RESP_TTLM_FRAME: Send TTLM request frame.
18969 * @QCA_WLAN_BTM_REQ_RESP_REASSOC_FRAME: Send Reassociation Request frame.
18970 */
18971enum qca_wlan_vendor_btm_req_resp_type {
18972 QCA_WLAN_BTM_REQ_RESP_DEFAULT = 0,
18973 QCA_WLAN_BTM_REQ_RESP_RECONFIG_FRAME = 1,
18974 QCA_WLAN_BTM_REQ_RESP_TTLM_FRAME = 2,
18975 QCA_WLAN_BTM_REQ_RESP_REASSOC_FRAME = 3,
18976};
18977
18978/**
18979 * enum qca_wlan_vendor_attr_reconfig_frame_info - Attribute used by
18980 * %QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_RECONFIG_FRAME_INFO.
18981 *
18982 * @QCA_WLAN_VENDOR_ATTR_RECONFIG_ADD_LINKS_BITMASK: u16 attribute. Bitmask of
18983 * link IDs to be added.
18984 *
18985 * @QCA_WLAN_VENDOR_ATTR_RECONFIG_DELETE_LINKS_BITMASK: u16 attribute bitmask of
18986 * link IDs to be removed.
18987 */
18988enum qca_wlan_vendor_attr_reconfig_frame_info {
18989 QCA_WLAN_VENDOR_ATTR_RECONFIG_INVALID = 0,
18990 QCA_WLAN_VENDOR_ATTR_RECONFIG_ADD_LINKS_BITMASK = 1,
18991 QCA_WLAN_VENDOR_ATTR_RECONFIG_DELETE_LINKS_BITMASK = 2,
18992
18993 QCA_WLAN_VENDOR_ATTR_RECONFIG_AFTER_LAST,
18994 QCA_WLAN_VENDOR_ATTR_RECONFIG_MAX =
18995 QCA_WLAN_VENDOR_ATTR_RECONFIG_AFTER_LAST - 1
18996};
18997
18998/**
18999 * enum qca_wlan_vendor_attr_btm_req_resp - Attribute used by
19000 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BTM_REQ_RESP.
19001 *
19002 * @QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TYPE: u8 attribute. Indicates type of
19003 * response to send. Possible values for this attribute are defined in
19004 * enum qca_wlan_vendor_btm_req_resp_type. This is a mandatory attribute.
19005 *
19006 * @QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_RECONFIG_FRAME_INFO: Array of nested
19007 * attributes containing information about one or more setup link
19008 * reconfiguration request frames, each set represents one link reconfiguration
19009 * frame information. The driver shall send a separate link reconfiguration
19010 * frame for each nested attribute set. It takes attributes as defined in enum
19011 * qca_wlan_vendor_attr_reconfig_frame_info. This attribute must be present
19012 * when %QCA_WLAN_BTM_REQ_RESP_RECONFIG_FRAME specified in
19013 * %QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TYPE attribute.
19014 *
19015 * @QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TTLM_MAP: TID to Link Mapping to
19016 * be used in TTLM request frame. This nested attribute with
19017 * %NL80211_ATTR_MLO_TTLM_DLINK and %NL80211_ATTR_MLO_TTLM_ULINK is used to
19018 * specify the TID to Link mapping for downlink/uplink traffic. This attribute
19019 * must be present when %QCA_WLAN_BTM_REQ_RESP_TTLM_FRAME specified in
19020 * %QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TYPE attribute.
19021 */
19022enum qca_wlan_vendor_attr_btm_req_resp {
19023 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_INVALID = 0,
19024 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TYPE = 1,
19025 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_RECONFIG_FRAME_INFO = 2,
19026 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_TTLM_MAP = 3,
19027
19028 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_AFTER_LAST,
19029 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_MAX =
19030 QCA_WLAN_VENDOR_ATTR_BTM_REQ_RESP_AFTER_LAST - 1
19031};
19032
19033/**
19034 * enum qca_wlan_vendor_attr_periodic_probe_rsp_cfg: Attributes used
19035 * by vendor subcmd QCA_NL80211_VENDOR_SUBCMD_PERIODIC_PROBE_RSP_CFG
19036 *
19037 * @QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_PEER_MAC_ADDR: Connected peer
19038 * MAC address to which Probe Response frames are to be sent.
19039 * Multicast/Broadcast addresses are not supported.
19040 *
19041 * @QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_PERIOD: 32-bit unsigned value.
19042 * This attribute specifies the interval (in microseconds) in which directed
19043 * Probe Response frames are sent periodically to the peer as specified in
19044 * attribute QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_PEER_MAC_ADDR. When the peer
19045 *is in power save, sending of the frames might be delayed until the device
19046 * comes out of power save. Attribute value can be in the range of minimum value
19047 * of 50000 and maximum value of 1500000.
19048 *
19049 * @QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_COUNT: 8-bit unsigned value.
19050 * Specifies number of directed Probe Responses frames that can be sent as per
19051 * interval defined in QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_PERIOD. When
19052 * attribute value is 255, directed Probe Response frames are sent continuously
19053 * until this attribute is sent as 0 in the command to disable period
19054 * transmission. When the attribute value is 1, one directed Probe Response
19055 * frame will be sent and the attribute
19056 * QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_PERIOD will not be considered.
19057 */
19058enum qca_wlan_vendor_attr_periodic_probe_rsp_cfg {
19059 QCA_WLAN_VENDOR_ATTR_PROBE_RSP_CFG_INVALID = 0,
19060 QCA_WLAN_VENDOR_ATTR_PROBE_RSP_CFG_PEER_MAC_ADDR = 1,
19061 QCA_WLAN_VENDOR_ATTR_PROBE_RSP_CFG_PERIOD = 2,
19062 QCA_WLAN_VENDOR_ATTR_PROBE_RSP_CFG_COUNT = 3,
19063
19064 QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_AFTER_LAST,
19065 QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_MAX =
19066 QCA_WLAN_VENDOR_ATTR_PROBE_RESP_CFG_AFTER_LAST - 1,
19067};
19068
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080019069#endif /* QCA_VENDOR_H */