blob: 6c80589c0481d723effa3cb56f937897286c617d [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.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001328 */
1329enum qca_nl80211_vendor_subcmds {
1330 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
1331 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001332 /* subcmds 2..8 not yet allocated */
1333 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001334 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001335 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001336 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001337 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001338 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
1339 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
1340 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
1341 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
1342 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
1343 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
1344 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
1345 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
1346 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
1347 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
1348 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
1349 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
1350 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
1351 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
1352 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
1353 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
1354 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
1355 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
1356 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
1357 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
1358 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
1359 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
1360 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
1361 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
1362 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
1363 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
1364 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
1365 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
1366 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
1367 /* 43..49 - reserved for QCA */
1368 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
1369 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
1370 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001371 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001372 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1373 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001374 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1375 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1376 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1377 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1378 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001379 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1380 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1381 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1382 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1383 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1384 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1385 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1386 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1387 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1388 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1389 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1390 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1391 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001392 /* Wi-Fi configuration subcommands */
1393 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1394 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001395 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1396 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1397 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1398 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1399 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1400 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1401 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1402 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1403 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1404 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1405 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001406 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001407 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1408 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1409 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1410 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1411 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1412 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1413 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1414 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1415 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -07001416 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001417 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1418 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1419 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1420 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001421 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1422 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1423 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1424 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1425 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001426 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001427 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1428 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001429 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001430 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1431 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001432 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001433 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1434 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1435 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001436 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1437 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001438 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1439 /* FTM/indoor location subcommands */
1440 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1441 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1442 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1443 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1444 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1445 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1446 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1447 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1448 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001449 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1450 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001451 /* DMG low level RF sector operations */
1452 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1453 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1454 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1455 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1456 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001457 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001458 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001459 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001460 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1461 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1462 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1463 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001464 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1465 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001466 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1467 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1468 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1469 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1470 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001471 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1472 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1473 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1474 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1475 /* Flush peer pending data */
1476 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1477 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1478 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1479 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1480 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1481 /* Thermal shutdown commands to protect wifi chip */
1482 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1483 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1484 /* Wi-Fi test configuration subcommand */
1485 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1486 /* Frame filter operations for other BSSs/unassociated STAs */
1487 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001488 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001489 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1490 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001491 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1492 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1493 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001494 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1495 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1496 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001497 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1498 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001499 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1500 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1501 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1502 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001503 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001504 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1505 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1506 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001507 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1508 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1509 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1510 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1511 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1512 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1513 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001514 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001515 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1516 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1517 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1518 /* 201 - reserved for QCA */
1519 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1520 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1521 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1522 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001523 /* 206..212 - reserved for QCA */
1524 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1525 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1526 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1527 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001528 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1529 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1530 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1531 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001532 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1533 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1534 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1535 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1536 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1537 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001538 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Sunil Ravi640215c2023-06-28 23:08:09 +00001539 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1540 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1541 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1542 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001543 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001544 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1545 /* 234 - reserved for QCA */
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001546 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
1547 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
1548 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
1549 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
1550 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
1551 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
Sunil Ravi99c035e2024-07-12 01:42:03 +00001552 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241,
1553 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242,
Sunil Ravi7f769292024-07-23 22:21:32 +00001554 QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243,
1555 QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244,
1556 QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245,
1557 QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246,
1558 QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247,
1559 QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248,
1560 QCA_NL80211_VENDOR_SUBCMD_USD = 249,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001561 QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT = 250,
1562 QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE = 251,
1563 QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ = 252,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00001564 QCA_NL80211_VENDOR_SUBCMD_GET_FW_SCAN_REPORT = 253,
1565 QCA_NL80211_VENDOR_SUBCMD_IDLE_SHUTDOWN = 254,
1566 /* 255 - reserved for QCA */
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001567};
1568
Sunil8cd6f4d2022-06-28 18:40:46 +00001569/* Compatibility defines for previously used subcmd names.
1570 * These values should not be used in any new implementation.
1571 */
1572#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1573 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1574
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001575enum qca_wlan_vendor_attr {
1576 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1577 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1578 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001579 /* Used only when driver sends vendor events to the userspace under the
1580 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1581 * commands to the driver.
1582 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001583 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001584 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1585 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001586 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1587 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001588 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001589 * by enum qca_roaming_policy.
1590 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001591 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1592 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Sunil Ravic0f5d412024-09-11 22:12:49 +00001593 /* Feature flags contained in a byte array. The feature flags are
1594 * identified by their bit index (see &enum qca_wlan_vendor_features)
1595 * with the first byte being the least significant one and the last one
1596 * being the most significant one. Used by
1597 * QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001598 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001599 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001600 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1601 /* Unsigned 32-bit value. */
1602 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1603 /* Unsigned 32-bit value */
1604 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1605 /* Unsigned 32-bit value */
1606 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001607 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1608 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1609 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1610 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1611 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001612 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001613 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001614 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1615 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1616 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1617 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1618 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1619 */
1620 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1621 /* Indoor location capabilities, returned by
1622 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1623 * see enum qca_wlan_vendor_attr_loc_capa.
1624 */
1625 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1626 /* Array of nested attributes containing information about each peer
1627 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1628 * for supported attributes for each peer.
1629 */
1630 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1631 /* Array of nested attributes containing measurement results for
1632 * one or more peers, reported by the
1633 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1634 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1635 * attributes.
1636 */
1637 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1638 /* Flag attribute for enabling or disabling responder functionality. */
1639 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1640 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1641 * command to specify the LCI report that will be sent by
1642 * the responder during a measurement exchange. The format is
1643 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1644 */
1645 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1646 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1647 * command to specify the location civic report that will
1648 * be sent by the responder during a measurement exchange.
1649 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1650 */
1651 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1652 /* Session/measurement completion status code,
1653 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1654 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1655 * see enum qca_vendor_attr_loc_session_status.
1656 */
1657 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1658 /* Initial dialog token used by responder (0 if not specified),
1659 * unsigned 8 bit value.
1660 */
1661 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1662 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1663 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1664 * AOA measurements are needed as part of an FTM session.
1665 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1666 * enum qca_wlan_vendor_attr_aoa_type.
1667 */
1668 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1669 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1670 * by indoor location measurements. Refers to the antenna
1671 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1672 */
1673 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1674 /* AOA measurement data. Its contents depends on the AOA measurement
1675 * type and antenna array mask:
1676 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1677 * phase of the strongest CIR path for each antenna in the measured
1678 * array(s).
1679 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1680 * values, phase and amplitude of the strongest CIR path for each
1681 * antenna in the measured array(s).
1682 */
1683 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001684 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1685 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001686 * the corresponding antenna RSSI value
1687 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001688 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1689 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001690 * to report the specific antenna RSSI value (unsigned 32 bit value)
1691 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001692 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001693 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1694 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1695 /* TSF timer value, unsigned 64 bit value.
1696 * May be returned by various commands.
1697 */
1698 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1699 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1700 * 0..127 for sector indices or 65535 as special value used to
1701 * unlock sector selection in
1702 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1703 */
1704 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1705 /* DMG RF sector type, unsigned 8 bit value. One of the values
1706 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1707 */
1708 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1709 /* Bitmask of DMG RF modules for which information is requested. Each
1710 * bit corresponds to an RF module with the same index as the bit
1711 * number. Unsigned 32 bit number but only low 8 bits can be set since
1712 * all DMG chips currently have up to 8 RF modules.
1713 */
1714 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1715 /* Array of nested attributes where each entry is DMG RF sector
1716 * configuration for a single RF module.
1717 * Attributes for each entry are taken from enum
1718 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1719 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1720 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1721 */
1722 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1723 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1724 * to report frame aggregation statistics to userspace.
1725 */
1726 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1727 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001728 /* Unsigned 8-bit value representing MBO transition reason code as
1729 * provided by the AP used by subcommand
1730 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1731 * specified by the userspace in the request to the driver.
1732 */
1733 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1734 /* Array of nested attributes, BSSID and status code, used by subcommand
1735 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1736 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1737 * The userspace space specifies the list/array of candidate BSSIDs in
1738 * the order of preference in the request. The driver specifies the
1739 * status code, for each BSSID in the list, in the response. The
1740 * acceptable candidates are listed in the order preferred by the
1741 * driver.
1742 */
1743 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001744 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1745 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1746 */
1747 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1748 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1749 * to define the number of antennas to use for BRP.
1750 * different purpose in each ANT_LIMIT_MODE:
1751 * DISABLE - ignored
1752 * EFFECTIVE - upper limit to number of antennas to be used
1753 * FORCE - exact number of antennas to be used
1754 * unsigned 8 bit value
1755 */
1756 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1757 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001758 * to report the corresponding antenna index to the chain RSSI value
1759 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001760 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001761 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1762 * the specific antenna EVM value (unsigned 32 bit value). With a
1763 * determinate group of antennas, the driver specifies the EVM value
1764 * for each antenna ID, and application extract them in user space.
1765 */
1766 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001767 /*
1768 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1769 * wlan firmware current state. FW state is an unsigned 8 bit value,
1770 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1771 */
1772 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001773
Hai Shalom899fcc72020-10-19 14:38:18 -07001774 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1775 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1776 * of single values from enum qca_set_band are valid. This attribute
1777 * uses bitmask combinations to define the respective allowed band
1778 * combinations and this attributes takes precedence over
1779 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1780 */
1781 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1782
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001783 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1784 * This field describes the maximum number of links supported by the
1785 * chip for MLO association.
1786 * This is an optional attribute.
1787 */
1788 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
1789
1790 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1791 * This field describes the maximum number of Simultaneous Transmit
1792 * and Receive (STR) links used in Multi-Link Operation.
1793 * The maximum number of STR links used can be different
1794 * from the maximum number of radios supported by the chip.
1795 * This is a static configuration of the chip.
1796 * This is an optional attribute.
1797 */
1798 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
1799
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001800 /* keep last */
1801 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1802 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1803};
1804
Sunil Ravi7f769292024-07-23 22:21:32 +00001805/**
1806 * enum qca_roaming_policy - Represents the policies for roaming. Used by
1807 * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY.
1808 *
1809 * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled.
1810 *
1811 * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with
1812 * default RSSI thresholds.
1813 *
1814 * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of
1815 * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI
1816 * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS.
1817 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001818enum qca_roaming_policy {
1819 QCA_ROAMING_NOT_ALLOWED,
1820 QCA_ROAMING_ALLOWED_WITHIN_ESS,
Sunil Ravi7f769292024-07-23 22:21:32 +00001821 QCA_ROAMING_MODE_AGGRESSIVE,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001822};
1823
Hai Shalom021b0b52019-04-10 11:17:58 -07001824/**
1825 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1826 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1827 *
1828 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1829 * reasons.
1830 *
1831 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1832 * the configured threshold.
1833 *
1834 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1835 * beacon misses from the then connected AP.
1836 *
1837 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1838 * by the connected AP.
1839 *
1840 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1841 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1842 *
1843 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1844 * or environment being very noisy or congested.
1845 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001846 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001847 * from the user (user space).
1848 *
1849 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1850 * the connected AP.
1851 *
1852 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1853 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001854 *
1855 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1856 * transition request.
1857 *
1858 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1859 * data activity with the AP and the current RSSI falls below a certain
1860 * threshold.
1861 *
1862 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1863 * Disassociation frames received from the connected AP.
1864 *
1865 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1866 * that happens when there is no candidate AP found during the poor RSSI scan
1867 * trigger.
1868 *
1869 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1870 * obtained from an external scan (not aimed at roaming).
1871 *
1872 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1873 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001874 *
1875 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1876 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001877 */
1878enum qca_roam_reason {
1879 QCA_ROAM_REASON_UNKNOWN,
1880 QCA_ROAM_REASON_PER,
1881 QCA_ROAM_REASON_BEACON_MISS,
1882 QCA_ROAM_REASON_POOR_RSSI,
1883 QCA_ROAM_REASON_BETTER_RSSI,
1884 QCA_ROAM_REASON_CONGESTION,
1885 QCA_ROAM_REASON_USER_TRIGGER,
1886 QCA_ROAM_REASON_BTM,
1887 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001888 QCA_ROAM_REASON_WTC,
1889 QCA_ROAM_REASON_IDLE,
1890 QCA_ROAM_REASON_DISCONNECTION,
1891 QCA_ROAM_REASON_PERIODIC_TIMER,
1892 QCA_ROAM_REASON_BACKGROUND_SCAN,
1893 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001894 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001895};
1896
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001897enum qca_wlan_vendor_attr_roam_auth {
1898 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001899 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1900 * of the roamed AP for MLO roaming.
1901 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001902 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1903 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1904 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1905 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1906 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1907 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1908 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001909 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001910 /* Indicates the status of re-association requested by user space for
1911 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1912 * Type u16.
1913 * Represents the status code from AP. Use
1914 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1915 * real status code for failures.
1916 */
1917 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1918 /* This attribute indicates that the old association was maintained when
1919 * a re-association is requested by user space and that re-association
1920 * attempt fails (i.e., cannot connect to the requested BSS, but can
1921 * remain associated with the BSS with which the association was in
1922 * place when being requested to roam). Used along with
1923 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1924 * re-association status. Type flag.
1925 * This attribute is applicable only for re-association failure cases.
1926 */
1927 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1928 /* This attribute specifies the PMK if one was newly generated during
1929 * FILS roaming. This is added to the PMKSA cache and is used in
1930 * subsequent connections with PMKSA caching.
1931 */
1932 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1933 /* This attribute specifies the PMKID used/generated for the current
1934 * FILS roam. This is used in subsequent connections with PMKSA caching.
1935 */
1936 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1937 /* A 16-bit unsigned value specifying the next sequence number to use
1938 * in ERP message in the currently associated realm. This is used in
1939 * doing subsequent ERP based connections in the same realm.
1940 */
1941 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001942 /* A 16-bit unsigned value representing the reasons for the roaming.
1943 * Defined by enum qca_roam_reason.
1944 */
1945 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001946 /* A nested attribute containing per-link information of all the links
1947 * of MLO connection done while roaming. The attributes used inside this
1948 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1949 */
1950 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001951
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001952 /* keep last */
1953 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1954 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1955 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1956};
1957
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001958enum qca_wlan_vendor_attr_p2p_listen_offload {
1959 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1960 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1961 * of the social channels.
1962 */
1963 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1964 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1965 */
1966 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1967 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1968 */
1969 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1970 /* A 32-bit unsigned value; number of interval times the firmware needs
1971 * to run the offloaded P2P listen operation before it stops.
1972 */
1973 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1974 /* An array of arbitrary binary data with one or more 8-byte values.
1975 * The device types include both primary and secondary device types.
1976 */
1977 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1978 /* An array of unsigned 8-bit characters; vendor information elements.
1979 */
1980 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1981 /* A 32-bit unsigned value; a control flag to indicate whether listen
1982 * results need to be flushed to wpa_supplicant.
1983 */
1984 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1985 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1986 * event.
1987 */
1988 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1989 /* keep last */
1990 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1991 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1992 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1993};
1994
Hai Shalomc3565922019-10-28 11:58:20 -07001995/**
1996 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1997 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1998 *
1999 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
2000 * Used with event to notify the primary channel number selected in ACS
2001 * operation.
2002 * Note: If both the driver and user-space application supports the 6 GHz band,
2003 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
2004 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
2005 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
2006 * is still used if either of the driver or user space application doesn't
2007 * support the 6 GHz band.
2008 *
2009 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
2010 * Used with event to notify the secondary channel number selected in ACS
2011 * operation.
2012 * Note: If both the driver and user-space application supports the 6 GHz band,
2013 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
2014 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
2015 * To maintain backward compatibility,
2016 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
2017 * the driver or user space application doesn't support 6 GHz band.
2018 *
2019 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
2020 * (a) Used with command to configure hw_mode from
2021 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
2022 * (b) Also used with event to notify the hw_mode of selected primary channel
2023 * in ACS operation.
2024 *
2025 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
2026 * Used with command to configure ACS operation for HT mode.
2027 * Disable (flag attribute not present) - HT disabled and
2028 * Enable (flag attribute present) - HT enabled.
2029 *
2030 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
2031 * Used with command to configure ACS operation for HT40 mode.
2032 * Disable (flag attribute not present) - HT40 disabled and
2033 * Enable (flag attribute present) - HT40 enabled.
2034 *
2035 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
2036 * Used with command to configure ACS operation for VHT mode.
2037 * Disable (flag attribute not present) - VHT disabled and
2038 * Enable (flag attribute present) - VHT enabled.
2039 *
2040 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
2041 * mandatory with event.
2042 * If specified in command path, ACS operation is configured with the given
2043 * channel width (in MHz).
2044 * In event path, specifies the channel width of the primary channel selected.
2045 *
2046 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
2047 * Used with command to configure channel list using an array of
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002048 * channel numbers (u8). This represents the list of allowed channels for
2049 * the primary and non-primary channel operation. Channels which are not present
2050 * in the specified list shouldn't be used as a primary or non-primary channel.
Hai Shalomc3565922019-10-28 11:58:20 -07002051 * Note: If both the driver and user-space application supports the 6 GHz band,
2052 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
2053 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
2054 *
2055 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
2056 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07002057 * ACS operation. The value is the index of the channel center frequency for
2058 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
2059 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07002060 * Note: If both the driver and user-space application supports the 6 GHz band,
2061 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
2062 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
2063 * To maintain backward compatibility,
2064 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
2065 * the driver or user space application doesn't support the 6 GHz band.
2066 *
2067 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
2068 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07002069 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
2070 * The value is the index of the channel center frequency for 160 MHz channels
2071 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
2072 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07002073 * Note: If both the driver and user-space application supports the 6 GHz band,
2074 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
2075 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
2076 * To maintain backward compatibility,
2077 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
2078 * the driver or user space application doesn't support the 6 GHz band.
2079 *
2080 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
2081 * Used with command to configure the channel list using an array of channel
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002082 * center frequencies in MHz (u32). This represents the list of allowed
2083 * frequencies for the primary and non-primary channel operation. Frequencies
2084 * which are not present in the specified list shouldn't be used as a primary or
2085 * non-primary channel.
Hai Shalomc3565922019-10-28 11:58:20 -07002086 * Note: If both the driver and user-space application supports the 6 GHz band,
2087 * the driver first parses the frequency list and if it fails to get a frequency
2088 * list, parses the channel list specified using
2089 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
2090 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
2091 *
2092 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
2093 * Used with event to notify the primary channel center frequency (MHz) selected
2094 * in ACS operation.
2095 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2096 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
2097 *
2098 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
2099 * Used with event to notify the secondary channel center frequency (MHz)
2100 * selected in ACS operation.
2101 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2102 * includes this attribute along with
2103 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
2104 *
2105 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
2106 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
2107 * selected in ACS operation.
2108 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2109 * includes this attribute along with
2110 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
2111 *
2112 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
2113 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
2114 * selected in ACS operation.
2115 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2116 * includes this attribute along with
2117 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07002118 *
2119 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
2120 * Used with command to notify the driver of EDMG request for ACS
2121 * operation.
2122 *
2123 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
2124 * Used with event to notify the EDMG channel number selected in ACS
2125 * operation.
2126 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08002127 *
2128 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
2129 * Used with event to notify the puncture pattern selected in ACS operation.
2130 * Encoding for this attribute will follow the convention used in the Disabled
2131 * Subchannel Bitmap field of the EHT Operation IE.
2132 *
2133 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
2134 * Used with command to configure ACS operation for EHT mode.
2135 * Disable (flag attribute not present) - EHT disabled and
2136 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00002137 *
2138 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
2139 * Used with command to configure how older scan can be considered for ACS
2140 * scoring. In case scan was performed on a partial set of channels configured
2141 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
2142 * (in ms), scan only the remaining channels.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002143 *
2144 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
2145 * Used with command to configure ACS operation for a specific link affiliated
2146 * to an AP MLD.
2147 *
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002148 * @QCA_WLAN_VENDOR_ATTR_ACS_EXCLUDE_6GHZ_NON_PSC_PRIMARY: Optional flag
2149 * attribute. Used with command to indicate whether the driver is allowed to use
2150 * a 6 GHz non-PSC channel as a primary channel. If this flag is indicated the
2151 * driver shall not use 6 GHz non-PSC channels as a primary channel even if
2152 * %QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST includes 6 GHz non-PSC channels.
2153 * However, the driver is still allowed to use 6 GHz non-PSC channels specified
2154 * in %QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST as non-primary channels. User space is
2155 * allowed to specify this flag only when the driver indicates support for
2156 * %QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC.
Hai Shalomc3565922019-10-28 11:58:20 -07002157 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002158enum qca_wlan_vendor_attr_acs_offload {
2159 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002160 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
2161 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
2162 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
2163 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
2164 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
2165 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
2166 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
2167 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
2168 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
2169 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
2170 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
2171 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
2172 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
2173 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
2174 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07002175 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
2176 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002177 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
2178 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00002179 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002180 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002181 QCA_WLAN_VENDOR_ATTR_ACS_EXCLUDE_6GHZ_NON_PSC_PRIMARY = 22,
Hai Shalomc3565922019-10-28 11:58:20 -07002182
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002183 /* keep last */
2184 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
2185 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
2186 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
2187};
2188
Hai Shalomc3565922019-10-28 11:58:20 -07002189/**
2190 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
2191 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
2192 *
2193 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
2194 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
2195 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
2196 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
2197 * @QCA_ACS_MODE_IEEE80211ANY: all modes
2198 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
2199 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002200enum qca_wlan_vendor_acs_hw_mode {
2201 QCA_ACS_MODE_IEEE80211B,
2202 QCA_ACS_MODE_IEEE80211G,
2203 QCA_ACS_MODE_IEEE80211A,
2204 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002205 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07002206 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002207};
2208
2209/**
2210 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
2211 *
2212 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
2213 * management offload, a mechanism where the station's firmware
2214 * does the exchange with the AP to establish the temporal keys
2215 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002216 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
2217 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002218 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07002219 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002220 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
2221 * Listen offload; a mechanism where the station's firmware takes care of
2222 * responding to incoming Probe Request frames received from other P2P
2223 * Devices whilst in Listen state, rather than having the user space
2224 * wpa_supplicant do it. Information from received P2P requests are
2225 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002226 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
2227 * specific features.
2228 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
2229 * features.
2230 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
2231 * specific features only. If a Device sets this bit but not the
2232 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
2233 * this Device may not support all OCE AP functionalities but can support
2234 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002235 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
2236 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07002237 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07002238 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
2239 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07002240 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
2241 * and applying thermal configuration through
2242 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
2243 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
2244 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08002245 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
2246 * With Adaptive 11r feature, access points advertise the vendor
2247 * specific IEs and MDE but do not include FT AKM in the RSNE.
2248 * The Adaptive 11r supported stations are expected to identify
2249 * such vendor specific IEs and connect to the AP in FT mode though
2250 * the profile is configured in non-FT mode.
2251 * The driver-based SME cases also need to have this support for
2252 * Adaptive 11r to handle the connection and roaming scenarios.
2253 * This flag indicates the support for the same to the user space.
2254 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
2255 * concurrent network sessions on different Wi-Fi bands. This feature
2256 * capability is attributed to the hardware's capability to support
2257 * the same (e.g., DBS).
2258 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
2259 * responses for the respective TWT operations are asynchronous (separate
2260 * event message) from the driver. If not specified, the responses are
2261 * synchronous (in vendor command reply) to the request. Each TWT
2262 * operation is specifically mentioned (against its respective
2263 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07002264 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00002265 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07002266 * generic nl80211 commands for NDP interface create/delete and to
2267 * register/unregister the netdev instead of creating/deleting the NDP
2268 * interface using the vendor commands
2269 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
2270 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00002271 * (5.12 version onward), interface creation/deletion is not allowed using
2272 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
2273 * during the register/unregister of netdev. Create and delete NDP
2274 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
2275 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07002276 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
2277 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
2278 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
2279 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
2280 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
2281 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
2282 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
2283 * station mode supports secure RTT measurement exchange. If
2284 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2285 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
2286 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
2287 * mode supports secure RTT measurement exchange. If
2288 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2289 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
2290 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
2291 * the device in station mode supports protection of range negotiation and
2292 * measurement management frames. If
2293 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2294 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
2295 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
2296 * the device in AP mode supports protection of range negotiation and
2297 * measurement management frames. If
2298 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2299 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Sunil Ravi640215c2023-06-28 23:08:09 +00002300 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
2301 * in AP mode supports configuring allowed frequency list for AP operation
2302 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
2303 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
2304 * that the device supports enhanced audio experience over WLAN feature.
Sunil Ravi7f769292024-07-23 22:21:32 +00002305 * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device
2306 * in AP mode supports TWT responder mode in HT and VHT modes.
2307 *
2308 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA: Flag indicates that the device
Sunil Ravic0f5d412024-09-11 22:12:49 +00002309 * supports RSNE/RSNXE overriding in STA mode. Supplicant should enable
2310 * RSN overriding elements use only when the driver indicates this feature
2311 * flag. For BSS selection offload to the driver case, the driver shall
2312 * strip/modify the RSN Selection element indicated in connect request
2313 * elements or add that element if none was provided based on the BSS
2314 * selected by the driver.
Sunil Ravi7f769292024-07-23 22:21:32 +00002315 *
Sunil Ravic0f5d412024-09-11 22:12:49 +00002316 * @QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD: Flag indicates that the driver
2317 * supports Unsynchronized Service Discovery to be offloaded to it.
Sunil Ravi7f769292024-07-23 22:21:32 +00002318 *
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002319 * @QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC: Flag indicates that the driver
2320 * supports preferring 6 GHz PSC channel as a primary channel in ACS
2321 * result.
2322 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002323 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
2324 */
2325enum qca_wlan_vendor_features {
2326 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002327 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002328 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002329 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002330 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
2331 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
2332 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002333 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00002334 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07002335 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
2336 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07002337 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08002338 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
2339 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
2340 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07002341 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07002342 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
2343 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
2344 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
2345 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
2346 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
2347 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Sunil Ravi640215c2023-06-28 23:08:09 +00002348 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
2349 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
Sunil Ravi7f769292024-07-23 22:21:32 +00002350 QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24,
2351 QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA = 25,
Sunil Ravic0f5d412024-09-11 22:12:49 +00002352 QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD = 26,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00002353 QCA_WLAN_VENDOR_FEATURE_ACS_PREFER_6GHZ_PSC = 27,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002354 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
2355};
2356
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07002357/**
2358 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
2359 *
2360 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
2361 * the offloaded data.
2362 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
2363 * data.
2364 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
2365 * indication.
2366 */
2367enum qca_wlan_vendor_attr_data_offload_ind {
2368 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
2369 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
2370 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
2371 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
2372
2373 /* keep last */
2374 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
2375 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
2376 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
2377};
Ravi Joshie6ccb162015-07-16 17:45:41 -07002378
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002379/**
2380 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
2381 * OCB config
2382 *
2383 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
2384 * configuration
2385 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
2386 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
2387 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
2388 * scheduled
2389 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
2390 * information
2391 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
2392 * active state configuration
2393 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
2394 * OCB_CONFIG_FLAG_80211_FRAME_MODE
2395 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
2396 * use in the case that a packet is sent without a TX control header
2397 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
2398 * last TA received that the local time set by TA is synchronous to other
2399 * communicating OCB STAs.
2400 */
2401enum qca_wlan_vendor_attr_ocb_set_config {
2402 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
2403 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
2404 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
2405 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
2406 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
2407 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
2408 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
2409 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
2410 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
2411 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2412 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
2413 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
2414 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
2415};
2416
2417/**
2418 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
2419 * UTC time
2420 *
2421 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
2422 * 10 bytes
2423 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
2424 * 5 bytes
2425 */
2426enum qca_wlan_vendor_attr_ocb_set_utc_time {
2427 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
2428 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
2429 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
2430 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
2431 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
2432 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
2433};
2434
2435/**
2436 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
2437 * to start sending timing advert frames
2438 *
2439 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
2440 * on which to send the frames
2441 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
2442 * the frame is sent in 5 seconds
2443 */
2444enum qca_wlan_vendor_attr_ocb_start_timing_advert {
2445 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
2446 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
2447 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
2448 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
2449 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
2450 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
2451};
2452
2453/**
2454 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
2455 * to stop timing advert
2456 *
2457 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
2458 * frequency on which to stop the timing advert
2459 */
2460enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
2461 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
2462 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
2463 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
2464 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
2465 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
2466};
2467
2468/**
2469 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
2470 * get TSF timer value
2471 *
2472 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2473 * timer
2474 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2475 */
2476enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2477 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2478 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2479 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2480 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2481 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2482 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2483};
2484
Ravi Joshie6ccb162015-07-16 17:45:41 -07002485enum qca_vendor_attr_get_preferred_freq_list {
2486 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2487 /* A 32-unsigned value; the interface type/mode for which the preferred
2488 * frequency list is requested (see enum qca_iface_type for possible
2489 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2490 * kernel and in the kernel response back to user-space.
2491 */
2492 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2493 /* An array of 32-unsigned values; values are frequency (MHz); sent
2494 * from kernel space to user space.
2495 */
2496 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002497 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2498 * attribute. Each element contains frequency (MHz), weight, and flag
2499 * bit mask indicating how the frequency should be used in P2P
2500 * negotiation; sent from kernel space to user space.
2501 */
2502 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07002503 /* keep last */
2504 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2505 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2506 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2507};
2508
2509enum qca_vendor_attr_probable_oper_channel {
2510 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2511 /* 32-bit unsigned value; indicates the connection/iface type likely to
2512 * come on this channel (see enum qca_iface_type).
2513 */
2514 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2515 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2516 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2517 /* keep last */
2518 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2519 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2520 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2521};
2522
2523enum qca_iface_type {
2524 QCA_IFACE_TYPE_STA,
2525 QCA_IFACE_TYPE_AP,
2526 QCA_IFACE_TYPE_P2P_CLIENT,
2527 QCA_IFACE_TYPE_P2P_GO,
2528 QCA_IFACE_TYPE_IBSS,
2529 QCA_IFACE_TYPE_TDLS,
2530};
2531
2532enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07002533 QCA_SETBAND_AUTO = 0,
2534 QCA_SETBAND_5G = BIT(0),
2535 QCA_SETBAND_2G = BIT(1),
2536 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07002537};
2538
Dmitry Shmidt17022322016-04-06 13:28:42 -07002539/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002540 * enum qca_access_policy - Access control policy
2541 *
2542 * Access control policy is applied on the configured IE
2543 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2544 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2545 *
2546 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2547 * the specific configuration (IE) set, i.e., allow all the
2548 * connections which do not match the configuration.
2549 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2550 * the specific configuration (IE) set, i.e., deny all the
2551 * connections which do not match the configuration.
2552 */
2553enum qca_access_policy {
2554 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2555 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2556};
2557
2558/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002559 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2560 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2561 * Specify the TSF command. Possible values are defined in
2562 * &enum qca_tsf_cmd.
2563 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2564 * This attribute contains TSF timer value. This attribute is only available
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002565 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
2566 * response.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002567 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2568 * This attribute contains SOC timer value at TSF capture. This attribute is
2569 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2570 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2571 * This attribute is used to provide TSF sync interval and only applicable when
2572 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2573 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002574 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2575 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002576 */
2577enum qca_vendor_attr_tsf_cmd {
2578 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2579 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2580 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2581 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002582 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002583 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002584 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2585 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2586 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2587};
2588
2589/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002590 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002591 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2592 * @QCA_TSF_GET: Get TSF capture value
2593 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002594 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2595 * will automatically send TSF report to the host. To query
Sunil Ravi7f769292024-07-23 22:21:32 +00002596 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2597 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs
2598 * to be initiated first.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002599 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2600 * will not automatically send TSF report to the host. If
2601 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
Sunil Ravi7f769292024-07-23 22:21:32 +00002602 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2603 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried
2604 * anymore, this operation needs to be initiated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002605 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2606 * fetches TSF and host time mapping from the firmware with interval configured
2607 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2608 * interval value is not provided the driver will use the default value. The
2609 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2610 * command.
2611 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002612 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
2613 * starts beaconing on a new channel. The driver synchronously responds with the
2614 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
2615 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
2616 * on the AP interface. This TSF can be sent via OOB mechanism to connected
2617 * clients.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002618 */
2619enum qca_tsf_cmd {
2620 QCA_TSF_CAPTURE,
2621 QCA_TSF_GET,
2622 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002623 QCA_TSF_AUTO_REPORT_ENABLE,
2624 QCA_TSF_AUTO_REPORT_DISABLE,
2625 QCA_TSF_SYNC_START,
2626 QCA_TSF_SYNC_STOP,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002627 QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002628};
2629
2630/**
2631 * enum qca_vendor_attr_wisa_cmd
2632 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2633 * WISA setup vendor commands
2634 */
2635enum qca_vendor_attr_wisa_cmd {
2636 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2637 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2638 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2639 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2640 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2641};
2642
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002643/* IEEE 802.11 Vendor Specific elements */
2644
2645/**
2646 * enum qca_vendor_element_id - QCA Vendor Specific element types
2647 *
2648 * These values are used to identify QCA Vendor Specific elements. The
2649 * payload of the element starts with the three octet OUI (OUI_QCA) and
2650 * is followed by a single octet type which is defined by this enum.
2651 *
2652 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2653 * This element can be used to specify preference order for supported
2654 * channels. The channels in this list are in preference order (the first
2655 * one has the highest preference) and are described as a pair of
2656 * (global) Operating Class and Channel Number (each one octet) fields.
2657 *
2658 * This extends the standard P2P functionality by providing option to have
2659 * more than one preferred operating channel. When this element is present,
2660 * it replaces the preference indicated in the Operating Channel attribute.
2661 * For supporting other implementations, the Operating Channel attribute is
2662 * expected to be used with the highest preference channel. Similarly, all
2663 * the channels included in this Preferred channel list element are
2664 * expected to be included in the Channel List attribute.
2665 *
2666 * This vendor element may be included in GO Negotiation Request, P2P
2667 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002668 *
2669 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2670 * This element can be used for pre-standard publication testing of HE
2671 * before P802.11ax draft assigns the element ID. The payload of this
2672 * vendor specific element is defined by the latest P802.11ax draft.
2673 * Please note that the draft is still work in progress and this element
2674 * payload is subject to change.
2675 *
2676 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2677 * This element can be used for pre-standard publication testing of HE
2678 * before P802.11ax draft assigns the element ID. The payload of this
2679 * vendor specific element is defined by the latest P802.11ax draft.
2680 * Please note that the draft is still work in progress and this element
2681 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002682 *
2683 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2684 * element).
2685 * This element can be used for pre-standard publication testing of HE
2686 * before P802.11ax draft assigns the element ID extension. The payload of
2687 * this vendor specific element is defined by the latest P802.11ax draft
2688 * (not including the Element ID Extension field). Please note that the
2689 * draft is still work in progress and this element payload is subject to
2690 * change.
2691 *
2692 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2693 * This element can be used for pre-standard publication testing of HE
2694 * before P802.11ax draft assigns the element ID extension. The payload of
2695 * this vendor specific element is defined by the latest P802.11ax draft
2696 * (not including the Element ID Extension field). Please note that the
2697 * draft is still work in progress and this element payload is subject to
2698 * change.
2699 *
2700 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2701 * This element can be used for pre-standard publication testing of HE
2702 * before P802.11ax draft assigns the element ID extension. The payload of
2703 * this vendor specific element is defined by the latest P802.11ax draft
2704 * (not including the Element ID Extension field). Please note that the
2705 * draft is still work in progress and this element payload is subject to
2706 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002707 *
2708 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002709 */
2710enum qca_vendor_element_id {
2711 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002712 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2713 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002714 QCA_VENDOR_ELEM_RAPS = 3,
2715 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2716 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002717 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002718};
2719
2720/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002721 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2722 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2723 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2724 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2725 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2726 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2727 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2728 */
2729enum qca_wlan_vendor_scan_priority {
2730 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2731 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2732 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2733 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2734 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2735};
2736
2737/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002738 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2739 *
2740 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2741 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2742 * with frequencies to be scanned (in MHz)
2743 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2744 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2745 * rates to be included
2746 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002747 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002748 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2749 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002750 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002751 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002752 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002753 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002754 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002755 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002756 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002757 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2758 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002759 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2760 * microseconds. This is a common value which applies across all
2761 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002762 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2763 * other scan requests. It is a u32 attribute and takes values from enum
2764 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2765 * If this attribute is not configured, the driver shall use
2766 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002767 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2768 * alignment.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002769 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
2770 * when AP is operating as MLD to specify which link is requesting the
2771 * scan or which link the scan result is for. No need of this attribute
2772 * in other cases.
Sunil Ravic0f5d412024-09-11 22:12:49 +00002773 * @QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD: Optional (u32). Skip
2774 * scanning channels which are scanned recently within configured time
2775 * (in ms).
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002776 */
2777enum qca_wlan_vendor_attr_scan {
2778 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002779 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2780 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2781 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2782 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2783 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2784 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2785 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2786 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2787 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2788 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2789 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002790 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002791 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002792 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002793 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
Sunil Ravic0f5d412024-09-11 22:12:49 +00002794 QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD = 16,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002795 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2796 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2797 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2798};
2799
2800/**
2801 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002802 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002803 *
2804 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002805 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002806 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2807 */
2808enum scan_status {
2809 VENDOR_SCAN_STATUS_NEW_RESULTS,
2810 VENDOR_SCAN_STATUS_ABORTED,
2811 VENDOR_SCAN_STATUS_MAX,
2812};
2813
2814/**
2815 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2816 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2817 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2818 */
2819enum qca_vendor_attr_ota_test {
2820 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2821 /* 8-bit unsigned value to indicate if OTA test is enabled */
2822 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2823 /* keep last */
2824 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2825 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2826 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2827};
2828
2829/**
2830 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2831 *
2832 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2833 */
2834enum qca_vendor_attr_txpower_scale {
2835 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2836 /* 8-bit unsigned value to indicate the scaling of tx power */
2837 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2838 /* keep last */
2839 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2840 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2841 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2842};
2843
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002844/**
2845 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2846 *
2847 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2848 */
2849enum qca_vendor_attr_txpower_decr_db {
2850 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2851 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002852 * a virtual interface.
2853 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002854 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2855 /* keep last */
2856 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2857 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2858 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2859};
2860
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002861/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002862 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2863 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002864 */
2865enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002866 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002867 /* Unsigned 32-bit value to set the DTIM period.
2868 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2869 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2870 * DTIM beacons.
2871 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002872 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002873 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2874 * used to calculate statistics like average the TSF offset or average
2875 * number of frame leaked.
2876 * For instance, upon Beacon frame reception:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002877 * current_avg = ((beacon_TSF - TBTT) * factor +
2878 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002879 * For instance, when evaluating leaky APs:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002880 * current_avg = ((num frame received within guard time) * factor +
2881 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002882 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002883 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002884 /* Unsigned 32-bit value to configure guard time, i.e., when
2885 * implementing IEEE power management based on frame control PM bit, how
2886 * long the driver waits before shutting down the radio and after
2887 * receiving an ACK frame for a Data frame with PM bit set.
2888 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002889 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002890 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002891 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002892 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002893 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002894 /* Unsigned 32-bit value to configure the number of continuous
2895 * Beacon Miss which shall be used by the firmware to penalize
2896 * the RSSI.
2897 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002898 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002899 /* Unsigned 8-bit value to configure the channel avoidance indication
2900 * behavior. Firmware to send only one indication and ignore duplicate
2901 * indications when set to avoid multiple Apps wakeups.
2902 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002903 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002904 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002905 * aggregation.
2906 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002907 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002908 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002909 * aggregation.
2910 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002911 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002912 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002913 * retry threshold (0 disable, 31 max).
2914 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002915 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002916 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002917 * retry threshold (0 disable, 31 max).
2918 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002919 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002920 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002921 * retry threshold (0 disable, 31 max).
2922 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002923 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002924 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002925 * retry threshold (0 disable, 31 max).
2926 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002927 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002928 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002929 * 2G/5G band (0~63, units in us)
2930 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002931 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002932 /* Unsigned 32-bit value to configure the number of unicast TX fail
2933 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002934 * reached.
2935 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002936 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002937 /* Attribute used to set scan default IEs to the driver.
2938 *
2939 * These IEs can be used by scan operations that will be initiated by
2940 * the driver/firmware.
2941 *
2942 * For further scan requests coming to the driver, these IEs should be
2943 * merged with the IEs received along with scan request coming to the
2944 * driver. If a particular IE is present in the scan default IEs but not
2945 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002946 * sent in the Probe Request frames for that scan request.
2947 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002948 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002949 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002950 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002951 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002952 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002953 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002954 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002955 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002956 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2957 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002958 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002959 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002960 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2961 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002962 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002963 /* Unsigned 32-bit, defining the access policy.
2964 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002965 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2966 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002967 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002968 /* Sets the list of full set of IEs for which a specific access policy
2969 * has to be applied. Used along with
2970 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002971 * Zero length payload can be used to clear this access constraint.
2972 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002973 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002974 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2975 * corresponding configurations are applied. If the interface index is
2976 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002977 * wiphy.
2978 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002979 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002980 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002981 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002982 /* 8-bit unsigned value to configure the driver and below layers to
2983 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002984 * 1-Ignore, 0-Don't ignore
2985 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002986 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002987 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002988 * 1-Enable, 0-Disable
2989 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002990 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002991 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002992 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002993 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002994 * 1-Enable, 0-Disable
2995 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002996 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002997 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002998 * the unit is micro-second
2999 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003000 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
3001 /* 32-bit unsigned value to set reorder timeout for AC_VO */
3002 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
3003 /* 32-bit unsigned value to set reorder timeout for AC_VI */
3004 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
3005 /* 32-bit unsigned value to set reorder timeout for AC_BE */
3006 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
3007 /* 32-bit unsigned value to set reorder timeout for AC_BK */
3008 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
3009 /* 6-byte MAC address to point out the specific peer */
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003010 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
3011 /* Backward compatibility with the original name */
3012 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
3013 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08003014 /* 32-bit unsigned value to set window size for specific peer */
3015 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08003016 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
3017 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
3018 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
3019 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003020 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
3021 * station device while in disconnect state. The attribute use the
3022 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
3023 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
3024 * 10 MHz channel width, the station will not connect to a BSS using 20
3025 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07003026 * clear this constraint.
3027 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003028 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
3029 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07003030 * for 2G/5G band (units in us)
3031 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003032 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
3033 /* 32-bit unsigned value to set probe period */
3034 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
3035 /* 32-bit unsigned value to set stay period */
3036 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
3037 /* 32-bit unsigned value to set snr diff */
3038 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
3039 /* 32-bit unsigned value to set probe dwell time */
3040 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
3041 /* 32-bit unsigned value to set mgmt snr weight */
3042 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
3043 /* 32-bit unsigned value to set data snr weight */
3044 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
3045 /* 32-bit unsigned value to set ack snr weight */
3046 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
3047 /* 32-bit unsigned value to configure the listen interval.
3048 * This is in units of beacon intervals. This configuration alters
3049 * the negotiated listen interval with the AP during the connection.
3050 * It is highly recommended to configure a value less than or equal to
3051 * the one negotiated during the association. Configuring any greater
3052 * value can have adverse effects (frame loss, AP disassociating STA,
3053 * etc.).
3054 */
3055 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
3056 /*
3057 * 8 bit unsigned value that is set on an AP/GO virtual interface to
3058 * disable operations that would cause the AP/GO to leave its operating
3059 * channel.
3060 *
3061 * This will restrict the scans to the AP/GO operating channel and the
3062 * channels of the other band, if DBS is supported.A STA/CLI interface
3063 * brought up after this setting is enabled, will be restricted to
3064 * connecting to devices only on the AP/GO interface's operating channel
3065 * or on the other band in DBS case. P2P supported channel list is
3066 * modified, to only include AP interface's operating-channel and the
3067 * channels of the other band if DBS is supported.
3068 *
3069 * These restrictions are only applicable as long as the AP/GO interface
3070 * is alive. If the AP/GO interface is brought down then this
3071 * setting/restriction is forgotten.
3072 *
3073 * If this variable is set on an AP/GO interface while a multi-channel
3074 * concurrent session is active, it has no effect on the operation of
3075 * the current interfaces, other than restricting the scan to the AP/GO
3076 * operating channel and the other band channels if DBS is supported.
3077 * However, if the STA is brought down and restarted then the new STA
3078 * connection will either be formed on the AP/GO channel or on the
3079 * other band in a DBS case. This is because of the scan being
3080 * restricted on these channels as mentioned above.
3081 *
3082 * 1-Restrict / 0-Don't restrict offchannel operations.
3083 */
3084 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
3085 /*
3086 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
3087 * on an interface.
3088 * 1 - Enable, 0 - Disable.
3089 */
3090 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
3091
3092 /*
3093 * 8 bit unsigned value to globally enable/disable scan
3094 * 1 - Enable, 0 - Disable.
3095 */
3096 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
3097
3098 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07003099 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003100 */
3101 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
3102
3103 /* Unsigned 32-bit value to configure the number of continuous
3104 * Beacon Miss which shall be used by the firmware to penalize
3105 * the RSSI for BTC.
3106 */
3107 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
3108
3109 /* 8-bit unsigned value to configure the driver and below layers to
3110 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003111 * 0-enable, 1-disable
3112 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003113 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003114
Roshan Pius3a1667e2018-07-03 15:17:14 -07003115 /* 16-bit unsigned value to configure the level of WLAN latency
3116 * module. See enum qca_wlan_vendor_attr_config_latency_level.
3117 */
3118 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
3119
3120 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
3121 * the connect interface. Exclusively used for the scenarios where the
3122 * device is used as a test bed device with special functionality and
3123 * not recommended for production. This helps driver to not validate the
3124 * RSNE passed from user space and thus allow arbitrary IE data to be
3125 * used for testing purposes.
3126 * 1-enable, 0-disable.
3127 * Applications set/reset this configuration. If not reset, this
3128 * parameter remains in use until the driver is unloaded.
3129 */
3130 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
3131
3132 /* 8-bit unsigned value to trigger green Tx power saving.
3133 * 1-Enable, 0-Disable
3134 */
3135 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
3136
Hai Shalomc3565922019-10-28 11:58:20 -07003137 /* Attribute to configure disconnect IEs to the driver.
3138 * This carries an array of unsigned 8-bit characters.
3139 *
3140 * If this is configured, driver shall fill the IEs in disassoc/deauth
3141 * frame.
3142 * These IEs are expected to be considered only for the next
3143 * immediate disconnection (disassoc/deauth frame) originated by
3144 * the DUT, irrespective of the entity (user space/driver/firmware)
3145 * triggering the disconnection.
3146 * The host drivers are not expected to use the IEs set through
3147 * this interface for further disconnections after the first immediate
3148 * disconnection initiated post the configuration.
3149 * If the IEs are also updated through cfg80211 interface (after the
3150 * enhancement to cfg80211_disconnect), host driver is expected to
3151 * take the union of IEs from both of these interfaces and send in
3152 * further disassoc/deauth frames.
3153 */
Hai Shalomfdcde762020-04-02 11:19:20 -07003154 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07003155
3156 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07003157 * 0 - Disable eLNA bypass.
3158 * 1 - Enable eLNA bypass.
3159 * 2 - Reset eLNA bypass configuration, the driver should
3160 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07003161 */
3162 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
3163
Hai Shalomfdcde762020-04-02 11:19:20 -07003164 /* 8-bit unsigned value. This attribute enables/disables the host driver
3165 * to send the Beacon Report Response with failure reason for the
3166 * scenarios where STA cannot honor the Beacon Report Request from AP.
3167 * 1-Enable, 0-Disable.
3168 */
3169 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
3170
3171 /* 8-bit unsigned value. This attribute enables/disables the host driver
3172 * to send roam reason information in the Reassociation Request frame to
3173 * the target AP when roaming within the same ESS.
3174 * 1-Enable, 0-Disable.
3175 */
3176 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
3177
Hai Shalom899fcc72020-10-19 14:38:18 -07003178 /* 32-bit unsigned value to configure different PHY modes to the
3179 * driver/firmware. The possible values are defined in
3180 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
3181 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
3182 * the driver.
3183 */
3184 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
3185
3186 /* 8-bit unsigned value to configure the maximum supported channel width
3187 * for STA mode. If this value is configured when STA is in connected
3188 * state, it should not exceed the negotiated channel width. If it is
3189 * configured when STA is in disconnected state, the configured value
3190 * will take effect for the next immediate connection.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003191 * This configuration can be sent inside
3192 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3193 * supported channel width per-MLO link.
Sunil Ravi036cec52023-03-29 11:35:17 -07003194 *
3195 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07003196 */
3197 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
3198
3199 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
3200 * This attribute is only applicable for STA mode. When dynamic
3201 * bandwidth adjustment is disabled, STA will use static channel width
3202 * the value of which is negotiated during connection.
3203 * 1-enable (default), 0-disable
3204 */
3205 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
3206
3207 /* 8-bit unsigned value to configure the maximum number of subframes of
3208 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
3209 * it is decided by the hardware.
3210 */
3211 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
3212
3213 /* 8-bit unsigned value to configure the maximum number of subframes of
3214 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
3215 * it is decided by the hardware.
3216 */
3217 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
3218
3219 /* 8-bit unsigned value. This attribute is used to dynamically
3220 * enable/disable the LDPC capability of the device. When configured in
3221 * the disconnected state, the updated configuration will be considered
3222 * for the immediately following connection attempt. If this
3223 * configuration is modified while the device is in the connected state,
3224 * the LDPC TX will be updated with this configuration immediately,
3225 * while the LDPC RX configuration update will take place starting from
3226 * the subsequent association attempt.
3227 * 1-Enable, 0-Disable.
3228 */
3229 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
3230
3231 /* 8-bit unsigned value. This attribute is used to dynamically
3232 * enable/disable the TX STBC capability of the device. When configured
3233 * in the disconnected state, the updated configuration will be
3234 * considered for the immediately following connection attempt. If the
3235 * connection is formed with TX STBC enabled and if this configuration
3236 * is disabled during that association, the TX will be impacted
3237 * immediately. Further connection attempts will disable TX STBC.
3238 * However, enabling the TX STBC for a connected session with disabled
3239 * capability is not allowed and will fail.
3240 * 1-Enable, 0-Disable.
3241 */
3242 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
3243
3244 /* 8-bit unsigned value. This attribute is used to dynamically
3245 * enable/disable the RX STBC capability of the device. When configured
3246 * in the disconnected state, the updated configuration will be
3247 * considered for the immediately following connection attempt. If the
3248 * configuration is modified in the connected state, there will be no
3249 * impact for the current association, but further connection attempts
3250 * will use the updated configuration.
3251 * 1-Enable, 0-Disable.
3252 */
3253 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
3254
Sunil Ravi7f769292024-07-23 22:21:32 +00003255 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003256 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
Sunil Ravi7f769292024-07-23 22:21:32 +00003257
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003258 /* 8-bit unsigned value to configure Optimized Power Management mode:
3259 * Modes are defined by enum qca_wlan_vendor_opm_mode.
3260 *
3261 * This attribute shall be configured along with
3262 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3263 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
3264 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
Hai Shalom899fcc72020-10-19 14:38:18 -07003265 */
3266 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
3267
3268 /* 8-bit unsigned value. This attribute takes the QoS/access category
3269 * value represented by the enum qca_wlan_ac_type and expects the driver
3270 * to upgrade the UDP frames to this access category. The value of
3271 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
3272 * DSCP value configured in the frame with the intention to only upgrade
3273 * the access category. That said, it is not intended to downgrade the
3274 * access category for the frames.
3275 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3276 * disabled, as BK is of the lowest priority and an upgrade to it does
3277 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003278 *
3279 * If only UDP frames of BE or BK access category needs to be upgraded
3280 * without changing the access category of VO or VI UDP frames, refer to
3281 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
3282 *
3283 * This attribute is not recommended to be used as it blindly forces all
3284 * UDP packets to a higher access category which could impact the
3285 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07003286 */
3287 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
3288
Sunil Ravi7f769292024-07-23 22:21:32 +00003289 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003290 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
Sunil Ravi7f769292024-07-23 22:21:32 +00003291
3292 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003293 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
3294
3295 /* 8-bit unsigned value to configure ANI setting type.
3296 * See &enum qca_wlan_ani_setting for possible values.
3297 */
3298 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
3299 /* 32-bit signed value to configure ANI level. This is used when
3300 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
3301 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
3302 * is invalid, the driver will return a failure.
3303 */
3304 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
3305
Hai Shalom60840252021-02-19 19:02:11 -08003306 /* 8-bit unsigned value. This attribute is used to dynamically configure
3307 * the number of spatial streams used for transmitting the data. When
3308 * configured in the disconnected state, the configured value will
3309 * be considered for the following connection attempt.
3310 * If the NSS is updated after the connection, the updated NSS value
3311 * is notified to the peer using the Operating Mode Notification/Spatial
3312 * Multiplexing Power Save frame.
3313 * The TX NSS value configured after the connection shall not be greater
3314 * than the value negotiated during the connection. Any such higher
3315 * value configuration shall be treated as invalid configuration by
3316 * the driver. This attribute shall be configured along with
3317 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
3318 * configuration (such as 2X2 or 1X1) or the asymmetric
3319 * configuration (such as 1X2).
3320 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3321 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
3322 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
3323 */
3324 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
3325
3326 /* 8-bit unsigned value. This attribute is used to dynamically configure
3327 * the number of spatial streams used for receiving the data. When
3328 * configured in the disconnected state, the configured value will
3329 * be considered for the following connection attempt.
3330 * If the NSS is updated after the connection, the updated NSS value
3331 * is notified to the peer using the Operating Mode Notification/Spatial
3332 * Multiplexing Power Save frame.
3333 * The RX NSS value configured after the connection shall not be greater
3334 * than the value negotiated during the connection. Any such higher
3335 * value configuration shall be treated as invalid configuration by
3336 * the driver. This attribute shall be configured along with
3337 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
3338 * configuration (such as 2X2 or 1X1) or the asymmetric
3339 * configuration (such as 1X2).
3340 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3341 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
3342 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
3343 */
3344 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
3345
Hai Shaloma20dcd72022-02-04 13:43:00 -08003346 /*
3347 * 8-bit unsigned value. This attribute, when set, indicates whether the
3348 * specified interface is the primary STA interface when there are more
3349 * than one STA interfaces concurrently active.
3350 *
3351 * This configuration helps the firmware/hardware to support certain
3352 * features (e.g., roaming) on this primary interface, if the same
3353 * cannot be supported on the concurrent STA interfaces simultaneously.
3354 *
3355 * This configuration is only applicable for a single STA interface on
3356 * a device and gives the priority for it only over other concurrent STA
3357 * interfaces.
3358 *
3359 * If the device is a multi wiphy/soc, this configuration applies to a
3360 * single STA interface across the wiphys.
3361 *
3362 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
3363 */
3364 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
3365
3366 /*
3367 * 8-bit unsigned value. This attribute can be used to configure the
3368 * driver to enable/disable FT-over-DS feature. Possible values for
3369 * this attribute are 1-Enable and 0-Disable.
3370 */
3371 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
3372
3373 /*
3374 * 8-bit unsigned value. This attribute can be used to configure the
3375 * firmware to enable/disable ARP/NS offload feature. Possible values
3376 * for this attribute are 0-Disable and 1-Enable.
3377 *
3378 * This attribute is only applicable for STA/P2P-Client interface,
3379 * and is optional, default behavior is ARP/NS offload enabled.
3380 *
3381 * This attribute can be set in disconnected and connected state, and
3382 * will restore to the default behavior if the interface is closed.
3383 */
3384 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
3385
Sunil8cd6f4d2022-06-28 18:40:46 +00003386 /*
3387 * 8-bit unsigned value. This attribute can be used to configure the
3388 * data path mode to be followed for audio traffic. Possible values
3389 * are defined in enum qca_wlan_audio_data_path.
Sunil Ravi640215c2023-06-28 23:08:09 +00003390 *
3391 * This attribute is used only when the driver advertises support for
3392 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +00003393 */
3394 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
3395
Sunil Ravi89eba102022-09-13 21:04:37 -07003396 /*
3397 * 8-bit unsigned value. This attribute can be used to configure the
3398 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
3399 * this attribute are defined in the enum qca_wlan_dbam_config.
3400 */
3401 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
3402
Sunil Ravi77d572f2023-01-17 23:58:31 +00003403 /* 8-bit unsigned value. This attribute takes the QoS/access category
3404 * value represented by the enum qca_wlan_ac_type and expects the driver
3405 * to upgrade the UDP frames of BE or BK access category to this access
3406 * category. This attribute will not modify UDP frames of VO or VI
3407 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
3408 * attribute.
3409 *
3410 * This will override the DSCP value configured in the frame with the
3411 * intention to only upgrade the access category. That said, it is not
3412 * intended to downgrade the access category for the frames.
3413 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3414 * disabled, as BK is of the lowest priority and an upgrade to it does
3415 * not result in any changes for the frames.
3416 *
3417 * This attribute behavior is similar to
3418 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
3419 * only UDP frames of BE or BK access category are upgraded and not
3420 * UDP frames of VI or VO access category.
3421 *
3422 * This attribute is not recommended to be used as it blindly forces all
3423 * UDP packets of BE or BK access category to a higher access category
3424 * which could impact the traffic pattern of all apps using UDP and can
3425 * cause unknown behavior.
3426 */
3427 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
3428
3429 /* 8-bit unsigned value to configure the driver to enable/disable the
3430 * periodic sounding for Tx beamformer functionality. The default
3431 * behavior uses algorithm to do sounding based on packet stats.
3432 *
3433 * 0 - Default behavior.
3434 * 1 - Enable the periodic sounding for Tx beamformer.
3435 */
3436 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
3437
3438 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
3439 * userspace sends this information to the driver/firmware to configure
3440 * wfc state. The driver/firmware uses this information to
3441 * optimize power savings, rate adaption, roaming, etc.
3442 *
3443 * 1 - wfc is on.
3444 * 0 - wfc is off.
3445 */
3446 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
3447
3448 /* 8-bit unsigned value to configure the driver to enable/disable the
3449 * EHT EML capability in management frame EHT capabilities.
3450 * 1 - Enable, 0 - Disable.
3451 */
3452 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
3453
3454 /* 8-bit unsigned value to configure the driver with EHT MLO max
3455 * simultaneous links to be used for MLO connection.
3456 * The range of the value is 0 to 14.
3457 */
3458 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
3459
3460 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003461 * number of links to be used for MLO connection. Value 0 restores the
3462 * default value of the maximum MLO links capability of the device.
3463 * The range of the value is 0 to 15.
3464 *
3465 * 0 - Restore default device limit.
3466 * 1 to 15 - Set the maximum number of links to be used for an MLO
3467 * connection.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003468 */
3469 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
3470
3471 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
3472 * Uses enum qca_wlan_eht_mlo_mode values.
3473 */
3474 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
3475
Sunil Ravi640215c2023-06-28 23:08:09 +00003476 /* Nested attribute with frequencies in u32 attributes to configure a
3477 * list of allowed 20 MHz channel center frequencies in MHz for AP
3478 * operation. Whenever performing a channel selection operation, the
3479 * driver shall generate a new list based on this provided list by
3480 * filtering out channels that cannot be used at that time due to
3481 * regulatory or other constraints. The resulting list is used as the
3482 * list of all allowed channels, i.e., operation on any channel that is
3483 * not included is not allowed, whenever performing operations like ACS
3484 * and DFS.
3485 *
3486 * Userspace shall configure this before starting the AP and the
3487 * configuration is valid only from the next BSS start and until the
3488 * BSS is stopped. The driver shall clear this configuration when the
3489 * AP is stopped and fall back to the default behavior for subsequent
3490 * AP operation.
3491 *
3492 * The default behavior when this configuration is not applicable is the
3493 * driver can choose any of the channels supported by the hardware
3494 * except the channels that cannot be used due to regulatory or other
3495 * constraints.
3496 *
3497 * The driver shall reject this configuration if done after the AP is
3498 * started. This attribute can be used to specify user's choice of
3499 * frequencies and static puncture channel list, etc.
3500 */
3501 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3502
3503 /* Nested attribute to indicate EHT MLO links to be forced active.
3504 * It contains link MAC address attributes. These nested attributes are
3505 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3506 * MLO links corresponding to the indicated link MAC addresses.
3507 * Subsequently, the links corresponding to the link MAC addresses that
3508 * are not indicated are forced inactive.
3509 */
3510 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3511
3512 /* 8-bit unsigned value to configure EMLSR mode entry or exit.
3513 * Uses enum qca_wlan_emlsr_mode values.
3514 */
3515 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3516
3517 /* 8-bit unsigned value to configure the channel bandwidth
3518 * for CTS frame transmission during the dymamic bandwidth
3519 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3520 * 10.3.2.9 CTS and DMG CTS procedure.
3521 * This configuration is used for testing purposes.
3522 *
3523 * This uses values defined in enum nl80211_chan_width.
3524 */
3525 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3526
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003527 /* 8-bit unsigned value. This attribute is used to dynamically
3528 * enable/suspend trigger based UL MU transmission.
3529 * This is supported in STA mode and the device sends Operating
3530 * Mode Indication to inform the change as described in
3531 * IEEE Std 802.11ax-2021, 26.9.
3532 *
3533 * This attribute can be configured when the STA is associated
3534 * to an AP and the configuration is maintained until the current
3535 * association terminates.
3536 *
3537 * By default all UL MU transmissions are enabled.
3538 *
3539 * Uses enum qca_ul_mu_config values.
3540 */
3541 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
3542
3543 /* 8-bit unsigned value. Optionally specified along with
3544 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
3545 * state. This configuration is applicable only for the current
3546 * connection. This configuration not allowed in disconnected state.
3547 * This configuration can be sent inside
3548 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3549 * supported channel width update type per-MLO link.
3550 *
3551 * Uses enum qca_chan_width_update_type values.
3552 */
3553 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
3554
3555 /* 8-bit unsigned value to set EPCS (Emergency Preparedness
3556 * Communications Service) feature capability
3557 * 1 - Enable, 0 - Disable.
3558 *
3559 * This configuration is used for testing purposes.
3560 */
3561 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
3562
3563 /* 8-bit unsigned value to enable/disable EPCS priority access
3564 * 1 - Enable, 0 - Disable.
3565 * The EPCS priority access shall be enabled only when EPCS feature
3566 * capability is also enabled (see
3567 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
3568 *
3569 * This configuration is used for testing purposes.
3570 */
3571 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
3572
3573 /* 8-bit unsigned value. Used to specify the MLO link ID of a link
3574 * that is being configured. This attribute must be included in each
3575 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
3576 * may be included without nesting to indicate the link that is the
3577 * target of other configuration attributes.
3578 */
3579 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
3580
3581 /* Array of nested links each identified by
3582 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
3583 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
3584 * added for the attributes in enum qca_wlan_vendor_attr_config to
3585 * support per-MLO link configuration through
3586 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
3587 *
3588 * Userspace can configure a single link or multiple links with this
3589 * attribute by nesting the corresponding configuration attributes and
3590 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3591 *
3592 * Userspace can fetch the configuration attribute values for a single
3593 * link or multiple links with this attribute by nesting the
3594 * corresponding configuration attributes and
3595 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3596 *
3597 * For STA interface, this attribute is applicable only in connected
3598 * state when the current connection is MLO capable. The valid values of
3599 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
3600 * connected AP MLD links.
3601 *
3602 * For AP interface, this configuration applicable only after adding
3603 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
3604 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
3605 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
3606 * the AP interface.
3607 */
3608 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
3609
3610 /* 16-bit unsigned value to configure power save inactivity timeout in
3611 * milliseconds.
3612 *
3613 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
3614 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
3615 *
3616 * This attribute shall be configured along with
3617 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
3618 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3619 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3620 */
3621 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
3622
3623 /* 16-bit unsigned value to configure speculative wake interval in
3624 * milliseconds.
3625 *
3626 * STA speculatively wakes up to look for buffered data by AP at
3627 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
3628 * entering into power save. If configured zero, STA wakes up at
3629 * upcoming DTIM beacon.
3630 *
3631 * This attribute shall be configured along with
3632 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3633 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3634 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3635 */
3636 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
3637
3638 /*
3639 * 16-bit unsigned value to configure TX max A-MPDU count.
3640 *
3641 * For STA interface, this attribute is applicable only in connected
3642 * state, peer MAC address is not required to be provided.
3643 *
3644 * For AP interface, this attribute is applicable only in started
3645 * state and one of the associated peer STAs must be specified with
3646 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
3647 * association, the peer MAC address provided is the link address of
3648 * the non-AP MLD.
3649 *
3650 * This attribute runtime configures the TX maximum aggregation size.
3651 * The value must be in range of 1 to BA window size for the specific
3652 * peer.
3653 */
3654 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
3655
3656 /*
3657 * 8-bit unsigned value to configure TID-to-link mapping negotiation
3658 * type.
3659 * Uses enum qca_wlan_ttlm_negotiation_support values.
3660 *
3661 * This value applies to the complete AP/non-AP MLD interface, and the
3662 * MLD advertises it within the Basic Multi-Link element in the
3663 * association frames. If a new value is configured during an active
3664 * connection, it will take effect in the subsequent associations and
3665 * is not reset during disconnection.
3666 *
3667 * This attribute is used for testing purposes.
3668 */
3669 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
3670
3671 /* 8-bit unsigned value.
3672 *
3673 * This attribute configures a traffic shaping mode
3674 * applied during coex scenarios.
3675 * By default all coex traffic shaping modes are enabled,
3676 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
3677 * To shape traffic, STA may enter in power save mode
3678 * and AP may send CTS-to-self frame.
3679 *
3680 * Uses enum qca_coex_traffic_shaping_mode values.
3681 */
3682 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
3683
Sunil Ravib0ac25f2024-07-12 01:42:03 +00003684 /* 8-bit unsigned value.
3685 *
3686 * This attribute is used to specify whether an associated peer is a QCA
3687 * device. The associated peer is specified with
3688 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
3689 * address of the peer is used.
3690 * 1 - QCA device, 0 - non-QCA device.
3691 */
3692 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
3693
Sunil Ravi99c035e2024-07-12 01:42:03 +00003694 /* 8-bit unsigned value to configure BTM support.
3695 *
3696 * The attribute is applicable only for STA interface. Uses enum
3697 * qca_wlan_btm_support values. This configuration is not allowed in
3698 * connected state.
3699 */
3700 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
3701
Sunil Ravi7f769292024-07-23 22:21:32 +00003702 /* 16-bit unsigned value to configure client's keep-alive interval in
3703 * seconds. The driver will reduce the keep-alive interval to this
3704 * configured value if the AP advertises BSS maximum idle period and if
3705 * that BSS max idle period is larger than this configured value. If the
3706 * AP does not advertise a maximum value, the configured value will be
3707 * used as a keep-alive period for unprotected frames.
3708 *
3709 * This configuration is applicable only during the STA's current
3710 * association.
3711 */
3712 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
3713
3714 /* 8-bit unsigned value to configure reduced power scan mode.
3715 *
3716 * This attribute is used to configure the driver to optimize power
3717 * during scan. For example, the driver can switch to 1x1 from 2x2 mode
3718 * for additional power save.
3719 *
3720 * 1 - Enable reduced power scan mode.
3721 * 0 - Disable reduced power scan mode.
3722 */
3723 QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109,
3724
3725 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3726 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110,
3727
3728 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3729 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111,
3730
3731 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3732 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112,
3733
3734 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3735 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113,
3736
3737 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3738 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114,
3739
3740 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3741 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115,
3742
3743 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3744 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116,
3745
3746 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3747 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117,
3748
3749 /* 16-bit unsigned value. This attribute is used to dynamically
3750 * configure the time duration of data stall detection. Unit is
3751 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the
3752 * value is 0, the previously configured value is cleared. The driver
3753 * rejects this configuration if the value is out of range. This
3754 * configuration is effective for all connections on the chip. If the
3755 * duration is greater than this configuration and consecutive TX no ack
3756 * count is greater than
3757 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
3758 * data stall event is sent to userspace.
3759 */
3760 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118,
3761
3762 /* 16-bit unsigned value. This attribute is used to dynamically
3763 * configure the threshold of data stall detection. Valid value is 0 or
3764 * greater than 10. if the value is 0, the previously configured value
3765 * is cleared. The driver rejects this configuration if the value is out
3766 * of range. This configuration is effective for all connections on the
3767 * chip. If consecutive TX no ack count is greater than this
3768 * configuration and duration is greater than
3769 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION,
3770 * data stall event is sent to userspace.
3771 */
3772 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119,
3773
3774 /* 8-bit unsigned value to configure the interface offload type
3775 *
3776 * This attribute is used to configure the interface offload capability.
3777 * User can configure software based acceleration, hardware based
3778 * acceleration, or a combination of both using this option. More
3779 * details on each option is described under the enum definition below.
3780 * Uses enum qca_wlan_intf_offload_type for values.
3781 */
3782 QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120,
3783
3784 /* 8-bit unsigned integer to configure the driver to follow AP's
3785 * preference values to select a roam candidate from BTM request.
3786 *
3787 * This attribute is used to configure the driver to select the roam
3788 * candidate based on AP advertised preference values. If not set,
3789 * the driver uses its internal scoring algorithm to do the same.
3790 *
3791 * 1 - STA follows AP's preference values to select a roam candidate
3792 * 0 - STA uses internal scoring algorithm to select a roam candidate
3793 */
3794 QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121,
3795
Sunil Ravic0f5d412024-09-11 22:12:49 +00003796 /* 16-bit unsigned value to configure P2P GO beacon interval in TUs.
3797 * This attribute is used to update the P2P GO beacon interval
3798 * dynamically.
3799 *
3800 * Updating the beacon interval while the GO continues operating the BSS
3801 * will likely interoperability issues and is not recommended to be
3802 * used. All the values should be multiples of the minimum used value to
3803 * minimize risk of issues.
3804 */
3805 QCA_WLAN_VENDOR_ATTR_CONFIG_P2P_GO_BEACON_INTERVAL = 122,
3806
Sunil Ravi79e6c4f2025-01-04 00:47:06 +00003807 /* 8-bit unsigned value. Disable DFS owner capability
3808 * 1: disable DFS owner capability in the driver.
3809 * 0: reset DFS owner capability to the default DFS owner capability of
3810 * the driver.
3811 *
3812 * If DFS owner capability is disabled, the driver will not start AP
3813 * mode operations on DFS channels, and all the features depending on
3814 * DFS owner functionality will not be supported.
3815 */
3816 QCA_WLAN_VENDOR_ATTR_CONFIG_DFS_OWNER_DISABLE = 123,
3817
3818 /* 16-bit unsigned value. For probing RSSI on other antennas, this
3819 * attribute specifies the number of WLAN probes.
3820 */
3821 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_WLAN = 124,
3822
3823 /* 16-bit unsigned value. For probing RSSI on other antennas, this
3824 * attribute specifies the number of BT probes.
3825 */
3826 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_BT = 125,
3827
3828 /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
3829 * threshold. The firmware will start to probe RSSI on other antenna
3830 * if WLAN RSSI is lower than the threshold.
3831 */
3832 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_WLAN_RSSI_THRESHOLD = 126,
3833
3834 /* 16-bit unsigned value. This attribute specifies the BT RSSI
3835 * threshold. The firmware will start to probe RSSI on other antenna
3836 * if BT RSSI is lower than the threshold.
3837 */
3838 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_BT_RSSI_THRESHOLD = 127,
3839
3840 /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
3841 * difference. The firmware will select a better antenna if WLAN RSSI
3842 * difference is larger than the value.
3843 */
3844 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_WLAN_RSSI_DIFF = 128,
3845
3846 /* 16-bit unsigned value. This attribute specifies the BT RSSI
3847 * difference. The firmware will select a better antenna if WLAN RSSI
3848 * difference larger than the value.
3849 */
3850 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_BT_RSSI_DIFF = 129,
3851
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003852 /* keep last */
3853 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3854 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3855 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3856};
3857
Hai Shalomfdcde762020-04-02 11:19:20 -07003858/* Compatibility defines for previously used incorrect enum
3859 * qca_wlan_vendor_attr_config names. These values should not be used in any
3860 * new implementation. */
3861#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3862 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3863#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3864 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3865
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003866/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003867 * enum qca_ul_mu_config - UL MU configuration
3868 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
3869 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
3870 */
3871enum qca_ul_mu_config {
3872 QCA_UL_MU_SUSPEND = 0,
3873 QCA_UL_MU_ENABLE = 1,
3874};
3875
3876/**
Sunil Ravi89eba102022-09-13 21:04:37 -07003877 * enum qca_dbam_config - Specifies DBAM config mode
3878 * @QCA_DBAM_DISABLE: Firmware disables DBAM
3879 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3880 * internal criteria are met.
3881 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3882 */
3883enum qca_dbam_config {
3884 QCA_DBAM_DISABLE = 0,
3885 QCA_DBAM_ENABLE = 1,
3886 QCA_DBAM_FORCE_ENABLE = 2,
3887};
3888
3889/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003890 * enum qca_wlan_ani_setting - ANI setting type
3891 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3892 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3893 */
3894enum qca_wlan_ani_setting {
3895 QCA_WLAN_ANI_SETTING_AUTO = 0,
3896 QCA_WLAN_ANI_SETTING_FIXED = 1,
3897};
3898
3899/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003900 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07003901 *
3902 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3903 * Channel number on which Access Point should restart.
3904 * Note: If both the driver and user space application supports the 6 GHz band,
3905 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3906 * should be used.
3907 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3908 * is still used if either of the driver or user space application doesn't
3909 * support the 6 GHz band.
3910 *
3911 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3912 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003913 */
3914enum qca_wlan_vendor_attr_sap_config {
3915 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07003916 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3917
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003918 /* List of frequencies on which AP is expected to operate.
3919 * This is irrespective of ACS configuration. This list is a priority
3920 * based one and is looked for before the AP is created to ensure the
3921 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3922 * the system.
3923 */
3924 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07003925 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003926
3927 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3928 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3929 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3930};
3931
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003932/**
3933 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3934 * conditional channel switch
3935 */
3936enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3937 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3938 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07003939 * order)
3940 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003941 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3942 /* Status of the conditional switch (u32).
3943 * 0: Success, Non-zero: Failure
3944 */
3945 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3946
3947 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3948 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3949 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3950};
3951
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003952/**
3953 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003954 *
3955 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3956 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3957 * for the available values.
3958 *
3959 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3960 * value to specify the GPIO number.
3961 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3962 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3963 *
3964 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3965 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3966 * for the available values.
3967 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3968 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3969 *
Hai Shalom60840252021-02-19 19:02:11 -08003970 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003971 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3972 * for the available values.
3973 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003974 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3975 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3976 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3977 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003978 *
Hai Shalom60840252021-02-19 19:02:11 -08003979 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003980 * value to specify the GPIO interrupt mode. Please refer to enum
3981 * qca_gpio_interrupt_mode for the available values.
3982 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003983 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3984 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3985 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3986 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003987 *
Hai Shalom60840252021-02-19 19:02:11 -08003988 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003989 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3990 * for the available values.
3991 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003992 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3993 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3994 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3995 * attribute is present.
3996 *
3997 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3998 * Value to specify the mux config. Meaning of a given value is dependent
3999 * on the target chipset and GPIO pin. Must be of the range 0-15.
4000 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4001 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
4002 *
4003 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
4004 * Value to specify the drive, refer to enum qca_gpio_drive.
4005 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4006 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
4007 *
4008 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
4009 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
4010 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
4011 * other parameters for the given GPIO will be obtained from internal
4012 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
4013 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004014 */
4015enum qca_wlan_gpio_attr {
4016 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
4017 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07004018 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004019 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07004020 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004021 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07004022 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004023 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07004024 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004025 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07004026 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
4027 /* Unsigned 32-bit attribute for GPIO direction to configure */
4028 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08004029 /* Unsigned 32-bit attribute for GPIO mux config */
4030 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
4031 /* Unsigned 32-bit attribute for GPIO drive */
4032 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
4033 /* Flag attribute for using internal GPIO configuration */
4034 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004035
4036 /* keep last */
4037 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
4038 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
4039 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
4040};
4041
4042/**
Hai Shalom899fcc72020-10-19 14:38:18 -07004043 * enum gpio_cmd_type - GPIO configuration command type
4044 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
4045 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
4046 */
4047enum qca_gpio_cmd_type {
4048 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
4049 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
4050};
4051
4052/**
4053 * enum qca_gpio_pull_type - GPIO pull type
4054 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
4055 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
4056 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
4057 */
4058enum qca_gpio_pull_type {
4059 QCA_WLAN_GPIO_PULL_NONE = 0,
4060 QCA_WLAN_GPIO_PULL_UP = 1,
4061 QCA_WLAN_GPIO_PULL_DOWN = 2,
4062 QCA_WLAN_GPIO_PULL_MAX,
4063};
4064
4065/**
4066 * enum qca_gpio_direction - GPIO direction
4067 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
4068 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
4069 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
4070 */
4071enum qca_gpio_direction {
4072 QCA_WLAN_GPIO_INPUT = 0,
4073 QCA_WLAN_GPIO_OUTPUT = 1,
4074 QCA_WLAN_GPIO_DIR_MAX,
4075};
4076
4077/**
4078 * enum qca_gpio_value - GPIO Value
4079 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
4080 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
4081 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
4082 */
4083enum qca_gpio_value {
4084 QCA_WLAN_GPIO_LEVEL_LOW = 0,
4085 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
4086 QCA_WLAN_GPIO_LEVEL_MAX,
4087};
4088
4089/**
4090 * enum gpio_interrupt_mode - GPIO interrupt mode
4091 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
4092 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
4093 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
4094 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
4095 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
4096 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
4097 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
4098 */
4099enum qca_gpio_interrupt_mode {
4100 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
4101 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
4102 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
4103 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
4104 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
4105 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
4106 QCA_WLAN_GPIO_INTMODE_MAX,
4107};
4108
4109/**
Hai Shalom60840252021-02-19 19:02:11 -08004110 * enum qca_gpio_drive - GPIO drive
4111 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
4112 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
4113 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
4114 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
4115 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
4116 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
4117 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
4118 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
4119 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
4120 */
4121enum qca_gpio_drive {
4122 QCA_WLAN_GPIO_DRIVE_2MA = 0,
4123 QCA_WLAN_GPIO_DRIVE_4MA = 1,
4124 QCA_WLAN_GPIO_DRIVE_6MA = 2,
4125 QCA_WLAN_GPIO_DRIVE_8MA = 3,
4126 QCA_WLAN_GPIO_DRIVE_10MA = 4,
4127 QCA_WLAN_GPIO_DRIVE_12MA = 5,
4128 QCA_WLAN_GPIO_DRIVE_14MA = 6,
4129 QCA_WLAN_GPIO_DRIVE_16MA = 7,
4130 QCA_WLAN_GPIO_DRIVE_MAX,
4131};
4132
4133/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07004134 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
4135 * MSDUQ depth threshold per peer per tid in the target
4136 *
4137 * Associated Vendor Command:
4138 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
4139 */
4140enum qca_wlan_set_qdepth_thresh_attr {
4141 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
4142 /* 6-byte MAC address */
4143 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
4144 /* Unsigned 32-bit attribute for holding the TID */
4145 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
4146 /* Unsigned 32-bit attribute for holding the update mask
4147 * bit 0 - Update high priority msdu qdepth threshold
4148 * bit 1 - Update low priority msdu qdepth threshold
4149 * bit 2 - Update UDP msdu qdepth threshold
4150 * bit 3 - Update Non UDP msdu qdepth threshold
4151 * rest of bits are reserved
4152 */
4153 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
4154 /* Unsigned 32-bit attribute for holding the threshold value */
4155 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
4156
4157 /* keep last */
4158 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
4159 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
4160 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
4161};
4162
4163/**
Hai Shalomc3565922019-10-28 11:58:20 -07004164 * enum qca_acs_dfs_mode - Defines different types of DFS channel
4165 * configurations for ACS operation.
4166 *
4167 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
4168 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
4169 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
4170 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
4171 */
4172enum qca_acs_dfs_mode {
4173 QCA_ACS_DFS_MODE_NONE = 0,
4174 QCA_ACS_DFS_MODE_ENABLE = 1,
4175 QCA_ACS_DFS_MODE_DISABLE = 2,
4176 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
4177};
4178
4179/**
4180 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
4181 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
4182 *
4183 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
4184 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
4185 *
4186 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
4187 * channel number hint for ACS operation, if valid channel is specified then
4188 * ACS operation gives priority to this channel.
4189 * Note: If both the driver and user space application supports the 6 GHz band,
4190 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
4191 * should be used.
4192 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
4193 * is still used if either of the driver or user space application doesn't
4194 * support the 6 GHz band.
4195 *
4196 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
4197 * Channel center frequency (MHz) hint for ACS operation, if a valid center
4198 * frequency is specified, ACS operation gives priority to this channel.
4199 */
4200enum qca_wlan_vendor_attr_acs_config {
4201 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
4202 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
4203 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
4204 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
4205
4206 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
4207 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
4208 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
4209};
4210
4211/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004212 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
4213 */
4214enum qca_wlan_vendor_attr_get_hw_capability {
4215 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
4216 /* Antenna isolation
4217 * An attribute used in the response.
4218 * The content of this attribute is encoded in a byte array. Each byte
4219 * value is an antenna isolation value. The array length is the number
4220 * of antennas.
4221 */
4222 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
4223 /* Request HW capability
4224 * An attribute used in the request.
4225 * The content of this attribute is a u32 array for one or more of
4226 * hardware capabilities (attribute IDs) that are being requested. Each
4227 * u32 value has a value from this
4228 * enum qca_wlan_vendor_attr_get_hw_capability
4229 * identifying which capabilities are requested.
4230 */
4231 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
4232
4233 /* keep last */
4234 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
4235 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
4236 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
4237};
4238
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004239/**
4240 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
4241 * offload which is an extension for LL_STATS.
4242 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
4243 * If MAC counters do not exceed the threshold, FW will report monitored
4244 * link layer counters periodically as this setting. The first report is
4245 * always triggered by this timer.
4246 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
4247 * For each MAC layer counter, FW holds two copies. One is the current value.
4248 * The other is the last report. Once a current counter's increment is larger
4249 * than the threshold, FW will indicate that counter to host even if the
4250 * monitoring timer does not expire.
4251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
4252 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
4253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
4254 * failure code.
4255 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
4256 * 1: TX packet discarded
4257 * 2: No ACK
4258 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
4260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
4261 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
4262 * Threshold for all monitored parameters. If per counter dedicated threshold
4263 * is not enabled, this threshold will take effect.
4264 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
4265 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
4266 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
4267 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
4268 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
4269 * Bit0: TX counter unit in MSDU
4270 * Bit1: TX counter unit in MPDU
4271 * Bit2: TX counter unit in PPDU
4272 * Bit3: TX counter unit in byte
4273 * Bit4: Dropped MSDUs
4274 * Bit5: Dropped Bytes
4275 * Bit6: MPDU retry counter
4276 * Bit7: MPDU failure counter
4277 * Bit8: PPDU failure counter
4278 * Bit9: MPDU aggregation counter
4279 * Bit10: MCS counter for ACKed MPDUs
4280 * Bit11: MCS counter for Failed MPDUs
4281 * Bit12: TX Delay counter
4282 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
4283 * Bit0: MAC RX counter unit in MPDU
4284 * Bit1: MAC RX counter unit in byte
4285 * Bit2: PHY RX counter unit in PPDU
4286 * Bit3: PHY RX counter unit in byte
4287 * Bit4: Disorder counter
4288 * Bit5: Retry counter
4289 * Bit6: Duplication counter
4290 * Bit7: Discard counter
4291 * Bit8: MPDU aggregation size counter
4292 * Bit9: MCS counter
4293 * Bit10: Peer STA power state change (wake to sleep) counter
4294 * Bit11: Peer STA power save counter, total time in PS mode
4295 * Bit12: Probe request counter
4296 * Bit13: Other management frames counter
4297 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
4298 * Bit0: Idle time
4299 * Bit1: TX time
4300 * Bit2: time RX in current bss
4301 * Bit3: Out of current bss time
4302 * Bit4: Wireless medium busy time
4303 * Bit5: RX in bad condition time
4304 * Bit6: TX in bad condition time
4305 * Bit7: time wlan card not available
4306 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
4307 * Bit0: Per channel SNR counter
4308 * Bit1: Per channel noise floor counter
4309 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
4310 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
4311 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
4312 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
4313 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
4314 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
4315 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
4316 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
4317 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
4318 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
4319 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
4320 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
4321 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
4322 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
4323 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
4324 * aggregation stats buffer length
4325 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
4326 * buffer for ACKed MPDUs.
4327 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
4328 * buffer for failed MPDUs.
4329 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
4330 * length of delay stats array.
4331 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
4332 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
4333 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
4334 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
4335 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
4336 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
4337 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
4338 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
4339 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
4340 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
4341 * flagged as retransmissions
4342 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
4343 * flagged as duplicated
4344 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
4345 * packets discarded
4346 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
4347 * stats buffer.
4348 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
4349 * stats buffer.
4350 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
4351 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
4352 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
4353 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
4354 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
4355 * requests received
4356 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
4357 * frames received
4358 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
4359 * there is no TX, nor RX, nor interference.
4360 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
4361 * transmitting packets.
4362 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
4363 * for receiving.
4364 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
4365 * interference detected.
4366 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
4367 * receiving packets with errors.
4368 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
4369 * TX no-ACK.
4370 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
4371 * the chip is unable to work in normal conditions.
4372 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
4373 * receiving packets in current BSS.
4374 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
4375 * receiving packets not in current BSS.
4376 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
4377 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
4378 * This is a container for per antenna signal stats.
4379 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
4380 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
4381 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
4382 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07004383 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
4384 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
4385 * message, user layer APP could call gettimeofday to get another
4386 * timestamp and calculate transfer delay for the message.
4387 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
4388 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07004389 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
4390 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004391 */
4392enum qca_wlan_vendor_attr_ll_stats_ext {
4393 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
4394
4395 /* Attributes for configurations */
4396 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
4397 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
4398
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004399 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004400 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
4401
4402 /* TX failure event */
4403 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
4404 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
4405 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
4406
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004407 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
4408 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
4409
4410 /* MAC counters */
4411 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
4412 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
4413 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
4414 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
4415 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
4416 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
4417 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
4418 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
4419 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
4420 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
4421 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
4422 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
4423
4424 /* Sub-attributes for PEER_AC_TX */
4425 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
4426 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
4427 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
4428 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
4429 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
4430 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
4431 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
4432 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
4433 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
4434 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
4435 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
4436 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
4437 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
4438 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
4439 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
4440 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
4441 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
4442
4443 /* Sub-attributes for PEER_AC_RX */
4444 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
4445 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
4446 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
4447 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
4448 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
4449 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
4450 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
4451 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
4452 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
4453 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
4454 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
4455 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
4456 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
4457 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
4458 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
4459 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
4460
4461 /* Sub-attributes for CCA_BSS */
4462 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
4463 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
4464 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
4465 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
4466 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
4467 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
4468 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
4469
4470 /* sub-attribute for BSS_RX_TIME */
4471 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
4472 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
4473
4474 /* Sub-attributes for PEER_SIGNAL */
4475 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
4476 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
4477 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
4478 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
4479
4480 /* Sub-attributes for IFACE_BSS */
4481 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
4482 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
4483
Roshan Pius3a1667e2018-07-03 15:17:14 -07004484 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
4485 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07004486 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004487
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004488 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
4489 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
4490 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
4491};
4492
4493/* Attributes for FTM commands and events */
4494
4495/**
4496 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
4497 *
4498 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
4499 * enum qca_wlan_vendor_attr_loc_capa_flags.
4500 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
4501 * of measurement sessions that can run concurrently.
4502 * Default is one session (no session concurrency).
4503 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
4504 * peers that are supported in running sessions. For example,
4505 * if the value is 8 and maximum number of sessions is 2, you can
4506 * have one session with 8 unique peers, or 2 sessions with 4 unique
4507 * peers each, and so on.
4508 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
4509 * of bursts per peer, as an exponent (2^value). Default is 0,
4510 * meaning no multi-burst support.
4511 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
4512 * of measurement exchanges allowed in a single burst.
4513 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
4514 * types. A bit mask (unsigned 32 bit value), each bit corresponds
4515 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
4516 */
4517enum qca_wlan_vendor_attr_loc_capa {
4518 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
4519 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
4520 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
4521 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
4522 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
4523 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
4524 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
4525 /* keep last */
4526 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
4527 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
4528 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
4529};
4530
4531/**
4532 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
4533 *
4534 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
4535 * can be configured as an FTM responder (for example, an AP that
4536 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
4537 * will be supported if set.
4538 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
4539 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
4540 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004541 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004542 * supports immediate (ASAP) response.
4543 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
4544 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
4545 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
4546 * requesting AOA measurements as part of an FTM session.
4547 */
4548enum qca_wlan_vendor_attr_loc_capa_flags {
4549 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
4550 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
4551 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
4552 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
4553 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
4554};
4555
4556/**
4557 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
4558 * a single peer in a measurement session.
4559 *
4560 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
4561 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
4562 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004563 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004564 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
4565 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
4566 * list of supported attributes.
4567 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
4568 * secure measurement.
4569 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
4570 * measurement every <value> bursts. If 0 or not specified,
4571 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004572 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
4573 * the measurement frames are exchanged. Optional; if not
4574 * specified, try to locate the peer in the kernel scan
4575 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004576 */
4577enum qca_wlan_vendor_attr_ftm_peer_info {
4578 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
4579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
4580 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004581 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004582 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
4583 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004584 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004585 /* keep last */
4586 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
4587 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
4588 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
4589};
4590
4591/**
4592 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
4593 * per-peer
4594 *
4595 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
4596 * immediate (ASAP) response from peer.
4597 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
4598 * LCI report from peer. The LCI report includes the absolute
4599 * location of the peer in "official" coordinates (similar to GPS).
4600 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
4601 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
4602 * Location civic report from peer. The LCR includes the location
4603 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
4604 * 11.24.6.7 for more information.
4605 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
4606 * request a secure measurement.
4607 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
4608 */
4609enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
4610 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
4611 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
4612 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
4613 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
4614};
4615
4616/**
4617 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
4618 *
4619 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
4620 * to perform in a single burst.
4621 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
4622 * perform, specified as an exponent (2^value).
4623 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
4624 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
4625 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
4626 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
4627 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
4628 */
4629enum qca_wlan_vendor_attr_ftm_meas_param {
4630 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
4631 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
4632 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
4633 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
4634 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
4635 /* keep last */
4636 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
4637 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
4638 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
4639};
4640
4641/**
4642 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
4643 *
4644 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
4645 * peer.
4646 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
4647 * request for this peer.
4648 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
4649 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
4650 * to measurement results for this peer.
4651 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
4652 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
4653 * request failed and peer requested not to send an additional request
4654 * for this number of seconds.
4655 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
4656 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4657 * 9.4.2.22.10.
4658 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
4659 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4660 * 9.4.2.22.13.
4661 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
4662 * overridden some measurement request parameters. See
4663 * enum qca_wlan_vendor_attr_ftm_meas_param.
4664 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
4665 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
4666 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
4667 * results. Each entry is a nested attribute defined
4668 * by enum qca_wlan_vendor_attr_ftm_meas.
4669 */
4670enum qca_wlan_vendor_attr_ftm_peer_result {
4671 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
4672 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
4673 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
4674 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
4675 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
4676 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
4677 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
4678 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
4679 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
4680 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
4681 /* keep last */
4682 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
4683 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
4684 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
4685};
4686
4687/**
4688 * enum qca_wlan_vendor_attr_ftm_peer_result_status
4689 *
4690 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
4691 * will be provided. Peer may have overridden some measurement parameters,
4692 * in which case overridden parameters will be report by
4693 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
4694 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
4695 * of performing the measurement request. No more results will be sent
4696 * for this peer in this session.
4697 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
4698 * failed, and requested not to send an additional request for number
4699 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
4700 * attribute.
4701 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
4702 * failed. Request was not sent over the air.
4703 */
4704enum qca_wlan_vendor_attr_ftm_peer_result_status {
4705 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
4706 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
4707 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
4708 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
4709};
4710
4711/**
4712 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
4713 * for measurement result, per-peer
4714 *
4715 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
4716 * measurement completed for this peer. No more results will be reported
4717 * for this peer in this session.
4718 */
4719enum qca_wlan_vendor_attr_ftm_peer_result_flags {
4720 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
4721};
4722
4723/**
4724 * enum qca_vendor_attr_loc_session_status: Session completion status code
4725 *
4726 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
4727 * successfully.
4728 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
4729 * by request.
4730 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
4731 * was invalid and was not started.
4732 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
4733 * and did not complete normally (for example out of resources).
4734 */
4735enum qca_vendor_attr_loc_session_status {
4736 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
4737 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
4738 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
4739 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
4740};
4741
4742/**
4743 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
4744 *
4745 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
4746 * recorded by responder, in picoseconds.
4747 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4748 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
4749 * initiator, in picoseconds.
4750 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4751 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
4752 * initiator, in picoseconds.
4753 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4754 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
4755 * responder, in picoseconds.
4756 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4757 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
4758 * during this measurement exchange. Optional and will be provided if
4759 * the hardware can measure it.
4760 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
4761 * responder. Not always provided.
4762 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4763 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
4764 * responder. Not always provided.
4765 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4766 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
4767 * initiator. Not always provided.
4768 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4769 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
4770 * initiator. Not always provided.
4771 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07004772 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
4773 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004774 */
4775enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004776 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004777 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
4778 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
4779 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
4780 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
4781 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
4782 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
4783 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
4784 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
4785 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
4786 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
4787 /* keep last */
4788 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
4789 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
4790 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
4791};
4792
4793/**
4794 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
4795 *
4796 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
4797 * CIR (channel impulse response) path for each antenna.
4798 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
4799 * of the strongest CIR path for each antenna.
4800 */
4801enum qca_wlan_vendor_attr_aoa_type {
4802 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
4803 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
4804 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
4805};
4806
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004807/**
4808 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
4809 * validate encryption engine
4810 *
4811 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
4812 * This will be included if the request is for decryption; if not included,
4813 * the request is treated as a request for encryption by default.
4814 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
4815 * indicating the key cipher suite. Takes same values as
4816 * NL80211_ATTR_KEY_CIPHER.
4817 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
4818 * Key Id to be used for encryption
4819 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
4820 * Key (TK) to be used for encryption/decryption
4821 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4822 * Packet number to be specified for encryption/decryption
4823 * 6 bytes for TKIP/CCMP/GCMP.
4824 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4825 * representing the 802.11 packet (header + payload + FCS) that
4826 * needs to be encrypted/decrypted.
4827 * Encrypted/decrypted response from the driver will also be sent
4828 * to userspace with the same attribute.
4829 */
4830enum qca_wlan_vendor_attr_encryption_test {
4831 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4832 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4833 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4834 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4835 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4836 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4837 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4838
4839 /* keep last */
4840 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4841 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4842 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4843};
4844
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004845/**
4846 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4847 * sector for DMG RF sector operations.
4848 *
4849 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4850 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4851 */
4852enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4853 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4854 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4855 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4856};
4857
4858/**
Hai Shalom021b0b52019-04-10 11:17:58 -07004859 * enum qca_wlan_vendor_attr_fw_state - State of firmware
4860 *
4861 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4862 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4863 */
4864enum qca_wlan_vendor_attr_fw_state {
4865 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4866 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4867 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4868};
4869
4870/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004871 * BRP antenna limit mode
4872 *
4873 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4874 * antenna limit, BRP will be performed as usual.
4875 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4876 * antennas limit. the hardware may use less antennas than the
4877 * maximum limit.
4878 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4879 * use exactly the specified number of antennas for BRP.
4880 */
4881enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4882 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4883 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4884 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4885 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4886};
4887
4888/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004889 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4890 * DMG RF sector configuration for a single RF module.
4891 * The values are defined in a compact way which closely matches
4892 * the way it is stored in HW registers.
4893 * The configuration provides values for 32 antennas and 8 distribution
4894 * amplifiers, and together describes the characteristics of the RF
4895 * sector - such as a beam in some direction with some gain.
4896 *
4897 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4898 * of RF module for this configuration.
4899 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4900 * amplifier gain index. Unsigned 32 bit number containing
4901 * bits for all 32 antennas.
4902 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4903 * amplifier gain index. Unsigned 32 bit number containing
4904 * bits for all 32 antennas.
4905 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4906 * amplifier gain index. Unsigned 32 bit number containing
4907 * bits for all 32 antennas.
4908 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4909 * for first 16 antennas, 2 bits per antenna.
4910 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4911 * for last 16 antennas, 2 bits per antenna.
4912 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4913 * DTYPE values (3 bits) for each distribution amplifier, followed
4914 * by X16 switch bits for each distribution amplifier. There are
4915 * total of 8 distribution amplifiers.
4916 */
4917enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4918 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4919 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4920 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4921 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4922 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4923 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4924 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4925 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4926
4927 /* keep last */
4928 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4929 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4930 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4931};
4932
4933enum qca_wlan_vendor_attr_ll_stats_set {
4934 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4935 /* Unsigned 32-bit value */
4936 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4937 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4938 /* keep last */
4939 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4940 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4941 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4942};
4943
Sunil Ravi640215c2023-06-28 23:08:09 +00004944/**
4945 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4946 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4947 *
4948 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4949 *
4950 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4951 * radio statistics.
4952 *
4953 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4954 * statistics within radio statistics.
4955 *
4956 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4957 * radio statistics.
4958 *
4959 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4960 *
4961 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
4962 * within interface statistics.
4963 *
4964 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
4965 * interface statistics.
4966 *
4967 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
4968 * (min, max, avg) statistics within AC statistics.
4969 *
4970 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
4971 * on this interface.
4972 *
4973 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
4974 * statistics depending on the peer_mac.
4975 */
4976enum qca_wlan_ll_stats_clr_req_bitmap {
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004977 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
4978 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
4979 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
4980 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
4981 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
4982 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
4983 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
Sunil Ravi640215c2023-06-28 23:08:09 +00004984 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004985 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
4986 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
Sunil Ravi640215c2023-06-28 23:08:09 +00004987};
4988
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004989enum qca_wlan_vendor_attr_ll_stats_clr {
4990 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004991 /* Unsigned 32bit bitmap for clearing statistics, specified
4992 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004993 */
4994 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4995 /* Unsigned 8 bit value: Request to stop statistics collection */
4996 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4997
4998 /* Unsigned 32 bit bitmap: Response from the driver
4999 * for the cleared statistics
5000 */
5001 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
5002 /* Unsigned 8 bit value: Response from driver/firmware
5003 * for the stop request
5004 */
5005 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
5006 /* keep last */
5007 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
5008 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
5009 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
5010};
5011
Sunil Ravi640215c2023-06-28 23:08:09 +00005012/**
5013 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
5014 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
5015 *
5016 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
5017 *
5018 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
5019 *
5020 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
5021 *
5022 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
5023 */
5024enum qca_wlan_ll_stats_get_req_bitmap {
5025 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
5026 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005027 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
5028 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
Sunil Ravi640215c2023-06-28 23:08:09 +00005029};
5030
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005031enum qca_wlan_vendor_attr_ll_stats_get {
5032 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
5033 /* Unsigned 32 bit value provided by the caller issuing the GET stats
5034 * command. When reporting the stats results, the driver uses the same
5035 * value to indicate which GET request the results correspond to.
5036 */
5037 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
5038 /* Unsigned 32 bit value - bit mask to identify what statistics are
Sunil Ravi640215c2023-06-28 23:08:09 +00005039 * requested for retrieval specified in the enum
5040 * qca_wlan_ll_stats_get_req_bitmap
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005041 */
5042 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
5043 /* keep last */
5044 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
5045 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
5046 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
5047};
5048
5049enum qca_wlan_vendor_attr_ll_stats_results {
5050 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00005051
5052 /*
5053 * For Multi Link Operation (MLO) connection, per-link statistics will
5054 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
5055 * cumulative statistics will be sent outside of
5056 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
5057 * compatibility with legacy user space. Attributes which don't have
5058 * explicit documentation for MLO will be sent only outside of
5059 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
5060 * don't depend on whether the connection is MLO capable or not, e.g.,
5061 * radio and channel specific attributes.
5062 */
5063
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005064 /* Unsigned 32bit value. Used by the driver; must match the request id
5065 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
5066 */
5067 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
5068
Sunil Ravi640215c2023-06-28 23:08:09 +00005069 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5070 * the link with the best RSSI outside
5071 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5072 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5073 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005074 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
Sunil Ravi640215c2023-06-28 23:08:09 +00005075 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5076 * the link with the best RSSI outside
5077 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5078 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5079 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005080 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
Sunil Ravi640215c2023-06-28 23:08:09 +00005081 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5082 * the link with the best RSSI outside
5083 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5084 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5085 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005086 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
Sunil Ravi640215c2023-06-28 23:08:09 +00005087 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5088 * the link with the best RSSI outside
5089 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5090 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5091 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005092 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00005093 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5094 * the link with the best RSSI outside
5095 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5096 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5097 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005098 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
Sunil Ravi640215c2023-06-28 23:08:09 +00005099 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5100 * the link with the best RSSI outside
5101 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5102 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5103 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005104 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
Sunil Ravi640215c2023-06-28 23:08:09 +00005105 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5106 * the link with the best RSSI outside
5107 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5108 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5109 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005110 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
5111
5112 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
5113 * nested within the interface stats.
5114 */
5115
5116 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
5117 * Type = enum wifi_interface_mode.
5118 */
5119 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
5120 /* Interface MAC address. An array of 6 Unsigned int8 */
5121 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
5122 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
5123 * AUTHENTICATING, etc. valid for STA, CLI only.
5124 */
5125 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
5126 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
5127 */
5128 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
5129 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
5130 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
5131 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
5132 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
Sunil Ravi640215c2023-06-28 23:08:09 +00005133 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
5134 * address of the AP. An array of 6 unsigned 8 bit values */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005135 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
5136 /* Country string advertised by AP. An array of 3 unsigned 8 bit
5137 * values.
5138 */
5139 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
5140 /* Country string for this association. An array of 3 unsigned 8 bit
5141 * values.
5142 */
5143 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
5144
5145 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
5146 * be nested within the interface stats.
Sunil Ravi640215c2023-06-28 23:08:09 +00005147 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
5148 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
5149 * indicate the aggregate of all links outside
5150 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5151 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
5152 * indicate value of the MLO link with the best RSSI outside
5153 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5154 * These attributes indicate the link specific value inside
5155 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005156 */
5157
5158 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
5159 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
5160 /* Unsigned int 32 value corresponding to respective AC */
5161 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
5162 /* Unsigned int 32 value corresponding to respective AC */
5163 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
5164 /* Unsigned int 32 value corresponding to respective AC */
5165 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
5166 /* Unsigned int 32 value corresponding to respective AC */
5167 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
5168 /* Unsigned int 32 value corresponding to respective AC */
5169 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
5170 /* Unsigned int 32 value corresponding to respective AC */
5171 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
5172 /* Unsigned int 32 value corresponding to respective AC */
5173 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
5174 /* Unsigned int 32 value corresponding to respective AC */
5175 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
5176 /* Unsigned int 32 value corresponding to respective AC */
5177 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
5178 /* Unsigned int 32 values corresponding to respective AC */
5179 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
5180 /* Unsigned int 32 values corresponding to respective AC */
5181 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
5182 /* Unsigned int 32 values corresponding to respective AC */
5183 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
5184 /* Unsigned int 32 values corresponding to respective AC */
5185 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
5186 /* Unsigned int 32 values corresponding to respective AC */
5187 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
5188 /* Unsigned 32 bit value. Number of peers */
5189 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
5190
5191 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
5192 * nested within the interface stats.
5193 */
5194
5195 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
5196 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
5197 /* MAC addr corresponding to respective peer. An array of 6 unsigned
5198 * 8 bit values.
5199 */
5200 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
5201 /* Unsigned int 32 bit value representing capabilities corresponding
5202 * to respective peer.
5203 */
5204 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
5205 /* Unsigned 32 bit value. Number of rates */
5206 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
5207
5208 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5209 * are nested within the rate stat.
5210 */
5211
5212 /* Wi-Fi Rate - separate attributes defined for individual fields */
5213
5214 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
5215 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
5216 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
5217 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
5218 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
5219 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
5220 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07005221 * in the units of 0.5 Mbps HT/VHT it would be MCS index
5222 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005223 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
5224
5225 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
5226 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
5227
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005228 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
5229 * nested within the peer info stats.
5230 */
5231
5232 /* Unsigned int 32 bit value. Number of successfully transmitted data
5233 * packets, i.e., with ACK received corresponding to the respective
5234 * rate.
5235 */
5236 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
5237 /* Unsigned int 32 bit value. Number of received data packets
5238 * corresponding to the respective rate.
5239 */
5240 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
5241 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
5242 * received corresponding to the respective rate.
5243 */
5244 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
5245 /* Unsigned int 32 bit value. Total number of data packet retries for
5246 * the respective rate.
5247 */
5248 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
5249 /* Unsigned int 32 bit value. Total number of short data packet retries
5250 * for the respective rate.
5251 */
5252 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
5253 /* Unsigned int 32 bit value. Total number of long data packet retries
5254 * for the respective rate.
5255 */
5256 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
5257
Sunil Ravi640215c2023-06-28 23:08:09 +00005258 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
5259 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5260 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
5261 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
5262 * of the MLO link.
5263 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005264 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
5265 /* Unsigned 32 bit value. Total number of msecs the radio is awake
5266 * accruing over time.
5267 */
5268 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
5269 /* Unsigned 32 bit value. Total number of msecs the radio is
5270 * transmitting accruing over time.
5271 */
5272 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
5273 /* Unsigned 32 bit value. Total number of msecs the radio is in active
5274 * receive accruing over time.
5275 */
5276 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
5277 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5278 * to all scan accruing over time.
5279 */
5280 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
5281 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5282 * to NAN accruing over time.
5283 */
5284 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
5285 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5286 * to GSCAN accruing over time.
5287 */
5288 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
5289 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5290 * to roam scan accruing over time.
5291 */
5292 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
5293 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5294 * to PNO scan accruing over time.
5295 */
5296 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
5297 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5298 * to Hotspot 2.0 scans and GAS exchange accruing over time.
5299 */
5300 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
5301 /* Unsigned 32 bit value. Number of channels. */
5302 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
5303
5304 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
5305 * be nested within the channel stats.
5306 */
5307
5308 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
5309 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
Sunil Ravi640215c2023-06-28 23:08:09 +00005310 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
5311 * indicate the primary frequency of the channel when
5312 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5313 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
5314 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
5315 * on which the MLO link is operating.
5316 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005317 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
5318 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
5319 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
5320 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
5321 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
5322
5323 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
5324 * nested within the radio stats.
5325 */
5326
5327 /* Unsigned int 32 bit value representing total number of msecs the
5328 * radio is awake on that channel accruing over time, corresponding to
5329 * the respective channel.
5330 */
5331 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
5332 /* Unsigned int 32 bit value representing total number of msecs the CCA
5333 * register is busy accruing over time corresponding to the respective
5334 * channel.
5335 */
5336 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
5337
5338 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
5339
5340 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07005341 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005342 */
5343 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
5344
5345 /* Signifies the nested list of peer info attributes
Sunil Ravi640215c2023-06-28 23:08:09 +00005346 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
5347 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
5348 * indicate on which link the peer is connected.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005349 */
5350 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
5351
5352 /* Signifies the nested list of rate info attributes
5353 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5354 */
5355 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
5356
5357 /* Signifies the nested list of wmm info attributes
5358 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
5359 */
5360 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
5361
5362 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
5363 * that more stats, e.g., peers or radio, are to follow in the next
5364 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
5365 * Otherwise, it is set to 0.
5366 */
5367 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
5368
Sunil Ravi640215c2023-06-28 23:08:09 +00005369 /* Unsigned 64 bit value. For an MLO connection, indicates the value of
5370 * the link with the best RSSI outside
5371 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5372 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5373 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005374 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
5375
Sunil Ravi640215c2023-06-28 23:08:09 +00005376 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5377 * the link with the best RSSI outside
5378 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5379 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5380 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005381 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
5382
Sunil Ravi640215c2023-06-28 23:08:09 +00005383 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5384 * the link with the best RSSI outside
5385 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5386 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5387 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005388 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
5389
Sunil Ravi640215c2023-06-28 23:08:09 +00005390 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5391 * the link with the best RSSI outside
5392 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5393 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5394 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005395 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
5396
5397 /* Unsigned 32 bit value */
5398 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
5399
5400 /* Unsigned 32 bit value */
5401 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
5402
5403 /* Number of msecs the radio spent in transmitting for each power level
5404 */
5405 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
5406
Sunil Ravi640215c2023-06-28 23:08:09 +00005407 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5408 * the link with the best RSSI outside
5409 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5410 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5411 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005412 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
Sunil Ravi640215c2023-06-28 23:08:09 +00005413 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5414 * the link with the best RSSI outside
5415 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5416 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5417 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005418 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
Sunil Ravi640215c2023-06-28 23:08:09 +00005419 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5420 * the link with the best RSSI outside
5421 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5422 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5423 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005424 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
Sunil Ravi640215c2023-06-28 23:08:09 +00005425 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5426 * the link with the best RSSI outside
5427 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5428 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5429 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005430 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
5431
Roshan Pius3a1667e2018-07-03 15:17:14 -07005432 /* Unsigned int 32 value.
5433 * Pending MSDUs corresponding to respective AC.
5434 */
5435 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
5436
Hai Shalom899fcc72020-10-19 14:38:18 -07005437 /* u32 value representing total time in milliseconds for which the radio
5438 * is transmitting on this channel. This attribute will be nested
5439 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5440 */
5441 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
5442 /* u32 value representing total time in milliseconds for which the radio
5443 * is receiving all 802.11 frames intended for this device on this
5444 * channel. This attribute will be nested within
5445 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5446 */
5447 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005448 /* u8 value representing the channel load percentage. Possible values
5449 * are 0-100.
5450 */
5451 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
5452 /* u8 value representing the time slicing duty cycle percentage.
Sunil Ravi640215c2023-06-28 23:08:09 +00005453 * Possible values are 0-100. For an MLO connection, indicates the value
5454 * of the link with the best RSSI outside
5455 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5456 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005457 */
5458 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07005459 /* Unsigned 32 bit value. The number of Beacon frames which are received
5460 * from the associated AP and indicate buffered unicast frame(s) for us
Sunil Ravi640215c2023-06-28 23:08:09 +00005461 * in the TIM element. For an MLO connection, indicates the value of the
5462 * link with the best RSSI outside
5463 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5464 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005465 */
5466 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
5467 /* Unsigned 32 bit value. The total number of Beacon frames received
5468 * from the associated AP that have wrongly indicated buffered unicast
5469 * traffic in the TIM element for us.
5470 * Below scenarios will be considered as wrong TIM element beacon:
5471 * 1) The related TIM element is set in the beacon for STA but STA
5472 * doesn’t receive any unicast data after this beacon.
5473 * 2) The related TIM element is still set in the beacon for STA
5474 * after STA has indicated power save exit by QoS Null Data frame.
Sunil Ravi640215c2023-06-28 23:08:09 +00005475 * For an MLO connection, indicates the value of the link with the best
5476 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
5477 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005478 */
5479 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07005480
5481 /* Signed 32 bit value. It represents the noise floor calibration value.
Sunil Ravi640215c2023-06-28 23:08:09 +00005482 * Possible values are -120~-50 dBm. For an MLO connection, indicates
5483 * the value of the link with the best RSSI outside
5484 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5485 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi036cec52023-03-29 11:35:17 -07005486 */
5487 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07005488
Sunil Ravi640215c2023-06-28 23:08:09 +00005489 /* Attribute used for padding for 64-bit alignment */
5490 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
5491
5492 /* Unsigned u8 value, link ID of an MLO link. Used inside nested
5493 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
5494 * link ID of the MLO link for which the statistics are embedded in the
5495 * nested attribute. Used inside nested attribute
5496 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
5497 * link ID of the peer.
5498 */
5499 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
5500
5501 /* A nested array of attributes for each MLO link, each containing
5502 * per-link statistics of a multi link connection. The attributes used
5503 * inside this nested attribute are defined in enum
5504 * qca_wlan_vendor_attr_ll_stats_results.
5505 *
5506 * For non-MLO connection, this attribute is not present and the
5507 * statistics will be sent outside this attribute (without nesting).
5508 *
5509 * For MLO connection, this attribute is present and also cumulative
5510 * statistics of all the links will be sent outside of this attribute
5511 * to be compatible with legacy user space.
5512 */
5513 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
5514
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005515 /* keep last */
5516 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
5517 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
5518 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
5519};
5520
Roshan Pius3a1667e2018-07-03 15:17:14 -07005521enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005522 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
5523 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
5524 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
5525 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
5526
5527 /* keep last */
5528 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
5529 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
5530 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
5531};
5532
5533/**
5534 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5535 * TDLS configuration to the host driver.
5536 *
5537 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5538 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5539 * represents the different TDLS trigger modes.
5540 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5541 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5542 * of packets shall meet the criteria for implicit TDLS setup.
5543 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
5544 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
5545 * to initiate a TDLS setup.
5546 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
5547 * a TDLS Discovery to the peer.
5548 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5549 * discovery attempts to know the TDLS capability of the peer. A peer is
5550 * marked as TDLS not capable if there is no response for all the attempts.
5551 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5552 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5553 * number of TX / RX frames meet the criteria for TDLS teardown.
5554 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
5555 * of Tx/Rx packets within a duration
5556 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
5557 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5558 * corresponding to the RSSI of the peer below which a TDLS setup is
5559 * triggered.
5560 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5561 * corresponding to the RSSI of the peer above which a TDLS teardown is
5562 * triggered.
5563 */
5564enum qca_wlan_vendor_attr_tdls_configuration {
5565 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5566 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5567
5568 /* Attributes configuring the TDLS Implicit Trigger */
5569 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5570 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5571 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5572 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5573 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5574 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5575 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5576 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5577
5578 /* keep last */
5579 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5580 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5581 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5582};
5583
5584/**
5585 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5586 * the driver
5587 *
5588 * The following are the different values for
5589 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5590 *
5591 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
5592 * the TDLS connection to a respective peer comes from the user space.
5593 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
5594 * TDLS_DISCOVER to do this.
5595 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5596 * setup/teardown to the eligible peer once the configured criteria
5597 * (such as TX/RX threshold, RSSI) is met. The attributes
5598 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5599 * the different configuration criteria for the TDLS trigger from the
5600 * host driver.
5601 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5602 * the TDLS setup / teardown through the implicit mode only to the
5603 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
5604 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
5605 * External mode works on top of the implicit mode. Thus the host driver
5606 * is expected to configure in TDLS Implicit mode too to operate in
5607 * External mode.
5608 * Configuring External mode alone without Implicit mode is invalid.
5609 *
5610 * All the above implementations work as expected only when the host driver
5611 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
5612 * that the TDLS message exchange is not internal to the host driver, but
5613 * depends on wpa_supplicant to do the message exchange.
5614 */
5615enum qca_wlan_vendor_tdls_trigger_mode {
5616 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5617 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5618 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5619};
5620
Dmitry Shmidt29333592017-01-09 12:27:11 -08005621/**
5622 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5623 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5624 * that is hard-coded in the Board Data File (BDF).
5625 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5626 * that is hard-coded in the Board Data File (BDF).
5627 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5628 * that is hard-coded in the Board Data File (BDF).
5629 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5630 * that is hard-coded in the Board Data File (BDF).
5631 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5632 * that is hard-coded in the Board Data File (BDF).
5633 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5634 * source of SAR power limits, thereby disabling the SAR power
5635 * limit feature.
5636 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5637 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005638 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5639 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005640 *
5641 * This enumerates the valid set of values that may be supplied for
5642 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005643 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5644 * the response to an instance of the
5645 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005646 */
5647enum qca_vendor_attr_sar_limits_selections {
5648 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5649 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5650 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5651 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5652 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5653 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5654 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005655 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005656};
5657
5658/**
5659 * enum qca_vendor_attr_sar_limits_spec_modulations -
5660 * SAR limits specification modulation
5661 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5662 * CCK modulation
5663 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5664 * OFDM modulation
5665 *
5666 * This enumerates the valid set of values that may be supplied for
5667 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5668 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5669 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07005670 * command or in the response to an instance of the
5671 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005672 */
5673enum qca_vendor_attr_sar_limits_spec_modulations {
5674 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5675 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5676};
5677
5678/**
5679 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5680 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005681 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08005682 * select which SAR power limit table should be used. Valid
5683 * values are enumerated in enum
5684 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5685 * power limit selection is unchanged if this attribute is not
5686 * present.
5687 *
5688 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5689 * which specifies the number of SAR power limit specifications
5690 * which will follow.
5691 *
5692 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5693 * limit specifications. The number of specifications is
5694 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5695 * specification contains a set of
5696 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5697 * specification is uniquely identified by the attributes
5698 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5699 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5700 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5701 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07005702 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
5703 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5704 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5705 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5706 * needed based upon the value of
5707 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005708 *
5709 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5710 * indicate for which band this specification applies. Valid
5711 * values are enumerated in enum %nl80211_band (although not all
5712 * bands may be supported by a given device). If the attribute is
5713 * not supplied then the specification will be applied to all
5714 * supported bands.
5715 *
5716 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5717 * to indicate for which antenna chain this specification
5718 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5719 * attribute is not supplied then the specification will be
5720 * applied to all chains.
5721 *
5722 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5723 * value to indicate for which modulation scheme this
5724 * specification applies. Valid values are enumerated in enum
5725 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5726 * is not supplied then the specification will be applied to all
5727 * modulation schemes.
5728 *
5729 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5730 * value to specify the actual power limit value in units of 0.5
5731 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07005732 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5733 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005734 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07005735 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5736 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5737 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5738 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5739 *
5740 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5741 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005742 */
5743enum qca_vendor_attr_sar_limits {
5744 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5745 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5746 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5747 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5748 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5749 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5750 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5751 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005752 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005753
5754 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5755 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5756 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5757};
5758
5759/**
5760 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
5761 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07005762 *
5763 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
5764 * should be set to any U8 value to indicate that the driver version
5765 * should be returned. When enabled in this manner, in a response this
5766 * attribute will contain a string representation of the driver version.
5767 *
5768 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
5769 * should be set to any U8 value to indicate that the firmware version
5770 * should be returned. When enabled in this manner, in a response this
5771 * attribute will contain a string representation of the firmware version.
5772 *
5773 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
5774 * should be set to any U32 value to indicate that the current radio
5775 * index should be returned. When enabled in this manner, in a response
5776 * this attribute will contain a U32 radio index value.
5777 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08005778 */
5779enum qca_wlan_vendor_attr_get_wifi_info {
5780 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
5781 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
5782 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005783 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005784
5785 /* keep last */
5786 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
5787 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
5788 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
5789};
5790
5791/*
5792 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
5793 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
5794 */
5795enum qca_wlan_vendor_attr_wifi_logger_start {
5796 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5797 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5798 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5799 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5800
5801 /* keep last */
5802 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5803 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
5804 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5805};
5806
5807enum qca_wlan_vendor_attr_logger_results {
5808 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
5809
5810 /* Unsigned 32-bit value; must match the request Id supplied by
5811 * Wi-Fi HAL in the corresponding subcmd NL msg.
5812 */
5813 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
5814
5815 /* Unsigned 32-bit value; used to indicate the size of memory
5816 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005817 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005818 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
5819
5820 /* keep last */
5821 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5822 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5823 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5824};
5825
Hai Shalomc3565922019-10-28 11:58:20 -07005826/**
5827 * enum qca_scan_freq_list_type: Frequency list types
5828 *
5829 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5830 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5831 * a preferred frequency list for roaming.
5832 *
5833 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5834 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5835 * a specific frequency list for roaming.
5836 */
5837enum qca_scan_freq_list_type {
5838 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5839 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5840};
5841
5842/**
5843 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5844 *
5845 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5846 * List of frequencies in MHz to be considered for a roam scan.
5847 *
5848 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5849 * Type of frequency list scheme being configured/gotten as defined by the
5850 * enum qca_scan_freq_list_type.
5851 */
5852enum qca_vendor_attr_scan_freq_list_scheme {
5853 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5854 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5855
5856 /* keep last */
5857 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5858 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5859 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5860};
5861
Hai Shalom899fcc72020-10-19 14:38:18 -07005862/**
5863 * enum qca_roam_scan_scheme: Scan scheme
5864 *
5865 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5866 * Indicates the driver to not scan on a Roam Trigger scenario, but
5867 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5868 * disconnect from the current connected AP by notifying a failure
5869 * code in the BTM response.
5870 *
5871 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5872 * trigger partial frequency scans. These frequencies are the ones learned
5873 * or maintained by the driver based on the probability of finding the
5874 * BSSIDs in the ESS for which the roaming is triggered.
5875 *
5876 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5877 * trigger the scan on all the valid frequencies to find better
5878 * candidates to roam.
5879 */
5880enum qca_roam_scan_scheme {
5881 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5882 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5883 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5884};
5885
Hai Shalomc3565922019-10-28 11:58:20 -07005886/*
5887 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5888 *
5889 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5890 * a bad packet error rates (PER).
5891 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5892 * based on beacon misses from the connected AP.
5893 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5894 * due to poor RSSI of the connected AP.
5895 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5896 * upon finding a BSSID with a better RSSI than the connected BSSID.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005897 * Also, set if the roam has to be triggered due to the high RSSI of the
5898 * current connected AP (better than
5899 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
5900 * the current BSSID need not be poor.
Hai Shalomc3565922019-10-28 11:58:20 -07005901 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5902 * by triggering a periodic scan to find a better AP to roam.
5903 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5904 * when the connected channel environment is too noisy/congested.
5905 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5906 * when BTM Request frame is received from the connected AP.
5907 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5908 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07005909 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5910 * based on the request from the user (space).
5911 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5912 * device receives Deauthentication/Disassociation frame from connected AP.
5913 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5914 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5915 * is determined to be a poor one.
5916 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5917 * based on continuous TX Data frame failures to the connected AP.
5918 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5919 * based on the scan results obtained from an external scan (not triggered
5920 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07005921 *
5922 * Set the corresponding roam trigger reason bit to consider it for roam
5923 * trigger.
5924 * Userspace can set multiple bits and send to the driver. The driver shall
5925 * consider all of them to trigger/initiate a roam scan.
5926 */
5927enum qca_vendor_roam_triggers {
5928 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
5929 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
5930 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
5931 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
5932 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
5933 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
5934 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
5935 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005936 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
5937 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
5938 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
5939 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
5940 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07005941};
5942
Hai Shalom60840252021-02-19 19:02:11 -08005943/*
5944 * enum qca_vendor_roam_fail_reasons: Defines the various roam
5945 * fail reasons. This enum value is used in
5946 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5947 *
5948 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5949 * able to trigger the scan.
5950 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5951 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5952 * scan.
5953 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
5954 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
5955 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
5956 * status code.
5957 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
5958 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
5959 * frame.
5960 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
5961 * with error status code.
5962 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
5963 * received.
5964 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
5965 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
5966 * frame.
5967 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
5968 * internally before transmission.
5969 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
5970 * Request frame.
5971 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
5972 * dropped internally.
5973 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
5974 * times out.
5975 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
5976 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
5977 * internally.
5978 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
5979 * M2 frame.
5980 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
5981 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
5982 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
5983 * internally.
5984 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
5985 * frame.
5986 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
5987 * started for final beacon miss case.
5988 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
5989 * received from the AP during roaming handoff.
5990 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
5991 * or host is suspended and gives the indication of the last roamed AP only
5992 * when the Apps is resumed. If the Apps is resumed while the roaming is in
5993 * progress, this ongoing roaming is aborted and the last roamed AP is
5994 * indicated to host.
5995 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
5996 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
5997 * out.
5998 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
Sunil Ravi640215c2023-06-28 23:08:09 +00005999 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
6000 * current network conditions are fine.
Hai Shalom60840252021-02-19 19:02:11 -08006001 */
6002enum qca_vendor_roam_fail_reasons {
6003 QCA_ROAM_FAIL_REASON_NONE = 0,
6004 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
6005 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
6006 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
6007 QCA_ROAM_FAIL_REASON_HOST = 4,
6008 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
6009 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
6010 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
6011 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
6012 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
6013 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
6014 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
6015 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
6016 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
6017 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
6018 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
6019 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
6020 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
6021 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
6022 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
6023 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
6024 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
6025 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
6026 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
6027 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
6028 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
6029 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
6030 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
6031 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
6032 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
Sunil Ravi640215c2023-06-28 23:08:09 +00006033 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
Hai Shalom60840252021-02-19 19:02:11 -08006034};
6035
6036/*
6037 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
6038 * invoke fail reasons. This enum value is used in
6039 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
6040 *
6041 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
6042 * in roam invoke command.
6043 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
6044 * enabled.
6045 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
6046 * length is invalid.
6047 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
6048 * in progress.
6049 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
6050 * of the AP in the roam invoke command to firmware. This reason is sent by the
6051 * firmware when the given AP is configured to be ignored or SSID/security
6052 * does not match.
6053 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
6054 * firmware internal reasons.
6055 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
6056 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
6057 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
6058 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
6059 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
6060 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
6061 */
6062enum qca_vendor_roam_invoke_fail_reasons {
6063 QCA_ROAM_INVOKE_STATUS_NONE = 0,
6064 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
6065 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
6066 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
6067 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
6068 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
6069 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
6070 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
6071 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
6072 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
6073 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
6074 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
6075 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
6076
6077};
6078
Hai Shalomc3565922019-10-28 11:58:20 -07006079/**
6080 * enum qca_vendor_attr_roam_candidate_selection_criteria:
6081 *
6082 * Each attribute carries a weightage in percentage (%).
6083 *
6084 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
6085 * Represents the weightage to be given for the RSSI selection
6086 * criteria among other parameters.
6087 *
6088 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
6089 * Represents the weightage to be given for the rate selection
6090 * criteria among other parameters.
6091 *
6092 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
6093 * Represents the weightage to be given for the band width selection
6094 * criteria among other parameters.
6095 *
6096 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
6097 * Represents the weightage to be given for the band selection
6098 * criteria among other parameters.
6099 *
6100 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
6101 * Represents the weightage to be given for the NSS selection
6102 * criteria among other parameters.
6103 *
6104 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
6105 * Represents the weightage to be given for the channel congestion
6106 * selection criteria among other parameters.
6107 *
6108 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
6109 * Represents the weightage to be given for the beamforming selection
6110 * criteria among other parameters.
6111 *
6112 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
6113 * Represents the weightage to be given for the OCE selection
6114 * criteria among other parameters.
6115 */
6116enum qca_vendor_attr_roam_candidate_selection_criteria {
6117 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
6118 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
6119 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
6120 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
6121 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
6122 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
6123 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
6124 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
6125
6126 /* keep last */
6127 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
6128 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
6129 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
6130};
6131
6132/**
6133 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00006134 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07006135 * configurations to/from the driver.
6136 * For the get, the attribute for the configuration to be queried shall
6137 * carry any of its acceptable values to the driver. In return, the driver
6138 * shall send the configured values within the same attribute to the user
6139 * space.
6140 *
6141 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
6142 * Signifies to enable/disable roam control in driver.
6143 * 1-enable, 0-disable
6144 * Enable: Mandates the driver to do the further roams using the
6145 * configuration parameters set through
6146 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
6147 * Disable: Disables the driver/firmware roaming triggered through
6148 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
6149 * expected to continue with the default configurations.
6150 *
6151 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
6152 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
6153 * Roam control status is obtained through this attribute.
6154 *
6155 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
6156 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
6157 * is to be cleared in the driver.
6158 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
6159 * and shall be ignored if used with other sub commands.
6160 * If this attribute is specified along with subcmd
6161 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
6162 * all other attributes, if there are any.
6163 * If this attribute is not specified when the subcmd
6164 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
6165 * clear the data corresponding to the attributes specified.
6166 *
6167 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
6168 * list of frequencies and its type, represented by
6169 * enum qca_vendor_attr_scan_freq_list_scheme.
6170 * Frequency list and its type are mandatory for this attribute to set
6171 * the frequencies.
6172 * Frequency type is mandatory for this attribute to get the frequencies
6173 * and the frequency list is obtained through
6174 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
6175 * Frequency list type is mandatory for this attribute to clear the
6176 * frequencies.
6177 *
6178 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
6179 * Carries the value of scan period in seconds to set.
6180 * The value of scan period is obtained with the same attribute for get.
6181 * Clears the scan period in the driver when specified with clear command.
6182 * Scan period is the idle time in seconds between each subsequent
6183 * channel scans.
6184 *
6185 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
6186 * Carries the value of full scan period in seconds to set.
6187 * The value of full scan period is obtained with the same attribute for
6188 * get.
6189 * Clears the full scan period in the driver when specified with clear
6190 * command. Full scan period is the idle period in seconds between two
6191 * successive full channel roam scans.
6192 *
6193 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
6194 * Carries a bitmap of the roam triggers specified in
6195 * enum qca_vendor_roam_triggers.
6196 * The driver shall enable roaming by enabling corresponding roam triggers
6197 * based on the trigger bits sent with this attribute.
6198 * If this attribute is not configured, the driver shall proceed with
6199 * default behavior.
6200 * The bitmap configured is obtained with the same attribute for get.
6201 * Clears the bitmap configured in driver when specified with clear
6202 * command.
6203 *
6204 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
6205 * weightage in percentage (%) to be given for each selection criteria.
6206 * Different roam candidate selection criteria are represented by
6207 * enum qca_vendor_attr_roam_candidate_selection_criteria.
6208 * The driver shall select the roam candidate based on corresponding
6209 * candidate selection scores sent.
6210 *
6211 * An empty nested attribute is used to indicate that no specific
6212 * preference score/criteria is configured (i.e., to disable this mechanism
6213 * in the set case and to show that the mechanism is disabled in the get
6214 * case).
6215 *
6216 * Userspace can send multiple attributes out of this enum to the driver.
6217 * Since this attribute represents the weight/percentage of preference for
6218 * the respective selection criteria, it is preferred to configure 100%
6219 * total weightage. The value in each attribute or cumulative weight of the
6220 * values in all the nested attributes should not exceed 100%. The driver
6221 * shall reject such configuration.
6222 *
6223 * If the weights configured through this attribute are less than 100%,
6224 * the driver shall honor the weights (x%) passed for the corresponding
6225 * selection criteria and choose/distribute rest of the weight (100-x)%
6226 * for the other selection criteria, based on its internal logic.
6227 *
6228 * The selection criteria configured is obtained with the same
6229 * attribute for get.
6230 *
6231 * Clears the selection criteria configured in the driver when specified
6232 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07006233 *
6234 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
6235 * Represents value of the scan frequency scheme from enum
6236 * qca_roam_scan_scheme.
6237 * It's an optional attribute. If this attribute is not configured, the
6238 * driver shall proceed with default behavior.
6239 *
6240 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6241 * signifying the RSSI threshold of the current connected AP, indicating
6242 * the driver to trigger roam only when the current connected AP's RSSI
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006243 * is less than this threshold. The RSSI threshold through this attribute
6244 * is only used by the STA when the connected AP asks it to roam through
6245 * a BTM request. Based on this threshold, the STA can either honor or
6246 * reject the AP's request to roam, and notify the status to the AP in a
6247 * BTM response.
Hai Shalom899fcc72020-10-19 14:38:18 -07006248 *
6249 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6250 * signifying the RSSI threshold of the candidate AP, indicating
6251 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08006252 * better than this threshold. If RSSI thresholds for candidate APs found
6253 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
6254 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
6255 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
6256 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
6257 * take precedence over the value configured using the
6258 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07006259 *
6260 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
6261 * user defined reason code to be sent to the AP in response to AP's
6262 * request to trigger the roam if the roaming cannot be triggered.
6263 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
6264 *
6265 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
6266 * Carries a bitmap of the roam triggers specified in
6267 * enum qca_vendor_roam_triggers.
6268 * Represents the roam triggers for which the specific scan scheme from
6269 * enum qca_roam_scan_scheme has to be applied.
6270 * It's an optional attribute. If this attribute is not configured, but
6271 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
6272 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
6273 * all the roams.
6274 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
6275 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
6276 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006277 *
6278 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
6279 * in dBm, signifying the RSSI threshold of the candidate AP found in the
6280 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
6281 * AP found in the 2.4 GHz band only if its RSSI value is better than this
6282 * threshold. Optional attribute. If this attribute is not included, the
6283 * threshold value specified by the
6284 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6285 *
6286 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
6287 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
6288 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6289 * found in the 5 GHz band only if its RSSI value is better than this
6290 * threshold. Optional attribute. If this attribute is not included, the
6291 * threshold value specified by tge
6292 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6293 *
6294 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
6295 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
6296 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6297 * found in the 6 GHz band only if its RSSI value is better than this
6298 * threshold. Optional attribute. If this attribute is not included, the
6299 * threshold value specified by the
6300 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6301 *
6302 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
6303 * Carries bitmask value of bits from &enum qca_set_band and represents
6304 * all the bands in which roaming is allowed. The configuration is valid
6305 * until next disconnection. If this attribute is not present, the
6306 * existing configuration shall be used. By default, roaming is allowed on
6307 * all bands supported by the local device. When the value is set to
6308 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
6309 *
6310 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
6311 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
6312 * bands. If this attribute is not configured, the driver shall proceed
6313 * with default behavior.
6314 *
6315 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
6316 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
6317 * band. If this attribute is not configured, the driver shall proceed with
6318 * default behavior.
6319 *
6320 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
6321 * Optional parameter. The minimum duration to stay on the connected AP
6322 * channel during the channel scanning. If this attribute is not
6323 * configured, the driver shall proceed with default behavior.
6324 *
6325 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
6326 * Optional parameter. The maximum duration for which the radio can scan
6327 * foreign channels consecutively without coming back to home channel. If
6328 * this attribute is not configured, the driver shall proceed with default
6329 * behavior.
6330 *
6331 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
6332 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
6333 * If this attribute is not configured, the driver shall proceed with
6334 * default behavior.
6335 *
6336 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
6337 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
6338 * Channels. If this attribute is not configured, the driver shall proceed
6339 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00006340 *
6341 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
6342 * Optional parameter. RX link speed threshold to disable roaming.
6343 * If the current RX link speed is above the threshold, roaming is not
6344 * needed. If this attribute is not configured, or if it is set to 0, the
6345 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00006346 *
6347 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
6348 * Optional parameter. This configuration delays hand-off by the
6349 * specified duration to receive pending RX frames from the current BSS.
6350 *
6351 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
6352 * value.
6353 * During the roam scan, if there are no desired APs found in the partial
6354 * frequency list, an immediate full scan on all the supported frequencies
6355 * is initiated as a fallback. This flag controls the frequency list
6356 * creation for the full scan on the following lines.
6357 * 1 - Full scan to exclude the frequencies that were already scanned by
6358 * the previous partial scan.
6359 * 0 - Full scan to include all the supported frequencies irrespective of
6360 * the ones part of the earlier partial scan.
6361 * If this flag is not specified, a full scan shall include all the
6362 * supported frequencies irrespective of the ones part of an earlier
6363 * partial scan.
6364 *
6365 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
6366 * value.
6367 * During the roam scan, if there are no desired APs found in the partial
6368 * frequency list, an immediate full scan on all the supported frequencies
6369 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
6370 * frequencies, including all PSC frequencies by default. This attribute
6371 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
6372 * as following.
6373 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
6374 * prior discovery of any 6 GHz frequency support in the environment.
6375 * This discovery can happen through a prior RNR, 11k neighbor
6376 * request, 11v BTM request, host scan, etc.
6377 * 0 - Default behavior. Full scan to include all the supported 6 GHz
6378 * PSC frequencies regardless of whether 6 GHz BSSs have been
6379 * discovered.
6380 * The default behavior if this flag is not specified is to include all
6381 * the supported 6 GHz PSC frequencies in the roam full scan.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006382 *
6383 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
6384 * in dBm.
6385 * This attribute configures the low RSSI threshold of the connected AP,
6386 * based on which the STA can start looking for the neighbor APs and
6387 * trigger the roam eventually. STA keeps monitoring for the connected
6388 * AP's RSSI and will start scanning for neighboring APs once the RSSI
6389 * falls below this threshold. This attribute differs from
6390 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
6391 * threshold is used only when the connected AP asks the STA to roam
6392 * through a BTM request.
6393 *
6394 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6395 * This attribute signifies the RSSI difference threshold between the
6396 * connected AP and the new candidate AP. This parameter influences the
6397 * STA to roam to the new candidate only when its RSSI is better than
6398 * the current connected one by this threshold.
6399 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
6400 *
6401 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6402 * This attribute signifies the RSSI difference threshold between the
6403 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the
6404 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz
6405 * candidate only when its RSSI is better than the current connected one
6406 * by this threshold. This threshold overrides
6407 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
6408 * GHz to 6 GHz alone with the intention to have a different value to roam
6409 * to the preferred 6 GHz band.
6410 *
6411 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
6412 * This attribute signifies the RSSI offset that is added to low RSSI
6413 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
6414 * high RSSI threshold. STA is expected to trigger roam if the current
6415 * connected AP's RSSI gets above this high RSSI threshold. STA's roam
6416 * attempt on high RSSI threshold aims to find candidates from other
6417 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
6418 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
6419 * for 2.4 GHz BSS).
Hai Shalomc3565922019-10-28 11:58:20 -07006420 */
6421enum qca_vendor_attr_roam_control {
6422 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
6423 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
6424 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006425 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
Hai Shalomc3565922019-10-28 11:58:20 -07006426 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
6427 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
6428 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
6429 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006430 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
6431 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
6432 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
6433 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
6434 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006435 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
6436 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
6437 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
6438 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
6439 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
6440 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
6441 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
6442 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
6443 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
6444 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00006445 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006446 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
6447 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
6448 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006449 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
6450 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
6451 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
6452 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
Hai Shalomc3565922019-10-28 11:58:20 -07006453
6454 /* keep last */
6455 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
6456 QCA_ATTR_ROAM_CONTROL_MAX =
6457 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
6458};
6459
6460/*
6461 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
6462 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
6463 *
6464 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
6465 * Represents the different roam sub commands referred by
6466 * enum qca_wlan_vendor_roaming_subcmd.
6467 *
6468 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
6469 * Represents the Request ID for the specific set of commands.
6470 * This also helps to map specific set of commands to the respective
6471 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07006472 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07006473 * matching ID.
6474 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006475 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
6476 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07006477 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006478 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
6479 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006480 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006481 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
6482 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07006483 * represent the list of SSIDs to which the firmware/driver can consider
6484 * to roam to.
6485 *
6486 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
6487 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
6488 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
6489 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
6490 *
6491 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
6492 * value, RSSI threshold above which 5GHz RSSI is favored.
6493 *
6494 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
6495 * value, RSSI threshold below which 5GHz RSSI is penalized.
6496 *
6497 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
6498 * value, factor by which 5GHz RSSI is boosted.
6499 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
6500 *
6501 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
6502 * value, factor by which 5GHz RSSI is penalized.
6503 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
6504 *
6505 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
6506 * value, maximum boost that can be applied to a 5GHz RSSI.
6507 *
6508 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
6509 * value, boost applied to current BSSID to ensure the currently
6510 * associated BSSID is favored so as to prevent ping-pong situations.
6511 *
6512 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
6513 * value, RSSI below which "Alert" roam is enabled.
6514 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
6515 * because the RSSI is low, or because many successive beacons have been
6516 * lost or other bad link conditions.
6517 *
6518 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
6519 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08006520 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07006521 * the RSSI of the link is good. The parameters enabling the roaming are
6522 * configured through the PARAM_A_BAND_XX attrbutes.
6523 *
6524 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
6525 * represents the BSSIDs preferred over others while evaluating them
6526 * for the roaming.
6527 *
6528 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
6529 * 32-bit value. Represents the number of preferred BSSIDs set.
6530 *
6531 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
6532 * address representing the BSSID to be preferred.
6533 *
6534 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
6535 * 32-bit value, representing the modifier to be applied to the RSSI of
6536 * the BSSID for the purpose of comparing it with other roam candidate.
6537 *
6538 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006539 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07006540 *
6541 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07006542 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006543 *
6544 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07006545 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07006546 *
6547 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006548 * indicates this request to ignore the BSSID as a hint to the driver. The
6549 * driver can select this BSSID in the worst case (when no other BSSIDs are
6550 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07006551 *
6552 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
6553 * set/get/clear the roam control config as
6554 * defined @enum qca_vendor_attr_roam_control.
6555 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006556enum qca_wlan_vendor_attr_roaming_config_params {
6557 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
6558
6559 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
6560 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
6561
Hai Shaloma20dcd72022-02-04 13:43:00 -08006562 /* Attributes for wifi_set_ssid_allow_list */
6563 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
6564 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
6565 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006566
6567 /* Attributes for set_roam_params */
6568 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
6569 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
6570 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
6571 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
6572 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
6573 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
6574 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
6575
6576 /* Attribute for set_lazy_roam */
6577 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
6578
6579 /* Attribute for set_lazy_roam with preferences */
6580 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
6581 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
6582 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
6583 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
6584
Hai Shalom899fcc72020-10-19 14:38:18 -07006585 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006586 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
6587 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
6588 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07006589 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07006590 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006591
Hai Shalomc3565922019-10-28 11:58:20 -07006592 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
6593
Dmitry Shmidt29333592017-01-09 12:27:11 -08006594 /* keep last */
6595 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
6596 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
6597 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
6598};
6599
Hai Shaloma20dcd72022-02-04 13:43:00 -08006600/* old names for API compatibility */
6601#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
6602 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
6603#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
6604 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
6605#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
6606 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
6607
Dmitry Shmidt29333592017-01-09 12:27:11 -08006608/*
Hai Shalomc3565922019-10-28 11:58:20 -07006609 * enum qca_wlan_vendor_roaming_subcmd: Referred by
6610 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
6611 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006612 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
6613 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07006614 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006615 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
6616 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
6617 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07006618 *
6619 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
6620 * configure the Roam params. These parameters are evaluated on the GScan
6621 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
6622 * params.
6623 *
6624 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
6625 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
6626 * to enable/disable Lazy roam.
6627 *
6628 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
6629 * preference. Contains the attribute
6630 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
6631 * preference.
6632 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006633 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07006634 * to ignore in roaming decision. Uses
6635 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07006636 *
6637 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
6638 * roam control config to the driver with the attribute
6639 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6640 *
6641 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
6642 * roam control config from driver with the attribute
6643 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6644 * For the get, the attribute for the configuration to be queried shall
6645 * carry any of its acceptable value to the driver. In return, the driver
6646 * shall send the configured values within the same attribute to the user
6647 * space.
6648 *
6649 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
6650 * roam control config in the driver with the attribute
6651 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6652 * The driver shall continue with its default roaming behavior when data
6653 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08006654 */
Hai Shalomc3565922019-10-28 11:58:20 -07006655enum qca_wlan_vendor_roaming_subcmd {
6656 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006657 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07006658 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
6659 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
6660 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
6661 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006662 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07006663 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
6664 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
6665 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006666};
6667
Hai Shaloma20dcd72022-02-04 13:43:00 -08006668/* old names for API compatibility */
6669#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
6670 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
6671#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
6672 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
6673
Dmitry Shmidt29333592017-01-09 12:27:11 -08006674enum qca_wlan_vendor_attr_gscan_config_params {
6675 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
6676
6677 /* Unsigned 32-bit value */
6678 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
6679
6680 /* Attributes for data used by
6681 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
6682 */
6683 /* Unsigned 32-bit value */
6684 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
6685 = 2,
6686 /* Unsigned 32-bit value */
6687 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
6688 = 3,
6689
6690 /* Attributes for input params used by
6691 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
6692 */
6693
6694 /* Unsigned 32-bit value; channel frequency */
6695 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
6696 /* Unsigned 32-bit value; dwell time in ms. */
6697 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
6698 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
6699 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
6700 /* Unsigned 8-bit value; channel class */
6701 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
6702
6703 /* Unsigned 8-bit value; bucket index, 0 based */
6704 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
6705 /* Unsigned 8-bit value; band. */
6706 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
6707 /* Unsigned 32-bit value; desired period, in ms. */
6708 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
6709 /* Unsigned 8-bit value; report events semantics. */
6710 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
6711 /* Unsigned 32-bit value. Followed by a nested array of
6712 * GSCAN_CHANNEL_SPEC_* attributes.
6713 */
6714 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
6715
6716 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
6717 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6718 */
6719 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
6720
6721 /* Unsigned 32-bit value; base timer period in ms. */
6722 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
6723 /* Unsigned 32-bit value; number of APs to store in each scan in the
6724 * BSSID/RSSI history buffer (keep the highest RSSI APs).
6725 */
6726 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
6727 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
6728 * up AP.
6729 */
6730 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
6731 = 16,
6732
6733 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
6734 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
6735 * of the array is determined by NUM_BUCKETS.
6736 */
6737 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
6738
6739 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
6740 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
6741 */
6742 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
6743
6744 /* Unsigned 8-bit value */
6745 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
6746 = 19,
6747 /* Unsigned 32-bit value; maximum number of results to be returned. */
6748 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
6749 = 20,
6750
6751 /* An array of 6 x unsigned 8-bit value */
6752 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
6753 /* Signed 32-bit value */
6754 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
6755 /* Signed 32-bit value */
6756 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
6757 /* Unsigned 32-bit value */
6758 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
6759
6760 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
6761 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
6762 * array is determined by NUM_AP.
6763 */
6764 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
6765
6766 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
6767 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6768 */
6769 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
6770
6771 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
6772 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
6773 = 27,
6774 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6775 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
6776 = 28,
6777 /* Unsigned 32-bit value; number of APs breaching threshold. */
6778 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
6779 /* Unsigned 32-bit value; number of APs. Followed by an array of
6780 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
6781 */
6782 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
6783 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6784 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
6785 = 31,
6786 /* Unsigned 32-bit value. If max_period is non zero or different than
6787 * period, then this bucket is an exponential backoff bucket.
6788 */
6789 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
6790 /* Unsigned 32-bit value. */
6791 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
6792 /* Unsigned 32-bit value. For exponential back off bucket, number of
6793 * scans to perform for a given period.
6794 */
6795 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
6796 /* Unsigned 8-bit value; in number of scans, wake up AP after these
6797 * many scans.
6798 */
6799 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
6800 = 35,
6801
6802 /* Attributes for data used by
6803 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
6804 */
6805 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
6806 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
6807 = 36,
6808 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
6809 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
6810 * size of the array is determined by NUM_SSID.
6811 */
6812 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
6813 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
6814 * attributes.
6815 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
6816 */
6817 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
6818
6819 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6820 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
6821 /* Unsigned 8-bit value */
6822 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
6823 /* Signed 32-bit value */
6824 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
6825 /* Signed 32-bit value */
6826 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
6827 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
6828 */
6829 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
6830
6831 /* keep last */
6832 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
6833 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
6834 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
6835};
6836
6837enum qca_wlan_vendor_attr_gscan_results {
6838 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
6839
6840 /* Unsigned 32-bit value; must match the request Id supplied by
6841 * Wi-Fi HAL in the corresponding subcmd NL msg.
6842 */
6843 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
6844
6845 /* Unsigned 32-bit value; used to indicate the status response from
6846 * firmware/driver for the vendor sub-command.
6847 */
6848 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
6849
6850 /* GSCAN Valid Channels attributes */
6851 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
6852 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
6853 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
6854 * representing channel numbers.
6855 */
6856 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
6857
6858 /* GSCAN Capabilities attributes */
6859 /* Unsigned 32-bit value */
6860 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
6861 /* Unsigned 32-bit value */
6862 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
6863 /* Unsigned 32-bit value */
6864 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
6865 = 7,
6866 /* Unsigned 32-bit value */
6867 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
6868 = 8,
6869 /* Signed 32-bit value */
6870 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6871 = 9,
6872 /* Unsigned 32-bit value */
6873 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6874 /* Unsigned 32-bit value */
6875 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6876 = 11,
6877 /* Unsigned 32-bit value */
6878 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6879 = 12,
6880
6881 /* GSCAN Attributes used with
6882 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6883 */
6884
6885 /* Unsigned 32-bit value */
6886 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6887
6888 /* GSCAN attributes used with
6889 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6890 */
6891
6892 /* An array of NUM_RESULTS_AVAILABLE x
6893 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6894 */
6895 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6896
6897 /* Unsigned 64-bit value; age of sample at the time of retrieval */
6898 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6899 /* 33 x unsigned 8-bit value; NULL terminated SSID */
6900 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6901 /* An array of 6 x unsigned 8-bit value */
6902 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6903 /* Unsigned 32-bit value; channel frequency in MHz */
6904 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6905 /* Signed 32-bit value */
6906 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6907 /* Unsigned 32-bit value */
6908 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6909 /* Unsigned 32-bit value */
6910 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6911 /* Unsigned 16-bit value */
6912 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6913 /* Unsigned 16-bit value */
6914 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6915 /* Unsigned 32-bit value; size of the IE DATA blob */
6916 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6917 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6918 * information elements found in the beacon; this data should be a
6919 * packed list of wifi_information_element objects, one after the
6920 * other.
6921 */
6922 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6923
6924 /* Unsigned 8-bit value; set by driver to indicate more scan results are
6925 * available.
6926 */
6927 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6928
6929 /* GSCAN attributes for
6930 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6931 */
6932 /* Unsigned 8-bit value */
6933 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6934 /* Unsigned 32-bit value */
6935 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6936
6937 /* GSCAN attributes for
6938 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6939 */
6940 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6941 * to indicate number of results.
6942 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6943 * list of results.
6944 */
6945
6946 /* GSCAN attributes for
6947 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6948 */
6949 /* An array of 6 x unsigned 8-bit value */
6950 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6951 /* Unsigned 32-bit value */
6952 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6953 = 30,
6954 /* Unsigned 32-bit value. */
6955 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
6956 = 31,
6957 /* A nested array of signed 32-bit RSSI values. Size of the array is
6958 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
6959 */
6960 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
6961 = 32,
6962
6963 /* GSCAN attributes used with
6964 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
6965 */
6966 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6967 * to indicate number of gscan cached results returned.
6968 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
6969 * the list of gscan cached results.
6970 */
6971
6972 /* An array of NUM_RESULTS_AVAILABLE x
6973 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
6974 */
6975 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
6976 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
6977 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
6978 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
6979 */
6980 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
6981 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6982 * to indicate number of wifi scan results/bssids retrieved by the scan.
6983 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6984 * list of wifi scan results returned for each cached result block.
6985 */
6986
6987 /* GSCAN attributes for
6988 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
6989 */
6990 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
6991 * number of results.
6992 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6993 * list of wifi scan results returned for each
6994 * wifi_passpoint_match_result block.
6995 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
6996 */
6997
6998 /* GSCAN attributes for
6999 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
7000 */
7001 /* Unsigned 32-bit value */
7002 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
7003 = 36,
7004 /* A nested array of
7005 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
7006 * attributes. Array size =
7007 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
7008 */
7009 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
7010
7011 /* Unsigned 32-bit value; network block id for the matched network */
7012 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
7013 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
7014 * list of wifi scan results returned for each
7015 * wifi_passpoint_match_result block.
7016 */
7017 /* Unsigned 32-bit value */
7018 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
7019 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
7020 * ANQP data in the information_element format.
7021 */
7022 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
7023
7024 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7025 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
7026 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7027 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
7028 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
7029 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
7030 = 43,
7031 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08007032 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08007033 = 44,
7034
7035 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
7036
Hai Shalomce48b4a2018-09-05 11:41:35 -07007037 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
7038 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07007039 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08007040 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07007041 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
7042 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08007043 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07007044
Sunil Ravi036cec52023-03-29 11:35:17 -07007045 /* Attribute used for padding for 64-bit alignment */
7046 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
7047
Dmitry Shmidt29333592017-01-09 12:27:11 -08007048 /* keep last */
7049 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
7050 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
7051 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
7052};
7053
Hai Shaloma20dcd72022-02-04 13:43:00 -08007054/* old names for API compatibility */
7055#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
7056 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
7057#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
7058 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
7059
Dmitry Shmidt29333592017-01-09 12:27:11 -08007060enum qca_wlan_vendor_attr_pno_config_params {
7061 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
7062 /* Attributes for data used by
7063 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
7064 */
7065 /* Unsigned 32-bit value */
7066 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
7067 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
7068 * attributes. Array size =
7069 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
7070 */
7071 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
7072
7073 /* Unsigned 32-bit value */
7074 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
7075 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
7076 * realm, 0 if unspecified.
7077 */
7078 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
7079 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
7080 * match, 0 if unspecified.
7081 */
7082 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
7083 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
7084 * unspecified.
7085 */
7086 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
7087
7088 /* Attributes for data used by
7089 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
7090 */
7091 /* Unsigned 32-bit value */
7092 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
7093 /* Array of nested
7094 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
7095 * attributes. Array size =
7096 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
7097 */
7098 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
7099 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
7100 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
7101 /* Signed 8-bit value; threshold for considering this SSID as found,
7102 * required granularity for this threshold is 4 dBm to 8 dBm.
7103 */
7104 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
7105 = 10,
7106 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
7107 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
7108 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
7109 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
7110 /* Unsigned 8-bit to indicate ePNO type;
7111 * It takes values from qca_wlan_epno_type
7112 */
7113 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
7114
7115 /* Nested attribute to send the channel list */
7116 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
7117
7118 /* Unsigned 32-bit value; indicates the interval between PNO scan
7119 * cycles in msec.
7120 */
7121 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
7122 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
7123 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
7124 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
7125 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
7126 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
7127 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
7128 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007129 /* Unsigned 32-bit value, representing the PNO Request ID */
7130 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08007131
7132 /* keep last */
7133 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
7134 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
7135 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
7136};
7137
Paul Stewart092955c2017-02-06 09:13:09 -08007138/**
7139 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7140 * the ACS has to be triggered. These values are used by
7141 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7142 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7143 */
7144enum qca_wlan_vendor_acs_select_reason {
7145 /* Represents the reason that the ACS triggered during the AP start */
7146 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7147 /* Represents the reason that DFS found with the current channel */
7148 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7149 /* Represents the reason that LTE co-exist in the current band. */
7150 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07007151 /* Represents the reason that generic, uncategorized interference has
7152 * been found in the current channel.
7153 */
7154 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7155 /* Represents the reason that excessive 802.11 interference has been
7156 * found in the current channel.
7157 */
7158 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7159 /* Represents the reason that generic Continuous Wave (CW) interference
7160 * has been found in the current channel.
7161 */
7162 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7163 /* Represents the reason that Microwave Oven (MWO) interference has been
7164 * found in the current channel.
7165 */
7166 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7167 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
7168 * (FHSS) interference has been found in the current channel. This may
7169 * include 802.11 waveforms.
7170 */
7171 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7172 /* Represents the reason that non-802.11 generic Frequency-Hopping
7173 * Spread Spectrum (FHSS) interference has been found in the current
7174 * channel.
7175 */
7176 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7177 /* Represents the reason that generic Wideband (WB) interference has
7178 * been found in the current channel. This may include 802.11 waveforms.
7179 */
7180 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7181 /* Represents the reason that non-802.11 generic Wideband (WB)
7182 * interference has been found in the current channel.
7183 */
7184 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7185 /* Represents the reason that Jammer interference has been found in the
7186 * current channel.
7187 */
7188 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07007189 /* Represents the reason that ACS triggered by AFC */
7190 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08007191};
7192
7193/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007194 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7195 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7196 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7197 * external ACS policies to select the channels w.r.t. the PCL weights.
7198 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7199 * their PCL weights.)
7200 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7201 * select a channel with non-zero PCL weight.
7202 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7203 * channel with non-zero PCL weight.
7204 *
7205 */
7206enum qca_wlan_vendor_attr_external_acs_policy {
7207 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7208 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7209};
7210
7211/**
Paul Stewart092955c2017-02-06 09:13:09 -08007212 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
7213 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
7214 */
7215enum qca_wlan_vendor_channel_prop_flags {
7216 /* Bits 0, 1, 2, and 3 are reserved */
7217
7218 /* Turbo channel */
7219 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
7220 /* CCK channel */
7221 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
7222 /* OFDM channel */
7223 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
7224 /* 2.4 GHz spectrum channel. */
7225 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
7226 /* 5 GHz spectrum channel */
7227 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
7228 /* Only passive scan allowed */
7229 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
7230 /* Dynamic CCK-OFDM channel */
7231 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
7232 /* GFSK channel (FHSS PHY) */
7233 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
7234 /* Radar found on channel */
7235 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
7236 /* 11a static turbo channel only */
7237 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
7238 /* Half rate channel */
7239 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
7240 /* Quarter rate channel */
7241 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
7242 /* HT 20 channel */
7243 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
7244 /* HT 40 with extension channel above */
7245 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
7246 /* HT 40 with extension channel below */
7247 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
7248 /* HT 40 intolerant */
7249 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
7250 /* VHT 20 channel */
7251 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
7252 /* VHT 40 with extension channel above */
7253 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
7254 /* VHT 40 with extension channel below */
7255 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
7256 /* VHT 80 channel */
7257 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
7258 /* HT 40 intolerant mark bit for ACS use */
7259 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
7260 /* Channel temporarily blocked due to noise */
7261 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
7262 /* VHT 160 channel */
7263 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
7264 /* VHT 80+80 channel */
7265 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007266 /* HE 20 channel */
7267 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
7268 /* HE 40 with extension channel above */
7269 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
7270 /* HE 40 with extension channel below */
7271 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
7272 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07007273 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007274};
7275
7276/**
7277 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
7278 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
7279 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
7280 */
7281enum qca_wlan_vendor_channel_prop_flags_2 {
7282 /* HE 40 intolerant mark bit for ACS use */
7283 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
7284 /* HE 80 channel */
7285 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
7286 /* HE 160 channel */
7287 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
7288 /* HE 80+80 channel */
7289 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007290};
7291
7292/**
7293 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
7294 * each channel. This is used by
7295 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
7296 */
7297enum qca_wlan_vendor_channel_prop_flags_ext {
7298 /* Radar found on channel */
7299 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
7300 /* DFS required on channel */
7301 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
7302 /* DFS required on channel for 2nd band of 80+80 */
7303 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
7304 /* If channel has been checked for DFS */
7305 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
7306 /* Excluded in 802.11d */
7307 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
7308 /* Channel Switch Announcement received on this channel */
7309 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
7310 /* Ad-hoc is not allowed */
7311 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
7312 /* Station only channel */
7313 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07007314 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007315 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07007316 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007317 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
7318};
7319
7320/**
7321 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
7322 * information. These attributes are sent as part of
7323 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
7324 * attributes correspond to a single channel.
7325 */
7326enum qca_wlan_vendor_external_acs_event_chan_info_attr {
7327 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
7328
7329 /* A bitmask (u32) with flags specified in
7330 * enum qca_wlan_vendor_channel_prop_flags.
7331 */
7332 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
7333 /* A bitmask (u32) with flags specified in
7334 * enum qca_wlan_vendor_channel_prop_flags_ext.
7335 */
7336 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
7337 /* frequency in MHz (u32) */
7338 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
7339 /* maximum regulatory transmission power (u32) */
7340 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
7341 /* maximum transmission power (u32) */
7342 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
7343 /* minimum transmission power (u32) */
7344 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
7345 /* regulatory class id (u8) */
7346 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
7347 /* maximum antenna gain in (u8) */
7348 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
7349 /* VHT segment 0 (u8) */
7350 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
7351 /* VHT segment 1 (u8) */
7352 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007353 /* A bitmask (u32) with flags specified in
7354 * enum qca_wlan_vendor_channel_prop_flags_2.
7355 */
7356 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007357
Hai Shalomc3565922019-10-28 11:58:20 -07007358 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007359 * Segment 0 in MHz (u32).
7360 *
7361 * For 20/40/80 MHz bandwidth, this indicates the channel center
7362 * frequency index for the 20/40/80 MHz operating channel.
7363 * For 160 MHz bandwidth, this indicates the channel center
7364 * frequency of the primary 80 MHz channel.
7365 * For 320 MHz bandwidth, indicates the channel center frequency
7366 * of the primary 160 MHz channel.
7367 *
7368 * To maintain backward compatibility,
7369 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7370 * is also maintained.
7371 */
7372 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
7373 /* Legacy alias for the Segment 0 attribute.
7374 *
Hai Shalomc3565922019-10-28 11:58:20 -07007375 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
7376 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7377 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7378 * along with
7379 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
7380 *
7381 * If both the driver and user-space application supports the 6 GHz
7382 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
7383 * is deprecated and
7384 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7385 * should be used.
7386 *
7387 * To maintain backward compatibility,
7388 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7389 * is still used if either of the driver or user space application
7390 * doesn't support the 6 GHz band.
7391 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007392 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
7393 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07007394
7395 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007396 * Segment 1 in MHz (u32).
7397 *
7398 * For 20/40/80 MHz bandwidth, this is set to 0.
7399 * For 160 MHz bandwidth, indicates the channel center frequency of the
7400 * 160 MHz channel.
7401 * For 320 MHz bandwidth, indicates the channel center frequency of the
7402 * 320 MHz channel.
7403 *
7404 * To maintain backward compatibility,
7405 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7406 * is also maintained.
7407 */
7408 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
7409 /* Legacy alias for the Segment 1 attribute.
7410 *
Hai Shalomc3565922019-10-28 11:58:20 -07007411 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
7412 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7413 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7414 * along with
7415 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
7416 *
7417 * If both the driver and user-space application supports the 6 GHz
7418 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
7419 * is deprecated and
7420 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7421 * should be considered.
7422 *
7423 * To maintain backward compatibility,
7424 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7425 * is still used if either of the driver or user space application
7426 * doesn't support the 6 GHz band.
7427 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007428 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
7429 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07007430
Sunil Ravia04bd252022-05-02 22:54:18 -07007431 /*
7432 * 16-bit attribute of bits indicating the AP power modes supported by
7433 * the channel (u16).
7434 * Note: Currently, only 3 bits are used in the attribute and each bit
7435 * corresponds to the power mode mentioned in enum
7436 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
7437 * set if the associated mode is supported.
7438 */
7439 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
7440 = 14,
7441 /* Array of nested attributes for each power mode. It takes attr as
7442 * defined in enum
7443 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
7444 */
7445 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007446 /*
7447 * This indicates the overlapping 320 MHz center frequency in MHz
7448 * (u32), if the given primary channel supports more than one
7449 * 320 MHz channel bonding.
7450 *
7451 * Example:
7452 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
7453 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
7454 * possible segment 2 frequencies for this (320 MHz center
7455 * frequencies):
7456 *
7457 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
7458 * from frequency 5945 MHz - 6265 MHz
7459 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
7460 * from frequency 6105 MHz - 6425 MHz
7461 *
7462 * In this case,
7463 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
7464 * return 6185 MHz.
7465 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
7466 * return 6105 MHz.
7467 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7468 * will return 6265 MHz.
7469 */
7470 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7471 = 16,
7472
Paul Stewart092955c2017-02-06 09:13:09 -08007473 /* keep last */
7474 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
7475 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
7476 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
7477};
7478
7479/**
Sunil Ravia04bd252022-05-02 22:54:18 -07007480 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
7481 * values that the vendor external ACS channel power attribute
7482 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
7483 * take.
7484 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
7485 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
7486 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
7487 */
7488enum qca_wlan_vendor_external_acs_chan_power_level {
7489 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
7490 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
7491 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
7492};
7493
7494/**
7495 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
7496 * attributes for power mode type and power values corresponding to that.
7497 * These attributes are sent as part of
7498 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
7499 */
7500enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
7501 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
7502 /*
7503 * Power mode (u8) takes the values defined in enum
7504 * qca_wlan_vendor_external_acs_chan_power_mode
7505 */
7506 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
7507 = 1,
7508 /*
7509 * Indicates if power value is a PSD/EIRP value (flag). If flag is
7510 * present, it indicates a PSD value.
7511 */
7512 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
7513 /*
7514 * Power value (u32) PSD/EIRP as indicated by
7515 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
7516 * for power mode corresponding to the
7517 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
7518 * Units for PSD - dBm/MHz
7519 * Units for EIRP - dBm
7520 */
7521 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
7522 = 3,
7523 /* keep last */
7524 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
7525 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
7526 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
7527};
7528
7529/**
Paul Stewart092955c2017-02-06 09:13:09 -08007530 * qca_wlan_vendor_attr_pcl: Represents attributes for
7531 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07007532 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
7533 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08007534 */
7535enum qca_wlan_vendor_attr_pcl {
7536 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
7537
7538 /* Channel number (u8) */
7539 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
7540 /* Channel weightage (u8) */
7541 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007542 /* Channel frequency (u32) in MHz */
7543 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
7544 /* Channel flags (u32)
7545 * bit 0 set: channel to be used for GO role,
7546 * bit 1 set: channel to be used on CLI role,
7547 * bit 2 set: channel must be considered for operating channel
7548 * selection & peer chosen operating channel should be
7549 * one of the channels with this flag set,
7550 * bit 3 set: channel should be excluded in GO negotiation
7551 */
7552 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07007553
7554 /* Keep last */
7555 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
7556 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08007557};
7558
7559/**
7560 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
7561 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
7562 * host driver.
7563 */
7564enum qca_wlan_vendor_attr_external_acs_event {
7565 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
7566
7567 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
7568 * This helps ACS module to understand why ACS needs to be started.
7569 */
7570 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
7571 /* Flag attribute to indicate if driver supports spectral scanning */
7572 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
7573 /* Flag attribute to indicate if 11ac is offloaded to firmware */
7574 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
7575 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07007576 * capability as part of scan operation
7577 */
Paul Stewart092955c2017-02-06 09:13:09 -08007578 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
7579 /* Flag attribute to indicate interface status is UP */
7580 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
7581 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07007582 * values.
7583 */
Paul Stewart092955c2017-02-06 09:13:09 -08007584 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
7585 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
7586 * This is the upper bound of channel width. ACS logic should try to get
7587 * a channel with the specified width and if not found, look for lower
7588 * values.
7589 */
7590 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
7591 /* This (u8) will hold values of one of enum nl80211_bands */
7592 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
7593 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07007594 * values
7595 */
Paul Stewart092955c2017-02-06 09:13:09 -08007596 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
7597 /* Array of (u32) supported frequency list among which ACS should choose
7598 * best frequency.
7599 */
7600 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
7601 /* Preferred channel list by the driver which will have array of nested
7602 * values as per enum qca_wlan_vendor_attr_pcl attribute.
7603 */
7604 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
7605 /* Array of nested attribute for each channel. It takes attr as defined
7606 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
7607 */
7608 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007609 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
7610 * It uses values defined in enum
7611 * qca_wlan_vendor_attr_external_acs_policy.
7612 */
7613 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007614 /* Reference RF Operating Parameter (RROP) availability information
7615 * (u16). It uses values defined in enum
7616 * qca_wlan_vendor_attr_rropavail_info.
7617 */
7618 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07007619 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
7620 * for External ACS
7621 */
7622 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Sunil Ravic0f5d412024-09-11 22:12:49 +00007623 /* Link ID attibute (u8) is used to identify a specific link affiliated
7624 * to an AP MLD.
7625 */
7626 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LINK_ID = 16,
Paul Stewart092955c2017-02-06 09:13:09 -08007627
7628 /* keep last */
7629 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
7630 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
7631 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
7632};
7633
7634/**
Hai Shalomc3565922019-10-28 11:58:20 -07007635 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08007636 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7637 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07007638 *
7639 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7640 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7641 *
7642 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7643 * Array of nested values for each channel with following attributes:
7644 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7645 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7646 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7647 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7648 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7649 * Note: If both the driver and user-space application supports the 6 GHz band,
7650 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7651 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7652 * To maintain backward compatibility,
7653 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7654 * is still used if either of the driver or user space application doesn't
7655 * support the 6 GHz band.
7656 *
7657 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7658 * Primary channel number
7659 * Note: If both the driver and user-space application supports the 6 GHz band,
7660 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7661 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7662 * To maintain backward compatibility,
7663 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7664 * is still used if either of the driver or user space application doesn't
7665 * support the 6 GHz band.
7666 *
7667 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7668 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7669 * Note: If both the driver and user-space application supports the 6 GHz band,
7670 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7671 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7672 * To maintain backward compatibility,
7673 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7674 * is still used if either of the driver or user space application
7675 * doesn't support the 6 GHz band.
7676 *
7677 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7678 * VHT seg0 channel number
7679 * Note: If both the driver and user-space application supports the 6 GHz band,
7680 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7681 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7682 * To maintain backward compatibility,
7683 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7684 * is still used if either of the driver or user space application
7685 * doesn't support the 6 GHz band.
7686 *
7687 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7688 * VHT seg1 channel number
7689 * Note: If both the driver and user-space application supports the 6 GHz band,
7690 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7691 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7692 * To maintain backward compatibility,
7693 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7694 * is still used if either of the driver or user space application
7695 * doesn't support the 6 GHz band.
7696 *
7697 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7698 * Takes one of enum nl80211_chan_width values.
7699 *
7700 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7701 * Array of nested values for each channel with following attributes:
7702 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7703 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7704 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7705 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7706 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7707 * Note: If user-space application has no support of the 6 GHz band, this
7708 * attribute is optional.
7709 *
7710 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7711 * Primary channel frequency in MHz
7712 * Note: If user-space application has no support of the 6 GHz band, this
7713 * attribute is optional.
7714 *
7715 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7716 * Secondary channel frequency in MHz used for HT 40 MHz channels.
7717 * Note: If user-space application has no support of the 6 GHz band, this
7718 * attribute is optional.
7719 *
7720 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7721 * VHT seg0 channel frequency in MHz
7722 * Note: If user-space application has no support of the 6GHz band, this
7723 * attribute is optional.
7724 *
7725 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7726 * VHT seg1 channel frequency in MHz
7727 * Note: If user-space application has no support of the 6 GHz band, this
7728 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00007729 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7730 * Puncture Bitmap for selected primary channel. Optional if no support
7731 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7732 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7733 * element.
Sunil Ravi7f769292024-07-23 22:21:32 +00007734 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8).
7735 * Used with command to configure external ACS operation for a specific link
7736 * affiliated to an AP MLD.
Paul Stewart092955c2017-02-06 09:13:09 -08007737 */
7738enum qca_wlan_vendor_attr_external_acs_channels {
7739 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7740
7741 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7742 */
7743 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7744
7745 /* Array of nested values for each channel with following attributes:
7746 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7747 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7748 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7749 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7750 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7751 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7752 */
7753 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7754 /* This (u8) will hold values of one of enum nl80211_bands */
7755 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7756 /* Primary channel (u8) */
7757 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7758 /* Secondary channel (u8) used for HT 40 MHz channels */
7759 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7760 /* VHT seg0 channel (u8) */
7761 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7762 /* VHT seg1 channel (u8) */
7763 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7764 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7765 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7766
Hai Shalomc3565922019-10-28 11:58:20 -07007767 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7768 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7769 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7770 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7771 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007772 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Sunil Ravi7f769292024-07-23 22:21:32 +00007773 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15,
Hai Shalomc3565922019-10-28 11:58:20 -07007774
Paul Stewart092955c2017-02-06 09:13:09 -08007775 /* keep last */
7776 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7777 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7778 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7779};
7780
7781enum qca_chip_power_save_failure_reason {
7782 /* Indicates if the reason for the failure is due to a protocol
7783 * layer/module.
7784 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007785 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08007786 /* Indicates if the reason for the failure is due to a hardware issue.
7787 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007788 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007789};
7790
7791/**
7792 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
7793 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
7794 * information leading to the power save failure.
7795 */
7796enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07007797 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
7798 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08007799 * These reasons are represented by
7800 * enum qca_chip_power_save_failure_reason.
7801 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007802 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007803
Roshan Pius3a1667e2018-07-03 15:17:14 -07007804 /* keep last */
7805 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
7806 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
7807 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
7808};
7809
7810/**
7811 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
7812 * data types for which the stats have to get collected.
7813 */
7814enum qca_wlan_vendor_nud_stats_data_pkt_flags {
7815 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
7816 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
7817 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
7818 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
7819 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
7820 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
7821 * to represent the stats of respective data type.
7822 */
7823 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
7824 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
7825 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
7826};
7827
7828enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
7829 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
7830 /* Represents the data packet type to be monitored (u32).
7831 * Host driver tracks the stats corresponding to each data frame
7832 * represented by these flags.
7833 * These data packets are represented by
7834 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
7835 */
7836 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
7837 /* Name corresponding to the DNS frame for which the respective DNS
7838 * stats have to get monitored (string). Max string length 255.
7839 */
7840 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
7841 /* source port on which the respective proto stats have to get
7842 * collected (u32).
7843 */
7844 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
7845 /* destination port on which the respective proto stats have to get
7846 * collected (u32).
7847 */
7848 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
7849 /* IPv4 address for which the destined data packets have to be
7850 * monitored. (in network byte order), u32.
7851 */
7852 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
7853 /* IPv6 address for which the destined data packets have to be
7854 * monitored. (in network byte order), 16 bytes array.
7855 */
7856 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
7857
7858 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
7859 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
7860 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007861};
7862
7863/**
7864 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
7865 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
7866 * information to start/stop the NUD statistics collection.
7867 */
7868enum qca_attr_nud_stats_set {
7869 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
7870
7871 /* Flag to start/stop the NUD statistics collection.
7872 * Start - If included, Stop - If not included
7873 */
7874 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007875 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08007876 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007877 /* Represents the list of data packet types to be monitored.
7878 * Host driver tracks the stats corresponding to each data frame
7879 * represented by these flags.
7880 * These data packets are represented by
7881 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7882 */
7883 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007884
7885 /* keep last */
7886 QCA_ATTR_NUD_STATS_SET_LAST,
7887 QCA_ATTR_NUD_STATS_SET_MAX =
7888 QCA_ATTR_NUD_STATS_SET_LAST - 1,
7889};
7890
Roshan Pius3a1667e2018-07-03 15:17:14 -07007891enum qca_attr_nud_data_stats {
7892 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7893 /* Data packet type for which the stats are collected (u32).
7894 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7895 */
7896 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7897 /* Name corresponding to the DNS frame for which the respective DNS
7898 * stats are monitored (string). Max string length 255.
7899 */
7900 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7901 /* source port on which the respective proto stats are collected (u32).
7902 */
7903 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7904 /* destination port on which the respective proto stats are collected
7905 * (u32).
7906 */
7907 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7908 /* IPv4 address for which the destined data packets have to be
7909 * monitored. (in network byte order), u32.
7910 */
7911 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7912 /* IPv6 address for which the destined data packets have to be
7913 * monitored. (in network byte order), 16 bytes array.
7914 */
7915 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7916 /* Data packet Request count received from netdev (u32). */
7917 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7918 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
7919 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7920 /* Data packet Request count received by lower MAC from upper MAC
7921 * (u32)
7922 */
7923 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7924 /* Data packet Request count successfully transmitted by the device
7925 * (u32)
7926 */
7927 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7928 /* Data packet Response count received by lower MAC (u32) */
7929 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7930 /* Data packet Response count received by upper MAC (u32) */
7931 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7932 /* Data packet Response count delivered to netdev (u32) */
7933 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7934 /* Data Packet Response count that are dropped out of order (u32) */
7935 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7936
7937 /* keep last */
7938 QCA_ATTR_NUD_DATA_STATS_LAST,
7939 QCA_ATTR_NUD_DATA_STATS_MAX =
7940 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7941};
7942
Paul Stewart092955c2017-02-06 09:13:09 -08007943/**
7944 * qca_attr_nud_stats_get: Attributes to vendor subcmd
7945 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7946 * NUD statistics collected when queried.
7947 */
7948enum qca_attr_nud_stats_get {
7949 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007950 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007951 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007952 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007953 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007954 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007955 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007956 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007957 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007958 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007959 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007960 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007961 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007962 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007963 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007964 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007965 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
7966 /* Flag indicating if the station's link to the AP is active.
7967 * Active Link - If included, Inactive link - If not included
7968 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007969 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08007970 /* Flag indicating if there is any duplicate address detected (DAD).
7971 * Yes - If detected, No - If not detected.
7972 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007973 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007974 /* List of Data packet types for which the stats are requested.
7975 * This list does not carry ARP stats as they are done by the
7976 * above attributes. Represented by enum qca_attr_nud_data_stats.
7977 */
7978 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007979
7980 /* keep last */
7981 QCA_ATTR_NUD_STATS_GET_LAST,
7982 QCA_ATTR_NUD_STATS_GET_MAX =
7983 QCA_ATTR_NUD_STATS_GET_LAST - 1,
7984};
7985
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007986enum qca_wlan_btm_candidate_status {
7987 QCA_STATUS_ACCEPT = 0,
7988 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
7989 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
7990 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
7991 QCA_STATUS_REJECT_LOW_RSSI = 4,
7992 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
7993 QCA_STATUS_REJECT_UNKNOWN = 6,
7994};
7995
7996enum qca_wlan_vendor_attr_btm_candidate_info {
7997 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
7998
7999 /* 6-byte MAC address representing the BSSID of transition candidate */
8000 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
8001 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
8002 * returned by the driver. It says whether the BSSID provided in
8003 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
8004 * the driver, if not it specifies the reason for rejection.
8005 * Note that the user-space can overwrite the transition reject reason
8006 * codes provided by driver based on more information.
8007 */
8008 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
8009
8010 /* keep last */
8011 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
8012 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
8013 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
8014};
8015
8016enum qca_attr_trace_level {
8017 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
8018 /*
8019 * Nested array of the following attributes:
8020 * QCA_ATTR_TRACE_LEVEL_MODULE,
8021 * QCA_ATTR_TRACE_LEVEL_MASK.
8022 */
8023 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
8024 /*
8025 * Specific QCA host driver module. Please refer to the QCA host
8026 * driver implementation to get the specific module ID.
8027 */
8028 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
8029 /* Different trace level masks represented in the QCA host driver. */
8030 QCA_ATTR_TRACE_LEVEL_MASK = 3,
8031
8032 /* keep last */
8033 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
8034 QCA_ATTR_TRACE_LEVEL_MAX =
8035 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
8036};
8037
8038/**
8039 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
8040 */
8041enum qca_wlan_vendor_attr_get_he_capabilities {
8042 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
8043 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07008044 * (u8 attribute: 0 = not supported, 1 = supported)
8045 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08008046 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
8047 /* HE PHY capabilities, array of 3 u32 values */
8048 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
8049 /* HE MAC capabilities (u32 attribute) */
8050 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
8051 /* HE MCS map (u32 attribute) */
8052 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
8053 /* Number of SS (u32 attribute) */
8054 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
8055 /* RU count (u32 attribute) */
8056 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
8057 /* PPE threshold data, array of 8 u32 values */
8058 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
8059
8060 /* keep last */
8061 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
8062 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
8063 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
8064};
8065
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008066/**
8067 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8068 */
8069enum qca_wlan_vendor_attr_spectral_scan {
8070 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8071 /* Number of times the chip enters spectral scan mode before
8072 * deactivating spectral scans. When set to 0, chip will enter spectral
8073 * scan mode continuously. u32 attribute.
8074 */
8075 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8076 /* Spectral scan period. Period increment resolution is 256*Tclk,
8077 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8078 */
8079 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8080 /* Spectral scan priority. u32 attribute. */
8081 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8082 /* Number of FFT data points to compute. u32 attribute. */
8083 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8084 /* Enable targeted gain change before starting the spectral scan FFT.
8085 * u32 attribute.
8086 */
8087 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8088 /* Restart a queued spectral scan. u32 attribute. */
8089 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8090 /* Noise floor reference number for the calculation of bin power.
8091 * u32 attribute.
8092 */
8093 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8094 /* Disallow spectral scan triggers after TX/RX packets by setting
8095 * this delay value to roughly SIFS time period or greater.
8096 * u32 attribute.
8097 */
8098 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8099 /* Number of strong bins (inclusive) per sub-channel, below
8100 * which a signal is declared a narrow band tone. u32 attribute.
8101 */
8102 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8103 /* Specify the threshold over which a bin is declared strong (for
8104 * scan bandwidth analysis). u32 attribute.
8105 */
8106 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8107 /* Spectral scan report mode. u32 attribute. */
8108 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8109 /* RSSI report mode, if the ADC RSSI is below
8110 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8111 * then FFTs will not trigger, but timestamps and summaries get
8112 * reported. u32 attribute.
8113 */
8114 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8115 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
8116 * to ensure spectral scan reporting with normal error code.
8117 * u32 attribute.
8118 */
8119 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8120 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
8121 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8122 * u32 attribute.
8123 */
8124 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8125 /* Format of FFT report to software for spectral scan triggered FFTs.
8126 * 0: No FFT report (only spectral scan summary report)
8127 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8128 * report
8129 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8130 * bins (in-band) per FFT + spectral scan summary report
8131 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8132 * bins (all) per FFT + spectral scan summary report
8133 * u32 attribute.
8134 */
8135 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8136 /* Number of LSBs to shift out in order to scale the FFT bins.
8137 * u32 attribute.
8138 */
8139 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8140 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8141 * in dBm power. u32 attribute.
8142 */
8143 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8144 /* Per chain enable mask to select input ADC for search FFT.
8145 * u32 attribute.
8146 */
8147 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8148 /* An unsigned 64-bit integer provided by host driver to identify the
8149 * spectral scan request. This attribute is included in the scan
8150 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8151 * and used as an attribute in
8152 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8153 * specific scan to be stopped.
8154 */
8155 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008156 /* Skip interval for FFT reports. u32 attribute */
8157 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8158 /* Set to report only one set of FFT results.
8159 * u32 attribute.
8160 */
8161 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8162 /* Debug level for spectral module in driver.
8163 * 0 : Verbosity level 0
8164 * 1 : Verbosity level 1
8165 * 2 : Verbosity level 2
8166 * 3 : Matched filterID display
8167 * 4 : One time dump of FFT report
8168 * u32 attribute.
8169 */
8170 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8171 /* Type of spectral scan request. u32 attribute.
8172 * It uses values defined in enum
8173 * qca_wlan_vendor_attr_spectral_scan_request_type.
8174 */
8175 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07008176 /* This specifies the frequency span over which spectral
8177 * scan would be carried out. Its value depends on the
8178 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8179 * the relation is as follows.
8180 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8181 * Not applicable. Spectral scan would happen in the
8182 * operating span.
8183 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8184 * Center frequency (in MHz) of the span of interest or
8185 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07008186 * in the span of interest. For 80+80 MHz agile spectral scan
8187 * request it represents center frequency (in MHz) of the primary
8188 * 80 MHz span or for convenience, center frequency (in MHz) of any
8189 * channel in the primary 80 MHz span. If agile spectral scan is
8190 * initiated without setting a valid frequency it returns the
8191 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07008192 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8193 * u32 attribute.
8194 */
8195 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8196 /* Spectral scan mode. u32 attribute.
8197 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8198 * If this attribute is not present, it is assumed to be
8199 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8200 */
8201 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8202 /* Spectral scan error code. u32 attribute.
8203 * It uses values defined in enum
8204 * qca_wlan_vendor_spectral_scan_error_code.
8205 * This attribute is included only in failure scenarios.
8206 */
8207 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8208 /* 8-bit unsigned value to enable/disable debug of the
8209 * Spectral DMA ring.
8210 * 1-enable, 0-disable
8211 */
8212 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8213 /* 8-bit unsigned value to enable/disable debug of the
8214 * Spectral DMA buffers.
8215 * 1-enable, 0-disable
8216 */
8217 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008218 /* This specifies the frequency span over which spectral scan would be
8219 * carried out. Its value depends on the value of
8220 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8221 * follows.
8222 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8223 * Not applicable. Spectral scan would happen in the operating span.
8224 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8225 * This attribute is applicable only for agile spectral scan
8226 * requests in 80+80 MHz mode. It represents center frequency (in
8227 * MHz) of the secondary 80 MHz span or for convenience, center
8228 * frequency (in MHz) of any channel in the secondary 80 MHz span.
8229 * u32 attribute.
8230 */
8231 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008232 /* This attribute specifies the bandwidth to be used for spectral scan
8233 * operation. This is an u8 attribute and uses the values in enum
8234 * nl80211_chan_width. This is an optional attribute.
8235 * If this attribute is not populated, the driver should configure the
8236 * spectral scan bandwidth to the maximum value supported by the target
8237 * for the current operating bandwidth.
8238 */
8239 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008240 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
8241 * Recapture can only be enabled for scan period greater than 52 us.
8242 * If this attribute is enabled, re-triggers will be enabled when AGC
8243 * gain changes.
8244 */
8245 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07008246 /* Attribute used for padding for 64-bit alignment */
8247 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Sunil Ravi99c035e2024-07-12 01:42:03 +00008248 /* Spectral data transport mode. u32 attribute. It uses values
8249 * defined in enum qca_wlan_vendor_spectral_data_transport_mode.
8250 * This is an optional attribute. If this attribute is not populated,
8251 * the driver should configure the default transport mode to netlink.
8252 */
8253 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33,
8254 /* Spectral scan completion timeout. u32 attribute. This
8255 * attribute is used to configure a timeout value (in us). The
8256 * timeout value would be from the beginning of a spectral
8257 * scan. This is an optional attribute. If this attribute is
8258 * not populated, the driver would internally derive the
8259 * timeout value.
8260 */
8261 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008262
8263 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8264 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8265 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8266};
8267
Roshan Pius3a1667e2018-07-03 15:17:14 -07008268/**
8269 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8270 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8271 */
8272enum qca_wlan_vendor_attr_spectral_diag_stats {
8273 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8274 /* Number of spectral TLV signature mismatches.
8275 * u64 attribute.
8276 */
8277 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8278 /* Number of spectral phyerror events with insufficient length when
8279 * parsing for secondary 80 search FFT report. u64 attribute.
8280 */
8281 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8282 /* Number of spectral phyerror events without secondary 80
8283 * search FFT report. u64 attribute.
8284 */
8285 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8286 /* Number of spectral phyerror events with vht operation segment 1 id
8287 * mismatches in search fft report. u64 attribute.
8288 */
8289 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8290 /* Number of spectral phyerror events with vht operation segment 2 id
8291 * mismatches in search fft report. u64 attribute.
8292 */
8293 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07008294 /* Attribute used for padding for 64-bit alignment */
8295 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008296
8297 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8298 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8299 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8300};
8301
8302/**
8303 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8304 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8305 */
8306enum qca_wlan_vendor_attr_spectral_cap {
8307 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8308 /* Flag attribute to indicate phydiag capability */
8309 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8310 /* Flag attribute to indicate radar detection capability */
8311 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8312 /* Flag attribute to indicate spectral capability */
8313 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8314 /* Flag attribute to indicate advanced spectral capability */
8315 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8316 /* Spectral hardware generation. u32 attribute.
8317 * It uses values defined in enum
8318 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8319 */
8320 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008321 /* Spectral bin scaling formula ID. u16 attribute.
8322 * It uses values defined in enum
8323 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8324 */
8325 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8326 /* Spectral bin scaling param - low level offset.
8327 * s16 attribute.
8328 */
8329 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8330 /* Spectral bin scaling param - high level offset.
8331 * s16 attribute.
8332 */
8333 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8334 /* Spectral bin scaling param - RSSI threshold.
8335 * s16 attribute.
8336 */
8337 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8338 /* Spectral bin scaling param - default AGC max gain.
8339 * u8 attribute.
8340 */
8341 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07008342 /* Flag attribute to indicate agile spectral scan capability
8343 * for 20/40/80 MHz modes.
8344 */
Hai Shalom81f62d82019-07-22 12:10:00 -07008345 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07008346 /* Flag attribute to indicate agile spectral scan capability
8347 * for 160 MHz mode.
8348 */
8349 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8350 /* Flag attribute to indicate agile spectral scan capability
8351 * for 80+80 MHz mode.
8352 */
8353 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008354 /* Number of spectral detectors used for scan in 20 MHz.
8355 * u32 attribute.
8356 */
8357 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8358 /* Number of spectral detectors used for scan in 40 MHz.
8359 * u32 attribute.
8360 */
8361 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8362 /* Number of spectral detectors used for scan in 80 MHz.
8363 * u32 attribute.
8364 */
8365 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8366 /* Number of spectral detectors used for scan in 160 MHz.
8367 * u32 attribute.
8368 */
8369 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8370 /* Number of spectral detectors used for scan in 80+80 MHz.
8371 * u32 attribute.
8372 */
8373 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008374 /* Flag attribute to indicate agile spectral scan capability
8375 * for 320 MHz mode.
8376 */
8377 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8378 /* Number of spectral detectors used for scan in 320 MHz.
8379 * u32 attribute.
8380 */
8381 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008382
8383 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8384 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8385 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8386};
8387
8388/**
8389 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8390 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8391 */
8392enum qca_wlan_vendor_attr_spectral_scan_status {
8393 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8394 /* Flag attribute to indicate whether spectral scan is enabled */
8395 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8396 /* Flag attribute to indicate whether spectral scan is in progress*/
8397 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07008398 /* Spectral scan mode. u32 attribute.
8399 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8400 * If this attribute is not present, normal mode
8401 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8402 * requested.
8403 */
8404 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008405
8406 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8407 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8408 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8409};
8410
8411/**
8412 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8413 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8414 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8415 * spectral scan request types.
8416 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8417 * set the spectral parameters and start scan.
8418 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8419 * only set the spectral parameters.
8420 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8421 * only start the spectral scan.
8422 */
8423enum qca_wlan_vendor_attr_spectral_scan_request_type {
8424 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8425 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8426 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8427};
8428
8429/**
Hai Shalom81f62d82019-07-22 12:10:00 -07008430 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8431 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8432 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8433 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8434 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8435 * spectral scan modes.
8436 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8437 * spectral scan in the current operating span.
8438 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8439 * spectral scan in the configured agile span.
8440 */
8441enum qca_wlan_vendor_spectral_scan_mode {
8442 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8443 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8444};
8445
8446/**
8447 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8448 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8449 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8450 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8451 * of a parameter is not supported.
8452 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8453 * mode is not supported.
8454 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8455 * has invalid value.
8456 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8457 * is not initialized.
8458 */
8459enum qca_wlan_vendor_spectral_scan_error_code {
8460 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8461 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8462 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8463 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8464};
8465
8466/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008467 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8468 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8469 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8470 * spectral hardware generation.
8471 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8472 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8473 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8474 */
8475enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8476 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8477 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8478 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8479};
8480
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008481enum qca_wlan_vendor_tos {
8482 QCA_WLAN_VENDOR_TOS_BK = 0,
8483 QCA_WLAN_VENDOR_TOS_BE = 1,
8484 QCA_WLAN_VENDOR_TOS_VI = 2,
8485 QCA_WLAN_VENDOR_TOS_VO = 3,
8486};
8487
8488/**
8489 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
8490 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
8491 */
8492enum qca_wlan_vendor_attr_active_tos {
8493 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
8494 /* Type Of Service - Represented by qca_wlan_vendor_tos */
8495 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
8496 /* Flag attribute representing the start (attribute included) or stop
8497 * (attribute not included) of the respective TOS.
8498 */
8499 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
8500};
8501
8502enum qca_wlan_vendor_hang_reason {
8503 /* Unspecified reason */
8504 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
8505 /* No Map for the MAC entry for the received frame */
8506 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
8507 /* Peer deletion timeout happened */
8508 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
8509 /* Peer unmap timeout */
8510 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
8511 /* Scan request timed out */
8512 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
8513 /* Consecutive Scan attempt failures */
8514 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
8515 /* Unable to get the message buffer */
8516 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
8517 /* Current command processing is timedout */
8518 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
8519 /* Timeout for an ACK from FW for suspend request */
8520 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
8521 /* Timeout for an ACK from FW for resume request */
8522 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
8523 /* Transmission timeout for consecutive data frames */
8524 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
8525 /* Timeout for the TX completion status of data frame */
8526 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
8527 /* DXE failure for TX/RX, DXE resource unavailability */
8528 QCA_WLAN_HANG_DXE_FAILURE = 12,
8529 /* WMI pending commands exceed the maximum count */
8530 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07008531 /* Timeout for peer STA connection accept command's response from the
8532 * FW in AP mode. This command is triggered when a STA (peer) connects
8533 * to AP (DUT).
8534 */
8535 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
8536 /* Timeout for the AP connection accept command's response from the FW
8537 * in STA mode. This command is triggered when the STA (DUT) connects
8538 * to an AP (peer).
8539 */
8540 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
8541 /* Timeout waiting for the response to the MAC HW mode change command
8542 * sent to FW as a part of MAC mode switch among DBS (Dual Band
8543 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
8544 * Channel Concurrency) mode.
8545 */
8546 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
8547 /* Timeout waiting for the response from FW to configure the MAC HW's
8548 * mode. This operation is to configure the single/two MACs in either
8549 * SCC/MCC/DBS mode.
8550 */
8551 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
8552 /* Timeout waiting for response of VDEV start command from the FW */
8553 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
8554 /* Timeout waiting for response of VDEV restart command from the FW */
8555 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
8556 /* Timeout waiting for response of VDEV stop command from the FW */
8557 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
8558 /* Timeout waiting for response of VDEV delete command from the FW */
8559 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
8560 /* Timeout waiting for response of peer all delete request command to
8561 * the FW on a specific VDEV.
8562 */
8563 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08008564 /* WMI sequence mismatch between WMI command and Tx completion */
8565 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
8566 /* Write to Device HAL register failed */
8567 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
8568 /* No credit left to send the wow_wakeup_from_sleep to firmware */
8569 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
8570 /* Bus failure */
8571 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008572 /* tasklet/credit latency found */
8573 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00008574 /* MSDU buffers received in REO error ring, exceeding certain
8575 * threshold
8576 */
8577 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
8578 /* Vdev SM is out of sync and connect req received
8579 * when already connected
8580 */
8581 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
8582 /* Stats request timeout */
8583 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
8584 /* Leak in TX descriptor for a packet */
8585 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
8586 /* Scheduler watchdog timeout */
8587 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
8588 /* Failed to send self peer deletion cmd to firmware */
8589 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
8590 /* Received del self sta without del bss */
8591 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
8592 /* Recovery needed when sending flush completion to userspace */
8593 QCA_WLAN_HANG_FLUSH_LOGS = 35,
8594 /* Host wakeup because of page fault */
8595 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008596};
8597
8598/**
8599 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
8600 * QCA_NL80211_VENDOR_SUBCMD_HANG.
8601 */
8602enum qca_wlan_vendor_attr_hang {
8603 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
8604 /* Reason for the hang - u32 attribute with a value from enum
8605 * qca_wlan_vendor_hang_reason.
8606 */
8607 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008608 /* The binary blob data associated with the hang reason specified by
8609 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
8610 * contain the required dump to analyze the reason for the hang.
8611 * NLA_BINARY attribute, the max size is 1024 bytes.
8612 */
8613 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008614
8615 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
8616 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
8617 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
8618};
8619
Roshan Pius3a1667e2018-07-03 15:17:14 -07008620/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008621 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
8622 * the policy to flush pending frames, configured via
8623 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
8624 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
8625 *
8626 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
8627 * the flush policy configured before. This command basically disables the
8628 * flush config set by the user.
8629 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
8630 * the flush policy to be immediate. All pending packets for the peer/TID are
8631 * flushed when this command/policy is received.
8632 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
8633 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
8634 * are flushed when the end of TWT SP is reached.
8635 */
8636enum qca_wlan_vendor_flush_pending_policy {
8637 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
8638 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
8639 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
8640};
8641
8642/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008643 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
8644 * flushing pending traffic in firmware.
8645 *
8646 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
8647 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
8648 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
8649 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08008650 * flush packets with access category. This is optional. See below.
8651 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
8652 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
8653 * bit to 1 to act upon the TID. This is optional. Either this attribute or
8654 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
8655 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
8656 * it is an error.
8657 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
8658 * packets corresponding to the peer/TID provided. It is a u32 value,
8659 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
8660 * value is honored only when TID mask is provided. This is not honored when AC
8661 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008662 */
8663enum qca_wlan_vendor_attr_flush_pending {
8664 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
8665 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
8666 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008667 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
8668 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008669
8670 /* keep last */
8671 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
8672 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
8673 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
8674};
8675
8676/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008677 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8678 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8679 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8680 * Spectral bin scaling formula ID.
8681 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8682 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8683 * and RSSI threshold based formula.
8684 */
8685enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8686 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8687 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8688};
8689
8690/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008691 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8692 * RF Operating Parameter (RROP) information is available, and if so, at which
8693 * point in the application-driver interaction sequence it can be retrieved by
8694 * the application from the driver. This point may vary by architecture and
8695 * other factors. This is a u16 value.
8696 */
8697enum qca_wlan_vendor_attr_rropavail_info {
8698 /* RROP information is unavailable. */
8699 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8700 /* RROP information is available and the application can retrieve the
8701 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8702 * event from the driver.
8703 */
8704 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8705 /* RROP information is available only after a vendor specific scan
8706 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8707 * successfully completed. The application can retrieve the information
8708 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8709 * the driver.
8710 */
8711 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8712};
8713
8714/**
8715 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8716 * Representative RF Operating Parameter (RROP) information. It is sent for the
8717 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8718 * intended for use by external Auto Channel Selection applications. It provides
8719 * guidance values for some RF parameters that are used by the system during
8720 * operation. These values could vary by channel, band, radio, and so on.
8721 */
8722enum qca_wlan_vendor_attr_rrop_info {
8723 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8724
8725 /* Representative Tx Power List (RTPL) which has an array of nested
8726 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8727 */
8728 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8729
8730 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8731 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8732 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8733};
8734
8735/**
8736 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8737 * entry instances in the Representative Tx Power List (RTPL). It provides
8738 * simplified power values intended for helping external Auto channel Selection
8739 * applications compare potential Tx power performance between channels, other
8740 * operating conditions remaining identical. These values are not necessarily
8741 * the actual Tx power values that will be used by the system. They are also not
8742 * necessarily the max or average values that will be used. Instead, they are
8743 * relative, summarized keys for algorithmic use computed by the driver or
8744 * underlying firmware considering a number of vendor specific factors.
8745 */
8746enum qca_wlan_vendor_attr_rtplinst {
8747 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8748
Hai Shalomfdcde762020-04-02 11:19:20 -07008749 /* Primary channel number (u8).
8750 * Note: If both the driver and user space application support the
8751 * 6 GHz band, this attribute is deprecated and
8752 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8753 * maintain backward compatibility,
8754 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8755 * driver or user space application or both do not support the 6 GHz
8756 * band.
8757 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008758 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8759 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
8760 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8761 /* Representative Tx power in dBm (s32) with emphasis on range. */
8762 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07008763 /* Primary channel center frequency (u32) in MHz */
8764 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008765
8766 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8767 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8768 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8769};
8770
8771/**
8772 * enum qca_wlan_vendor_attr_config_latency_level - Level for
8773 * wlan latency module.
8774 *
8775 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8776 * power saving which would causing data exchange out of service, this
8777 * would be a big impact on latency. For latency sensitive applications over
8778 * Wi-Fi are intolerant to such operations and thus would configure them
8779 * to meet their respective needs. It is well understood by such applications
8780 * that altering the default behavior would degrade the Wi-Fi functionality
8781 * w.r.t the above pointed WLAN operations.
8782 *
8783 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8784 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008785 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8786 * Use XR level to benefit XR (extended reality) application to achieve
8787 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008788 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07008789 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07008790 * downloading or video streaming via constraint scan/adaptive PS.
8791 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8792 * Use ultra low latency level to benefit for gaming/voice
8793 * application via constraint scan/roaming/adaptive PS.
8794 */
8795enum qca_wlan_vendor_attr_config_latency_level {
8796 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8797 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008798 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8799 /* legacy name */
8800 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8801 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008802 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8803 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8804
8805 /* keep last */
8806 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8807 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8808 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8809};
8810
8811/**
8812 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
8813 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8814 */
8815enum qca_wlan_vendor_attr_mac {
8816 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8817
8818 /* MAC mode info list which has an array of nested values as
8819 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
8820 */
8821 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8822
8823 /* keep last */
8824 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8825 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8826 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8827};
8828
8829/**
8830 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8831 * Wi-Fi netdev interface on a respective MAC.
8832 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8833 */
8834enum qca_wlan_vendor_attr_mac_iface_info {
8835 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8836 /* Wi-Fi netdev's interface index (u32) */
8837 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8838 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
8839 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8840
8841 /* keep last */
8842 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8843 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8844 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8845};
8846
8847/**
8848 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8849 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8850 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8851 */
8852enum qca_wlan_vendor_attr_mac_info {
8853 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8854 /* Hardware MAC ID associated for the MAC (u32) */
8855 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8856 /* Band supported by the MAC at a given point.
8857 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
8858 * nl80211_band.
8859 */
8860 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8861 /* Refers to list of WLAN netdev interfaces associated with this MAC.
8862 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
8863 */
8864 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8865
8866 /* keep last */
8867 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8868 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8869 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8870};
8871
8872/**
8873 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
8874 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
8875 */
8876enum qca_wlan_vendor_attr_get_logger_features {
8877 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
8878 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
8879 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
8880 /* keep last */
8881 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
8882 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
8883 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
8884};
8885
8886/**
8887 * enum wifi_logger_supported_features - Values for supported logger features
8888 */
8889enum wifi_logger_supported_features {
8890 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
8891 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
8892 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8893 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8894 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8895 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8896 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8897 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8898 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8899};
8900
8901/**
8902 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8903 * capabilities features
8904 */
8905enum qca_wlan_tdls_caps_features_supported {
8906 WIFI_TDLS_SUPPORT = (1 << (0)),
8907 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008908 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
8909
8910 /* Indicates if the TDLS session can be formed with the peer using
8911 * higher bandwidth than the bandwidth of the AP path.
8912 */
8913 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
Roshan Pius3a1667e2018-07-03 15:17:14 -07008914};
8915
8916/**
8917 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8918 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8919 */
8920enum qca_wlan_vendor_attr_tdls_get_capabilities {
8921 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8922 /* Indicates the max concurrent sessions */
8923 /* Unsigned 32-bit value */
8924 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8925 /* Indicates the support for features */
8926 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8927 */
8928 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8929
8930 /* keep last */
8931 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8932 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8933 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8934};
8935
8936/**
8937 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8938 * command used as value for the attribute
8939 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8940 */
8941enum qca_wlan_offloaded_packets_sending_control {
8942 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8943 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8944 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8945};
8946
8947/**
8948 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8949 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8950 */
8951enum qca_wlan_vendor_attr_offloaded_packets {
8952 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8953 /* Takes valid value from the enum
8954 * qca_wlan_offloaded_packets_sending_control
8955 * Unsigned 32-bit value
8956 */
8957 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
8958 /* Unsigned 32-bit value */
8959 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
8960 /* array of u8 len: Max packet size */
8961 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
8962 /* 6-byte MAC address used to represent source MAC address */
8963 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
8964 /* 6-byte MAC address used to represent destination MAC address */
8965 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
8966 /* Unsigned 32-bit value, in milli seconds */
8967 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07008968 /* This optional unsigned 16-bit attribute is used for specifying
8969 * ethernet protocol type. If not specified ethertype defaults to IPv4.
8970 */
8971 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008972
8973 /* keep last */
8974 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
8975 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
8976 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
8977};
8978
8979/**
8980 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
8981 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
8982 */
8983enum qca_wlan_rssi_monitoring_control {
8984 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
8985 QCA_WLAN_RSSI_MONITORING_START,
8986 QCA_WLAN_RSSI_MONITORING_STOP,
8987};
8988
8989/**
8990 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
8991 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
8992 */
8993enum qca_wlan_vendor_attr_rssi_monitoring {
8994 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
8995 /* Takes valid value from the enum
8996 * qca_wlan_rssi_monitoring_control
8997 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
8998 */
8999 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
9000 /* Unsigned 32-bit value */
9001 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
9002 /* Signed 8-bit value in dBm */
9003 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
9004 /* Signed 8-bit value in dBm */
9005 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
9006 /* attributes to be used/received in callback */
9007 /* 6-byte MAC address used to represent current BSSID MAC address */
9008 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
9009 /* Signed 8-bit value indicating the current RSSI */
9010 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
9011 /* keep last */
9012 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
9013 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
9014 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
9015};
9016
9017/**
9018 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
9019 * QCA_NL80211_VENDOR_SUBCMD_NDP.
9020 */
9021enum qca_wlan_vendor_attr_ndp_params {
9022 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
9023 /* Unsigned 32-bit value
9024 * enum of sub commands values in qca_wlan_ndp_sub_cmd
9025 */
9026 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
9027 /* Unsigned 16-bit value */
9028 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
9029 /* NL attributes for data used NDP SUB cmds */
9030 /* Unsigned 32-bit value indicating a service info */
9031 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
9032 /* Unsigned 32-bit value; channel frequency in MHz */
9033 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
9034 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
9035 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
9036 /* Interface name on which NDP is being created */
9037 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
9038 /* Unsigned 32-bit value for security */
9039 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
9040 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
9041 /* Unsigned 32-bit value for QoS */
9042 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
9043 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
9044 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
9045 /* Unsigned 32-bit value for NDP instance Id */
9046 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
9047 /* Array of instance Ids */
9048 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
9049 /* Unsigned 32-bit value for initiator/responder NDP response code
9050 * accept/reject
9051 */
9052 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
9053 /* NDI MAC address. An array of 6 Unsigned int8 */
9054 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
9055 /* Unsigned 32-bit value errors types returned by driver
9056 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
9057 * NanStatusType includes these values.
9058 */
9059 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
9060 /* Unsigned 32-bit value error values returned by driver
9061 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
9062 * NanInternalStatusType includes these values.
9063 */
9064 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
9065 /* Unsigned 32-bit value for Channel setup configuration
9066 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
9067 * NanDataPathChannelCfg includes these values.
9068 */
9069 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
9070 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
9071 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
9072 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
9073 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
9074 /* Security Context Identifier that contains the PMKID
9075 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
9076 */
9077 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
9078 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
9079 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
9080 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
9081 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
9082 /* Unsigned 32-bit bitmap indicating schedule update
9083 * BIT_0: NSS Update
9084 * BIT_1: Channel list update
9085 */
9086 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
9087 /* Unsigned 32-bit value for NSS */
9088 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
9089 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
9090 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
9091 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
9092 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
9093 */
9094 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
9095 /* Array of channel/band width */
9096 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
9097 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
9098 * This attribute is used and optional for ndp request, ndp response,
9099 * ndp indication, and ndp confirm.
9100 */
9101 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
9102 /* Unsigned 16-bit value indicating transport port used by NDP.
9103 * This attribute is used and optional for ndp response, ndp indication,
9104 * and ndp confirm.
9105 */
9106 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
9107 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
9108 * the Internet Assigned Numbers Authority (IANA) as per:
9109 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
9110 * This attribute is used and optional for ndp response, ndp indication,
9111 * and ndp confirm.
9112 */
9113 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009114 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
9115 * 1:support 0:not support
9116 */
9117 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07009118 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
9119 * 48 bits of the SHA-256 hash of the Service Name.
9120 * A lower-case representation of the Service Name shall be used to
9121 * calculate the Service ID.
9122 * Array of u8: length is 6 bytes
9123 * This attribute is used and optional for ndp indication.
9124 */
9125 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009126 /* Unsigned 8-bit value for Cipher Suite capabilities.
9127 * u8 attribute.
9128 * This attribute is used and optional in ndp request, ndp response,
9129 * ndp indication, and ndp confirm.
9130 * This attribute is used to indicate the Capabilities field of Cipher
9131 * Suite Information attribute (CSIA) of NDP frames as defined in
9132 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
9133 * Firmware can accept or ignore any of the capability bits.
9134 */
9135 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
9136 /* Indicate that GTK protection is required for NDP.
9137 * NLA_FLAG attribute.
9138 * This attribute can be used in ndp request, ndp response, ndp
9139 * indication, and ndp confirm.
9140 * GTK protection required is indicated in the NDPE attribute of NAN
9141 * action frame (NAF) during NDP negotiation as defined in
9142 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
9143 * If the device and peer supports GTKSA and if GTK protection required
9144 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
9145 * of Data Path Security Confirm and Data Path Security Install frames
9146 * of NDP negotiation to send and receive protected group addressed data
9147 * frames from each other.
9148 */
9149 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009150
9151 /* keep last */
9152 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
9153 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
9154 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
9155};
9156
9157enum qca_wlan_ndp_sub_cmd {
9158 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07009159 /* Command to create a NAN data path interface.
9160 * This command was initially designed to both create and start a NAN
9161 * data path interface. However, changes to Linux 5.12 no longer allow
9162 * interface creation via vendor commands. When the driver advertises
9163 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
9164 * userspace must explicitly first create the interface using
9165 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
9166 * to start the interface.
9167 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009168 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07009169 /* Command to delete a NAN data path interface.
9170 * This command was initially designed to both stop and delete a NAN
9171 * data path interface. However, changes to Linux 5.12 no longer allow
9172 * interface deletion via vendor commands. When the driver advertises
9173 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
9174 * userspace must explicitly delete the interface using
9175 * NL80211_CMD_DEL_INTERFACE after calling this command.
9176 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009177 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
9178 /* Command to initiate a NAN data path session */
9179 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
9180 /* Command to notify if the NAN data path session was sent */
9181 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
9182 /* Command to respond to NAN data path session */
9183 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
9184 /* Command to notify on the responder about the response */
9185 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
9186 /* Command to initiate a NAN data path end */
9187 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
9188 /* Command to notify the if end request was sent */
9189 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
9190 /* Command to notify the peer about the end request */
9191 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
9192 /* Command to confirm the NAN data path session is complete */
9193 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
9194 /* Command to indicate the peer about the end request being received */
9195 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
9196 /* Command to indicate the peer of schedule update */
9197 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
9198};
9199
9200/**
9201 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
9202 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
9203 */
9204enum qca_wlan_vendor_attr_nd_offload {
9205 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
9206 /* Flag to set Neighbour Discovery offload */
9207 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
9208 /* Keep last */
9209 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
9210 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
9211 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
9212};
9213
9214/**
9215 * enum packet_filter_sub_cmd - Packet filter sub commands
9216 */
9217enum packet_filter_sub_cmd {
9218 /**
9219 * Write packet filter program and/or data. The driver/firmware should
9220 * disable APF before writing into local buffer and re-enable APF after
9221 * writing is done.
9222 */
9223 QCA_WLAN_SET_PACKET_FILTER = 1,
9224 /* Get packet filter feature capabilities from driver */
9225 QCA_WLAN_GET_PACKET_FILTER = 2,
9226 /**
9227 * Write packet filter program and/or data. User space will send the
9228 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
9229 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
9230 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
9231 * enable/disable is given to user space with this command. Also,
9232 * user space sends the length of program portion in the buffer within
9233 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
9234 */
9235 QCA_WLAN_WRITE_PACKET_FILTER = 3,
9236 /* Read packet filter program and/or data */
9237 QCA_WLAN_READ_PACKET_FILTER = 4,
9238 /* Enable APF feature */
9239 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
9240 /* Disable APF feature */
9241 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
9242};
9243
9244/**
9245 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
9246 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
9247 */
9248enum qca_wlan_vendor_attr_packet_filter {
9249 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
9250 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
9251 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
9252 /* Unsigned 32-bit value indicating the packet filter version */
9253 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
9254 /* Unsigned 32-bit value indicating the packet filter id */
9255 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
9256 /**
9257 * Unsigned 32-bit value indicating the packet filter size including
9258 * program + data.
9259 */
9260 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
9261 /* Unsigned 32-bit value indicating the packet filter current offset */
9262 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
9263 /* Program and/or data in bytes */
9264 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
9265 /* Unsigned 32-bit value of the length of the program section in packet
9266 * filter buffer.
9267 */
9268 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
9269
9270 /* keep last */
9271 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
9272 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
9273 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
9274};
9275
9276/**
9277 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
9278 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
9279 */
9280enum qca_wlan_vendor_drv_info {
9281 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
9282 /* Maximum Message size info between firmware & HOST
9283 * Unsigned 32-bit value
9284 */
9285 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
9286 /* keep last */
9287 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
9288 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
9289 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
9290};
9291
9292/**
9293 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
9294 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
9295 */
9296enum qca_wlan_vendor_attr_wake_stats {
9297 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
9298 /* Unsigned 32-bit value indicating the total count of wake event */
9299 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
9300 /* Array of individual wake count, each index representing wake reason
9301 */
9302 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
9303 /* Unsigned 32-bit value representing wake count array */
9304 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
9305 /* Unsigned 32-bit total wake count value of driver/fw */
9306 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
9307 /* Array of wake stats of driver/fw */
9308 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
9309 /* Unsigned 32-bit total wake count value of driver/fw */
9310 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
9311 /* Unsigned 32-bit total wake count value of packets received */
9312 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
9313 /* Unsigned 32-bit wake count value unicast packets received */
9314 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
9315 /* Unsigned 32-bit wake count value multicast packets received */
9316 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
9317 /* Unsigned 32-bit wake count value broadcast packets received */
9318 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
9319 /* Unsigned 32-bit wake count value of ICMP packets */
9320 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
9321 /* Unsigned 32-bit wake count value of ICMP6 packets */
9322 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
9323 /* Unsigned 32-bit value ICMP6 router advertisement */
9324 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
9325 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
9326 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
9327 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
9328 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
9329 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
9330 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
9331 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
9332 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
9333 /* Unsigned 32-bit wake count value of receive side multicast */
9334 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
9335 /* Unsigned 32-bit wake count value of a given RSSI breach */
9336 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
9337 /* Unsigned 32-bit wake count value of low RSSI */
9338 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
9339 /* Unsigned 32-bit value GSCAN count */
9340 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
9341 /* Unsigned 32-bit value PNO complete count */
9342 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
9343 /* Unsigned 32-bit value PNO match count */
9344 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
9345 /* keep last */
9346 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
9347 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
9348 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
9349};
9350
9351/**
Hai Shalomfdcde762020-04-02 11:19:20 -07009352 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07009353 * configured by userspace to the driver/firmware.
9354 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
9355 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07009356 * The driver/firmware takes actions requested by userspace such as throttling
9357 * wifi TX etc. in order to mitigate high temperature.
9358 *
9359 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
9360 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
9361 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
9362 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
9363 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
9364 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
9365 */
9366enum qca_wlan_vendor_thermal_level {
9367 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
9368 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
9369 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
9370 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
9371 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
9372 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
9373};
9374
9375/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009376 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
9377 * cmd value. Used for NL attributes for data used by
9378 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9379 */
9380enum qca_wlan_vendor_attr_thermal_cmd {
9381 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
9382 /* The value of command, driver will implement different operations
9383 * according to this value. It uses values defined in
9384 * enum qca_wlan_vendor_attr_thermal_cmd_type.
9385 * u32 attribute.
9386 */
9387 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07009388 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07009389 * driver/firmware, or get thermal level from the driver/firmware.
9390 * Used in request or response, u32 attribute,
9391 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07009392 */
9393 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
9394 /* Userspace uses this attribute to configure the time in which the
9395 * driver/firmware should complete applying settings it received from
9396 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
9397 * command type. Used in request, u32 attribute, value is in
9398 * milliseconds. A value of zero indicates to apply the settings
9399 * immediately. The driver/firmware can delay applying the configured
9400 * thermal settings within the time specified in this attribute if
9401 * there is any critical ongoing operation.
9402 */
9403 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009404 /* Nested attribute, the driver/firmware uses this attribute to report
9405 * thermal statistics of different thermal levels to userspace when
9406 * requested using the
9407 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
9408 * type. This attribute contains a nested array of records of thermal
9409 * statistics of multiple levels. The attributes used inside this nested
9410 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
9411 */
9412 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009413
9414 /* keep last */
9415 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
9416 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
9417 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
9418};
9419
9420/**
9421 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
9422 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
9423 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
9424 * thermal command types sent to driver.
9425 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
9426 * get thermal shutdown configuration parameters for display. Parameters
9427 * responded from driver are defined in
9428 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
9429 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
9430 * get temperature. Host should respond with a temperature data. It is defined
9431 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
9432 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
9433 * suspend action.
9434 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
9435 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07009436 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
9437 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07009438 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
9439 * thermal level from the driver/firmware. The driver should respond with a
9440 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009441 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
9442 * current thermal statistics from the driver/firmware. The driver should
9443 * respond with statistics of all thermal levels encapsulated in the attribute
9444 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
9445 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
9446 * the current thermal statistics for all thermal levels maintained in the
9447 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009448 */
9449enum qca_wlan_vendor_attr_thermal_cmd_type {
9450 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
9451 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
9452 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
9453 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07009454 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07009455 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009456 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
9457 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009458};
9459
9460/**
9461 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
9462 * to get chip temperature by user.
9463 * enum values are used for NL attributes for data used by
9464 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
9465 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9466 */
9467enum qca_wlan_vendor_attr_thermal_get_temperature {
9468 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
9469 /* Temperature value (degree Celsius) from driver.
9470 * u32 attribute.
9471 */
9472 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
9473
9474 /* keep last */
9475 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
9476 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
9477 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
9478};
9479
9480/**
9481 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
9482 * to get configuration parameters of thermal shutdown feature. Enum values are
9483 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
9484 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9485 */
9486enum qca_wlan_vendor_attr_get_thermal_params_rsp {
9487 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
9488 /* Indicate if the thermal shutdown feature is enabled.
9489 * NLA_FLAG attribute.
9490 */
9491 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
9492 /* Indicate if the auto mode is enabled.
9493 * Enable: Driver triggers the suspend/resume action.
9494 * Disable: User space triggers the suspend/resume action.
9495 * NLA_FLAG attribute.
9496 */
9497 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
9498 /* Thermal resume threshold (degree Celsius). Issue the resume command
9499 * if the temperature value is lower than this threshold.
9500 * u16 attribute.
9501 */
9502 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
9503 /* Thermal warning threshold (degree Celsius). FW reports temperature
9504 * to driver if it's higher than this threshold.
9505 * u16 attribute.
9506 */
9507 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
9508 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
9509 * if the temperature value is higher than this threshold.
9510 * u16 attribute.
9511 */
9512 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
9513 /* FW reports temperature data periodically at this interval (ms).
9514 * u16 attribute.
9515 */
9516 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
9517
9518 /* keep last */
9519 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
9520 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
9521 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
9522};
9523
9524/**
9525 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
9526 * report thermal events from driver to user space.
9527 * enum values are used for NL attributes for data used by
9528 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
9529 */
9530enum qca_wlan_vendor_attr_thermal_event {
9531 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
9532 /* Temperature value (degree Celsius) from driver.
9533 * u32 attribute.
9534 */
9535 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
9536 /* Indication of resume completion from power save mode.
9537 * NLA_FLAG attribute.
9538 */
9539 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07009540 /* Thermal level from the driver.
9541 * u32 attribute. Possible values are defined in
9542 * enum qca_wlan_vendor_thermal_level.
9543 */
9544 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009545
9546 /* keep last */
9547 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
9548 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
9549 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
9550};
9551
9552/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009553 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9554 * to get thermal status from the driver/firmware.
9555 * enum values are used for NL attributes encapsulated inside the
9556 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9557 *
9558 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9559 * of a thermal level in Celsius. u32 size.
9560 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9561 * of a thermal level in Celsius. u32 size.
9562 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9563 * thermal level in milliseconds. u32 size.
9564 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9565 * of times the temperature crossed into the temperature range defined by the
9566 * thermal level from both higher and lower directions. u32 size.
9567 */
9568enum qca_wlan_vendor_attr_thermal_stats {
9569 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9570 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9571 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9572 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9573 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9574
9575 /* keep last */
9576 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9577 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9578 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9579};
9580
9581/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009582 * enum he_fragmentation_val - HE fragmentation support values
9583 * Indicates level of dynamic fragmentation that is supported by
9584 * a STA as a recipient.
9585 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
9586 * (HE MAC Capabilities Information field) and are used in HE Capabilities
9587 * element to advertise the support. These values are validated in the driver
9588 * to check the device capability and advertised in the HE Capabilities
9589 * element. These values are used to configure testbed device to allow the
9590 * advertised hardware capabilities to be downgraded for testing purposes.
9591 *
9592 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9593 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9594 * contained within an MPDU or S-MPDU, no support for dynamic fragments
9595 * within an A-MPDU that is not an S-MPDU.
9596 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9597 * contained within an MPDU or S-MPDU and support for up to one dynamic
9598 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
9599 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9600 * MPDU or S-MPDU.
9601 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9602 * contained within an MPDU or S-MPDU and support for multiple dynamic
9603 * fragments for each MSDU and for each A-MSDU if supported by the
9604 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9605 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9606 */
9607enum he_fragmentation_val {
9608 HE_FRAG_DISABLE,
9609 HE_FRAG_LEVEL1,
9610 HE_FRAG_LEVEL2,
9611 HE_FRAG_LEVEL3,
9612};
9613
9614/**
9615 * enum he_mcs_config - HE MCS support configuration
9616 *
9617 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9618 * These values are used in driver to configure the HE MCS map to advertise
9619 * Tx/Rx MCS map in HE capability and these values are applied for all the
9620 * streams supported by the device. To configure MCS for different bandwidths,
9621 * vendor command needs to be sent using this attribute with appropriate value.
9622 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9623 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
9624 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
9625 * These values are used to configure testbed device to allow the advertised
9626 * hardware capabilities to be downgraded for testing purposes. The enum values
9627 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
9628 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
9629 * These values are validated in the driver before setting the MCS map and
9630 * driver returns error if the input is other than these enum values.
9631 *
9632 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
9633 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
9634 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
9635 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
9636 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
9637 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
9638 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
9639 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
9640 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
9641 */
9642enum he_mcs_config {
9643 HE_80_MCS0_7 = 0,
9644 HE_80_MCS0_9 = 1,
9645 HE_80_MCS0_11 = 2,
9646 HE_160_MCS0_7 = 4,
9647 HE_160_MCS0_9 = 5,
9648 HE_160_MCS0_11 = 6,
9649 HE_80P80_MCS0_7 = 8,
9650 HE_80P80_MCS0_9 = 9,
9651 HE_80P80_MCS0_11 = 10,
9652};
9653
9654/**
9655 * enum qca_wlan_ba_session_config - BA session configuration
9656 *
9657 * Indicates the configuration values for BA session configuration attribute.
9658 *
9659 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9660 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9661 */
9662enum qca_wlan_ba_session_config {
9663 QCA_WLAN_ADD_BA = 1,
9664 QCA_WLAN_DELETE_BA = 2,
9665};
9666
9667/**
9668 * enum qca_wlan_ac_type - Access category type
9669 *
9670 * Indicates the access category type value.
9671 *
9672 * @QCA_WLAN_AC_BE: BE access category
9673 * @QCA_WLAN_AC_BK: BK access category
9674 * @QCA_WLAN_AC_VI: VI access category
9675 * @QCA_WLAN_AC_VO: VO access category
9676 * @QCA_WLAN_AC_ALL: All ACs
9677 */
9678enum qca_wlan_ac_type {
9679 QCA_WLAN_AC_BE = 0,
9680 QCA_WLAN_AC_BK = 1,
9681 QCA_WLAN_AC_VI = 2,
9682 QCA_WLAN_AC_VO = 3,
9683 QCA_WLAN_AC_ALL = 4,
9684};
9685
9686/**
9687 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9688 *
9689 * Indicates the HE LTF configuration value.
9690 *
9691 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
9692 * based on the GI setting
9693 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9694 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9695 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9696 */
9697enum qca_wlan_he_ltf_cfg {
9698 QCA_WLAN_HE_LTF_AUTO = 0,
9699 QCA_WLAN_HE_LTF_1X = 1,
9700 QCA_WLAN_HE_LTF_2X = 2,
9701 QCA_WLAN_HE_LTF_4X = 3,
9702};
9703
Hai Shalomc9e41a12018-07-31 14:41:42 -07009704/**
9705 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9706 *
9707 * Indicates the HE trigger frame MAC padding duration value.
9708 *
9709 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9710 * process the trigger frame.
9711 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9712 * trigger frame.
9713 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9714 * trigger frame.
9715 */
9716enum qca_wlan_he_mac_padding_dur {
9717 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9718 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9719 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9720};
9721
Hai Shalom74f70d42019-02-11 14:42:39 -08009722/**
9723 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9724 *
9725 * Indicates the HE Operating mode control channel width setting value.
9726 *
9727 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9728 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9729 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9730 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9731 */
9732enum qca_wlan_he_om_ctrl_ch_bw {
9733 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9734 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9735 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9736 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9737};
9738
9739/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009740 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9741 *
9742 * Indicates the frame types to use for keep alive data.
9743 *
9744 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9745 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9746 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9747 */
9748enum qca_wlan_keep_alive_data_type {
9749 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9750 QCA_WLAN_KEEP_ALIVE_DATA = 1,
9751 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9752};
9753
9754/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00009755 * enum eht_mcs_config - EHT MCS support configuration
9756 *
9757 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9758 * These values are used in the driver to configure the EHT MCS map to advertise
9759 * Tx/Rx MCS map in EHT capability and these values are applied for all the
9760 * streams supported by the device.
9761 * @EHT_MCS0_7: EHT MCS 0 to 7 support
9762 * @EHT_MCS0_9: EHT MCS 0 to 9 support
9763 * @EHT_MCS0_11: EHT MCS 0 to 11 support
9764 * @EHT_MCS0_13: EHT MCS 0 to 13 support
9765 */
9766enum eht_mcs_config {
9767 EHT_MCS0_7 = 0,
9768 EHT_MCS0_9 = 1,
9769 EHT_MCS0_11 = 2,
9770 EHT_MCS0_13 = 3,
9771};
9772
9773/**
9774 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9775 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9776 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9777 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9778 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9779 * multi-link multi radio mode.
9780 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9781 * multi-link multi radio mode.
9782 */
9783enum qca_wlan_eht_mlo_mode {
9784 QCA_WLAN_EHT_MODE_INVALID = 0,
9785 QCA_WLAN_EHT_MLSR = 1,
9786 QCA_WLAN_EHT_EMLSR = 2,
9787 QCA_WLAN_EHT_NON_STR_MLMR = 3,
9788 QCA_WLAN_EHT_STR_MLMR = 4,
9789};
9790
9791/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009792 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9793 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9794 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9795 */
9796enum qca_wlan_emlsr_mode {
9797 QCA_WLAN_EMLSR_MODE_ENTER = 0,
9798 QCA_WLAN_EMLSR_MODE_EXIT = 1,
9799};
9800
9801/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009802 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9803 * support
9804 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9805 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9806 * both DL and UL
9807 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9808 * different link set
9809 */
9810enum qca_wlan_ttlm_negotiation_support {
9811 QCA_WLAN_TTLM_DISABLE = 0,
9812 QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9813 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9814};
9815
9816/**
9817 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9818 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9819 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9820 */
9821enum qca_coex_traffic_shaping_mode {
9822 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9823 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9824};
9825
9826/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009827 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9828 * EHT operating mode control transmit request. These attributes are
9829 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
Hai Shalom74f70d42019-02-11 14:42:39 -08009830 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9831 *
9832 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9833 * indicates the maximum number of spatial streams, NSS, that the STA
9834 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9835 * and is set to NSS - 1.
9836 *
9837 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9838 * indicates the operating channel width supported by the STA for both
9839 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9840 *
9841 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9842 * indicates the all trigger based UL MU operations by the STA.
9843 * 0 - UL MU operations are enabled by the STA.
9844 * 1 - All triggered UL MU transmissions are suspended by the STA.
9845 *
9846 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9847 * indicates the maximum number of space-time streams, NSTS, that
9848 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07009849 *
9850 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9851 * combined with the UL MU Disable subfield and the recipient's setting
9852 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9853 * capabilities to determine which HE TB PPDUs are possible by the
9854 * STA to transmit.
9855 * 0 - UL MU data operations are enabled by the STA.
9856 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9857 * bit is not set, else UL MU Tx is suspended.
9858 *
Sunil Ravi640215c2023-06-28 23:08:09 +00009859 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9860 * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9861 * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9862 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9863 *
9864 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9865 * 320 MHz operating channel width supported by the EHT STA for both reception
9866 * and transmission.
9867 *
9868 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9869 * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9870 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9871 * that the STA supports in transmission for PPDU bandwidths less than or equal
9872 * to 80 MHz.
Hai Shalom74f70d42019-02-11 14:42:39 -08009873 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009874enum qca_wlan_vendor_attr_omi_tx {
Hai Shalom74f70d42019-02-11 14:42:39 -08009875 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9876 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9877 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9878 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9879 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07009880 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00009881 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9882 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9883 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
Hai Shalom74f70d42019-02-11 14:42:39 -08009884
9885 /* keep last */
Sunil Ravi640215c2023-06-28 23:08:09 +00009886 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9887 QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9888 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
Hai Shalom74f70d42019-02-11 14:42:39 -08009889};
9890
Sunil Ravi640215c2023-06-28 23:08:09 +00009891/* deprecated legacy names */
9892#define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9893 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9894#define qca_wlan_vendor_attr_he_omi_tx \
9895 qca_wlan_vendor_attr_omi_tx
9896#define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9897 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9898#define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9899 QCA_WLAN_VENDOR_ATTR_OMI_MAX
9900
Hai Shalom899fcc72020-10-19 14:38:18 -07009901 /**
9902 * enum qca_wlan_vendor_phy_mode - Different PHY modes
9903 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9904 *
9905 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9906 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9907 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9908 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9909 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9910 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9911 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9912 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9913 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9914 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9915 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9916 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9917 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9918 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9919 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9920 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9921 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9922 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9923 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9924 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9925 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9926 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9927 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9928 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9929 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9930 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9931 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9932 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9933 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9934 */
9935enum qca_wlan_vendor_phy_mode {
9936 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9937 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9938 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9939 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9940 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9941 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9942 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9943 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9944 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9945 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9946 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9947 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9948 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9949 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9950 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9951 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9952 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9953 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9954 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9955 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9956 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9957 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9958 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9959 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9960 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9961 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9962 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9963 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9964 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9965};
9966
Roshan Pius3a1667e2018-07-03 15:17:14 -07009967/* Attributes for data used by
9968 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9969 */
9970enum qca_wlan_vendor_attr_wifi_test_config {
9971 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9972 /* 8-bit unsigned value to configure the driver to enable/disable
9973 * WMM feature. This attribute is used to configure testbed device.
9974 * 1-enable, 0-disable
9975 */
9976 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9977
9978 /* 8-bit unsigned value to configure the driver to accept/reject
9979 * the addba request from peer. This attribute is used to configure
9980 * the testbed device.
9981 * 1-accept addba, 0-reject addba
9982 */
9983 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9984
9985 /* 8-bit unsigned value to configure the driver to send or not to
9986 * send the addba request to peer.
9987 * This attribute is used to configure the testbed device.
9988 * 1-send addba, 0-do not send addba
9989 */
9990 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9991
9992 /* 8-bit unsigned value to indicate the HE fragmentation support.
9993 * Uses enum he_fragmentation_val values.
9994 * This attribute is used to configure the testbed device to
9995 * allow the advertised hardware capabilities to be downgraded
9996 * for testing purposes.
9997 */
9998 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9999
10000 /* 8-bit unsigned value to indicate the HE MCS support.
10001 * Uses enum he_mcs_config values.
10002 * This attribute is used to configure the testbed device to
10003 * allow the advertised hardware capabilities to be downgraded
10004 * for testing purposes.
10005 */
10006 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
10007
10008 /* 8-bit unsigned value to configure the driver to allow or not to
10009 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
10010 * This attribute is used to configure the testbed device.
10011 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
10012 */
10013 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
10014
10015 /* 8-bit unsigned value to configure the driver to add a
10016 * new BA session or delete the existing BA session for
10017 * given TID. ADDBA command uses the buffer size and TID
10018 * configuration if user specifies the values else default
10019 * value for buffer size is used for all TIDs if the TID
10020 * also not specified. For DEL_BA command TID value is
10021 * required to process the command.
10022 * Uses enum qca_wlan_ba_session_config values.
10023 * This attribute is used to configure the testbed device.
10024 */
10025 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
10026
Hai Shalomce48b4a2018-09-05 11:41:35 -070010027 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -070010028 * request and response frames.
10029 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -070010030 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010031 */
10032 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
10033
10034 /* 8-bit unsigned value to configure the buffer size in addba
10035 * request and response frames.
10036 * This attribute is used to configure the testbed device.
10037 */
10038 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
10039
10040 /* 8-bit unsigned value to configure the no ack policy.
10041 * To configure no ack policy, access category value is
10042 * required to process the command.
10043 * This attribute is used to configure the testbed device.
10044 * 1 - enable no ack, 0 - disable no ack.
10045 */
10046 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
10047
10048 /* 8-bit unsigned value to configure the AC for no ack policy
10049 * This attribute is used to configure the testbed device.
10050 * Uses the enum qca_wlan_ac_type values.
10051 */
10052 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
10053
10054 /* 8-bit unsigned value to configure the HE LTF
10055 * This attribute is used to configure the testbed device.
10056 * Uses the enum qca_wlan_he_ltf_cfg values.
10057 */
10058 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
10059
10060 /* 8-bit unsigned value to configure the tx beamformee.
10061 * This attribute is used to configure the testbed device.
10062 * 1-enable, 0-disable.
10063 */
10064 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
10065
10066 /* 8-bit unsigned value to configure the tx beamformee number
10067 * of space-time streams.
10068 * This attribute is used to configure the testbed device.
10069 * The range of the value is 0 to 8.
10070 */
10071 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
10072
10073 /* 8-bit unsigned value to configure the MU EDCA params for given AC
10074 * This attribute is used to configure the testbed device.
10075 * Uses the enum qca_wlan_ac_type values.
10076 */
10077 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
10078
10079 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
10080 * To configure MU EDCA AIFSN value, MU EDCA access category value
10081 * is required to process the command.
10082 * This attribute is used to configure the testbed device.
10083 */
10084 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
10085
10086 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
10087 * given AC.
10088 * To configure MU EDCA ECW min value, MU EDCA access category value
10089 * is required to process the command.
10090 * This attribute is used to configure the testbed device.
10091 */
10092 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
10093
10094 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
10095 * given AC.
10096 * To configure MU EDCA ECW max value, MU EDCA access category value
10097 * is required to process the command.
10098 * This attribute is used to configure the testbed device.
10099 */
10100 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
10101
10102 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
10103 * To configure MU EDCA timer value, MU EDCA access category value
10104 * is required to process the command.
10105 * This attribute is used to configure the testbed device.
10106 */
10107 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
10108
Hai Shalomc9e41a12018-07-31 14:41:42 -070010109 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
10110 * duration.
10111 * This attribute is used to configure the testbed device.
10112 * Uses the enum qca_wlan_he_mac_padding_dur values.
10113 */
10114 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
10115
Hai Shalomce48b4a2018-09-05 11:41:35 -070010116 /* 8-bit unsigned value to override the MU EDCA params to defaults
10117 * regardless of the AP beacon MU EDCA params. If it is enabled use
10118 * the default values else use the MU EDCA params from AP beacon.
10119 * This attribute is used to configure the testbed device.
10120 * 1-enable, 0-disable.
10121 */
10122 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
10123
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010124 /* 8-bit unsigned value to configure the support for receiving
10125 * an MPDU that contains an operating mode control subfield.
10126 * This attribute is used to configure the testbed device.
10127 * 1-enable, 0-disable.
10128 */
10129 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
10130
10131 /* Nested attribute values required to setup the TWT session.
10132 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
10133 * information to set up the session. It contains broadcast flags,
10134 * set_up flags, trigger value, flow type, flow ID, wake interval
10135 * exponent, protection, target wake time, wake duration, wake interval
10136 * mantissa. These nested attributes are used to setup a host triggered
10137 * TWT session.
10138 */
10139 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
10140
10141 /* This nested attribute is used to terminate the current TWT session.
10142 * It does not currently carry any attributes.
10143 */
10144 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
10145
10146 /* This nested attribute is used to suspend the current TWT session.
10147 * It does not currently carry any attributes.
10148 */
10149 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
10150
10151 /* Nested attribute values to indicate the request for resume.
10152 * This attribute is used to resume the TWT session.
10153 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
10154 * parameters required to resume the TWT session.
10155 */
10156 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
10157
Hai Shalom74f70d42019-02-11 14:42:39 -080010158 /* 8-bit unsigned value to set the HE operating mode control
10159 * (OM CTRL) Channel Width subfield.
10160 * The Channel Width subfield indicates the operating channel width
10161 * supported by the STA for both reception and transmission.
10162 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
10163 * This setting is cleared with the
10164 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10165 * flag attribute to reset defaults.
10166 * This attribute is used to configure the testbed device.
10167 */
10168 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
10169
10170 /* 8-bit unsigned value to configure the number of spatial
10171 * streams in HE operating mode control field.
10172 * This setting is cleared with the
10173 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10174 * flag attribute to reset defaults.
10175 * This attribute is used to configure the testbed device.
10176 */
10177 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
10178
10179 /* Flag attribute to configure the UL MU disable bit in
10180 * HE operating mode control field.
10181 * This setting is cleared with the
10182 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10183 * flag attribute to reset defaults.
10184 * This attribute is used to configure the testbed device.
10185 */
10186 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
10187
10188 /* Flag attribute to clear the previously set HE operating mode
10189 * control field configuration.
10190 * This attribute is used to configure the testbed device to reset
10191 * defaults to clear any previously set HE operating mode control
10192 * field configuration.
10193 */
10194 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
10195
10196 /* 8-bit unsigned value to configure HE single user PPDU
10197 * transmission. By default this setting is disabled and it
10198 * is disabled in the reset defaults of the device configuration.
10199 * This attribute is used to configure the testbed device.
10200 * 1-enable, 0-disable
10201 */
10202 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
10203
10204 /* 8-bit unsigned value to configure action frame transmission
10205 * in HE trigger based PPDU transmission.
10206 * By default this setting is disabled and it is disabled in
10207 * the reset defaults of the device configuration.
10208 * This attribute is used to configure the testbed device.
10209 * 1-enable, 0-disable
10210 */
10211 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
10212
10213 /* Nested attribute to indicate HE operating mode control field
10214 * transmission. It contains operating mode control field Nss,
10215 * channel bandwidth, Tx Nsts and UL MU disable attributes.
10216 * These nested attributes are used to send HE operating mode control
10217 * with configured values.
Sunil Ravi640215c2023-06-28 23:08:09 +000010218 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
Hai Shalom74f70d42019-02-11 14:42:39 -080010219 * This attribute is used to configure the testbed device.
10220 */
Sunil Ravi640215c2023-06-28 23:08:09 +000010221 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
Hai Shalom74f70d42019-02-11 14:42:39 -080010222
10223 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
10224 * support for the reception of a frame that carries an HE variant
10225 * HT Control field.
10226 * This attribute is used to configure the testbed device.
10227 * 1-enable, 0-disable
10228 */
10229 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
10230
Hai Shalom021b0b52019-04-10 11:17:58 -070010231 /* 8-bit unsigned value to configure VHT support in 2.4G band.
10232 * This attribute is used to configure the testbed device.
10233 * 1-enable, 0-disable
10234 */
10235 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
10236
10237 /* 8-bit unsigned value to configure HE testbed defaults.
10238 * This attribute is used to configure the testbed device.
10239 * 1-set the device HE capabilities to testbed defaults.
10240 * 0-reset the device HE capabilities to supported config.
10241 */
10242 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
10243
10244 /* 8-bit unsigned value to configure TWT request support.
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_TWT_REQ_SUPPORT = 37,
10249
Hai Shalom899fcc72020-10-19 14:38:18 -070010250 /* 8-bit unsigned value to configure protection for Management
10251 * frames when PMF is enabled for the association.
10252 * This attribute is used to configure the testbed device.
10253 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
10254 */
10255 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
10256
10257 /* Flag attribute to inject Disassociation frame to the connected AP.
10258 * This attribute is used to configure the testbed device.
10259 */
10260 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
10261
10262 /* 8-bit unsigned value to configure an override for the RSNXE Used
10263 * subfield in the MIC control field of the FTE in FT Reassociation
10264 * Request frame.
10265 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
10266 * This attribute is used to configure the testbed device.
10267 * This attribute can be configured only when STA is in associated state
10268 * and the configuration is valid until the disconnection.
10269 */
10270 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
10271
10272 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
10273 * Switch Announcement) when STA is in connected state.
10274 * 0 - Default behavior, 1 - Ignore CSA.
10275 * This attribute is used to configure the testbed device.
10276 * This attribute can be configured only when STA is in associated state
10277 * and the configuration is valid until the disconnection.
10278 */
10279 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
10280
10281 /* Nested attribute values required to configure OCI (Operating Channel
10282 * Information). Attributes defined in enum
10283 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
10284 * This attribute is used to configure the testbed device.
10285 * This attribute can be configured only when STA is in associated state
10286 * and the configuration is valid until the disconnection.
10287 */
10288 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
10289
10290 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
10291 * Query timeout. If this configuration is enabled STA shall not send
10292 * Deauthentication frmae when SA Query times out (mainly, after a
10293 * channel switch when OCV is enabled).
10294 * 0 - Default behavior, 1 - Ignore SA Query timeout.
10295 * This attribute is used to configure the testbed device.
10296 * This attribute can be configured only when STA is in associated state
10297 * and the configuration is valid until the disconnection.
10298 */
10299 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
10300
10301 /* 8-bit unsigned value to configure the driver/firmware to start or
10302 * stop transmitting FILS discovery frames.
10303 * 0 - Stop transmitting FILS discovery frames
10304 * 1 - Start transmitting FILS discovery frames
10305 * This attribute is used to configure the testbed device.
10306 * This attribute can be configured only in AP mode and the
10307 * configuration is valid until AP restart.
10308 */
10309 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
10310
Hai Shalom60840252021-02-19 19:02:11 -080010311 /* 8-bit unsigned value to configure the driver/firmware to enable or
10312 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
10313 * information field.
10314 * 0 - Disable full bandwidth UL MU-MIMO subfield
10315 * 1 - Enable full bandwidth UL MU-MIMO subfield
10316 * This attribute is used to configure the testbed device.
10317 */
10318 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
10319
10320 /* 16-bit unsigned value to configure the driver with a specific BSS
10321 * max idle period to advertise in the BSS Max Idle Period element
10322 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
10323 * This attribute is used to configure the testbed device.
10324 */
10325 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
10326
10327 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
10328 * for data transmission.
10329 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
10330 * This attribute is used to configure the testbed device.
10331 */
10332 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
10333
10334 /* 8-bit unsigned value to configure the driver to disable data and
10335 * management response frame transmission to test the BSS max idle
10336 * feature.
10337 * 0 - Default behavior, 1 - Disable data and management response Tx.
10338 * This attribute is used to configure the testbed device.
10339 */
10340 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
10341
10342 /* 8-bit unsigned value to configure the driver/firmware to enable or
10343 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
10344 * information field.
10345 * 0 - Disable Punctured Preamble Rx subfield
10346 * 1 - Enable Punctured Preamble Rx subfield
10347 * This attribute is used to configure the testbed device.
10348 */
10349 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
10350
Hai Shaloma20dcd72022-02-04 13:43:00 -080010351 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
10352 * requirement mismatch for 6 GHz connection.
10353 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
10354 * This attribute is used to configure the testbed device.
10355 */
10356 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
10357
10358 /* 8-bit unsigned value to configure the driver to allow 6 GHz
10359 * connection with all security modes.
10360 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
10361 * modes.
10362 * This attribute is used for testing purposes.
10363 */
10364 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
10365
10366 /* 8-bit unsigned value to configure the driver to transmit data with
10367 * ER SU PPDU type.
10368 *
10369 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
10370 * This attribute is used for testing purposes.
10371 */
10372 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
10373
10374 /* 8-bit unsigned value to configure the driver to use Data or
10375 * Management frame type for keep alive data.
10376 * Uses enum qca_wlan_keep_alive_data_type values.
10377 *
10378 * This attribute is used for testing purposes.
10379 */
10380 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
10381
10382 /* 8-bit unsigned value to configure the driver to use scan request
10383 * BSSID value in Probe Request frame RA(A1) during the scan. The
10384 * driver saves this configuration and applies this setting to all user
10385 * space scan requests until the setting is cleared. If this
10386 * configuration is set, the driver uses the BSSID value from the scan
10387 * request to set the RA(A1) in the Probe Request frames during the
10388 * scan.
10389 *
10390 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
10391 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
10392 * This attribute is used for testing purposes.
10393 */
10394 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
10395
10396 /* 8-bit unsigned value to configure the driver to enable/disable the
10397 * BSS max idle period support.
10398 *
10399 * 0 - Disable the BSS max idle support.
10400 * 1 - Enable the BSS max idle support.
10401 * This attribute is used for testing purposes.
10402 */
10403 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
10404
10405 /* 8-bit unsigned value to configure the driver/firmware to enable or
10406 * disable Rx control frame to MultiBSS subfield in the HE MAC
10407 * capabilities information field.
10408 * 0 - Disable Rx control frame to MultiBSS subfield
10409 * 1 - Enable Rx control frame to MultiBSS subfield
10410 * This attribute is used to configure the testbed device.
10411 */
10412 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
10413
10414 /* 8-bit unsigned value to configure the driver/firmware to enable or
10415 * disable Broadcast TWT support subfield in the HE MAC capabilities
10416 * information field.
10417 * 0 - Disable Broadcast TWT support subfield
10418 * 1 - Enable Broadcast TWT support subfield
10419 * This attribute is used to configure the testbed device.
10420 */
10421 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
10422
Sunil Ravia04bd252022-05-02 22:54:18 -070010423 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
10424 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
10425 * to 1, and if the firmware supports this capability too, the STA
10426 * advertises this capability to the AP over Association Request frame.
10427 * This attribute will not have any effect on legacy devices with no
10428 * IEEE 802.11be support.
10429 * 0 - Default behavior
10430 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
10431 * This attribute is used to configure the testbed device.
10432 */
10433 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
10434
Sunil Ravi89eba102022-09-13 21:04:37 -070010435 /* 8-bit unsigned value to configure the driver to enable/disable the
10436 * periodic sounding for Tx beamformer functionality. The default
10437 * behavior uses algorithm to do sounding based on packet stats.
10438 *
10439 * 0 - Default behavior.
10440 * 1 - Enable the periodic sounding for Tx beamformer.
10441 * This attribute is used for testing purposes.
10442 */
10443 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
10444
Sunil Ravi77d572f2023-01-17 23:58:31 +000010445 /* 8-bit unsigned value to configure beamformee SS EHT capability
10446 * to indicate the maximum number of spatial streams that the STA
10447 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
10448 * The range of the value is 3 to 7.
10449 * This attribute is used to configure the testbed device.
10450 */
10451 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
10452
10453 /* 8-bit unsigned value to configure beamformee SS EHT capability
10454 * to indicate the maximum number of spatial streams that the STA
10455 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
10456 * The range of the value is 3 to 7.
10457 * This attribute is used to configure the testbed device.
10458 */
10459 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
10460
10461 /* 8-bit unsigned value to configure beamformee SS EHT capability
10462 * to indicate the maximum number of spatial streams that the STA
10463 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
10464 * The range of the value is 3 to 7.
10465 * This attribute is used to configure the testbed device.
10466 */
10467 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
10468
10469 /* 8-bit unsigned value to configure the driver to exclude station
10470 * profile in Probe Request frame Multi-Link element.
10471 * 0 - Default behavior, sends the Probe Request frame with station
10472 * profile data included in the Multi-Link element.
10473 * 1 - Exclude station profile in Probe Request frame Multi-Link
10474 * element.
10475 * This attribute is used to configure the testbed device.
10476 */
10477 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10478
10479 /* 8-bit unsigned value to configure EHT testbed defaults.
10480 * This attribute is used to configure the testbed device.
10481 * 1 - Set the device EHT capabilities to testbed defaults.
10482 * 0 - Reset the device EHT capabilities to supported config.
10483 */
10484 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10485
10486 /* 8-bit unsigned value to indicate the EHT MCS support.
10487 * Uses enum eht_mcs_config values.
10488 * This attribute is used to configure the testbed device to
10489 * allow the advertised hardware capabilities to be downgraded
10490 * for testing purposes.
10491 */
10492 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10493
10494 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
10495 * Rate Limit capability.
10496 * This attribute is used to configure the testbed device.
10497 * 0 - Indicates no maximum supported data rate limitation.
10498 * 1 - Indicates the maximum supported data rate is the lower of
10499 * the 1500 Mb/s and the maximum supported data rate.
10500 */
10501 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10502
Sunil Ravi640215c2023-06-28 23:08:09 +000010503 /* 8-bit unsigned value to configure the support for receiving an MPDU
10504 * that contains an EHT operating mode control subfield.
10505 * This attribute is used to configure the testbed device.
10506 * 1-enable, 0-disable.
10507 */
10508 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10509
10510 /* 8-bit unsigned value to configure the driver with EMLSR padding delay
10511 * subfield value.
10512 *
10513 * 0 - 0 us
10514 * 1 - 32 us
10515 * 2 - 64 us
10516 * 3 - 128 us
10517 * 4 - 256 us
10518 * 5-255 - Reserved
10519 *
10520 * This attribute is used for testing purposes.
10521 */
10522 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10523
10524 /*
10525 * 8-bit unsigned value to indicate the firmware to force the active MLO
10526 * links to power save mode for the configured number of beacon periods.
10527 * This allows the firmware to suspend STA links for X beacon periods
10528 * and remain asleep even if the AP advertises TIM as opposed to regular
10529 * power save mode where STA links wake up if the AP indicates that it
10530 * has buffered data to send.
10531 * This attribute is used to configure the testbed device.
10532 */
10533 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10534
10535 /*
10536 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10537 * to enable simultaneous transmission of PPDUs on all active links.
10538 * 0 - Default behavior
10539 * 1 - Enter STR mode for simultaneous data transmission on all links
10540 */
10541 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10542
Sunil Ravi2a14cf12023-11-21 00:54:38 +000010543 /* Nested attribute to indicate EHT MLO links on which powersave to be
10544 * enabled. It contains link ID attributes. These nested attributes are
10545 * of the type u8 and are used to enable the powersave on associated
10546 * MLO links corresponding to the link IDs provided in the command.
10547 * This attribute is used to configure the testbed device.
10548 */
10549 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10550
10551 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10552 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10553 * testcase, STA can request information of non-Tx BSS through Tx BSS
10554 * by configuring non-Tx BSS MLD ID within the ML probe request that
10555 * is transmitted via host initiated scan request.
10556 *
10557 * This attribute is used for testing purposes.
10558 */
10559 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10560
Sunil Ravib0ac25f2024-07-12 01:42:03 +000010561 /* 8-bit unsigned value to configure the SCS traffic description
10562 * support in the EHT capabilities of an Association Request frame.
10563 * 1-enable, 0-disable
10564 * This attribute is used to configure the testbed device.
10565 */
10566 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
10567
Sunil Ravic0f5d412024-09-11 22:12:49 +000010568 /* 8-bit unsigned value to disable or not disable the channel switch
10569 * initiation in P2P GO mode.
10570 * 0 - Not-disable, 1 - Disable
10571 *
10572 * This attribute is used for testing purposes.
10573 */
10574 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_CHAN_SWITCH_INITIATION = 74,
10575
10576 /* 8-bit unsigned value. This indicates number of random PMKIDs to be
10577 * added in the RSNE of the (Re)Association request frames. This is
10578 * exclusively used for the scenarios where the device is used as a test
10579 * bed device with special functionality and not recommended for
10580 * production. Default value is zero. If the user space configures a
10581 * non-zero value, that remains in use until the driver is unloaded or
10582 * the user space resets the value to zero.
10583 *
10584 * This attribute is used for testing purposes.
10585 */
10586 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RSNE_ADD_RANDOM_PMKIDS = 75,
10587
Roshan Pius3a1667e2018-07-03 15:17:14 -070010588 /* keep last */
10589 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10590 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10591 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10592};
10593
10594/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010595 * enum qca_wlan_twt_operation - Operation of the config TWT request
10596 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -080010597 * The response for the respective operations can be either synchronous or
10598 * asynchronous (wherever specified). If synchronous, the response to this
10599 * operation is obtained in the corresponding vendor command reply to the user
10600 * space. For the asynchronous case the response is obtained as an event with
10601 * the same operation type.
10602 *
10603 * Drivers shall support either of these modes but not both simultaneously.
10604 * This support for asynchronous mode is advertised through the flag
10605 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10606 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -070010607 *
10608 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10609 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010610 * qca_wlan_vendor_attr_twt_setup. Depending upon the
10611 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10612 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010613 *
10614 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10615 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010616 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010617 *
10618 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10619 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10620 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010621 * This terminate can either get triggered by the user space or can as well be
10622 * a notification from the firmware if it initiates a terminate.
10623 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10624 * the request from user space can either be a synchronous or asynchronous
10625 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010626 *
10627 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10628 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10629 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010630 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10631 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010632 *
10633 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10634 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10635 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010636 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10637 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10638 * capability, this is either a synchronous or asynchronous operation.
10639 *
10640 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10641 * combination of suspend and resume in a single request. Required parameters
10642 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10643 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10644 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10645 * capability, this is either a synchronous or asynchronous operation.
10646 *
10647 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10648 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10649 * session is setup. It's a synchronous operation.
10650 *
10651 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10652 * Valid only after the TWT session is setup. It's a synchronous operation.
10653 *
10654 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10655 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10656 * operation.
10657 *
Sunil Ravia04bd252022-05-02 22:54:18 -070010658 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -080010659 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010660 *
10661 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10662 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10663 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -070010664 *
10665 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10666 * related information for example TWT required bit in AP capabilities etc.
10667 * The reason for the notification is sent using
10668 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -070010669 */
10670enum qca_wlan_twt_operation {
10671 QCA_WLAN_TWT_SET = 0,
10672 QCA_WLAN_TWT_GET = 1,
10673 QCA_WLAN_TWT_TERMINATE = 2,
10674 QCA_WLAN_TWT_SUSPEND = 3,
10675 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -080010676 QCA_WLAN_TWT_NUDGE = 5,
10677 QCA_WLAN_TWT_GET_STATS = 6,
10678 QCA_WLAN_TWT_CLEAR_STATS = 7,
10679 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10680 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010681 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -070010682 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -070010683};
10684
10685/**
10686 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10687 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10688 *
10689 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
10690 * operation of this request. Possible values are defined in enum
10691 * qca_wlan_twt_operation. The parameters for the respective operation is
10692 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10693 *
10694 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10695 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -080010696 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010697 * enum qca_wlan_vendor_attr_twt_set_param, or
10698 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -070010699 *
10700 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10701 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10702 * The values used by this attribute are defined in
10703 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -070010704 */
10705enum qca_wlan_vendor_attr_config_twt {
10706 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10707 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10708 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -070010709 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -070010710
10711 /* keep last */
10712 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10713 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10714 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10715};
10716
10717/**
Roshan Pius3a1667e2018-07-03 15:17:14 -070010718 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
10719 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10720 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
10721 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
10722 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
10723 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
10724 * statistics of an unassociated station by specifying the MAC address in
10725 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
10726 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
10727 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
10728 * the statistics of all unassociated stations by specifying the Broadcast MAC
10729 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
10730 * above procedure. In the response, driver shall specify statistics
10731 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
10732 */
10733enum qca_wlan_vendor_attr_bss_filter {
10734 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
10735 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
10736 /* Other BSS filter type, unsigned 8 bit value. One of the values
10737 * in enum qca_wlan_vendor_bss_filter_type.
10738 */
10739 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
10740 /* Other BSS filter action, unsigned 8 bit value. One of the values
10741 * in enum qca_wlan_vendor_bss_filter_action.
10742 */
10743 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
10744 /* Array of nested attributes where each entry is the statistics
10745 * information of the specified station that belong to another BSS.
10746 * Attributes for each entry are taken from enum
10747 * qca_wlan_vendor_bss_filter_sta_stats.
10748 * Other BSS station configured in
10749 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
10750 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
10751 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
10752 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
10753 */
10754 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
10755
10756 /* keep last */
10757 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
10758 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
10759 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
10760};
10761
10762/**
10763 * enum qca_wlan_vendor_bss_filter_type - Type of
10764 * filter used in other BSS filter operations. Used by the vendor command
10765 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10766 *
10767 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
10768 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
10769 */
10770enum qca_wlan_vendor_bss_filter_type {
10771 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
10772 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
10773};
10774
10775/**
10776 * enum qca_wlan_vendor_bss_filter_action - Type of
10777 * action in other BSS filter operations. Used by the vendor command
10778 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10779 *
10780 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
10781 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
10782 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
10783 */
10784enum qca_wlan_vendor_bss_filter_action {
10785 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
10786 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
10787 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
10788};
10789
10790/**
10791 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
10792 * the statistics of a specific unassociated station belonging to another BSS.
10793 * The statistics provides information of the unassociated station
10794 * filtered by other BSS operation - such as MAC, signal value.
10795 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10796 *
10797 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
10798 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
10799 * of the station. Unsigned 8 bit number containing RSSI.
10800 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
10801 * driver for the last received RSSI. Unsigned 64 bit number containing
10802 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -070010803 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
10804 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010805 */
10806enum qca_wlan_vendor_bss_filter_sta_stats {
10807 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
10808 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
10809 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
10810 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070010811 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -070010812
10813 /* keep last */
10814 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
10815 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
10816 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
10817};
10818
Hai Shalomce48b4a2018-09-05 11:41:35 -070010819/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10820 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10821 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10822 */
10823enum qca_wlan_nan_ext_subcmd_type {
10824 /* Subcmd of type NAN Enable Request */
10825 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10826 /* Subcmd of type NAN Disable Request */
10827 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10828};
10829
10830/**
10831 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10832 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10833 */
10834enum qca_wlan_vendor_attr_nan_params {
10835 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10836 /* Carries NAN command for firmware component. Every vendor command
10837 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10838 * payload containing the NAN command. NLA_BINARY attribute.
10839 */
10840 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10841 /* Indicates the type of NAN command sent with
10842 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10843 * describes the possible range of values. This attribute is mandatory
10844 * if the command being issued is either
10845 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10846 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10847 */
10848 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10849 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10850 * band. This attribute is mandatory when command type is
10851 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10852 */
10853 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10854 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10855 * band. This attribute is optional and should be included when command
10856 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10857 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10858 */
10859 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10860
10861 /* keep last */
10862 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10863 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10864 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10865};
10866
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010867/**
Hai Shalom60840252021-02-19 19:02:11 -080010868 * qca_wlan_twt_setup_state: Represents the TWT session states.
10869 *
10870 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10871 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10872 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10873 */
10874enum qca_wlan_twt_setup_state {
10875 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10876 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10877 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10878};
10879
10880/**
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000010881 * enum qca_wlan_twt_session_suspendable: The values used with
10882 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE.
10883 *
10884 * @QCA_WLAN_TWT_SESSION_NOT_SUSPENDABLE: TWT session cannot be suspended.
10885 * @QCA_WLAN_TWT_SESSION_SUSPENDABLE: TWT session can be suspended.
10886 */
10887enum qca_wlan_twt_session_suspendable {
10888 QCA_WLAN_TWT_SESSION_NOT_SUSPENDABLE = 0,
10889 QCA_WLAN_TWT_SESSION_SUSPENDABLE = 1,
10890};
10891
10892/**
10893 * enum qca_wlan_twt_session_updatable: Define the values used with
10894 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE.
10895 *
10896 * @QCA_WLAN_TWT_SESSION_NOT_UPDATABLE: TWT session cannot be updated.
10897 * @QCA_WLAN_TWT_SESSION_UPDATABLE: TWT session can be updated.
10898 */
10899enum qca_wlan_twt_session_updatable {
10900 QCA_WLAN_TWT_SESSION_NOT_UPDATABLE = 0,
10901 QCA_WLAN_TWT_SESSION_UPDATABLE = 1,
10902};
10903
10904/**
10905 * enum qca_wlan_twt_session_implicit: Define the values used with
10906 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT.
10907 *
10908 * @QCA_WLAN_TWT_SESSION_NOT_IMPLICIT: TWT session cannot be implicit.
10909 * @QCA_WLAN_TWT_SESSION_IMPLICIT: TWT session can be implicit.
10910 */
10911enum qca_wlan_twt_session_implicit {
10912 QCA_WLAN_TWT_SESSION_NOT_IMPLICIT = 0,
10913 QCA_WLAN_TWT_SESSION_IMPLICIT = 1,
10914};
10915
10916/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010917 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10918 * TWT (Target Wake Time) setup request. These attributes are sent as part of
10919 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -070010920 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
Sunil Ravic0f5d412024-09-11 22:12:49 +000010921 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT and
10922 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010923 *
10924 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10925 * Disable (flag attribute not present) - Individual TWT
10926 * Enable (flag attribute present) - Broadcast TWT.
10927 * Individual means the session is between the STA and the AP.
10928 * This session is established using a separate negotiation between
10929 * STA and AP.
10930 * Broadcast means the session is across multiple STAs and an AP. The
10931 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010932 * This is used in
10933 * 1. TWT SET Request and Response
10934 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010935 *
10936 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10937 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -070010938 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010939 *
10940 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10941 * Enable (flag attribute present) - TWT with trigger support.
10942 * Disable (flag attribute not present) - TWT without trigger support.
10943 * Trigger means the AP will send the trigger frame to allow STA to send data.
10944 * Without trigger, the STA will wait for the MU EDCA timer before
10945 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -070010946 * This is used in
10947 * 1. TWT SET Request and Response
10948 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010949 *
10950 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10951 * 0 - Announced TWT - In this mode, STA may skip few service periods to
10952 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10953 * NULL frame to AP.
10954 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010955 * This is a required parameter for
10956 * 1. TWT SET Request and Response
10957 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010958 *
10959 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10960 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -070010961 * If not provided then dialog ID will be set to zero.
10962 * This is an optional parameter for
10963 * 1. TWT SET Request and Response
10964 * 2. TWT GET Request and Response
10965 * 3. TWT TERMINATE Request and Response
10966 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -080010967 * Flow ID values from 0 to 254 represent a single TWT session
10968 * Flow ID value of 255 represents all TWT sessions for the following
10969 * 1. TWT TERMINATE Request and Response
10970 * 2. TWT SUSPEND Request and Response
10971 * 4. TWT CLEAR STATISTICS request
10972 * 5. TWT GET STATISTICS request and response
10973 * If an invalid dialog ID is provided, status
10974 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010975 *
10976 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10977 * This attribute (exp) is used along with the mantissa to derive the
10978 * wake interval using the following formula:
10979 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10980 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010981 * This is a required parameter for
10982 * 1. TWT SET Request and Response
10983 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010984 *
10985 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10986 * Enable (flag attribute present) - Protection required.
10987 * Disable (flag attribute not present) - Protection not required.
10988 * If protection is enabled, then the AP will use protection
10989 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -070010990 * This is used in
10991 * 1. TWT SET Request and Response
10992 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010993 *
10994 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10995 * This attribute is used as the SP offset which is the offset from
10996 * TSF after which the wake happens. The units are in microseconds. If
10997 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -070010998 * This is an optional parameter for
10999 * 1. TWT SET Request and Response
11000 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011001 *
11002 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -070011003 * This is the duration of the service period. This is specified as
11004 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
11005 * This is a required parameter for
11006 * 1. TWT SET Request and Response
11007 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011008 *
11009 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
11010 * This attribute is used to configure wake interval mantissa.
11011 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -070011012 * This is a required parameter for
11013 * 1. TWT SET Request and Response
11014 * 2. TWT GET Response
11015 *
11016 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
11017 * This field is applicable for TWT response only.
11018 * This contains status values in enum qca_wlan_vendor_twt_status
11019 * and is passed to the userspace. This is used in TWT SET operation.
11020 * This is a required parameter for
11021 * 1. TWT SET Response
11022 * 2. TWT TERMINATE Response
11023 * 3. TWT SUSPEND Response
11024 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -080011025 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -070011026 *
11027 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
11028 * This field is applicable for TWT response only.
11029 * This field contains response type from the TWT responder and is
11030 * passed to the userspace. The values for this field are defined in
11031 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
11032 * response.
11033 *
11034 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -080011035 * In TWT setup command this field contains absolute TSF that will
11036 * be used by TWT requester during setup.
11037 * In TWT response this field contains absolute TSF value of the
11038 * wake time received from the TWT responder and is passed to
11039 * the userspace.
11040 * This is an optional parameter for
11041 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -070011042 * This is a required parameter for
11043 * 1. TWT SET Response
11044 * 2. TWT GET Response
11045 *
11046 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
11047 * Enable (flag attribute present) - Indicates that the TWT responder
11048 * supports reception of TWT information frame from the TWT requestor.
11049 * Disable (flag attribute not present) - Indicates that the responder
11050 * doesn't support reception of TWT information frame from requestor.
11051 * This is used in
11052 * 1. TWT SET Response
11053 * 2. TWT GET Response
11054 *
11055 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
11056 * Represents the MAC address of the peer for which the TWT session
11057 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -080011058 * client.
11059 * In AP mode, this is a required parameter in response for
11060 * 1. TWT SET
11061 * 2. TWT GET
11062 * 3. TWT TERMINATE
11063 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -070011064 * In STA mode, this is an optional parameter in request and response for
11065 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011066 * In AP mode, this is a required parameter in request for
11067 * 1. TWT GET
11068 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -080011069 *
11070 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
11071 * Minimum tolerance limit of wake interval parameter in microseconds.
11072 *
11073 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
11074 * Maximum tolerance limit of wake interval parameter in microseconds.
11075 *
11076 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
11077 * Minimum tolerance limit of wake duration parameter in microseconds.
11078 *
11079 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
11080 * Maximum tolerance limit of wake duration parameter in microseconds.
11081 *
11082 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
11083 * TWT state for the given dialog id. The values for this are represented
11084 * by enum qca_wlan_twt_setup_state.
11085 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011086 *
11087 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
11088 * This attribute is used to configure wake interval mantissa.
11089 * The unit is microseconds. This attribute, when specified, takes
11090 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
11091 * This parameter is used for
11092 * 1. TWT SET Request and Response
11093 * 2. TWT GET Response
11094 *
11095 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
11096 * This attribute is used to configure Broadcast TWT ID.
11097 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
11098 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
11099 * This parameter is used for
11100 * 1. TWT SET Request
11101 * 2. TWT TERMINATE Request
11102 *
11103 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
11104 * This attribute is used to configure Broadcast TWT recommendation.
11105 * The Broadcast TWT Recommendation subfield contains a value that indicates
11106 * recommendations on the types of frames that are transmitted by TWT
11107 * scheduled STAs and scheduling AP during the broadcast TWT SP.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011108 * The allowed values are 0 - 4.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011109 * This parameter is used for
11110 * 1. TWT SET Request
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011111 * 2. R-TWT SET Request
Hai Shaloma20dcd72022-02-04 13:43:00 -080011112 *
11113 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
11114 * This attribute is used to configure Broadcast TWT Persistence.
11115 * The Broadcast TWT Persistence subfield indicates the number of
11116 * TBTTs during which the Broadcast TWT SPs corresponding to this
11117 * broadcast TWT Parameter set are present. The number of beacon intervals
11118 * during which the Broadcast TWT SPs are present is equal to the value in the
11119 * Broadcast TWT Persistence subfield plus 1 except that the value 255
11120 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
11121 * This parameter is used for
11122 * 1. TWT SET Request
11123 *
11124 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
11125 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
Sunil Ravi7f769292024-07-23 22:21:32 +000011126 * from TWT response frame. During TWT setup request, this attribute is used to
11127 * configure the Responder PM Mode bit in the control field of the TWT element
11128 * for broadcast TWT schedule.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011129 * This parameter is used for
11130 * 1. TWT SET Response
11131 * 2. TWT GET Response
Sunil Ravi7f769292024-07-23 22:21:32 +000011132 * 3. TWT SET Request
Hai Shaloma20dcd72022-02-04 13:43:00 -080011133 *
11134 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
11135 * This attribute is used to configure the announce timeout value (in us) in
11136 * the firmware. This timeout value is only applicable for the announced TWT. If
11137 * the timeout value is non-zero the firmware waits up to the timeout value to
11138 * use Data frame as an announcement frame. If the timeout value is 0 the
11139 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
11140 * start. The default value in the firmware is 0.
11141 * This parameter is used for
11142 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -070011143 *
11144 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
11145 * alignment.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011146 *
11147 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE: Optional (u8)
11148 * This attribute indicates whether the TWT session being negotiated can be
11149 * suspended.
11150 * Refers the enum qca_wlan_twt_session_suspendable.
11151 * This parameter is used for
11152 * 1. TWT SET Response
11153 *
11154 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_DOWNLINK_TID_BITMAP: Optional (u32)
11155 * This attribute is used to configure downlink TIDs for R-TWT scheduling.
11156 * This attribute only applicable when requesting R-TWT schedules.
11157 *
11158 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_UPLINK_TID_BITMAP: Optional (u32)
11159 * This attribute is used to configure uplink TIDs for R-TWT scheduling.
11160 * This attribute only applicable when requesting R-TWT schedules.
11161 *
11162 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE: Optional (u8)
11163 * This attribute indicates whether the parameters of the TWT session being
11164 * negotiated (like wake interval, wake duration, etc.) can be updated after
11165 * session setup.
11166 * Refers the enum qca_wlan_twt_session_updatable.
11167 * This parameter is used for
11168 * 1. TWT SET Response
11169 *
11170 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT: Optional (u8)
11171 * This attribute indicates whether the TWT session being negotiated is
11172 * an implicit TWT, where the requesting STA calculates the start time of the
11173 * next TWT service period, or an explicit TWT, where the responding STA
11174 * calculates the start time of the next TWT service period.
11175 * Refers the enum qca_wlan_twt_session_implicit.
11176 * This parameter is used for
11177 * 1. TWT SET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011178 */
11179enum qca_wlan_vendor_attr_twt_setup {
11180 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
11181 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
11182 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
11183 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
11184 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
11185 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
11186 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
11187 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
11188 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
11189 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
11190 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
11191
Hai Shalom899fcc72020-10-19 14:38:18 -070011192 /* TWT Response only attributes */
11193 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
11194 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
11195 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
11196 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
11197
11198 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -080011199 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
11200 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
11201 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
11202 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
11203 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -070011204
Hai Shaloma20dcd72022-02-04 13:43:00 -080011205 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
11206
11207 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
11208 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
11209 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
11210
11211 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
11212 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
11213
Sunil Ravi036cec52023-03-29 11:35:17 -070011214 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011215 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_SUSPENDABLE = 28,
11216 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_DOWNLINK_TID_BITMAP = 29,
11217 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RTWT_UPLINK_TID_BITMAP = 30,
11218 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_UPDATABLE = 31,
11219 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_IMPLICIT = 32,
Sunil Ravi036cec52023-03-29 11:35:17 -070011220
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011221 /* keep last */
11222 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
11223 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
11224 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
11225};
11226
11227/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011228 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
11229 * TWT operation
11230 *
11231 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
11232 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
11233 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
11234 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
11235 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
11236 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
11237 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
11238 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
11239 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
11240 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
11241 * request/response frame
11242 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
11243 * frame
11244 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
11245 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
11246 * unknown reason
11247 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
11248 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -080011249 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
11250 * invalid IE in the received TWT frame
11251 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
11252 * the responder are not in the specified range
11253 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
11254 * session due to request from the responder. Used on the TWT_TERMINATE
11255 * notification from the firmware.
11256 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
11257 * session due to roaming. Used on the TWT_TERMINATE notification from the
11258 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011259 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
11260 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
11261 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
11262 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
11263 * request due to roaming in progress.
11264 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
11265 * setup request due to channel switch in progress.
11266 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
11267 * request due to scan in progress.
11268 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
11269 * terminate an existing TWT session on power save exit request from userspace.
11270 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -070011271 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
11272 * required bit in its capabilities.
11273 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
11274 * the TWT required bit(1->0) in its capabilities.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011275 * @QCA_WLAN_VENDOR_TWT_STATUS_MULTIPLE_LINKS_ACTIVE_TERMINATE: FW terminated
11276 * the TWT session due to more than one MLO link becoming active. Used on the
11277 * TWT_TERMINATE notification from the driver/firmware.
11278 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_ALREADY_RESUMED: TWT session already in
11279 * resumed state. Used on the TWT_RESUME notification from the driver/firmware.
11280 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_REJECTED: Requested TWT operation is
11281 * rejected by the peer. Used on the TWT_SET notification from the
11282 * driver/firmware.
11283 * @QCA_WLAN_VENDOR_TWT_STATUS_TIMEOUT: Requested TWT operation has timed out.
11284 * Used on the TWT_SET, TWT_TERMINATE notification from the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -070011285 */
11286enum qca_wlan_vendor_twt_status {
11287 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
11288 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
11289 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
11290 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
11291 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
11292 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
11293 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
11294 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
11295 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
11296 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
11297 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
11298 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
11299 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
11300 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -080011301 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
11302 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
11303 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
11304 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011305 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
11306 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
11307 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
11308 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
11309 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -070011310 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
11311 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011312 QCA_WLAN_VENDOR_TWT_STATUS_MULTIPLE_LINKS_ACTIVE_TERMINATE = 25,
11313 QCA_WLAN_VENDOR_TWT_STATUS_TWT_ALREADY_RESUMED = 26,
11314 QCA_WLAN_VENDOR_TWT_STATUS_PEER_REJECTED = 27,
11315 QCA_WLAN_VENDOR_TWT_STATUS_TIMEOUT = 28,
Hai Shalom899fcc72020-10-19 14:38:18 -070011316};
11317
11318/**
11319 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011320 * TWT (Target Wake Time) resume request. These attributes are sent as part of
11321 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -070011322 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
11323 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011324 *
11325 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -070011326 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
11327 * These attributes are used as the SP offset which is the offset from TSF after
11328 * which the wake happens. The units are in microseconds. Please note that
11329 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
11330 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
11331 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
11332 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011333 *
11334 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
11335 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -070011336 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11337 * and 4 for 64 bits.
11338 *
11339 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
11340 * Flow ID is the unique identifier for each TWT session. This attribute
11341 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -080011342 * Flow ID values from 0 to 254 represent a single TWT session
11343 * Flow ID value of 255 represents all TWT sessions.
11344 * If an invalid dialog id is provided, status
11345 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -070011346 *
11347 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
11348 * Represents the MAC address of the peer to which TWT Resume is
11349 * being sent. This is used in AP mode to represent the respective
11350 * client and is a required parameter. In STA mode, this is an optional
11351 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011352 */
11353enum qca_wlan_vendor_attr_twt_resume {
11354 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
11355 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
11356 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070011357 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
11358 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
11359 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011360
11361 /* keep last */
11362 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
11363 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
11364 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
11365};
11366
11367/**
Hai Shalom60840252021-02-19 19:02:11 -080011368 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
11369 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
11370 * and resume in a single request. These attributes are sent as part of
11371 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11372 *
11373 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
11374 * Flow ID is the unique identifier for each TWT session. This attribute
11375 * represents the respective TWT session to suspend and resume.
11376 * Flow ID values from 0 to 254 represent a single TWT session
11377 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
11378 * and response.
11379 * If an invalid dialog id is provided, status
11380 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
11381 *
11382 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
11383 * This attribute is used as the SP offset which is the offset from
11384 * TSF after which the wake happens. The units are in microseconds.
11385 *
11386 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
11387 * This attribute represents the next TWT subfield size.
11388 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11389 * and 4 for 64 bits.
11390 *
11391 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
11392 * Represents the MAC address of the peer to which TWT Suspend and Resume is
11393 * being sent. This is used in AP mode to represent the respective
11394 * client and is a required parameter. In STA mode, this is an optional
11395 * parameter.
11396 *
11397 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
11398 * This field contains absolute TSF value of the time at which the TWT
11399 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -070011400 *
11401 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
11402 * This field will be used when device supports Flexible TWT.
11403 * This field contains an offset value by which to shift the starting time
11404 * of the next service period. The value of offset can be negative or positive.
11405 * If provided, this attribute will override
11406 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
11407 *
Sunil Ravi036cec52023-03-29 11:35:17 -070011408 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
11409 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -080011410 */
11411enum qca_wlan_vendor_attr_twt_nudge {
11412 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
11413 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
11414 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
11415 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
11416 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
11417 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070011418 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -070011419 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -080011420
11421 /* keep last */
11422 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
11423 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
11424 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
11425};
11426
11427/**
11428 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
11429 * TWT (Target Wake Time) get statistics and clear statistics request.
11430 * These attributes are sent as part of
11431 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11432 *
11433 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
11434 * Flow ID is the unique identifier for each TWT session. This attribute
11435 * represents the respective TWT session for get and clear TWT statistics.
11436 * Flow ID values from 0 to 254 represent a single TWT session
11437 * Flow ID value of 255 represents all TWT sessions in
11438 * 1) TWT GET STATISTICS request and response
11439 * 2) TWT CLEAR STATISTICS request
11440 *
11441 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
11442 * Represents the MAC address of the peer for which TWT Statistics
11443 * is required.
11444 * In AP mode this is used to represent the respective
11445 * client and is a required parameter for
11446 * 1) TWT GET STATISTICS request and response
11447 * 2) TWT CLEAR STATISTICS request and response
11448 * In STA mode, this is an optional parameter.
11449 *
11450 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
11451 * This is the duration of the service period in microseconds.
11452 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11453 *
11454 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
11455 * Average of the actual wake duration observed so far. Unit is microseconds.
11456 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11457 *
11458 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
11459 * The number of TWT service periods elapsed so far.
11460 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11461 *
11462 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
11463 * This is the minimum value of the wake duration observed across
11464 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11465 * microseconds.
11466 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11467 *
11468 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
11469 * This is the maximum value of wake duration observed across
11470 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11471 * microseconds.
11472 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11473 *
11474 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
11475 * Average number of MPDUs transmitted successfully across
11476 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11477 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11478 *
11479 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
11480 * Average number of MPDUs received successfully across
11481 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11482 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11483 *
11484 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
11485 * Average number of bytes transmitted successfully across
11486 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11487 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11488 *
11489 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
11490 * Average number of bytes received successfully across
11491 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11492 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11493 *
11494 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
11495 * Status of the TWT GET STATISTICS request.
11496 * This contains status values in enum qca_wlan_vendor_twt_status
11497 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011498 *
11499 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_EOSP_DUR_US: Optional (u32)
11500 * Average of duration of the early terminated TWT service periods
11501 * in micro seconds.
11502 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11503 *
11504 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_EOSP_COUNT: Optional (u32)
11505 * Number of early terminated TWT service periods observed over
11506 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11507 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
Hai Shalom60840252021-02-19 19:02:11 -080011508 */
11509enum qca_wlan_vendor_attr_twt_stats {
11510 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
11511 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
11512 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
11513 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
11514 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
11515 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
11516 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
11517 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
11518 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
11519 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
11520 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
11521 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
11522 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011523 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_EOSP_DUR_US = 13,
11524 QCA_WLAN_VENDOR_ATTR_TWT_STATS_EOSP_COUNT = 14,
Hai Shalom60840252021-02-19 19:02:11 -080011525
11526 /* keep last */
11527 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
11528 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
11529 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
11530};
11531
11532/**
11533 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
11534 * supported by the device and the peer.
11535 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
11536 *
11537 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
11538 * TWT non-scheduling STA. This capability is advertised in the HE
11539 * Capability/Extended Capabilities information element in the
11540 * Association Request frame by the device.
11541 *
11542 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
11543 * the TWT scheduling AP. This capability is advertised in the Extended
11544 * Capabilities/HE Capabilities information element.
11545 *
11546 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
11547 * for the broadcast TWT functionality. On the responder side, this indicates
11548 * support for the role of broadcast TWT scheduling functionality. This
11549 * capability is advertised in the HE Capabilities information element.
11550 *
11551 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
11552 * This capability is advertised in the HE Capabilities information element.
11553 *
11554 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
11555 * that it mandates the associated HE STAs to support TWT. This capability is
11556 * advertised by AP in the HE Operation Parameters field of the HE Operation
11557 * information element.
11558 */
11559enum qca_wlan_twt_capa {
11560 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
11561 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
11562 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
11563 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
11564 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
11565};
11566
11567/**
11568 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
11569 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
11570 * operation.
11571 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
11572 * Represents the MAC address of the peer for which the TWT capabilities
11573 * are being queried. This is used in AP mode to represent the respective
11574 * client. In STA mode, this is an optional parameter.
11575 *
11576 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
11577 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
11578 * enum qca_wlan_twt_capa.
11579 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
11580 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
11581 * enum qca_wlan_twt_capa.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011582 *
11583 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_INTVL: (u32).
11584 * Minimum tolerance limit of wake interval parameter in microseconds.
11585 *
11586 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_INTVL: (u32).
11587 * Maximum tolerance limit of wake interval parameter in microseconds.
11588 *
11589 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_DURATION: (u32).
11590 * Minimum tolerance limit of wake duration parameter in microseconds.
11591 *
11592 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_DURATION: (u32).
11593 * Maximum tolerance limit of wake duration parameter in microseconds.
Hai Shalom60840252021-02-19 19:02:11 -080011594 */
11595enum qca_wlan_vendor_attr_twt_capability {
11596 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
11597 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
11598 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
11599 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011600 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_INTVL = 4,
11601 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_INTVL = 5,
11602 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MIN_WAKE_DURATION = 6,
11603 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX_WAKE_DURATION = 7,
Hai Shalom60840252021-02-19 19:02:11 -080011604
11605 /* keep last */
11606 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
11607 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
11608 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
11609};
11610
11611/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011612 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
11613 * TWT (Target Wake Time) related parameters. It is used when
11614 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
11615 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11616 *
11617 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
11618 * This attribute configures AC parameters to be used for all TWT
11619 * sessions in AP mode.
11620 * Uses the enum qca_wlan_ac_type values.
Sunil Ravi7f769292024-07-23 22:21:32 +000011621 *
11622 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute,
11623 * used by TWT responder to indicate unavailability outside of the SPs.
11624 * Enable (flag attribute present) - Indicates that the TWT responder may be
11625 * unavailable outside of the SPs of its broadcast TWT schedule.
11626 * Disable (flag attribute not present) - Indicates that the responder will be
11627 * available for all TWT sessions (including individual TWT).
Hai Shaloma20dcd72022-02-04 13:43:00 -080011628 */
11629enum qca_wlan_vendor_attr_twt_set_param {
11630 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
11631 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
Sunil Ravi7f769292024-07-23 22:21:32 +000011632 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011633
11634 /* keep last */
11635 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
11636 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
11637 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
11638};
11639
11640/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011641 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
11642 * the TWT responder
11643 *
11644 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
11645 * parameters that are different from TWT requesting STA suggested
11646 * or demanded TWT parameters
11647 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
11648 * parameters that are different from TWT requesting STA TWT suggested
11649 * or demanded parameters
11650 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
11651 * setup
11652 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
11653 * setup.
11654 */
11655enum qca_wlan_vendor_twt_setup_resp_type {
11656 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
11657 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
11658 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
11659 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
11660};
11661
11662/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011663 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11664 * Represents the setup type being requested for TWT.
11665 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11666 * parameters but relying on AP to fill the parameters during the negotiation.
11667 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11668 * values which the AP may accept or AP may provide alternative parameters
11669 * which the STA may accept.
11670 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11671 * alternate parameters than the requested ones.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011672 * @QCA_WLAN_VENDOR_TWT_SETUP_TWT_GROUPING: TWT responding STA suggests TWT
11673 * group parameters that are different from the suggested or demanded TWT
11674 * parameters of the TWT requesting STA.
11675 * @QCA_WLAN_VENDOR_TWT_SETUP_ACCEPT_TWT: TWT responding STA or TWT scheduling
11676 * AP accepts the TWT request with the TWT parameters indicated in the TWT
11677 * element transmitted by the TWT requesting STA or TWT scheduled STA.
11678 * @QCA_WLAN_VENDOR_TWT_SETUP_ALTERNATE_TWT: TWT responding STA or TWT
11679 * scheduling AP suggests TWT parameters that are different from those suggested
11680 * by the TWT requesting STA or TWT scheduled STA.
11681 * @QCA_WLAN_VENDOR_TWT_SETUP_DICTATE_TWT: TWT responding STA or TWT scheduling
11682 * dictates TWT parameters that are different from those suggested by the
11683 * TWT requesting STA or TWT scheduled STA.
11684 * @QCA_WLAN_VENDOR_TWT_SETUP_REJECT_TWT: A TWT responding STA or TWT scheduling
11685 * AP rejects setup or terminates an existing broadcast TWT, or a TWT scheduled
11686 * STA terminates its membership in a broadcast TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011687 */
11688enum qca_wlan_vendor_twt_setup_req_type {
11689 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11690 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11691 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000011692 QCA_WLAN_VENDOR_TWT_SETUP_TWT_GROUPING = 4,
11693 QCA_WLAN_VENDOR_TWT_SETUP_ACCEPT_TWT = 5,
11694 QCA_WLAN_VENDOR_TWT_SETUP_ALTERNATE_TWT = 6,
11695 QCA_WLAN_VENDOR_TWT_SETUP_DICTATE_TWT = 7,
11696 QCA_WLAN_VENDOR_TWT_SETUP_REJECT_TWT = 8,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011697};
11698
11699/**
11700 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
11701 *
11702 * Indicates the type of roam scan event sent by firmware/driver.
11703 *
11704 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
11705 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
11706 */
11707enum qca_wlan_roam_scan_event_type {
11708 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
11709 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
11710};
11711
11712/**
11713 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
11714 *
11715 * Indicates the reason for triggering roam scan by firmware/driver.
11716 *
11717 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
11718 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
11719 */
11720enum qca_wlan_roam_scan_trigger_reason {
11721 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
11722 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
11723};
11724
11725/**
11726 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
11727 * roam scan related details from driver/firmware to user space. enum values
11728 * are used for NL attributes sent with
11729 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
11730 */
11731enum qca_wlan_vendor_attr_roam_scan {
11732 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
11733 /* Encapsulates type of roam scan event being reported. enum
11734 * qca_wlan_roam_scan_event_type describes the possible range of
11735 * values. u32 attribute.
11736 */
11737 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
11738 /* Encapsulates reason for triggering roam scan. enum
11739 * qca_wlan_roam_scan_trigger_reason describes the possible range of
11740 * values. u32 attribute.
11741 */
11742 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
11743
11744 /* keep last */
11745 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
11746 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
11747 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
11748};
11749
11750/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011751 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11752 * transport modes and is used by the attribute
11753 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
11754 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11755 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
11756 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11757 * data. The data shall be encapsulated within
11758 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
11759 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11760 */
11761enum qca_wlan_vendor_cfr_data_transport_modes {
11762 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11763 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11764};
11765
11766/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011767 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11768 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11769 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070011770 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
11771 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
11772 * with phase
11773 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011774 */
11775enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011776 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070011777 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11778 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11779};
11780
11781/**
11782 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11783 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11784 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11785 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11786 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11787 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11788 * is provided by one or more of below attributes:
11789 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11790 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11791 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11792 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11793 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11794 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11795 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11796 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11797 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11798 */
11799enum qca_wlan_vendor_cfr_capture_type {
11800 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11801 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11802 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11803 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11804 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11805 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011806};
11807
11808/**
11809 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11810 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11811 * Channel Frequency Response capture parameters and enable periodic CFR
11812 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070011813 *
11814 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11815 * MAC address of peer. This is for CFR version 1 only.
11816 *
11817 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11818 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
11819 * capture. If this attribute is not present, peer CFR capture is disabled.
11820 *
11821 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11822 * BW of measurement, attribute uses the values in enum nl80211_chan_width
11823 * Supported values: 20, 40, 80, 80+80, 160.
11824 * Note that all targets may not support all bandwidths.
11825 * This attribute is mandatory for version 1 if attribute
11826 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11827 *
11828 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11829 * Periodicity of CFR measurement in milliseconds.
11830 * Periodicity should be a multiple of Base timer.
11831 * Current Base timer value supported is 10 milliseconds (default).
11832 * 0 for one shot capture.
11833 * This attribute is mandatory for version 1 if attribute
11834 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11835 *
11836 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11837 * Method used to capture Channel Frequency Response.
11838 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11839 * This attribute is mandatory for version 1 if attribute
11840 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11841 *
11842 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11843 * Enable periodic CFR capture.
11844 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11845 * If this attribute is not present, periodic CFR capture is disabled.
11846 *
11847 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
11848 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11849 * can't be enabled at same time. This attribute is mandatory if target
11850 * support both versions and use one of them.
11851 *
11852 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11853 * This attribute is mandatory for version 2 if
11854 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11855 * Bits 15:0 bitfield indicates which group is to be enabled.
11856 * Bits 31:16 Reserved for future use.
11857 *
11858 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11859 * CFR capture duration in microsecond. This attribute is mandatory for
11860 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11861 *
11862 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11863 * CFR capture interval in microsecond. This attribute is mandatory for
11864 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11865 *
11866 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11867 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11868 * This attribute is mandatory for version 2.
11869 *
11870 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11871 * Bitfield indicating which user in the current UL MU transmissions are
11872 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
11873 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
11874 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
11875 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
11876 * reserved for future use. This is for CFR version 2 only.
11877 *
11878 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11879 * Indicates the number of consecutive RX frames to be skipped before CFR
11880 * capture is enabled again. This is for CFR version 2 only.
11881 *
11882 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11883 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11884 *
11885 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11886 * the following group attributes:
11887 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11888 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11889 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11890 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11891 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11892 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11893 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11894 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11895 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11896 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11897 *
11898 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11899 * Target supports multiple groups for some configurations. The group number
11900 * can be any value between 0 and 15. This is for CFR version 2 only.
11901 *
11902 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11903 * Transmitter address which is used to filter frames. This MAC address takes
11904 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
11905 * version 2 only.
11906 *
11907 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11908 * Receiver address which is used to filter frames. This MAC address takes
11909 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
11910 * version 2 only.
11911 *
11912 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11913 * Mask of transmitter address which is used to filter frames. This is for CFR
11914 * version 2 only.
11915 *
11916 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11917 * Mask of receiver address which is used to filter frames. This is for CFR
11918 * version 2 only.
11919 *
11920 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11921 * Indicates frames with a specific NSS will be filtered for CFR capture.
11922 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
11923 * capture to be done for frames matching the NSS specified within this bitmask.
11924 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
11925 * bit 0 : NSS 1
11926 * bit 1 : NSS 2
11927 * ...
11928 * bit 7 : NSS 8
11929 *
11930 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11931 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
11932 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
11933 * capture to be done for frames matching the bandwidths specified within this
11934 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
11935 * numerated in enum nl80211_band (although not all bands may be supported
11936 * by a given device).
11937 *
11938 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11939 * Management frames matching the subtype filter categories will be filtered in
11940 * by MAC for CFR capture. This is a bitmask in which each bit represents the
11941 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
11942 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
11943 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
11944 *
11945 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11946 * Control frames matching the subtype filter categories will be filtered in by
11947 * MAC for CFR capture. This is a bitmask in which each bit represents the
11948 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
11949 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
11950 *
11951 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11952 * Data frames matching the subtype filter categories will be filtered in by
11953 * MAC for CFR capture. This is a bitmask in which each bit represents the
11954 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
11955 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011956 *
11957 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11958 * Userspace can use this attribute to specify the driver about which transport
11959 * mode shall be used by the driver to send CFR data to userspace. Uses values
11960 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11961 * not present, the driver shall use the default transport mechanism which is
11962 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11963 *
11964 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11965 * Userspace can use this attribute to specify the nl port id of the application
11966 * which receives the CFR data and processes it further so that the drivers can
11967 * unicast the netlink events to a specific application. Optionally included
11968 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11969 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11970 * shall multicast the netlink events when this attribute is not included.
11971 *
11972 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11973 * This attribute will be used by the driver to encapsulate and send CFR data
11974 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11975 * asynchronous event when the driver is configured to send CFR data using
11976 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070011977 *
11978 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
11979 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011980 */
11981enum qca_wlan_vendor_peer_cfr_capture_attr {
11982 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011983 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011984 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011985 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011986 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011987 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011988 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070011989 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11990 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11991 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11992 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11993 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11994 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11995 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11996 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11997 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11998 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11999 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
12000 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
12001 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
12002 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
12003 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
12004 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
12005 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
12006 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
12007 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012008 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
12009 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
12010 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070012011 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080012012
12013 /* Keep last */
12014 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
12015 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
12016 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
12017};
12018
Hai Shalom74f70d42019-02-11 14:42:39 -080012019/**
12020 * enum qca_wlan_throughput_level - Current throughput level
12021 *
12022 * Indicates the current level of throughput calculated by the driver. The
12023 * driver may choose different thresholds to decide whether the throughput level
12024 * is low or medium or high based on variety of parameters like physical link
12025 * capacity of the current connection, the number of packets being dispatched
12026 * per second, etc. The throughput level events might not be consistent with the
12027 * actual current throughput value being observed.
12028 *
12029 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
12030 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
12031 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
12032 */
12033enum qca_wlan_throughput_level {
12034 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
12035 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
12036 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
12037};
12038
12039/**
12040 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
12041 * report throughput changes from the driver to user space. enum values are used
12042 * for netlink attributes sent with
12043 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
12044 */
12045enum qca_wlan_vendor_attr_throughput_change {
12046 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
12047 /* Indicates the direction of throughput in which the change is being
12048 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
12049 */
12050 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
12051 /* Indicates the newly observed throughput level. enum
12052 * qca_wlan_throughput_level describes the possible range of values.
12053 * u8 attribute.
12054 */
12055 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
12056 /* Indicates the driver's guidance on the new value to be set to
12057 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
12058 * driver may optionally include this attribute.
12059 */
12060 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
12061 /* Indicates the driver's guidance on the new value to be set to
12062 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
12063 * values are from -31 to 31. The driver may optionally include this
12064 * attribute.
12065 */
12066 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
12067 /* Indicates the driver's guidance on the new value to be set to
12068 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
12069 * optionally include this attribute.
12070 */
12071 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
12072
12073 /* keep last */
12074 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
12075 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
12076 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
12077};
12078
12079/**
12080 * enum qca_coex_config_profiles - This enum defines different types of
12081 * traffic streams that can be prioritized one over the other during coex
12082 * scenarios.
12083 * The types defined in this enum are categorized in the below manner.
12084 * 0 - 31 values corresponds to WLAN
12085 * 32 - 63 values corresponds to BT
12086 * 64 - 95 values corresponds to Zigbee
12087 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
12088 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
12089 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
12090 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
12091 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
12092 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
12093 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
12094 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
12095 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
12096 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
12097 * @QCA_BT_A2DP: Prioritize BT A2DP
12098 * @QCA_BT_BLE: Prioritize BT BLE
12099 * @QCA_BT_SCO: Prioritize BT SCO
12100 * @QCA_ZB_LOW: Prioritize Zigbee Low
12101 * @QCA_ZB_HIGH: Prioritize Zigbee High
12102 */
12103enum qca_coex_config_profiles {
12104 /* 0 - 31 corresponds to WLAN */
12105 QCA_WIFI_STA_DISCOVERY = 0,
12106 QCA_WIFI_STA_CONNECTION = 1,
12107 QCA_WIFI_STA_CLASS_3_MGMT = 2,
12108 QCA_WIFI_STA_DATA = 3,
12109 QCA_WIFI_STA_ALL = 4,
12110 QCA_WIFI_SAP_DISCOVERY = 5,
12111 QCA_WIFI_SAP_CONNECTION = 6,
12112 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
12113 QCA_WIFI_SAP_DATA = 8,
12114 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070012115 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080012116 /* 32 - 63 corresponds to BT */
12117 QCA_BT_A2DP = 32,
12118 QCA_BT_BLE = 33,
12119 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070012120 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080012121 /* 64 - 95 corresponds to Zigbee */
12122 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070012123 QCA_ZB_HIGH = 65,
12124 QCA_ZB_CASE_MAX = 95,
12125 /* 0xff is default value if the u8 profile value is not set. */
12126 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
12127};
12128
12129/**
12130 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
12131 * This enum defines the valid set of values of coex configuration types. These
12132 * values may used by attribute
12133 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
12134 *
12135 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
12136 * weights to default values.
12137 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
12138 * weights with configurability value.
12139 */
12140enum qca_vendor_attr_coex_config_types {
12141 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
12142 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
12143 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080012144};
12145
12146/**
12147 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
12148 *
12149 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
12150 * length array of 8-bit values from enum qca_coex_config_profiles.
12151 * FW will prioritize the profiles in the order given in the array encapsulated
12152 * in this attribute.
12153 * For example:
12154 * -----------------------------------------------------------------------
12155 * | 1 | 34 | 32 | 65 |
12156 * -----------------------------------------------------------------------
12157 * If the attribute contains the values defined in above array then it means
12158 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
12159 * 2) BT_SCO has priority over BT_A2DP.
12160 * 3) BT_A2DP has priority over ZIGBEE HIGH.
12161 * Profiles which are not listed in this array shall not be preferred over the
12162 * profiles which are listed in the array as a part of this attribute.
12163 */
12164enum qca_vendor_attr_coex_config {
12165 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
12166 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
12167
12168 /* Keep last */
12169 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
12170 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
12171 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
12172};
12173
12174/**
Hai Shalom021b0b52019-04-10 11:17:58 -070012175 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
12176 * attributes
12177 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
12178 *
12179 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
12180 * Indicate config type.
12181 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
12182 *
12183 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
12184 * Indicate the Priority 1 profiles.
12185 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12186 * In same priority level, maximum to 4 profiles can be set here.
12187 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
12188 * Indicate the Priority 2 profiles.
12189 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12190 * In same priority level, maximum to 4 profiles can be set here.
12191 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
12192 * Indicate the Priority 3 profiles.
12193 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12194 * In same priority level, maximum to 4 profiles can be set here.
12195 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
12196 * Indicate the Priority 4 profiles.
12197 * The profiles are 8-bit values from enum qca_coex_config_profiles.
12198 * In same priority level, maximum to 4 profiles can be set here.
12199 * NOTE:
12200 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
12201 * arrangement:
12202 * 1: In the same u32 attribute (priority x), the profiles enum values own
12203 * same priority level.
12204 * 2: 0xff is default value if the u8 profile value is not set.
12205 * 3: max to 4 rules/profiles in same priority level.
12206 * 4: max to 4 priority level (priority 1 - priority 4)
12207 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
12208 * hybrid rules not support.
12209 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
12210 * remain blank to reset all parameters.
12211 * For example:
12212 *
12213 * If the attributes as follow:
12214 * priority 1:
12215 * ------------------------------------
12216 * | 0xff | 0 | 1 | 2 |
12217 * ------------------------------------
12218 * priority 2:
12219 * -------------------------------------
12220 * | 0xff | 0xff | 0xff | 32 |
12221 * -------------------------------------
12222 * priority 3:
12223 * -------------------------------------
12224 * | 0xff | 0xff | 0xff | 65 |
12225 * -------------------------------------
12226 * then it means:
12227 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
12228 * owns same priority level.
12229 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
12230 * has priority over BT_A2DP and ZB_HIGH.
12231 * 3: BT_A2DP has priority over ZB_HIGH.
12232 */
Hai Shalom021b0b52019-04-10 11:17:58 -070012233enum qca_vendor_attr_coex_config_three_way {
12234 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
12235 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
12236 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
12237 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
12238 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
12239 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
12240
12241 /* Keep last */
12242 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
12243 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
12244 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
12245};
12246
12247/**
Hai Shalom74f70d42019-02-11 14:42:39 -080012248 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
12249 *
12250 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
12251 * (STA/AP) for the connected link.
12252 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
12253 * &struct nl80211_sta_flag_update for the respective connected link. MAC
12254 * address of the peer represented by
12255 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
12256 */
12257enum qca_wlan_vendor_attr_link_properties {
12258 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
12259 /* 1 - 3 are reserved */
12260 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
12261 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
12262
12263 /* Keep last */
12264 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
12265 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
12266 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
12267};
12268
Hai Shalom021b0b52019-04-10 11:17:58 -070012269/**
12270 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
12271 * This enum defines the valid set of values of peer stats cache types. These
12272 * values are used by attribute
12273 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
12274 *
12275 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
12276 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
12277 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
12278 * statistics
12279 */
12280enum qca_vendor_attr_peer_stats_cache_type {
12281 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
12282
12283 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
12284 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
12285 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
12286};
12287
12288/**
12289 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
12290 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
12291 * Information in these attributes is used to flush peer rate statistics from
12292 * the driver to user application.
12293 *
12294 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
12295 * Indicate peer statistics cache type.
12296 * The statistics types are 32-bit values from
12297 * enum qca_vendor_attr_peer_stats_cache_type.
12298 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
12299 * of size 6 octets, representing the peer MAC address.
12300 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
12301 * containing buffer of statistics to send to application layer entity.
12302 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
12303 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070012304 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
12305 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070012306 */
12307enum qca_wlan_vendor_attr_peer_stats_cache_params {
12308 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
12309
12310 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
12311 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
12312 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
12313 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070012314 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070012315
12316 /* Keep last */
12317 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
12318 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
12319 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
12320};
12321
12322/**
12323 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
12324 * This enum defines all the possible states of Zigbee, which can be
12325 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
12326 *
12327 * @ZIGBEE_IDLE: Zigbee in idle state
12328 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
12329 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
12330 * @ZIGBEE_JOIN: Zigbee joining network
12331 * @ZIGBEE_NETWORK_UP: Zigbee network is up
12332 * @ZIGBEE_HMI: Zigbee in HMI mode
12333 */
12334enum qca_mpta_helper_attr_zigbee_state {
12335 ZIGBEE_IDLE = 0,
12336 ZIGBEE_FORM_NETWORK = 1,
12337 ZIGBEE_WAIT_JOIN = 2,
12338 ZIGBEE_JOIN = 3,
12339 ZIGBEE_NETWORK_UP = 4,
12340 ZIGBEE_HMI = 5,
12341};
12342
12343/*
12344 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
12345 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
12346 */
12347enum qca_mpta_helper_vendor_attr {
12348 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
12349 /* Optional attribute used to update Zigbee state.
12350 * enum qca_mpta_helper_attr_zigbee_state.
12351 * NLA_U32 attribute.
12352 */
12353 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
12354 /* Optional attribute used to configure WLAN duration for Shape-OCS
12355 * during interrupt.
12356 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
12357 * Value range 0 ~ 300 (ms).
12358 * NLA_U32 attribute.
12359 */
12360 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
12361 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12362 * during interrupt.
12363 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
12364 * Value range 0 ~ 300 (ms).
12365 * NLA_U32 attribute.
12366 */
12367 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
12368 /* Optional attribute used to configure WLAN duration for Shape-OCS
12369 * monitor period.
12370 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
12371 * Value range 0 ~ 300 (ms)
12372 * NLA_U32 attribute
12373 */
12374 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
12375 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12376 * monitor period.
12377 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
12378 * Value range 0 ~ 300 (ms)
12379 * NLA_U32 attribute
12380 */
12381 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
12382 /* Optional attribute used to configure OCS interrupt duration.
12383 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
12384 * Value range 1000 ~ 20000 (ms)
12385 * NLA_U32 attribute
12386 */
12387 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
12388 /* Optional attribute used to configure OCS monitor duration.
12389 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
12390 * Value range 1000 ~ 20000 (ms)
12391 * NLA_U32 attribute
12392 */
12393 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
12394 /* Optional attribute used to notify WLAN firmware the current Zigbee
12395 * channel.
12396 * Value range 11 ~ 26
12397 * NLA_U32 attribute
12398 */
12399 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
12400 /* Optional attribute used to configure WLAN mute duration.
12401 * Value range 0 ~ 400 (ms)
12402 * NLA_U32 attribute
12403 */
12404 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
12405
12406 /* keep last */
12407 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
12408 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
12409 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
12410};
12411
Hai Shalom81f62d82019-07-22 12:10:00 -070012412/**
12413 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
12414 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
12415 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
12416 *
12417 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
12418 * to request the driver to start reporting Beacon frames.
12419 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
12420 * request the driver to stop reporting Beacon frames.
12421 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
12422 * userspace to report received Beacon frames.
12423 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
12424 * to indicate that the driver is going to pause reporting Beacon frames.
12425 */
12426enum qca_wlan_vendor_beacon_reporting_op_types {
12427 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
12428 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
12429 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
12430 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
12431};
12432
12433/**
12434 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
12435 * of reasons for which the driver is pausing reporting Beacon frames. Will be
12436 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
12437 *
12438 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
12439 * reasons.
12440 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
12441 * driver/firmware is starting a scan.
12442 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
12443 * driver/firmware disconnects from the ESS and indicates the disconnection to
12444 * userspace (non-seamless roaming case). This reason code will be used by the
12445 * driver/firmware to indicate stopping of beacon report events. Userspace will
12446 * need to start beacon reporting again (if desired) by sending vendor command
12447 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
12448 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
12449 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
12450 * completed.
12451 */
12452enum qca_wlan_vendor_beacon_reporting_pause_reasons {
12453 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
12454 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
12455 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
12456};
12457
12458/*
12459 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
12460 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
12461 */
12462enum qca_wlan_vendor_attr_beacon_reporting_params {
12463 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
12464 /* Specifies the type of operation that the vendor command/event is
12465 * intended for. Possible values for this attribute are defined in
12466 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
12467 */
12468 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
12469 /* Optionally set by userspace to request the driver to report Beacon
12470 * frames using asynchronous vendor events when the
12471 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12472 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12473 * If this flag is not set, the driver will only update Beacon frames in
12474 * cfg80211 scan cache but not send any vendor events.
12475 */
12476 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
12477 /* Optionally used by userspace to request the driver/firmware to report
12478 * Beacon frames periodically when the
12479 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12480 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
12481 * u32 attribute, indicates the period of Beacon frames to be reported
12482 * and in the units of beacon interval.
12483 * If this attribute is missing in the command, then the default value
12484 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
12485 * Zero is an invalid value.
12486 * If a valid value is received for this attribute, the driver will
12487 * update the cfg80211 scan cache periodically as per the value received
12488 * in this attribute in addition to updating the cfg80211 scan cache
12489 * when there is significant change in Beacon frame IEs.
12490 */
12491 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
12492 /* Used by the driver to encapsulate the SSID when the
12493 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12494 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12495 * u8 array with a maximum size of 32.
12496 *
12497 * When generating beacon report from non-MBSSID Beacon frame, the SSID
12498 * will be taken from the SSID element of the received Beacon frame.
12499 *
12500 * When generating beacon report from Multiple BSSID Beacon frame and if
12501 * the BSSID of the current connected BSS matches the BSSID of the
12502 * transmitting BSS, the SSID will be taken from the SSID element of the
12503 * received Beacon frame.
12504 *
12505 * When generating beacon report from Multiple BSSID Beacon frame and if
12506 * the BSSID of the current connected BSS matches the BSSID of one of
12507 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
12508 * included in the nontransmitted BSS profile whose derived BSSID is
12509 * same as the BSSID of the current connected BSS. When there is no
12510 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
12511 * of current connected* BSS, this attribute will not be present.
12512 */
12513 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
12514 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
12515 * currently connected to when the
12516 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12517 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
12518 * fixed size of 6 bytes.
12519 *
12520 * When generating beacon report from a Multiple BSSID beacon and the
12521 * current connected BSSID matches one of the nontransmitted BSSIDs in a
12522 * Multiple BSSID set, this BSSID will be that particular nontransmitted
12523 * BSSID and not the transmitted BSSID (i.e., the transmitting address
12524 * of the Beacon frame).
12525 */
12526 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
12527 /* Used by the driver to encapsulate the frequency in MHz on which
12528 * the Beacon frame was received when the
12529 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
12530 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12531 * u32 attribute.
12532 */
12533 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
12534 /* Used by the driver to encapsulate the Beacon interval
12535 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12536 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12537 * u16 attribute. The value will be copied from the Beacon frame and the
12538 * units are TUs.
12539 */
12540 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
12541 /* Used by the driver to encapsulate the Timestamp field from the Beacon
12542 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
12543 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12544 * u64 attribute.
12545 */
12546 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
12547 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
12548 * Beacon frame is received in the driver when the
12549 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12550 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
12551 * the units of nanoseconds. This value is expected to have accuracy of
12552 * about 10 ms.
12553 */
12554 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
12555 /* Used by the driver to encapsulate the IEs of the Beacon frame from
12556 * which this event is generated when the
12557 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12558 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
12559 */
12560 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
12561 /* Used by the driver to specify the reason for the driver/firmware to
12562 * pause sending beacons to userspace when the
12563 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12564 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
12565 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
12566 * attribute.
12567 */
12568 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
12569 /* Used by the driver to specify whether the driver will automatically
12570 * resume reporting beacon events to userspace later (for example after
12571 * the ongoing off-channel activity is completed etc.) when the
12572 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12573 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
12574 */
12575 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
12576 /* Optionally set by userspace to request the driver not to resume
12577 * beacon reporting after a pause is completed, when the
12578 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12579 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12580 * If this flag is set, the driver will not resume beacon reporting
12581 * after any pause in beacon reporting is completed. Userspace has to
12582 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
12583 * to initiate beacon reporting again. If this flag is set in the recent
12584 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
12585 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
12586 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
12587 * set by the driver. Setting this flag until and unless there is a
12588 * specific need is not recommended as there is a chance of some beacons
12589 * received after pause command and next start command being not
12590 * reported.
12591 */
12592 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070012593 /* Attribute used for padding for 64-bit alignment */
12594 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070012595
12596 /* Keep last */
12597 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
12598 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
12599 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
12600};
12601
12602/**
12603 * enum qca_vendor_interop_issues_ap_type - Interop issue types
12604 * This enum defines the valid set of values of interop issue types. These
12605 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
12606 *
12607 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
12608 * when the STA's Qpower feature is enabled.
12609 */
12610enum qca_vendor_interop_issues_ap_type {
12611 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
12612 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
12613};
12614
12615/**
12616 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
12617 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
12618 *
12619 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
12620 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
12621 * 32-bit unsigned value. The values defined in enum
12622 * qca_vendor_interop_issues_ap_type are used.
12623 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
12624 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
12625 * It is present and mandatory for the command but is not used for the event
12626 * since only a single BSSID is reported in an event.
12627 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
12628 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
12629 * attribute in command case and without such encapsulation in the event case.
12630 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
12631 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
12632 */
12633enum qca_vendor_attr_interop_issues_ap {
12634 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
12635 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
12636 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
12637 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
12638 /* keep last */
12639 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
12640 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
12641 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
12642};
12643
Hai Shalomc3565922019-10-28 11:58:20 -070012644/**
12645 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
12646 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
12647 *
12648 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
12649 * a virtual device.
12650 *
12651 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
12652 * a physical device.
12653 */
12654enum qca_vendor_oem_device_type {
12655 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
12656 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
12657};
12658
12659/**
12660 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
12661 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
12662 *
Hai Shalom899fcc72020-10-19 14:38:18 -070012663 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
12664 * used to set/query the data to/from the firmware. On query, the same
12665 * attribute is used to carry the respective data in the reply sent by the
12666 * driver to userspace. The request to set/query the data and the format of the
12667 * respective data from the firmware are embedded in the attribute. The
12668 * maximum size of the attribute payload is 1024 bytes.
12669 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
12670 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012671 *
12672 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
12673 * based on this field. This optional attribute is included to specify whether
12674 * the device type is a virtual device or a physical device for the
12675 * command/event. This attribute can be omitted for a virtual device (default)
12676 * command/event.
12677 * This u8 attribute is used to carry information for the device type using
12678 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070012679 *
12680 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
12681 * is set when the userspace queries data from the firmware. This attribute
12682 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012683 */
12684enum qca_wlan_vendor_attr_oem_data_params {
12685 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
12686 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
12687 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070012688 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070012689
12690 /* keep last */
12691 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
12692 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
12693 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
12694};
12695
12696/**
12697 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
12698 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
12699 *
12700 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
12701 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012702 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
12703 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
12704 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070012705 *
12706 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
12707 * Starting center frequency in MHz.
12708 *
12709 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
12710 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012711 *
12712 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
12713 * s32 attribute, optional. It is a per frequency range attribute.
12714 * The maximum TX power limit from user space is to be applied on an
12715 * unrestricted interface for corresponding frequency range. It is also
12716 * possible that the actual TX power may be even lower than this cap due to
12717 * other considerations such as regulatory compliance, SAR, etc. In absence of
12718 * this attribute the driver shall follow current behavior which means
12719 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
12720 * power derived by the driver based on regulatory/SAR during interface up.
12721 *
12722 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
12723 * u32 attribute, optional. Indicates all the interface types which are
12724 * restricted for all frequency ranges provided in
12725 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
12726 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
12727 * This attribute encapsulates bitmasks of interface types defined in
12728 * enum nl80211_iftype. If an interface is marked as restricted the driver must
12729 * move to a safe channel and if no safe channel is available the driver shall
12730 * terminate that interface functionality. In absence of this attribute,
12731 * interface (SAP/P2P) can still continue operating on an unsafe channel with
12732 * TX power limit derived from either
12733 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
12734 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
12735 * is not provided.
Sunil Ravi99c035e2024-07-12 01:42:03 +000012736 *
12737 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional.
12738 * This specifies the interface index (netdev) for which the corresponding
12739 * configurations are applied. If the interface index is not specified, the
12740 * configurations are applied based on
12741 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK.
12742 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this
12743 * attribute shall have the matching nl80211_iftype.
Hai Shalomc3565922019-10-28 11:58:20 -070012744 */
12745enum qca_wlan_vendor_attr_avoid_frequency_ext {
12746 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
12747 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
12748 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
12749 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012750 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
12751 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Sunil Ravi99c035e2024-07-12 01:42:03 +000012752 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6,
Hai Shalomc3565922019-10-28 11:58:20 -070012753
12754 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
12755 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
12756 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
12757};
12758
12759/*
12760 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
12761 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
12762 */
12763enum qca_wlan_vendor_attr_add_sta_node_params {
12764 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
12765 /* 6 byte MAC address of STA */
12766 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
12767 /* Authentication algorithm used by the station of size u16;
12768 * defined in enum nl80211_auth_type.
12769 */
12770 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
12771
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012772 /*
12773 * This flag attribute is set if the node being added is an
12774 * MLD STA node.
12775 */
12776 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
12777
Sunil Ravic0f5d412024-09-11 22:12:49 +000012778 /*
12779 * This is u8 attribute used to identify a specific link affiliated
12780 * to an AP MLD.
12781 */
12782 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_LINK_ID = 4,
12783
Hai Shalomc3565922019-10-28 11:58:20 -070012784 /* keep last */
12785 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12786 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12787 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12788};
12789
12790/**
12791 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12792 * This enum defines the valid set of values of BT coex chain mode.
12793 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12794 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12795 *
Sunil Ravi89eba102022-09-13 21:04:37 -070012796 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12797 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12798 * separated, hybrid mode.
12799 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12800 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070012801 */
12802enum qca_btc_chain_mode {
12803 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070012804 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12805 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070012806};
12807
Sunil Ravi89eba102022-09-13 21:04:37 -070012808/* deprecated legacy name */
12809#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12810
Hai Shalomc3565922019-10-28 11:58:20 -070012811/**
12812 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12813 * chain mode.
12814 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12815 *
12816 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12817 * Indicates the BT coex chain mode, are 32-bit values from
12818 * enum qca_btc_chain_mode. This attribute is mandatory.
12819 *
12820 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12821 * If set, vdev should be restarted when BT coex chain mode is updated.
12822 * This attribute is optional.
12823 */
12824enum qca_vendor_attr_btc_chain_mode {
12825 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12826 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12827 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12828
12829 /* Keep last */
12830 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12831 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12832 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12833};
12834
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012835/**
12836 * enum qca_vendor_wlan_sta_flags - Station feature flags
12837 * Bits will be set to 1 if the corresponding features are enabled.
12838 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12839 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12840 for the station
12841 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12842 for the station
12843 */
12844enum qca_vendor_wlan_sta_flags {
12845 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12846 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12847 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12848};
12849
12850/**
12851 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12852 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12853 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12854 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12855 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12856 */
12857enum qca_vendor_wlan_sta_guard_interval {
12858 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12859 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12860 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12861 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12862};
12863
12864/**
12865 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12866 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12867 *
12868 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070012869 * Required attribute in request for AP mode only, 6-byte MAC address,
12870 * corresponding to the station's MAC address for which information is
12871 * requested. For STA mode this is not required as the info always correspond
12872 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012873 *
12874 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12875 * Optionally used in response, u32 attribute, contains a bitmap of different
12876 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12877 *
12878 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12879 * Optionally used in response, u32 attribute, possible values are defined in
12880 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12881 * Guard interval used by the station.
12882 *
12883 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12884 * Optionally used in response, u32 attribute, used in AP mode only.
12885 * Value indicates the number of data frames received from station with retry
12886 * bit set to 1 in FC.
12887 *
12888 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12889 * Optionally used in response, u32 attribute, used in AP mode only.
12890 * Counter for number of data frames with broadcast or multicast address in
12891 * the destination address received from the station.
12892 *
12893 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12894 * Optionally used in response, u32 attribute, used in both STA and AP modes.
12895 * Value indicates the number of data frames successfully transmitted only
12896 * after retrying the packets and for which the TX status has been updated
12897 * back to host from target.
12898 *
12899 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012900 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012901 * Value indicates the number of data frames not transmitted successfully even
12902 * after retrying the packets for the number of times equal to the total number
12903 * of retries allowed for that packet and for which the TX status has been
12904 * updated back to host from target.
12905 *
12906 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12907 * Optionally used in response, u32 attribute, used in AP mode only.
12908 * Counter in the target for the number of data frames successfully transmitted
12909 * to the station.
12910 *
12911 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12912 * Optionally used in response, u32 attribute, used in AP mode only.
12913 * Value indicates the number of data frames successfully transmitted only
12914 * after retrying the packets.
12915 *
12916 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012917 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012918 * Value indicates the number of data frames not transmitted successfully even
12919 * after retrying the packets for the number of times equal to the total number
12920 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070012921 *
12922 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12923 * the STA mode only. Represent the number of probe requests sent by the STA
12924 * while attempting to roam on missing certain number of beacons from the
12925 * connected AP. If queried in the disconnected state, this represents the
12926 * count for the last connected state.
12927 *
12928 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12929 * the STA mode. Represent the number of probe responses received by the station
12930 * while attempting to roam on missing certain number of beacons from the
12931 * connected AP. When queried in the disconnected state, this represents the
12932 * count when in last connected state.
12933 *
12934 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12935 * STA mode only. Represents the total number of frames sent out by STA
12936 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12937 * only for the connect session. Represents the count of last connected session,
12938 * when queried in the disconnected state.
12939 *
12940 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12941 * Total number of RTS sent out by the STA. This data is maintained per connect
12942 * session. Represents the count of last connected session, when queried in the
12943 * disconnected state.
12944 *
12945 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12946 * STA mode.Represent the number of RTS transmission failure that reach retry
12947 * limit. This data is maintained per connect session. Represents the count of
12948 * last connected session, when queried in the disconnected state.
12949 *
12950 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12951 * the STA mode. Represent the total number of non aggregated frames transmitted
12952 * by the STA. This data is maintained per connect session. Represents the count
12953 * of last connected session, when queried in the disconnected state.
12954 *
12955 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12956 * STA mode. Represent the total number of aggregated frames transmitted by the
12957 * STA. This data is maintained per connect session. Represents the count of
12958 * last connected session, when queried in the disconnected state.
12959 *
12960 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12961 * the STA mode. Represents the number of received frames with a good PLCP. This
12962 * data is maintained per connect session. Represents the count of last
12963 * connected session, when queried in the disconnected state.
12964 *
12965 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12966 * used in the STA mode. Represents the number of occasions that no valid
12967 * delimiter is detected by A-MPDU parser. This data is maintained per connect
12968 * session. Represents the count of last connected session, when queried in the
12969 * disconnected state.
12970 *
12971 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12972 * STA mode. Represents the number of frames for which CRC check failed in the
12973 * MAC. This data is maintained per connect session. Represents the count of
12974 * last connected session, when queried in the disconnected state.
12975 *
12976 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12977 * STA mode. Represents the number of unicast ACKs received with good FCS. This
12978 * data is maintained per connect session. Represents the count of last
12979 * connected session, when queried in the disconnected state.
12980 *
12981 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12982 * mode. Represents the number of received Block Acks. This data is maintained
12983 * per connect session. Represents the count of last connected session, when
12984 * queried in the disconnected state.
12985 *
12986 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12987 * mode. Represents the number of beacons received from the connected BSS. This
12988 * data is maintained per connect session. Represents the count of last
12989 * connected session, when queried in the disconnected state.
12990 *
12991 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12992 * STA mode. Represents the number of beacons received by the other BSS when in
12993 * connected state (through the probes done by the STA). This data is maintained
12994 * per connect session. Represents the count of last connected session, when
12995 * queried in the disconnected state.
12996 *
12997 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12998 * the STA mode. Represents the number of received DATA frames with good FCS and
12999 * matching Receiver Address when in connected state. This data is maintained
13000 * per connect session. Represents the count of last connected session, when
13001 * queried in the disconnected state.
13002 *
13003 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
13004 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
13005 * when in the connected state. This data is maintained per connect session.
13006 * Represents the count of last connected session, when queried in the
13007 * disconnected state.
13008 *
13009 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
13010 * STA mode. This represents the target power in dBm for the transmissions done
13011 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
13012 * connect session. Represents the count of last connected session, when
13013 * queried in the disconnected state.
13014 *
13015 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
13016 * STA mode. This represents the Target power in dBm for transmissions done to
13017 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
13018 * session. Represents the count of last connected session, when queried in the
13019 * disconnected state.
13020 *
13021 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
13022 * STA mode. This represents the Target power in dBm for transmissions done to
13023 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
13024 * Represents the count of last connected session, when queried in the
13025 * disconnected state.
13026 *
13027 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
13028 * STA mode. This represents the Target power in dBm for transmissions done to
13029 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
13030 * session. Represents the count of last connected session, when queried in
13031 * the disconnected state.
13032 *
13033 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013034 * STA mode. This represents the Target power in dBm for transmissions done
Hai Shalomfdcde762020-04-02 11:19:20 -070013035 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
13036 * Represents the count of last connected session, when queried in the
13037 * disconnected state.
13038 *
13039 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
13040 * in the STA mode. This represents the Nested attribute representing the
13041 * overflow counts of each receive buffer allocated to the hardware during the
13042 * STA's connection. The number of hw buffers might vary for each WLAN
13043 * solution and hence this attribute represents the nested array of all such
13044 * HW buffer count. This data is maintained per connect session. Represents
13045 * the count of last connected session, when queried in the disconnected state.
13046 *
13047 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
13048 * allowed as per the regulatory requirements for the current or last connected
13049 * session. Used in the STA mode.
13050 *
13051 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
13052 * (dBm) used by the station in its latest unicast frame while communicating
13053 * to the AP in the connected state. When queried in the disconnected state,
13054 * this represents the TX power used by the STA with last AP communication
13055 * when in connected state.
13056 *
13057 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
13058 * level used to adjust the RX sensitivity. Represents the current ANI level
13059 * when queried in the connected state. When queried in the disconnected
13060 * state, this corresponds to the latest ANI level at the instance of
13061 * disconnection.
13062 *
13063 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
13064 * the raw information elements from Beacon frames. Represents the Beacon frames
13065 * of the current BSS in the connected state. When queried in the disconnected
13066 * state, these IEs correspond to the last connected BSSID.
13067 *
13068 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
13069 * containing the raw information elements from Probe Response frames.
13070 * Represents the Probe Response frames of the current BSS in the connected
13071 * state. When queried in the disconnected state, these IEs correspond to the
13072 * last connected BSSID.
13073 *
13074 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
13075 * disconnect reason for the last disconnection if the disconnection is
13076 * triggered from the host driver. The values are referred from
13077 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070013078 *
13079 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
13080 * only. This represents the number of group addressed robust management frames
13081 * received from this station with an invalid MIC or a missing MME when PMF is
13082 * enabled.
13083 *
13084 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
13085 * only. This represents the number of group addressed robust management frames
13086 * received from this station with the packet number less than or equal to the
13087 * last received packet number when PMF is enabled.
13088 *
13089 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
13090 * mode only. This represents the number of Beacon frames received from this
13091 * station with an invalid MIC or a missing MME when beacon protection is
13092 * enabled.
13093 *
13094 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
13095 * only. This represents number of Beacon frames received from this station with
13096 * the packet number less than or equal to the last received packet number when
13097 * beacon protection is enabled.
13098 *
13099 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
13100 * STA mode only. The driver uses this attribute to populate the connection
13101 * failure reason codes and the values are defined in
13102 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
13103 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
13104 * a connection failure indication from the driver. The driver shall not
13105 * include this attribute in response to the
13106 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
13107 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080013108 *
13109 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
13110 * used by the station in its last TX frame while communicating to the AP in the
13111 * connected state. When queried in the disconnected state, this represents the
13112 * rate used by the STA in the last TX frame to the AP when it was connected.
13113 * This attribute is used for STA mode only.
13114 *
13115 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
13116 * This represents the rate index used by the STA for the last TX frame to the
13117 * AP. When queried in the disconnected state, this gives the last RIX used by
13118 * the STA in the last TX frame to the AP when it was connected.
13119 *
13120 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
13121 * mode only. This represents the number of times the STA TSF goes out of sync
13122 * from the AP after the connection. If queried in the disconnected state, this
13123 * gives the count of TSF out of sync for the last connection.
13124 *
13125 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
13126 * mode only. This represents the roam trigger reason for the last roaming
13127 * attempted by the firmware. This can be queried either in connected state or
13128 * disconnected state. Each bit of this attribute represents the different
13129 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
13130 *
13131 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
13132 * only. This represents the roam fail reason for the last failed roaming
13133 * attempt by the firmware. Different roam failure reason codes are specified
13134 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
13135 * connected state or disconnected state.
13136 *
13137 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
13138 * STA mode only. This represents the roam invoke fail reason for the last
13139 * failed roam invoke. Different roam invoke failure reason codes
13140 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
13141 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013142 *
13143 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
13144 * This represents the average congestion duration of uplink frames in MAC
13145 * queue in unit of ms. This can be queried either in connected state or
13146 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070013147 *
13148 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
13149 * values, used in AP mode. This represents the MPDU packet count per MCS
13150 * rate value of TX packets. Every index of this nested attribute corresponds
13151 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
13152 * queried in connected state.
13153 *
13154 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
13155 * values, used in AP mode. This represents the MPDU packet count per MCS
13156 * rate value of RX packets. Every index of this nested attribute corresponds
13157 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
13158 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070013159 *
13160 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
13161 * 64-bit alignment.
Sunil Ravi7f769292024-07-23 22:21:32 +000013162 *
13163 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode
13164 * only. This represents the average of the delta between successive uplink
13165 * frames congestion duration in MAC queue in unit of ms. This can be queried
13166 * either in connected state or disconnected state.
13167 *
13168 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes,
13169 * used in STA mode. This represents the number of MSDU packets
13170 * (unicast/multicast/broadcast) transmitted/received with each NSS value. See
13171 * enum qca_wlan_vendor_attr_nss_pkt.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080013172 */
13173enum qca_wlan_vendor_attr_get_sta_info {
13174 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
13175 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
13176 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
13177 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
13178 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
13179 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
13180 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
13181 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
13182 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
13183 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
13184 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070013185 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
13186 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
13187 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
13188 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
13189 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
13190 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
13191 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
13192 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
13193 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
13194 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
13195 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
13196 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
13197 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
13198 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
13199 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
13200 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
13201 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
13202 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
13203 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
13204 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
13205 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
13206 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
13207 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
13208 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
13209 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
13210 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
13211 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
13212 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070013213 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
13214 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
13215 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
13216 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
13217 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080013218 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
13219 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
13220 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
13221 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
13222 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
13223 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013224 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070013225 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
13226 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070013227 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Sunil Ravi7f769292024-07-23 22:21:32 +000013228 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54,
13229 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080013230
13231 /* keep last */
13232 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
13233 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
13234 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
13235};
13236
Hai Shalomfdcde762020-04-02 11:19:20 -070013237/**
13238 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
13239 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
13240 *
13241 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
13242 * Used in STA mode. This attribute represents the list of channel center
13243 * frequencies in MHz (u32) the station has learnt during the last connection
13244 * or roaming attempt. This information shall not signify the channels for
13245 * an explicit scan request from the user space. Host drivers can update this
13246 * information to the user space in both connected and disconnected state.
13247 * In the disconnected state this information shall signify the channels
13248 * scanned in the last connection/roam attempt that lead to the disconnection.
13249 */
13250enum qca_wlan_vendor_attr_update_sta_info {
13251 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
13252 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
13253
13254 /* keep last */
13255 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
13256 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
13257 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
13258};
13259
13260/**
13261 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
13262 * Used when the driver triggers the STA to disconnect from the AP.
13263 *
13264 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
13265 * disconnection with the AP due to unspecified reasons.
13266 *
13267 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
13268 * disconnection with the AP due to a roaming failure. This roaming is triggered
13269 * internally (host driver/firmware).
13270 *
13271 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
13272 * the AP when the user/external triggered roaming fails.
13273 *
13274 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
13275 * by the host driver whenever gateway reachability failure is detected and the
13276 * driver disconnects with AP.
13277 *
13278 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
13279 * the AP on a channel switch announcement from it with an unsupported channel.
13280 *
13281 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
13282 * with indoor channels disabled and if the STA is connected on one of these
13283 * disabled channels, the host driver disconnected the STA with this reason
13284 * code.
13285 *
13286 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
13287 * explicit request from the user to disable the current operating channel.
13288 *
13289 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
13290 * the internal host driver/firmware recovery.
13291 *
13292 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
13293 * a timeout for the key installations from the user space.
13294 *
13295 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
13296 * STA on a band change request from the user space to a different band from the
13297 * current operation channel/band.
13298 *
13299 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
13300 * interface down trigger from the user space.
13301 *
13302 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
13303 * STA on getting continuous transmission failures for multiple Data frames.
13304 *
13305 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
13306 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
13307 * represents inactivity from AP on such transmissions.
13308
13309 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
13310 * disconnection when SA Query times out (AP does not respond to SA Query).
13311 *
13312 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
13313 * STA on missing the beacons continuously from the AP.
13314 *
13315 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
13316 * able to move to the channel mentioned by the AP in CSA.
13317 *
13318 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
13319 */
13320enum qca_disconnect_reason_codes {
13321 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
13322 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
13323 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
13324 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
13325 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
13326 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
13327 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
13328 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
13329 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
13330 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
13331 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
13332 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
13333 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
13334 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
13335 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
13336 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
13337 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
13338};
13339
13340/**
13341 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
13342 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
13343 *
13344 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
13345 * This attribute represents the driver specific reason codes (local
13346 * driver/firmware initiated reasons for disconnection) defined
13347 * in enum qca_disconnect_reason_codes.
13348 */
13349enum qca_wlan_vendor_attr_driver_disconnect_reason {
13350 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
13351 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
13352
13353 /* keep last */
13354 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
13355 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
13356 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
13357};
13358
Hai Shalom899fcc72020-10-19 14:38:18 -070013359/**
13360 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
13361 *
13362 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
13363 */
13364enum qca_wlan_tspec_operation {
13365 QCA_WLAN_TSPEC_ADD = 0,
13366 QCA_WLAN_TSPEC_DEL = 1,
13367 QCA_WLAN_TSPEC_GET = 2,
13368};
13369
13370/**
13371 * enum qca_wlan_tspec_direction - Direction in TSPEC
13372 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
13373 *
13374 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
13375 */
13376enum qca_wlan_tspec_direction {
13377 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
13378 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
13379 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
13380 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
13381};
13382
13383/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013384 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
Hai Shalom899fcc72020-10-19 14:38:18 -070013385 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
13386 *
13387 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
13388 */
13389enum qca_wlan_tspec_ack_policy {
13390 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
13391 QCA_WLAN_TSPEC_NO_ACK = 1,
13392 /* Reserved */
13393 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
13394};
13395
13396/**
13397 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
13398 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
13399 *
13400 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
13401 * u8 attribute. Specify the TSPEC operation of this request. Possible values
13402 * are defined in enum qca_wlan_tspec_operation.
13403 * Mandatory attribute for all kinds of config TSPEC requests.
13404 *
13405 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
13406 * u8 attribute. TS ID. Possible values are 0-7.
13407 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
13408 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
13409 *
13410 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
13411 * u8 attribute. Direction of data carried by the TS. Possible values are
13412 * defined in enum qca_wlan_tspec_direction.
13413 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13414 *
13415 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
13416 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
13417 * with the TS. set - enabled, not set - disabled.
13418 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13419 *
13420 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
13421 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
13422 * belonging to this TS. Possible values are 0-7.
13423 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13424 *
13425 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
13426 * u8 attribute. Indicate whether MAC acknowledgements are required for
13427 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
13428 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
13429 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13430 *
13431 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
13432 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
13433 * belonging to this TS.
13434 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13435 *
13436 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
13437 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
13438 * belonging to this TS.
13439 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13440 *
13441 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
13442 * u32 attribute. Specify the minimum interval in microseconds between the
13443 * start of two successive SPs.
13444 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13445 *
13446 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
13447 * u32 attribute. Specify the maximum interval in microseconds between the
13448 * start of two successive SPs.
13449 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13450 *
13451 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
13452 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13453 * without arrival or transfer of an MPDU belonging to the TS before this TS
13454 * is deleted by the MAC entity at the HC.
13455 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13456 *
13457 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
13458 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13459 * without arrival or transfer of an MSDU belonging to the TS before the
13460 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
13461 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
13462 * interval is always less than or equal to the inactivity interval.
13463 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13464 *
13465 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
13466 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
13467 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13468 * bounds of this TSPEC.
13469 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13470 *
13471 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
13472 * u32 attribute. Indicate the average data rate in bps specified at the MAC
13473 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13474 * bounds of this TSPEC.
13475 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13476 *
13477 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
13478 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
13479 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
13480 * the bounds of this TSPEC.
13481 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13482 *
13483 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
13484 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
13485 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
13486 * value of 0 indicates that there are no bursts.
13487 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13488 *
13489 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
13490 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
13491 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
13492 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13493 *
13494 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
13495 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
13496 * and above the stated application rates required to transport an MSDU/A-MSDU
13497 * belonging to the TS in this TSPEC.
13498 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13499 */
13500enum qca_wlan_vendor_attr_config_tspec {
13501 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
13502 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
13503 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
13504 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
13505 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
13506 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
13507 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
13508 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
13509 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
13510 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
13511 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
13512 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
13513 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
13514 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
13515 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
13516 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
13517 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
13518 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
13519 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
13520
13521 /* keep last */
13522 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
13523 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
13524 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
13525};
13526
13527/**
13528 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
13529 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
13530 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
13531 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
13532 * frame
13533 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
13534 * Request frame.
13535 */
13536enum qca_wlan_vendor_oci_override_frame_type {
13537 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
13538 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
13539 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
13540 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
13541};
13542
13543/**
13544 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
13545 * OCI override request. These attributes are used inside nested attribute
13546 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
13547 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
13548 *
13549 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
13550 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
13551 * attribute to specify the frame type in which the OCI is to be overridden.
13552 *
13553 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
13554 * OCI frequency (in MHz) to override in the specified frame type.
13555 */
13556enum qca_wlan_vendor_attr_oci_override {
13557 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
13558 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
13559 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
13560
13561 /* keep last */
13562 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
13563 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
13564 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
13565};
13566
13567/**
13568 * enum qca_wlan_medium_assess_type - Type of medium assess request
13569 *
13570 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
13571 */
13572enum qca_wlan_medium_assess_type {
13573 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
13574 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
13575};
13576
13577/**
13578 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
13579 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
13580 *
13581 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
13582 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
13583 * Specify the type of medium assess request and indicate its type in response.
13584 * Possible values are defined in enum qca_wlan_medium_assess_type.
13585 *
13586 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
13587 * u32 attribute. Mandatory in CCA request.
13588 * Specify the assessment period in terms of seconds. Assessment result will be
13589 * sent as the response to the CCA request after the assessment period.
13590 *
13591 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
13592 * u32 attribute. Mandatory in response to CCA request.
13593 * Total timer tick count of the assessment cycle.
13594 *
13595 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
13596 * u32 attribute. Mandatory in response to CCA request.
13597 * Timer tick count of idle time in the assessment cycle.
13598 *
13599 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
13600 * u32 attribute. Mandatory in response to CCA request.
13601 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
13602 *
13603 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
13604 * u32 attribute. Mandatory in response to CCA request.
13605 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
13606 *
13607 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
13608 * s32 attribute. Mandatory in response to CCA request.
13609 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
13610 *
13611 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
13612 * s32 attribute. Mandatory in response to CCA request.
13613 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
13614 *
13615 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
13616 * u8 attribute. Mandatory in congestion report request.
13617 * 1-enable 0-disable.
13618 *
13619 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
13620 * u8 attribute. Mandatory in congestion report enable request and will be
13621 * ignored if present in congestion report disable request. Possible values are
13622 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
13623 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
13624 * congestion percentage reaches the configured threshold.
13625 *
13626 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
13627 * u8 attribute. Optional in congestion report enable request and will be
13628 * ignored if present in congestion report disable request.
13629 * Specify the interval of congestion report event in terms of seconds. Possible
13630 * values are 1-255. Default value 1 will be used if this attribute is omitted
13631 * or using invalid values.
13632 *
13633 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
13634 * u8 attribute. Mandatory in congestion report event.
13635 * Indicate the actual congestion percentage. Possible values are 0-100.
13636 */
13637enum qca_wlan_vendor_attr_medium_assess {
13638 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
13639 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
13640
13641 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
13642 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
13643 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
13644 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
13645 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
13646 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
13647 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
13648
13649 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
13650 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
13651 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
13652 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
13653
13654 /* keep last */
13655 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
13656 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
13657 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
13658};
13659
13660/**
13661 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
13662 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
13663 *
13664 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
13665 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
13666 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
13667 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013668 *
13669 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
13670 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
13671 *
13672 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
13673 * u8 attribute, required. Indicates group id of Tx VDEV.
13674 *
13675 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
13676 * Nested attribute. This attribute shall be used by the driver to send
13677 * group information. The attributes defined in enum
13678 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
13679 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070013680 */
13681enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
13682 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
13683 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013684 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
13685 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
13686 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070013687
13688 /* keep last */
13689 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
13690 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
13691 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
13692};
13693
13694/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013695 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
13696 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
13697 *
13698 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
13699 * u32 attribute, required. Contains interface index.
13700 *
13701 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
13702 * u8 attribute, required. 0 - means vdev is in down state.
13703 * 1 - means vdev is in up state.
13704 */
13705enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
13706 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
13707 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
13708 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
13709
13710 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
13711 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
13712 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
13713};
13714
13715/**
13716 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
13717 *
13718 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
13719 * STA interface has to be given while selecting the connection policies
13720 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
13721 * An interface is set as primary through the attribute
13722 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
13723 * applicable if the primary interface has not been set earlier.
13724 *
13725 * The intention is not to downgrade the primary STA performance, such as:
13726 * - Do not reduce the number of TX/RX chains of primary connection.
13727 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
13728 * chains.
13729 * - If using MCC, should set the MCC duty cycle of the primary connection to
13730 * be higher than the secondary connection.
13731 *
13732 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
13733 * subsequent STA connection shall be chosen to balance with the existing
13734 * concurrent STA's performance.
13735 * Such as
13736 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
13737 * capability.
13738 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
13739 * to the secondary.
13740 * - Prefer BSSID candidates which will help provide the best "overall"
13741 * performance for all the STA connections.
13742 */
13743enum qca_wlan_concurrent_sta_policy_config {
13744 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
13745 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
13746};
13747
13748/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013749 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080013750 *
Sunil8cd6f4d2022-06-28 18:40:46 +000013751 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
13752 * interface.
13753 *
13754 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
13755 * to meet gaming audio latency requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013756 * This policy is used only when the driver advertises support for
13757 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +000013758 *
13759 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
13760 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013761 * This policy is used only when the driver advertises support for
13762 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013763 *
13764 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
13765 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000013766 */
13767enum qca_wlan_concurrent_ap_policy_config {
13768 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
13769 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
13770 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013771 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000013772};
13773
13774/**
13775 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
13776 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
13777 *
13778 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080013779 * u8 attribute. Configures the concurrent STA policy configuration.
13780 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000013781
13782 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
13783 * u8 attribute. Configures the concurrent AP policy configuration.
13784 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013785 */
Sunil8cd6f4d2022-06-28 18:40:46 +000013786enum qca_wlan_vendor_attr_concurrent_policy {
13787 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
13788 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
13789 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013790
13791 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000013792 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
13793 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
13794 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013795
13796};
13797
Sunil8cd6f4d2022-06-28 18:40:46 +000013798/* Compatibility defines for previously used enum
13799 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
13800 * in any new implementation.
13801 */
13802#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
13803 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
13804#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
13805 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
13806#define qca_wlan_vendor_attr_concurrent_sta_policy \
13807 qca_wlan_vendor_attr_concurrent_policy
13808
Hai Shaloma20dcd72022-02-04 13:43:00 -080013809/**
Hai Shalom899fcc72020-10-19 14:38:18 -070013810 * enum qca_sta_connect_fail_reason_codes - Defines values carried
13811 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
13812 * attribute.
13813 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
13814 * for unicast Probe Request frame.
13815 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
13816 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
13817 * auth request.
13818 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
13819 * received from AP.
13820 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
13821 * Association Request frame.
13822 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
13823 * Association Request frame.
13824 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
13825 * frame is not received from AP.
13826 */
13827enum qca_sta_connect_fail_reason_codes {
13828 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
13829 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
13830 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
13831 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
13832 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
13833 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
13834 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
13835};
13836
Hai Shaloma20dcd72022-02-04 13:43:00 -080013837/**
13838 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
13839 * filters defined in this enum are used in attribute
13840 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
13841 *
13842 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
13843 * shall filter the channels which are not usable because of coexistence with
13844 * cellular radio.
13845 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
13846 * shall filter the channels which are not usable because of existing active
13847 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13848 *
13849 */
13850enum qca_wlan_vendor_usable_channels_filter {
13851 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13852 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13853};
13854
13855/**
13856 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13857 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13858 *
13859 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13860 * u32 attribute, required. Indicates the center frequency of the primary
13861 * channel in MHz.
13862 *
13863 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13864 * u32 attribute. Indicates the center frequency of the primary segment of the
13865 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13866 * 160 MHz, and 320 MHz channels.
13867 *
13868 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13869 * u32 attribute. Indicates the center frequency of the secondary segment of
13870 * 80+80 channel in MHz. This attribute is required only when
13871 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13872 *
13873 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13874 * u32 attribute, required. Indicates the bandwidth of the channel, possible
13875 * values are defined in enum nl80211_chan_width.
13876 *
13877 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13878 * u32 attribute, required. Indicates all the interface types for which this
13879 * channel is usable. This attribute encapsulates bitmasks of interface types
13880 * defined in enum nl80211_iftype.
13881 *
13882 */
13883enum qca_wlan_vendor_attr_chan_info {
13884 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13885 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13886 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13887 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13888 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13889 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13890
13891 /* keep last */
13892 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13893 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13894 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13895};
13896
13897/**
13898 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13899 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13900 *
13901 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13902 * u32 attribute. Indicates the bands from which the channels should be reported
13903 * in response. This attribute encapsulates bit masks of bands defined in enum
13904 * nl80211_band. Optional attribute, if not present in the request the driver
13905 * shall return channels from all supported bands.
13906 *
13907 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13908 * u32 attribute. Indicates all the interface types for which the usable
13909 * channels information is requested. This attribute encapsulates bitmasks of
13910 * interface types defined in enum nl80211_iftype. Optional attribute, if not
13911 * present in the request the driver shall send information of all supported
13912 * interface modes.
13913 *
13914 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13915 * u32 attribute. This attribute carries information of all filters that shall
13916 * be applied while populating usable channels information by the driver. This
13917 * attribute carries bit masks of different filters defined in enum
13918 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13919 * in the request the driver shall send information of channels without applying
13920 * any of the filters that can be configured through this attribute.
13921 *
13922 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13923 * Nested attribute. This attribute shall be used by the driver to send
13924 * usability information of each channel. The attributes defined in enum
13925 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13926 */
13927enum qca_wlan_vendor_attr_usable_channels {
13928 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13929 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13930 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13931 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13932 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13933
13934 /* keep last */
13935 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13936 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13937 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13938};
13939
13940/**
13941 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13942 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13943 *
13944 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13945 * the list of radar history entries.
13946 * Each entry contains freq, timestamp, and radar signal detect flag.
13947 * The driver shall add an entry when CAC has finished, or radar signal
13948 * has been detected post AP beaconing. The driver shall maintain at least
13949 * 8 entries in order to save CAC result for a 160 MHz channel.
13950 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13951 * Channel frequency in MHz.
13952 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13953 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13954 * or radar detection.
13955 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13956 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013957 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
13958 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013959 */
13960enum qca_wlan_vendor_attr_radar_history {
13961 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13962
13963 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13964 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13965 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13966 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070013967 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013968
13969 /* keep last */
13970 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13971 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13972 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13973};
13974
13975/**
13976 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13977 *
13978 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13979 * target exited MCC state and cleared the quota information. In the
13980 * command it clears MCC quota setting and restores adaptive scheduling.
13981 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13982 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070013983 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013984 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13985 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070013986 * This quota type is only present in event.
13987 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13988 * by the target for low latency.
13989 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013990 */
13991enum qca_wlan_vendor_mcc_quota_type {
13992 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13993 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13994 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070013995 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013996};
13997
13998/**
13999 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
14000 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
14001 * quota information or as a command to set the required MCC quota for an
14002 * interface.
14003 *
14004 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
14005 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
14006 * In a command this specifies the MCC quota type to be set for the interface.
14007 * In an event this provides the current quota type in force.
14008 * This is required in a command and an event.
14009 *
14010 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
14011 * the list of channel quota entries.
14012 * In an event each entry contains the frequency and respective time quota for
14013 * all the MCC interfaces.
14014 * In a command it specifies the interface index and respective time quota.
14015 * In a command only one entry (ifindex, quota pair) may be specified.
14016 *
14017 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
14018 * Channel frequency in MHz. This is present only in an event.
14019 *
14020 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
14021 * Channel time quota expressed as percentage.
14022 * This is present in an event and a command.
14023 * In an command, the user shall specify the quota to be allocated for the
14024 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
14025 * In an event this provides the existing quota for the channel.
14026 *
14027 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
14028 * Specifies the interface index (netdev) for which the corresponding
14029 * configurations are applied. This is required in a command only. Only one
14030 * interface index may be specified. If not specified, the configuration is
14031 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070014032 *
14033 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
14034 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
14035 * low latency mode. The firmware will do optimization for low
14036 * latency in Multi-Channel concurrency state if enabled. And all existing
14037 * user quota setting will be overwritten by the target.
14038 * 0 - disable(default), 1 - enable.
14039 * It is only present in a command with quota type of
14040 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014041 */
14042enum qca_wlan_vendor_attr_mcc_quota {
14043 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
14044 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
14045 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
14046 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
14047 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
14048 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070014049 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014050
14051 /* keep last */
14052 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
14053 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
14054 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
14055};
14056
14057/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000014058 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
14059 * are used by the attribute
14060 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
14061 *
14062 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
14063 * invoke roam.
14064 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
14065 * detection failed when the roam trigger.
14066 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
14067 */
14068
14069enum qca_wlan_roam_stats_invoke_reason {
14070 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
14071 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
14072 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
14073};
14074
14075/**
14076 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
14077 * values are used by the attribute
14078 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
14079 *
14080 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
14081 * roam by kickout.
14082 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
14083 * trigger by kickout.
14084 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
14085 * roam trigger by kickout.
14086 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
14087 * roam trigger by kickout.
14088 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
14089 * disappeared, and all TX is failing when roam trigger by kickout.
14090 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
14091 * timeout when roam trigger by kickout.
14092 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
14093 * peer has roamed to a repeater.
14094 */
14095enum qca_wlan_roam_stats_tx_failures_reason {
14096 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
14097 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
14098 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
14099 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
14100 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
14101 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
14102 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
14103};
14104
14105/**
14106 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
14107 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
14108 *
14109 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
14110 * detailed reason for roam scan being aborted.
14111 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
14112 * started due to high data RSSI during LOW-RSSI roaming.
14113 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
14114 * started due to good link speed during LOW-RSSI roaming.
14115 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
14116 * due to high data RSSI during background roaming.
14117 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
14118 * started due to high beacon RSSI during background roaming
14119 */
14120enum qca_wlan_roam_stats_abort_reason {
14121 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
14122 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
14123 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
14124 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
14125 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
14126};
14127
14128/**
Sunil Ravi036cec52023-03-29 11:35:17 -070014129 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
14130 * These values are used by the attribute
14131 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
14132 *
14133 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
14134 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
14135 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
14136 * This is generally used in BTM events to indicate BTM frame exchange logs.
14137 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
14138 * from 2.4 GHz to 5 GHz or 6 GHz
14139 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
14140 * 5 GHz to 6 GHz
14141 */
14142enum qca_wlan_roam_stats_scan_type {
14143 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
14144 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
14145 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
14146 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
14147 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
14148};
14149
14150/**
14151 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
14152 * These values are used by the attribute
14153 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
14154 *
14155 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
14156 * detailed roam scan type.
14157 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
14158 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
14159 */
14160enum qca_wlan_roam_stats_scan_dwell_type {
14161 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
14162 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
14163 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
14164};
14165
14166/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000014167 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
14168 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
14169 */
14170enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
14171 /* 32-bit unsigned value to indicate center frequency of the primary
14172 * channel in MHz for each roam scan channel.
14173 */
14174 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
14175 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070014176 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014177 */
14178 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
14179 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
14180 * for each roam scan channel.
14181 */
14182 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
14183
14184 /* keep last */
14185 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
14186 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
14187 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
14188};
14189
14190/**
14191 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
14192 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
14193 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014194 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
14195 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000014196 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
14197 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
14198 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
14199 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
14200 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
14201 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014202 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
14203 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000014204 */
14205enum qca_wlan_roam_stats_frame_subtype {
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014206 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
14207 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014208 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
14209 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
14210 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
14211 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
14212 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
14213 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014214 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
14215 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014216};
14217
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014218/* Compatibility defines for previously used names.
14219 * These values should not be used in any new implementation.
14220 */
14221#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
14222 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
14223#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
14224 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
14225
Sunil Ravi77d572f2023-01-17 23:58:31 +000014226/**
14227 * enum roam_frame_status - Specifies the valid values the vendor roam frame
14228 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
14229 *
14230 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
14231 * sent or received successfully.
14232 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
14233 * receiving failed.
14234 */
14235enum qca_wlan_roam_stats_frame_status {
14236 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
14237 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
14238};
14239
14240/**
14241 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
14242 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
14243 */
14244enum qca_wlan_vendor_attr_roam_stats_frame_info {
14245 /* 8-bit unsigned value to indicate the frame subtype during
14246 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
14247 */
14248 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
14249 /* 8-bit unsigned value to indicate the frame is successful or failed
14250 * during roaming, one of the values in
14251 * qca_wlan_roam_stats_frame_status.
14252 */
14253 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
14254 /* 64-bit unsigned value to indicate the timestamp for frame of
14255 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
14256 * when sent or received during roaming, timestamp in milliseconds
14257 * from system boot.
14258 */
14259 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070014260 /* Attribute used for padding for 64-bit alignment */
14261 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014262 /* This attribute indicates a 6-byte MAC address representing
14263 * the BSSID of the AP.
14264 * For non-MLO scenario, it indicates the AP BSSID.
14265 * For MLO scenario, it indicates the AP BSSID which may be the primary
14266 * link BSSID or a nonprimary link BSSID.
14267 */
14268 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014269
14270 /* keep last */
14271 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
14272 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
14273 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
14274};
14275
14276/**
14277 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
14278 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
14279 */
14280enum qca_wlan_vendor_attr_roam_stats_info {
14281 /* 64-bit unsigned value to indicate the timestamp when roam was
14282 * triggered by the firmware, timestamp in milliseconds from system
14283 * boot.
14284 */
14285 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
14286 /* 32-bit unsigned value to indicate the roam trigger reason for the
14287 * last roaming attempted by the firmware. This can be queried either
14288 * in a connected state or disconnected state. The values of this
14289 * attribute represent the roam trigger reason codes, which
14290 * are defined in enum qca_roam_reason.
14291 */
14292 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
14293 /* 8-bit unsigned value to indicate percentage of packets for which
14294 * the RX rate is lower than the RX rate threshold in total RX packets,
14295 * used for roaming trigger by per.
14296 */
14297 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
14298 /* 8-bit unsigned value to indicate percentage of packets for which
14299 * the TX rate is lower than TX rate threshold in total TX packets,
14300 * used for roaming trigger by per.
14301 */
14302 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
14303 /* 32-bit unsigned value to indicate final beacon miss count for
14304 * trigger reason of beacon miss.
14305 */
14306 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
14307 /* 32-bit unsigned value to indicate consecutive beacon miss count
14308 * for trigger reason of beacon miss.
14309 */
14310 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
14311 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
14312 * reason of beacon miss, 0 - success, 1 - fail.
14313 * If QOS-NULL TX status is successful, beacon miss final count and
14314 * consecutive beacon miss count will be reset to zero, and roam will
14315 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
14316 * count and consecutive beacon miss count continue to calculate until
14317 * roaming trigger by beacon miss.
14318 */
14319 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070014320 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014321 * for trigger reason of poor RSSI.
14322 */
14323 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070014324 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014325 * for trigger reason of poor RSSI.
14326 */
14327 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
14328 /* 8-bit unsigned value to indicate RX link speed status
14329 * for trigger reason of poor RSSI, 0 - good link speed,
14330 * 1 - bad link speed.
14331 */
14332 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070014333 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014334 * for trigger reason of better RSSI.
14335 */
14336 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070014337 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014338 * for trigger reason of better RSSI.
14339 */
14340 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
14341 /* 32-bit unsigned value to indicate RX throughput in bytes per second
14342 * for trigger reason of congestion.
14343 */
14344 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
14345 /* 32-bit unsigned value to indicate TX throughput in bytes per second
14346 * for trigger reason of congestion.
14347 */
14348 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
14349 /* 8-bit unsigned value to indicate roamable AP count
14350 * for trigger reason of congestion.
14351 */
14352 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
14353 /* 8-bit unsigned value to indicate invoke reason, one of the values
14354 * defined in qca_wlan_roam_stats_invoke_reason.
14355 */
14356 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
14357 /* 8-bit unsigned value to indicate request mode for trigger reason
14358 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
14359 */
14360 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
14361 /* 32-bit unsigned value to indicate disassociate time in milliseconds
14362 * for trigger reason of BTM.
14363 */
14364 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
14365 /* 32-bit unsigned value to indicate preferred candidate list valid
14366 * interval in milliseconds for trigger reason of BTM.
14367 */
14368 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
14369 /* 8-bit unsigned value to indicate the number of preferred
14370 * candidates for trigger reason of BTM.
14371 */
14372 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
14373 /* 8-bit unsigned value to indicate response status for trigger
14374 * reason of BTM, values are defined in IEEE Std 802.11-2020,
14375 * Table 9-428 (BTM status code definitions).
14376 */
14377 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
14378 /* 32-bit unsigned value to indicate BSS termination timeout value
14379 * in milliseconds for trigger reason of BTM.
14380 */
14381 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
14382 /* 32-bit unsigned value to indicate MBO associate retry timeout
14383 * value in milliseconds for trigger reason of BTM.
14384 */
14385 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
14386 /* 8-bit unsigned value to indicate dialog token number
14387 * for trigger reason of BTM.
14388 */
14389 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
14390 /* 8-bit unsigned value to indicate percentage of connected AP
14391 * channel congestion utilization for trigger reason of BSS load.
14392 */
14393 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
14394 /* 8-bit unsigned value to indicate disconnection type
14395 * for trigger reason of disconnection. 1 - Deauthentication,
14396 * 2 - Disassociation.
14397 */
14398 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
14399 /* 16-bit unsigned value to indicate deauthentication or disassociation
14400 * reason for trigger reason of disconnection, values are defined
14401 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
14402 */
14403 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
14404 /* 32-bit unsigned value to indicate milliseconds of roam scan
14405 * periodicity when needing to roam to find a better AP for trigger
14406 * reason of periodic timer.
14407 */
14408 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070014409 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000014410 * trigger reason of background scan.
14411 */
14412 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070014413 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000014414 * of background scan.
14415 */
14416 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070014417 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014418 * for trigger reason of background scan.
14419 */
14420 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
14421 /* 32-bit unsigned value to indicate consecutive TX failure threshold
14422 * for trigger reason of TX failures.
14423 */
14424 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
14425 /* 8-bit unsigned value to indicate TX failure reason for trigger
14426 * reason of TX failures, one of the values defined in
14427 * qca_wlan_roam_stats_tx_failures_reason.
14428 */
14429 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
14430 /* 8-bit unsigned value to indicate detail abort reason. One of the
14431 * values in enum qca_wlan_roam_stats_abort_reason.
14432 */
14433 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070014434 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000014435 * roam scan.
14436 */
14437 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070014438 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000014439 * aborting the roam scan.
14440 */
14441 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
14442 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
14443 * speed status when aborting the roam scan.
14444 * 0 - good link speed, 1 - bad link speed
14445 */
14446 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
14447 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070014448 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014449 */
14450 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
14451 /* 8-bit unsigned value to indicate roaming result, used in STA mode
14452 * only.
14453 * 0-Roaming is successful, 1-Roaming is failed
14454 */
14455 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
14456 /* 8-bit unsigned value to indicate the roam fail reason for the
14457 * last failed roaming attempt by the firmware. Different roam failure
14458 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
14459 * This can be queried either in connected state or disconnected state.
14460 */
14461 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
14462 /* Nested attribute. Indicate roam scan info for each channel, the
14463 * attributes defined in enum
14464 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
14465 * this attribute.
14466 */
14467 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
14468 /* 32-bit unsigned value to indicate total scan time during roam scan
14469 * all channels, time in milliseconds.
14470 */
14471 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
14472 /* Nested attribute. This attribute shall be used by the driver to
14473 * send roam information of each subtype. The attributes defined in
14474 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
14475 * this attribute.
14476 */
14477 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070014478 /* Attribute used for padding for 64-bit alignment */
14479 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014480 /* 6-byte MAC address used by the driver to send roam stats information
14481 * of the original AP BSSID. The original AP is the connected AP before
14482 * roam happens, regardless of the roam resulting in success or failure.
14483 * This attribute is only present when
14484 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14485 * 0 (success) or 1 (failure).
14486 * For non-MLO scenario, it indicates the original connected AP BSSID.
14487 * For MLO scenario, it indicates the original BSSID of the link
14488 * for which the reassociation occurred during the roam.
14489 */
14490 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
14491 /* 6-byte MAC address used by the driver to send roam stats information
14492 * of the roam candidate AP BSSID when roam failed. This is only present
14493 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14494 * 1 (failure). If the firmware updates more than one candidate AP BSSID
14495 * to the driver, the driver only fills the last candidate AP BSSID and
14496 * reports it to user space.
14497 * For non-MLO scenario, it indicates the last candidate AP BSSID.
14498 * For MLO scenario, it indicates the AP BSSID which may be the primary
14499 * link BSSID or a nonprimary link BSSID.
14500 */
14501 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
14502 /* 6-byte MAC address used by the driver to send roam stats information
14503 * of the roamed AP BSSID when roam succeeds. This is only present when
14504 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14505 * 0 (success).
14506 * For non-MLO scenario, it indicates the new AP BSSID to which has
14507 * been successfully roamed.
14508 * For MLO scenario, it indicates the new AP BSSID of the link on
14509 * which the reassociation occurred during the roam.
14510 */
14511 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014512
14513 /* keep last */
14514 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
14515 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
14516 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
14517};
14518
14519/**
14520 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
14521 * report cached roam info from the driver to user space, enum values are used
14522 * for netlink attributes sent with the
14523 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
14524 */
14525enum qca_wlan_vendor_attr_roam_cached_stats {
14526 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
14527 /* Nested attribute, this attribute contains nested array roam info
14528 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
14529 */
14530 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
14531
14532 /* keep last */
14533 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
14534 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
14535 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
14536};
14537
14538/**
Sunil8cd6f4d2022-06-28 18:40:46 +000014539 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
14540 * radio configurations present in each radio combination.
14541 *
14542 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
14543 * the band info in the radio configuration. Uses the enum qca_set_band values.
14544 *
14545 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
14546 * the number of antennas info in the radio configuration.
14547 */
14548enum qca_wlan_vendor_attr_supported_radio_cfg {
14549 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
14550 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
14551 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
14552
14553 /* keep last */
14554 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
14555 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
14556 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
14557};
14558
14559/**
14560 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
14561 * radio combinations supported by the device.
14562 *
14563 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
14564 * provides the radio configurations present in the radio combination.
14565 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
14566 * This attribute provides the values for radio combination matrix.
14567 * For standalone config, the number of config values is one and the config
14568 * carries the band and antenna information for standalone configuration. For
14569 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
14570 * configuration the number of config values is two and the config carries the
14571 * band and antenna information for each simultaneous radio.
14572 */
14573enum qca_wlan_vendor_attr_radio_combination {
14574 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
14575 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
14576
14577 /* keep last */
14578 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
14579 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
14580 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
14581};
14582
14583/**
14584 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
14585 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
14586 *
14587 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
14588 * provides the radio combinations supported by the device.
14589 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
14590 * For example, in the radio combination matrix for a device which has two
14591 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
14592 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
14593 * combinations is 5 and the radio combinations are
14594 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
14595 * {{5 GHz 2X2}}, //Standalone 5 GHz
14596 * {{6 GHz 2X2}}, //Standalone 6 GHz
14597 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
14598 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
14599 * The band and antenna info together as nested data provides one radio config.
14600 * Standalone configuration has one config with band and antenna nested data.
14601 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
14602 * have two nested band and antenna info data.
14603 */
14604enum qca_wlan_vendor_attr_radio_combination_matrix {
14605 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
14606 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
14607
14608 /* keep last */
14609 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
14610 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
14611 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
14612};
14613
14614/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080014615 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
14616 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
14617 *
14618 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
14619 * Enable mDNS offload. This attribute is mandatory to enable
14620 * mDNS offload feature. If this attribute is not present, mDNS offload
14621 * is disabled.
14622 *
14623 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
14624 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
14625 * attribute is mandatory when enabling the feature, and not required when
14626 * disabling the feature.
14627 *
14628 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
14629 * the following attributes:
14630 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
14631 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
14632 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
14633 *
14634 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
14635 * It consists of a hostname and ".local" as the domain name. The character
14636 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
14637 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
14638 * supported per vdev.
14639 * For example: myphone.local
14640 *
14641 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
14642 * u16 attribute. It specifies the total number of resource records present
14643 * in the answer section of the answer payload. This attribute is needed by the
14644 * firmware to populate the mDNS response frame for mDNS queries without having
14645 * to parse the answer payload.
14646 *
14647 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
14648 * attribute sent by the mdnsResponder from userspace. It contains resource
14649 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
14650 * payload is passed down to the firmware and is transmitted in response to
14651 * mDNS queries.
14652 * The maximum supported size of the answer payload is 512 bytes.
14653 */
14654enum qca_wlan_vendor_attr_mdns_offload {
14655 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
14656 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
14657 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
14658 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
14659 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
14660 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
14661 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
14662
14663 /* keep last */
14664 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
14665 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
14666 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
14667};
14668
14669/**
14670 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14671 * Data frame types to be sent over the monitor interface.
14672 */
14673enum qca_wlan_vendor_monitor_data_frame_type {
14674 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14675 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
14676 */
14677 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14678 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14679 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14680 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14681 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14682 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14683 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14684 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14685 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14686 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14687 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14688 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14689 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14690 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14691 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14692 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14693 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14694};
14695
14696/**
14697 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14698 * Management frame types to be sent over the monitor interface.
14699 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
14700 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
14701 * except the Beacon frame.
14702 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14703 * BSSID Beacon frames. Valid only in the connected state.
14704 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14705 * the Beacon frames obtained during the scan (off channel and connected
14706 * channel), when in connected state.
14707 */
14708enum qca_wlan_vendor_monitor_mgmt_frame_type {
14709 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14710 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
14711 */
14712 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
14713 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14714 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14715};
14716
14717/**
14718 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14719 * Control frame types to be sent over the monitor interface.
14720 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
14721 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
14722 */
14723enum qca_wlan_vendor_monitor_ctrl_frame_type {
14724 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14725 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
14726 */
14727 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14728};
14729
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014730/*
14731 * enum qca_wlan_vendor_monitor_operating_type: Attributes used by vendor
14732 * attribute %QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE
14733 *
14734 * @QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_LPC: Local packet capture.
14735 * Capture frames sent and received by the current client interface from the
14736 * BSS.
14737 *
14738 * @QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_OCC: Operating channel capture.
14739 * Capture all frames on the current operating channel of client interface.
14740 */
14741enum qca_wlan_vendor_monitor_operating_type {
14742 QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_LPC = 0,
14743 QCA_WLAN_VENDOR_MONITOR_OPERATING_TYPE_OCC = 1,
14744};
14745
Hai Shaloma20dcd72022-02-04 13:43:00 -080014746/**
14747 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14748 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14749 * monitor mode.
14750 *
14751 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
14752 * Represents the TX Data frame types to be monitored (u32). These Data frames
14753 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14754 *
14755 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
14756 * Represents the RX Data frame types to be monitored (u32). These Data frames
14757 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14758 *
14759 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
14760 * Represents the TX Management frame types to be monitored (u32). These
14761 * Management frames are represented by
14762 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14763 *
14764 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
14765 * Represents the RX Management frame types to be monitored (u32). These
14766 * Management frames are represented by
14767 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14768 *
14769 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
14770 * Represents the TX Control frame types to be monitored (u32). These Control
14771 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14772 *
14773 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
14774 * Represents the RX Control frame types to be monitored (u32). These Control
14775 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14776 *
14777 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
14778 * attribute.
14779 * Represents the interval in milliseconds only for the connected Beacon frames,
14780 * expecting the connected BSS's Beacon frames to be sent on the monitor
14781 * interface at this specific interval.
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014782 *
14783 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE: u32 attribute.
14784 * Represents the monitor operating type (u32). These operating types are
14785 * defined in enum qca_wlan_vendor_monitor_operating_type.
14786 * If this attribute is not included, default operating type LPC ("local
14787 * packet capture") used.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014788 */
14789enum qca_wlan_vendor_attr_set_monitor_mode {
14790 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14791 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14792 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14793 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14794 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14795 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14796 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14797 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000014798 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_OPERATING_TYPE = 8,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014799
14800 /* keep last */
14801 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14802 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14803 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14804};
14805
14806/**
14807 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14808 * Bits will be set to 1 if the corresponding state is enabled.
14809 *
14810 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14811 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14812 */
14813enum qca_wlan_vendor_roam_scan_state {
14814 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14815 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14816};
14817
14818/**
14819 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14820 * Bits will be set to 1 if the corresponding event is notified.
14821 *
14822 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14823 * carries the trigger reason. When set, it is expected that the roam event
14824 * carries the respective reason via the attribute
14825 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14826 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14827 *
14828 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14829 * carries the roam fail reason. When set, it is expected that the roam event
14830 * carries the respective reason via the attribute
14831 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14832 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14833 *
14834 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14835 * event carries the roam invoke fail reason. When set, it is expected that
14836 * the roam event carries the respective reason via the attribute
14837 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14838 *
14839 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14840 * carries the roam scan state. When set, it is expected that the roam event
14841 * carries the respective scan state via the attribute
14842 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14843 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14844 */
14845enum qca_wlan_vendor_roam_event_type {
14846 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14847 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14848 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14849 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14850};
14851
14852/**
14853 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14854 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14855 *
14856 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14857 * representing the BSSID of the AP to which the roam is attempted.
14858 *
14859 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14860 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14861 * attempted.
14862 *
14863 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
14864 * on which the roam is attempted.
14865 *
14866 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14867 * STA mode only. This represents the roam fail reason for the last failed
14868 * roaming attempt by the firmware for the specific BSSID. Different roam
14869 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14870 */
14871enum qca_wlan_vendor_attr_roam_events_candidate_info {
14872 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14873 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14874 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14875 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14876 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14877
14878 /* keep last */
14879 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14880 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14881 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14882};
14883
14884/**
14885 * enum qca_wlan_vendor_attr_roam_events - Used by the
14886 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14887 * roam events to the driver or notify these events from the driver.
14888 *
14889 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14890 * driver/firmware to enable/disable the notification of roam events. It's a
14891 * mandatory attribute and used only in the request from the userspace to the
14892 * host driver. 1-Enable, 0-Disable.
14893 * If the roaming is totally offloaded to the firmware, this request when
14894 * enabled shall mandate the firmware to notify all the relevant roam events
14895 * represented by the below attributes. If the host is in the suspend mode,
14896 * the behavior of the firmware to notify these events is guided by
14897 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14898 * these events in the suspend state, the firmware is expected to wake up the
14899 * host before the respective events are notified. Please note that such a
14900 * request to get the events in the suspend state will have a definite power
14901 * implication.
14902 *
14903 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14904 * that the roam events need to be notified in the suspend state too. By
14905 * default, these roam events are notified in the resume state. With this flag,
14906 * the roam events are notified in both resume and suspend states.
14907 * This attribute is used in the request from the userspace to the host driver.
14908 *
14909 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14910 * Represents the different roam event types, signified by the enum
14911 * qca_wlan_vendor_roam_event_type.
14912 * Each bit of this attribute represents the different roam even types reported
14913 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14914 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14915 *
14916 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14917 * mode only. This represents the roam trigger reason for the last roaming
14918 * attempted by the firmware. Each bit of this attribute represents the
14919 * different roam trigger reason code which are defined in enum
14920 * qca_vendor_roam_triggers.
14921 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14922 *
14923 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14924 * STA mode only. This represents the roam invoke fail reason for the last
14925 * failed roam invoke. Different roam invoke failure reason codes
14926 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14927 *
14928 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14929 * for which the roam is attempted. Each entry is a nested attribute defined
14930 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14931 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14932 *
14933 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14934 * the scan state on which the roam events need to be notified. The values for
14935 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14936 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14937 *
14938 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14939 * u32 values. List of frequencies in MHz considered for a roam scan.
14940 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14941 */
14942enum qca_wlan_vendor_attr_roam_events {
14943 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14944 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14945 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14946 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14947 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14948 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14949 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14950 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14951 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14952
14953 /* keep last */
14954 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14955 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014956 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014957};
14958
14959/**
14960 * enum qca_wlan_ratemask_params_type - Rate mask config type
14961 *
14962 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
14963 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14964 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14965 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014966 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
Hai Shaloma20dcd72022-02-04 13:43:00 -080014967 */
14968enum qca_wlan_ratemask_params_type {
14969 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14970 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14971 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14972 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014973 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014974};
14975
14976/**
14977 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
14978 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14979 * This is used to set the rate mask value to be used in rate selection.
14980 *
14981 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14982 * Array of nested containing attributes
14983 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14984 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14985 *
14986 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14987 * the different PHY types to which the rate mask config is to be applied.
14988 * The values for this attribute are referred from enum
14989 * qca_wlan_vendor_ratemask_params_type.
14990 *
14991 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14992 * A bit value of 1 represents rate is enabled and a value of 0
14993 * represents rate is disabled.
Sunil Ravi99c035e2024-07-12 01:42:03 +000014994 * For EHT targets,
14995 * b0-1 => NSS1, MCS 14-15
14996 * b2-15 => NSS1, MCS 0-13
14997 * b16-29 => NSS2, MCS 0-13
14998 * For HE targets, 14 bits correspond to one NSS setting.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014999 * b0-13 => NSS1, MCS 0-13
15000 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
15001 * For VHT targets, 10 bits correspond to one NSS setting.
15002 * b0-9 => NSS1, MCS 0-9
15003 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
15004 * For HT targets, 8 bits correspond to one NSS setting.
15005 * b0-7 => NSS1, MCS 0-7
15006 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
15007 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
Sunil Ravi99c035e2024-07-12 01:42:03 +000015008 *
15009 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the
15010 * MLO link ID of a link to be configured. Optional attribute.
15011 * No need of this attribute in non-MLO cases. If the attribute is
15012 * not provided, ratemask will be applied for setup link.
Hai Shaloma20dcd72022-02-04 13:43:00 -080015013 */
15014enum qca_wlan_vendor_attr_ratemask_params {
15015 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
15016 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
15017 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
15018 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
Sunil Ravi99c035e2024-07-12 01:42:03 +000015019 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080015020
15021 /* keep last */
15022 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
15023 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
15024 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
15025};
15026
Sunil8cd6f4d2022-06-28 18:40:46 +000015027/**
15028 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
15029 * traffic.
15030 *
15031 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
15032 * Send audio traffic through the host processor.
15033 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
15034 * Send audio traffic using the low power DSP to/from the encoder.
15035 */
15036enum qca_wlan_audio_data_path {
15037 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
15038 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
15039};
15040
15041/**
15042 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
15043 * for) or drop existing PASN security association for the listed the
15044 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
15045 * to userspace.
15046 *
15047 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
15048 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
15049 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
15050 * the driver to userspace to inform that the existing PASN keys of the
15051 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
15052 * not valid anymore.
15053 */
15054enum qca_wlan_vendor_pasn_action {
15055 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
15056 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
15057};
15058
15059/**
15060 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
15061 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
15062 *
15063 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
15064 * event from the driver to userspace and represents the local MAC address
15065 * to be used for PASN handshake. When this attribute is present, userspace
15066 * shall use the source address specified in this attribute by the driver
15067 * for PASN handshake with peer device.
15068 * This attribute is required in a command response from userspace to the
15069 * driver and represents the MAC address that was used in PASN handshake
15070 * with the peer device.
15071 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
15072 * peer device to which PASN handshake is requested in an event from the
15073 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15074 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
15075 * Indicates the MAC address of the peer device for which the keys are to
15076 * be invalidated in an event from the driver to userspace when
15077 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15078 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
15079 * Indicates the MAC address of the peer device for which the status is
15080 * being sent in a status report from userspace to the driver.
15081 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
15082 * in the event from the driver to userspace. When set, userspace is
15083 * required to derive LTF key seed from KDK and set it to the driver.
15084 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
15085 * attribute is used in the command response from userspace to the driver.
15086 * If present, it indicates the successful PASN handshake with the peer. If
15087 * this flag is not present, it indicates that the PASN handshake with the
15088 * peer device failed.
15089 */
15090enum qca_wlan_vendor_attr_pasn_peer {
15091 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
15092 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
15093 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
15094 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
15095 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
15096
15097 /* keep last */
15098 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
15099 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
15100 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
15101};
15102
15103/**
15104 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
15105 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
15106 *
15107 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
15108 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
15109 * from the driver to userspace.
15110 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
15111 * details for each peer and used in both an event and a command response.
15112 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
15113 * defined in enum qca_wlan_vendor_attr_pasn_peer.
Sunil Ravi7f769292024-07-23 22:21:32 +000015114 * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a
15115 * specific link affiliated to an MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000015116 */
15117enum qca_wlan_vendor_attr_pasn {
15118 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
15119 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
15120 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
Sunil Ravi7f769292024-07-23 22:21:32 +000015121 QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000015122
15123 /* keep last */
15124 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
15125 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
15126 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
15127};
15128
15129/**
15130 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
15131 * the ranging security context derived from PASN for each peer. Used in
15132 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
15133 *
15134 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
15135 * context for the peer.
15136 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
15137 * context for the peer.
15138 */
15139enum qca_wlan_vendor_secure_ranging_ctx_action {
15140 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
15141 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
15142};
15143
15144/**
15145 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
15146 * used for deriving PASN keys to the driver. Used in
15147 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
15148 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
15149 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
15150 */
15151enum qca_wlan_vendor_sha_type {
15152 QCA_WLAN_VENDOR_SHA_256,
15153 QCA_WLAN_VENDOR_SHA_384,
15154};
15155
15156/**
15157 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
15158 * to set security context for the PASN peer from userspace to the driver.
15159 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
15160 *
15161 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
15162 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
15163 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
15164 * was used during the PASN handshake.
15165 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
15166 * the peer device for which secure ranging context is being configured.
15167 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
15168 * hash algorithm to be used, possible values are defined in enum
15169 * qca_wlan_vendor_sha_type.
15170 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
15171 * the temporal key generated from the PASN handshake. The length of this
15172 * attribute is dependent on the value of
15173 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
15174 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
15175 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
15176 * (e.g., 0x000FAC04).
15177 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
15178 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
15179 * The length of this attribute is dependent on the value of
15180 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
Sunil Ravi7f769292024-07-23 22:21:32 +000015181 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used
15182 * for secure ranging to identify a specific link affiliated to an AP MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000015183 */
15184enum qca_wlan_vendor_attr_secure_ranging_ctx {
15185 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
15186 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
15187 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
15188 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
15189 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
15190 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
15191 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
15192 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
Sunil Ravi7f769292024-07-23 22:21:32 +000015193 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8,
Sunil8cd6f4d2022-06-28 18:40:46 +000015194
15195 /* keep last */
15196 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
15197 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
15198 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
15199};
15200
Sunil Ravi89eba102022-09-13 21:04:37 -070015201/**
15202 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
15203 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
15204 * nested attribute. The packets that match a filter will be replied with
15205 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
15206 *
15207 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
15208 * u32 attribute. Destination IPv4 address in network byte order, the
15209 * IPv4 packets with different address will be filtered out.
15210 * This attribute is optional.
15211 *
15212 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
15213 * Flag attribute. If it's present, indicates that
15214 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
15215 * address; while if not, indicates that the address is a unicast/multicast
15216 * address.
15217 * This attribute is optional.
15218 *
15219 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
15220 * NLA_BINARY attribute, length is 16 bytes.
15221 * Destination IPv6 address in network byte order, the IPv6 packets
15222 * with different destination address will be filtered out.
15223 * This attribute is optional.
15224 *
15225 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
15226 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
15227 * Packets on both IPv4 and IPv6 will be processed if both are configured.
15228 *
15229 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
15230 * u16 attribute. Destination UDP port, the packets with different destination
15231 * UDP port will be filtered out.
15232 * This attribute is mandatory.
15233 *
15234 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
15235 * u32 attribute. Represents the offset (in UDP payload) of the data
15236 * to be matched.
15237 * This attribute is mandatory.
15238 *
15239 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
15240 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
15241 * Binary data that is compared bit-by-bit against the data (specified
15242 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
15243 * payload, the packets don't match will be filtered out.
15244 * This attribute is mandatory.
15245 */
15246enum qca_wlan_vendor_attr_coap_offload_filter {
15247 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
15248 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
15249 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
15250 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
15251 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
15252 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
15253 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
15254
15255 /* keep last */
15256 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
15257 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
15258 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
15259};
15260
15261/**
15262 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
15263 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
15264 *
15265 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
15266 * u32 attribute. Source address (in network byte order) for replying
15267 * the matching broadcast/multicast IPv4 packets.
15268 * This attribute is optional.
15269 *
15270 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
15271 * NLA_BINARY attribute, length is 16 bytes.
15272 * Source address (in network byte order) for replying the matching
15273 * multicast IPv6 packets.
15274 * This attribute is optional.
15275 *
15276 * For broadcast/multicast offload reply, one of
15277 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
15278 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
15279 * configured according to version of the IP address(es) configured in
15280 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
15281 * while for unicast case, firmware will take the destination IP address
15282 * in the received matching packet as the source address for replying.
15283 *
15284 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
15285 * Nested attribute. Filter for the received UDP packets, only the matching
15286 * packets will be replied and cached.
15287 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
15288 * attributes.
15289 * This attribute is mandatory.
15290 *
15291 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
15292 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15293 * CoAP message (UDP payload) to be sent upon receiving matching packets.
15294 * Firmware is responsible for adding any necessary protocol headers.
15295 * This attribute is mandatory.
15296 *
15297 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
15298 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
15299 * A cached message will be dropped by firmware if it's expired.
15300 * This attribute is optional. A default value of 40000 will be used in the
15301 * absence of it.
15302 */
15303enum qca_wlan_vendor_attr_coap_offload_reply {
15304 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
15305 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
15306 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
15307 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
15308 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
15309 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
15310
15311 /* keep last */
15312 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
15313 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
15314 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
15315};
15316
15317/**
15318 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
15319 * CoAP message (UDP) transmitting on IPv4.
15320 *
15321 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
15322 * u32 attribute. Source address (in network byte order) for transmitting
15323 * packets on IPv4.
15324 * This attribute is mandatory.
15325 *
15326 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
15327 * u16 attribute. Source UDP port.
15328 * This attribute is optional, a random port is taken if it's not present.
15329 *
15330 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
15331 * u32 attribute. Destination IPv4 address (in network byte order).
15332 * This attribute is mandatory.
15333 *
15334 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
15335 * Flag attribute. If it's present, indicates that
15336 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
15337 * address; while if not, indicates that the address is unicast/multicast
15338 * address.
15339 * This attribute is optional.
15340 *
15341 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
15342 * u16 attribute. Destination UDP port.
15343 * This attribute is mandatory.
15344 */
15345enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
15346 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
15347 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
15348 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
15349 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
15350 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
15351 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
15352
15353 /* keep last */
15354 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
15355 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
15356 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
15357};
15358
15359/**
15360 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
15361 * CoAP message (UDP) transmitting on IPv6.
15362 *
15363 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
15364 * NLA_BINARY attribute, length is 16 bytes.
15365 * Source address (in network byte order) for transmitting packets on IPv6.
15366 * This attribute is mandatory.
15367 *
15368 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
15369 * u16 attribute. Source UDP port.
15370 * This attribute is optional, a random port is taken if it's not present.
15371 *
15372 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
15373 * NLA_BINARY attribute, length is 16 bytes.
15374 * Destination IPv6 address (in network byte order).
15375 * This attribute is mandatory.
15376 *
15377 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
15378 * u16 attribute. Destination UDP port.
15379 * This attribute is mandatory.
15380 */
15381enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
15382 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
15383 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
15384 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
15385 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
15386 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
15387
15388 /* keep last */
15389 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
15390 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
15391 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
15392};
15393
15394/**
15395 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
15396 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
15397 *
15398 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
15399 * Nested attribute. The IPv4 source/destination address/port for offload
15400 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
15401 * of supported attributes.
15402 * This attribute is optional.
15403 *
15404 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
15405 * Nested attribute. The IPv6 source/destination address/port for offload
15406 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
15407 * of supported attributes.
15408 * This attribute is optional.
15409 *
15410 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
15411 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
15412 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
15413 * configured.
15414 *
15415 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
15416 * u32 attribute. Period in milliseconds for the periodic transmitting.
15417 * This attribute is mandatory.
15418 *
15419 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
15420 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15421 * CoAP message (UDP payload) to be periodically transmitted. Firmware
15422 * is responsible for adding any necessary protocol headers.
15423 * This attribute is mandatory.
15424 */
15425enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
15426 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
15427 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
15428 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
15429 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
15430 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
15431
15432 /* keep last */
15433 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
15434 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
15435 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
15436};
15437
15438/**
15439 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
15440 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
15441 *
15442 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
15443 * u64 attribute. Received time (since system booted in microseconds) of
15444 * the cached CoAP message.
15445 * This attribute is mandatory.
15446 *
15447 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
15448 * u32 attribute. Source IPv4 address (in network byte order) of the cached
15449 * CoAP message.
15450 * This attribute is optional.
15451 *
15452 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
15453 * NLA_BINARY attribute, length is 16 bytes.
15454 * Source IPv6 address (in network byte order) of the cached CoAP message.
15455 * This attribute is optional.
15456 *
15457 * At most and at least one of
15458 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
15459 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
15460 * an entry.
15461 *
15462 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
15463 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15464 * The cached CoAP message (UDP payload). If the actual message size is
15465 * greater than the maximum size, it will be truncated and leaving only
15466 * the first 1152 bytes.
15467 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070015468 *
15469 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
15470 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070015471 */
15472enum qca_wlan_vendor_attr_coap_offload_cache_info {
15473 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
15474 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
15475 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
15476 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
15477 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070015478 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015479
15480 /* keep last */
15481 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
15482 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
15483 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
15484};
15485
15486/**
15487 * enum qca_wlan_vendor_coap_offload_action - Actions for
15488 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15489 *
15490 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
15491 * Enable CoAP offload reply.
15492 * If it's enabled, firmware will start offload processing on each suspend
15493 * and stop on each resume.
15494 *
15495 * Offload reply on match works as follows:
15496 * Reply the packets that match the filter with the given CoAP
15497 * message (with necessary protocol headers), increase the CoAP message
15498 * ID in the given CoAP message by one for the next use after each successful
15499 * transmission, and try to store the information of the received packet,
15500 * including the received time, source IP address, and CoAP message (UDP
15501 * payload).
15502 *
15503 * Firmware has a limit to the maximum stored entries, it takes the source IP
15504 * address as the key of an entry, and keeps at most one entry for each key.
15505 * A packet won't be stored if no entry for the same key is present and the
15506 * total number of the existing unexpired entries reaches the maximum value.
15507 *
15508 * If any configured item is changed, user space should disable offload reply
15509 * first and then issue a new enable request.
15510 *
15511 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
15512 * Disable CoAP offload reply and return information of any cached CoAP
15513 * messages.
15514 *
15515 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
15516 * Enable CoAP offload periodic transmitting.
15517 * If it's enabled, firmware will start offload periodic transmitting on
15518 * each suspend and stop on each resume.
15519 *
15520 * Offload periodic transmitting works as follows:
15521 * Send the given CoAP message (with necessary protocol headers) with the given
15522 * source/destination IP address/UDP port periodically based on the given
15523 * period and increase the CoAP message ID in the given CoAP message by one
15524 * for the next use after each successful transmission.
15525 *
15526 * If any configured item is changed, user space should disable offload
15527 * periodic transmitting first and then issue a new enable request.
15528 *
15529 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
15530 * Disable CoAP offload periodic transmitting.
15531 *
15532 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
15533 * Get information of the CoAP messages cached during offload reply
15534 * processing. The cache is cleared after retrieval.
15535 */
15536enum qca_wlan_vendor_coap_offload_action {
15537 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
15538 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
15539 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
15540 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
15541 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
15542};
15543
15544/**
15545 * enum qca_wlan_vendor_attr_coap_offload - Used by the
15546 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15547 * This is used to set parameters for CoAP offload processing, or get
15548 * cached CoAP messages from firmware.
15549 *
15550 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
15551 * u32 attribute. Action to take in this vendor command.
15552 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
15553 * This attribute is mandatory.
15554 *
15555 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
15556 * u32 attribute. Represents the Request ID for the CoAP offload
15557 * configuration, which can help to identify the user entity starting
15558 * the CoAP offload processing and accordingly stop the respective
15559 * ones/get the cached CoAP messages with the matching ID.
15560 * This attribute is mandatory.
15561 *
15562 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
15563 * Nested attribute. Parameters for offload reply.
15564 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
15565 * supported attributes.
15566 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15567 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
15568 * otherwise.
15569 *
15570 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
15571 * Nested attribute. Parameters for offload periodic transmitting.
15572 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
15573 * supported attributes.
15574 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
15575 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
15576 * otherwise.
15577 *
15578 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
15579 * Array of nested attributes. Information of the cached CoAP messages,
15580 * where each entry is taken from
15581 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
15582 * This attribute is used for reporting the cached CoAP messages
15583 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15584 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
15585 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
15586 * cached item if this attribute is not present.
15587 */
15588enum qca_wlan_vendor_attr_coap_offload {
15589 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
15590 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
15591 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
15592 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
15593 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
15594 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
15595
15596 /* keep last */
15597 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
15598 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
15599 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
15600};
15601
15602/**
15603 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
15604 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
15605 * Service (SCS) rule.
15606 *
15607 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
15608 * Represents the unique id of SCS rule to be configured.
15609
15610 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
15611 * Represents the request type: add, remove, or change.
15612 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
15613 * Type definitions).
15614 *
15615 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
15616 * in case of add/change request type.
15617 * Represents the output traffic identifier (TID) to be assigned to the flow
15618 * matching the rule.
15619 *
15620 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
15621 * attribute in case of add/change request type.
15622 * Represents type of classifier parameters present in SCS rule.
15623 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
15624 * Only classifier types 4 and 10 are supported for SCS.
15625 *
15626 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
15627 * in case of add/change request type when classifier type is TCLAS4.
15628 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
15629 *
15630 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
15631 * attribute in case of add/change request type when classifier type is TCLAS4
15632 * and version attribute is IPv4.
15633 * Represents the source IPv4 address in the rule which is to be compared
15634 * against the source IP address in the IPv4 header.
15635 *
15636 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
15637 * attribute in case of add/change request type when classifier type is TCLAS4
15638 * and version attribute is IPv4.
15639 * Represents the destination IPv4 address in the rule which is to be compared
15640 * against the destination IP address in the IPv4 header.
15641 *
15642 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
15643 * attribute in case of add/change request type when classifier type is TCLAS4
15644 * and version attribute is IPv6.
15645 * Represents the source IPv6 address in the rule which is to be compared
15646 * against the source IP address in the IPv6 header.
15647 *
15648 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
15649 * attribute in case of add/change request type when classifier type is TCLAS4
15650 * and version attribute is IPv6.
15651 * Represents the destination IPv6 address in the rule which is to be compared
15652 * against the destination IP address in the IPv6 header.
15653 *
15654 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
15655 * in case of add/change request type when classifier type is TCLAS4.
15656 * Represents the source port number in the rule which is to be compared against
15657 * the source port number in the protocol header.
15658 *
15659 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
15660 * in case of add/change request type when classifier type is TCLAS4.
15661 * Represents the destination port number in the rule which is to be compared
15662 * against the destination port number in the protocol header.
15663 *
15664 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
15665 * in case of add/change request type when classifier type is TCLAS4.
15666 * Represents the DSCP value in the rule which is to be compared against the
15667 * DSCP field present in the IP header.
15668 *
15669 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
15670 * attribute in case of add/change request type when classifier type is TCLAS4.
15671 * Represents the protocol/next header in the rule which is to be compared
15672 * against the protocol/next header field present in the IPv4/IPv6 header.
15673 *
15674 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
15675 * attribute of size 3 bytes present in case of add/change request type
15676 * when classifier type is TCLAS4 and version is IPv6.
15677 * Represents the flow label value in the rule which is to be compared against
15678 * the flow label field present in the IPv6 header.
15679 *
15680 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
15681 * attribute in case of add/change request type when classifier type is TCLAS10.
15682 * Represents the protocol instance number in the rule.
15683 *
15684 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
15685 * attribute in case of add/change request type when classifier type is TCLAS10.
15686 * Represents the protocol/next header in the rule which is to be compared
15687 * against the protocol/next header field present in the IPv4/IPv6 header.
15688 *
15689 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
15690 * attribute of variable length present when request type is add/change and
15691 * classifier type is TCLAS10.
15692 * Represents the mask to be used for masking the header contents of the header
15693 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15694 * attribute.
15695 *
15696 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15697 * attribute of variable length present when request type is add/change and
15698 * classifier type is TCLAS10.
15699 * Represents the value to be compared against after masking the header contents
15700 * of the header specified by the
15701 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15702 * filter mask specified by the
15703 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015704 *
15705 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15706 * attribute.
15707 * Represents the service class id of the configured SCS rule.
15708 *
15709 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15710 * MAC address.
15711 * Represents the destination MAC address in the rule.
15712 *
15713 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15714 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070015715 */
15716enum qca_wlan_vendor_attr_scs_rule_config {
15717 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15718 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15719 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15720 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15721 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15722 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15723 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15724 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15725 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15726 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15727 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15728 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15729 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15730 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15731 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15732 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15733 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15734 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15735 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015736 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15737 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15738 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070015739
15740 /* Keep last */
15741 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15742 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15743 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15744};
15745
15746/**
15747 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
15748 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
15749 *
15750 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
15751 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
15752 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
15753 */
15754enum qca_wlan_vendor_attr_mlo_links {
15755 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
15756 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
15757 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
15758 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
15759
15760 /* Keep last */
15761 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
15762 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
15763 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
15764};
15765
15766/**
15767 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15768 * used in the firmware.
15769 *
15770 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15771 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15772 *
15773 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15774 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15775 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15776 * groups.
15777 *
15778 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15779 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15780 * CTL group but user can choose up to 3 SAR set index only, as the top half
15781 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15782 * the SAR index (3 to 5) is used for DBS mode.
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015783 *
15784 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
15785 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
15786 * for power limit computation in collaboration with WWAN.
15787 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
15788 *
15789 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
15790 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
15791 * instead of fixed static SAR power limit firmware uses time averaging
15792 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
15793 * In this mode firmware has up to 43 indexes.
Sunil Ravi89eba102022-09-13 21:04:37 -070015794 */
15795enum qca_wlan_vendor_sar_version {
15796 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15797 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15798 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15799 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015800 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
15801 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015802};
15803
15804/**
15805 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15806 * CTL grouping is enabled or disabled in the firmware.
15807 *
15808 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15809 * is enabled in firmware.
15810 *
15811 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15812 * is disabled in firmware.
15813 *
15814 */
15815enum qca_wlan_vendor_sar_ctl_group_state {
15816 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15817 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15818 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15819};
15820
15821/**
15822 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15823 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15824 * supported by the firmware.
15825
15826 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15827 * u32 attribute. This field describes current SAR version supported by the
15828 * firmware.
15829 * See enum qca_wlan_vendor_sar_version for more information.
15830 * This attribute is mandatory.
15831
15832 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15833 * u32 attribute. This field describes whether CTL groups are enabled
15834 * or disabled in the firmware.
15835 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15836 * This attribute is optional.
15837 */
15838
15839enum qca_wlan_vendor_attr_sar_capability {
15840 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15841 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15842 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15843
15844 /* Keep last */
15845 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15846 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15847 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15848};
15849
15850/**
15851 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15852 * These statistics are sent from the driver in a response when userspace
15853 * queries to get the statistics using the operation
15854 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15855 * by the driver when the SR feature is enabled, when the driver receives
15856 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15857 *
15858 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15859 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15860 * This represents the number of non-SRG TX opportunities.
15861 *
15862 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15863 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15864 * This represents the number of non-SRG PPDUs tried to transmit.
15865 *
15866 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15867 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15868 * This represents the number of non-SRG PPDUs successfully transmitted.
15869 *
15870 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15871 * Mandatory only when SRG is supported by the AP and optional otherwise.
15872 * This represents the number of SRG TX opportunities.
15873 *
15874 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15875 * Mandatory only when SRG is supported by the AP and optional otherwise.
15876 * This represents the number of SRG PPDUs tried to transmit.
15877 *
15878 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15879 * Mandatory only when SRG is supported by the AP and optional otherwise.
15880 * This represents the number of SRG PPDUs successfully transmitted.
15881 */
15882enum qca_wlan_vendor_attr_sr_stats {
15883 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15884 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15885 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15886 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15887 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15888 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15889 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15890
15891 /* Keep last */
15892 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15893 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15894 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15895};
15896
15897/**
15898 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15899 * Spatial Reuse feature.
15900 *
15901 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15902 * roaming to an AP that doesn't support/supports SR feature, respectively.
15903 *
15904 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15905 * to change in concurrent interfaces that are supported by the driver.
15906 */
15907enum qca_wlan_sr_reason_code {
15908 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15909 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15910};
15911
15912/**
15913 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15914 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15915 *
15916 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15917 * driver to enable the Spatial Reuse feature. Attributes
15918 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15919 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15920 * operation.
15921 *
15922 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15923 * driver to disable the Spatial Reuse feature.
15924 *
15925 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15926 * asynchronous event sent to userspace when the SR feature is disabled.
15927 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15928 * and sent along with the asynchronous event.
15929 *
15930 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15931 * asynchronous event when the SR feature is enabled again after the SR feature
15932 * was suspended by the driver earlier. The enable reason is
15933 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15934 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15935 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15936 *
15937 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15938 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15939 * reuse transmissions. Userspace sends this operation to the driver.
15940 * The driver/firmware upon receiving this operation shall prohibit PSR-based
15941 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15942 *
15943 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15944 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15945 * reuse transmissions. Userspace sends this operation to the driver.
15946 * The driver/firmware upon receiving this operation shall allow PSR-based
15947 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15948 *
15949 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15950 * driver to get the SR statistics and the driver sends a synchronous response
15951 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15952 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15953 *
15954 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15955 * driver to clear the SR statistics and upon receiving this operation
15956 * the driver/firmware shall clear the SR statistics.
15957 *
15958 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15959 * driver to get the SR parameters and the driver sends the synchronous response
15960 * with the following required attributes:
15961 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15962 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15963 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15964 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15965 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15966 *
15967 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15968 * asynchronous event to userspace to update any changes in SR parameters.
15969 * The following attributes are used with this operation:
15970 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15971 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15972 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15973 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15974 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15975 */
15976enum qca_wlan_sr_operation {
15977 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15978 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15979 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15980 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15981 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15982 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15983 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15984 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15985 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15986 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15987};
15988
15989/**
15990 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15991 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15992 *
15993 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15994 * This attribute is optionally set in response to
15995 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15996 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15997 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15998 * about HESIGA_Spatial_reuse_value15_allowed.
15999 *
16000 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
16001 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
16002 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
16003 * allowed or not at non-AP STAs that are associated with the AP. If present
16004 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
16005 *
16006 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
16007 * attribute. This attribute is used in response to
16008 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
16009 * Min Offset field which contains an unsigned integer that is added to -82 dBm
16010 * to generate the value of the SRG OBSS PD Min parameter.
16011 *
16012 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
16013 * attribute. This attribute is used in response to
16014 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
16015 * Max Offset field which contains an unsigned integer that is added to -82 dBm
16016 * to generate the value of the SRG OBSS PD Max parameter.
16017 *
16018 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
16019 * attribute. This attribute is used in response to
16020 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
16021 * PD Max Offset field which contains an unsigned integer that is added to -82
16022 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
16023 *
16024 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
16025 * Userspace optionally sends this attribute with
16026 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
16027 * preferred SRG PD threshold. The driver shall send this attribute to
16028 * userspace in SR resume event to indicate the PD threshold being used for SR.
16029 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
16030 * the driver shall indicate the userspace the newly configured SRG PD threshold
16031 * using an asynchronous event.
16032 *
16033 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
16034 * Userspace optionally sends this attribute with
16035 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
16036 * preferred non-SRG PD threshold. The driver shall send this attribute to
16037 * userspace in SR resume event to indicate the PD threshold being used for SR.
16038 * When there is change in non-SRG PD threshold (for example, due to roaming,
16039 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
16040 * threshold using an asynchronous event.
16041 *
16042 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
16043 * values are defined in enum qca_wlan_sr_reason_code. This
16044 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
16045 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
16046 */
16047enum qca_wlan_vendor_attr_sr_params {
16048 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
16049 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
16050 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
16051 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
16052 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
16053 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
16054 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
16055 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
16056 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
16057
16058 /* keep last */
16059 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
16060 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
16061 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
16062};
16063
16064/**
16065 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
16066 * command QCA_NL80211_VENDOR_SUBCMD_SR.
16067 *
16068 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
16069 * from userspace to the driver. Possible values are defined in enum
16070 * qca_wlan_sr_operation.
16071 *
16072 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
16073 * configuration parameters. The possible attributes inside this attribute are
16074 * defined in enum qca_wlan_vendor_attr_sr_params.
16075 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
16076 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
16077 * also in response from the driver to userspace when the response is sent for
16078 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
16079 * The driver uses this attribute in asynchronous events in which the operation
16080 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
16081 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
16082 *
16083 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
16084 * statistics. These attributes used inside this are defined in enum
16085 * qca_wlan_vendor_attr_sr_stats.
16086 * This attribute is used in response from the driver to a command in which
16087 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
16088 * %QCA_WLAN_SR_OPERATION_GET_STATS.
16089 */
16090enum qca_wlan_vendor_attr_sr {
16091 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
16092 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
16093 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
16094 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
16095
16096 /* Keep last */
16097 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
16098 QCA_WLAN_VENDOR_ATTR_SR_MAX =
16099 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
16100};
16101
Sunil Ravi77d572f2023-01-17 23:58:31 +000016102/**
16103 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
16104 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
16105 *
16106 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
16107 * used by the peer on the link that corresponds to the link used for sending
16108 * the event notification.
16109 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
16110 * MLD MAC address of the peer.
16111 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
16112 * used to pass ifindex of the primary netdev.
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016113 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
16114 * used to pass ifindex of the MLD netdev.
16115 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
16116 * used to indicate the number of links that the non-AP MLD negotiated to be
16117 * used in the ML connection.
16118 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
16119 * attribute, contains information regarding links of the non-AP MLD.
16120 * User applications need to know all the links of a non-AP MLD that are
16121 * participating in the ML association. The possible attributes inside this
16122 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
Sunil Ravi77d572f2023-01-17 23:58:31 +000016123 */
16124enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
16125 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
16126 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
16127 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
16128 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016129 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
16130 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
16131 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
Sunil Ravi77d572f2023-01-17 23:58:31 +000016132
16133 /* keep last */
16134 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
16135 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
16136 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
16137};
16138
16139/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016140 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
16141 * non-AP MLD link parameters used by the attribute
16142 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
16143 *
16144 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
16145 * to pass the netdev ifindex of the non-AP MLD link.
16146 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
16147 * the non-AP MLD link.
16148 */
16149enum qca_wlan_vendor_attr_mlo_link_info {
16150 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
16151 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
16152 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
16153
16154 /* keep last */
16155 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
16156 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
16157 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
16158};
16159
16160/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000016161 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
16162 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
16163 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
16164 * and PSD information.
16165 *
16166 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
16167 * u32. This attribute is used to indicate the start of the queried frequency
16168 * range in MHz.
16169 *
16170 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
16171 * This attribute is used to indicate the end of the queried frequency range
16172 * in MHz.
16173 *
16174 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
16175 * This attribute will contain the PSD information for a single range as
16176 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
16177 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
16178 *
16179 * The PSD power info (dBm/MHz) from user space should be multiplied
16180 * by a factor of 100 when sending to the driver to preserve granularity
16181 * up to 2 decimal places.
16182 * Example:
16183 * PSD power value: 10.21 dBm/MHz
16184 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
16185 *
16186 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
16187 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
16188 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
16189 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16190 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16191 *
16192 * The following set of attributes will be used to exchange frequency and
16193 * corresponding PSD information for AFC between the user space and the driver.
16194 */
16195enum qca_wlan_vendor_attr_afc_freq_psd_info {
16196 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
16197 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
16198 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
16199 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
16200
16201 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
16202 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
16203 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
16204};
16205
16206/**
16207 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
16208 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
16209 * channel list and corresponding EIRP information.
16210 *
16211 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
16212 * This attribute is used to indicate queried channel from
16213 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
16214 *
16215 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
16216 * This attribute is used to configure the EIRP power info corresponding
16217 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
16218 * The EIRP power info(dBm) from user space should be multiplied
16219 * by a factor of 100 when sending to Driver to preserve granularity up to
16220 * 2 decimal places.
16221 * Example:
16222 * EIRP power value: 34.23 dBm
16223 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
16224 *
16225 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
16226 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16227 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
16228 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16229 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
16230 *
16231 * The following set of attributes will be used to exchange Channel and
16232 * corresponding EIRP information for AFC between the user space and Driver.
16233 */
16234enum qca_wlan_vendor_attr_afc_chan_eirp_info {
16235 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
16236 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
16237 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
16238
16239 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
16240 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
16241 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
16242};
16243
16244/**
16245 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
16246 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16247 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
16248 * channel, and EIRP related information.
16249 *
16250 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
16251 * This attribute is used to indicate the operating class, as listed under
16252 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
16253 *
16254 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
16255 * for updating the channel number and EIRP power information.
16256 * It uses the attributes defined in
16257 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
16258 *
16259 * Operating class information packing format for
16260 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16261 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16262 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
16263 *
16264 * m - Total number of operating classes.
16265 * n, j - Number of queried channels for the corresponding operating class.
16266 *
16267 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16268 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16269 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16270 * .....
16271 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16272 * ....
16273 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16274 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16275 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16276 * ....
16277 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16278 *
16279 * Operating class information packing format for
16280 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16281 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16282 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16283 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16284 *
16285 * m - Total number of operating classes.
16286 * n, j - Number of channels for the corresponding operating class.
16287 *
16288 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16289 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16290 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16291 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16292 * .....
16293 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16294 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
16295 * ....
16296 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16297 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16298 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16299 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16300 * ....
16301 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16302 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
16303 *
16304 * The following set of attributes will be used to exchange operating class
16305 * information for AFC between the user space and the driver.
16306 */
16307enum qca_wlan_vendor_attr_afc_opclass_info {
16308 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
16309 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
16310 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
16311
16312 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
16313 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
16314 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
16315};
16316
16317/**
16318 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
16319 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
16320 *
16321 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
16322 * driver to userspace in order to query the new AFC power values.
16323 *
16324 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
16325 * complete event will be sent from the driver to userspace to indicate
16326 * processing of the AFC response.
16327 *
16328 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
16329 * will be sent from the driver to userspace to indicate last received
16330 * AFC response data has been cleared on the AP due to invalid data
16331 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
16332 *
16333 * The following enum defines the different event types that will be
16334 * used by the driver to help trigger corresponding AFC functionality in user
16335 * space.
16336 */
16337enum qca_wlan_vendor_afc_event_type {
16338 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
16339 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
16340 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
16341};
16342
16343/**
16344 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
16345 * deployment type.
16346 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
16347 *
16348 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
16349 *
16350 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
16351 *
16352 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
16353 *
16354 * The following enum defines different deployment modes that the AP might
16355 * come up in. This information will be essential to retrieve deployment-type
16356 * specific SP power values for AFC operation.
16357 */
16358enum qca_wlan_vendor_afc_ap_deployment_type {
16359 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
16360 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
16361 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
16362};
16363
16364/**
16365 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
16366 * indicate AFC response status.
16367 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
16368 *
16369 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
16370 *
16371 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
16372 * command was not received within the expected time of the AFC expiry event
16373 * being triggered.
16374 *
16375 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
16376 * parsing error by the driver.
16377 *
16378 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
16379 * error.
16380 *
16381 * The following enum defines the status codes that the driver will use to
16382 * indicate whether the AFC data is valid or not.
16383 */
16384enum qca_wlan_vendor_afc_evt_status_code {
16385 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
16386 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
16387 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
16388 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
16389};
16390
16391/**
16392 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
16393 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
16394 * support sending only a single request to the user space at a time.
16395 *
16396 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
16397 * Used with event to notify the type of AFC event received.
16398 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
16399 *
16400 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
16401 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16402 * otherwise unused.
16403 *
16404 * This attribute is used to indicate the AP deployment type in the AFC request.
16405 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
16406 *
16407 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
16408 * Unique request identifier generated by the AFC client for every
16409 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
16410 * The user space application is responsible for ensuring no duplicate values
16411 * are in-flight with the server, e.g., by delaying a request, should the same
16412 * value be received from different radios in parallel.
16413 *
16414 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
16415 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16416 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
16417 *
16418 * This attribute indicates the AFC spec version information. This will
16419 * indicate the AFC version AFC client must use to query the AFC data.
16420 * Bits 15:0 - Minor version
16421 * Bits 31:16 - Major version
16422 *
16423 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
16424 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16425 * otherwise unused.
16426 * This attribute indicates the minimum desired power (in dBm) for
16427 * the queried spectrum.
16428 *
16429 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
16430 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16431 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16432 *
16433 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
16434 * This attribute is used to indicate if there were any errors parsing the
16435 * AFC response.
16436 *
16437 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
16438 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16439 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16440 *
16441 * This attribute indicates the AFC response code. The AFC response codes are
16442 * in the following categories:
16443 * -1: General Failure.
16444 * 0: Success.
16445 * 100 - 199: General errors related to protocol.
16446 * 300 - 399: Error events specific to message exchange
16447 * for the Available Spectrum Inquiry.
16448 *
16449 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
16450 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16451 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16452 *
16453 * This attribute indicates the date until which the current response is
16454 * valid for in UTC format.
16455 * Date format: bits 7:0 - DD (Day 1-31)
16456 * bits 15:8 - MM (Month 1-12)
16457 * bits 31:16 - YYYY (Year)
16458 *
16459 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
16460 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16461 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16462 *
16463 * This attribute indicates the time until which the current response is
16464 * valid for in UTC format.
16465 * Time format: bits 7:0 - SS (Seconds 0-59)
16466 * bits 15:8 - MM (Minutes 0-59)
16467 * bits 23:16 - HH (Hours 0-23)
16468 * bits 31:24 - Reserved
16469 *
16470 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
16471 * for updating the list of frequency ranges to be queried.
16472 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16473 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16474 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16475 * It uses the attributes defined in
16476 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
16477 *
16478 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
16479 * for updating the list of operating classes and corresponding channels to be
16480 * queried.
16481 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16482 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16483 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16484 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
16485 */
16486enum qca_wlan_vendor_attr_afc_event {
16487 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
16488 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
16489 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
16490 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
16491 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
16492 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
16493 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
16494 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
16495 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
16496 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
16497 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
16498 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
16499
16500 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
16501 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
16502 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
16503};
16504
16505/**
16506 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
16507 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
16508 * will support sending only a single AFC response to the driver at a time.
16509 *
16510 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
16511 * This attribute will be used to send a single Spectrum Inquiry response object
16512 * from the 'availableSpectrumInquiryResponses' array object from the response
16513 * JSON.
16514 *
16515 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
16516 *
16517 * This attribute indicates the period (in seconds) for which the response
16518 * data received is valid for.
16519 *
16520 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
16521 *
16522 * This attribute indicates the request ID for which the corresponding
16523 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
16524 *
16525 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
16526 *
16527 * This attribute indicates the date until which the current response is
16528 * valid for in UTC format.
16529 * Date format: bits 7:0 - DD (Day 1-31)
16530 * bits 15:8 - MM (Month 1-12)
16531 * bits 31:16 - YYYY (Year)
16532 *
16533 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
16534 *
16535 * This attribute indicates the time until which the current response is
16536 * valid for in UTC format.
16537 * Time format: bits 7:0 - SS (Seconds 0-59)
16538 * bits 15:8 - MM (Minutes 0-59)
16539 * bits 23:16 - HH (Hours 0-23)
16540 * bits 31:24 - Reserved
16541 *
16542 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
16543 *
16544 * This attribute indicates the AFC response code. The AFC response codes are
16545 * in the following categories:
16546 * -1: General Failure.
16547 * 0: Success.
16548 * 100 - 199: General errors related to protocol.
16549 * 300 - 399: Error events specific to message exchange
16550 * for the Available Spectrum Inquiry.
16551 *
16552 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
16553 * for PSD info of all the queried frequency ranges. It uses the attributes
16554 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
16555 *
16556 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
16557 * attributes for EIRP info of all queried operating class/channels. It uses
16558 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
16559 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
16560 *
16561 */
16562enum qca_wlan_vendor_attr_afc_response {
16563 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
16564 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
16565 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
16566 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
16567 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
16568 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
16569 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
16570 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
16571 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
16572
16573 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
16574 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
16575 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
16576};
16577
16578/**
16579 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
16580 *
16581 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
16582 *
16583 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
16584 * beaconing at higher beacon interval with Rx disabled.
16585 */
16586enum qca_wlan_dozed_ap_state {
16587 QCA_WLAN_DOZED_AP_DISABLE = 0,
16588 QCA_WLAN_DOZED_AP_ENABLE = 1,
16589};
16590
16591/**
16592 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
16593 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
16594 * configuration.
16595 *
16596 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
16597 * Configures the doze state for an AP interface. Possible values are defined
16598 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
16599 * gets triggered asynchronously to provide updated AP interface configuration.
16600 *
16601 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
16602 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
16603 * command, which is used later to maintain synchronization between commands
16604 * and asynchronous events.
16605 *
16606 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
16607 * Used in event to indicate the next TBTT TSF timer value after applying the
16608 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
16609 * the first beacon after entering or exiting dozed mode.
16610 *
16611 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
16612 * Used with event to inform the periodicity of beacon transmission that would
16613 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070016614 *
16615 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
16616 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000016617 */
16618enum qca_wlan_vendor_attr_dozed_ap {
16619 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
16620 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
16621 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
16622 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
16623 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070016624 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000016625
16626 /* Keep last */
16627 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
16628 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
16629 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
16630};
16631
16632/**
16633 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
16634 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
16635 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
16636 * capture running status.
16637 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
16638 * capture running status.
16639 **/
16640
16641enum qca_wlan_vendor_monitor_mode_status {
16642 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
16643 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
16644};
16645
16646/**
16647 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
16648 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
16649 * information regarding the local packet capture over the monitor mode.
16650 *
16651 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
16652 * represents the status of the start capture commands. The values used with
16653 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
16654 * is returned by the driver in the response to the command.
16655 */
16656
16657enum qca_wlan_vendor_attr_get_monitor_mode {
16658 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
16659 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
16660
16661 /* Keep last */
16662 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
16663 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
16664 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
16665};
16666
Sunil Ravi036cec52023-03-29 11:35:17 -070016667/**
16668 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
16669 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
16670 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
16671 *
16672 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
16673 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
16674 */
16675enum qca_wlan_vendor_link_state_op_types {
16676 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
16677 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
16678};
16679
16680/**
16681 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
16682 * links state control modes. This enum is used by
16683 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
16684 *
16685 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
16686 * by the driver.
16687 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
16688 * user space.
16689 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
16690 * desired number of MLO links to operate in active state at any given time.
16691 * The driver will choose which MLO links should operate in the active state.
16692 * See enum qca_wlan_vendor_link_state for active state definition.
16693 */
16694enum qca_wlan_vendor_link_state_control_modes {
16695 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16696 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16697 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16698};
16699
16700/**
16701 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16702 * links state operation modes. This enum is used by
16703 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16704 *
16705 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16706 * mode, the driver selects the operating mode of the links, without any
16707 * guidance from the user space.
16708 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16709 * operation mode the driver should select MLO links that will achieve low
16710 * latency.
16711 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16712 * throughput operation mode the driver should select MLO links that will
16713 * achieve higher throughput.
16714 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16715 * operation mode the driver should select MLO links that will achieve low
16716 * power.
16717 */
16718enum qca_wlan_vendor_link_state_operation_modes {
16719 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16720 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16721 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16722 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16723};
16724
16725/**
16726 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16727 * MLO link.
16728 *
16729 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
16730 * be used for data transmission but it can have TIDs mapped to it. It will be
16731 * in doze state always and does not monitor the beacons.
16732 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
16733 * used for data TX/RX and monitors the beacons to check TIM bit indication.
16734 * It may enter doze state and comes out based on the transmit data traffic and
16735 * TIM bit indication in the beacon.
16736 */
16737enum qca_wlan_vendor_link_state {
16738 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16739 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16740};
16741
16742/**
16743 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16744 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16745 *
16746 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16747 * MLO link.
16748 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16749 * enum qca_wlan_vendor_link_state for possible MLO link states.
16750 */
16751
16752enum qca_wlan_vendor_attr_link_state_config {
16753 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16754 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16755 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16756
16757 /* Keep last */
16758 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16759 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16760 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16761};
16762
16763/**
16764 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16765 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16766 *
16767 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16768 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16769 * Required only in a command. Possible values for this attribute are defined in
16770 * enum qca_wlan_vendor_link_state_op_types.
16771 *
16772 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16773 * links control mode type. Optional attribute in a command when
16774 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16775 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16776 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16777 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16778 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16779 *
16780 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16781 * Indicates the state of the each MLO link affiliated with the interface.
16782 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16783 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16784 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16785 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16786 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16787 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16788 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16789 *
16790 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16791 * Represents the number of active state links. See enum
16792 * qca_wlan_vendor_link_state for active state definition.
16793 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16794 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16795 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16796 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16797 *
16798 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16799 * links operation mode type. Optional attribute in a command when
16800 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16801 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16802 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16803 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16804 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16805 * modes.
16806 */
16807enum qca_wlan_vendor_attr_mlo_link_state {
16808 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16809 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16810 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16811 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16812 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16813 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16814
16815 /* keep last */
16816 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16817 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16818 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16819};
16820
Sunil Ravi640215c2023-06-28 23:08:09 +000016821/**
16822 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16823 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16824 *
16825 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16826 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16827 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16828 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16829 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16830 * traffic for that link.
16831 *
16832 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16833 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16834 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16835 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16836 * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16837 * downlink traffic for that link.
16838 */
16839enum qca_wlan_vendor_attr_tid_link_map_status {
16840 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16841 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16842 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16843
16844 /* keep last */
16845 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16846 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16847 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16848};
16849
16850/*
16851 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16852 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16853 *
16854 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16855 * AP MLD address with which this TID-to-link negotiation mapping is
16856 * established/updated.
16857 *
16858 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16859 * nested attributes containing TID-to-links mapping information. This will have
16860 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16861 * map information. If this attribute is not present the default TID-to-link
16862 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16863 * downlink traffic.
16864 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16865 */
16866enum qca_wlan_vendor_attr_tid_to_link_map {
16867 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16868 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16869 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16870
16871 /* keep last */
16872 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16873 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16874 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16875};
16876
16877/**
16878 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16879 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16880 *
16881 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16882 * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16883 *
16884 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16885 * A bitmap of the removed setup links link IDs.
16886 */
16887enum qca_wlan_vendor_attr_link_reconfig {
Sunil Ravi640215c2023-06-28 23:08:09 +000016888 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16889 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16890 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16891
16892 /* keep last */
16893 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16894 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16895 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
16896};
16897
16898/**
16899 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16900 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16901 *
16902 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16903 * Indicates the MLO link id on which the TDLS discovery response
16904 * frame is to be transmitted.
16905 */
16906enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16907 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16908 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16909
16910 /* Keep last */
16911 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16912 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16913 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16914};
16915
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016916/**
16917 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16918 *
16919 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16920 * for all stations.
16921 *
16922 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16923 * establish the session.
16924 *
16925 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16926 * established.
16927 *
16928 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16929 * session is established using MCC.
16930 *
16931 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16932 * established, but is temporarily dropped currently.
16933 *
16934 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16935 */
16936enum qca_wlan_vendor_tdls_state {
16937 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16938 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16939 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16940 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16941 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16942 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16943};
16944
16945/**
16946 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16947 *
16948 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16949 *
16950 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16951 *
16952 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16953 *
16954 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16955 *
16956 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16957 * than through direct link.
16958 *
16959 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16960 * session anymore.
16961 */
16962
16963enum qca_wlan_vendor_tdls_reason {
16964 QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16965 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16966 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16967 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16968 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16969 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16970};
16971
16972/**
16973 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16974 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16975 *
16976 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16977 * station to enable the TDLS session. Optional attribute. The driver sends the
16978 * TDLS session result as an asynchronous response using the command
16979 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16980 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16981 *
16982 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16983 * channel on which the TDLS session to be established. Required only when
16984 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16985 *
16986 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16987 * Indicates the global operating class of the TDLS session to be established.
16988 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16989 *
16990 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16991 * the maximum latency of the WLAN packets to be transmitted/received in
16992 * milliseconds on TDLS session. Required only when
16993 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16994 *
16995 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16996 * Indicates the minimum bandwidth to be used to establish the TDLS session
16997 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16998 * present.
16999 */
17000enum qca_wlan_vendor_attr_tdls_enable {
17001 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
17002 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
17003 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
17004 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
17005 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
17006 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
17007
17008 /* keep last */
17009 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
17010 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
17011 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
17012};
17013
17014/**
17015 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
17016 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
17017 *
17018 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
17019 * station to disable the TDLS session. Optional attribute.
17020 */
17021enum qca_wlan_vendor_attr_tdls_disable {
17022 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
17023 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
17024
17025 /* keep last */
17026 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
17027 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
17028 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
17029};
17030
17031/**
17032 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
17033 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
17034 *
17035 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
17036 * peer station. Optional attribute. Used in
17037 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
17038 *
17039 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
17040 * TDLS session state with the peer specified in
17041 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
17042 * enum qca_wlan_vendor_tdls_state. Used in
17043 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17044 *
17045 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
17046 * reason for the TDLS session state indicated in
17047 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
17048 * qca_wlan_vendor_tdls_reason. Used in
17049 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17050 *
17051 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
17052 * channel of the TDLS session established with
17053 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
17054 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17055 *
17056 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
17057 * Indicates the global operating class of the TDLS session established with
17058 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
17059 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
17060 *
17061 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
17062 * the current number of active TDLS sessions. This is indicated in the response
17063 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
17064 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
17065 *
17066 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
17067 * whether the driver can initiate new TDLS session. This is indicated in the
17068 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
17069 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
17070 */
17071enum qca_wlan_vendor_attr_tdls_get_status {
17072 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
17073 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
17074 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
17075 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
17076 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
17077 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
17078 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
17079 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
17080
17081 /* keep last */
17082 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
17083 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
17084 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
17085};
17086
17087/**
17088 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
17089 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
17090 *
17091 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
17092 * peer station. Required attribute.
17093 *
17094 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
17095 * the current TDLS state. Required attribute. Uses the values from
17096 * enum qca_wlan_vendor_tdls_state.
17097 *
17098 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
17099 * reason of the current TDLS session state. Required attribute. Uses the values
17100 * from enum qca_wlan_vendor_tdls_reason.
17101 *
17102 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
17103 * TDLS session channel. Required attribute.
17104 *
17105 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
17106 * Indicates the TDLS session global operating class. Required attribute.
17107 */
17108enum qca_wlan_vendor_attr_tdls_state {
17109 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
17110 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
17111 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
17112 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
17113 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
17114 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
17115
17116 /* keep last */
17117 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
17118 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
17119 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
17120};
17121
17122/*
17123 * enum qca_wlan_vendor_opm_mode - Modes supported by
17124 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
17125 *
17126 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
17127 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
17128 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
17129 * to configure power save inactivity timeout and speculative wake up
17130 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
17131 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
17132 */
17133
17134enum qca_wlan_vendor_opm_mode {
17135 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
17136 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
17137 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
17138};
17139
17140/*
17141 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
17142 * types.
17143 *
17144 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
17145 * from: An MSDU is presented to the driver
17146 * to: the MSDU is queued into TCL SRNG
17147 *
17148 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
17149 * from: the MSDU is queued into TCL SRNG
17150 * to: the MSDU is released by the driver
17151 *
17152 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
17153 * from: the MSDU is presented to the hardware
17154 * to: the MSDU is released by the hardware
17155 *
17156 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
17157 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
17158 * from: A PPDU is presented to the hardware LMAC
17159 * to: over-the-air transmission is started for the PPDU
17160 */
17161enum qca_wlan_vendor_tx_latency_type {
17162 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
17163 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
17164 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
17165 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
17166};
17167
17168/**
17169 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
17170 * used inside nested attributes
17171 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
17172 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
17173 *
17174 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
17175 * Indicates the latency type.
17176 * See enum qca_wlan_vendor_tx_latency_type for the supported types.
17177 *
17178 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
17179 * Indicates the granularity (in microseconds) of the distribution for the
17180 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
17181 * must be positive.
17182 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
17183 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
17184 * of 1000, and the maximum allowed value is 15000 (us).
17185 *
17186 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
17187 * Indicates the average of the latency (in microseconds) for the type
17188 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
17189 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
17190 * otherwise, it represents the quotient of <accumulated latency of the
17191 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
17192 * MSDUs/MPDUs in a cycle>.
17193 *
17194 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
17195 * Array of u32, 4 elements in total, represents the latency distribution for
17196 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
17197 * Each element holds the count of MSDUs/PPDUs (according to the latency type)
17198 * within a range:
17199 * element[0]: latency >= 0 && latency < granularity
17200 * element[1]: latency >= granularity && latency < granularity * 2
17201 * element[2]: latency >= granularity * 2 && latency < granularity * 3
17202 * element[3]: latency >= granularity * 3
17203 */
17204enum qca_wlan_vendor_attr_tx_latency_bucket {
17205 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
17206 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
17207 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
17208 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
17209 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
17210
17211 /* keep last */
17212 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
17213 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
17214 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
17215};
17216
17217/**
17218 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
17219 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
17220 *
17221 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
17222 * Indicates link MAC address of the remote peer. For example, when running
17223 * in station mode, it's the BSSID of the link; while when running in AP
17224 * mode, it's the link MAC address of the remote station.
17225 *
17226 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
17227 * Array of nested attribute.
17228 * Represents the transmit latency statistics for the link specified by
17229 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17230 * Each entry represents the statistics for one of the types defined in
17231 * enum qca_wlan_vendor_tx_latency_type.
17232 * Each defined type has and must have one entry.
17233 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
17234 */
17235enum qca_wlan_vendor_attr_tx_latency_link {
17236 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
17237 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
17238 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
17239
17240 /* keep last */
17241 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
17242 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
17243 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
17244};
17245
17246/**
17247 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
17248 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
17249 *
17250 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
17251 * Disable transmit latency monitoring.
17252 *
17253 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
17254 * Enable transmit latency monitoring.
17255 *
17256 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
17257 * Get transmit latency statistics of the last cycle (period is specified by
17258 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
17259 */
17260enum qca_wlan_vendor_tx_latency_action {
17261 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
17262 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
17263 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
17264};
17265
17266/**
17267 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
17268 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
17269 * per-link transmit latency statistics.
17270 *
17271 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
17272 * 1) used as a command to enable the feature
17273 * Precondition(s):
17274 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17275 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
17276 * Mandatory attribute(s):
17277 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17278 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
17279 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
17280 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17281 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
17282 * Notes:
17283 * The driver will monitor the transmit latency for the active links
17284 * and save the statistics for each cycle (period is set by
17285 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
17286 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
17287 * report is required.
17288 *
17289 * 2) used as a command to disable the feature
17290 * Precondition(s):
17291 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17292 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
17293 * Mandatory attribute(s):
17294 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17295 *
17296 * 3) used as a command to retrieve the statistics for all the active links on
17297 * the requested interface
17298 * Precondition(s):
17299 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17300 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17301 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
17302 * Mandatory attribute(s):
17303 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17304 * Notes:
17305 * The driver returns failure directly if the feature is not enabled or
17306 * there is no active link.
17307 * The driver returns the statistics of the last cycle in the case of
17308 * success.
17309 *
17310 * 4) used as a command to retrieve the statistics for the specified links
17311 * Precondition(s):
17312 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17313 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17314 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
17315 * Mandatory attribute(s):
17316 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17317 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
17318 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17319 * Notes:
17320 * The driver returns failure directly if the feature is not enabled or
17321 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
17322 * does not exist or is not in active state.
17323 *
17324 * 5) used as a command response for #3 or #4
17325 * Precondition(s):
17326 * Userspace issues command #3 or #4, and the driver gets corresponding
17327 * statistics successfully.
17328 * Mandatory attribute(s):
17329 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17330 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17331 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17332 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17333 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17334 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17335 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17336 *
17337 * 6) used as an asynchronous event to report the statistics periodically
17338 * Precondition(s):
17339 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
17340 * #1.
17341 * One or more links are in active state.
17342 * Mandatory attribute(s):
17343 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17344 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17345 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17346 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17347 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17348 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17349 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17350 *
17351 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
17352 *
17353 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
17354 * Action to take in this vendor command.
17355 * See enum qca_wlan_vendor_tx_latency_action for supported actions.
17356 *
17357 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
17358 * Enable (flag attribute present) - The driver needs to report transmit latency
17359 * statistics at the end of each statistical period.
17360 * Disable (flag attribute not present) - The driver doesn't need to report
17361 * transmit latency statistics periodically.
17362 *
17363 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
17364 * Indicates statistical period for transmit latency in terms of milliseconds,
17365 * the minimal allowed value is 100 and the maximum allowed value is 60000.
17366 *
17367 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
17368 * Each entry represents the latency buckets configuration for one of the types
17369 * defined in enum qca_wlan_vendor_tx_latency_type.
17370 * Each defined type has and must have one entry.
17371 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
17372 * supported attributes.
17373 *
17374 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
17375 * Information of the links, each entry represents for one link.
17376 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
17377 * supported attributes for each entry.
17378 */
17379enum qca_wlan_vendor_attr_tx_latency {
17380 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
17381 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
17382 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
17383 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
17384 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
17385 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
17386
17387 /* keep last */
17388 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
17389 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
17390 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
17391};
17392
17393/**
17394 * enum qca_chan_width_update_type - Represents the possible values for
17395 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
17396 *
17397 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
17398 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
17399 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
17400 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
17401 * with AP to indicate the change in the maximum allowed operating bandwidth.
17402 *
17403 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
17404 * bandwidth only to Tx path. In this case the driver doesn't need to conduct
17405 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
17406 * expected to be less than the current connection maximum negotiated bandwidth.
17407 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
17408 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
17409 * to 80 MHz only in the Tx path.
17410 *
17411 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
17412 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
17413 * phymode bandwidth to avoid interoperability issues with APs which don't
17414 * handle the maximum bandwidth change indication correctly.
17415 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
17416 * bandwidth configured is 20 MHz, now the driver indicates the change in
17417 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
17418 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
17419 * interoperability issues with APs which still use 40 MHz for sending the
17420 * frames though it received maximum allowed bandwidth indication as 20 MHz
17421 * from the STA.
17422 */
17423enum qca_chan_width_update_type {
17424 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
17425 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
17426 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
17427};
17428
Sunil Ravib0ac25f2024-07-12 01:42:03 +000017429/**
17430 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
17431 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
17432 *
17433 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
17434 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
17435 * frequency. If non PSD power, carries either 20 MHz bandwidth's center
17436 * channel frequency or 40 MHz bandwidth's center channel frequency
17437 * (or 80/160 MHz bandwidth's center channel frequency).
17438 *
17439 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
17440 * If PSD power, carries PSD power value of the
17441 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
17442 * If non PSD power, carries EIRP power value of bandwidth mentioned
17443 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
17444 */
17445enum qca_wlan_vendor_attr_tpc_pwr_level {
17446 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
17447 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
17448 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
17449
17450 /* keep last */
17451 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
17452 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
17453 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
17454};
17455
17456/**
17457 * enum qca_wlan_vendor_tpc - Definition of link attributes
17458 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
17459 *
17460 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
17461 * For MLO STA, AP BSSID indicates the AP's link address.
17462 *
17463 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
17464 * Indicates using PSD power mode if this flag is present.
17465 *
17466 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
17467 * value in dBm
17468 *
17469 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
17470 * AP, refer to Table E-12-Regulatory Info subfield encoding in
17471 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
17472 *
17473 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
17474 * (dBm) advertised by AP in Power Constraint element, refer to
17475 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
17476 *
17477 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
17478 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
17479 * If PSD power, each power level describes each 20 MHz subchannel PSD
17480 * power value. If non PSD power, each power level describes each supported
17481 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
17482 * each level attribute contains corresponding bandwidth's center channel
17483 * frequency and its EIRP power value.
17484 */
17485enum qca_wlan_vendor_attr_tpc {
17486 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
17487 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
17488 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
17489 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
17490 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
17491 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
17492 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
17493
17494 /* keep last */
17495 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
17496 QCA_WLAN_VENDOR_ATTR_TPC_MAX =
17497 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17498};
17499
17500/**
17501 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
17502 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
17503 *
17504 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
17505 * per-link TPC information of all the active links of MLO STA.
17506 * For non MLO STA, only one link TPC information will be returned
17507 * for connected AP in this nested attribute.
17508 * The attributes used inside this nested attributes are defined
17509 * in enum qca_wlan_vendor_attr_tpc.
17510 */
17511enum qca_wlan_vendor_attr_tpc_links {
17512 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
17513 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
17514
17515 /* keep last */
17516 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
17517 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
17518 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17519};
17520
17521/**
17522 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
17523 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
17524 *
17525 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
17526 * associated with the firmware page fault that is expected to contain the
17527 * required dump to analyze frequent page faults.
17528 * NLA_BINARY attribute, the maximum size is 1024 bytes.
17529 */
17530enum qca_wlan_vendor_attr_fw_page_fault_report {
17531 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
17532 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
17533
17534 /* keep last */
17535 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
17536 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
17537 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
17538};
17539
Sunil Ravi99c035e2024-07-12 01:42:03 +000017540/**
17541 * enum qca_wlan_btm_support: BTM support configuration
17542 *
17543 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
17544 * follows the BSS Transition bit in the Extended Capabilities element from the
17545 * connect request IEs with the default BTM support policy.
17546 *
17547 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
17548 * (re)association attempts. The driver shall restore the default BTM support
17549 * policy during the first disconnection after successful association. When this
17550 * configuration is enabled, the driver shall overwrite the BSS Transition bit
17551 * as zero in the Extended Capabilities element while sending (Re)Association
17552 * Request frames. Also, the driver shall drop the BTM frames from userspace and
17553 * the connected AP when this configuration is enabled.
17554 */
17555enum qca_wlan_btm_support {
17556 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
17557 QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
17558};
17559
17560/**
17561 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for
17562 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE.
17563 *
17564 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code
17565 * used in OFDM/CCK.
17566 *
17567 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index.
17568 *
17569 */
17570enum qca_wlan_vendor_data_rate_type {
17571 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0,
17572 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1,
17573};
17574
17575/**
17576 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition
17577 * of data rate related attributes which is used inside nested attribute
17578 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG.
17579 *
17580 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type.
17581 * For this attribute, valid values are enumerated in enum
17582 * %qca_wlan_vendor_data_rate_type.
17583 *
17584 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value.
17585 * This attribute value is interpreted according to the value of attribute
17586 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config
17587 * type, this attribute value is defined in the units of 0.5 Mbps.
17588 * For non legacy config type, this attribute carries the MCS index number.
17589 *
17590 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm.
17591 * Usually the target computes a final transmit power that is the maximum
17592 * power level that doesn't exceed the limits enforced by various sources
17593 * like chip-specific conformance test limits (CTL), Specific Absorption
17594 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific
17595 * limits, channel avoidance limits, Automated Frequency Coordination (AFC),
17596 * and others. In some cases it may be desirable to use a power level that is
17597 * lower than the maximum power level allowed by all of these limits, so this
17598 * attribute provides an additional limit that can be used to reduce the
17599 * transmit power level.
17600 *
17601 */
17602enum qca_wlan_vendor_attr_adjust_tx_power_rate {
17603 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0,
17604 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1,
17605 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2,
17606 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3,
17607
17608 /* keep last */
17609 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST,
17610 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX =
17611 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1,
17612};
17613
17614/**
17615 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition
17616 * of chain related attributes which is used inside nested attribute
17617 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG.
17618 *
17619 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value.
17620 * Represents a particular chain for which transmit power adjustment needed.
17621 *
17622 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested
17623 * attribute containing data rate related information to adjust transmit
17624 * power. The attributes used inside this nested attributes are defined in
17625 * enum qca_wlan_vendor_attr_adjust_tx_power_rate.
17626 */
17627enum qca_wlan_vendor_attr_adjust_tx_power_chain_config {
17628 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0,
17629 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1,
17630 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2,
17631
17632 /* keep last */
17633 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST,
17634 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX =
17635 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1,
17636};
17637
17638/**
17639 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition
17640 * of band related attributes which is used inside nested attribute
17641 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG.
17642 *
17643 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to
17644 * indicate band for which configuration applies. Valid values are enumerated
17645 * in enum %nl80211_band.
17646 *
17647 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested
17648 * attribute containing per chain related information to adjust transmit
17649 * power. The attributes used inside this nested attribute are defined in
17650 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config.
17651 *
17652 */
17653enum qca_wlan_vendor_attr_adjust_tx_power_band_config {
17654 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0,
17655 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1,
17656 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2,
17657
17658 /* keep last */
17659 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST,
17660 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX =
17661 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1,
17662};
17663
17664/**
17665 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes
17666 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand.
17667 *
17668 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute
17669 * containing per band related information to adjust transmit power.
17670 * The attributes used inside this nested attributes are defined in
17671 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config.
17672 */
17673enum qca_wlan_vendor_attr_adjust_tx_power {
17674 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0,
17675 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1,
17676
17677 /* keep last */
17678 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST,
17679 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX =
17680 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1,
17681};
17682
17683/**
17684 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute
17685 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE.
17686 *
17687 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to
17688 * send spectral data to userspace applications.
17689 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface
17690 * to send spectral data to userspace applications.
17691 */
17692enum qca_wlan_vendor_spectral_data_transport_mode {
17693 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0,
17694 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1,
17695};
17696
17697/* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute
17698 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to
17699 * indicate the completion status for a spectral scan.
17700 *
17701 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL:
17702 * Indicates a successful completion of the scan.
17703 *
17704 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates
17705 * a timeout has occured while processing the spectral reports.
17706 */
17707enum qca_wlan_vendor_spectral_scan_complete_status {
17708 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0,
17709 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1,
17710};
17711
17712/* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of
17713 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE
17714 * to indicate scan status and samples received from hardware.
17715 *
17716 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute
17717 *
17718 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute.
17719 * Indicates completion status, either the scan is successful or a timeout
17720 * is issued by the driver.
17721 * See enum qca_wlan_vendor_spectral_scan_complete_status.
17722 *
17723 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32
17724 * attribute. Number of spectral samples received after the scan has started.
17725 */
17726enum qca_wlan_vendor_attr_spectral_scan_complete {
17727 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0,
17728 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1,
17729 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2,
17730
17731 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST,
17732 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX =
17733 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1,
17734};
17735
Sunil Ravi7f769292024-07-23 22:21:32 +000017736/**
17737 * enum qca_wlan_vendor_async_get_station_attr - Attribute values for
17738 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command.
17739 *
17740 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to
17741 * configure the driver to enable/disable reporting
17742 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable.
17743 * This is required in a command.
17744 *
17745 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is
17746 * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event.
17747 * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC
17748 * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see
17749 * enum nl80211_sta_info.
17750 */
17751enum qca_wlan_vendor_async_get_station_attr {
17752 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0,
17753 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1,
17754 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2,
17755
17756 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST,
17757 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX =
17758 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1,
17759};
17760
17761/* enum qca_wlan_vendor_ap_suspend_state - Attribute values for
17762 * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE.
17763 *
17764 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used
17765 * with a command, the driver resumes AP with the same configuration that was
17766 * applied earlier and starts all TX/RX operations. When used in an event,
17767 * indicates the AP interface resumed.
17768 *
17769 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this
17770 * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP
17771 * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE
17772 * or AP stop/teardown operations. When used in an event, indicates the AP
17773 * interface suspended.
17774 */
17775enum qca_wlan_vendor_ap_suspend_state {
17776 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0,
17777 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1,
17778};
17779
17780/* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for
17781 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state.
17782 *
17783 * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify
17784 * suspend state defined in enum qca_wlan_vendor_ap_suspend_state.
17785 */
17786enum qca_wlan_vendor_attr_ap_suspend {
17787 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0,
17788 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1,
17789
17790 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST,
17791 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX =
17792 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1,
17793};
17794
17795/**
17796 * enum qca_traffic_type - Traffic types into which the flows can be classified.
17797 * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming
17798 * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming
17799 * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call
17800 * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call
17801 * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share
17802 * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown
17803 * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type
17804 */
17805enum qca_traffic_type {
17806 QCA_TRAFFIC_TYPE_STREAMING = 0,
17807 QCA_TRAFFIC_TYPE_GAMING = 1,
17808 QCA_TRAFFIC_TYPE_VOICE_CALL = 2,
17809 QCA_TRAFFIC_TYPE_VIDEO_CALL = 3,
17810 QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4,
17811 QCA_TRAFFIC_TYPE_UNKNOWN = 5,
17812 QCA_TRAFFIC_TYPE_INVALID = 6,
17813};
17814
17815/**
17816 * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify
17817 * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL.
17818 *
17819 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow
17820 *
17821 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow
17822 */
17823enum qca_wlan_vendor_flow_tuple_proto {
17824 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0,
17825 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1,
17826};
17827
17828/**
17829 * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a
17830 * flow tuple.
17831 *
17832 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute
17833 * indicates the source IPv4 address (in network byte order).
17834 *
17835 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute
17836 * indicates the destination IPv4 address (in network byte order).
17837 *
17838 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY
17839 * attribute of 16 bytes length that indicates the source IPv6 address
17840 * (in network byte order) for a flow.
17841 *
17842 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY
17843 * attribute of 16 bytes length that indicates the destination IPv6 address
17844 * (in network byte order) for a flow.
17845 *
17846 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates
17847 * the TCP/UDP source port.
17848 *
17849 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates
17850 * the TCP/UDP destination port.
17851 *
17852 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates
17853 * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto.
17854 *
17855 * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR
17856 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR.
17857 * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR
17858 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR.
17859 */
17860enum qca_wlan_vendor_attr_flow_tuple {
17861 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0,
17862 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1,
17863 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2,
17864 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3,
17865 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4,
17866 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5,
17867 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6,
17868 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7,
17869
17870 /* keep last */
17871 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST,
17872 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX =
17873 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1,
17874};
17875
17876/**
17877 * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify
17878 * TX/RX sample for one window.
17879 *
17880 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates
17881 * the total number of uplink/downlink bytes within the sampling window.
17882 *
17883 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates
17884 * the total number of packets (uplink/downlink) within the sampling window.
17885 *
17886 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute
17887 * indicates the minimum uplink/downlink packet size (in bytes) during the
17888 * sampling window.
17889 *
17890 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute
17891 * indicates the maximum uplink/downlink packet size (in bytes) during the
17892 * sampling window.
17893 *
17894 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute
17895 * indicates the minimum uplink/downlink packet IAT (inter-arrival time)
17896 * in microseconds, during the sampling window.
17897 *
17898 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute
17899 * indicates the maximum uplink/downlink packet IAT (inter-arrival time)
17900 * in microseconds, during the sampling window.
17901 *
17902 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute
17903 * indicates the sum of all the values of uplink/downlink packet IAT
17904 * (inter-arrival time) in microseconds, during the sampling window.
17905 * This attribute is used to calculate the mean packet (inter-arrival time)
17906 * during the sampling window.
17907 */
17908enum qca_wlan_vendor_attr_txrx_stats {
17909 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0,
17910 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1,
17911 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2,
17912 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3,
17913 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4,
17914 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5,
17915 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6,
17916 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7,
17917
17918 /* keep last */
17919 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST,
17920 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX =
17921 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1,
17922};
17923
17924/**
17925 * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes
17926 * to specify the TX/RX statistics collected in a sampling window.
17927 *
17928 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32
17929 * attribute indicates window size for packet TX/RX sampling (in milliseconds).
17930 *
17931 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested
17932 * attribute containing the uplink TX/RX packet statistics for a flow. Uses the
17933 * enum qca_wlan_vendor_attr_txrx_stats.
17934 *
17935 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested
17936 * attribute containing the downlink TX/RX packet statistics for a flow. Uses
17937 * the enum qca_wlan_vendor_attr_txrx_stats.
17938 */
17939enum qca_wlan_vendor_attr_txrx_samples_windows {
17940 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0,
17941 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1,
17942 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2,
17943 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3,
17944
17945 /* keep last */
17946 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST,
17947 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX =
17948 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1,
17949};
17950
17951/**
17952 * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify
17953 * a TX/RX sample.
17954 *
17955 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested
17956 * attributes that indicates the TX/RX samples in multiple overlapping windows.
17957 * This uses the attributes defined by
17958 * enum qca_wlan_vendor_attr_txrx_samples_windows.
17959 */
17960enum qca_wlan_vendor_attr_txrx_samples {
17961 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0,
17962 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1,
17963
17964 /* keep last */
17965 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST,
17966 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX =
17967 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1,
17968};
17969
17970/**
17971 * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify
17972 * burst statistics.
17973 *
17974 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute
17975 * indicates minimum burst duration (in milliseconds) during the sampling
17976 * window.
17977 *
17978 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute
17979 * indicates maximum burst duration (in milliseconds) during the sampling
17980 * window.
17981 *
17982 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute
17983 * indicates the sum of all the values of burst duration (in milliseconds)
17984 * during the sampling window. This attribute is used to calculate the mean
17985 * burst duration (in milliseconds) during the sampling window.
17986 *
17987 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute
17988 * indicates minimum burst size (in bytes) during the sampling window.
17989 *
17990 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute
17991 * indicates maximum burst size (in bytes) during the sampling window.
17992 *
17993 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute
17994 * indicates the sum of all the values of burst size (in bytes) during the
17995 * sampling window. This attribute is used to calculate the mean burst size
17996 * (in bytes) during the sampling window.
17997 *
17998 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute
17999 * indicates the number of bursts during the sampling window.
18000 */
18001enum qca_wlan_vendor_attr_burst_stats {
18002 QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0,
18003 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1,
18004 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2,
18005 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3,
18006 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4,
18007 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5,
18008 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6,
18009 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7,
18010
18011 /* keep last */
18012 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST,
18013 QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX =
18014 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1,
18015};
18016
18017/**
18018 * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify
18019 * a burst sample.
18020 *
18021 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute
18022 * indicates the uplink and downlink packet statistics collected in a
18023 * sampling window, containing attributes defined in
18024 * enum qca_wlan_vendor_attr_txrx_samples_windows.
18025 *
18026 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute
18027 * indicates the uplink burst stats, containing attributes defined in
18028 * enum qca_wlan_vendor_attr_burst_stats.
18029 *
18030 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute
18031 * indicates the downlink burst stats, containing attributes defined in
18032 * enum qca_wlan_vendor_attr_burst_stats.
18033 */
18034enum qca_wlan_vendor_attr_burst_sample {
18035 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0,
18036 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1,
18037 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2,
18038 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3,
18039
18040 /* keep last */
18041 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST,
18042 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX =
18043 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1,
18044};
18045
18046/**
18047 * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by
18048 * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and
18049 * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS.
18050 *
18051 * Presence of one of the attributes
18052 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and
18053 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory.
18054 *
18055 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute
18056 * containing the flow tuple of the flow for which the statistics are being
18057 * reported.
18058 * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple.
18059 *
18060 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute
18061 * indicates the traffic type classified for this flow tuple. Uses the
18062 * enum qca_traffic_type values.
18063 * This attribute is mandatory for the command
18064 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT.
18065 *
18066 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute
18067 * containing nested array of TX/RX samples defined in
18068 * enum qca_wlan_vendor_attr_txrx_samples.
18069 *
18070 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute
18071 * indicates the packet burst statistics for a flow. Uses attributes defined by
18072 * enum qca_wlan_vendor_attr_burst_sample.
18073 */
18074enum qca_wlan_vendor_attr_flow_stats {
18075 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0,
18076 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1,
18077 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2,
18078 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3,
18079 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4,
18080
18081 /* keep last */
18082 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST,
18083 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX =
18084 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1,
18085};
18086
18087/**
18088 * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to
18089 * specify the flow classification result. This enum is used by
18090 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT.
18091 *
18092 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested
18093 * attribute containing attributes defined by
18094 * enum qca_wlan_vendor_attr_flow_tuple.
18095 *
18096 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8
18097 * attribute indicates the traffic type learned for this flow tuple. Uses the
18098 * enum qca_traffic_type values.
18099 */
18100enum qca_wlan_vendor_attr_flow_classify_result {
18101 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0,
18102 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1,
18103 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2,
18104
18105 /* keep last */
18106 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST,
18107 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX =
18108 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1,
18109};
18110
18111/**
18112 * enum qca_async_stats_sub_module - The statistics type used in async
18113 * statistics policy.
18114 * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE.
18115 *
18116 * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics
18117 *
18118 * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics
18119 *
18120 * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics
18121 */
18122enum qca_async_stats_type {
18123 QCA_ASYNC_STATS_TYPE_POWERSAVE = 0,
18124 QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1,
18125 QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2,
18126};
18127
18128/**
18129 * enum qca_async_stats_action - ASYNC statistics action. Used by
18130 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION.
18131 *
18132 * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics
18133 * collection.
18134 * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics
18135 * collection.
18136 */
18137enum qca_async_stats_action {
18138 QCA_ASYNC_STATS_ACTION_START = 0,
18139 QCA_ASYNC_STATS_ACTION_STOP = 1,
18140};
18141
18142/**
18143 * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to
18144 * specify the ASYNC statistics policy. This enum is used by
18145 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY.
18146 *
18147 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8
18148 * attribute indicates the statistics type for which the async statistics policy
18149 * needs to be applied by the driver. Uses the enum qca_async_stats_type values.
18150 *
18151 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute
18152 * indicates the action as part of this policy.
18153 * Uses the enum qca_async_stats_action values.
18154 *
18155 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32
18156 * attribute indicates the periodicity (in milliseconds) for the statistics to
18157 * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE.
18158 */
18159enum qca_wlan_vendor_attr_async_stats_policy {
18160 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0,
18161 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1,
18162 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2,
18163 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3,
18164
18165 /* keep last */
18166 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST,
18167 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX =
18168 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1,
18169};
18170
18171/**
18172 * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by
18173 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT.
18174 *
18175 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This
18176 * represents the number of spatial streams.
18177 *
18178 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This
18179 * represents the number of MSDU packets transmitted with the number of spatial
18180 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
18181 *
18182 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This
18183 * represents the number of MSDU packets received with the number of spatial
18184 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
18185 */
18186enum qca_wlan_vendor_attr_nss_pkt {
18187 QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0,
18188 QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1,
18189 QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2,
18190 QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3,
18191
18192 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST,
18193 QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX =
18194 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1,
18195};
18196
18197/**
18198 * enum qca_wlan_intf_offload_type - Definition of available values for
18199 * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for
18200 * packets handled through a network device.
18201 *
18202 * There are three offload paths possible for handling packet forwarding between
18203 * Ethernet and Wi-Fi network, and which path to use can be configured on a per
18204 * netdevice level based on use case. Userspace can choose different options
18205 * based on use cases like performance requirements, traffic control features
18206 * and limitations provided in each option.
18207 *
18208 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured.
18209 * Packets are processed through the Linux kernel networking stack.
18210 *
18211 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through
18212 * the shortcut forwarding engine (SFE) to bypass the Linux networking stack
18213 * for improved throughput performance. This option is applicable for AP, STA,
18214 * and Mesh mode and available for all radio designs. From the performance
18215 * aspect, this option consumes more CPU compared to the other two options.
18216 * Linux traffic control can be further applied with this option to have more
18217 * control on the traffic flows.
18218 *
18219 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed
18220 * through both hardware and software in this case. Packet classification is
18221 * done by the hardware and then the packets are delivered to software along
18222 * with classification results as meta data. Software can choose to do more
18223 * classification/QoS based on use cases. This is applicable for AP, STA, and
18224 * Mesh modes and this is available for all radio designs. From the performance
18225 * aspect, this option consumes relatively less CPU compared to the SFE option
18226 * above. Linux traffic control rules cannot be applied with this option.
18227 *
18228 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through
18229 * special hardware (Direct Switch) rings which can directly forward the packets
18230 * between Ethernet hardware and Wi-Fi hardware with very little software
18231 * involvement. This is applicable only for AP and STA modes; not applicable
18232 * for Mesh mode. From the performance aspect, this option consumes very much
18233 * less CPU compared to the other options. Linux traffic control rules cannot be
18234 * applied when this option is used. This option is applicable only for
18235 * specific radio designs. When this option is not available, the default option
18236 * (SFE) would be configured.
18237 */
18238enum qca_wlan_intf_offload_type {
18239 QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0,
18240 QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1,
18241 QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2,
18242 QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3,
18243};
18244
18245/**
18246 * enum qca_wlan_vendor_attr_usd_op_type: Attribute values for
18247 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE to the vendor subcmd
18248 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a mandatory u8 attribute which
18249 * represents the USD command type.
18250 *
18251 * @QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH: Indicates USD tear down of all active
18252 * publish and subscribe sessions.
18253 *
18254 * @QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH: Indicates USD solicited publish
18255 * operation that enables to offer a service for other devices based on
18256 * given parameters.
18257 *
18258 * @QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE: Indicates USD active subscribe
18259 * operation that requests for a given service with given parameters from
18260 * other devices that offer the service.
18261 *
18262 * @QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH: Indicates update of an instance
18263 * of the publish function of given publish id.
18264 *
18265 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH: Indicates cancellation of an
18266 * instance of the publish function.
18267 *
18268 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE: Indicates cancellation of an
18269 * instance of the subscribe function.
18270 */
18271enum qca_wlan_vendor_attr_an_usd_op_type {
18272 QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH = 0,
18273 QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH = 1,
18274 QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE = 2,
18275 QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH = 3,
18276 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH = 4,
18277 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE = 5,
18278};
18279
18280/**
18281 * enum qca_wlan_vendor_attr_usd_service_protocol_type: Attribute values for
18282 * %QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE to the vendor subcmd
18283 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a u8 attribute which represents the
18284 * USD service protocol type for service specific information.
18285 *
18286 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR: Indicates SSI info is
18287 * of type Bonjour
18288 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC: Indicates SSI info is
18289 * of type generic
18290 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER: Indicates SSI info
18291 * is of type CSA/Matter
18292 */
18293enum qca_wlan_vendor_attr_usd_service_protocol_type {
18294 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR = 1,
18295 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC = 2,
18296 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER = 3,
18297};
18298
18299/**
18300 * enum qca_wlan_vendor_attr_usd_chan_config - Attributes used inside nested
18301 * attribute %QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG.
18302 *
18303 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ: Required
18304 * u32 attribute containing the default channel frequency (MHz).
18305 *
18306 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST: Optional array of channel
18307 * frequencies in MHz (u32) to publish or subscribe.
18308 */
18309enum qca_wlan_vendor_attr_usd_chan_config {
18310 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_INVALID = 0,
18311 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ = 1,
18312 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST = 2,
18313
18314 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST,
18315 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_MAX =
18316 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST - 1,
18317};
18318
18319/**
18320 * enum qca_wlan_vendor_attr_usd_status
18321 *
18322 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS: USD request success status.
18323 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED: USD request failed status.
18324 */
18325enum qca_wlan_vendor_attr_usd_status {
18326 QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS,
18327 QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED,
18328};
18329
18330/* enum qca_wlan_vendor_attr_usd: Attributes used by vendor command
18331 * %QCA_NL80211_VENDOR_SUBCMD_USD.
18332 *
18333 * @QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR: 6-byte source MAC address
18334 * Mandatory attribute used with type
18335 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18336 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18337 *
18338 * @QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE: Required u8 attribute.
18339 * It indicates the type of the USD command. It uses values defined in enum
18340 * qca_wlan_vendor_attr_usd_op_type.
18341 *
18342 * @QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID: Required u8 attribute.
18343 * It contains the publisher/subscribe id that is specific to the
18344 * publish/subscribe instance.
18345 *
18346 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID: Required 6-byte attribute.
18347 * It contains the service id that is specific to the service being
18348 * published/subscribed.
18349 *
18350 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE: u8 attribute that indicates
18351 * the service protocol type of service specific info. It uses values
18352 * defined in enum qca_wlan_vendor_attr_usd_service_protocol_type. It is
18353 * applicable when %QCA_WLAN_VENDOR_ATTR_USD_SSI is present.
18354 *
18355 * @QCA_WLAN_VENDOR_ATTR_USD_SSI: u8 array containing service specific
18356 * information that has to be conveyed in publish/subscribe message.
18357 * Optional attribute used with type
18358 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH,
18359 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE, and
18360 * %QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH.
18361 *
18362 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG: Nested attribute containing USD
18363 * channel configuration parameters.
18364 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18365 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18366 * See enum qca_wlan_vendor_attr_usd_chan_config for nested attributes.
18367 *
18368 * @QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER: u8 array containing a USD
18369 * element container buffer that has to be conveyed in publish/subscribe
18370 * message.
18371 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18372 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18373 *
18374 * @QCA_WLAN_VENDOR_ATTR_USD_TTL: u16 attribute. Indicates the timeout
18375 * for each request in seconds. Timeout value 0 represents single time
18376 * operation.
18377 *
18378 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS: u8 attribute. Status received in event
18379 * indicating whether the underlying driver/firmware has started the USD
18380 * operation as indicated by attributes
18381 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE and
18382 * %QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID.
18383 * enum qca_wlan_vendor_attr_usd_status indicates status values.
18384 */
18385enum qca_wlan_vendor_attr_usd {
18386 QCA_WLAN_VENDOR_ATTR_USD_INVALID = 0,
18387 QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR = 1,
18388 QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE = 2,
18389 QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID = 3,
18390 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID = 4,
18391 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE = 5,
18392 QCA_WLAN_VENDOR_ATTR_USD_SSI = 6,
18393 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG = 7,
18394 QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER = 8,
18395 QCA_WLAN_VENDOR_ATTR_USD_TTL = 9,
18396 QCA_WLAN_VENDOR_ATTR_USD_STATUS = 10,
18397
18398 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST,
18399 QCA_WLAN_VENDOR_ATTR_USD_MAX =
18400 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST - 1,
18401};
18402
Sunil Ravic0f5d412024-09-11 22:12:49 +000018403/**
18404 * enum qca_wlan_audio_transport_switch_type - Represents the possible transport
18405 * switch types.
18406 *
18407 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
18408 * via non-WLAN transport (e.g., Bluetooth).
18409 *
18410 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
18411 * WLAN transport.
18412 */
18413enum qca_wlan_audio_transport_switch_type {
18414 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
18415 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
18416};
18417
18418/**
18419 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
18420 * transport switch request.
18421 *
18422 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
18423 * has been rejected. For example, when transport switch is requested from WLAN
18424 * to non-WLAN transport, user space modules and peers would evaluate the switch
18425 * request and may not be ready for switch and hence switch to non-WLAN
18426 * transport gets rejected.
18427 *
18428 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch
18429 * transport has been completed. This is sent only in the command path. For
18430 * example, when the driver had requested for audio transport switch and
18431 * userspace modules as well as peers are ready for the switch, userspace module
18432 * switches the transport and sends the subcommand with status completed to the
18433 * driver.
18434 */
18435enum qca_wlan_audio_transport_switch_status {
18436 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
18437 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
18438};
18439
18440/**
18441 * enum qca_wlan_audio_transport_switch_reason - Represents the reason of audio
18442 * transport switch request.
18443 *
18444 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING: Requester transport is
18445 * terminating. After this indication, requester module may not be available to
18446 * process further request on its transport. For example, to handle a high
18447 * priority concurrent interface, WLAN transport needs to terminate and hence
18448 * indicates switch to a non-WLAN transport with reason terminating. User space
18449 * modules switch to non-WLAN immediately without waiting for further
18450 * confirmation.
18451 */
18452enum qca_wlan_audio_transport_switch_reason {
18453 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING = 0,
18454};
18455
18456/**
18457 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
18458 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
18459 *
18460 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
18461 * the transport switch type from one of the values in enum
18462 * qca_wlan_audio_transport_switch_type. This is mandatory attribute in both
18463 * command and event path. This attribute is included in both requests and
18464 * responses.
18465 *
18466 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
18467 * the transport switch status from one of the values in enum
18468 * qca_wlan_audio_transport_switch_status. This is optional attribute and used
18469 * in both command and event path. This attribute must not be included in
18470 * requests.
18471 *
18472 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON: u8 attribute. Indicates
18473 * the transport switch reason from one of the values in enum
18474 * qca_wlan_audio_transport_switch_reason. This is optional attribute and used
18475 * in both command and event path.
18476 */
18477enum qca_wlan_vendor_attr_audio_transport_switch {
18478 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
18479 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
18480 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
18481 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON = 3,
18482
18483 /* keep last */
18484 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
18485 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
18486 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
18487};
18488
18489
18490/**
18491 * enum qca_wlan_connect_ext_features - Feature flags for
18492 * %QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES
18493 *
18494 * @QCA_CONNECT_EXT_FEATURE_RSNO: Flag attribute. This indicates supplicant
18495 * support for RSN overriding. The driver shall enable RSN overriding in the
18496 * (re)association attempts only if this flag is indicated. This functionality
18497 * is available only when the driver indicates support for
18498 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA.
18499 *
18500 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits.
18501 */
18502enum qca_wlan_connect_ext_features {
18503 QCA_CONNECT_EXT_FEATURE_RSNO = 0,
18504 NUM_QCA_CONNECT_EXT_FEATURES /* keep last */
18505};
18506
18507/* enum qca_wlan_vendor_attr_connect_ext: Attributes used by vendor command
18508 * %QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT.
18509 *
18510 * @QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES: Feature flags contained in a byte
18511 * array. The feature flags are identified by their bit index (see &enum
18512 * qca_wlan_connect_ext_features) with the first byte being the least
18513 * significant one and the last one being the most significant one.
18514 */
18515enum qca_wlan_vendor_attr_connect_ext {
18516 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_INVALID = 0,
18517 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES = 1,
18518
18519 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST,
18520 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_MAX =
18521 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST - 1,
18522};
18523
18524/**
18525 * enum qca_wlan_vendor_p2p_mode - Defines the values used with
18526 * %QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG.
18527 *
18528 * @QCA_P2P_MODE_WFD_R1: Wi-Fi Direct R1 only.
18529 * @QCA_P2P_MODE_WFD_R2: Wi-Fi Direct R2 only.
18530 * @QCA_P2P_MODE_WFD_PCC: P2P Connection Compatibility Mode which supports both
18531 * Wi-Fi Direct R1 and R2.
18532 */
18533enum qca_wlan_vendor_p2p_mode {
18534 QCA_P2P_MODE_WFD_R1 = 0,
18535 QCA_P2P_MODE_WFD_R2 = 1,
18536 QCA_P2P_MODE_WFD_PCC = 2,
18537};
18538
18539/* enum qca_wlan_vendor_attr_set_p2p_mode: Attributes used by vendor command
18540 * %QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE.
18541 *
18542 * @QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG: u8 attribute. Sets the P2P device
18543 * mode. The values used are defined in enum qca_wlan_vendor_p2p_mode.
18544 * This configuration is valid until the interface is brought up next time after
18545 * this configuration and the driver shall use this configuration only when the
18546 * interface is brought up in NL80211_IFTYPE_P2P_GO mode.
18547 * When this parameter has not been set, the interface is brought up with
18548 * Wi-Fi Direct R1 only configuration by default.
18549 */
18550enum qca_wlan_vendor_attr_set_p2p_mode {
18551 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_INVALID = 0,
18552 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG = 1,
18553
18554 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST,
18555 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_MAX =
18556 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST - 1,
18557};
18558
18559/**
18560 * enum qca_wlan_vendor_attr_chan_usage_req_chan_list: Attributes used inside
18561 * nested attributes %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST.
18562 *
18563 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN: u8 attribute. Indicates
18564 * the channel number of the channel list entry.
18565 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS: u8 attribute.
18566 * Indicates the operating class of the channel list entry.
18567 */
18568enum qca_wlan_vendor_attr_chan_usage_req_chan_list {
18569 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_INVALID = 0,
18570 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN = 1,
18571 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS = 2,
18572
18573 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST,
18574 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_MAX =
18575 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST - 1,
18576};
18577
18578/**
18579 * enum qca_wlan_vendor_attr_chan_usage_req_mode: Defines the values used
18580 * with %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE.
18581 *
18582 * @QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION: Mode set by STA to indicate
18583 * the AP about its unavailability during a peer-to-peer TWT agreement.
18584 *
18585 * @QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ: Mode set by the STA that is in a
18586 * channel-usage-aidable BSS to request a channel switch. Other Channel Usage
18587 * elements are not required. Optional HT/VHT/HE Capabilities are present.
18588 */
18589enum qca_wlan_vendor_attr_chan_usage_req_mode {
18590 QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION = 3,
18591 QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ = 4,
18592};
18593
18594/**
18595 * enum qca_wlan_vendor_attr_chan_usage_req: Attributes used by vendor command
18596 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ.
18597 *
18598 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE: Required u8 attribute. Identifies
18599 * the usage of the channel list entry provided in the channel usage request.
18600 * Channel switch request and unavailability channel usage modes are
18601 * configured on a STA/P2P Client.
18602 * See enum qca_wlan_vendor_attr_chan_usage_req_mode for attribute values.
18603 * See IEEE P802.11-REVme/D7.0, 9.4.2.84, Table 9-268 for more information.
18604 *
18605 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST: Required array of nested
18606 * attributes containing channel usage parameters.
18607 * Required when channel usage mode is Channel-usage-aidable BSS channel
18608 * switch request.
18609 * See enum qca_wlan_vendor_attr_req_chan_list for nested attributes.
18610 *
18611 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS: Nested
18612 * attribute representing the parameters configured for unavailability
18613 * indication. Required when channel usage mode is unavailability indication.
18614 *
18615 * Below attributes from enum qca_wlan_vendor_attr_twt_setup are used inside
18616 * this nested attribute:
18617 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE,
18618 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE,
18619 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER,
18620 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE,
18621 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP,
18622 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION,
18623 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION,
18624 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
18625 */
18626enum qca_wlan_vendor_attr_chan_usage_req {
18627 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_INVALID = 0,
18628 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE = 1,
18629 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST = 2,
18630 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS = 3,
18631
18632 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST,
18633 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MAX =
18634 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST - 1,
18635};
18636
Sunil Ravi79e6c4f2025-01-04 00:47:06 +000018637/**
18638 * enum qca_wlan_fw_scan_bss_flags - Flags for
18639 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS
18640 *
18641 * @QCA_WLAN_FW_SCAN_BSS_HT_OPS: This indicates HT Operation element
18642 * (IEEE Std 802.11-2020, 9.4.2.56) is present in the Beacon or Probe Response
18643 * frame of the BSS.
18644 *
18645 * @QCA_WLAN_FW_SCAN_BSS_VHT_OPS: This indicates VHT Operation element
18646 * (IEEE Std 802.11-2020, 9.4.2.158) is present in the Beacon or Probe Response
18647 * frame of the BSS.
18648 *
18649 * @QCA_WLAN_FW_SCAN_BSS_HE_OPS: This indicates HE Operation element
18650 * (IEEE Std 802.11ax-2021, 9.4.2.249) is present in the Beacon or Probe
18651 * Response frame of the BSS.
18652 *
18653 * @QCA_WLAN_FW_SCAN_BSS_EHT_OPS: This indicates EHT Operation element
18654 * (IEEE P802.11be/D7.0, 9.4.2.321) is present in the Beacon or Probe Response
18655 * frame of the BSS.
18656 *
18657 * @QCA_WLAN_FW_SCAN_BSS_FTM_RESPONDER: This indicates Fine Timing Measurement
18658 * Responder bit is set to 1 in the Extended Capabilities field of the Extended
18659 * Capabilities element (IEEE Std 802.11-2020, 9.4.2.26) in the Beacon or Probe
18660 * Response frame of the BSS.
18661 *
18662 * @NUM_QCA_WLAN_FW_SCAN_BSS_FLAGS: Number of assigned feature bits.
18663 */
18664enum qca_wlan_fw_scan_bss_flags {
18665 QCA_WLAN_FW_SCAN_BSS_HT_OPS = 0,
18666 QCA_WLAN_FW_SCAN_BSS_VHT_OPS = 1,
18667 QCA_WLAN_FW_SCAN_BSS_HE_OPS = 2,
18668 QCA_WLAN_FW_SCAN_BSS_EHT_OPS = 3,
18669 QCA_WLAN_FW_SCAN_BSS_FTM_RESPONDER = 4,
18670
18671 NUM_QCA_WLAN_FW_SCAN_BSS_FLAGS /* keep last */
18672};
18673
18674/* enum qca_wlan_vendor_attr_fw_scan_bss: Attributes used inside
18675 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST nested attribute.
18676 *
18677 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MS_AGO: Required (u32). Indicates how many
18678 * milliseconds ago from %QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP this BSS
18679 * was last scanned (i.e., Beacon or Probe Response frame received).
18680 *
18681 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_BSSID: Required (6-byte MAC address). BSSID
18682 * of the BSS.
18683 *
18684 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_SSID: Required (binary attribute,
18685 * 0..32 octets). SSID of the BSS.
18686 *
18687 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_RSSI: Required (s8). RSSI of the last
18688 * received Beacon or Probe Response frame.
18689 *
18690 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CAPABILITY: Required (CPU byte order, u16).
18691 * The Capability Information field from the last received Beacon or Probe
18692 * Response frame.
18693 *
18694 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS: BSS capability flags contained in a
18695 * byte array. The flags are identified by their bit index (see &enum
18696 * qca_wlan_fw_scan_bss_flags) with the first byte being the least significant
18697 * one and the last one being the most significant one. This information will be
18698 * populated from the last received Beacon or Probe Response frame. This is a
18699 * mandatory attribute.
18700 *
18701 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_PRIMARY_FREQ: Required (u32). Indicates
18702 * primary 20 MHz channel center frequency in MHz of the BSS.
18703 *
18704 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH: Required (u8). Indicates
18705 * channel width of the BSS. This uses values defined in
18706 * enum nl80211_chan_width.
18707 *
18708 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ1: Required (u32). Indicates the
18709 * center frequency (MHz) of the first segment.
18710 *
18711 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ2: Optional (u32). Indicates the
18712 * center frequency (MHz) of the second segment. Used only for
18713 * %NL80211_CHAN_WIDTH_80P80 value in
18714 * %QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH.
18715 */
18716enum qca_wlan_vendor_attr_fw_scan_bss {
18717 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_INVALID = 0,
18718 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MS_AGO = 1,
18719 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_BSSID = 2,
18720 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_SSID = 3,
18721 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_RSSI = 4,
18722 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CAPABILITY = 5,
18723 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_FLAGS = 6,
18724 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_PRIMARY_FREQ = 7,
18725 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CHAN_WIDTH = 8,
18726 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ1 = 9,
18727 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_CENTER_FREQ2 = 10,
18728
18729 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_AFTER_LAST,
18730 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_MAX =
18731 QCA_WLAN_VENDOR_ATTR_FW_SCAN_BSS_AFTER_LAST - 1,
18732};
18733
18734/* enum qca_wlan_vendor_attr_fw_scan_report: Attributes used by vendor command
18735 * %QCA_NL80211_VENDOR_SUBCMD_GET_FW_SCAN_REPORT.
18736 *
18737 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP: 64-bit unsigned value to
18738 * indicate the timestamp when this report is generated, timestamp in
18739 * microseconds from system boot. A mandatory attribute.
18740 *
18741 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_FREQ_LIST: Nested attribute of u32
18742 * attributes. This indicates the list of frequencies that were scanned. This is
18743 * an optional attribute. If this is not specified, all frequencies allowed in
18744 * the current regulatory domain were scanned.
18745 *
18746 * @QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST: Nested attribute.
18747 * This indicates information of the scanned BSSs by the firmware. This is an
18748 * optional attribute.
18749 *
18750 * The attributes defined in enum qca_wlan_vendor_attr_fw_scan_bss are nested
18751 * in this attribute.
18752 */
18753enum qca_wlan_vendor_attr_fw_scan_report {
18754 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_INVALID = 0,
18755 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_TIMESTAMP = 1,
18756 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_FREQ_LIST = 2,
18757 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_BSS_LIST = 3,
18758
18759 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_AFTER_LAST,
18760 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_MAX =
18761 QCA_WLAN_VENDOR_ATTR_FW_SCAN_REPORT_AFTER_LAST - 1,
18762};
18763
18764/*
18765 * enum qca_wlan_idle_shutdown_status: Represents idle shutdown status.
18766 *
18767 * @QCA_WLAN_IDLE_SHUTDOWN_STARTED: Indicates idle shutdown is started in the
18768 * host driver.
18769 * @QCA_WLAN_IDLE_SHUTDOWN_COMPLETED: Indicates idle shutdown is completed in
18770 * the host driver.
18771 */
18772enum qca_wlan_idle_shutdown_status {
18773 QCA_WLAN_IDLE_SHUTDOWN_STARTED = 0,
18774 QCA_WLAN_IDLE_SHUTDOWN_COMPLETED = 1,
18775};
18776
18777/*
18778 * enum qca_wlan_vendor_attr_idle_shutdown: Attributes used by vendor event
18779 * %QCA_NL80211_VENDOR_SUBCMD_IDLE_SHUTDOWN.
18780 *
18781 * @QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_STATUS: Required u8 attribute. Indicates
18782 * the status of the idle shutdown from one of the values in enum
18783 * qca_wlan_idle_shutdown_status.
18784 */
18785enum qca_wlan_vendor_attr_idle_shutdown {
18786 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_INVALID = 0,
18787 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_STATUS = 1,
18788
18789 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_AFTER_LAST,
18790 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_MAX =
18791 QCA_WLAN_VENDOR_ATTR_IDLE_SHUTDOWN_AFTER_LAST - 1,
18792};
18793
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080018794#endif /* QCA_VENDOR_H */