blob: 5dab120d0e162fa6da029a7410d692ecbbb2ff64 [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
233 * the possible features.
Dmitry Shmidt7f656022015-02-25 14:36:37 -0800234 *
235 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
236 * which supports DFS offloading, to indicate a channel availability check
237 * start.
238 *
239 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
240 * which supports DFS offloading, to indicate a channel availability check
241 * completion.
242 *
243 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
244 * which supports DFS offloading, to indicate that the channel availability
245 * check aborted, no change to the channel status.
246 *
247 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
248 * driver, which supports DFS offloading, to indicate that the
249 * Non-Occupancy Period for this channel is over, channel becomes usable.
250 *
251 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
252 * which supports DFS offloading, to indicate a radar pattern has been
253 * detected. The channel is now unusable.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700254 *
Hai Shalom81f62d82019-07-22 12:10:00 -0700255 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
256 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
257 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +0000258 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
259 * configure various wiphy or interface level configurations. Attributes
260 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
261 * or more configuration attributes with a single command. The driver
262 * accepts the command only if all the configurations are known, otherwise
263 * it rejects the command. The driver returns success only if processing of
264 * all the configurations succeeds. The driver continues to process all the
265 * configurations even if processing of some configurations failed and
266 * returns the last error occurred while processing the failed
267 * configurations.
268 *
269 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
270 * get the current values of the various wiphy or interface level
271 * configurations. Attributes are defined in enum
272 * qca_wlan_vendor_attr_config. Userspace needs to specify the
273 * configuration attributes for which it wants to get the values in the
274 * command, there is no significance for the value sent in the attribute
275 * unless explicitly specified in the corresponding configuration
276 * attribute documentation. The driver accepts the command only if all the
277 * configurations are known, otherwise it rejects the command. The driver
278 * returns success only if fetching of all configuration values succeeds
279 * and indicates the configuration values in corresponding attributes in
280 * the response. The driver continues to process all the configurations
281 * even if processing of some configurations failed and returns the last
282 * error occurred while processing the failed configurations.
283 *
Roshan Pius3a1667e2018-07-03 15:17:14 -0700284 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
285 * based on enum wifi_logger_supported_features. Attributes defined in
286 * enum qca_wlan_vendor_attr_get_logger_features.
287 *
288 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
289 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
290 * attribute for this command. Attributes defined in
291 * enum qca_wlan_vendor_attr_wifi_logger_start.
292 *
293 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
294 * capabilities of the driver, parameters includes the attributes defined
295 * in enum qca_wlan_vendor_attr_tdls_get_capabilities.
296 *
297 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
298 * sending of certain periodic IP packet to firmware, attributes defined in
299 * enum qca_wlan_vendor_attr_offloaded_packets.
300 *
301 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
302 * monitoring, defines min and max RSSI which are configured for RSSI
303 * monitoring. Also used to notify the RSSI breach and provides the BSSID
304 * and RSSI value that was breached. Attributes defined in
305 * enum qca_wlan_vendor_attr_rssi_monitoring.
306 *
307 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
308 * Data Path (NDP) related operations, attributes defined in
309 * enum qca_wlan_vendor_attr_ndp_params.
310 *
311 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
312 * Neighbour Discovery offload, attributes defined in
313 * enum qca_wlan_vendor_attr_nd_offload.
314 *
315 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
316 * configuration parameter for BPF packet filter, attributes defined in
317 * enum qca_wlan_vendor_attr_packet_filter.
318 *
319 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
320 * maximum supported size, attributes defined in
321 * enum qca_wlan_vendor_drv_info.
322 *
323 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
324 * data about wake reasons and datapath IP statistics, attributes defined
325 * in enum qca_wlan_vendor_attr_wake_stats.
326 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700327 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
328 * for IEEE 802.11 communicating outside the context of a basic service
329 * set, called OCB command. Uses the attributes defines in
330 * enum qca_wlan_vendor_attr_ocb_set_config.
331 *
332 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
333 * UTC time. Use the attributes defines in
334 * enum qca_wlan_vendor_attr_ocb_set_utc_time.
335 *
336 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
337 * sending OCB timing advert frames. Uses the attributes defines in
338 * enum qca_wlan_vendor_attr_ocb_start_timing_advert.
339 *
340 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
341 * OCB timing advert. Uses the attributes defines in
342 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
343 *
344 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
345 * timer value. Uses the attributes defines in
346 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
347 *
Hai Shalom74f70d42019-02-11 14:42:39 -0800348 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
349 * link properties of the respective interface. As an event, is used
350 * to notify the connected station's status. The attributes for this
351 * command are defined in enum qca_wlan_vendor_attr_link_properties.
352 *
Hai Shalom899fcc72020-10-19 14:38:18 -0700353 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
354 * to the driver. This command sets the band(s) through either the
355 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
356 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
357 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
358 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
359 * bit unsigned bitmask values. The allowed values for
360 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
361 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
362 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
363 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
364 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes
365 * are included for backwards compatibility, the configurations through
366 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
367 * that support both attributes.
368 *
Hai Shalomc3565922019-10-28 11:58:20 -0700369 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
370 * DFS policy and channel hint for ACS operation. This command uses the
371 * attributes defined in enum qca_wlan_vendor_attr_acs_config and
372 * enum qca_acs_dfs_mode.
373 *
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -0700374 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
375 * start the P2P Listen offload function in device and pass the listen
376 * channel, period, interval, count, device types, and vendor specific
377 * information elements to the device driver and firmware.
378 * Uses the attributes defines in
379 * enum qca_wlan_vendor_attr_p2p_listen_offload.
380 *
381 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
382 * indicate stop request/response of the P2P Listen offload function in
383 * device. As an event, it indicates either the feature stopped after it
384 * was already running or feature has actually failed to start. Uses the
385 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
386 *
387 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
388 * beaconing, this sub command provides the driver, the frequencies on the
389 * 5 GHz band to check for any radar activity. Driver selects one channel
390 * from this priority list provided through
391 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
392 * to check for radar activity on it. If no radar activity is detected
393 * during the channel availability check period, driver internally switches
394 * to the selected frequency of operation. If the frequency is zero, driver
395 * internally selects a channel. The status of this conditional switch is
396 * indicated through an event using the same sub command through
397 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
398 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -0700399 *
400 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
401 * attributes defined in enum qca_wlan_gpio_attr.
402 *
403 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
404 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
405 * capabilities are to be fetched and other
406 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
407 * requested capabilities.
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700408 *
409 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
410 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
411 * command and event.
412 *
413 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
414 * indoor location features. Capabilities are reported in
415 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
416 *
417 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
418 * (fine timing measurement) session with one or more peers.
419 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
420 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
421 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
422 * events will be reported, followed by
423 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
424 * end of session.
425 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
426 *
427 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
428 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
429 * status code indicating session was aborted.
430 *
431 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
432 * results for one peer. Results are reported in
433 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
434 *
435 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
436 * FTM session is finished, either successfully or aborted by
437 * request.
438 *
439 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
440 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
441 * to enable or disable the responder. LCI/LCR reports can be
442 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
443 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
444 * times to update the LCI/LCR reports.
445 *
446 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
447 * arrival) measurement with a single peer. Specify peer MAC address in
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800448 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
449 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
450 * scan results cache and use the frequency from there).
451 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
452 * Measurement result is reported in
Dmitry Shmidt7d175302016-09-06 13:11:34 -0700453 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
454 *
455 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
456 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
457 *
458 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
459 * the AOA measurement result.
460 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
461 * success/failure status is reported in
462 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
463 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
464 * The antenna array(s) used in the measurement are reported in
465 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -0700466 *
467 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
468 * data as per the given parameters.
469 *
470 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
471 * specific chain.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -0800472 *
473 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
474 * configuration for a DMG RF sector. Specify sector index in
475 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
476 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
477 * to return sector information for in
478 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
479 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
480 * exact time where information was captured in
481 * QCA_WLAN_VENDOR_ATTR_TSF.
482 *
483 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
484 * configuration for a DMG RF sector. Specify sector index in
485 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
486 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
487 * for one or more DMG RF modules in
488 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
489 *
490 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
491 * DMG RF sector for a station. This is the sector that the HW
492 * will use to communicate with the station. Specify the MAC address
493 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
494 * needed for unassociated station). Specify sector type to return in
495 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
496 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
497 * Also return the exact time where the information was captured
498 * in QCA_WLAN_VENDOR_ATTR_TSF.
499 *
500 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
501 * selected DMG RF sector for a station. This is the sector that
502 * the HW will use to communicate with the station.
503 * Specify the MAC address of associated station/AP/PCP in
504 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
505 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
506 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
507 * The selected sector will be locked such that it will not be
508 * modified like it normally does (for example when station
509 * moves around). To unlock the selected sector for a station
510 * pass the special value 0xFFFF in the sector index. To unlock
511 * all connected stations also pass a broadcast MAC address.
512 *
513 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
514 * in the host driver. The different TDLS configurations are defined
515 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800516 *
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800517 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
518 * capabilities. The response uses the attributes defined in
519 * enum qca_wlan_vendor_attr_get_he_capabilities.
520 *
Dmitry Shmidtabb90a32016-12-05 15:34:39 -0800521 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
522 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
523 * carries the scan cookie of the corresponding scan request. The scan
524 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
Dmitry Shmidt29333592017-01-09 12:27:11 -0800525 *
526 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
527 * Absorption Rate (SAR) power limits. A critical regulation for
528 * FCC compliance, OEMs require methods to set SAR limits on TX
529 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
530 * attributes are used with this command.
Paul Stewart092955c2017-02-06 09:13:09 -0800531 *
532 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
533 * host driver for offloading the implementation of Auto Channel Selection
534 * (ACS) to an external user space entity. This interface is used as the
535 * event from the host driver to the user space entity and also as the
536 * request from the user space entity to the host driver. The event from
537 * the host driver is used by the user space entity as an indication to
538 * start the ACS functionality. The attributes used by this event are
539 * represented by the enum qca_wlan_vendor_attr_external_acs_event.
540 * User space entity uses the same interface to inform the host driver with
541 * selected channels after the ACS operation using the attributes defined
542 * by enum qca_wlan_vendor_attr_external_acs_channels.
543 *
544 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
545 * requisite information leading to a power save failure. The information
546 * carried as part of this event is represented by the
547 * enum qca_attr_chip_power_save_failure attributes.
548 *
549 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
550 * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
551 *
552 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
553 * statistics are represented by the enum qca_attr_nud_stats_get
554 * attributes.
Dmitry Shmidtebd93af2017-02-21 13:40:44 -0800555 *
556 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
557 * the BSS transition status, whether accept or reject, for a list of
558 * candidate BSSIDs provided by the userspace. This uses the vendor
559 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
560 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
561 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
562 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
563 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
564 * the driver shall specify array of
565 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
566 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
567 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
568 *
569 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
570 * specific QCA module. The trace levels are represented by
571 * enum qca_attr_trace_level attributes.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700572 *
573 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
574 * Protocol antenna limit in different modes. See enum
575 * qca_wlan_vendor_attr_brp_ant_limit_mode.
576 *
577 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
578 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
579 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
Hai Shalom81f62d82019-07-22 12:10:00 -0700580 * identifying the operation in success case. In failure cases an
581 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
582 * describing the reason for the failure is returned.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -0700583 *
584 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
585 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
586 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
587 * be stopped.
588 *
589 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
590 * specific interface. This can be used to modify some of the low level
591 * scan parameters (off channel dwell time, home channel time) in the
592 * driver/firmware. These parameters are maintained within the host driver.
593 * This command is valid only when the interface is in the connected state.
594 * These scan parameters shall be reset by the driver/firmware once
595 * disconnected. The attributes used with this command are defined in
596 * enum qca_wlan_vendor_attr_active_tos.
597 *
598 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
599 * driver has detected an internal failure. This event carries the
600 * information indicating the reason that triggered this detection. The
601 * attributes for this command are defined in
602 * enum qca_wlan_vendor_attr_hang.
Roshan Pius3a1667e2018-07-03 15:17:14 -0700603 *
604 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
605 * of spectral parameters used. The spectral scan parameters are specified
606 * by enum qca_wlan_vendor_attr_spectral_scan.
607 *
608 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
609 * for spectral scan functionality. The debug stats are specified by
610 * enum qca_wlan_vendor_attr_spectral_diag_stats.
611 *
612 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
613 * scan system capabilities. The capabilities are specified
614 * by enum qca_wlan_vendor_attr_spectral_cap.
615 *
616 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
617 * status of spectral scan. The status values are specified
618 * by enum qca_wlan_vendor_attr_spectral_scan_status.
619 *
620 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
621 * peer pending packets. Specify the peer MAC address in
622 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
623 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
624 * in enum qca_wlan_vendor_attr_flush_pending.
625 *
626 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
627 * RF Operating Parameter (RROP) information. The attributes for this
628 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
629 * intended for use by external Auto Channel Selection applications.
630 *
631 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
632 * (SAR) power limits. This is a companion to the command
633 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
634 * settings currently in use. The attributes returned by this command are
635 * defined by enum qca_vendor_attr_sar_limits.
636 *
637 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
638 * the WLAN hardware MAC. Also, provides the WLAN netdev interface
639 * information attached to the respective MAC.
640 * This works both as a query (user space asks the current mode) or event
641 * interface (driver advertising the current mode to the user space).
642 * Driver does not trigger this event for temporary hardware mode changes.
643 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
644 * channel change, etc.) are updated with this event. Attributes for this
645 * interface are defined in enum qca_wlan_vendor_attr_mac.
646 *
647 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
648 * per peer per TID. Attributes for this command are define in
649 * enum qca_wlan_set_qdepth_thresh_attr.
650 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
651 * guide for WLAN driver. Request to suspend of driver and FW if the
652 * temperature is higher than the suspend threshold; resume action is
653 * requested to driver if the temperature is lower than the resume
654 * threshold. In user poll mode, request temperature data by user. For test
655 * purpose, getting thermal shutdown configuration parameters is needed.
656 * Attributes for this interface are defined in
657 * enum qca_wlan_vendor_attr_thermal_cmd.
658 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
659 * driver. Thermal temperature and indication of resume completion are
660 * reported as thermal events. The attributes for this command are defined
661 * in enum qca_wlan_vendor_attr_thermal_event.
662 *
663 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
664 * test configuration. Attributes for this command are defined in
665 * enum qca_wlan_vendor_attr_wifi_test_config.
666 *
667 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
668 * RX filter to receive frames from stations that are active on the
669 * operating channel, but not associated with the local device (e.g., STAs
670 * associated with other APs). Filtering is done based on a list of BSSIDs
671 * and STA MAC addresses added by the user. This command is also used to
672 * fetch the statistics of unassociated stations. The attributes used with
673 * this command are defined in enum qca_wlan_vendor_attr_bss_filter.
Hai Shalomce48b4a2018-09-05 11:41:35 -0700674 *
675 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
676 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
677 * carried a payload which was a binary blob of data. The command was not
678 * extendable to send more information. The newer version carries the
679 * legacy blob encapsulated within an attribute and can be extended with
680 * additional vendor attributes that can enhance the NAN command interface.
Hai Shalom39ba6fc2019-01-22 12:40:38 -0800681 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
682 * or stopped within driver/firmware in order to initiate roaming. The
683 * attributes used with this event are defined in enum
684 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
685 * in few cases, e.g., if the host processor is sleeping when this event
686 * is generated in firmware.
687 *
688 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
689 * configure parameters per peer to capture Channel Frequency Response
690 * (CFR) and enable Periodic CFR capture. The attributes for this command
Hai Shaloma20dcd72022-02-04 13:43:00 -0800691 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
692 * can also be used to send CFR data from the driver to userspace when
693 * netlink events are used to send CFR data.
Hai Shalom74f70d42019-02-11 14:42:39 -0800694 *
695 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
696 * in throughput dynamically. The driver estimates the throughput based on
697 * number of packets being transmitted/received per second and indicates
698 * the changes in throughput to user space. Userspace tools can use this
699 * information to configure kernel's TCP parameters in order to achieve
700 * peak throughput. Optionally, the driver will also send guidance on
701 * modifications to kernel's TCP parameters which can be referred by
702 * userspace tools. The attributes used with this event are defined in enum
703 * qca_wlan_vendor_attr_throughput_change.
704 *
705 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
706 * priorities among different types of traffic during coex scenarios.
707 * Current supported prioritization is among WLAN/BT/ZIGBEE with different
708 * profiles mentioned in enum qca_coex_config_profiles. The associated
709 * attributes used with this command are defined in enum
710 * qca_vendor_attr_coex_config.
711 *
712 * Based on the config provided, FW will boost the weight and prioritize
713 * the traffic for that subsystem (WLAN/BT/Zigbee).
714 *
715 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
716 * the supported AKM suite selectorss from the driver. It returns the list
717 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
Hai Shalom021b0b52019-04-10 11:17:58 -0700718 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
719 * state from the driver. It returns the firmware state in the attribute
720 * QCA_WLAN_VENDOR_ATTR_FW_STATE.
721 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
722 * is used by the driver to flush per-peer cached statistics to user space
723 * application. This interface is used as an event from the driver to
724 * user space application. Attributes for this event are specified in
725 * enum qca_wlan_vendor_attr_peer_stats_cache_params.
726 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
727 * sent in the event.
728 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
729 * improve the success rate of Zigbee joining network.
730 * Due to PTA master limitation, Zigbee joining network success rate is
731 * low while WLAN is working. The WLAN driver needs to configure some
732 * parameters including Zigbee state and specific WLAN periods to enhance
733 * PTA master. All these parameters are delivered by the attributes
734 * defined in enum qca_mpta_helper_vendor_attr.
Hai Shalom81f62d82019-07-22 12:10:00 -0700735 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
736 * implement Beacon frame reporting feature.
737 *
738 * Userspace can request the driver/firmware to periodically report
739 * received Beacon frames whose BSSID is same as the current connected
740 * BSS's MAC address.
741 *
742 * In case the STA seamlessly (without sending disconnect indication to
743 * userspace) roams to a different BSS, Beacon frame reporting will be
744 * automatically enabled for the Beacon frames whose BSSID is same as the
745 * MAC address of the new BSS. Beacon reporting will be stopped when the
746 * STA is disconnected (when the disconnect indication is sent to
747 * userspace) and need to be explicitly enabled by userspace for next
748 * connection.
749 *
750 * When a Beacon frame matching configured conditions is received, and if
751 * userspace has requested to send asynchronous beacon reports, the
752 * driver/firmware will encapsulate the details of the Beacon frame in an
753 * event and send it to userspace along with updating the BSS information
754 * in cfg80211 scan cache, otherwise driver will only update the cfg80211
755 * scan cache with the information from the received Beacon frame but will
756 * not send any active report to userspace.
757 *
758 * The userspace can request the driver/firmware to stop reporting Beacon
759 * frames. If the driver/firmware is not able to receive Beacon frames due
760 * to other Wi-Fi operations such as off-channel activities, etc., the
761 * driver/firmware will send a pause event to userspace and stop reporting
762 * Beacon frames. Whether the beacon reporting will be automatically
763 * resumed or not by the driver/firmware later will be reported to
764 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
765 * flag. The beacon reporting shall be resumed for all the cases except
766 * either when userspace sets
767 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
768 * which triggered the current beacon reporting or during any disconnection
769 * case as indicated by setting
770 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
771 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
772 * driver.
773 *
774 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
775 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
776 * flag not set, the next first
777 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
778 * shall be considered as un-pause event.
779 *
780 * All the attributes used with this command are defined in
781 * enum qca_wlan_vendor_attr_beacon_reporting_params.
782 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
783 * interop issues with the DUT. This sub command is used to transfer the
784 * AP info between the driver and user space. This works both as a command
785 * and an event. As a command, it configures the stored list of APs from
786 * user space to firmware; as an event, it indicates the AP info detected
787 * by the firmware to user space for persistent storage. The attributes
788 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
789 * the parameters.
Hai Shalomc3565922019-10-28 11:58:20 -0700790 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
791 * send/receive OEM data binary blobs to/from application/service to/from
792 * firmware. The attributes defined in enum
793 * qca_wlan_vendor_attr_oem_data_params are used to deliver the
794 * parameters.
795 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
796 * to send/receive avoid frequency data using
797 * enum qca_wlan_vendor_attr_avoid_frequency_ext.
798 * This new command is alternative to existing command
799 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
800 * is using stream of bytes instead of structured data using vendor
Hai Shaloma20dcd72022-02-04 13:43:00 -0800801 * attributes. User space sends unsafe frequency ranges to the driver using
802 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
803 * reception of this command, the driver shall check if an interface is
804 * operating on an unsafe frequency and the driver shall try to move to a
805 * safe channel when needed. If the driver is not able to find a safe
806 * channel the interface can keep operating on an unsafe channel with the
807 * TX power limit derived based on internal configurations like
808 * regulatory/SAR rules.
Hai Shalomc3565922019-10-28 11:58:20 -0700809 *
810 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
811 * add the STA node details in driver/firmware. Attributes for this event
812 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
813 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
814 * coex chain mode from application/service.
815 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
816 * to deliver the parameters.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -0800817 *
818 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
819 * get information of a station from driver to userspace. This command can
820 * be used in both STA and AP modes. For STA mode, it provides information
821 * of the current association when in connected state or the last
822 * association when in disconnected state. For AP mode, only information
823 * of the currently connected stations is available. This command uses
824 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
Hai Shalomfdcde762020-04-02 11:19:20 -0700825 *
826 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
827 * Host drivers can request the user space entity to set the SAR power
828 * limits with this event. Accordingly, the user space entity is expected
829 * to set the SAR power limits. Host drivers can retry this event to the
830 * user space for the SAR power limits configuration from user space. If
831 * the driver does not get the SAR power limits from user space for all
832 * the retried attempts, it can configure a default SAR power limit.
833 *
834 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
835 * is used to update the information about the station from the driver to
836 * userspace. Uses attributes from enum
837 * qca_wlan_vendor_attr_update_sta_info.
838 *
839 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
840 * The host driver initiates the disconnection for scenarios such as beacon
841 * miss, NUD failure, peer kick out, etc. The disconnection indication
842 * through cfg80211_disconnected() expects the reason codes from enum
843 * ieee80211_reasoncode which does not signify these various reasons why
844 * the driver has triggered the disconnection. This event will be used to
845 * send the driver specific reason codes by the host driver to userspace.
846 * Host drivers should trigger this event and pass the respective reason
847 * code immediately prior to triggering cfg80211_disconnected(). The
848 * attributes used with this event are defined in enum
849 * qca_wlan_vendor_attr_driver_disconnect_reason.
Hai Shalom899fcc72020-10-19 14:38:18 -0700850 *
851 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
852 * add/delete TSPEC for each AC. One command is for one specific AC only.
853 * This command can only be used in STA mode and the STA must be
854 * associated with an AP when the command is issued. Uses attributes
855 * defined in enum qca_wlan_vendor_attr_config_tspec.
856 *
857 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
858 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
859 *
860 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
861 * the driver. The band configurations obtained are referred through
862 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
863 *
864 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
865 * assessment.
866 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
867 *
868 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
869 * used to update SSID information in hostapd when it is updated in the
870 * driver. Uses the attribute NL80211_ATTR_SSID.
871 *
872 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
873 * the driver to send opaque data from the firmware to userspace. The
874 * driver sends an event to userspace whenever such data is received from
875 * the firmware.
876 *
877 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
878 * send this opaque data for this event.
879 *
880 * The format of the opaque data is specific to the particular firmware
881 * version and there is no guarantee of the format remaining same.
882 *
883 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
884 * The host driver selects Tx VDEV, and notifies user. The attributes
885 * used with this event are defined in enum
886 * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800887 * This event contains Tx VDEV group information, other VDEVs
888 * interface index, and status information.
Hai Shalom899fcc72020-10-19 14:38:18 -0700889 *
Sunil8cd6f4d2022-06-28 18:40:46 +0000890 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
891 * configure the concurrent session policies when multiple interfaces
Hai Shaloma20dcd72022-02-04 13:43:00 -0800892 * are (getting) active. The attributes used by this command are defined
Sunil8cd6f4d2022-06-28 18:40:46 +0000893 * in enum qca_wlan_vendor_attr_concurrent_policy.
Hai Shaloma20dcd72022-02-04 13:43:00 -0800894 *
895 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
896 * to query usable channels for different interface types such as STA,
897 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
898 * channels in the response based on country code, different static
899 * configurations, concurrency combinations, etc. The attributes used
900 * with this command are defined in
901 * enum qca_wlan_vendor_attr_usable_channels.
902 *
903 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
904 * to get DFS radar history from the driver to userspace. The driver
905 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
906 * array of nested entries.
907 *
908 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
909 * enable/disable mDNS offload to the firmware. The attributes used with
910 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
911 *
912 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
913 * to set packet monitor mode that aims to send the specified set of TX and
914 * RX frames on the current client interface to an active monitor
915 * interface. If this monitor mode is set, the driver will send the
916 * configured frames, from the interface on which the command is issued, to
917 * an active monitor interface. The attributes used with this command are
918 * defined in enum qca_wlan_vendor_attr_set_monitor_mode.
919 *
920 * Though the monitor mode is configured for the respective
921 * Data/Management/Control frames, it is up to the respective WLAN
922 * driver/firmware/hardware designs to consider the possibility of sending
923 * these frames over the monitor interface. For example, the Control frames
924 * are handled within the hardware and thus passing such frames over the
925 * monitor interface is left to the respective designs.
926 *
927 * Also, this monitor mode is governed to behave accordingly in
928 * suspend/resume states. If the firmware handles any of such frames in
929 * suspend state without waking up the host and if the monitor mode is
930 * configured to notify all such frames, the firmware is expected to resume
931 * the host and forward the respective frames to the monitor interface.
932 * Please note that such a request to get the frames over the monitor
933 * interface will have a definite power implication.
934 *
935 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
936 * as a request to set the driver/firmware with the parameters to trigger
937 * the roaming events, and also used by the driver/firmware to pass on the
938 * various roam events to userspace.
939 * Applicable only for the STA mode. The attributes used with this command
940 * are defined in enum qca_wlan_vendor_attr_roam_events.
941 *
942 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
943 * rate mask config for a list of PHY types. Userspace shall provide an
944 * array of the vendor attributes defined in
945 * enum qca_wlan_vendor_attr_ratemask_params.
946 *
947 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
948 * when two interfaces are active on the same band, using two different
949 * home channels, and only supported by a single radio. In this scenario
950 * the device must split the use of the radio between the two interfaces.
951 * The percentage of time allocated to a given interface is the quota.
952 * Depending on the configuration, the quota can either be fixed or
953 * dynamic.
954 *
955 * When used as an event, the device will report the quota type, and for
956 * all interfaces operating in MCC it will report the current quota.
957 * When used as a command, the device can be configured for a specific
958 * quota type, and in the case of a fixed quota, the quota to apply to one
959 * of the interfaces.
960 *
961 * Applications can use the event to do TX bitrate control based on the
962 * information, and can use the command to explicitly set the quota to
963 * enhance performance in specific scenarios.
964 *
965 * The attributes used with this command are defined in
966 * enum qca_wlan_vendor_attr_mcc_quota.
Sunil8cd6f4d2022-06-28 18:40:46 +0000967 *
968 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
969 * get the WLAN radio combinations matrix supported by the device which
970 * provides the device simultaneous radio configurations such as
971 * standalone, dual band simultaneous, and single band simultaneous.
972 *
973 * The attributes used with this command are defined in
974 * enum qca_wlan_vendor_attr_radio_combination_matrix.
975 *
976 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
977 * that the driver is ready for operations again after recovering from
978 * internal failures. This occurs following a failure that was indicated by
979 * @QCA_NL80211_VENDOR_SUBCMD_HANG.
980 *
981 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
982 * security negotiation and key generation to user space.
983 *
984 * When used as an event, the driver requests userspace to trigger the PASN
985 * authentication or dropping of a PTKSA for the indicated peer devices.
986 * When used as a command response, userspace indicates a consolidated
987 * status report for all the peers that were requested for.
988 *
989 * The attributes used with this command are defined in
990 * enum qca_wlan_vendor_attr_pasn.
991 *
992 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
993 * secure ranging context such as TK and LTF keyseed for each peer
994 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
995 *
996 * The attributes used with this command are defined in
997 * enum qca_wlan_vendor_attr_secure_ranging_ctx.
Sunil Ravi89eba102022-09-13 21:04:37 -0700998 *
999 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
1000 * enable/disable offload processing in firmware during system/runtime
1001 * suspend for CoAP messages (see RFC7252: The Constrained Application
1002 * Protocol) and fetch information of the CoAP messages cached during
1003 * offload processing.
1004 *
1005 * The attributes used with this command are defined in
1006 * enum qca_wlan_vendor_attr_coap_offload.
1007 *
1008 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
1009 * (add, remove, or change) a Stream Classification Service (SCS) rule.
1010 *
1011 * The attributes used with this event are defined in
1012 * enum qca_wlan_vendor_attr_scs_rule_config.
1013 *
1014 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
1015 * supported by the WLAN firmware.
1016 *
1017 * The attributes used with this command are defined in
1018 * enum qca_wlan_vendor_attr_sar_capability.
1019 *
1020 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
1021 * (SR) feature. This command is used by userspace to configure SR
1022 * parameters to the driver and to get the SR related parameters and
1023 * statistics with synchronous responses from the driver.
1024 * The driver also uses this command to send asynchronous events to
1025 * userspace to indicate suspend/resume of SR feature and changes
1026 * in SR parameters.
1027 *
1028 * The attributes used with this command are defined in
1029 * enum qca_wlan_vendor_attr_sr.
Sunil Ravi77d572f2023-01-17 23:58:31 +00001030 *
1031 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
1032 * notify application layer about the primary netdev of an MLO connection.
1033 * In some implementations, MLO has multiple netdevs out of which one
1034 * netdev is designated as primary to provide a unified interface to the
1035 * bridge. In those implementations this event is sent on every MLO peer
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001036 * connection. User applications on an AP MLD will use this event to get
1037 * info for all the links from non-AP MLD that were negotiated to be used
1038 * for the ML association.
Sunil Ravi77d572f2023-01-17 23:58:31 +00001039 *
1040 * The attributes used with this event are defined in
1041 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
1042 *
1043 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
1044 * driver to notify different AFC events to userspace. The attributes used
1045 * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
1046 *
1047 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
1048 * userspace to deliver AFC response data to driver. The attributes used
1049 * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
1050 *
1051 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
1052 * operate in doze mode.
1053 *
1054 * Userspace uses this command to configure the AP interface to enter or
1055 * exit from doze mode. The driver sends this event after it enters or
1056 * exits the doze mode with the updated AP doze mode settings.
1057 *
1058 * The attributes used with this subcommand are defined in
1059 * enum qca_wlan_vendor_attr_dozed_ap.
1060 *
1061 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
1062 * to get the status of local packet capture of monitor mode. The monitor
1063 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
1064 * subcommand.
1065 *
1066 * The attributes used with this command are defined in enum
1067 * qca_wlan_vendor_attr_get_monitor_mode.
1068 *
1069 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
1070 * get roam information from the driver to user space. It provides the
1071 * latest several instances of roam information cached in the driver.
1072 * The command is only used for STA mode. The attributes used with this
1073 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
Sunil Ravi036cec52023-03-29 11:35:17 -07001074 *
1075 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
1076 * configure and fetch the state information of the MLO links affiliated
1077 * with the STA interface. The attributes used with this command are
1078 * defined in enum qca_wlan_vendor_attr_mlo_link_state.
Sunil Ravi640215c2023-06-28 23:08:09 +00001079 *
1080 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
1081 * vendor subcommand to trigger channel utilization measurement on entire
1082 * channel width of the connected channel(s). For MLO connection, connected
1083 * channel utilization measurement shall be done on all the MLO links.
1084 * The driver may use regular scan or wideband energy detection feature
1085 * based on the hardware capability for connected channel(s) utilization
1086 * measurement. The driver indicates the connected channel(s) utilization
1087 * measurement completion as an asynchronous event with this command ID to
1088 * userspace. Upon receiving this event, userspace can use
1089 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
1090 * connected channel(s) and can derive the channel utilization percentage
1091 * (CU) of each 20 MHz sub-channel of the entire connected channel using
1092 * %NL80211_CMD_GET_SURVEY response.
1093 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
1094 * This command is only used for STA mode.
1095 *
1096 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
1097 * used as an event to notify the userspace of TID-to-link map changes
1098 * negotiated by the driver or updated by associated AP MLD with Beacon,
1099 * Probe Response, or Action frames. The attributes used with this command
1100 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
1101 *
1102 * Note that the attribute
1103 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
1104 * the current connected AP MLD address.
1105 *
1106 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
1107 * of STA MLD setup links due to the AP MLD removing the corresponding
1108 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
1109 * links are removed during Multi-Link reconfiguration, the driver shall
1110 * use %NL80211_CMD_DISCONNECT instead of this command since it is a
1111 * connection drop. The attributes used with this command are defined in
1112 * enum qca_wlan_vendor_attr_link_reconfig.
1113 * Note that the attribute
1114 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
1115 * the current connected AP MLD address.
1116 *
1117 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
1118 * the driver with MLO link id information on which to transmit the TDLS
1119 * discovery response frame on the configured MLO BSS link when the
1120 * local station is connected in MLO mode. This command is sent to the
1121 * driver prior to the TDLS discovery response management transmit
1122 * operation and is followed immediately by the TDLS discovery response
1123 * management frame transmit command.
1124 *
1125 * The driver saves the configured MLO link id information and uses it for
1126 * the following TDLS discovery response frame transmission on the
1127 * configured MLO BSS link and the link id information is cleared in the
1128 * driver after the TDLS discovery response frame is successfully
1129 * transmitted. This behavior is indepent of the TDLS peer STA connection
1130 * mode (MLO or non-MLO).
1131 *
1132 * Uses the attributes defined in
1133 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001134 *
1135 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
1136 * configure, retrieve, and report per-link transmit latency statistics.
1137 *
1138 * The attributes used with this subcommand are defined in
1139 * enum qca_wlan_vendor_attr_tx_latency.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001140 *
1141 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
1142 * query transmit power information on STA interface from the driver for a
1143 * connected AP. The attributes included in response are defined in
1144 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
1145 * TPC info may be returned. The information includes regulatory maximum
1146 * transmit power limit, AP local power constraint advertised from AP's
1147 * Beacon and Probe Response frames. For PSD power mode, the information
1148 * includes PSD power levels for each subchannel of operating bandwidth.
1149 * The information is driver calculated power limits based on the current
1150 * regulatory domain, AP local power constraint, and other IEs. The
1151 * information will be set to target. Target will decide the final TX power
1152 * based on this and chip specific power conformance test limits (CTL), and
1153 * SAR limits.
1154 *
1155 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
1156 * driver to user space which is carrying firmware page fault related
1157 * summary report. The attributes for this command are defined in
1158 * enum qca_wlan_vendor_attr_fw_page_fault_report.
1159 *
1160 * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver
1161 * to user space to disassociate with a peer based on the peer MAC address
1162 * provided. Specify the peer MAC address in
1163 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided.
Sunil Ravi99c035e2024-07-12 01:42:03 +00001164 *
1165 * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to
1166 * adjust transmit power. The attributes used with this subcommand are
1167 * defined in enum qca_wlan_vendor_attr_adjust_tx_power.
1168 *
1169 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the
1170 * driver to notify user application about the spectral scan completion.
1171 * The attributes used with this subcommand are defined in
1172 * enum qca_wlan_vendor_attr_spectral_scan_complete.
Sunil Ravi7f769292024-07-23 22:21:32 +00001173 *
1174 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION: Register for receiving
1175 * %NL80211_CMD_GET_STATION responses as unicast events when there are
1176 * %NL80211_CMD_GET_STATION requests from any userspace module on the same
1177 * interface index with which this command is sent. This command is also
1178 * used as the unicast event to indicate the %NL80211_CMD_GET_STATION
1179 * response. The attributes for this command are defined in
1180 * enum qca_wlan_vendor_async_get_station_attr.
1181 *
1182 * The driver will send the unicast events with same netlink port ID which
1183 * is used by userspace application for sending the registration command.
1184 * If multiple registration commands are received with different netlink
1185 * port IDs, the driver will send unicast events with each netlink port ID
1186 * separately.
1187 *
1188 * Userspace applications can deregister the unicast event reporting with
1189 * disable configuration. The registrations will be removed automatically
1190 * by the driver when the corresponding netlink socket is closed.
1191 *
1192 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND: Vendor command to put an AP interface
1193 * in suspend state. On enabling suspend, AP deauthenticates all associated
1194 * stations and stops TX/RX operations on the interface. The driver
1195 * retains the AP configuration and on resume, starts all TX/RX operations
1196 * with the same AP configuration.
1197 *
1198 * This subcommand is also used as an event to notify userspace about AP
1199 * suspended/resumed state changes.
1200 *
1201 * The attributes used with this command/event are defined in enum
1202 * qca_wlan_vendor_attr_ap_suspend.
1203 *
1204 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS: Event indication from the driver to
1205 * the userspace which contains all the statistics collected for a flow to
1206 * be classified. This event is sent if the userspace enables the
1207 * flow stats reporting via the command
1208 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY and when the driver has
1209 * collected the required flow statistics, as specified by the attributes
1210 * of this event. The attributes for this event are defined in
1211 * enum qca_wlan_vendor_attr_flow_stats.
1212 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT: This vendor command is used
1213 * to indicate the flow classification result based on the flow samples
1214 * received as a part of @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. The
1215 * attributes for this command are defined in the
1216 * enum qca_wlan_vendor_attr_flow_classify_result.
1217 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY: This vendor command is used to
1218 * indicate the ASYNC statistics policy from the userspace to the driver
1219 * and it contains the STATS type for which the command is intended. The
1220 * attributes for this command are defined in the
1221 * enum qca_wlan_vendor_attr_async_stats_policy.
1222 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT: Event indication from the
1223 * driver to the userspace containing all the samples of a classified
1224 * flow along with its classification result. This event is sent by the
1225 * driver to userspace when it receives classification result via the
1226 * command @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT and the
1227 * collection of these statistics has been enabled by the command
1228 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. The attributes for this
1229 * event are defined in enum qca_wlan_vendor_attr_flow_stats.
1230 *
1231 * @QCA_NL80211_VENDOR_SUBCMD_USD: Vendor subcommand to implement unsynchronized
1232 * service discovery (USD). Based on the type of the USD subcommand the USD
1233 * operation to publish, subscribe, update publish, cancel publish, or
1234 * cancel subscribe is triggered.
1235 *
1236 * When used as an event, the driver notifies the status of an USD command.
1237 *
1238 * The attributes used with this command are defined in
1239 * enum qca_wlan_vendor_attr_usd.
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001240 */
1241enum qca_nl80211_vendor_subcmds {
1242 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
1243 QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001244 /* subcmds 2..8 not yet allocated */
1245 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001246 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001247 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001248 QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001249 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001250 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
1251 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
1252 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
1253 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
1254 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
1255 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
1256 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
1257 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
1258 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
1259 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
1260 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
1261 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
1262 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
1263 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
1264 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
1265 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
1266 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
1267 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
1268 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
1269 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
1270 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
1271 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
1272 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
1273 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
1274 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
1275 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
1276 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
1277 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
1278 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
1279 /* 43..49 - reserved for QCA */
1280 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
1281 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
1282 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001283 /* 53 - reserved - was used by QCA, but not in use anymore */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001284 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1285 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001286 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1287 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1288 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1289 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1290 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001291 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1292 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1293 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1294 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1295 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1296 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1297 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1298 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1299 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1300 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1301 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1302 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1303 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07001304 /* Wi-Fi configuration subcommands */
1305 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1306 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001307 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1308 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1309 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1310 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1311 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1312 QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1313 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1314 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1315 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1316 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1317 /* 86-90 - reserved for QCA */
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07001318 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
Dmitry Shmidt9d9e6022015-04-23 10:34:55 -07001319 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1320 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1321 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1322 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1323 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1324 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1325 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1326 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1327 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
Dmitry Shmidt05df46a2015-05-19 11:02:01 -07001328 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001329 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1330 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1331 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1332 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08001333 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1334 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1335 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1336 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1337 /* 110..114 - reserved for QCA */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001338 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
Hai Shalomc3565922019-10-28 11:58:20 -07001339 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1340 /* 117 - reserved for QCA */
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001341 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
Dmitry Shmidt17022322016-04-06 13:28:42 -07001342 QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1343 QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07001344 /* 121 - reserved for QCA */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001345 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1346 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1347 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07001348 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1349 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001350 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1351 /* FTM/indoor location subcommands */
1352 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1353 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1354 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1355 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1356 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1357 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1358 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1359 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1360 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001361 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1362 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001363 /* DMG low level RF sector operations */
1364 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1365 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1366 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1367 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1368 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001369 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
Dmitry Shmidtabb90a32016-12-05 15:34:39 -08001370 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
Dmitry Shmidt29333592017-01-09 12:27:11 -08001371 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
Paul Stewart092955c2017-02-06 09:13:09 -08001372 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1373 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1374 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1375 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001376 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1377 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001378 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1379 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1380 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1381 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1382 QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
Roshan Pius3a1667e2018-07-03 15:17:14 -07001383 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1384 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1385 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1386 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1387 /* Flush peer pending data */
1388 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1389 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1390 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1391 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1392 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1393 /* Thermal shutdown commands to protect wifi chip */
1394 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1395 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1396 /* Wi-Fi test configuration subcommand */
1397 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1398 /* Frame filter operations for other BSSs/unassociated STAs */
1399 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001400 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08001401 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1402 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
Hai Shalom74f70d42019-02-11 14:42:39 -08001403 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1404 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1405 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
Hai Shalom021b0b52019-04-10 11:17:58 -07001406 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1407 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1408 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
Hai Shalom81f62d82019-07-22 12:10:00 -07001409 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1410 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
Hai Shalomc3565922019-10-28 11:58:20 -07001411 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1412 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1413 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1414 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -08001415 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
Hai Shalomfdcde762020-04-02 11:19:20 -07001416 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1417 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1418 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
Hai Shalom899fcc72020-10-19 14:38:18 -07001419 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1420 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1421 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1422 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1423 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1424 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1425 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
Sunil8cd6f4d2022-06-28 18:40:46 +00001426 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001427 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1428 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1429 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1430 /* 201 - reserved for QCA */
1431 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1432 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1433 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1434 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
Sunil8cd6f4d2022-06-28 18:40:46 +00001435 /* 206..212 - reserved for QCA */
1436 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1437 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1438 QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1439 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
Sunil Ravi89eba102022-09-13 21:04:37 -07001440 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1441 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1442 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1443 QCA_NL80211_VENDOR_SUBCMD_SR = 220,
Sunil Ravi77d572f2023-01-17 23:58:31 +00001444 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1445 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1446 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1447 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1448 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1449 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
Sunil Ravi036cec52023-03-29 11:35:17 -07001450 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
Sunil Ravi640215c2023-06-28 23:08:09 +00001451 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1452 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1453 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1454 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001455 /* 232 - reserved for QCA */
1456 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1457 /* 234 - reserved for QCA */
Sunil Ravib0ac25f2024-07-12 01:42:03 +00001458 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
1459 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
1460 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
1461 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
1462 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
1463 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
Sunil Ravi99c035e2024-07-12 01:42:03 +00001464 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241,
1465 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242,
Sunil Ravi7f769292024-07-23 22:21:32 +00001466 QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243,
1467 QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244,
1468 QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245,
1469 QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246,
1470 QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247,
1471 QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248,
1472 QCA_NL80211_VENDOR_SUBCMD_USD = 249,
Dmitry Shmidtcf32e602014-01-28 10:57:39 -08001473};
1474
Sunil8cd6f4d2022-06-28 18:40:46 +00001475/* Compatibility defines for previously used subcmd names.
1476 * These values should not be used in any new implementation.
1477 */
1478#define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1479 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1480
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001481enum qca_wlan_vendor_attr {
1482 QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1483 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1484 QCA_WLAN_VENDOR_ATTR_DFS = 1,
Hai Shalomce48b4a2018-09-05 11:41:35 -07001485 /* Used only when driver sends vendor events to the userspace under the
1486 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1487 * commands to the driver.
1488 */
Dmitry Shmidt21de2142014-04-08 10:50:52 -07001489 QCA_WLAN_VENDOR_ATTR_NAN = 2,
Dmitry Shmidt7832adb2014-04-29 10:53:02 -07001490 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1491 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
Dmitry Shmidt09f57ba2014-06-10 16:07:13 -07001492 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1493 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001494 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
Roshan Pius3a1667e2018-07-03 15:17:14 -07001495 * by enum qca_roaming_policy.
1496 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001497 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1498 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001499 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1500 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
Dmitry Shmidt7f656022015-02-25 14:36:37 -08001501 QCA_WLAN_VENDOR_ATTR_TEST = 8,
Ravi Joshie6ccb162015-07-16 17:45:41 -07001502 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1503 /* Unsigned 32-bit value. */
1504 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1505 /* Unsigned 32-bit value */
1506 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1507 /* Unsigned 32-bit value */
1508 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -07001509 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1510 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1511 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1512 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1513 */
Ravi Joshie6ccb162015-07-16 17:45:41 -07001514 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
Sunil Ravi036cec52023-03-29 11:35:17 -07001515 /* Attribute used for padding for 64-bit alignment */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07001516 QCA_WLAN_VENDOR_ATTR_PAD = 13,
1517 /* Unique FTM session cookie (Unsigned 64 bit). Specified in
1518 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1519 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1520 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1521 */
1522 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1523 /* Indoor location capabilities, returned by
1524 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1525 * see enum qca_wlan_vendor_attr_loc_capa.
1526 */
1527 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1528 /* Array of nested attributes containing information about each peer
1529 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1530 * for supported attributes for each peer.
1531 */
1532 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1533 /* Array of nested attributes containing measurement results for
1534 * one or more peers, reported by the
1535 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1536 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1537 * attributes.
1538 */
1539 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1540 /* Flag attribute for enabling or disabling responder functionality. */
1541 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1542 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1543 * command to specify the LCI report that will be sent by
1544 * the responder during a measurement exchange. The format is
1545 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1546 */
1547 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1548 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1549 * command to specify the location civic report that will
1550 * be sent by the responder during a measurement exchange.
1551 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1552 */
1553 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1554 /* Session/measurement completion status code,
1555 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1556 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1557 * see enum qca_vendor_attr_loc_session_status.
1558 */
1559 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1560 /* Initial dialog token used by responder (0 if not specified),
1561 * unsigned 8 bit value.
1562 */
1563 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1564 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1565 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1566 * AOA measurements are needed as part of an FTM session.
1567 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1568 * enum qca_wlan_vendor_attr_aoa_type.
1569 */
1570 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1571 /* A bit mask (unsigned 32 bit value) of antenna arrays used
1572 * by indoor location measurements. Refers to the antenna
1573 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1574 */
1575 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1576 /* AOA measurement data. Its contents depends on the AOA measurement
1577 * type and antenna array mask:
1578 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1579 * phase of the strongest CIR path for each antenna in the measured
1580 * array(s).
1581 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1582 * values, phase and amplitude of the strongest CIR path for each
1583 * antenna in the measured array(s).
1584 */
1585 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001586 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1587 * to specify the chain number (unsigned 32 bit value) to inquire
Roshan Pius3a1667e2018-07-03 15:17:14 -07001588 * the corresponding antenna RSSI value
1589 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001590 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1591 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001592 * to report the specific antenna RSSI value (unsigned 32 bit value)
1593 */
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07001594 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001595 /* Frequency in MHz, various uses. Unsigned 32 bit value */
1596 QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1597 /* TSF timer value, unsigned 64 bit value.
1598 * May be returned by various commands.
1599 */
1600 QCA_WLAN_VENDOR_ATTR_TSF = 29,
1601 /* DMG RF sector index, unsigned 16 bit number. Valid values are
1602 * 0..127 for sector indices or 65535 as special value used to
1603 * unlock sector selection in
1604 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1605 */
1606 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1607 /* DMG RF sector type, unsigned 8 bit value. One of the values
1608 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1609 */
1610 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1611 /* Bitmask of DMG RF modules for which information is requested. Each
1612 * bit corresponds to an RF module with the same index as the bit
1613 * number. Unsigned 32 bit number but only low 8 bits can be set since
1614 * all DMG chips currently have up to 8 RF modules.
1615 */
1616 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1617 /* Array of nested attributes where each entry is DMG RF sector
1618 * configuration for a single RF module.
1619 * Attributes for each entry are taken from enum
1620 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1621 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1622 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1623 */
1624 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1625 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1626 * to report frame aggregation statistics to userspace.
1627 */
1628 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1629 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08001630 /* Unsigned 8-bit value representing MBO transition reason code as
1631 * provided by the AP used by subcommand
1632 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1633 * specified by the userspace in the request to the driver.
1634 */
1635 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1636 /* Array of nested attributes, BSSID and status code, used by subcommand
1637 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1638 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1639 * The userspace space specifies the list/array of candidate BSSIDs in
1640 * the order of preference in the request. The driver specifies the
1641 * status code, for each BSSID in the list, in the response. The
1642 * acceptable candidates are listed in the order preferred by the
1643 * driver.
1644 */
1645 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001646 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1647 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1648 */
1649 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1650 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1651 * to define the number of antennas to use for BRP.
1652 * different purpose in each ANT_LIMIT_MODE:
1653 * DISABLE - ignored
1654 * EFFECTIVE - upper limit to number of antennas to be used
1655 * FORCE - exact number of antennas to be used
1656 * unsigned 8 bit value
1657 */
1658 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1659 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
Roshan Pius3a1667e2018-07-03 15:17:14 -07001660 * to report the corresponding antenna index to the chain RSSI value
1661 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001662 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
Hai Shalom74f70d42019-02-11 14:42:39 -08001663 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1664 * the specific antenna EVM value (unsigned 32 bit value). With a
1665 * determinate group of antennas, the driver specifies the EVM value
1666 * for each antenna ID, and application extract them in user space.
1667 */
1668 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
Hai Shalom021b0b52019-04-10 11:17:58 -07001669 /*
1670 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1671 * wlan firmware current state. FW state is an unsigned 8 bit value,
1672 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1673 */
1674 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08001675
Hai Shalom899fcc72020-10-19 14:38:18 -07001676 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1677 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1678 * of single values from enum qca_set_band are valid. This attribute
1679 * uses bitmask combinations to define the respective allowed band
1680 * combinations and this attributes takes precedence over
1681 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1682 */
1683 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1684
Sunil Ravi2a14cf12023-11-21 00:54:38 +00001685 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1686 * This field describes the maximum number of links supported by the
1687 * chip for MLO association.
1688 * This is an optional attribute.
1689 */
1690 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
1691
1692 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
1693 * This field describes the maximum number of Simultaneous Transmit
1694 * and Receive (STR) links used in Multi-Link Operation.
1695 * The maximum number of STR links used can be different
1696 * from the maximum number of radios supported by the chip.
1697 * This is a static configuration of the chip.
1698 * This is an optional attribute.
1699 */
1700 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
1701
Dmitry Shmidtd11f0192014-03-24 12:09:47 -07001702 /* keep last */
1703 QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1704 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1705};
1706
Sunil Ravi7f769292024-07-23 22:21:32 +00001707/**
1708 * enum qca_roaming_policy - Represents the policies for roaming. Used by
1709 * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY.
1710 *
1711 * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled.
1712 *
1713 * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with
1714 * default RSSI thresholds.
1715 *
1716 * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of
1717 * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI
1718 * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS.
1719 */
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001720enum qca_roaming_policy {
1721 QCA_ROAMING_NOT_ALLOWED,
1722 QCA_ROAMING_ALLOWED_WITHIN_ESS,
Sunil Ravi7f769292024-07-23 22:21:32 +00001723 QCA_ROAMING_MODE_AGGRESSIVE,
Dmitry Shmidt661b4f72014-09-29 14:58:27 -07001724};
1725
Hai Shalom021b0b52019-04-10 11:17:58 -07001726/**
1727 * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1728 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1729 *
1730 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1731 * reasons.
1732 *
1733 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1734 * the configured threshold.
1735 *
1736 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1737 * beacon misses from the then connected AP.
1738 *
1739 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1740 * by the connected AP.
1741 *
1742 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1743 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1744 *
1745 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1746 * or environment being very noisy or congested.
1747 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08001748 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
Hai Shalom021b0b52019-04-10 11:17:58 -07001749 * from the user (user space).
1750 *
1751 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1752 * the connected AP.
1753 *
1754 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1755 * breaching out the configured threshold.
Hai Shaloma20dcd72022-02-04 13:43:00 -08001756 *
1757 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1758 * transition request.
1759 *
1760 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1761 * data activity with the AP and the current RSSI falls below a certain
1762 * threshold.
1763 *
1764 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1765 * Disassociation frames received from the connected AP.
1766 *
1767 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1768 * that happens when there is no candidate AP found during the poor RSSI scan
1769 * trigger.
1770 *
1771 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1772 * obtained from an external scan (not aimed at roaming).
1773 *
1774 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1775 * established when the station is connected in the 2.4 GHz band.
Sunil Ravi036cec52023-03-29 11:35:17 -07001776 *
1777 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1778 * failures to the connected AP.
Hai Shalom021b0b52019-04-10 11:17:58 -07001779 */
1780enum qca_roam_reason {
1781 QCA_ROAM_REASON_UNKNOWN,
1782 QCA_ROAM_REASON_PER,
1783 QCA_ROAM_REASON_BEACON_MISS,
1784 QCA_ROAM_REASON_POOR_RSSI,
1785 QCA_ROAM_REASON_BETTER_RSSI,
1786 QCA_ROAM_REASON_CONGESTION,
1787 QCA_ROAM_REASON_USER_TRIGGER,
1788 QCA_ROAM_REASON_BTM,
1789 QCA_ROAM_REASON_BSS_LOAD,
Hai Shaloma20dcd72022-02-04 13:43:00 -08001790 QCA_ROAM_REASON_WTC,
1791 QCA_ROAM_REASON_IDLE,
1792 QCA_ROAM_REASON_DISCONNECTION,
1793 QCA_ROAM_REASON_PERIODIC_TIMER,
1794 QCA_ROAM_REASON_BACKGROUND_SCAN,
1795 QCA_ROAM_REASON_BT_ACTIVITY,
Sunil Ravi036cec52023-03-29 11:35:17 -07001796 QCA_ROAM_REASON_STA_KICKOUT,
Hai Shalom021b0b52019-04-10 11:17:58 -07001797};
1798
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001799enum qca_wlan_vendor_attr_roam_auth {
1800 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -07001801 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1802 * of the roamed AP for MLO roaming.
1803 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001804 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1805 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1806 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1807 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1808 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1809 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1810 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08001811 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07001812 /* Indicates the status of re-association requested by user space for
1813 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1814 * Type u16.
1815 * Represents the status code from AP. Use
1816 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1817 * real status code for failures.
1818 */
1819 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1820 /* This attribute indicates that the old association was maintained when
1821 * a re-association is requested by user space and that re-association
1822 * attempt fails (i.e., cannot connect to the requested BSS, but can
1823 * remain associated with the BSS with which the association was in
1824 * place when being requested to roam). Used along with
1825 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1826 * re-association status. Type flag.
1827 * This attribute is applicable only for re-association failure cases.
1828 */
1829 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1830 /* This attribute specifies the PMK if one was newly generated during
1831 * FILS roaming. This is added to the PMKSA cache and is used in
1832 * subsequent connections with PMKSA caching.
1833 */
1834 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1835 /* This attribute specifies the PMKID used/generated for the current
1836 * FILS roam. This is used in subsequent connections with PMKSA caching.
1837 */
1838 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1839 /* A 16-bit unsigned value specifying the next sequence number to use
1840 * in ERP message in the currently associated realm. This is used in
1841 * doing subsequent ERP based connections in the same realm.
1842 */
1843 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
Hai Shalom021b0b52019-04-10 11:17:58 -07001844 /* A 16-bit unsigned value representing the reasons for the roaming.
1845 * Defined by enum qca_roam_reason.
1846 */
1847 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
Sunil Ravi89eba102022-09-13 21:04:37 -07001848 /* A nested attribute containing per-link information of all the links
1849 * of MLO connection done while roaming. The attributes used inside this
1850 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1851 */
1852 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
Hai Shalom021b0b52019-04-10 11:17:58 -07001853
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08001854 /* keep last */
1855 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1856 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1857 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1858};
1859
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07001860enum qca_wlan_vendor_attr_p2p_listen_offload {
1861 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1862 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1863 * of the social channels.
1864 */
1865 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1866 /* A 32-bit unsigned value; the P2P listen offload period (ms).
1867 */
1868 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1869 /* A 32-bit unsigned value; the P2P listen interval duration (ms).
1870 */
1871 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1872 /* A 32-bit unsigned value; number of interval times the firmware needs
1873 * to run the offloaded P2P listen operation before it stops.
1874 */
1875 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1876 /* An array of arbitrary binary data with one or more 8-byte values.
1877 * The device types include both primary and secondary device types.
1878 */
1879 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1880 /* An array of unsigned 8-bit characters; vendor information elements.
1881 */
1882 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1883 /* A 32-bit unsigned value; a control flag to indicate whether listen
1884 * results need to be flushed to wpa_supplicant.
1885 */
1886 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1887 /* A 8-bit unsigned value; reason code for P2P listen offload stop
1888 * event.
1889 */
1890 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1891 /* keep last */
1892 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1893 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1894 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1895};
1896
Hai Shalomc3565922019-10-28 11:58:20 -07001897/**
1898 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1899 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1900 *
1901 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1902 * Used with event to notify the primary channel number selected in ACS
1903 * operation.
1904 * Note: If both the driver and user-space application supports the 6 GHz band,
1905 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1906 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1907 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1908 * is still used if either of the driver or user space application doesn't
1909 * support the 6 GHz band.
1910 *
1911 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1912 * Used with event to notify the secondary channel number selected in ACS
1913 * operation.
1914 * Note: If both the driver and user-space application supports the 6 GHz band,
1915 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1916 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1917 * To maintain backward compatibility,
1918 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1919 * the driver or user space application doesn't support 6 GHz band.
1920 *
1921 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1922 * (a) Used with command to configure hw_mode from
1923 * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1924 * (b) Also used with event to notify the hw_mode of selected primary channel
1925 * in ACS operation.
1926 *
1927 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1928 * Used with command to configure ACS operation for HT mode.
1929 * Disable (flag attribute not present) - HT disabled and
1930 * Enable (flag attribute present) - HT enabled.
1931 *
1932 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1933 * Used with command to configure ACS operation for HT40 mode.
1934 * Disable (flag attribute not present) - HT40 disabled and
1935 * Enable (flag attribute present) - HT40 enabled.
1936 *
1937 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1938 * Used with command to configure ACS operation for VHT mode.
1939 * Disable (flag attribute not present) - VHT disabled and
1940 * Enable (flag attribute present) - VHT enabled.
1941 *
1942 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1943 * mandatory with event.
1944 * If specified in command path, ACS operation is configured with the given
1945 * channel width (in MHz).
1946 * In event path, specifies the channel width of the primary channel selected.
1947 *
1948 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1949 * Used with command to configure channel list using an array of
1950 * channel numbers (u8).
1951 * Note: If both the driver and user-space application supports the 6 GHz band,
1952 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1953 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1954 *
1955 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1956 * Used with event to notify the VHT segment 0 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001957 * ACS operation. The value is the index of the channel center frequency for
1958 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1959 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001960 * Note: If both the driver and user-space application supports the 6 GHz band,
1961 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1962 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1963 * To maintain backward compatibility,
1964 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1965 * the driver or user space application doesn't support the 6 GHz band.
1966 *
1967 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1968 * Used with event to notify the VHT segment 1 center channel number selected in
Hai Shalomfdcde762020-04-02 11:19:20 -07001969 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1970 * The value is the index of the channel center frequency for 160 MHz channels
1971 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1972 * channels.
Hai Shalomc3565922019-10-28 11:58:20 -07001973 * Note: If both the driver and user-space application supports the 6 GHz band,
1974 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1975 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1976 * To maintain backward compatibility,
1977 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1978 * the driver or user space application doesn't support the 6 GHz band.
1979 *
1980 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1981 * Used with command to configure the channel list using an array of channel
1982 * center frequencies in MHz (u32).
1983 * Note: If both the driver and user-space application supports the 6 GHz band,
1984 * the driver first parses the frequency list and if it fails to get a frequency
1985 * list, parses the channel list specified using
1986 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1987 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1988 *
1989 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1990 * Used with event to notify the primary channel center frequency (MHz) selected
1991 * in ACS operation.
1992 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1993 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1994 *
1995 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1996 * Used with event to notify the secondary channel center frequency (MHz)
1997 * selected in ACS operation.
1998 * Note: If the driver supports the 6 GHz band, the event sent from the driver
1999 * includes this attribute along with
2000 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
2001 *
2002 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
2003 * Used with event to notify the VHT segment 0 center channel frequency (MHz)
2004 * selected in ACS operation.
2005 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2006 * includes this attribute along with
2007 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
2008 *
2009 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
2010 * Used with event to notify the VHT segment 1 center channel frequency (MHz)
2011 * selected in ACS operation.
2012 * Note: If the driver supports the 6 GHz band, the event sent from the driver
2013 * includes this attribute along with
2014 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
Hai Shalomfdcde762020-04-02 11:19:20 -07002015 *
2016 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
2017 * Used with command to notify the driver of EDMG request for ACS
2018 * operation.
2019 *
2020 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
2021 * Used with event to notify the EDMG channel number selected in ACS
2022 * operation.
2023 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
Hai Shaloma20dcd72022-02-04 13:43:00 -08002024 *
2025 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
2026 * Used with event to notify the puncture pattern selected in ACS operation.
2027 * Encoding for this attribute will follow the convention used in the Disabled
2028 * Subchannel Bitmap field of the EHT Operation IE.
2029 *
2030 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
2031 * Used with command to configure ACS operation for EHT mode.
2032 * Disable (flag attribute not present) - EHT disabled and
2033 * Enable (flag attribute present) - EHT enabled.
Sunil8cd6f4d2022-06-28 18:40:46 +00002034 *
2035 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
2036 * Used with command to configure how older scan can be considered for ACS
2037 * scoring. In case scan was performed on a partial set of channels configured
2038 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
2039 * (in ms), scan only the remaining channels.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002040 *
2041 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
2042 * Used with command to configure ACS operation for a specific link affiliated
2043 * to an AP MLD.
2044 *
Hai Shalomc3565922019-10-28 11:58:20 -07002045 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002046enum qca_wlan_vendor_attr_acs_offload {
2047 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07002048 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
2049 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
2050 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
2051 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
2052 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
2053 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
2054 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
2055 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
2056 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
2057 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
2058 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
2059 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
2060 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
2061 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
2062 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
Hai Shalomfdcde762020-04-02 11:19:20 -07002063 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
2064 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002065 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
2066 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
Sunil8cd6f4d2022-06-28 18:40:46 +00002067 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002068 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
Hai Shalomc3565922019-10-28 11:58:20 -07002069
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002070 /* keep last */
2071 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
2072 QCA_WLAN_VENDOR_ATTR_ACS_MAX =
2073 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
2074};
2075
Hai Shalomc3565922019-10-28 11:58:20 -07002076/**
2077 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
2078 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
2079 *
2080 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
2081 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
2082 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
2083 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
2084 * @QCA_ACS_MODE_IEEE80211ANY: all modes
2085 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
2086 */
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002087enum qca_wlan_vendor_acs_hw_mode {
2088 QCA_ACS_MODE_IEEE80211B,
2089 QCA_ACS_MODE_IEEE80211G,
2090 QCA_ACS_MODE_IEEE80211A,
2091 QCA_ACS_MODE_IEEE80211AD,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002092 QCA_ACS_MODE_IEEE80211ANY,
Hai Shalomc3565922019-10-28 11:58:20 -07002093 QCA_ACS_MODE_IEEE80211AX,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002094};
2095
2096/**
2097 * enum qca_wlan_vendor_features - Vendor device/driver feature flags
2098 *
2099 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
2100 * management offload, a mechanism where the station's firmware
2101 * does the exchange with the AP to establish the temporal keys
2102 * after roaming, rather than having the user space wpa_supplicant do it.
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002103 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
2104 * band selection based on channel selection results.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002105 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
Roshan Pius3a1667e2018-07-03 15:17:14 -07002106 * simultaneous off-channel operations.
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002107 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
2108 * Listen offload; a mechanism where the station's firmware takes care of
2109 * responding to incoming Probe Request frames received from other P2P
2110 * Devices whilst in Listen state, rather than having the user space
2111 * wpa_supplicant do it. Information from received P2P requests are
2112 * forwarded from firmware to host whenever the host processor wakes up.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002113 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
2114 * specific features.
2115 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
2116 * features.
2117 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
2118 * specific features only. If a Device sets this bit but not the
2119 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
2120 * this Device may not support all OCE AP functionalities but can support
2121 * only OCE STA-CFON functionalities.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002122 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
2123 * managed regulatory.
Hai Shalom021b0b52019-04-10 11:17:58 -07002124 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
Hai Shalomc3565922019-10-28 11:58:20 -07002125 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
2126 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
Hai Shalomfdcde762020-04-02 11:19:20 -07002127 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
2128 * and applying thermal configuration through
2129 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
2130 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
2131 * userspace.
Hai Shalom60840252021-02-19 19:02:11 -08002132 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
2133 * With Adaptive 11r feature, access points advertise the vendor
2134 * specific IEs and MDE but do not include FT AKM in the RSNE.
2135 * The Adaptive 11r supported stations are expected to identify
2136 * such vendor specific IEs and connect to the AP in FT mode though
2137 * the profile is configured in non-FT mode.
2138 * The driver-based SME cases also need to have this support for
2139 * Adaptive 11r to handle the connection and roaming scenarios.
2140 * This flag indicates the support for the same to the user space.
2141 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
2142 * concurrent network sessions on different Wi-Fi bands. This feature
2143 * capability is attributed to the hardware's capability to support
2144 * the same (e.g., DBS).
2145 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
2146 * responses for the respective TWT operations are asynchronous (separate
2147 * event message) from the driver. If not specified, the responses are
2148 * synchronous (in vendor command reply) to the request. Each TWT
2149 * operation is specifically mentioned (against its respective
2150 * documentation) to support either of these or both modes.
Sunil Ravia04bd252022-05-02 22:54:18 -07002151 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
Sunil8cd6f4d2022-06-28 18:40:46 +00002152 * that the driver requires add/del virtual interface path using the
Sunil Ravia04bd252022-05-02 22:54:18 -07002153 * generic nl80211 commands for NDP interface create/delete and to
2154 * register/unregister the netdev instead of creating/deleting the NDP
2155 * interface using the vendor commands
2156 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
2157 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
Sunil8cd6f4d2022-06-28 18:40:46 +00002158 * (5.12 version onward), interface creation/deletion is not allowed using
2159 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
2160 * during the register/unregister of netdev. Create and delete NDP
2161 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
2162 * commands respectively if the driver advertises this capability set.
Sunil Ravi89eba102022-09-13 21:04:37 -07002163 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
2164 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
2165 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
2166 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
2167 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
2168 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
2169 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
2170 * station mode supports secure RTT measurement exchange. If
2171 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2172 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
2173 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
2174 * mode supports secure RTT measurement exchange. If
2175 * NL80211_EXT_FEATURE_SECURE_RTT is set,
2176 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
2177 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
2178 * the device in station mode supports protection of range negotiation and
2179 * measurement management frames. If
2180 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2181 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
2182 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
2183 * the device in AP mode supports protection of range negotiation and
2184 * measurement management frames. If
2185 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
2186 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
Sunil Ravi640215c2023-06-28 23:08:09 +00002187 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
2188 * in AP mode supports configuring allowed frequency list for AP operation
2189 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
2190 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
2191 * that the device supports enhanced audio experience over WLAN feature.
Sunil Ravi7f769292024-07-23 22:21:32 +00002192 * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device
2193 * in AP mode supports TWT responder mode in HT and VHT modes.
2194 *
2195 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA: Flag indicates that the device
2196 * supports RSNE/RSNXE overriding in STA mode.
2197 *
2198 * For SME offload to the driver case:
2199 * - Supplicant should enable RSNO element use only when the driver
2200 * indicates this feature flag.
2201 * - The driver should enable RSNO element use with the supplicant selected
2202 * BSS only when the supplicant sends an RSNO element with an empty
2203 * payload in the connect request elements buffer in NL80211_CMD_CONNECT.
2204 *
2205 * For BSS selection offload to the driver case:
2206 * - Supplicant should enable RSNO element use only when the driver
2207 * indicates this feature flag.
2208 * - Supplicant should always send RSNO elements in the connect request
2209 * elements buffer in NL80211_CMD_CONNECT irrespective of whether RSNO
2210 * elements are supported by the BSS that the supplicant selected
2211 * - The driver should enable RSNO element use only when the supplicant
2212 * sends an RSNO element with an empty payload in connect request
2213 * elements in NL80211_CMD_CONNECT.
2214 * - The driver should remove RSNO elements from the connect request
2215 * elements while preparing the (Re)Association Request frame elements
2216 * if the driver selects a different BSS which is not advertising RSNO
2217 * elements.
2218 *
2219 * If both SME and BSS selection offload to the driver, BSS selection
2220 * offload to the driver case rules shall be applied.
2221 *
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002222 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
2223 */
2224enum qca_wlan_vendor_features {
2225 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
Dmitry Shmidtb1e52102015-05-29 12:36:29 -07002226 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002227 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002228 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002229 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
2230 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
2231 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002232 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
Sunil8cd6f4d2022-06-28 18:40:46 +00002233 QCA_WLAN_VENDOR_FEATURE_TWT = 8,
Hai Shalomc3565922019-10-28 11:58:20 -07002234 QCA_WLAN_VENDOR_FEATURE_11AX = 9,
2235 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -07002236 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
Hai Shalom60840252021-02-19 19:02:11 -08002237 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
2238 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
2239 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07002240 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
Sunil Ravi89eba102022-09-13 21:04:37 -07002241 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
2242 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
2243 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
2244 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
2245 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
2246 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
Sunil Ravi640215c2023-06-28 23:08:09 +00002247 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
2248 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
Sunil Ravi7f769292024-07-23 22:21:32 +00002249 QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24,
2250 QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA = 25,
Dmitry Shmidt6c0da2b2015-01-05 13:08:17 -08002251 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
2252};
2253
Dmitry Shmidt4dd28dc2015-03-10 11:21:43 -07002254/**
2255 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
2256 *
2257 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
2258 * the offloaded data.
2259 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
2260 * data.
2261 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
2262 * indication.
2263 */
2264enum qca_wlan_vendor_attr_data_offload_ind {
2265 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
2266 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
2267 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
2268 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
2269
2270 /* keep last */
2271 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
2272 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
2273 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
2274};
Ravi Joshie6ccb162015-07-16 17:45:41 -07002275
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002276/**
2277 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
2278 * OCB config
2279 *
2280 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
2281 * configuration
2282 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
2283 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
2284 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
2285 * scheduled
2286 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
2287 * information
2288 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
2289 * active state configuration
2290 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
2291 * OCB_CONFIG_FLAG_80211_FRAME_MODE
2292 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
2293 * use in the case that a packet is sent without a TX control header
2294 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
2295 * last TA received that the local time set by TA is synchronous to other
2296 * communicating OCB STAs.
2297 */
2298enum qca_wlan_vendor_attr_ocb_set_config {
2299 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
2300 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
2301 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
2302 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
2303 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
2304 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
2305 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
2306 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
2307 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
2308 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
2309 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
2310 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
2311 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
2312};
2313
2314/**
2315 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
2316 * UTC time
2317 *
2318 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
2319 * 10 bytes
2320 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
2321 * 5 bytes
2322 */
2323enum qca_wlan_vendor_attr_ocb_set_utc_time {
2324 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
2325 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
2326 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
2327 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
2328 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
2329 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
2330};
2331
2332/**
2333 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
2334 * to start sending timing advert frames
2335 *
2336 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
2337 * on which to send the frames
2338 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
2339 * the frame is sent in 5 seconds
2340 */
2341enum qca_wlan_vendor_attr_ocb_start_timing_advert {
2342 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
2343 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
2344 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
2345 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
2346 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
2347 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
2348};
2349
2350/**
2351 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
2352 * to stop timing advert
2353 *
2354 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
2355 * frequency on which to stop the timing advert
2356 */
2357enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
2358 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
2359 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
2360 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
2361 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
2362 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
2363};
2364
2365/**
2366 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
2367 * get TSF timer value
2368 *
2369 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2370 * timer
2371 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2372 */
2373enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2374 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2375 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2376 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2377 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2378 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2379 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2380};
2381
Ravi Joshie6ccb162015-07-16 17:45:41 -07002382enum qca_vendor_attr_get_preferred_freq_list {
2383 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2384 /* A 32-unsigned value; the interface type/mode for which the preferred
2385 * frequency list is requested (see enum qca_iface_type for possible
2386 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2387 * kernel and in the kernel response back to user-space.
2388 */
2389 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2390 /* An array of 32-unsigned values; values are frequency (MHz); sent
2391 * from kernel space to user space.
2392 */
2393 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
Roshan Pius3a1667e2018-07-03 15:17:14 -07002394 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2395 * attribute. Each element contains frequency (MHz), weight, and flag
2396 * bit mask indicating how the frequency should be used in P2P
2397 * negotiation; sent from kernel space to user space.
2398 */
2399 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
Ravi Joshie6ccb162015-07-16 17:45:41 -07002400 /* keep last */
2401 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2402 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2403 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2404};
2405
2406enum qca_vendor_attr_probable_oper_channel {
2407 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2408 /* 32-bit unsigned value; indicates the connection/iface type likely to
2409 * come on this channel (see enum qca_iface_type).
2410 */
2411 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2412 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2413 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2414 /* keep last */
2415 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2416 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2417 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2418};
2419
2420enum qca_iface_type {
2421 QCA_IFACE_TYPE_STA,
2422 QCA_IFACE_TYPE_AP,
2423 QCA_IFACE_TYPE_P2P_CLIENT,
2424 QCA_IFACE_TYPE_P2P_GO,
2425 QCA_IFACE_TYPE_IBSS,
2426 QCA_IFACE_TYPE_TDLS,
2427};
2428
2429enum qca_set_band {
Hai Shalom899fcc72020-10-19 14:38:18 -07002430 QCA_SETBAND_AUTO = 0,
2431 QCA_SETBAND_5G = BIT(0),
2432 QCA_SETBAND_2G = BIT(1),
2433 QCA_SETBAND_6G = BIT(2),
Ravi Joshie6ccb162015-07-16 17:45:41 -07002434};
2435
Dmitry Shmidt17022322016-04-06 13:28:42 -07002436/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002437 * enum qca_access_policy - Access control policy
2438 *
2439 * Access control policy is applied on the configured IE
2440 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2441 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2442 *
2443 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2444 * the specific configuration (IE) set, i.e., allow all the
2445 * connections which do not match the configuration.
2446 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2447 * the specific configuration (IE) set, i.e., deny all the
2448 * connections which do not match the configuration.
2449 */
2450enum qca_access_policy {
2451 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2452 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2453};
2454
2455/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002456 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2457 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2458 * Specify the TSF command. Possible values are defined in
2459 * &enum qca_tsf_cmd.
2460 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2461 * This attribute contains TSF timer value. This attribute is only available
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002462 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
2463 * response.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002464 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2465 * This attribute contains SOC timer value at TSF capture. This attribute is
2466 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2467 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2468 * This attribute is used to provide TSF sync interval and only applicable when
2469 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2470 * driver will use the default value. Time unit is in milliseconds.
Sunil Ravi036cec52023-03-29 11:35:17 -07002471 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2472 * alignment.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002473 */
2474enum qca_vendor_attr_tsf_cmd {
2475 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2476 QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2477 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2478 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002479 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
Sunil Ravi036cec52023-03-29 11:35:17 -07002480 QCA_WLAN_VENDOR_ATTR_TSF_PAD,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002481 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2482 QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2483 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2484};
2485
2486/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002487 * enum qca_tsf_cmd: TSF driver commands
Dmitry Shmidt17022322016-04-06 13:28:42 -07002488 * @QCA_TSF_CAPTURE: Initiate TSF Capture
2489 * @QCA_TSF_GET: Get TSF capture value
2490 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
Hai Shaloma20dcd72022-02-04 13:43:00 -08002491 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2492 * will automatically send TSF report to the host. To query
Sunil Ravi7f769292024-07-23 22:21:32 +00002493 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2494 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs
2495 * to be initiated first.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002496 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2497 * will not automatically send TSF report to the host. If
2498 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
Sunil Ravi7f769292024-07-23 22:21:32 +00002499 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
2500 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried
2501 * anymore, this operation needs to be initiated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002502 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2503 * fetches TSF and host time mapping from the firmware with interval configured
2504 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2505 * interval value is not provided the driver will use the default value. The
2506 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2507 * command.
2508 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002509 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
2510 * starts beaconing on a new channel. The driver synchronously responds with the
2511 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
2512 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
2513 * on the AP interface. This TSF can be sent via OOB mechanism to connected
2514 * clients.
Dmitry Shmidt17022322016-04-06 13:28:42 -07002515 */
2516enum qca_tsf_cmd {
2517 QCA_TSF_CAPTURE,
2518 QCA_TSF_GET,
2519 QCA_TSF_SYNC_GET,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002520 QCA_TSF_AUTO_REPORT_ENABLE,
2521 QCA_TSF_AUTO_REPORT_DISABLE,
2522 QCA_TSF_SYNC_START,
2523 QCA_TSF_SYNC_STOP,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002524 QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
Dmitry Shmidt17022322016-04-06 13:28:42 -07002525};
2526
2527/**
2528 * enum qca_vendor_attr_wisa_cmd
2529 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2530 * WISA setup vendor commands
2531 */
2532enum qca_vendor_attr_wisa_cmd {
2533 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2534 QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2535 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2536 QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2537 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2538};
2539
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002540/* IEEE 802.11 Vendor Specific elements */
2541
2542/**
2543 * enum qca_vendor_element_id - QCA Vendor Specific element types
2544 *
2545 * These values are used to identify QCA Vendor Specific elements. The
2546 * payload of the element starts with the three octet OUI (OUI_QCA) and
2547 * is followed by a single octet type which is defined by this enum.
2548 *
2549 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2550 * This element can be used to specify preference order for supported
2551 * channels. The channels in this list are in preference order (the first
2552 * one has the highest preference) and are described as a pair of
2553 * (global) Operating Class and Channel Number (each one octet) fields.
2554 *
2555 * This extends the standard P2P functionality by providing option to have
2556 * more than one preferred operating channel. When this element is present,
2557 * it replaces the preference indicated in the Operating Channel attribute.
2558 * For supporting other implementations, the Operating Channel attribute is
2559 * expected to be used with the highest preference channel. Similarly, all
2560 * the channels included in this Preferred channel list element are
2561 * expected to be included in the Channel List attribute.
2562 *
2563 * This vendor element may be included in GO Negotiation Request, P2P
2564 * Invitation Request, and Provision Discovery Request frames.
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002565 *
2566 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2567 * This element can be used for pre-standard publication testing of HE
2568 * before P802.11ax draft assigns the element ID. The payload of this
2569 * vendor specific element is defined by the latest P802.11ax draft.
2570 * Please note that the draft is still work in progress and this element
2571 * payload is subject to change.
2572 *
2573 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2574 * This element can be used for pre-standard publication testing of HE
2575 * before P802.11ax draft assigns the element ID. The payload of this
2576 * vendor specific element is defined by the latest P802.11ax draft.
2577 * Please note that the draft is still work in progress and this element
2578 * payload is subject to change.
Paul Stewart092955c2017-02-06 09:13:09 -08002579 *
2580 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2581 * element).
2582 * This element can be used for pre-standard publication testing of HE
2583 * before P802.11ax draft assigns the element ID extension. The payload of
2584 * this vendor specific element is defined by the latest P802.11ax draft
2585 * (not including the Element ID Extension field). Please note that the
2586 * draft is still work in progress and this element payload is subject to
2587 * change.
2588 *
2589 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2590 * This element can be used for pre-standard publication testing of HE
2591 * before P802.11ax draft assigns the element ID extension. The payload of
2592 * this vendor specific element is defined by the latest P802.11ax draft
2593 * (not including the Element ID Extension field). Please note that the
2594 * draft is still work in progress and this element payload is subject to
2595 * change.
2596 *
2597 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2598 * This element can be used for pre-standard publication testing of HE
2599 * before P802.11ax draft assigns the element ID extension. The payload of
2600 * this vendor specific element is defined by the latest P802.11ax draft
2601 * (not including the Element ID Extension field). Please note that the
2602 * draft is still work in progress and this element payload is subject to
2603 * change.
Hai Shalom899fcc72020-10-19 14:38:18 -07002604 *
2605 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002606 */
2607enum qca_vendor_element_id {
2608 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
Dmitry Shmidt4ae50e62016-06-27 13:48:39 -07002609 QCA_VENDOR_ELEM_HE_CAPAB = 1,
2610 QCA_VENDOR_ELEM_HE_OPER = 2,
Paul Stewart092955c2017-02-06 09:13:09 -08002611 QCA_VENDOR_ELEM_RAPS = 3,
2612 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2613 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
Hai Shalom899fcc72020-10-19 14:38:18 -07002614 QCA_VENDOR_ELEM_ALLPLAY = 6,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002615};
2616
2617/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08002618 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2619 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2620 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2621 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2622 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2623 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2624 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2625 */
2626enum qca_wlan_vendor_scan_priority {
2627 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2628 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2629 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2630 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2631 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2632};
2633
2634/**
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002635 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2636 *
2637 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2638 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2639 * with frequencies to be scanned (in MHz)
2640 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2641 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2642 * rates to be included
2643 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
Roshan Pius3a1667e2018-07-03 15:17:14 -07002644 * at non CCK rate in 2GHz band
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002645 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2646 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
Roshan Pius3a1667e2018-07-03 15:17:14 -07002647 * driver for the specific scan request
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002648 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
Roshan Pius3a1667e2018-07-03 15:17:14 -07002649 * request decoded as in enum scan_status
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002650 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
Roshan Pius3a1667e2018-07-03 15:17:14 -07002651 * scan flag is set
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002652 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002653 * randomisation
Dmitry Shmidt29333592017-01-09 12:27:11 -08002654 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2655 * specific BSSID to scan for.
Hai Shalomfdcde762020-04-02 11:19:20 -07002656 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2657 * microseconds. This is a common value which applies across all
2658 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
Hai Shaloma20dcd72022-02-04 13:43:00 -08002659 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2660 * other scan requests. It is a u32 attribute and takes values from enum
2661 * qca_wlan_vendor_scan_priority. This is an optional attribute.
2662 * If this attribute is not configured, the driver shall use
2663 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
Sunil Ravi036cec52023-03-29 11:35:17 -07002664 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2665 * alignment.
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002666 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
2667 * when AP is operating as MLD to specify which link is requesting the
2668 * scan or which link the scan result is for. No need of this attribute
2669 * in other cases.
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002670 */
2671enum qca_wlan_vendor_attr_scan {
2672 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002673 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2674 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2675 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2676 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2677 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2678 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2679 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2680 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2681 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2682 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2683 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
Hai Shalomfdcde762020-04-02 11:19:20 -07002684 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
Hai Shaloma20dcd72022-02-04 13:43:00 -08002685 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -07002686 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
Sunil Ravib0ac25f2024-07-12 01:42:03 +00002687 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002688 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2689 QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2690 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2691};
2692
2693/**
2694 * enum scan_status - Specifies the valid values the vendor scan attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07002695 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002696 *
2697 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002698 * new scan results
Dmitry Shmidtd80a4012015-11-05 16:35:40 -08002699 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2700 */
2701enum scan_status {
2702 VENDOR_SCAN_STATUS_NEW_RESULTS,
2703 VENDOR_SCAN_STATUS_ABORTED,
2704 VENDOR_SCAN_STATUS_MAX,
2705};
2706
2707/**
2708 * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2709 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2710 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2711 */
2712enum qca_vendor_attr_ota_test {
2713 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2714 /* 8-bit unsigned value to indicate if OTA test is enabled */
2715 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2716 /* keep last */
2717 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2718 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2719 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2720};
2721
2722/**
2723 * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2724 *
2725 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2726 */
2727enum qca_vendor_attr_txpower_scale {
2728 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2729 /* 8-bit unsigned value to indicate the scaling of tx power */
2730 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2731 /* keep last */
2732 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2733 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2734 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2735};
2736
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002737/**
2738 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2739 *
2740 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2741 */
2742enum qca_vendor_attr_txpower_decr_db {
2743 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2744 /* 8-bit unsigned value to indicate the reduction of TX power in dB for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002745 * a virtual interface.
2746 */
Dmitry Shmidtd7ff03d2015-12-04 14:49:35 -08002747 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2748 /* keep last */
2749 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2750 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2751 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2752};
2753
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002754/* Attributes for data used by
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002755 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2756 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002757 */
2758enum qca_wlan_vendor_attr_config {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002759 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002760 /* Unsigned 32-bit value to set the DTIM period.
2761 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2762 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2763 * DTIM beacons.
2764 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002765 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002766 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2767 * used to calculate statistics like average the TSF offset or average
2768 * number of frame leaked.
2769 * For instance, upon Beacon frame reception:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002770 * current_avg = ((beacon_TSF - TBTT) * factor +
2771 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002772 * For instance, when evaluating leaky APs:
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002773 * current_avg = ((num frame received within guard time) * factor +
2774 * previous_avg * (0x10000 - factor)) / 0x10000
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002775 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002776 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002777 /* Unsigned 32-bit value to configure guard time, i.e., when
2778 * implementing IEEE power management based on frame control PM bit, how
2779 * long the driver waits before shutting down the radio and after
2780 * receiving an ACK frame for a Data frame with PM bit set.
2781 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002782 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002783 /* Unsigned 32-bit value to change the FTM capability dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002784 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002785 /* Unsigned 16-bit value to configure maximum TX rate dynamically */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002786 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002787 /* Unsigned 32-bit value to configure the number of continuous
2788 * Beacon Miss which shall be used by the firmware to penalize
2789 * the RSSI.
2790 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002791 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002792 /* Unsigned 8-bit value to configure the channel avoidance indication
2793 * behavior. Firmware to send only one indication and ignore duplicate
2794 * indications when set to avoid multiple Apps wakeups.
2795 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002796 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002797 /* 8-bit unsigned value to configure the maximum TX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002798 * aggregation.
2799 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002800 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07002801 /* 8-bit unsigned value to configure the maximum RX MPDU for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002802 * aggregation.
2803 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002804 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002805 /* 8-bit unsigned value to configure the Non aggregrate/11g sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002806 * retry threshold (0 disable, 31 max).
2807 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002808 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002809 /* 8-bit unsigned value to configure the aggregrate sw
Roshan Pius3a1667e2018-07-03 15:17:14 -07002810 * retry threshold (0 disable, 31 max).
2811 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002812 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002813 /* 8-bit unsigned value to configure the MGMT frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002814 * retry threshold (0 disable, 31 max).
2815 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002816 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002817 /* 8-bit unsigned value to configure the CTRL frame
Roshan Pius3a1667e2018-07-03 15:17:14 -07002818 * retry threshold (0 disable, 31 max).
2819 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002820 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002821 /* 8-bit unsigned value to configure the propagation delay for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002822 * 2G/5G band (0~63, units in us)
2823 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002824 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07002825 /* Unsigned 32-bit value to configure the number of unicast TX fail
2826 * packet count. The peer is disconnected once this threshold is
Roshan Pius3a1667e2018-07-03 15:17:14 -07002827 * reached.
2828 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002829 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002830 /* Attribute used to set scan default IEs to the driver.
2831 *
2832 * These IEs can be used by scan operations that will be initiated by
2833 * the driver/firmware.
2834 *
2835 * For further scan requests coming to the driver, these IEs should be
2836 * merged with the IEs received along with scan request coming to the
2837 * driver. If a particular IE is present in the scan default IEs but not
2838 * present in the scan request, then that IE should be added to the IEs
Roshan Pius3a1667e2018-07-03 15:17:14 -07002839 * sent in the Probe Request frames for that scan request.
2840 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002841 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002842 /* Unsigned 32-bit attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002843 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002844 /* Unsigned 32-bit value attribute for generic commands */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002845 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002846 /* Unsigned 32-bit data attribute for generic command response */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002847 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002848 /* Unsigned 32-bit length attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002849 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2850 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002851 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002852 /* Unsigned 32-bit flags attribute for
Roshan Pius3a1667e2018-07-03 15:17:14 -07002853 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2854 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002855 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002856 /* Unsigned 32-bit, defining the access policy.
2857 * See enum qca_access_policy. Used with
Roshan Pius3a1667e2018-07-03 15:17:14 -07002858 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2859 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002860 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002861 /* Sets the list of full set of IEs for which a specific access policy
2862 * has to be applied. Used along with
2863 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
Roshan Pius3a1667e2018-07-03 15:17:14 -07002864 * Zero length payload can be used to clear this access constraint.
2865 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002866 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002867 /* Unsigned 32-bit, specifies the interface index (netdev) for which the
2868 * corresponding configurations are applied. If the interface index is
2869 * not specified, the configurations are attributed to the respective
Roshan Pius3a1667e2018-07-03 15:17:14 -07002870 * wiphy.
2871 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002872 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07002873 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002874 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002875 /* 8-bit unsigned value to configure the driver and below layers to
2876 * ignore the assoc disallowed set by APs while connecting
Roshan Pius3a1667e2018-07-03 15:17:14 -07002877 * 1-Ignore, 0-Don't ignore
2878 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002879 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002880 /* 32-bit unsigned value to trigger antenna diversity features:
Roshan Pius3a1667e2018-07-03 15:17:14 -07002881 * 1-Enable, 0-Disable
2882 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002883 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002884 /* 32-bit unsigned value to configure specific chain antenna */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002885 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002886 /* 32-bit unsigned value to trigger cycle selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002887 * 1-Enable, 0-Disable
2888 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002889 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07002890 /* 32-bit unsigned to configure the cycle time of selftest
Roshan Pius3a1667e2018-07-03 15:17:14 -07002891 * the unit is micro-second
2892 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002893 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2894 /* 32-bit unsigned value to set reorder timeout for AC_VO */
2895 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2896 /* 32-bit unsigned value to set reorder timeout for AC_VI */
2897 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2898 /* 32-bit unsigned value to set reorder timeout for AC_BE */
2899 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2900 /* 32-bit unsigned value to set reorder timeout for AC_BK */
2901 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2902 /* 6-byte MAC address to point out the specific peer */
Sunil Ravi2a14cf12023-11-21 00:54:38 +00002903 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
2904 /* Backward compatibility with the original name */
2905 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
2906 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08002907 /* 32-bit unsigned value to set window size for specific peer */
2908 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
Dmitry Shmidt29333592017-01-09 12:27:11 -08002909 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2910 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2911 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2912 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002913 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2914 * station device while in disconnect state. The attribute use the
2915 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2916 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2917 * 10 MHz channel width, the station will not connect to a BSS using 20
2918 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
Roshan Pius3a1667e2018-07-03 15:17:14 -07002919 * clear this constraint.
2920 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002921 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2922 /* 32-bit unsigned value to configure the propagation absolute delay
Roshan Pius3a1667e2018-07-03 15:17:14 -07002923 * for 2G/5G band (units in us)
2924 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002925 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2926 /* 32-bit unsigned value to set probe period */
2927 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2928 /* 32-bit unsigned value to set stay period */
2929 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2930 /* 32-bit unsigned value to set snr diff */
2931 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2932 /* 32-bit unsigned value to set probe dwell time */
2933 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2934 /* 32-bit unsigned value to set mgmt snr weight */
2935 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2936 /* 32-bit unsigned value to set data snr weight */
2937 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2938 /* 32-bit unsigned value to set ack snr weight */
2939 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2940 /* 32-bit unsigned value to configure the listen interval.
2941 * This is in units of beacon intervals. This configuration alters
2942 * the negotiated listen interval with the AP during the connection.
2943 * It is highly recommended to configure a value less than or equal to
2944 * the one negotiated during the association. Configuring any greater
2945 * value can have adverse effects (frame loss, AP disassociating STA,
2946 * etc.).
2947 */
2948 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2949 /*
2950 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2951 * disable operations that would cause the AP/GO to leave its operating
2952 * channel.
2953 *
2954 * This will restrict the scans to the AP/GO operating channel and the
2955 * channels of the other band, if DBS is supported.A STA/CLI interface
2956 * brought up after this setting is enabled, will be restricted to
2957 * connecting to devices only on the AP/GO interface's operating channel
2958 * or on the other band in DBS case. P2P supported channel list is
2959 * modified, to only include AP interface's operating-channel and the
2960 * channels of the other band if DBS is supported.
2961 *
2962 * These restrictions are only applicable as long as the AP/GO interface
2963 * is alive. If the AP/GO interface is brought down then this
2964 * setting/restriction is forgotten.
2965 *
2966 * If this variable is set on an AP/GO interface while a multi-channel
2967 * concurrent session is active, it has no effect on the operation of
2968 * the current interfaces, other than restricting the scan to the AP/GO
2969 * operating channel and the other band channels if DBS is supported.
2970 * However, if the STA is brought down and restarted then the new STA
2971 * connection will either be formed on the AP/GO channel or on the
2972 * other band in a DBS case. This is because of the scan being
2973 * restricted on these channels as mentioned above.
2974 *
2975 * 1-Restrict / 0-Don't restrict offchannel operations.
2976 */
2977 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2978 /*
2979 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2980 * on an interface.
2981 * 1 - Enable, 0 - Disable.
2982 */
2983 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2984
2985 /*
2986 * 8 bit unsigned value to globally enable/disable scan
2987 * 1 - Enable, 0 - Disable.
2988 */
2989 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2990
2991 /* 8-bit unsigned value to set the total beacon miss count
Roshan Pius3a1667e2018-07-03 15:17:14 -07002992 * This parameter will set the total beacon miss count.
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07002993 */
2994 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2995
2996 /* Unsigned 32-bit value to configure the number of continuous
2997 * Beacon Miss which shall be used by the firmware to penalize
2998 * the RSSI for BTC.
2999 */
3000 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
3001
3002 /* 8-bit unsigned value to configure the driver and below layers to
3003 * enable/disable all FILS features.
Roshan Pius3a1667e2018-07-03 15:17:14 -07003004 * 0-enable, 1-disable
3005 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07003006 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003007
Roshan Pius3a1667e2018-07-03 15:17:14 -07003008 /* 16-bit unsigned value to configure the level of WLAN latency
3009 * module. See enum qca_wlan_vendor_attr_config_latency_level.
3010 */
3011 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
3012
3013 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from
3014 * the connect interface. Exclusively used for the scenarios where the
3015 * device is used as a test bed device with special functionality and
3016 * not recommended for production. This helps driver to not validate the
3017 * RSNE passed from user space and thus allow arbitrary IE data to be
3018 * used for testing purposes.
3019 * 1-enable, 0-disable.
3020 * Applications set/reset this configuration. If not reset, this
3021 * parameter remains in use until the driver is unloaded.
3022 */
3023 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
3024
3025 /* 8-bit unsigned value to trigger green Tx power saving.
3026 * 1-Enable, 0-Disable
3027 */
3028 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
3029
Hai Shalomc3565922019-10-28 11:58:20 -07003030 /* Attribute to configure disconnect IEs to the driver.
3031 * This carries an array of unsigned 8-bit characters.
3032 *
3033 * If this is configured, driver shall fill the IEs in disassoc/deauth
3034 * frame.
3035 * These IEs are expected to be considered only for the next
3036 * immediate disconnection (disassoc/deauth frame) originated by
3037 * the DUT, irrespective of the entity (user space/driver/firmware)
3038 * triggering the disconnection.
3039 * The host drivers are not expected to use the IEs set through
3040 * this interface for further disconnections after the first immediate
3041 * disconnection initiated post the configuration.
3042 * If the IEs are also updated through cfg80211 interface (after the
3043 * enhancement to cfg80211_disconnect), host driver is expected to
3044 * take the union of IEs from both of these interfaces and send in
3045 * further disassoc/deauth frames.
3046 */
Hai Shalomfdcde762020-04-02 11:19:20 -07003047 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
Hai Shalomc3565922019-10-28 11:58:20 -07003048
3049 /* 8-bit unsigned value for ELNA bypass.
Sunil Ravia04bd252022-05-02 22:54:18 -07003050 * 0 - Disable eLNA bypass.
3051 * 1 - Enable eLNA bypass.
3052 * 2 - Reset eLNA bypass configuration, the driver should
3053 * revert to the default configuration of eLNA bypass.
Hai Shalomc3565922019-10-28 11:58:20 -07003054 */
3055 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
3056
Hai Shalomfdcde762020-04-02 11:19:20 -07003057 /* 8-bit unsigned value. This attribute enables/disables the host driver
3058 * to send the Beacon Report Response with failure reason for the
3059 * scenarios where STA cannot honor the Beacon Report Request from AP.
3060 * 1-Enable, 0-Disable.
3061 */
3062 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
3063
3064 /* 8-bit unsigned value. This attribute enables/disables the host driver
3065 * to send roam reason information in the Reassociation Request frame to
3066 * the target AP when roaming within the same ESS.
3067 * 1-Enable, 0-Disable.
3068 */
3069 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
3070
Hai Shalom899fcc72020-10-19 14:38:18 -07003071 /* 32-bit unsigned value to configure different PHY modes to the
3072 * driver/firmware. The possible values are defined in
3073 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
3074 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
3075 * the driver.
3076 */
3077 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
3078
3079 /* 8-bit unsigned value to configure the maximum supported channel width
3080 * for STA mode. If this value is configured when STA is in connected
3081 * state, it should not exceed the negotiated channel width. If it is
3082 * configured when STA is in disconnected state, the configured value
3083 * will take effect for the next immediate connection.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003084 * This configuration can be sent inside
3085 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3086 * supported channel width per-MLO link.
Sunil Ravi036cec52023-03-29 11:35:17 -07003087 *
3088 * This uses values defined in enum nl80211_chan_width.
Hai Shalom899fcc72020-10-19 14:38:18 -07003089 */
3090 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
3091
3092 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
3093 * This attribute is only applicable for STA mode. When dynamic
3094 * bandwidth adjustment is disabled, STA will use static channel width
3095 * the value of which is negotiated during connection.
3096 * 1-enable (default), 0-disable
3097 */
3098 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
3099
3100 /* 8-bit unsigned value to configure the maximum number of subframes of
3101 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
3102 * it is decided by the hardware.
3103 */
3104 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
3105
3106 /* 8-bit unsigned value to configure the maximum number of subframes of
3107 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
3108 * it is decided by the hardware.
3109 */
3110 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
3111
3112 /* 8-bit unsigned value. This attribute is used to dynamically
3113 * enable/disable the LDPC capability of the device. When configured in
3114 * the disconnected state, the updated configuration will be considered
3115 * for the immediately following connection attempt. If this
3116 * configuration is modified while the device is in the connected state,
3117 * the LDPC TX will be updated with this configuration immediately,
3118 * while the LDPC RX configuration update will take place starting from
3119 * the subsequent association attempt.
3120 * 1-Enable, 0-Disable.
3121 */
3122 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
3123
3124 /* 8-bit unsigned value. This attribute is used to dynamically
3125 * enable/disable the TX STBC capability of the device. When configured
3126 * in the disconnected state, the updated configuration will be
3127 * considered for the immediately following connection attempt. If the
3128 * connection is formed with TX STBC enabled and if this configuration
3129 * is disabled during that association, the TX will be impacted
3130 * immediately. Further connection attempts will disable TX STBC.
3131 * However, enabling the TX STBC for a connected session with disabled
3132 * capability is not allowed and will fail.
3133 * 1-Enable, 0-Disable.
3134 */
3135 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
3136
3137 /* 8-bit unsigned value. This attribute is used to dynamically
3138 * enable/disable the RX STBC capability of the device. When configured
3139 * in the disconnected state, the updated configuration will be
3140 * considered for the immediately following connection attempt. If the
3141 * configuration is modified in the connected state, there will be no
3142 * impact for the current association, but further connection attempts
3143 * will use the updated configuration.
3144 * 1-Enable, 0-Disable.
3145 */
3146 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
3147
Sunil Ravi7f769292024-07-23 22:21:32 +00003148 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003149 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
Sunil Ravi7f769292024-07-23 22:21:32 +00003150
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003151 /* 8-bit unsigned value to configure Optimized Power Management mode:
3152 * Modes are defined by enum qca_wlan_vendor_opm_mode.
3153 *
3154 * This attribute shall be configured along with
3155 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3156 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
3157 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
Hai Shalom899fcc72020-10-19 14:38:18 -07003158 */
3159 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
3160
3161 /* 8-bit unsigned value. This attribute takes the QoS/access category
3162 * value represented by the enum qca_wlan_ac_type and expects the driver
3163 * to upgrade the UDP frames to this access category. The value of
3164 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
3165 * DSCP value configured in the frame with the intention to only upgrade
3166 * the access category. That said, it is not intended to downgrade the
3167 * access category for the frames.
3168 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3169 * disabled, as BK is of the lowest priority and an upgrade to it does
3170 * not result in any changes for the frames.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003171 *
3172 * If only UDP frames of BE or BK access category needs to be upgraded
3173 * without changing the access category of VO or VI UDP frames, refer to
3174 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
3175 *
3176 * This attribute is not recommended to be used as it blindly forces all
3177 * UDP packets to a higher access category which could impact the
3178 * traffic pattern of all apps using UDP and can cause unknown behavior.
Hai Shalom899fcc72020-10-19 14:38:18 -07003179 */
3180 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
3181
Sunil Ravi7f769292024-07-23 22:21:32 +00003182 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003183 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
Sunil Ravi7f769292024-07-23 22:21:32 +00003184
3185 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
Hai Shalom899fcc72020-10-19 14:38:18 -07003186 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
3187
3188 /* 8-bit unsigned value to configure ANI setting type.
3189 * See &enum qca_wlan_ani_setting for possible values.
3190 */
3191 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
3192 /* 32-bit signed value to configure ANI level. This is used when
3193 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
3194 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
3195 * is invalid, the driver will return a failure.
3196 */
3197 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
3198
Hai Shalom60840252021-02-19 19:02:11 -08003199 /* 8-bit unsigned value. This attribute is used to dynamically configure
3200 * the number of spatial streams used for transmitting the data. When
3201 * configured in the disconnected state, the configured value will
3202 * be considered for the following connection attempt.
3203 * If the NSS is updated after the connection, the updated NSS value
3204 * is notified to the peer using the Operating Mode Notification/Spatial
3205 * Multiplexing Power Save frame.
3206 * The TX NSS value configured after the connection shall not be greater
3207 * than the value negotiated during the connection. Any such higher
3208 * value configuration shall be treated as invalid configuration by
3209 * the driver. This attribute shall be configured along with
3210 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
3211 * configuration (such as 2X2 or 1X1) or the asymmetric
3212 * configuration (such as 1X2).
3213 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3214 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
3215 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
3216 */
3217 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
3218
3219 /* 8-bit unsigned value. This attribute is used to dynamically configure
3220 * the number of spatial streams used for receiving the data. When
3221 * configured in the disconnected state, the configured value will
3222 * be considered for the following connection attempt.
3223 * If the NSS is updated after the connection, the updated NSS value
3224 * is notified to the peer using the Operating Mode Notification/Spatial
3225 * Multiplexing Power Save frame.
3226 * The RX NSS value configured after the connection shall not be greater
3227 * than the value negotiated during the connection. Any such higher
3228 * value configuration shall be treated as invalid configuration by
3229 * the driver. This attribute shall be configured along with
3230 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
3231 * configuration (such as 2X2 or 1X1) or the asymmetric
3232 * configuration (such as 1X2).
3233 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
3234 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
3235 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
3236 */
3237 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
3238
Hai Shaloma20dcd72022-02-04 13:43:00 -08003239 /*
3240 * 8-bit unsigned value. This attribute, when set, indicates whether the
3241 * specified interface is the primary STA interface when there are more
3242 * than one STA interfaces concurrently active.
3243 *
3244 * This configuration helps the firmware/hardware to support certain
3245 * features (e.g., roaming) on this primary interface, if the same
3246 * cannot be supported on the concurrent STA interfaces simultaneously.
3247 *
3248 * This configuration is only applicable for a single STA interface on
3249 * a device and gives the priority for it only over other concurrent STA
3250 * interfaces.
3251 *
3252 * If the device is a multi wiphy/soc, this configuration applies to a
3253 * single STA interface across the wiphys.
3254 *
3255 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
3256 */
3257 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
3258
3259 /*
3260 * 8-bit unsigned value. This attribute can be used to configure the
3261 * driver to enable/disable FT-over-DS feature. Possible values for
3262 * this attribute are 1-Enable and 0-Disable.
3263 */
3264 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
3265
3266 /*
3267 * 8-bit unsigned value. This attribute can be used to configure the
3268 * firmware to enable/disable ARP/NS offload feature. Possible values
3269 * for this attribute are 0-Disable and 1-Enable.
3270 *
3271 * This attribute is only applicable for STA/P2P-Client interface,
3272 * and is optional, default behavior is ARP/NS offload enabled.
3273 *
3274 * This attribute can be set in disconnected and connected state, and
3275 * will restore to the default behavior if the interface is closed.
3276 */
3277 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
3278
Sunil8cd6f4d2022-06-28 18:40:46 +00003279 /*
3280 * 8-bit unsigned value. This attribute can be used to configure the
3281 * data path mode to be followed for audio traffic. Possible values
3282 * are defined in enum qca_wlan_audio_data_path.
Sunil Ravi640215c2023-06-28 23:08:09 +00003283 *
3284 * This attribute is used only when the driver advertises support for
3285 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +00003286 */
3287 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
3288
Sunil Ravi89eba102022-09-13 21:04:37 -07003289 /*
3290 * 8-bit unsigned value. This attribute can be used to configure the
3291 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
3292 * this attribute are defined in the enum qca_wlan_dbam_config.
3293 */
3294 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
3295
Sunil Ravi77d572f2023-01-17 23:58:31 +00003296 /* 8-bit unsigned value. This attribute takes the QoS/access category
3297 * value represented by the enum qca_wlan_ac_type and expects the driver
3298 * to upgrade the UDP frames of BE or BK access category to this access
3299 * category. This attribute will not modify UDP frames of VO or VI
3300 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
3301 * attribute.
3302 *
3303 * This will override the DSCP value configured in the frame with the
3304 * intention to only upgrade the access category. That said, it is not
3305 * intended to downgrade the access category for the frames.
3306 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
3307 * disabled, as BK is of the lowest priority and an upgrade to it does
3308 * not result in any changes for the frames.
3309 *
3310 * This attribute behavior is similar to
3311 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
3312 * only UDP frames of BE or BK access category are upgraded and not
3313 * UDP frames of VI or VO access category.
3314 *
3315 * This attribute is not recommended to be used as it blindly forces all
3316 * UDP packets of BE or BK access category to a higher access category
3317 * which could impact the traffic pattern of all apps using UDP and can
3318 * cause unknown behavior.
3319 */
3320 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
3321
3322 /* 8-bit unsigned value to configure the driver to enable/disable the
3323 * periodic sounding for Tx beamformer functionality. The default
3324 * behavior uses algorithm to do sounding based on packet stats.
3325 *
3326 * 0 - Default behavior.
3327 * 1 - Enable the periodic sounding for Tx beamformer.
3328 */
3329 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
3330
3331 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
3332 * userspace sends this information to the driver/firmware to configure
3333 * wfc state. The driver/firmware uses this information to
3334 * optimize power savings, rate adaption, roaming, etc.
3335 *
3336 * 1 - wfc is on.
3337 * 0 - wfc is off.
3338 */
3339 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
3340
3341 /* 8-bit unsigned value to configure the driver to enable/disable the
3342 * EHT EML capability in management frame EHT capabilities.
3343 * 1 - Enable, 0 - Disable.
3344 */
3345 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
3346
3347 /* 8-bit unsigned value to configure the driver with EHT MLO max
3348 * simultaneous links to be used for MLO connection.
3349 * The range of the value is 0 to 14.
3350 */
3351 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
3352
3353 /* 8-bit unsigned value to configure the driver with EHT MLO maximum
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003354 * number of links to be used for MLO connection. Value 0 restores the
3355 * default value of the maximum MLO links capability of the device.
3356 * The range of the value is 0 to 15.
3357 *
3358 * 0 - Restore default device limit.
3359 * 1 to 15 - Set the maximum number of links to be used for an MLO
3360 * connection.
Sunil Ravi77d572f2023-01-17 23:58:31 +00003361 */
3362 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
3363
3364 /* 8-bit unsigned value to configure the driver with EHT MLO mode.
3365 * Uses enum qca_wlan_eht_mlo_mode values.
3366 */
3367 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
3368
Sunil Ravi640215c2023-06-28 23:08:09 +00003369 /* Nested attribute with frequencies in u32 attributes to configure a
3370 * list of allowed 20 MHz channel center frequencies in MHz for AP
3371 * operation. Whenever performing a channel selection operation, the
3372 * driver shall generate a new list based on this provided list by
3373 * filtering out channels that cannot be used at that time due to
3374 * regulatory or other constraints. The resulting list is used as the
3375 * list of all allowed channels, i.e., operation on any channel that is
3376 * not included is not allowed, whenever performing operations like ACS
3377 * and DFS.
3378 *
3379 * Userspace shall configure this before starting the AP and the
3380 * configuration is valid only from the next BSS start and until the
3381 * BSS is stopped. The driver shall clear this configuration when the
3382 * AP is stopped and fall back to the default behavior for subsequent
3383 * AP operation.
3384 *
3385 * The default behavior when this configuration is not applicable is the
3386 * driver can choose any of the channels supported by the hardware
3387 * except the channels that cannot be used due to regulatory or other
3388 * constraints.
3389 *
3390 * The driver shall reject this configuration if done after the AP is
3391 * started. This attribute can be used to specify user's choice of
3392 * frequencies and static puncture channel list, etc.
3393 */
3394 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3395
3396 /* Nested attribute to indicate EHT MLO links to be forced active.
3397 * It contains link MAC address attributes. These nested attributes are
3398 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3399 * MLO links corresponding to the indicated link MAC addresses.
3400 * Subsequently, the links corresponding to the link MAC addresses that
3401 * are not indicated are forced inactive.
3402 */
3403 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3404
3405 /* 8-bit unsigned value to configure EMLSR mode entry or exit.
3406 * Uses enum qca_wlan_emlsr_mode values.
3407 */
3408 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3409
3410 /* 8-bit unsigned value to configure the channel bandwidth
3411 * for CTS frame transmission during the dymamic bandwidth
3412 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3413 * 10.3.2.9 CTS and DMG CTS procedure.
3414 * This configuration is used for testing purposes.
3415 *
3416 * This uses values defined in enum nl80211_chan_width.
3417 */
3418 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3419
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003420 /* 8-bit unsigned value. This attribute is used to dynamically
3421 * enable/suspend trigger based UL MU transmission.
3422 * This is supported in STA mode and the device sends Operating
3423 * Mode Indication to inform the change as described in
3424 * IEEE Std 802.11ax-2021, 26.9.
3425 *
3426 * This attribute can be configured when the STA is associated
3427 * to an AP and the configuration is maintained until the current
3428 * association terminates.
3429 *
3430 * By default all UL MU transmissions are enabled.
3431 *
3432 * Uses enum qca_ul_mu_config values.
3433 */
3434 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
3435
3436 /* 8-bit unsigned value. Optionally specified along with
3437 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
3438 * state. This configuration is applicable only for the current
3439 * connection. This configuration not allowed in disconnected state.
3440 * This configuration can be sent inside
3441 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
3442 * supported channel width update type per-MLO link.
3443 *
3444 * Uses enum qca_chan_width_update_type values.
3445 */
3446 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
3447
3448 /* 8-bit unsigned value to set EPCS (Emergency Preparedness
3449 * Communications Service) feature capability
3450 * 1 - Enable, 0 - Disable.
3451 *
3452 * This configuration is used for testing purposes.
3453 */
3454 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
3455
3456 /* 8-bit unsigned value to enable/disable EPCS priority access
3457 * 1 - Enable, 0 - Disable.
3458 * The EPCS priority access shall be enabled only when EPCS feature
3459 * capability is also enabled (see
3460 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
3461 *
3462 * This configuration is used for testing purposes.
3463 */
3464 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
3465
3466 /* 8-bit unsigned value. Used to specify the MLO link ID of a link
3467 * that is being configured. This attribute must be included in each
3468 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
3469 * may be included without nesting to indicate the link that is the
3470 * target of other configuration attributes.
3471 */
3472 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
3473
3474 /* Array of nested links each identified by
3475 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
3476 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
3477 * added for the attributes in enum qca_wlan_vendor_attr_config to
3478 * support per-MLO link configuration through
3479 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
3480 *
3481 * Userspace can configure a single link or multiple links with this
3482 * attribute by nesting the corresponding configuration attributes and
3483 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3484 *
3485 * Userspace can fetch the configuration attribute values for a single
3486 * link or multiple links with this attribute by nesting the
3487 * corresponding configuration attributes and
3488 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
3489 *
3490 * For STA interface, this attribute is applicable only in connected
3491 * state when the current connection is MLO capable. The valid values of
3492 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
3493 * connected AP MLD links.
3494 *
3495 * For AP interface, this configuration applicable only after adding
3496 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
3497 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
3498 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
3499 * the AP interface.
3500 */
3501 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
3502
3503 /* 16-bit unsigned value to configure power save inactivity timeout in
3504 * milliseconds.
3505 *
3506 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
3507 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
3508 *
3509 * This attribute shall be configured along with
3510 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
3511 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3512 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3513 */
3514 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
3515
3516 /* 16-bit unsigned value to configure speculative wake interval in
3517 * milliseconds.
3518 *
3519 * STA speculatively wakes up to look for buffered data by AP at
3520 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
3521 * entering into power save. If configured zero, STA wakes up at
3522 * upcoming DTIM beacon.
3523 *
3524 * This attribute shall be configured along with
3525 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
3526 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
3527 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
3528 */
3529 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
3530
3531 /*
3532 * 16-bit unsigned value to configure TX max A-MPDU count.
3533 *
3534 * For STA interface, this attribute is applicable only in connected
3535 * state, peer MAC address is not required to be provided.
3536 *
3537 * For AP interface, this attribute is applicable only in started
3538 * state and one of the associated peer STAs must be specified with
3539 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
3540 * association, the peer MAC address provided is the link address of
3541 * the non-AP MLD.
3542 *
3543 * This attribute runtime configures the TX maximum aggregation size.
3544 * The value must be in range of 1 to BA window size for the specific
3545 * peer.
3546 */
3547 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
3548
3549 /*
3550 * 8-bit unsigned value to configure TID-to-link mapping negotiation
3551 * type.
3552 * Uses enum qca_wlan_ttlm_negotiation_support values.
3553 *
3554 * This value applies to the complete AP/non-AP MLD interface, and the
3555 * MLD advertises it within the Basic Multi-Link element in the
3556 * association frames. If a new value is configured during an active
3557 * connection, it will take effect in the subsequent associations and
3558 * is not reset during disconnection.
3559 *
3560 * This attribute is used for testing purposes.
3561 */
3562 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
3563
3564 /* 8-bit unsigned value.
3565 *
3566 * This attribute configures a traffic shaping mode
3567 * applied during coex scenarios.
3568 * By default all coex traffic shaping modes are enabled,
3569 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
3570 * To shape traffic, STA may enter in power save mode
3571 * and AP may send CTS-to-self frame.
3572 *
3573 * Uses enum qca_coex_traffic_shaping_mode values.
3574 */
3575 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
3576
Sunil Ravib0ac25f2024-07-12 01:42:03 +00003577 /* 8-bit unsigned value.
3578 *
3579 * This attribute is used to specify whether an associated peer is a QCA
3580 * device. The associated peer is specified with
3581 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
3582 * address of the peer is used.
3583 * 1 - QCA device, 0 - non-QCA device.
3584 */
3585 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
3586
Sunil Ravi99c035e2024-07-12 01:42:03 +00003587 /* 8-bit unsigned value to configure BTM support.
3588 *
3589 * The attribute is applicable only for STA interface. Uses enum
3590 * qca_wlan_btm_support values. This configuration is not allowed in
3591 * connected state.
3592 */
3593 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
3594
Sunil Ravi7f769292024-07-23 22:21:32 +00003595 /* 16-bit unsigned value to configure client's keep-alive interval in
3596 * seconds. The driver will reduce the keep-alive interval to this
3597 * configured value if the AP advertises BSS maximum idle period and if
3598 * that BSS max idle period is larger than this configured value. If the
3599 * AP does not advertise a maximum value, the configured value will be
3600 * used as a keep-alive period for unprotected frames.
3601 *
3602 * This configuration is applicable only during the STA's current
3603 * association.
3604 */
3605 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
3606
3607 /* 8-bit unsigned value to configure reduced power scan mode.
3608 *
3609 * This attribute is used to configure the driver to optimize power
3610 * during scan. For example, the driver can switch to 1x1 from 2x2 mode
3611 * for additional power save.
3612 *
3613 * 1 - Enable reduced power scan mode.
3614 * 0 - Disable reduced power scan mode.
3615 */
3616 QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109,
3617
3618 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3619 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110,
3620
3621 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3622 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111,
3623
3624 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3625 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112,
3626
3627 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3628 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113,
3629
3630 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3631 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114,
3632
3633 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3634 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115,
3635
3636 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3637 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116,
3638
3639 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
3640 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117,
3641
3642 /* 16-bit unsigned value. This attribute is used to dynamically
3643 * configure the time duration of data stall detection. Unit is
3644 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the
3645 * value is 0, the previously configured value is cleared. The driver
3646 * rejects this configuration if the value is out of range. This
3647 * configuration is effective for all connections on the chip. If the
3648 * duration is greater than this configuration and consecutive TX no ack
3649 * count is greater than
3650 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
3651 * data stall event is sent to userspace.
3652 */
3653 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118,
3654
3655 /* 16-bit unsigned value. This attribute is used to dynamically
3656 * configure the threshold of data stall detection. Valid value is 0 or
3657 * greater than 10. if the value is 0, the previously configured value
3658 * is cleared. The driver rejects this configuration if the value is out
3659 * of range. This configuration is effective for all connections on the
3660 * chip. If consecutive TX no ack count is greater than this
3661 * configuration and duration is greater than
3662 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION,
3663 * data stall event is sent to userspace.
3664 */
3665 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119,
3666
3667 /* 8-bit unsigned value to configure the interface offload type
3668 *
3669 * This attribute is used to configure the interface offload capability.
3670 * User can configure software based acceleration, hardware based
3671 * acceleration, or a combination of both using this option. More
3672 * details on each option is described under the enum definition below.
3673 * Uses enum qca_wlan_intf_offload_type for values.
3674 */
3675 QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120,
3676
3677 /* 8-bit unsigned integer to configure the driver to follow AP's
3678 * preference values to select a roam candidate from BTM request.
3679 *
3680 * This attribute is used to configure the driver to select the roam
3681 * candidate based on AP advertised preference values. If not set,
3682 * the driver uses its internal scoring algorithm to do the same.
3683 *
3684 * 1 - STA follows AP's preference values to select a roam candidate
3685 * 0 - STA uses internal scoring algorithm to select a roam candidate
3686 */
3687 QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121,
3688
Dmitry Shmidt849734c2016-05-27 09:59:01 -07003689 /* keep last */
3690 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3691 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3692 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3693};
3694
Hai Shalomfdcde762020-04-02 11:19:20 -07003695/* Compatibility defines for previously used incorrect enum
3696 * qca_wlan_vendor_attr_config names. These values should not be used in any
3697 * new implementation. */
3698#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3699 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3700#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3701 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3702
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003703/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00003704 * enum qca_ul_mu_config - UL MU configuration
3705 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
3706 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
3707 */
3708enum qca_ul_mu_config {
3709 QCA_UL_MU_SUSPEND = 0,
3710 QCA_UL_MU_ENABLE = 1,
3711};
3712
3713/**
Sunil Ravi89eba102022-09-13 21:04:37 -07003714 * enum qca_dbam_config - Specifies DBAM config mode
3715 * @QCA_DBAM_DISABLE: Firmware disables DBAM
3716 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3717 * internal criteria are met.
3718 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3719 */
3720enum qca_dbam_config {
3721 QCA_DBAM_DISABLE = 0,
3722 QCA_DBAM_ENABLE = 1,
3723 QCA_DBAM_FORCE_ENABLE = 2,
3724};
3725
3726/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003727 * enum qca_wlan_ani_setting - ANI setting type
3728 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3729 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3730 */
3731enum qca_wlan_ani_setting {
3732 QCA_WLAN_ANI_SETTING_AUTO = 0,
3733 QCA_WLAN_ANI_SETTING_FIXED = 1,
3734};
3735
3736/**
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003737 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
Hai Shalomc3565922019-10-28 11:58:20 -07003738 *
3739 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3740 * Channel number on which Access Point should restart.
3741 * Note: If both the driver and user space application supports the 6 GHz band,
3742 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3743 * should be used.
3744 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3745 * is still used if either of the driver or user space application doesn't
3746 * support the 6 GHz band.
3747 *
3748 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3749 * Channel center frequency (MHz) on which the access point should restart.
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003750 */
3751enum qca_wlan_vendor_attr_sap_config {
3752 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
Hai Shalomc3565922019-10-28 11:58:20 -07003753 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3754
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003755 /* List of frequencies on which AP is expected to operate.
3756 * This is irrespective of ACS configuration. This list is a priority
3757 * based one and is looked for before the AP is created to ensure the
3758 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3759 * the system.
3760 */
3761 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
Hai Shalomc3565922019-10-28 11:58:20 -07003762 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
Dmitry Shmidtd5ab1b52016-06-21 12:38:41 -07003763
3764 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3765 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3766 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3767};
3768
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003769/**
3770 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3771 * conditional channel switch
3772 */
3773enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3774 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3775 /* Priority based frequency list (an array of u32 values in host byte
Roshan Pius3a1667e2018-07-03 15:17:14 -07003776 * order)
3777 */
Dmitry Shmidt58d12ad2016-07-28 10:07:03 -07003778 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3779 /* Status of the conditional switch (u32).
3780 * 0: Success, Non-zero: Failure
3781 */
3782 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3783
3784 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3785 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3786 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3787};
3788
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003789/**
3790 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
Hai Shalom899fcc72020-10-19 14:38:18 -07003791 *
3792 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3793 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3794 * for the available values.
3795 *
3796 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3797 * value to specify the GPIO number.
3798 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3799 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3800 *
3801 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3802 * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3803 * for the available values.
3804 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3805 * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3806 *
Hai Shalom60840252021-02-19 19:02:11 -08003807 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003808 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3809 * for the available values.
3810 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003811 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3812 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3813 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3814 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003815 *
Hai Shalom60840252021-02-19 19:02:11 -08003816 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003817 * value to specify the GPIO interrupt mode. Please refer to enum
3818 * qca_gpio_interrupt_mode for the available values.
3819 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003820 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3821 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3822 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3823 * attribute is present.
Hai Shalom899fcc72020-10-19 14:38:18 -07003824 *
Hai Shalom60840252021-02-19 19:02:11 -08003825 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -07003826 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3827 * for the available values.
3828 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
Hai Shalom60840252021-02-19 19:02:11 -08003829 * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3830 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3831 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3832 * attribute is present.
3833 *
3834 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3835 * Value to specify the mux config. Meaning of a given value is dependent
3836 * on the target chipset and GPIO pin. Must be of the range 0-15.
3837 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3838 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3839 *
3840 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3841 * Value to specify the drive, refer to enum qca_gpio_drive.
3842 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3843 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3844 *
3845 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3846 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3847 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3848 * other parameters for the given GPIO will be obtained from internal
3849 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3850 * specified to indicate the GPIO pin being configured.
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003851 */
3852enum qca_wlan_gpio_attr {
3853 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3854 /* Unsigned 32-bit attribute for GPIO command */
Hai Shalom899fcc72020-10-19 14:38:18 -07003855 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003856 /* Unsigned 32-bit attribute for GPIO PIN number to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003857 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003858 /* Unsigned 32-bit attribute for GPIO value to configure */
Hai Shalom899fcc72020-10-19 14:38:18 -07003859 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003860 /* Unsigned 32-bit attribute for GPIO pull type */
Hai Shalom899fcc72020-10-19 14:38:18 -07003861 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003862 /* Unsigned 32-bit attribute for GPIO interrupt mode */
Hai Shalom899fcc72020-10-19 14:38:18 -07003863 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3864 /* Unsigned 32-bit attribute for GPIO direction to configure */
3865 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
Hai Shalom60840252021-02-19 19:02:11 -08003866 /* Unsigned 32-bit attribute for GPIO mux config */
3867 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3868 /* Unsigned 32-bit attribute for GPIO drive */
3869 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3870 /* Flag attribute for using internal GPIO configuration */
3871 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07003872
3873 /* keep last */
3874 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3875 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3876 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3877};
3878
3879/**
Hai Shalom899fcc72020-10-19 14:38:18 -07003880 * enum gpio_cmd_type - GPIO configuration command type
3881 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3882 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3883 */
3884enum qca_gpio_cmd_type {
3885 QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3886 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3887};
3888
3889/**
3890 * enum qca_gpio_pull_type - GPIO pull type
3891 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3892 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3893 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3894 */
3895enum qca_gpio_pull_type {
3896 QCA_WLAN_GPIO_PULL_NONE = 0,
3897 QCA_WLAN_GPIO_PULL_UP = 1,
3898 QCA_WLAN_GPIO_PULL_DOWN = 2,
3899 QCA_WLAN_GPIO_PULL_MAX,
3900};
3901
3902/**
3903 * enum qca_gpio_direction - GPIO direction
3904 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3905 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3906 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3907 */
3908enum qca_gpio_direction {
3909 QCA_WLAN_GPIO_INPUT = 0,
3910 QCA_WLAN_GPIO_OUTPUT = 1,
3911 QCA_WLAN_GPIO_DIR_MAX,
3912};
3913
3914/**
3915 * enum qca_gpio_value - GPIO Value
3916 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3917 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3918 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3919 */
3920enum qca_gpio_value {
3921 QCA_WLAN_GPIO_LEVEL_LOW = 0,
3922 QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3923 QCA_WLAN_GPIO_LEVEL_MAX,
3924};
3925
3926/**
3927 * enum gpio_interrupt_mode - GPIO interrupt mode
3928 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3929 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3930 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3931 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3932 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3933 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3934 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3935 */
3936enum qca_gpio_interrupt_mode {
3937 QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3938 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3939 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3940 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3941 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3942 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3943 QCA_WLAN_GPIO_INTMODE_MAX,
3944};
3945
3946/**
Hai Shalom60840252021-02-19 19:02:11 -08003947 * enum qca_gpio_drive - GPIO drive
3948 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3949 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3950 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3951 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3952 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3953 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3954 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3955 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3956 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3957 */
3958enum qca_gpio_drive {
3959 QCA_WLAN_GPIO_DRIVE_2MA = 0,
3960 QCA_WLAN_GPIO_DRIVE_4MA = 1,
3961 QCA_WLAN_GPIO_DRIVE_6MA = 2,
3962 QCA_WLAN_GPIO_DRIVE_8MA = 3,
3963 QCA_WLAN_GPIO_DRIVE_10MA = 4,
3964 QCA_WLAN_GPIO_DRIVE_12MA = 5,
3965 QCA_WLAN_GPIO_DRIVE_14MA = 6,
3966 QCA_WLAN_GPIO_DRIVE_16MA = 7,
3967 QCA_WLAN_GPIO_DRIVE_MAX,
3968};
3969
3970/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07003971 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3972 * MSDUQ depth threshold per peer per tid in the target
3973 *
3974 * Associated Vendor Command:
3975 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3976 */
3977enum qca_wlan_set_qdepth_thresh_attr {
3978 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3979 /* 6-byte MAC address */
3980 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3981 /* Unsigned 32-bit attribute for holding the TID */
3982 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3983 /* Unsigned 32-bit attribute for holding the update mask
3984 * bit 0 - Update high priority msdu qdepth threshold
3985 * bit 1 - Update low priority msdu qdepth threshold
3986 * bit 2 - Update UDP msdu qdepth threshold
3987 * bit 3 - Update Non UDP msdu qdepth threshold
3988 * rest of bits are reserved
3989 */
3990 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3991 /* Unsigned 32-bit attribute for holding the threshold value */
3992 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3993
3994 /* keep last */
3995 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3996 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3997 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3998};
3999
4000/**
Hai Shalomc3565922019-10-28 11:58:20 -07004001 * enum qca_acs_dfs_mode - Defines different types of DFS channel
4002 * configurations for ACS operation.
4003 *
4004 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
4005 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
4006 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
4007 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
4008 */
4009enum qca_acs_dfs_mode {
4010 QCA_ACS_DFS_MODE_NONE = 0,
4011 QCA_ACS_DFS_MODE_ENABLE = 1,
4012 QCA_ACS_DFS_MODE_DISABLE = 2,
4013 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
4014};
4015
4016/**
4017 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
4018 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
4019 *
4020 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
4021 * DFS mode for ACS operation from enum qca_acs_dfs_mode.
4022 *
4023 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
4024 * channel number hint for ACS operation, if valid channel is specified then
4025 * ACS operation gives priority to this channel.
4026 * Note: If both the driver and user space application supports the 6 GHz band,
4027 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
4028 * should be used.
4029 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
4030 * is still used if either of the driver or user space application doesn't
4031 * support the 6 GHz band.
4032 *
4033 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
4034 * Channel center frequency (MHz) hint for ACS operation, if a valid center
4035 * frequency is specified, ACS operation gives priority to this channel.
4036 */
4037enum qca_wlan_vendor_attr_acs_config {
4038 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
4039 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
4040 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
4041 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
4042
4043 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
4044 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
4045 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
4046};
4047
4048/**
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -07004049 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
4050 */
4051enum qca_wlan_vendor_attr_get_hw_capability {
4052 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
4053 /* Antenna isolation
4054 * An attribute used in the response.
4055 * The content of this attribute is encoded in a byte array. Each byte
4056 * value is an antenna isolation value. The array length is the number
4057 * of antennas.
4058 */
4059 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
4060 /* Request HW capability
4061 * An attribute used in the request.
4062 * The content of this attribute is a u32 array for one or more of
4063 * hardware capabilities (attribute IDs) that are being requested. Each
4064 * u32 value has a value from this
4065 * enum qca_wlan_vendor_attr_get_hw_capability
4066 * identifying which capabilities are requested.
4067 */
4068 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
4069
4070 /* keep last */
4071 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
4072 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
4073 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
4074};
4075
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004076/**
4077 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
4078 * offload which is an extension for LL_STATS.
4079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
4080 * If MAC counters do not exceed the threshold, FW will report monitored
4081 * link layer counters periodically as this setting. The first report is
4082 * always triggered by this timer.
4083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
4084 * For each MAC layer counter, FW holds two copies. One is the current value.
4085 * The other is the last report. Once a current counter's increment is larger
4086 * than the threshold, FW will indicate that counter to host even if the
4087 * monitoring timer does not expire.
4088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
4089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
4090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
4091 * failure code.
4092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
4093 * 1: TX packet discarded
4094 * 2: No ACK
4095 * 3: Postpone
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004096 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
4097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
4098 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
4099 * Threshold for all monitored parameters. If per counter dedicated threshold
4100 * is not enabled, this threshold will take effect.
4101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
4102 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
4103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
4104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
4105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
4106 * Bit0: TX counter unit in MSDU
4107 * Bit1: TX counter unit in MPDU
4108 * Bit2: TX counter unit in PPDU
4109 * Bit3: TX counter unit in byte
4110 * Bit4: Dropped MSDUs
4111 * Bit5: Dropped Bytes
4112 * Bit6: MPDU retry counter
4113 * Bit7: MPDU failure counter
4114 * Bit8: PPDU failure counter
4115 * Bit9: MPDU aggregation counter
4116 * Bit10: MCS counter for ACKed MPDUs
4117 * Bit11: MCS counter for Failed MPDUs
4118 * Bit12: TX Delay counter
4119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
4120 * Bit0: MAC RX counter unit in MPDU
4121 * Bit1: MAC RX counter unit in byte
4122 * Bit2: PHY RX counter unit in PPDU
4123 * Bit3: PHY RX counter unit in byte
4124 * Bit4: Disorder counter
4125 * Bit5: Retry counter
4126 * Bit6: Duplication counter
4127 * Bit7: Discard counter
4128 * Bit8: MPDU aggregation size counter
4129 * Bit9: MCS counter
4130 * Bit10: Peer STA power state change (wake to sleep) counter
4131 * Bit11: Peer STA power save counter, total time in PS mode
4132 * Bit12: Probe request counter
4133 * Bit13: Other management frames counter
4134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
4135 * Bit0: Idle time
4136 * Bit1: TX time
4137 * Bit2: time RX in current bss
4138 * Bit3: Out of current bss time
4139 * Bit4: Wireless medium busy time
4140 * Bit5: RX in bad condition time
4141 * Bit6: TX in bad condition time
4142 * Bit7: time wlan card not available
4143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
4144 * Bit0: Per channel SNR counter
4145 * Bit1: Per channel noise floor counter
4146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
4147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
4148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
4149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
4150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
4151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
4152 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
4153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
4154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
4155 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
4156 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
4157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
4158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
4159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
4160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
4161 * aggregation stats buffer length
4162 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
4163 * buffer for ACKed MPDUs.
4164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
4165 * buffer for failed MPDUs.
4166 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
4167 * length of delay stats array.
4168 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
4169 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
4170 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
4171 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
4172 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
4173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
4174 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
4175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
4176 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
4177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
4178 * flagged as retransmissions
4179 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
4180 * flagged as duplicated
4181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
4182 * packets discarded
4183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
4184 * stats buffer.
4185 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
4186 * stats buffer.
4187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
4188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
4189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
4190 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
4191 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
4192 * requests received
4193 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
4194 * frames received
4195 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
4196 * there is no TX, nor RX, nor interference.
4197 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
4198 * transmitting packets.
4199 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
4200 * for receiving.
4201 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
4202 * interference detected.
4203 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
4204 * receiving packets with errors.
4205 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
4206 * TX no-ACK.
4207 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
4208 * the chip is unable to work in normal conditions.
4209 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
4210 * receiving packets in current BSS.
4211 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
4212 * receiving packets not in current BSS.
4213 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
4214 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
4215 * This is a container for per antenna signal stats.
4216 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
4217 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
4218 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
4219 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
Roshan Pius3a1667e2018-07-03 15:17:14 -07004220 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
4221 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the
4222 * message, user layer APP could call gettimeofday to get another
4223 * timestamp and calculate transfer delay for the message.
4224 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
4225 * Real period for this measurement, unit in us.
Sunil Ravi036cec52023-03-29 11:35:17 -07004226 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
4227 * 64-bit alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004228 */
4229enum qca_wlan_vendor_attr_ll_stats_ext {
4230 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
4231
4232 /* Attributes for configurations */
4233 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
4234 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
4235
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004236 /* Peer STA power state change */
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
4238
4239 /* TX failure event */
4240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
4241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
4242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
4243
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004244 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
4245 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
4246
4247 /* MAC counters */
4248 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
4249 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
4250 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
4251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
4252 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
4253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
4254 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
4255 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
4256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
4257 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
4258 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
4259 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
4260
4261 /* Sub-attributes for PEER_AC_TX */
4262 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
4263 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
4264 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
4265 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
4266 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
4267 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
4268 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
4269 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
4270 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
4271 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
4272 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
4273 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
4274 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
4275 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
4276 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
4277 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
4278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
4279
4280 /* Sub-attributes for PEER_AC_RX */
4281 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
4282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
4283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
4284 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
4285 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
4286 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
4287 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
4288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
4289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
4290 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
4291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
4292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
4293 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
4294 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
4295 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
4296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
4297
4298 /* Sub-attributes for CCA_BSS */
4299 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
4300 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
4301 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
4302 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
4303 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
4304 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
4305 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
4306
4307 /* sub-attribute for BSS_RX_TIME */
4308 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
4309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
4310
4311 /* Sub-attributes for PEER_SIGNAL */
4312 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
4313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
4314 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
4315 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
4316
4317 /* Sub-attributes for IFACE_BSS */
4318 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
4319 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
4320
Roshan Pius3a1667e2018-07-03 15:17:14 -07004321 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
4322 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
Sunil Ravi036cec52023-03-29 11:35:17 -07004323 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
Roshan Pius3a1667e2018-07-03 15:17:14 -07004324
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004325 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
4326 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
4327 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
4328};
4329
4330/* Attributes for FTM commands and events */
4331
4332/**
4333 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
4334 *
4335 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
4336 * enum qca_wlan_vendor_attr_loc_capa_flags.
4337 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
4338 * of measurement sessions that can run concurrently.
4339 * Default is one session (no session concurrency).
4340 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
4341 * peers that are supported in running sessions. For example,
4342 * if the value is 8 and maximum number of sessions is 2, you can
4343 * have one session with 8 unique peers, or 2 sessions with 4 unique
4344 * peers each, and so on.
4345 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
4346 * of bursts per peer, as an exponent (2^value). Default is 0,
4347 * meaning no multi-burst support.
4348 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
4349 * of measurement exchanges allowed in a single burst.
4350 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
4351 * types. A bit mask (unsigned 32 bit value), each bit corresponds
4352 * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
4353 */
4354enum qca_wlan_vendor_attr_loc_capa {
4355 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
4356 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
4357 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
4358 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
4359 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
4360 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
4361 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
4362 /* keep last */
4363 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
4364 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
4365 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
4366};
4367
4368/**
4369 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
4370 *
4371 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
4372 * can be configured as an FTM responder (for example, an AP that
4373 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
4374 * will be supported if set.
4375 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
4376 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
4377 * will be supported if set.
Roshan Pius3a1667e2018-07-03 15:17:14 -07004378 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004379 * supports immediate (ASAP) response.
4380 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
4381 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
4382 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
4383 * requesting AOA measurements as part of an FTM session.
4384 */
4385enum qca_wlan_vendor_attr_loc_capa_flags {
4386 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
4387 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
4388 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
4389 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
4390 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
4391};
4392
4393/**
4394 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
4395 * a single peer in a measurement session.
4396 *
4397 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
4398 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
4399 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004400 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004401 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
4402 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
4403 * list of supported attributes.
4404 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
4405 * secure measurement.
4406 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
4407 * measurement every <value> bursts. If 0 or not specified,
4408 * AOA measurements will be disabled for this peer.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004409 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
4410 * the measurement frames are exchanged. Optional; if not
4411 * specified, try to locate the peer in the kernel scan
4412 * results cache and use frequency from there.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004413 */
4414enum qca_wlan_vendor_attr_ftm_peer_info {
4415 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
4416 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
4417 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004418 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004419 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
4420 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004421 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004422 /* keep last */
4423 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
4424 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
4425 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
4426};
4427
4428/**
4429 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
4430 * per-peer
4431 *
4432 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
4433 * immediate (ASAP) response from peer.
4434 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
4435 * LCI report from peer. The LCI report includes the absolute
4436 * location of the peer in "official" coordinates (similar to GPS).
4437 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
4438 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
4439 * Location civic report from peer. The LCR includes the location
4440 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
4441 * 11.24.6.7 for more information.
4442 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
4443 * request a secure measurement.
4444 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
4445 */
4446enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
4447 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
4448 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
4449 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
4450 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
4451};
4452
4453/**
4454 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
4455 *
4456 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
4457 * to perform in a single burst.
4458 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
4459 * perform, specified as an exponent (2^value).
4460 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
4461 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
4462 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
4463 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
4464 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
4465 */
4466enum qca_wlan_vendor_attr_ftm_meas_param {
4467 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
4468 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
4469 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
4470 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
4471 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
4472 /* keep last */
4473 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
4474 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
4475 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
4476};
4477
4478/**
4479 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
4480 *
4481 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
4482 * peer.
4483 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
4484 * request for this peer.
4485 * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
4486 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
4487 * to measurement results for this peer.
4488 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
4489 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
4490 * request failed and peer requested not to send an additional request
4491 * for this number of seconds.
4492 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
4493 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4494 * 9.4.2.22.10.
4495 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
4496 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
4497 * 9.4.2.22.13.
4498 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
4499 * overridden some measurement request parameters. See
4500 * enum qca_wlan_vendor_attr_ftm_meas_param.
4501 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
4502 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
4503 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
4504 * results. Each entry is a nested attribute defined
4505 * by enum qca_wlan_vendor_attr_ftm_meas.
4506 */
4507enum qca_wlan_vendor_attr_ftm_peer_result {
4508 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
4509 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
4510 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
4511 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
4512 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
4513 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
4514 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
4515 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
4516 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
4517 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
4518 /* keep last */
4519 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
4520 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
4521 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
4522};
4523
4524/**
4525 * enum qca_wlan_vendor_attr_ftm_peer_result_status
4526 *
4527 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
4528 * will be provided. Peer may have overridden some measurement parameters,
4529 * in which case overridden parameters will be report by
4530 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
4531 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
4532 * of performing the measurement request. No more results will be sent
4533 * for this peer in this session.
4534 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
4535 * failed, and requested not to send an additional request for number
4536 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
4537 * attribute.
4538 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
4539 * failed. Request was not sent over the air.
4540 */
4541enum qca_wlan_vendor_attr_ftm_peer_result_status {
4542 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
4543 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
4544 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
4545 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
4546};
4547
4548/**
4549 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
4550 * for measurement result, per-peer
4551 *
4552 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
4553 * measurement completed for this peer. No more results will be reported
4554 * for this peer in this session.
4555 */
4556enum qca_wlan_vendor_attr_ftm_peer_result_flags {
4557 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
4558};
4559
4560/**
4561 * enum qca_vendor_attr_loc_session_status: Session completion status code
4562 *
4563 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
4564 * successfully.
4565 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
4566 * by request.
4567 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
4568 * was invalid and was not started.
4569 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
4570 * and did not complete normally (for example out of resources).
4571 */
4572enum qca_vendor_attr_loc_session_status {
4573 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
4574 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
4575 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
4576 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
4577};
4578
4579/**
4580 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
4581 *
4582 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
4583 * recorded by responder, in picoseconds.
4584 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4585 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
4586 * initiator, in picoseconds.
4587 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4588 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
4589 * initiator, in picoseconds.
4590 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4591 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
4592 * responder, in picoseconds.
4593 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
4594 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
4595 * during this measurement exchange. Optional and will be provided if
4596 * the hardware can measure it.
4597 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
4598 * responder. Not always provided.
4599 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4600 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
4601 * responder. Not always provided.
4602 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4603 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
4604 * initiator. Not always provided.
4605 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
4606 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
4607 * initiator. Not always provided.
4608 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
Sunil Ravi036cec52023-03-29 11:35:17 -07004609 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
4610 * alignment.
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004611 */
4612enum qca_wlan_vendor_attr_ftm_meas {
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004613 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
Dmitry Shmidt7d175302016-09-06 13:11:34 -07004614 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
4615 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
4616 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
4617 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
4618 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
4619 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
4620 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
4621 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
4622 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
4623 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
4624 /* keep last */
4625 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
4626 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
4627 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
4628};
4629
4630/**
4631 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
4632 *
4633 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
4634 * CIR (channel impulse response) path for each antenna.
4635 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
4636 * of the strongest CIR path for each antenna.
4637 */
4638enum qca_wlan_vendor_attr_aoa_type {
4639 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
4640 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
4641 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
4642};
4643
Dmitry Shmidtaca489e2016-09-28 15:44:14 -07004644/**
4645 * enum qca_wlan_vendor_attr_encryption_test - Attributes to
4646 * validate encryption engine
4647 *
4648 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
4649 * This will be included if the request is for decryption; if not included,
4650 * the request is treated as a request for encryption by default.
4651 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
4652 * indicating the key cipher suite. Takes same values as
4653 * NL80211_ATTR_KEY_CIPHER.
4654 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
4655 * Key Id to be used for encryption
4656 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
4657 * Key (TK) to be used for encryption/decryption
4658 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4659 * Packet number to be specified for encryption/decryption
4660 * 6 bytes for TKIP/CCMP/GCMP.
4661 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4662 * representing the 802.11 packet (header + payload + FCS) that
4663 * needs to be encrypted/decrypted.
4664 * Encrypted/decrypted response from the driver will also be sent
4665 * to userspace with the same attribute.
4666 */
4667enum qca_wlan_vendor_attr_encryption_test {
4668 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4669 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4670 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4671 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4672 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4673 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4674 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4675
4676 /* keep last */
4677 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4678 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4679 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4680};
4681
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004682/**
4683 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4684 * sector for DMG RF sector operations.
4685 *
4686 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4687 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4688 */
4689enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4690 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4691 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4692 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4693};
4694
4695/**
Hai Shalom021b0b52019-04-10 11:17:58 -07004696 * enum qca_wlan_vendor_attr_fw_state - State of firmware
4697 *
4698 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4699 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4700 */
4701enum qca_wlan_vendor_attr_fw_state {
4702 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4703 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4704 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4705};
4706
4707/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07004708 * BRP antenna limit mode
4709 *
4710 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4711 * antenna limit, BRP will be performed as usual.
4712 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4713 * antennas limit. the hardware may use less antennas than the
4714 * maximum limit.
4715 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4716 * use exactly the specified number of antennas for BRP.
4717 */
4718enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4719 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4720 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4721 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4722 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4723};
4724
4725/**
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004726 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4727 * DMG RF sector configuration for a single RF module.
4728 * The values are defined in a compact way which closely matches
4729 * the way it is stored in HW registers.
4730 * The configuration provides values for 32 antennas and 8 distribution
4731 * amplifiers, and together describes the characteristics of the RF
4732 * sector - such as a beam in some direction with some gain.
4733 *
4734 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4735 * of RF module for this configuration.
4736 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4737 * amplifier gain index. Unsigned 32 bit number containing
4738 * bits for all 32 antennas.
4739 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4740 * amplifier gain index. Unsigned 32 bit number containing
4741 * bits for all 32 antennas.
4742 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4743 * amplifier gain index. Unsigned 32 bit number containing
4744 * bits for all 32 antennas.
4745 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4746 * for first 16 antennas, 2 bits per antenna.
4747 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4748 * for last 16 antennas, 2 bits per antenna.
4749 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4750 * DTYPE values (3 bits) for each distribution amplifier, followed
4751 * by X16 switch bits for each distribution amplifier. There are
4752 * total of 8 distribution amplifiers.
4753 */
4754enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4755 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4756 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4757 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4758 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4759 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4760 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4761 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4762 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4763
4764 /* keep last */
4765 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4766 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4767 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4768};
4769
4770enum qca_wlan_vendor_attr_ll_stats_set {
4771 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4772 /* Unsigned 32-bit value */
4773 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4774 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4775 /* keep last */
4776 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4777 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4778 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4779};
4780
Sunil Ravi640215c2023-06-28 23:08:09 +00004781/**
4782 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4783 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4784 *
4785 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4786 *
4787 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4788 * radio statistics.
4789 *
4790 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4791 * statistics within radio statistics.
4792 *
4793 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4794 * radio statistics.
4795 *
4796 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4797 *
4798 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
4799 * within interface statistics.
4800 *
4801 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
4802 * interface statistics.
4803 *
4804 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
4805 * (min, max, avg) statistics within AC statistics.
4806 *
4807 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
4808 * on this interface.
4809 *
4810 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
4811 * statistics depending on the peer_mac.
4812 */
4813enum qca_wlan_ll_stats_clr_req_bitmap {
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004814 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
4815 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
4816 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
4817 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
4818 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
4819 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
4820 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
Sunil Ravi640215c2023-06-28 23:08:09 +00004821 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004822 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
4823 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
Sunil Ravi640215c2023-06-28 23:08:09 +00004824};
4825
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004826enum qca_wlan_vendor_attr_ll_stats_clr {
4827 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004828 /* Unsigned 32bit bitmap for clearing statistics, specified
4829 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004830 */
4831 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4832 /* Unsigned 8 bit value: Request to stop statistics collection */
4833 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4834
4835 /* Unsigned 32 bit bitmap: Response from the driver
4836 * for the cleared statistics
4837 */
4838 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4839 /* Unsigned 8 bit value: Response from driver/firmware
4840 * for the stop request
4841 */
4842 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4843 /* keep last */
4844 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4845 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4846 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4847};
4848
Sunil Ravi640215c2023-06-28 23:08:09 +00004849/**
4850 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
4851 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
4852 *
4853 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
4854 *
4855 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
4856 *
4857 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
4858 *
4859 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
4860 */
4861enum qca_wlan_ll_stats_get_req_bitmap {
4862 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
4863 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00004864 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
4865 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
Sunil Ravi640215c2023-06-28 23:08:09 +00004866};
4867
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004868enum qca_wlan_vendor_attr_ll_stats_get {
4869 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4870 /* Unsigned 32 bit value provided by the caller issuing the GET stats
4871 * command. When reporting the stats results, the driver uses the same
4872 * value to indicate which GET request the results correspond to.
4873 */
4874 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4875 /* Unsigned 32 bit value - bit mask to identify what statistics are
Sunil Ravi640215c2023-06-28 23:08:09 +00004876 * requested for retrieval specified in the enum
4877 * qca_wlan_ll_stats_get_req_bitmap
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004878 */
4879 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4880 /* keep last */
4881 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4882 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4883 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4884};
4885
4886enum qca_wlan_vendor_attr_ll_stats_results {
4887 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
Sunil Ravi640215c2023-06-28 23:08:09 +00004888
4889 /*
4890 * For Multi Link Operation (MLO) connection, per-link statistics will
4891 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
4892 * cumulative statistics will be sent outside of
4893 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
4894 * compatibility with legacy user space. Attributes which don't have
4895 * explicit documentation for MLO will be sent only outside of
4896 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
4897 * don't depend on whether the connection is MLO capable or not, e.g.,
4898 * radio and channel specific attributes.
4899 */
4900
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004901 /* Unsigned 32bit value. Used by the driver; must match the request id
4902 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4903 */
4904 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4905
Sunil Ravi640215c2023-06-28 23:08:09 +00004906 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4907 * the link with the best RSSI outside
4908 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4909 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4910 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004911 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
Sunil Ravi640215c2023-06-28 23:08:09 +00004912 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4913 * the link with the best RSSI outside
4914 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4915 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4916 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004917 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
Sunil Ravi640215c2023-06-28 23:08:09 +00004918 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4919 * the link with the best RSSI outside
4920 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4921 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4922 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004923 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
Sunil Ravi640215c2023-06-28 23:08:09 +00004924 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4925 * the link with the best RSSI outside
4926 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4927 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4928 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004929 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00004930 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4931 * the link with the best RSSI outside
4932 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4933 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4934 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004935 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
Sunil Ravi640215c2023-06-28 23:08:09 +00004936 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4937 * the link with the best RSSI outside
4938 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4939 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4940 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004941 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
Sunil Ravi640215c2023-06-28 23:08:09 +00004942 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
4943 * the link with the best RSSI outside
4944 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4945 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4946 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004947 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4948
4949 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4950 * nested within the interface stats.
4951 */
4952
4953 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4954 * Type = enum wifi_interface_mode.
4955 */
4956 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4957 /* Interface MAC address. An array of 6 Unsigned int8 */
4958 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4959 /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4960 * AUTHENTICATING, etc. valid for STA, CLI only.
4961 */
4962 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4963 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4964 */
4965 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4966 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4967 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4968 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4969 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
Sunil Ravi640215c2023-06-28 23:08:09 +00004970 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
4971 * address of the AP. An array of 6 unsigned 8 bit values */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004972 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4973 /* Country string advertised by AP. An array of 3 unsigned 8 bit
4974 * values.
4975 */
4976 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4977 /* Country string for this association. An array of 3 unsigned 8 bit
4978 * values.
4979 */
4980 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4981
4982 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4983 * be nested within the interface stats.
Sunil Ravi640215c2023-06-28 23:08:09 +00004984 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4985 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
4986 * indicate the aggregate of all links outside
4987 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4988 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
4989 * indicate value of the MLO link with the best RSSI outside
4990 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4991 * These attributes indicate the link specific value inside
4992 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08004993 */
4994
4995 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4996 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4997 /* Unsigned int 32 value corresponding to respective AC */
4998 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4999 /* Unsigned int 32 value corresponding to respective AC */
5000 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
5001 /* Unsigned int 32 value corresponding to respective AC */
5002 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
5003 /* Unsigned int 32 value corresponding to respective AC */
5004 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
5005 /* Unsigned int 32 value corresponding to respective AC */
5006 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
5007 /* Unsigned int 32 value corresponding to respective AC */
5008 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
5009 /* Unsigned int 32 value corresponding to respective AC */
5010 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
5011 /* Unsigned int 32 value corresponding to respective AC */
5012 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
5013 /* Unsigned int 32 value corresponding to respective AC */
5014 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
5015 /* Unsigned int 32 values corresponding to respective AC */
5016 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
5017 /* Unsigned int 32 values corresponding to respective AC */
5018 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
5019 /* Unsigned int 32 values corresponding to respective AC */
5020 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
5021 /* Unsigned int 32 values corresponding to respective AC */
5022 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
5023 /* Unsigned int 32 values corresponding to respective AC */
5024 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
5025 /* Unsigned 32 bit value. Number of peers */
5026 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
5027
5028 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
5029 * nested within the interface stats.
5030 */
5031
5032 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
5033 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
5034 /* MAC addr corresponding to respective peer. An array of 6 unsigned
5035 * 8 bit values.
5036 */
5037 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
5038 /* Unsigned int 32 bit value representing capabilities corresponding
5039 * to respective peer.
5040 */
5041 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
5042 /* Unsigned 32 bit value. Number of rates */
5043 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
5044
5045 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5046 * are nested within the rate stat.
5047 */
5048
5049 /* Wi-Fi Rate - separate attributes defined for individual fields */
5050
5051 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
5052 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
5053 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
5054 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
5055 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
5056 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
5057 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
Roshan Pius3a1667e2018-07-03 15:17:14 -07005058 * in the units of 0.5 Mbps HT/VHT it would be MCS index
5059 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005060 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
5061
5062 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
5063 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
5064
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005065 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
5066 * nested within the peer info stats.
5067 */
5068
5069 /* Unsigned int 32 bit value. Number of successfully transmitted data
5070 * packets, i.e., with ACK received corresponding to the respective
5071 * rate.
5072 */
5073 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
5074 /* Unsigned int 32 bit value. Number of received data packets
5075 * corresponding to the respective rate.
5076 */
5077 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
5078 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
5079 * received corresponding to the respective rate.
5080 */
5081 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
5082 /* Unsigned int 32 bit value. Total number of data packet retries for
5083 * the respective rate.
5084 */
5085 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
5086 /* Unsigned int 32 bit value. Total number of short data packet retries
5087 * for the respective rate.
5088 */
5089 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
5090 /* Unsigned int 32 bit value. Total number of long data packet retries
5091 * for the respective rate.
5092 */
5093 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
5094
Sunil Ravi640215c2023-06-28 23:08:09 +00005095 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
5096 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5097 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
5098 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
5099 * of the MLO link.
5100 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005101 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
5102 /* Unsigned 32 bit value. Total number of msecs the radio is awake
5103 * accruing over time.
5104 */
5105 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
5106 /* Unsigned 32 bit value. Total number of msecs the radio is
5107 * transmitting accruing over time.
5108 */
5109 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
5110 /* Unsigned 32 bit value. Total number of msecs the radio is in active
5111 * receive accruing over time.
5112 */
5113 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
5114 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5115 * to all scan accruing over time.
5116 */
5117 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
5118 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5119 * to NAN accruing over time.
5120 */
5121 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
5122 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5123 * to GSCAN accruing over time.
5124 */
5125 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
5126 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5127 * to roam scan accruing over time.
5128 */
5129 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
5130 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5131 * to PNO scan accruing over time.
5132 */
5133 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
5134 /* Unsigned 32 bit value. Total number of msecs the radio is awake due
5135 * to Hotspot 2.0 scans and GAS exchange accruing over time.
5136 */
5137 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
5138 /* Unsigned 32 bit value. Number of channels. */
5139 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
5140
5141 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
5142 * be nested within the channel stats.
5143 */
5144
5145 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
5146 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
Sunil Ravi640215c2023-06-28 23:08:09 +00005147 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
5148 * indicate the primary frequency of the channel when
5149 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
5150 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
5151 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
5152 * on which the MLO link is operating.
5153 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005154 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
5155 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
5156 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
5157 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
5158 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
5159
5160 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
5161 * nested within the radio stats.
5162 */
5163
5164 /* Unsigned int 32 bit value representing total number of msecs the
5165 * radio is awake on that channel accruing over time, corresponding to
5166 * the respective channel.
5167 */
5168 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
5169 /* Unsigned int 32 bit value representing total number of msecs the CCA
5170 * register is busy accruing over time corresponding to the respective
5171 * channel.
5172 */
5173 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
5174
5175 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
5176
5177 /* Signifies the nested list of channel attributes
Hai Shalom899fcc72020-10-19 14:38:18 -07005178 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005179 */
5180 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
5181
5182 /* Signifies the nested list of peer info attributes
Sunil Ravi640215c2023-06-28 23:08:09 +00005183 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
5184 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
5185 * indicate on which link the peer is connected.
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005186 */
5187 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
5188
5189 /* Signifies the nested list of rate info attributes
5190 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
5191 */
5192 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
5193
5194 /* Signifies the nested list of wmm info attributes
5195 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
5196 */
5197 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
5198
5199 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
5200 * that more stats, e.g., peers or radio, are to follow in the next
5201 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
5202 * Otherwise, it is set to 0.
5203 */
5204 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
5205
Sunil Ravi640215c2023-06-28 23:08:09 +00005206 /* Unsigned 64 bit value. For an MLO connection, indicates the value of
5207 * the link with the best RSSI outside
5208 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5209 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5210 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005211 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
5212
Sunil Ravi640215c2023-06-28 23:08:09 +00005213 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5214 * the link with the best RSSI outside
5215 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5216 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5217 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005218 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
5219
Sunil Ravi640215c2023-06-28 23:08:09 +00005220 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5221 * the link with the best RSSI outside
5222 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5223 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5224 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005225 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
5226
Sunil Ravi640215c2023-06-28 23:08:09 +00005227 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5228 * the link with the best RSSI outside
5229 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5230 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5231 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005232 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
5233
5234 /* Unsigned 32 bit value */
5235 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
5236
5237 /* Unsigned 32 bit value */
5238 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
5239
5240 /* Number of msecs the radio spent in transmitting for each power level
5241 */
5242 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
5243
Sunil Ravi640215c2023-06-28 23:08:09 +00005244 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5245 * the link with the best RSSI outside
5246 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5247 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5248 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005249 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
Sunil Ravi640215c2023-06-28 23:08:09 +00005250 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5251 * the link with the best RSSI outside
5252 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5253 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5254 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005255 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
Sunil Ravi640215c2023-06-28 23:08:09 +00005256 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5257 * the link with the best RSSI outside
5258 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5259 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5260 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005261 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
Sunil Ravi640215c2023-06-28 23:08:09 +00005262 /* Unsigned 32 bit value. For an MLO connection, indicates the value of
5263 * the link with the best RSSI outside
5264 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5265 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
5266 */
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005267 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
5268
Roshan Pius3a1667e2018-07-03 15:17:14 -07005269 /* Unsigned int 32 value.
5270 * Pending MSDUs corresponding to respective AC.
5271 */
5272 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
5273
Hai Shalom899fcc72020-10-19 14:38:18 -07005274 /* u32 value representing total time in milliseconds for which the radio
5275 * is transmitting on this channel. This attribute will be nested
5276 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5277 */
5278 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
5279 /* u32 value representing total time in milliseconds for which the radio
5280 * is receiving all 802.11 frames intended for this device on this
5281 * channel. This attribute will be nested within
5282 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
5283 */
5284 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
Hai Shaloma20dcd72022-02-04 13:43:00 -08005285 /* u8 value representing the channel load percentage. Possible values
5286 * are 0-100.
5287 */
5288 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
5289 /* u8 value representing the time slicing duty cycle percentage.
Sunil Ravi640215c2023-06-28 23:08:09 +00005290 * Possible values are 0-100. For an MLO connection, indicates the value
5291 * of the link with the best RSSI outside
5292 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5293 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Hai Shaloma20dcd72022-02-04 13:43:00 -08005294 */
5295 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
Sunil Ravi89eba102022-09-13 21:04:37 -07005296 /* Unsigned 32 bit value. The number of Beacon frames which are received
5297 * from the associated AP and indicate buffered unicast frame(s) for us
Sunil Ravi640215c2023-06-28 23:08:09 +00005298 * in the TIM element. For an MLO connection, indicates the value of the
5299 * link with the best RSSI outside
5300 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5301 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005302 */
5303 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
5304 /* Unsigned 32 bit value. The total number of Beacon frames received
5305 * from the associated AP that have wrongly indicated buffered unicast
5306 * traffic in the TIM element for us.
5307 * Below scenarios will be considered as wrong TIM element beacon:
5308 * 1) The related TIM element is set in the beacon for STA but STA
5309 * doesn’t receive any unicast data after this beacon.
5310 * 2) The related TIM element is still set in the beacon for STA
5311 * after STA has indicated power save exit by QoS Null Data frame.
Sunil Ravi640215c2023-06-28 23:08:09 +00005312 * For an MLO connection, indicates the value of the link with the best
5313 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
5314 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi89eba102022-09-13 21:04:37 -07005315 */
5316 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
Sunil Ravi036cec52023-03-29 11:35:17 -07005317
5318 /* Signed 32 bit value. It represents the noise floor calibration value.
Sunil Ravi640215c2023-06-28 23:08:09 +00005319 * Possible values are -120~-50 dBm. For an MLO connection, indicates
5320 * the value of the link with the best RSSI outside
5321 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
5322 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
Sunil Ravi036cec52023-03-29 11:35:17 -07005323 */
5324 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
Sunil Ravi89eba102022-09-13 21:04:37 -07005325
Sunil Ravi640215c2023-06-28 23:08:09 +00005326 /* Attribute used for padding for 64-bit alignment */
5327 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
5328
5329 /* Unsigned u8 value, link ID of an MLO link. Used inside nested
5330 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
5331 * link ID of the MLO link for which the statistics are embedded in the
5332 * nested attribute. Used inside nested attribute
5333 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
5334 * link ID of the peer.
5335 */
5336 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
5337
5338 /* A nested array of attributes for each MLO link, each containing
5339 * per-link statistics of a multi link connection. The attributes used
5340 * inside this nested attribute are defined in enum
5341 * qca_wlan_vendor_attr_ll_stats_results.
5342 *
5343 * For non-MLO connection, this attribute is not present and the
5344 * statistics will be sent outside this attribute (without nesting).
5345 *
5346 * For MLO connection, this attribute is present and also cumulative
5347 * statistics of all the links will be sent outside of this attribute
5348 * to be compatible with legacy user space.
5349 */
5350 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
5351
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005352 /* keep last */
5353 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
5354 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
5355 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
5356};
5357
Roshan Pius3a1667e2018-07-03 15:17:14 -07005358enum qca_wlan_vendor_attr_ll_stats_type {
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -08005359 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
5360 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
5361 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
5362 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
5363
5364 /* keep last */
5365 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
5366 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
5367 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
5368};
5369
5370/**
5371 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5372 * TDLS configuration to the host driver.
5373 *
5374 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5375 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5376 * represents the different TDLS trigger modes.
5377 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5378 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5379 * of packets shall meet the criteria for implicit TDLS setup.
5380 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
5381 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
5382 * to initiate a TDLS setup.
5383 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
5384 * a TDLS Discovery to the peer.
5385 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5386 * discovery attempts to know the TDLS capability of the peer. A peer is
5387 * marked as TDLS not capable if there is no response for all the attempts.
5388 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5389 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5390 * number of TX / RX frames meet the criteria for TDLS teardown.
5391 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
5392 * of Tx/Rx packets within a duration
5393 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
5394 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5395 * corresponding to the RSSI of the peer below which a TDLS setup is
5396 * triggered.
5397 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5398 * corresponding to the RSSI of the peer above which a TDLS teardown is
5399 * triggered.
5400 */
5401enum qca_wlan_vendor_attr_tdls_configuration {
5402 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5403 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5404
5405 /* Attributes configuring the TDLS Implicit Trigger */
5406 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5407 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5408 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5409 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5410 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5411 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5412 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5413 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5414
5415 /* keep last */
5416 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5417 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5418 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5419};
5420
5421/**
5422 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5423 * the driver
5424 *
5425 * The following are the different values for
5426 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5427 *
5428 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
5429 * the TDLS connection to a respective peer comes from the user space.
5430 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
5431 * TDLS_DISCOVER to do this.
5432 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5433 * setup/teardown to the eligible peer once the configured criteria
5434 * (such as TX/RX threshold, RSSI) is met. The attributes
5435 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5436 * the different configuration criteria for the TDLS trigger from the
5437 * host driver.
5438 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5439 * the TDLS setup / teardown through the implicit mode only to the
5440 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
5441 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
5442 * External mode works on top of the implicit mode. Thus the host driver
5443 * is expected to configure in TDLS Implicit mode too to operate in
5444 * External mode.
5445 * Configuring External mode alone without Implicit mode is invalid.
5446 *
5447 * All the above implementations work as expected only when the host driver
5448 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
5449 * that the TDLS message exchange is not internal to the host driver, but
5450 * depends on wpa_supplicant to do the message exchange.
5451 */
5452enum qca_wlan_vendor_tdls_trigger_mode {
5453 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5454 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5455 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5456};
5457
Dmitry Shmidt29333592017-01-09 12:27:11 -08005458/**
5459 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5460 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5461 * that is hard-coded in the Board Data File (BDF).
5462 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5463 * that is hard-coded in the Board Data File (BDF).
5464 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5465 * that is hard-coded in the Board Data File (BDF).
5466 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5467 * that is hard-coded in the Board Data File (BDF).
5468 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5469 * that is hard-coded in the Board Data File (BDF).
5470 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5471 * source of SAR power limits, thereby disabling the SAR power
5472 * limit feature.
5473 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5474 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005475 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5476 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005477 *
5478 * This enumerates the valid set of values that may be supplied for
5479 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
Roshan Pius3a1667e2018-07-03 15:17:14 -07005480 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5481 * the response to an instance of the
5482 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005483 */
5484enum qca_vendor_attr_sar_limits_selections {
5485 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5486 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5487 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5488 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5489 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5490 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5491 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005492 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005493};
5494
5495/**
5496 * enum qca_vendor_attr_sar_limits_spec_modulations -
5497 * SAR limits specification modulation
5498 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5499 * CCK modulation
5500 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5501 * OFDM modulation
5502 *
5503 * This enumerates the valid set of values that may be supplied for
5504 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5505 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5506 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
Roshan Pius3a1667e2018-07-03 15:17:14 -07005507 * command or in the response to an instance of the
5508 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005509 */
5510enum qca_vendor_attr_sar_limits_spec_modulations {
5511 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5512 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5513};
5514
5515/**
5516 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5517 *
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07005518 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
Dmitry Shmidt29333592017-01-09 12:27:11 -08005519 * select which SAR power limit table should be used. Valid
5520 * values are enumerated in enum
5521 * %qca_vendor_attr_sar_limits_selections. The existing SAR
5522 * power limit selection is unchanged if this attribute is not
5523 * present.
5524 *
5525 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5526 * which specifies the number of SAR power limit specifications
5527 * which will follow.
5528 *
5529 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5530 * limit specifications. The number of specifications is
5531 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5532 * specification contains a set of
5533 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5534 * specification is uniquely identified by the attributes
5535 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5536 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5537 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5538 * contains as a payload the attribute
Roshan Pius3a1667e2018-07-03 15:17:14 -07005539 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
5540 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5541 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5542 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5543 * needed based upon the value of
5544 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005545 *
5546 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5547 * indicate for which band this specification applies. Valid
5548 * values are enumerated in enum %nl80211_band (although not all
5549 * bands may be supported by a given device). If the attribute is
5550 * not supplied then the specification will be applied to all
5551 * supported bands.
5552 *
5553 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5554 * to indicate for which antenna chain this specification
5555 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5556 * attribute is not supplied then the specification will be
5557 * applied to all chains.
5558 *
5559 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5560 * value to indicate for which modulation scheme this
5561 * specification applies. Valid values are enumerated in enum
5562 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5563 * is not supplied then the specification will be applied to all
5564 * modulation schemes.
5565 *
5566 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5567 * value to specify the actual power limit value in units of 0.5
5568 * dBm (i.e., a value of 11 represents 5.5 dBm).
Roshan Pius3a1667e2018-07-03 15:17:14 -07005569 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5570 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005571 *
Roshan Pius3a1667e2018-07-03 15:17:14 -07005572 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5573 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5574 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5575 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5576 *
5577 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5578 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
Dmitry Shmidt29333592017-01-09 12:27:11 -08005579 */
5580enum qca_vendor_attr_sar_limits {
5581 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5582 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5583 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5584 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5585 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5586 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5587 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5588 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07005589 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005590
5591 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5592 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5593 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5594};
5595
5596/**
5597 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
5598 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
Hai Shalom81f62d82019-07-22 12:10:00 -07005599 *
5600 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
5601 * should be set to any U8 value to indicate that the driver version
5602 * should be returned. When enabled in this manner, in a response this
5603 * attribute will contain a string representation of the driver version.
5604 *
5605 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
5606 * should be set to any U8 value to indicate that the firmware version
5607 * should be returned. When enabled in this manner, in a response this
5608 * attribute will contain a string representation of the firmware version.
5609 *
5610 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
5611 * should be set to any U32 value to indicate that the current radio
5612 * index should be returned. When enabled in this manner, in a response
5613 * this attribute will contain a U32 radio index value.
5614 *
Dmitry Shmidt29333592017-01-09 12:27:11 -08005615 */
5616enum qca_wlan_vendor_attr_get_wifi_info {
5617 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
5618 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
5619 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07005620 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
Dmitry Shmidt29333592017-01-09 12:27:11 -08005621
5622 /* keep last */
5623 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
5624 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
5625 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
5626};
5627
5628/*
5629 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
5630 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
5631 */
5632enum qca_wlan_vendor_attr_wifi_logger_start {
5633 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5634 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5635 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5636 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5637
5638 /* keep last */
5639 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5640 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
5641 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5642};
5643
5644enum qca_wlan_vendor_attr_logger_results {
5645 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
5646
5647 /* Unsigned 32-bit value; must match the request Id supplied by
5648 * Wi-Fi HAL in the corresponding subcmd NL msg.
5649 */
5650 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
5651
5652 /* Unsigned 32-bit value; used to indicate the size of memory
5653 * dump to be allocated.
Roshan Pius3a1667e2018-07-03 15:17:14 -07005654 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08005655 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
5656
5657 /* keep last */
5658 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5659 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5660 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5661};
5662
Hai Shalomc3565922019-10-28 11:58:20 -07005663/**
5664 * enum qca_scan_freq_list_type: Frequency list types
5665 *
5666 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5667 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5668 * a preferred frequency list for roaming.
5669 *
5670 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5671 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5672 * a specific frequency list for roaming.
5673 */
5674enum qca_scan_freq_list_type {
5675 QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5676 QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5677};
5678
5679/**
5680 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5681 *
5682 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5683 * List of frequencies in MHz to be considered for a roam scan.
5684 *
5685 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5686 * Type of frequency list scheme being configured/gotten as defined by the
5687 * enum qca_scan_freq_list_type.
5688 */
5689enum qca_vendor_attr_scan_freq_list_scheme {
5690 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5691 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5692
5693 /* keep last */
5694 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5695 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5696 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5697};
5698
Hai Shalom899fcc72020-10-19 14:38:18 -07005699/**
5700 * enum qca_roam_scan_scheme: Scan scheme
5701 *
5702 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5703 * Indicates the driver to not scan on a Roam Trigger scenario, but
5704 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5705 * disconnect from the current connected AP by notifying a failure
5706 * code in the BTM response.
5707 *
5708 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5709 * trigger partial frequency scans. These frequencies are the ones learned
5710 * or maintained by the driver based on the probability of finding the
5711 * BSSIDs in the ESS for which the roaming is triggered.
5712 *
5713 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5714 * trigger the scan on all the valid frequencies to find better
5715 * candidates to roam.
5716 */
5717enum qca_roam_scan_scheme {
5718 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5719 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5720 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5721};
5722
Hai Shalomc3565922019-10-28 11:58:20 -07005723/*
5724 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5725 *
5726 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5727 * a bad packet error rates (PER).
5728 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5729 * based on beacon misses from the connected AP.
5730 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5731 * due to poor RSSI of the connected AP.
5732 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5733 * upon finding a BSSID with a better RSSI than the connected BSSID.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00005734 * Also, set if the roam has to be triggered due to the high RSSI of the
5735 * current connected AP (better than
5736 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
5737 * the current BSSID need not be poor.
Hai Shalomc3565922019-10-28 11:58:20 -07005738 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5739 * by triggering a periodic scan to find a better AP to roam.
5740 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5741 * when the connected channel environment is too noisy/congested.
5742 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5743 * when BTM Request frame is received from the connected AP.
5744 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5745 * when the channel utilization is goes above the configured threshold.
Hai Shalom899fcc72020-10-19 14:38:18 -07005746 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5747 * based on the request from the user (space).
5748 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5749 * device receives Deauthentication/Disassociation frame from connected AP.
5750 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5751 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5752 * is determined to be a poor one.
5753 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5754 * based on continuous TX Data frame failures to the connected AP.
5755 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5756 * based on the scan results obtained from an external scan (not triggered
5757 * to aim roaming).
Hai Shalomc3565922019-10-28 11:58:20 -07005758 *
5759 * Set the corresponding roam trigger reason bit to consider it for roam
5760 * trigger.
5761 * Userspace can set multiple bits and send to the driver. The driver shall
5762 * consider all of them to trigger/initiate a roam scan.
5763 */
5764enum qca_vendor_roam_triggers {
5765 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
5766 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
5767 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
5768 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
5769 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
5770 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
5771 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
5772 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07005773 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
5774 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
5775 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
5776 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
5777 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
Hai Shalomc3565922019-10-28 11:58:20 -07005778};
5779
Hai Shalom60840252021-02-19 19:02:11 -08005780/*
5781 * enum qca_vendor_roam_fail_reasons: Defines the various roam
5782 * fail reasons. This enum value is used in
5783 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5784 *
5785 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5786 * able to trigger the scan.
5787 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5788 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5789 * scan.
5790 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
5791 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
5792 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
5793 * status code.
5794 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
5795 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
5796 * frame.
5797 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
5798 * with error status code.
5799 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
5800 * received.
5801 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
5802 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
5803 * frame.
5804 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
5805 * internally before transmission.
5806 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
5807 * Request frame.
5808 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
5809 * dropped internally.
5810 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
5811 * times out.
5812 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
5813 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
5814 * internally.
5815 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
5816 * M2 frame.
5817 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
5818 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
5819 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
5820 * internally.
5821 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
5822 * frame.
5823 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
5824 * started for final beacon miss case.
5825 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
5826 * received from the AP during roaming handoff.
5827 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
5828 * or host is suspended and gives the indication of the last roamed AP only
5829 * when the Apps is resumed. If the Apps is resumed while the roaming is in
5830 * progress, this ongoing roaming is aborted and the last roamed AP is
5831 * indicated to host.
5832 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
5833 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
5834 * out.
5835 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
Sunil Ravi640215c2023-06-28 23:08:09 +00005836 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
5837 * current network conditions are fine.
Hai Shalom60840252021-02-19 19:02:11 -08005838 */
5839enum qca_vendor_roam_fail_reasons {
5840 QCA_ROAM_FAIL_REASON_NONE = 0,
5841 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
5842 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
5843 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
5844 QCA_ROAM_FAIL_REASON_HOST = 4,
5845 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
5846 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
5847 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
5848 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
5849 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
5850 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
5851 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
5852 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
5853 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
5854 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
5855 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
5856 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
5857 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
5858 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
5859 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
5860 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
5861 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
5862 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
5863 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
5864 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
5865 QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
5866 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
5867 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
5868 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
5869 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
Sunil Ravi640215c2023-06-28 23:08:09 +00005870 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
Hai Shalom60840252021-02-19 19:02:11 -08005871};
5872
5873/*
5874 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
5875 * invoke fail reasons. This enum value is used in
5876 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
5877 *
5878 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
5879 * in roam invoke command.
5880 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
5881 * enabled.
5882 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
5883 * length is invalid.
5884 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
5885 * in progress.
5886 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
5887 * of the AP in the roam invoke command to firmware. This reason is sent by the
5888 * firmware when the given AP is configured to be ignored or SSID/security
5889 * does not match.
5890 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
5891 * firmware internal reasons.
5892 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
5893 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
5894 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
5895 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
5896 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
5897 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
5898 */
5899enum qca_vendor_roam_invoke_fail_reasons {
5900 QCA_ROAM_INVOKE_STATUS_NONE = 0,
5901 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
5902 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
5903 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
5904 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
5905 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
5906 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
5907 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
5908 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
5909 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
5910 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
5911 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
5912 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
5913
5914};
5915
Hai Shalomc3565922019-10-28 11:58:20 -07005916/**
5917 * enum qca_vendor_attr_roam_candidate_selection_criteria:
5918 *
5919 * Each attribute carries a weightage in percentage (%).
5920 *
5921 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
5922 * Represents the weightage to be given for the RSSI selection
5923 * criteria among other parameters.
5924 *
5925 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
5926 * Represents the weightage to be given for the rate selection
5927 * criteria among other parameters.
5928 *
5929 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
5930 * Represents the weightage to be given for the band width selection
5931 * criteria among other parameters.
5932 *
5933 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
5934 * Represents the weightage to be given for the band selection
5935 * criteria among other parameters.
5936 *
5937 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
5938 * Represents the weightage to be given for the NSS selection
5939 * criteria among other parameters.
5940 *
5941 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
5942 * Represents the weightage to be given for the channel congestion
5943 * selection criteria among other parameters.
5944 *
5945 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
5946 * Represents the weightage to be given for the beamforming selection
5947 * criteria among other parameters.
5948 *
5949 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
5950 * Represents the weightage to be given for the OCE selection
5951 * criteria among other parameters.
5952 */
5953enum qca_vendor_attr_roam_candidate_selection_criteria {
5954 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
5955 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
5956 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
5957 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
5958 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
5959 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
5960 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
5961 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
5962
5963 /* keep last */
5964 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
5965 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
5966 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
5967};
5968
5969/**
5970 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
Sunil8cd6f4d2022-06-28 18:40:46 +00005971 * The following attributes are used to set/get/clear the respective
Hai Shalomc3565922019-10-28 11:58:20 -07005972 * configurations to/from the driver.
5973 * For the get, the attribute for the configuration to be queried shall
5974 * carry any of its acceptable values to the driver. In return, the driver
5975 * shall send the configured values within the same attribute to the user
5976 * space.
5977 *
5978 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
5979 * Signifies to enable/disable roam control in driver.
5980 * 1-enable, 0-disable
5981 * Enable: Mandates the driver to do the further roams using the
5982 * configuration parameters set through
5983 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
5984 * Disable: Disables the driver/firmware roaming triggered through
5985 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
5986 * expected to continue with the default configurations.
5987 *
5988 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
5989 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
5990 * Roam control status is obtained through this attribute.
5991 *
5992 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
5993 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5994 * is to be cleared in the driver.
5995 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5996 * and shall be ignored if used with other sub commands.
5997 * If this attribute is specified along with subcmd
5998 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5999 * all other attributes, if there are any.
6000 * If this attribute is not specified when the subcmd
6001 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
6002 * clear the data corresponding to the attributes specified.
6003 *
6004 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
6005 * list of frequencies and its type, represented by
6006 * enum qca_vendor_attr_scan_freq_list_scheme.
6007 * Frequency list and its type are mandatory for this attribute to set
6008 * the frequencies.
6009 * Frequency type is mandatory for this attribute to get the frequencies
6010 * and the frequency list is obtained through
6011 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
6012 * Frequency list type is mandatory for this attribute to clear the
6013 * frequencies.
6014 *
6015 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
6016 * Carries the value of scan period in seconds to set.
6017 * The value of scan period is obtained with the same attribute for get.
6018 * Clears the scan period in the driver when specified with clear command.
6019 * Scan period is the idle time in seconds between each subsequent
6020 * channel scans.
6021 *
6022 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
6023 * Carries the value of full scan period in seconds to set.
6024 * The value of full scan period is obtained with the same attribute for
6025 * get.
6026 * Clears the full scan period in the driver when specified with clear
6027 * command. Full scan period is the idle period in seconds between two
6028 * successive full channel roam scans.
6029 *
6030 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
6031 * Carries a bitmap of the roam triggers specified in
6032 * enum qca_vendor_roam_triggers.
6033 * The driver shall enable roaming by enabling corresponding roam triggers
6034 * based on the trigger bits sent with this attribute.
6035 * If this attribute is not configured, the driver shall proceed with
6036 * default behavior.
6037 * The bitmap configured is obtained with the same attribute for get.
6038 * Clears the bitmap configured in driver when specified with clear
6039 * command.
6040 *
6041 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
6042 * weightage in percentage (%) to be given for each selection criteria.
6043 * Different roam candidate selection criteria are represented by
6044 * enum qca_vendor_attr_roam_candidate_selection_criteria.
6045 * The driver shall select the roam candidate based on corresponding
6046 * candidate selection scores sent.
6047 *
6048 * An empty nested attribute is used to indicate that no specific
6049 * preference score/criteria is configured (i.e., to disable this mechanism
6050 * in the set case and to show that the mechanism is disabled in the get
6051 * case).
6052 *
6053 * Userspace can send multiple attributes out of this enum to the driver.
6054 * Since this attribute represents the weight/percentage of preference for
6055 * the respective selection criteria, it is preferred to configure 100%
6056 * total weightage. The value in each attribute or cumulative weight of the
6057 * values in all the nested attributes should not exceed 100%. The driver
6058 * shall reject such configuration.
6059 *
6060 * If the weights configured through this attribute are less than 100%,
6061 * the driver shall honor the weights (x%) passed for the corresponding
6062 * selection criteria and choose/distribute rest of the weight (100-x)%
6063 * for the other selection criteria, based on its internal logic.
6064 *
6065 * The selection criteria configured is obtained with the same
6066 * attribute for get.
6067 *
6068 * Clears the selection criteria configured in the driver when specified
6069 * with clear command.
Hai Shalom899fcc72020-10-19 14:38:18 -07006070 *
6071 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
6072 * Represents value of the scan frequency scheme from enum
6073 * qca_roam_scan_scheme.
6074 * It's an optional attribute. If this attribute is not configured, the
6075 * driver shall proceed with default behavior.
6076 *
6077 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6078 * signifying the RSSI threshold of the current connected AP, indicating
6079 * the driver to trigger roam only when the current connected AP's RSSI
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006080 * is less than this threshold. The RSSI threshold through this attribute
6081 * is only used by the STA when the connected AP asks it to roam through
6082 * a BTM request. Based on this threshold, the STA can either honor or
6083 * reject the AP's request to roam, and notify the status to the AP in a
6084 * BTM response.
Hai Shalom899fcc72020-10-19 14:38:18 -07006085 *
6086 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
6087 * signifying the RSSI threshold of the candidate AP, indicating
6088 * the driver to trigger roam only to the candidate AP with RSSI
Hai Shaloma20dcd72022-02-04 13:43:00 -08006089 * better than this threshold. If RSSI thresholds for candidate APs found
6090 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
6091 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
6092 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
6093 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
6094 * take precedence over the value configured using the
6095 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -07006096 *
6097 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
6098 * user defined reason code to be sent to the AP in response to AP's
6099 * request to trigger the roam if the roaming cannot be triggered.
6100 * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
6101 *
6102 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
6103 * Carries a bitmap of the roam triggers specified in
6104 * enum qca_vendor_roam_triggers.
6105 * Represents the roam triggers for which the specific scan scheme from
6106 * enum qca_roam_scan_scheme has to be applied.
6107 * It's an optional attribute. If this attribute is not configured, but
6108 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
6109 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
6110 * all the roams.
6111 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
6112 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
6113 * driver shall proceed with the default behavior.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006114 *
6115 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
6116 * in dBm, signifying the RSSI threshold of the candidate AP found in the
6117 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
6118 * AP found in the 2.4 GHz band only if its RSSI value is better than this
6119 * threshold. Optional attribute. If this attribute is not included, the
6120 * threshold value specified by the
6121 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6122 *
6123 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
6124 * dBm, signifying the RSSI threshold of the candidate AP found in the 5
6125 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6126 * found in the 5 GHz band only if its RSSI value is better than this
6127 * threshold. Optional attribute. If this attribute is not included, the
6128 * threshold value specified by tge
6129 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6130 *
6131 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
6132 * dBm, signifying the RSSI threshold of the candidate AP found in the 6
6133 * GHz band. The driver/firmware shall trigger roaming to the candidate AP
6134 * found in the 6 GHz band only if its RSSI value is better than this
6135 * threshold. Optional attribute. If this attribute is not included, the
6136 * threshold value specified by the
6137 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
6138 *
6139 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
6140 * Carries bitmask value of bits from &enum qca_set_band and represents
6141 * all the bands in which roaming is allowed. The configuration is valid
6142 * until next disconnection. If this attribute is not present, the
6143 * existing configuration shall be used. By default, roaming is allowed on
6144 * all bands supported by the local device. When the value is set to
6145 * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
6146 *
6147 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
6148 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
6149 * bands. If this attribute is not configured, the driver shall proceed
6150 * with default behavior.
6151 *
6152 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
6153 * Optional parameter. Scan dwell time for passive channels in the 5 GHz
6154 * band. If this attribute is not configured, the driver shall proceed with
6155 * default behavior.
6156 *
6157 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
6158 * Optional parameter. The minimum duration to stay on the connected AP
6159 * channel during the channel scanning. If this attribute is not
6160 * configured, the driver shall proceed with default behavior.
6161 *
6162 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
6163 * Optional parameter. The maximum duration for which the radio can scan
6164 * foreign channels consecutively without coming back to home channel. If
6165 * this attribute is not configured, the driver shall proceed with default
6166 * behavior.
6167 *
6168 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
6169 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
6170 * If this attribute is not configured, the driver shall proceed with
6171 * default behavior.
6172 *
6173 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
6174 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning
6175 * Channels. If this attribute is not configured, the driver shall proceed
6176 * with default behavior.
Sunil8cd6f4d2022-06-28 18:40:46 +00006177 *
6178 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
6179 * Optional parameter. RX link speed threshold to disable roaming.
6180 * If the current RX link speed is above the threshold, roaming is not
6181 * needed. If this attribute is not configured, or if it is set to 0, the
6182 * driver will not consider the RX link speed in the roaming decision.
Sunil Ravi77d572f2023-01-17 23:58:31 +00006183 *
6184 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
6185 * Optional parameter. This configuration delays hand-off by the
6186 * specified duration to receive pending RX frames from the current BSS.
6187 *
6188 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
6189 * value.
6190 * During the roam scan, if there are no desired APs found in the partial
6191 * frequency list, an immediate full scan on all the supported frequencies
6192 * is initiated as a fallback. This flag controls the frequency list
6193 * creation for the full scan on the following lines.
6194 * 1 - Full scan to exclude the frequencies that were already scanned by
6195 * the previous partial scan.
6196 * 0 - Full scan to include all the supported frequencies irrespective of
6197 * the ones part of the earlier partial scan.
6198 * If this flag is not specified, a full scan shall include all the
6199 * supported frequencies irrespective of the ones part of an earlier
6200 * partial scan.
6201 *
6202 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
6203 * value.
6204 * During the roam scan, if there are no desired APs found in the partial
6205 * frequency list, an immediate full scan on all the supported frequencies
6206 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
6207 * frequencies, including all PSC frequencies by default. This attribute
6208 * controls the inclusion of the 6 GHz PSC frequencies for the full scan
6209 * as following.
6210 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
6211 * prior discovery of any 6 GHz frequency support in the environment.
6212 * This discovery can happen through a prior RNR, 11k neighbor
6213 * request, 11v BTM request, host scan, etc.
6214 * 0 - Default behavior. Full scan to include all the supported 6 GHz
6215 * PSC frequencies regardless of whether 6 GHz BSSs have been
6216 * discovered.
6217 * The default behavior if this flag is not specified is to include all
6218 * the supported 6 GHz PSC frequencies in the roam full scan.
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006219 *
6220 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
6221 * in dBm.
6222 * This attribute configures the low RSSI threshold of the connected AP,
6223 * based on which the STA can start looking for the neighbor APs and
6224 * trigger the roam eventually. STA keeps monitoring for the connected
6225 * AP's RSSI and will start scanning for neighboring APs once the RSSI
6226 * falls below this threshold. This attribute differs from
6227 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
6228 * threshold is used only when the connected AP asks the STA to roam
6229 * through a BTM request.
6230 *
6231 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6232 * This attribute signifies the RSSI difference threshold between the
6233 * connected AP and the new candidate AP. This parameter influences the
6234 * STA to roam to the new candidate only when its RSSI is better than
6235 * the current connected one by this threshold.
6236 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
6237 *
6238 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
6239 * This attribute signifies the RSSI difference threshold between the
6240 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the
6241 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz
6242 * candidate only when its RSSI is better than the current connected one
6243 * by this threshold. This threshold overrides
6244 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
6245 * GHz to 6 GHz alone with the intention to have a different value to roam
6246 * to the preferred 6 GHz band.
6247 *
6248 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
6249 * This attribute signifies the RSSI offset that is added to low RSSI
6250 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
6251 * high RSSI threshold. STA is expected to trigger roam if the current
6252 * connected AP's RSSI gets above this high RSSI threshold. STA's roam
6253 * attempt on high RSSI threshold aims to find candidates from other
6254 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
6255 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
6256 * for 2.4 GHz BSS).
Hai Shalomc3565922019-10-28 11:58:20 -07006257 */
6258enum qca_vendor_attr_roam_control {
6259 QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
6260 QCA_ATTR_ROAM_CONTROL_STATUS = 2,
6261 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006262 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
Hai Shalomc3565922019-10-28 11:58:20 -07006263 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
6264 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
6265 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
6266 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07006267 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
6268 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
6269 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
6270 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
6271 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006272 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
6273 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
6274 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
6275 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
6276 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
6277 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
6278 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
6279 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
6280 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
6281 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
Sunil8cd6f4d2022-06-28 18:40:46 +00006282 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
Sunil Ravi77d572f2023-01-17 23:58:31 +00006283 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
6284 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
6285 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00006286 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
6287 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
6288 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
6289 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
Hai Shalomc3565922019-10-28 11:58:20 -07006290
6291 /* keep last */
6292 QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
6293 QCA_ATTR_ROAM_CONTROL_MAX =
6294 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
6295};
6296
6297/*
6298 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
6299 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
6300 *
6301 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
6302 * Represents the different roam sub commands referred by
6303 * enum qca_wlan_vendor_roaming_subcmd.
6304 *
6305 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
6306 * Represents the Request ID for the specific set of commands.
6307 * This also helps to map specific set of commands to the respective
6308 * ID / client. e.g., helps to identify the user entity configuring the
Hai Shalom899fcc72020-10-19 14:38:18 -07006309 * ignored BSSIDs and accordingly clear the respective ones with the
Hai Shalomc3565922019-10-28 11:58:20 -07006310 * matching ID.
6311 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006312 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
6313 * 32-bit value. Represents the number of allowlist SSIDs configured.
Hai Shalomc3565922019-10-28 11:58:20 -07006314 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006315 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
6316 * to carry the list of allowlist SSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006317 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006318 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
6319 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs
Hai Shalomc3565922019-10-28 11:58:20 -07006320 * represent the list of SSIDs to which the firmware/driver can consider
6321 * to roam to.
6322 *
6323 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
6324 * comparing with a 2.4GHz BSSID. They are not applied when comparing two
6325 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
6326 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
6327 *
6328 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
6329 * value, RSSI threshold above which 5GHz RSSI is favored.
6330 *
6331 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
6332 * value, RSSI threshold below which 5GHz RSSI is penalized.
6333 *
6334 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
6335 * value, factor by which 5GHz RSSI is boosted.
6336 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
6337 *
6338 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
6339 * value, factor by which 5GHz RSSI is penalized.
6340 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
6341 *
6342 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
6343 * value, maximum boost that can be applied to a 5GHz RSSI.
6344 *
6345 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
6346 * value, boost applied to current BSSID to ensure the currently
6347 * associated BSSID is favored so as to prevent ping-pong situations.
6348 *
6349 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
6350 * value, RSSI below which "Alert" roam is enabled.
6351 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
6352 * because the RSSI is low, or because many successive beacons have been
6353 * lost or other bad link conditions.
6354 *
6355 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
6356 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
Hai Shaloma20dcd72022-02-04 13:43:00 -08006357 * firmware is hunting for a better BSSID or allow listed SSID even though
Hai Shalomc3565922019-10-28 11:58:20 -07006358 * the RSSI of the link is good. The parameters enabling the roaming are
6359 * configured through the PARAM_A_BAND_XX attrbutes.
6360 *
6361 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
6362 * represents the BSSIDs preferred over others while evaluating them
6363 * for the roaming.
6364 *
6365 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
6366 * 32-bit value. Represents the number of preferred BSSIDs set.
6367 *
6368 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
6369 * address representing the BSSID to be preferred.
6370 *
6371 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
6372 * 32-bit value, representing the modifier to be applied to the RSSI of
6373 * the BSSID for the purpose of comparing it with other roam candidate.
6374 *
6375 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006376 * represents the BSSIDs to get ignored for roaming.
Hai Shalomc3565922019-10-28 11:58:20 -07006377 *
6378 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
Hai Shalom899fcc72020-10-19 14:38:18 -07006379 * 32-bit value, represents the number of ignored BSSIDs.
Hai Shalomc3565922019-10-28 11:58:20 -07006380 *
6381 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
Hai Shalom899fcc72020-10-19 14:38:18 -07006382 * address representing the ignored BSSID.
Hai Shalomc3565922019-10-28 11:58:20 -07006383 *
6384 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
Hai Shalom899fcc72020-10-19 14:38:18 -07006385 * indicates this request to ignore the BSSID as a hint to the driver. The
6386 * driver can select this BSSID in the worst case (when no other BSSIDs are
6387 * better).
Hai Shalomc3565922019-10-28 11:58:20 -07006388 *
6389 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
6390 * set/get/clear the roam control config as
6391 * defined @enum qca_vendor_attr_roam_control.
6392 */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006393enum qca_wlan_vendor_attr_roaming_config_params {
6394 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
6395
6396 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
6397 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
6398
Hai Shaloma20dcd72022-02-04 13:43:00 -08006399 /* Attributes for wifi_set_ssid_allow_list */
6400 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
6401 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
6402 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006403
6404 /* Attributes for set_roam_params */
6405 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
6406 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
6407 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
6408 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
6409 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
6410 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
6411 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
6412
6413 /* Attribute for set_lazy_roam */
6414 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
6415
6416 /* Attribute for set_lazy_roam with preferences */
6417 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
6418 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
6419 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
6420 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
6421
Hai Shalom899fcc72020-10-19 14:38:18 -07006422 /* Attribute for setting ignored BSSID parameters */
Dmitry Shmidt29333592017-01-09 12:27:11 -08006423 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
6424 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
6425 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -07006426 /* Flag attribute indicates this entry as a hint */
Hai Shalom021b0b52019-04-10 11:17:58 -07006427 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006428
Hai Shalomc3565922019-10-28 11:58:20 -07006429 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
6430
Dmitry Shmidt29333592017-01-09 12:27:11 -08006431 /* keep last */
6432 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
6433 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
6434 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
6435};
6436
Hai Shaloma20dcd72022-02-04 13:43:00 -08006437/* old names for API compatibility */
6438#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
6439 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
6440#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
6441 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
6442#define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
6443 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
6444
Dmitry Shmidt29333592017-01-09 12:27:11 -08006445/*
Hai Shalomc3565922019-10-28 11:58:20 -07006446 * enum qca_wlan_vendor_roaming_subcmd: Referred by
6447 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
6448 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006449 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
6450 * configure the allow list SSIDs. These are configured through
Hai Shalomc3565922019-10-28 11:58:20 -07006451 * the following attributes.
Hai Shaloma20dcd72022-02-04 13:43:00 -08006452 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
6453 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
6454 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
Hai Shalomc3565922019-10-28 11:58:20 -07006455 *
6456 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
6457 * configure the Roam params. These parameters are evaluated on the GScan
6458 * results. Refers the attributes PARAM_A_BAND_XX above to configure the
6459 * params.
6460 *
6461 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
6462 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
6463 * to enable/disable Lazy roam.
6464 *
6465 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
6466 * preference. Contains the attribute
6467 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
6468 * preference.
6469 *
Hai Shaloma20dcd72022-02-04 13:43:00 -08006470 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
Hai Shalom899fcc72020-10-19 14:38:18 -07006471 * to ignore in roaming decision. Uses
6472 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
Hai Shalomc3565922019-10-28 11:58:20 -07006473 *
6474 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
6475 * roam control config to the driver with the attribute
6476 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6477 *
6478 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
6479 * roam control config from driver with the attribute
6480 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6481 * For the get, the attribute for the configuration to be queried shall
6482 * carry any of its acceptable value to the driver. In return, the driver
6483 * shall send the configured values within the same attribute to the user
6484 * space.
6485 *
6486 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
6487 * roam control config in the driver with the attribute
6488 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
6489 * The driver shall continue with its default roaming behavior when data
6490 * corresponding to an attribute is cleared.
Dmitry Shmidt29333592017-01-09 12:27:11 -08006491 */
Hai Shalomc3565922019-10-28 11:58:20 -07006492enum qca_wlan_vendor_roaming_subcmd {
6493 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006494 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
Hai Shalomc3565922019-10-28 11:58:20 -07006495 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
6496 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
6497 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
6498 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -08006499 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
Hai Shalomc3565922019-10-28 11:58:20 -07006500 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
6501 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
6502 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006503};
6504
Hai Shaloma20dcd72022-02-04 13:43:00 -08006505/* old names for API compatibility */
6506#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
6507 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
6508#define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
6509 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
6510
Dmitry Shmidt29333592017-01-09 12:27:11 -08006511enum qca_wlan_vendor_attr_gscan_config_params {
6512 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
6513
6514 /* Unsigned 32-bit value */
6515 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
6516
6517 /* Attributes for data used by
6518 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
6519 */
6520 /* Unsigned 32-bit value */
6521 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
6522 = 2,
6523 /* Unsigned 32-bit value */
6524 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
6525 = 3,
6526
6527 /* Attributes for input params used by
6528 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
6529 */
6530
6531 /* Unsigned 32-bit value; channel frequency */
6532 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
6533 /* Unsigned 32-bit value; dwell time in ms. */
6534 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
6535 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
6536 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
6537 /* Unsigned 8-bit value; channel class */
6538 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
6539
6540 /* Unsigned 8-bit value; bucket index, 0 based */
6541 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
6542 /* Unsigned 8-bit value; band. */
6543 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
6544 /* Unsigned 32-bit value; desired period, in ms. */
6545 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
6546 /* Unsigned 8-bit value; report events semantics. */
6547 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
6548 /* Unsigned 32-bit value. Followed by a nested array of
6549 * GSCAN_CHANNEL_SPEC_* attributes.
6550 */
6551 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
6552
6553 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
6554 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6555 */
6556 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
6557
6558 /* Unsigned 32-bit value; base timer period in ms. */
6559 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
6560 /* Unsigned 32-bit value; number of APs to store in each scan in the
6561 * BSSID/RSSI history buffer (keep the highest RSSI APs).
6562 */
6563 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
6564 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
6565 * up AP.
6566 */
6567 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
6568 = 16,
6569
6570 /* Unsigned 8-bit value; number of scan bucket specs; followed by a
6571 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
6572 * of the array is determined by NUM_BUCKETS.
6573 */
6574 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
6575
6576 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
6577 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
6578 */
6579 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
6580
6581 /* Unsigned 8-bit value */
6582 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
6583 = 19,
6584 /* Unsigned 32-bit value; maximum number of results to be returned. */
6585 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
6586 = 20,
6587
6588 /* An array of 6 x unsigned 8-bit value */
6589 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
6590 /* Signed 32-bit value */
6591 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
6592 /* Signed 32-bit value */
6593 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
6594 /* Unsigned 32-bit value */
6595 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
6596
6597 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
6598 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
6599 * array is determined by NUM_AP.
6600 */
6601 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
6602
6603 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
6604 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
6605 */
6606 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
6607
6608 /* Unsigned 32-bit value; number of samples for averaging RSSI. */
6609 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
6610 = 27,
6611 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6612 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
6613 = 28,
6614 /* Unsigned 32-bit value; number of APs breaching threshold. */
6615 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
6616 /* Unsigned 32-bit value; number of APs. Followed by an array of
6617 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
6618 */
6619 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
6620 /* Unsigned 32-bit value; number of samples to confirm AP loss. */
6621 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
6622 = 31,
6623 /* Unsigned 32-bit value. If max_period is non zero or different than
6624 * period, then this bucket is an exponential backoff bucket.
6625 */
6626 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
6627 /* Unsigned 32-bit value. */
6628 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
6629 /* Unsigned 32-bit value. For exponential back off bucket, number of
6630 * scans to perform for a given period.
6631 */
6632 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
6633 /* Unsigned 8-bit value; in number of scans, wake up AP after these
6634 * many scans.
6635 */
6636 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
6637 = 35,
6638
6639 /* Attributes for data used by
6640 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
6641 */
6642 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
6643 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
6644 = 36,
6645 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
6646 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
6647 * size of the array is determined by NUM_SSID.
6648 */
6649 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
6650 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
6651 * attributes.
6652 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
6653 */
6654 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
6655
6656 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6657 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
6658 /* Unsigned 8-bit value */
6659 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
6660 /* Signed 32-bit value */
6661 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
6662 /* Signed 32-bit value */
6663 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
6664 /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
6665 */
6666 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
6667
6668 /* keep last */
6669 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
6670 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
6671 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
6672};
6673
6674enum qca_wlan_vendor_attr_gscan_results {
6675 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
6676
6677 /* Unsigned 32-bit value; must match the request Id supplied by
6678 * Wi-Fi HAL in the corresponding subcmd NL msg.
6679 */
6680 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
6681
6682 /* Unsigned 32-bit value; used to indicate the status response from
6683 * firmware/driver for the vendor sub-command.
6684 */
6685 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
6686
6687 /* GSCAN Valid Channels attributes */
6688 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
6689 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
6690 /* An array of NUM_CHANNELS x unsigned 32-bit value integers
6691 * representing channel numbers.
6692 */
6693 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
6694
6695 /* GSCAN Capabilities attributes */
6696 /* Unsigned 32-bit value */
6697 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
6698 /* Unsigned 32-bit value */
6699 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
6700 /* Unsigned 32-bit value */
6701 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
6702 = 7,
6703 /* Unsigned 32-bit value */
6704 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
6705 = 8,
6706 /* Signed 32-bit value */
6707 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6708 = 9,
6709 /* Unsigned 32-bit value */
6710 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6711 /* Unsigned 32-bit value */
6712 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6713 = 11,
6714 /* Unsigned 32-bit value */
6715 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6716 = 12,
6717
6718 /* GSCAN Attributes used with
6719 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6720 */
6721
6722 /* Unsigned 32-bit value */
6723 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6724
6725 /* GSCAN attributes used with
6726 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6727 */
6728
6729 /* An array of NUM_RESULTS_AVAILABLE x
6730 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6731 */
6732 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6733
6734 /* Unsigned 64-bit value; age of sample at the time of retrieval */
6735 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6736 /* 33 x unsigned 8-bit value; NULL terminated SSID */
6737 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6738 /* An array of 6 x unsigned 8-bit value */
6739 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6740 /* Unsigned 32-bit value; channel frequency in MHz */
6741 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6742 /* Signed 32-bit value */
6743 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6744 /* Unsigned 32-bit value */
6745 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6746 /* Unsigned 32-bit value */
6747 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6748 /* Unsigned 16-bit value */
6749 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6750 /* Unsigned 16-bit value */
6751 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6752 /* Unsigned 32-bit value; size of the IE DATA blob */
6753 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6754 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6755 * information elements found in the beacon; this data should be a
6756 * packed list of wifi_information_element objects, one after the
6757 * other.
6758 */
6759 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6760
6761 /* Unsigned 8-bit value; set by driver to indicate more scan results are
6762 * available.
6763 */
6764 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6765
6766 /* GSCAN attributes for
6767 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6768 */
6769 /* Unsigned 8-bit value */
6770 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6771 /* Unsigned 32-bit value */
6772 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6773
6774 /* GSCAN attributes for
6775 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6776 */
6777 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6778 * to indicate number of results.
6779 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6780 * list of results.
6781 */
6782
6783 /* GSCAN attributes for
6784 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6785 */
6786 /* An array of 6 x unsigned 8-bit value */
6787 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6788 /* Unsigned 32-bit value */
6789 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6790 = 30,
6791 /* Unsigned 32-bit value. */
6792 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
6793 = 31,
6794 /* A nested array of signed 32-bit RSSI values. Size of the array is
6795 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
6796 */
6797 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
6798 = 32,
6799
6800 /* GSCAN attributes used with
6801 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
6802 */
6803 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6804 * to indicate number of gscan cached results returned.
6805 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
6806 * the list of gscan cached results.
6807 */
6808
6809 /* An array of NUM_RESULTS_AVAILABLE x
6810 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
6811 */
6812 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
6813 /* Unsigned 32-bit value; a unique identifier for the scan unit. */
6814 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
6815 /* Unsigned 32-bit value; a bitmask w/additional information about scan.
6816 */
6817 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
6818 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6819 * to indicate number of wifi scan results/bssids retrieved by the scan.
6820 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6821 * list of wifi scan results returned for each cached result block.
6822 */
6823
6824 /* GSCAN attributes for
6825 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
6826 */
6827 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
6828 * number of results.
6829 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6830 * list of wifi scan results returned for each
6831 * wifi_passpoint_match_result block.
6832 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
6833 */
6834
6835 /* GSCAN attributes for
6836 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
6837 */
6838 /* Unsigned 32-bit value */
6839 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
6840 = 36,
6841 /* A nested array of
6842 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
6843 * attributes. Array size =
6844 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
6845 */
6846 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
6847
6848 /* Unsigned 32-bit value; network block id for the matched network */
6849 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
6850 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6851 * list of wifi scan results returned for each
6852 * wifi_passpoint_match_result block.
6853 */
6854 /* Unsigned 32-bit value */
6855 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
6856 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
6857 * ANQP data in the information_element format.
6858 */
6859 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
6860
6861 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6862 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
6863 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6864 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
6865 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6866 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
6867 = 43,
6868 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006869 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
Dmitry Shmidt29333592017-01-09 12:27:11 -08006870 = 44,
6871
6872 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
6873
Hai Shalomce48b4a2018-09-05 11:41:35 -07006874 /* Unsigned 32-bit value; a GSCAN Capabilities attribute.
6875 * This is used to limit the maximum number of BSSIDs while sending
Hai Shalomc3565922019-10-28 11:58:20 -07006876 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
Hai Shaloma20dcd72022-02-04 13:43:00 -08006877 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
Hai Shalomce48b4a2018-09-05 11:41:35 -07006878 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
6879 */
Hai Shaloma20dcd72022-02-04 13:43:00 -08006880 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
Hai Shalomce48b4a2018-09-05 11:41:35 -07006881
Sunil Ravi036cec52023-03-29 11:35:17 -07006882 /* Attribute used for padding for 64-bit alignment */
6883 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
6884
Dmitry Shmidt29333592017-01-09 12:27:11 -08006885 /* keep last */
6886 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
6887 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
6888 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
6889};
6890
Hai Shaloma20dcd72022-02-04 13:43:00 -08006891/* old names for API compatibility */
6892#define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
6893 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
6894#define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
6895 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
6896
Dmitry Shmidt29333592017-01-09 12:27:11 -08006897enum qca_wlan_vendor_attr_pno_config_params {
6898 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
6899 /* Attributes for data used by
6900 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
6901 */
6902 /* Unsigned 32-bit value */
6903 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
6904 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
6905 * attributes. Array size =
6906 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
6907 */
6908 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
6909
6910 /* Unsigned 32-bit value */
6911 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
6912 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
6913 * realm, 0 if unspecified.
6914 */
6915 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
6916 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
6917 * match, 0 if unspecified.
6918 */
6919 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
6920 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
6921 * unspecified.
6922 */
6923 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
6924
6925 /* Attributes for data used by
6926 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
6927 */
6928 /* Unsigned 32-bit value */
6929 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
6930 /* Array of nested
6931 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
6932 * attributes. Array size =
6933 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
6934 */
6935 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
6936 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6937 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
6938 /* Signed 8-bit value; threshold for considering this SSID as found,
6939 * required granularity for this threshold is 4 dBm to 8 dBm.
6940 */
6941 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
6942 = 10,
6943 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
6944 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
6945 /* Unsigned 8-bit value; auth bit field for matching WPA IE */
6946 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
6947 /* Unsigned 8-bit to indicate ePNO type;
6948 * It takes values from qca_wlan_epno_type
6949 */
6950 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
6951
6952 /* Nested attribute to send the channel list */
6953 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
6954
6955 /* Unsigned 32-bit value; indicates the interval between PNO scan
6956 * cycles in msec.
6957 */
6958 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
6959 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
6960 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
6961 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
6962 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
6963 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
6964 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
6965 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07006966 /* Unsigned 32-bit value, representing the PNO Request ID */
6967 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
Dmitry Shmidt29333592017-01-09 12:27:11 -08006968
6969 /* keep last */
6970 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
6971 QCA_WLAN_VENDOR_ATTR_PNO_MAX =
6972 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
6973};
6974
Paul Stewart092955c2017-02-06 09:13:09 -08006975/**
6976 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
6977 * the ACS has to be triggered. These values are used by
6978 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
6979 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
6980 */
6981enum qca_wlan_vendor_acs_select_reason {
6982 /* Represents the reason that the ACS triggered during the AP start */
6983 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
6984 /* Represents the reason that DFS found with the current channel */
6985 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
6986 /* Represents the reason that LTE co-exist in the current band. */
6987 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
Hai Shalomc3565922019-10-28 11:58:20 -07006988 /* Represents the reason that generic, uncategorized interference has
6989 * been found in the current channel.
6990 */
6991 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6992 /* Represents the reason that excessive 802.11 interference has been
6993 * found in the current channel.
6994 */
6995 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6996 /* Represents the reason that generic Continuous Wave (CW) interference
6997 * has been found in the current channel.
6998 */
6999 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7000 /* Represents the reason that Microwave Oven (MWO) interference has been
7001 * found in the current channel.
7002 */
7003 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7004 /* Represents the reason that generic Frequency-Hopping Spread Spectrum
7005 * (FHSS) interference has been found in the current channel. This may
7006 * include 802.11 waveforms.
7007 */
7008 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7009 /* Represents the reason that non-802.11 generic Frequency-Hopping
7010 * Spread Spectrum (FHSS) interference has been found in the current
7011 * channel.
7012 */
7013 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7014 /* Represents the reason that generic Wideband (WB) interference has
7015 * been found in the current channel. This may include 802.11 waveforms.
7016 */
7017 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7018 /* Represents the reason that non-802.11 generic Wideband (WB)
7019 * interference has been found in the current channel.
7020 */
7021 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7022 /* Represents the reason that Jammer interference has been found in the
7023 * current channel.
7024 */
7025 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
Sunil Ravia04bd252022-05-02 22:54:18 -07007026 /* Represents the reason that ACS triggered by AFC */
7027 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
Paul Stewart092955c2017-02-06 09:13:09 -08007028};
7029
7030/**
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007031 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7032 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7033 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7034 * external ACS policies to select the channels w.r.t. the PCL weights.
7035 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7036 * their PCL weights.)
7037 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7038 * select a channel with non-zero PCL weight.
7039 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7040 * channel with non-zero PCL weight.
7041 *
7042 */
7043enum qca_wlan_vendor_attr_external_acs_policy {
7044 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7045 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7046};
7047
7048/**
Paul Stewart092955c2017-02-06 09:13:09 -08007049 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
7050 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
7051 */
7052enum qca_wlan_vendor_channel_prop_flags {
7053 /* Bits 0, 1, 2, and 3 are reserved */
7054
7055 /* Turbo channel */
7056 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
7057 /* CCK channel */
7058 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
7059 /* OFDM channel */
7060 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
7061 /* 2.4 GHz spectrum channel. */
7062 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
7063 /* 5 GHz spectrum channel */
7064 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
7065 /* Only passive scan allowed */
7066 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
7067 /* Dynamic CCK-OFDM channel */
7068 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
7069 /* GFSK channel (FHSS PHY) */
7070 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
7071 /* Radar found on channel */
7072 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
7073 /* 11a static turbo channel only */
7074 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
7075 /* Half rate channel */
7076 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
7077 /* Quarter rate channel */
7078 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
7079 /* HT 20 channel */
7080 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
7081 /* HT 40 with extension channel above */
7082 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
7083 /* HT 40 with extension channel below */
7084 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
7085 /* HT 40 intolerant */
7086 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
7087 /* VHT 20 channel */
7088 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
7089 /* VHT 40 with extension channel above */
7090 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
7091 /* VHT 40 with extension channel below */
7092 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
7093 /* VHT 80 channel */
7094 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
7095 /* HT 40 intolerant mark bit for ACS use */
7096 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
7097 /* Channel temporarily blocked due to noise */
7098 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
7099 /* VHT 160 channel */
7100 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
7101 /* VHT 80+80 channel */
7102 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007103 /* HE 20 channel */
7104 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
7105 /* HE 40 with extension channel above */
7106 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
7107 /* HE 40 with extension channel below */
7108 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
7109 /* HE 40 intolerant */
Sunil Ravi89eba102022-09-13 21:04:37 -07007110 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007111};
7112
7113/**
7114 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
7115 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
7116 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
7117 */
7118enum qca_wlan_vendor_channel_prop_flags_2 {
7119 /* HE 40 intolerant mark bit for ACS use */
7120 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
7121 /* HE 80 channel */
7122 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
7123 /* HE 160 channel */
7124 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
7125 /* HE 80+80 channel */
7126 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007127};
7128
7129/**
7130 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
7131 * each channel. This is used by
7132 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
7133 */
7134enum qca_wlan_vendor_channel_prop_flags_ext {
7135 /* Radar found on channel */
7136 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
7137 /* DFS required on channel */
7138 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
7139 /* DFS required on channel for 2nd band of 80+80 */
7140 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
7141 /* If channel has been checked for DFS */
7142 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
7143 /* Excluded in 802.11d */
7144 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
7145 /* Channel Switch Announcement received on this channel */
7146 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
7147 /* Ad-hoc is not allowed */
7148 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
7149 /* Station only channel */
7150 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
Hai Shalom899fcc72020-10-19 14:38:18 -07007151 /* DFS radar history for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007152 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
Hai Shalom899fcc72020-10-19 14:38:18 -07007153 /* DFS CAC valid for client device (STA mode) */
Paul Stewart092955c2017-02-06 09:13:09 -08007154 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
7155};
7156
7157/**
7158 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
7159 * information. These attributes are sent as part of
7160 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
7161 * attributes correspond to a single channel.
7162 */
7163enum qca_wlan_vendor_external_acs_event_chan_info_attr {
7164 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
7165
7166 /* A bitmask (u32) with flags specified in
7167 * enum qca_wlan_vendor_channel_prop_flags.
7168 */
7169 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
7170 /* A bitmask (u32) with flags specified in
7171 * enum qca_wlan_vendor_channel_prop_flags_ext.
7172 */
7173 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
7174 /* frequency in MHz (u32) */
7175 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
7176 /* maximum regulatory transmission power (u32) */
7177 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
7178 /* maximum transmission power (u32) */
7179 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
7180 /* minimum transmission power (u32) */
7181 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
7182 /* regulatory class id (u8) */
7183 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
7184 /* maximum antenna gain in (u8) */
7185 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
7186 /* VHT segment 0 (u8) */
7187 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
7188 /* VHT segment 1 (u8) */
7189 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007190 /* A bitmask (u32) with flags specified in
7191 * enum qca_wlan_vendor_channel_prop_flags_2.
7192 */
7193 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007194
Hai Shalomc3565922019-10-28 11:58:20 -07007195 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007196 * Segment 0 in MHz (u32).
7197 *
7198 * For 20/40/80 MHz bandwidth, this indicates the channel center
7199 * frequency index for the 20/40/80 MHz operating channel.
7200 * For 160 MHz bandwidth, this indicates the channel center
7201 * frequency of the primary 80 MHz channel.
7202 * For 320 MHz bandwidth, indicates the channel center frequency
7203 * of the primary 160 MHz channel.
7204 *
7205 * To maintain backward compatibility,
7206 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7207 * is also maintained.
7208 */
7209 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
7210 /* Legacy alias for the Segment 0 attribute.
7211 *
Hai Shalomc3565922019-10-28 11:58:20 -07007212 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
7213 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7214 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7215 * along with
7216 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
7217 *
7218 * If both the driver and user-space application supports the 6 GHz
7219 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
7220 * is deprecated and
7221 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7222 * should be used.
7223 *
7224 * To maintain backward compatibility,
7225 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
7226 * is still used if either of the driver or user space application
7227 * doesn't support the 6 GHz band.
7228 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007229 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
7230 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
Hai Shalomc3565922019-10-28 11:58:20 -07007231
7232 /*
Sunil Ravi77d572f2023-01-17 23:58:31 +00007233 * Segment 1 in MHz (u32).
7234 *
7235 * For 20/40/80 MHz bandwidth, this is set to 0.
7236 * For 160 MHz bandwidth, indicates the channel center frequency of the
7237 * 160 MHz channel.
7238 * For 320 MHz bandwidth, indicates the channel center frequency of the
7239 * 320 MHz channel.
7240 *
7241 * To maintain backward compatibility,
7242 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7243 * is also maintained.
7244 */
7245 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
7246 /* Legacy alias for the Segment 1 attribute.
7247 *
Hai Shalomc3565922019-10-28 11:58:20 -07007248 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
7249 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
7250 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7251 * along with
7252 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
7253 *
7254 * If both the driver and user-space application supports the 6 GHz
7255 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
7256 * is deprecated and
7257 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7258 * should be considered.
7259 *
7260 * To maintain backward compatibility,
7261 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
7262 * is still used if either of the driver or user space application
7263 * doesn't support the 6 GHz band.
7264 */
Sunil Ravi77d572f2023-01-17 23:58:31 +00007265 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
7266 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
Hai Shalomc3565922019-10-28 11:58:20 -07007267
Sunil Ravia04bd252022-05-02 22:54:18 -07007268 /*
7269 * 16-bit attribute of bits indicating the AP power modes supported by
7270 * the channel (u16).
7271 * Note: Currently, only 3 bits are used in the attribute and each bit
7272 * corresponds to the power mode mentioned in enum
7273 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
7274 * set if the associated mode is supported.
7275 */
7276 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
7277 = 14,
7278 /* Array of nested attributes for each power mode. It takes attr as
7279 * defined in enum
7280 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
7281 */
7282 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007283 /*
7284 * This indicates the overlapping 320 MHz center frequency in MHz
7285 * (u32), if the given primary channel supports more than one
7286 * 320 MHz channel bonding.
7287 *
7288 * Example:
7289 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
7290 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
7291 * possible segment 2 frequencies for this (320 MHz center
7292 * frequencies):
7293 *
7294 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
7295 * from frequency 5945 MHz - 6265 MHz
7296 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
7297 * from frequency 6105 MHz - 6425 MHz
7298 *
7299 * In this case,
7300 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
7301 * return 6185 MHz.
7302 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
7303 * return 6105 MHz.
7304 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7305 * will return 6265 MHz.
7306 */
7307 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
7308 = 16,
7309
Paul Stewart092955c2017-02-06 09:13:09 -08007310 /* keep last */
7311 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
7312 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
7313 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
7314};
7315
7316/**
Sunil Ravia04bd252022-05-02 22:54:18 -07007317 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
7318 * values that the vendor external ACS channel power attribute
7319 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
7320 * take.
7321 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
7322 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
7323 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
7324 */
7325enum qca_wlan_vendor_external_acs_chan_power_level {
7326 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
7327 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
7328 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
7329};
7330
7331/**
7332 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
7333 * attributes for power mode type and power values corresponding to that.
7334 * These attributes are sent as part of
7335 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
7336 */
7337enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
7338 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
7339 /*
7340 * Power mode (u8) takes the values defined in enum
7341 * qca_wlan_vendor_external_acs_chan_power_mode
7342 */
7343 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
7344 = 1,
7345 /*
7346 * Indicates if power value is a PSD/EIRP value (flag). If flag is
7347 * present, it indicates a PSD value.
7348 */
7349 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
7350 /*
7351 * Power value (u32) PSD/EIRP as indicated by
7352 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
7353 * for power mode corresponding to the
7354 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
7355 * Units for PSD - dBm/MHz
7356 * Units for EIRP - dBm
7357 */
7358 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
7359 = 3,
7360 /* keep last */
7361 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
7362 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
7363 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
7364};
7365
7366/**
Paul Stewart092955c2017-02-06 09:13:09 -08007367 * qca_wlan_vendor_attr_pcl: Represents attributes for
7368 * preferred channel list (PCL). These attributes are sent as part of
Roshan Pius3a1667e2018-07-03 15:17:14 -07007369 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
7370 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
Paul Stewart092955c2017-02-06 09:13:09 -08007371 */
7372enum qca_wlan_vendor_attr_pcl {
7373 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
7374
7375 /* Channel number (u8) */
7376 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
7377 /* Channel weightage (u8) */
7378 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007379 /* Channel frequency (u32) in MHz */
7380 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
7381 /* Channel flags (u32)
7382 * bit 0 set: channel to be used for GO role,
7383 * bit 1 set: channel to be used on CLI role,
7384 * bit 2 set: channel must be considered for operating channel
7385 * selection & peer chosen operating channel should be
7386 * one of the channels with this flag set,
7387 * bit 3 set: channel should be excluded in GO negotiation
7388 */
7389 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
Sunil Ravia04bd252022-05-02 22:54:18 -07007390
7391 /* Keep last */
7392 QCA_WLAN_VENDOR_ATTR_PCL_LAST,
7393 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
Paul Stewart092955c2017-02-06 09:13:09 -08007394};
7395
7396/**
7397 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
7398 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
7399 * host driver.
7400 */
7401enum qca_wlan_vendor_attr_external_acs_event {
7402 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
7403
7404 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
7405 * This helps ACS module to understand why ACS needs to be started.
7406 */
7407 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
7408 /* Flag attribute to indicate if driver supports spectral scanning */
7409 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
7410 /* Flag attribute to indicate if 11ac is offloaded to firmware */
7411 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
7412 /* Flag attribute to indicate if driver provides additional channel
Roshan Pius3a1667e2018-07-03 15:17:14 -07007413 * capability as part of scan operation
7414 */
Paul Stewart092955c2017-02-06 09:13:09 -08007415 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
7416 /* Flag attribute to indicate interface status is UP */
7417 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
7418 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
Roshan Pius3a1667e2018-07-03 15:17:14 -07007419 * values.
7420 */
Paul Stewart092955c2017-02-06 09:13:09 -08007421 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
7422 /* Channel width (u8). It takes one of enum nl80211_chan_width values.
7423 * This is the upper bound of channel width. ACS logic should try to get
7424 * a channel with the specified width and if not found, look for lower
7425 * values.
7426 */
7427 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
7428 /* This (u8) will hold values of one of enum nl80211_bands */
7429 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
7430 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
Roshan Pius3a1667e2018-07-03 15:17:14 -07007431 * values
7432 */
Paul Stewart092955c2017-02-06 09:13:09 -08007433 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
7434 /* Array of (u32) supported frequency list among which ACS should choose
7435 * best frequency.
7436 */
7437 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
7438 /* Preferred channel list by the driver which will have array of nested
7439 * values as per enum qca_wlan_vendor_attr_pcl attribute.
7440 */
7441 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
7442 /* Array of nested attribute for each channel. It takes attr as defined
7443 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
7444 */
7445 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007446 /* External ACS policy such as PCL mandatory, PCL preferred, etc.
7447 * It uses values defined in enum
7448 * qca_wlan_vendor_attr_external_acs_policy.
7449 */
7450 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007451 /* Reference RF Operating Parameter (RROP) availability information
7452 * (u16). It uses values defined in enum
7453 * qca_wlan_vendor_attr_rropavail_info.
7454 */
7455 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
Sunil Ravia04bd252022-05-02 22:54:18 -07007456 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger
7457 * for External ACS
7458 */
7459 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
Paul Stewart092955c2017-02-06 09:13:09 -08007460
7461 /* keep last */
7462 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
7463 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
7464 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
7465};
7466
7467/**
Hai Shalomc3565922019-10-28 11:58:20 -07007468 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
Paul Stewart092955c2017-02-06 09:13:09 -08007469 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7470 * in priority order as decided after ACS operation in userspace.
Hai Shalomc3565922019-10-28 11:58:20 -07007471 *
7472 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7473 * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7474 *
7475 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7476 * Array of nested values for each channel with following attributes:
7477 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7478 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7479 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7480 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7481 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7482 * Note: If both the driver and user-space application supports the 6 GHz band,
7483 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7484 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7485 * To maintain backward compatibility,
7486 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7487 * is still used if either of the driver or user space application doesn't
7488 * support the 6 GHz band.
7489 *
7490 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7491 * Primary channel number
7492 * Note: If both the driver and user-space application supports the 6 GHz band,
7493 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7494 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7495 * To maintain backward compatibility,
7496 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7497 * is still used if either of the driver or user space application doesn't
7498 * support the 6 GHz band.
7499 *
7500 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7501 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7502 * Note: If both the driver and user-space application supports the 6 GHz band,
7503 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7504 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7505 * To maintain backward compatibility,
7506 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7507 * is still used if either of the driver or user space application
7508 * doesn't support the 6 GHz band.
7509 *
7510 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7511 * VHT seg0 channel number
7512 * Note: If both the driver and user-space application supports the 6 GHz band,
7513 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7514 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7515 * To maintain backward compatibility,
7516 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7517 * is still used if either of the driver or user space application
7518 * doesn't support the 6 GHz band.
7519 *
7520 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7521 * VHT seg1 channel number
7522 * Note: If both the driver and user-space application supports the 6 GHz band,
7523 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7524 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7525 * To maintain backward compatibility,
7526 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7527 * is still used if either of the driver or user space application
7528 * doesn't support the 6 GHz band.
7529 *
7530 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7531 * Takes one of enum nl80211_chan_width values.
7532 *
7533 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7534 * Array of nested values for each channel with following attributes:
7535 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7536 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7537 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7538 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7539 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7540 * Note: If user-space application has no support of the 6 GHz band, this
7541 * attribute is optional.
7542 *
7543 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7544 * Primary channel frequency in MHz
7545 * Note: If user-space application has no support of the 6 GHz band, this
7546 * attribute is optional.
7547 *
7548 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7549 * Secondary channel frequency in MHz used for HT 40 MHz channels.
7550 * Note: If user-space application has no support of the 6 GHz band, this
7551 * attribute is optional.
7552 *
7553 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7554 * VHT seg0 channel frequency in MHz
7555 * Note: If user-space application has no support of the 6GHz band, this
7556 * attribute is optional.
7557 *
7558 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7559 * VHT seg1 channel frequency in MHz
7560 * Note: If user-space application has no support of the 6 GHz band, this
7561 * attribute is optional.
Sunil Ravi77d572f2023-01-17 23:58:31 +00007562 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7563 * Puncture Bitmap for selected primary channel. Optional if no support
7564 * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7565 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7566 * element.
Sunil Ravi7f769292024-07-23 22:21:32 +00007567 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8).
7568 * Used with command to configure external ACS operation for a specific link
7569 * affiliated to an AP MLD.
Paul Stewart092955c2017-02-06 09:13:09 -08007570 */
7571enum qca_wlan_vendor_attr_external_acs_channels {
7572 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7573
7574 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7575 */
7576 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7577
7578 /* Array of nested values for each channel with following attributes:
7579 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7580 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7581 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7582 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7583 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7584 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7585 */
7586 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7587 /* This (u8) will hold values of one of enum nl80211_bands */
7588 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7589 /* Primary channel (u8) */
7590 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7591 /* Secondary channel (u8) used for HT 40 MHz channels */
7592 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7593 /* VHT seg0 channel (u8) */
7594 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7595 /* VHT seg1 channel (u8) */
7596 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7597 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7598 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7599
Hai Shalomc3565922019-10-28 11:58:20 -07007600 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7601 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7602 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7603 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7604 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
Sunil Ravi77d572f2023-01-17 23:58:31 +00007605 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
Sunil Ravi7f769292024-07-23 22:21:32 +00007606 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15,
Hai Shalomc3565922019-10-28 11:58:20 -07007607
Paul Stewart092955c2017-02-06 09:13:09 -08007608 /* keep last */
7609 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7610 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7611 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7612};
7613
7614enum qca_chip_power_save_failure_reason {
7615 /* Indicates if the reason for the failure is due to a protocol
7616 * layer/module.
7617 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007618 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
Paul Stewart092955c2017-02-06 09:13:09 -08007619 /* Indicates if the reason for the failure is due to a hardware issue.
7620 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007621 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007622};
7623
7624/**
7625 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
7626 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
7627 * information leading to the power save failure.
7628 */
7629enum qca_attr_chip_power_save_failure {
Roshan Pius3a1667e2018-07-03 15:17:14 -07007630 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
7631 /* Reason to cause the power save failure.
Paul Stewart092955c2017-02-06 09:13:09 -08007632 * These reasons are represented by
7633 * enum qca_chip_power_save_failure_reason.
7634 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07007635 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007636
Roshan Pius3a1667e2018-07-03 15:17:14 -07007637 /* keep last */
7638 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
7639 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
7640 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
7641};
7642
7643/**
7644 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
7645 * data types for which the stats have to get collected.
7646 */
7647enum qca_wlan_vendor_nud_stats_data_pkt_flags {
7648 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
7649 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
7650 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
7651 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
7652 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
7653 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
7654 * to represent the stats of respective data type.
7655 */
7656 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
7657 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
7658 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
7659};
7660
7661enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
7662 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
7663 /* Represents the data packet type to be monitored (u32).
7664 * Host driver tracks the stats corresponding to each data frame
7665 * represented by these flags.
7666 * These data packets are represented by
7667 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
7668 */
7669 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
7670 /* Name corresponding to the DNS frame for which the respective DNS
7671 * stats have to get monitored (string). Max string length 255.
7672 */
7673 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
7674 /* source port on which the respective proto stats have to get
7675 * collected (u32).
7676 */
7677 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
7678 /* destination port on which the respective proto stats have to get
7679 * collected (u32).
7680 */
7681 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
7682 /* IPv4 address for which the destined data packets have to be
7683 * monitored. (in network byte order), u32.
7684 */
7685 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
7686 /* IPv6 address for which the destined data packets have to be
7687 * monitored. (in network byte order), 16 bytes array.
7688 */
7689 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
7690
7691 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
7692 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
7693 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
Paul Stewart092955c2017-02-06 09:13:09 -08007694};
7695
7696/**
7697 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
7698 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
7699 * information to start/stop the NUD statistics collection.
7700 */
7701enum qca_attr_nud_stats_set {
7702 QCA_ATTR_NUD_STATS_SET_INVALID = 0,
7703
7704 /* Flag to start/stop the NUD statistics collection.
7705 * Start - If included, Stop - If not included
7706 */
7707 QCA_ATTR_NUD_STATS_SET_START = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007708 /* IPv4 address of the default gateway (in network byte order), u32 */
Paul Stewart092955c2017-02-06 09:13:09 -08007709 QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007710 /* Represents the list of data packet types to be monitored.
7711 * Host driver tracks the stats corresponding to each data frame
7712 * represented by these flags.
7713 * These data packets are represented by
7714 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7715 */
7716 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
Paul Stewart092955c2017-02-06 09:13:09 -08007717
7718 /* keep last */
7719 QCA_ATTR_NUD_STATS_SET_LAST,
7720 QCA_ATTR_NUD_STATS_SET_MAX =
7721 QCA_ATTR_NUD_STATS_SET_LAST - 1,
7722};
7723
Roshan Pius3a1667e2018-07-03 15:17:14 -07007724enum qca_attr_nud_data_stats {
7725 QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7726 /* Data packet type for which the stats are collected (u32).
7727 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7728 */
7729 QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7730 /* Name corresponding to the DNS frame for which the respective DNS
7731 * stats are monitored (string). Max string length 255.
7732 */
7733 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7734 /* source port on which the respective proto stats are collected (u32).
7735 */
7736 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7737 /* destination port on which the respective proto stats are collected
7738 * (u32).
7739 */
7740 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7741 /* IPv4 address for which the destined data packets have to be
7742 * monitored. (in network byte order), u32.
7743 */
7744 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7745 /* IPv6 address for which the destined data packets have to be
7746 * monitored. (in network byte order), 16 bytes array.
7747 */
7748 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7749 /* Data packet Request count received from netdev (u32). */
7750 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7751 /* Data packet Request count sent to lower MAC from upper MAC (u32). */
7752 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7753 /* Data packet Request count received by lower MAC from upper MAC
7754 * (u32)
7755 */
7756 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7757 /* Data packet Request count successfully transmitted by the device
7758 * (u32)
7759 */
7760 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7761 /* Data packet Response count received by lower MAC (u32) */
7762 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7763 /* Data packet Response count received by upper MAC (u32) */
7764 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7765 /* Data packet Response count delivered to netdev (u32) */
7766 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7767 /* Data Packet Response count that are dropped out of order (u32) */
7768 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7769
7770 /* keep last */
7771 QCA_ATTR_NUD_DATA_STATS_LAST,
7772 QCA_ATTR_NUD_DATA_STATS_MAX =
7773 QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7774};
7775
Paul Stewart092955c2017-02-06 09:13:09 -08007776/**
7777 * qca_attr_nud_stats_get: Attributes to vendor subcmd
7778 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7779 * NUD statistics collected when queried.
7780 */
7781enum qca_attr_nud_stats_get {
7782 QCA_ATTR_NUD_STATS_GET_INVALID = 0,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007783 /* ARP Request count from netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007784 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007785 /* ARP Request count sent to lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007786 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007787 /* ARP Request count received by lower MAC from upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007788 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007789 /* ARP Request count successfully transmitted by the device (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007790 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007791 /* ARP Response count received by lower MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007792 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007793 /* ARP Response count received by upper MAC (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007794 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007795 /* ARP Response count delivered to netdev (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007796 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007797 /* ARP Response count dropped due to out of order reception (u32) */
Paul Stewart092955c2017-02-06 09:13:09 -08007798 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
7799 /* Flag indicating if the station's link to the AP is active.
7800 * Active Link - If included, Inactive link - If not included
7801 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007802 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
Paul Stewart092955c2017-02-06 09:13:09 -08007803 /* Flag indicating if there is any duplicate address detected (DAD).
7804 * Yes - If detected, No - If not detected.
7805 */
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007806 QCA_ATTR_NUD_STATS_IS_DAD = 10,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007807 /* List of Data packet types for which the stats are requested.
7808 * This list does not carry ARP stats as they are done by the
7809 * above attributes. Represented by enum qca_attr_nud_data_stats.
7810 */
7811 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
Paul Stewart092955c2017-02-06 09:13:09 -08007812
7813 /* keep last */
7814 QCA_ATTR_NUD_STATS_GET_LAST,
7815 QCA_ATTR_NUD_STATS_GET_MAX =
7816 QCA_ATTR_NUD_STATS_GET_LAST - 1,
7817};
7818
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007819enum qca_wlan_btm_candidate_status {
7820 QCA_STATUS_ACCEPT = 0,
7821 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
7822 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
7823 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
7824 QCA_STATUS_REJECT_LOW_RSSI = 4,
7825 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
7826 QCA_STATUS_REJECT_UNKNOWN = 6,
7827};
7828
7829enum qca_wlan_vendor_attr_btm_candidate_info {
7830 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
7831
7832 /* 6-byte MAC address representing the BSSID of transition candidate */
7833 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
7834 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
7835 * returned by the driver. It says whether the BSSID provided in
7836 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
7837 * the driver, if not it specifies the reason for rejection.
7838 * Note that the user-space can overwrite the transition reject reason
7839 * codes provided by driver based on more information.
7840 */
7841 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
7842
7843 /* keep last */
7844 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
7845 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
7846 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
7847};
7848
7849enum qca_attr_trace_level {
7850 QCA_ATTR_TRACE_LEVEL_INVALID = 0,
7851 /*
7852 * Nested array of the following attributes:
7853 * QCA_ATTR_TRACE_LEVEL_MODULE,
7854 * QCA_ATTR_TRACE_LEVEL_MASK.
7855 */
7856 QCA_ATTR_TRACE_LEVEL_PARAM = 1,
7857 /*
7858 * Specific QCA host driver module. Please refer to the QCA host
7859 * driver implementation to get the specific module ID.
7860 */
7861 QCA_ATTR_TRACE_LEVEL_MODULE = 2,
7862 /* Different trace level masks represented in the QCA host driver. */
7863 QCA_ATTR_TRACE_LEVEL_MASK = 3,
7864
7865 /* keep last */
7866 QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
7867 QCA_ATTR_TRACE_LEVEL_MAX =
7868 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
7869};
7870
7871/**
7872 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
7873 */
7874enum qca_wlan_vendor_attr_get_he_capabilities {
7875 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
7876 /* Whether HE capabilities is supported
Roshan Pius3a1667e2018-07-03 15:17:14 -07007877 * (u8 attribute: 0 = not supported, 1 = supported)
7878 */
Dmitry Shmidtebd93af2017-02-21 13:40:44 -08007879 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
7880 /* HE PHY capabilities, array of 3 u32 values */
7881 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
7882 /* HE MAC capabilities (u32 attribute) */
7883 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
7884 /* HE MCS map (u32 attribute) */
7885 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
7886 /* Number of SS (u32 attribute) */
7887 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
7888 /* RU count (u32 attribute) */
7889 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
7890 /* PPE threshold data, array of 8 u32 values */
7891 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
7892
7893 /* keep last */
7894 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
7895 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
7896 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
7897};
7898
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07007899/**
7900 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7901 */
7902enum qca_wlan_vendor_attr_spectral_scan {
7903 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7904 /* Number of times the chip enters spectral scan mode before
7905 * deactivating spectral scans. When set to 0, chip will enter spectral
7906 * scan mode continuously. u32 attribute.
7907 */
7908 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7909 /* Spectral scan period. Period increment resolution is 256*Tclk,
7910 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7911 */
7912 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7913 /* Spectral scan priority. u32 attribute. */
7914 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7915 /* Number of FFT data points to compute. u32 attribute. */
7916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7917 /* Enable targeted gain change before starting the spectral scan FFT.
7918 * u32 attribute.
7919 */
7920 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7921 /* Restart a queued spectral scan. u32 attribute. */
7922 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7923 /* Noise floor reference number for the calculation of bin power.
7924 * u32 attribute.
7925 */
7926 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7927 /* Disallow spectral scan triggers after TX/RX packets by setting
7928 * this delay value to roughly SIFS time period or greater.
7929 * u32 attribute.
7930 */
7931 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7932 /* Number of strong bins (inclusive) per sub-channel, below
7933 * which a signal is declared a narrow band tone. u32 attribute.
7934 */
7935 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7936 /* Specify the threshold over which a bin is declared strong (for
7937 * scan bandwidth analysis). u32 attribute.
7938 */
7939 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7940 /* Spectral scan report mode. u32 attribute. */
7941 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7942 /* RSSI report mode, if the ADC RSSI is below
7943 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7944 * then FFTs will not trigger, but timestamps and summaries get
7945 * reported. u32 attribute.
7946 */
7947 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7948 /* ADC RSSI must be greater than or equal to this threshold (signed dB)
7949 * to ensure spectral scan reporting with normal error code.
7950 * u32 attribute.
7951 */
7952 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7953 /* Format of frequency bin magnitude for spectral scan triggered FFTs:
7954 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7955 * u32 attribute.
7956 */
7957 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7958 /* Format of FFT report to software for spectral scan triggered FFTs.
7959 * 0: No FFT report (only spectral scan summary report)
7960 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7961 * report
7962 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7963 * bins (in-band) per FFT + spectral scan summary report
7964 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7965 * bins (all) per FFT + spectral scan summary report
7966 * u32 attribute.
7967 */
7968 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7969 /* Number of LSBs to shift out in order to scale the FFT bins.
7970 * u32 attribute.
7971 */
7972 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7973 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7974 * in dBm power. u32 attribute.
7975 */
7976 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7977 /* Per chain enable mask to select input ADC for search FFT.
7978 * u32 attribute.
7979 */
7980 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7981 /* An unsigned 64-bit integer provided by host driver to identify the
7982 * spectral scan request. This attribute is included in the scan
7983 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7984 * and used as an attribute in
7985 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7986 * specific scan to be stopped.
7987 */
7988 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
Roshan Pius3a1667e2018-07-03 15:17:14 -07007989 /* Skip interval for FFT reports. u32 attribute */
7990 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7991 /* Set to report only one set of FFT results.
7992 * u32 attribute.
7993 */
7994 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7995 /* Debug level for spectral module in driver.
7996 * 0 : Verbosity level 0
7997 * 1 : Verbosity level 1
7998 * 2 : Verbosity level 2
7999 * 3 : Matched filterID display
8000 * 4 : One time dump of FFT report
8001 * u32 attribute.
8002 */
8003 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8004 /* Type of spectral scan request. u32 attribute.
8005 * It uses values defined in enum
8006 * qca_wlan_vendor_attr_spectral_scan_request_type.
8007 */
8008 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
Hai Shalom81f62d82019-07-22 12:10:00 -07008009 /* This specifies the frequency span over which spectral
8010 * scan would be carried out. Its value depends on the
8011 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8012 * the relation is as follows.
8013 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8014 * Not applicable. Spectral scan would happen in the
8015 * operating span.
8016 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8017 * Center frequency (in MHz) of the span of interest or
8018 * for convenience, center frequency (in MHz) of any channel
Hai Shalomb755a2a2020-04-23 21:49:02 -07008019 * in the span of interest. For 80+80 MHz agile spectral scan
8020 * request it represents center frequency (in MHz) of the primary
8021 * 80 MHz span or for convenience, center frequency (in MHz) of any
8022 * channel in the primary 80 MHz span. If agile spectral scan is
8023 * initiated without setting a valid frequency it returns the
8024 * error code
Hai Shalom81f62d82019-07-22 12:10:00 -07008025 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8026 * u32 attribute.
8027 */
8028 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8029 /* Spectral scan mode. u32 attribute.
8030 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8031 * If this attribute is not present, it is assumed to be
8032 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8033 */
8034 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8035 /* Spectral scan error code. u32 attribute.
8036 * It uses values defined in enum
8037 * qca_wlan_vendor_spectral_scan_error_code.
8038 * This attribute is included only in failure scenarios.
8039 */
8040 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8041 /* 8-bit unsigned value to enable/disable debug of the
8042 * Spectral DMA ring.
8043 * 1-enable, 0-disable
8044 */
8045 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8046 /* 8-bit unsigned value to enable/disable debug of the
8047 * Spectral DMA buffers.
8048 * 1-enable, 0-disable
8049 */
8050 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008051 /* This specifies the frequency span over which spectral scan would be
8052 * carried out. Its value depends on the value of
8053 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8054 * follows.
8055 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8056 * Not applicable. Spectral scan would happen in the operating span.
8057 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8058 * This attribute is applicable only for agile spectral scan
8059 * requests in 80+80 MHz mode. It represents center frequency (in
8060 * MHz) of the secondary 80 MHz span or for convenience, center
8061 * frequency (in MHz) of any channel in the secondary 80 MHz span.
8062 * u32 attribute.
8063 */
8064 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008065 /* This attribute specifies the bandwidth to be used for spectral scan
8066 * operation. This is an u8 attribute and uses the values in enum
8067 * nl80211_chan_width. This is an optional attribute.
8068 * If this attribute is not populated, the driver should configure the
8069 * spectral scan bandwidth to the maximum value supported by the target
8070 * for the current operating bandwidth.
8071 */
8072 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008073 /* Spectral FFT recapture flag attribute, to enable FFT recapture.
8074 * Recapture can only be enabled for scan period greater than 52 us.
8075 * If this attribute is enabled, re-triggers will be enabled when AGC
8076 * gain changes.
8077 */
8078 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
Sunil Ravi036cec52023-03-29 11:35:17 -07008079 /* Attribute used for padding for 64-bit alignment */
8080 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
Sunil Ravi99c035e2024-07-12 01:42:03 +00008081 /* Spectral data transport mode. u32 attribute. It uses values
8082 * defined in enum qca_wlan_vendor_spectral_data_transport_mode.
8083 * This is an optional attribute. If this attribute is not populated,
8084 * the driver should configure the default transport mode to netlink.
8085 */
8086 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33,
8087 /* Spectral scan completion timeout. u32 attribute. This
8088 * attribute is used to configure a timeout value (in us). The
8089 * timeout value would be from the beginning of a spectral
8090 * scan. This is an optional attribute. If this attribute is
8091 * not populated, the driver would internally derive the
8092 * timeout value.
8093 */
8094 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008095
8096 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8097 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8098 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8099};
8100
Roshan Pius3a1667e2018-07-03 15:17:14 -07008101/**
8102 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8103 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8104 */
8105enum qca_wlan_vendor_attr_spectral_diag_stats {
8106 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8107 /* Number of spectral TLV signature mismatches.
8108 * u64 attribute.
8109 */
8110 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8111 /* Number of spectral phyerror events with insufficient length when
8112 * parsing for secondary 80 search FFT report. u64 attribute.
8113 */
8114 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8115 /* Number of spectral phyerror events without secondary 80
8116 * search FFT report. u64 attribute.
8117 */
8118 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8119 /* Number of spectral phyerror events with vht operation segment 1 id
8120 * mismatches in search fft report. u64 attribute.
8121 */
8122 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8123 /* Number of spectral phyerror events with vht operation segment 2 id
8124 * mismatches in search fft report. u64 attribute.
8125 */
8126 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -07008127 /* Attribute used for padding for 64-bit alignment */
8128 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008129
8130 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8131 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8132 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8133};
8134
8135/**
8136 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8137 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8138 */
8139enum qca_wlan_vendor_attr_spectral_cap {
8140 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8141 /* Flag attribute to indicate phydiag capability */
8142 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8143 /* Flag attribute to indicate radar detection capability */
8144 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8145 /* Flag attribute to indicate spectral capability */
8146 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8147 /* Flag attribute to indicate advanced spectral capability */
8148 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8149 /* Spectral hardware generation. u32 attribute.
8150 * It uses values defined in enum
8151 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8152 */
8153 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
Hai Shalom74f70d42019-02-11 14:42:39 -08008154 /* Spectral bin scaling formula ID. u16 attribute.
8155 * It uses values defined in enum
8156 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8157 */
8158 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8159 /* Spectral bin scaling param - low level offset.
8160 * s16 attribute.
8161 */
8162 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8163 /* Spectral bin scaling param - high level offset.
8164 * s16 attribute.
8165 */
8166 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8167 /* Spectral bin scaling param - RSSI threshold.
8168 * s16 attribute.
8169 */
8170 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8171 /* Spectral bin scaling param - default AGC max gain.
8172 * u8 attribute.
8173 */
8174 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
Hai Shalomc3565922019-10-28 11:58:20 -07008175 /* Flag attribute to indicate agile spectral scan capability
8176 * for 20/40/80 MHz modes.
8177 */
Hai Shalom81f62d82019-07-22 12:10:00 -07008178 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
Hai Shalomc3565922019-10-28 11:58:20 -07008179 /* Flag attribute to indicate agile spectral scan capability
8180 * for 160 MHz mode.
8181 */
8182 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8183 /* Flag attribute to indicate agile spectral scan capability
8184 * for 80+80 MHz mode.
8185 */
8186 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
Hai Shalomb755a2a2020-04-23 21:49:02 -07008187 /* Number of spectral detectors used for scan in 20 MHz.
8188 * u32 attribute.
8189 */
8190 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8191 /* Number of spectral detectors used for scan in 40 MHz.
8192 * u32 attribute.
8193 */
8194 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8195 /* Number of spectral detectors used for scan in 80 MHz.
8196 * u32 attribute.
8197 */
8198 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8199 /* Number of spectral detectors used for scan in 160 MHz.
8200 * u32 attribute.
8201 */
8202 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8203 /* Number of spectral detectors used for scan in 80+80 MHz.
8204 * u32 attribute.
8205 */
8206 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008207 /* Flag attribute to indicate agile spectral scan capability
8208 * for 320 MHz mode.
8209 */
8210 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8211 /* Number of spectral detectors used for scan in 320 MHz.
8212 * u32 attribute.
8213 */
8214 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008215
8216 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8217 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8218 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8219};
8220
8221/**
8222 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8223 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8224 */
8225enum qca_wlan_vendor_attr_spectral_scan_status {
8226 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8227 /* Flag attribute to indicate whether spectral scan is enabled */
8228 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8229 /* Flag attribute to indicate whether spectral scan is in progress*/
8230 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
Hai Shalom81f62d82019-07-22 12:10:00 -07008231 /* Spectral scan mode. u32 attribute.
8232 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8233 * If this attribute is not present, normal mode
8234 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8235 * requested.
8236 */
8237 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008238
8239 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8240 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8241 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8242};
8243
8244/**
8245 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8246 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8247 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8248 * spectral scan request types.
8249 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8250 * set the spectral parameters and start scan.
8251 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8252 * only set the spectral parameters.
8253 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8254 * only start the spectral scan.
8255 */
8256enum qca_wlan_vendor_attr_spectral_scan_request_type {
8257 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8258 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8259 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8260};
8261
8262/**
Hai Shalom81f62d82019-07-22 12:10:00 -07008263 * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8264 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8265 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8266 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8267 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8268 * spectral scan modes.
8269 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8270 * spectral scan in the current operating span.
8271 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8272 * spectral scan in the configured agile span.
8273 */
8274enum qca_wlan_vendor_spectral_scan_mode {
8275 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8276 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8277};
8278
8279/**
8280 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8281 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8282 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8283 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8284 * of a parameter is not supported.
8285 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8286 * mode is not supported.
8287 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8288 * has invalid value.
8289 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8290 * is not initialized.
8291 */
8292enum qca_wlan_vendor_spectral_scan_error_code {
8293 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8294 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8295 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8296 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8297};
8298
8299/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008300 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8301 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8302 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8303 * spectral hardware generation.
8304 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8305 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8306 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8307 */
8308enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8309 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8310 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8311 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8312};
8313
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008314enum qca_wlan_vendor_tos {
8315 QCA_WLAN_VENDOR_TOS_BK = 0,
8316 QCA_WLAN_VENDOR_TOS_BE = 1,
8317 QCA_WLAN_VENDOR_TOS_VI = 2,
8318 QCA_WLAN_VENDOR_TOS_VO = 3,
8319};
8320
8321/**
8322 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
8323 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
8324 */
8325enum qca_wlan_vendor_attr_active_tos {
8326 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
8327 /* Type Of Service - Represented by qca_wlan_vendor_tos */
8328 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
8329 /* Flag attribute representing the start (attribute included) or stop
8330 * (attribute not included) of the respective TOS.
8331 */
8332 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
8333};
8334
8335enum qca_wlan_vendor_hang_reason {
8336 /* Unspecified reason */
8337 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
8338 /* No Map for the MAC entry for the received frame */
8339 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
8340 /* Peer deletion timeout happened */
8341 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
8342 /* Peer unmap timeout */
8343 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
8344 /* Scan request timed out */
8345 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
8346 /* Consecutive Scan attempt failures */
8347 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
8348 /* Unable to get the message buffer */
8349 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
8350 /* Current command processing is timedout */
8351 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
8352 /* Timeout for an ACK from FW for suspend request */
8353 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
8354 /* Timeout for an ACK from FW for resume request */
8355 QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
8356 /* Transmission timeout for consecutive data frames */
8357 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
8358 /* Timeout for the TX completion status of data frame */
8359 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
8360 /* DXE failure for TX/RX, DXE resource unavailability */
8361 QCA_WLAN_HANG_DXE_FAILURE = 12,
8362 /* WMI pending commands exceed the maximum count */
8363 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
Hai Shalomfdcde762020-04-02 11:19:20 -07008364 /* Timeout for peer STA connection accept command's response from the
8365 * FW in AP mode. This command is triggered when a STA (peer) connects
8366 * to AP (DUT).
8367 */
8368 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
8369 /* Timeout for the AP connection accept command's response from the FW
8370 * in STA mode. This command is triggered when the STA (DUT) connects
8371 * to an AP (peer).
8372 */
8373 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
8374 /* Timeout waiting for the response to the MAC HW mode change command
8375 * sent to FW as a part of MAC mode switch among DBS (Dual Band
8376 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
8377 * Channel Concurrency) mode.
8378 */
8379 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
8380 /* Timeout waiting for the response from FW to configure the MAC HW's
8381 * mode. This operation is to configure the single/two MACs in either
8382 * SCC/MCC/DBS mode.
8383 */
8384 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
8385 /* Timeout waiting for response of VDEV start command from the FW */
8386 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
8387 /* Timeout waiting for response of VDEV restart command from the FW */
8388 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
8389 /* Timeout waiting for response of VDEV stop command from the FW */
8390 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
8391 /* Timeout waiting for response of VDEV delete command from the FW */
8392 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
8393 /* Timeout waiting for response of peer all delete request command to
8394 * the FW on a specific VDEV.
8395 */
8396 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
Hai Shalom60840252021-02-19 19:02:11 -08008397 /* WMI sequence mismatch between WMI command and Tx completion */
8398 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
8399 /* Write to Device HAL register failed */
8400 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
8401 /* No credit left to send the wow_wakeup_from_sleep to firmware */
8402 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
8403 /* Bus failure */
8404 QCA_WLAN_HANG_BUS_FAILURE = 26,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008405 /* tasklet/credit latency found */
8406 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
Sunil Ravi77d572f2023-01-17 23:58:31 +00008407 /* MSDU buffers received in REO error ring, exceeding certain
8408 * threshold
8409 */
8410 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
8411 /* Vdev SM is out of sync and connect req received
8412 * when already connected
8413 */
8414 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
8415 /* Stats request timeout */
8416 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
8417 /* Leak in TX descriptor for a packet */
8418 QCA_WLAN_HANG_TX_DESC_LEAK = 31,
8419 /* Scheduler watchdog timeout */
8420 QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
8421 /* Failed to send self peer deletion cmd to firmware */
8422 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
8423 /* Received del self sta without del bss */
8424 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
8425 /* Recovery needed when sending flush completion to userspace */
8426 QCA_WLAN_HANG_FLUSH_LOGS = 35,
8427 /* Host wakeup because of page fault */
8428 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008429};
8430
8431/**
8432 * enum qca_wlan_vendor_attr_hang - Used by the vendor command
8433 * QCA_NL80211_VENDOR_SUBCMD_HANG.
8434 */
8435enum qca_wlan_vendor_attr_hang {
8436 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
8437 /* Reason for the hang - u32 attribute with a value from enum
8438 * qca_wlan_vendor_hang_reason.
8439 */
8440 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07008441 /* The binary blob data associated with the hang reason specified by
8442 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
8443 * contain the required dump to analyze the reason for the hang.
8444 * NLA_BINARY attribute, the max size is 1024 bytes.
8445 */
8446 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
Dmitry Shmidtd2986c22017-10-23 14:22:09 -07008447
8448 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
8449 QCA_WLAN_VENDOR_ATTR_HANG_MAX =
8450 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
8451};
8452
Roshan Pius3a1667e2018-07-03 15:17:14 -07008453/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08008454 * enum qca_wlan_vendor_flush_pending_policy: Represents values for
8455 * the policy to flush pending frames, configured via
8456 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
8457 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
8458 *
8459 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
8460 * the flush policy configured before. This command basically disables the
8461 * flush config set by the user.
8462 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
8463 * the flush policy to be immediate. All pending packets for the peer/TID are
8464 * flushed when this command/policy is received.
8465 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
8466 * the flush policy to the end of TWT SP. All pending packets for the peer/TID
8467 * are flushed when the end of TWT SP is reached.
8468 */
8469enum qca_wlan_vendor_flush_pending_policy {
8470 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
8471 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
8472 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
8473};
8474
8475/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008476 * enum qca_wlan_vendor_attr_flush_pending - Attributes for
8477 * flushing pending traffic in firmware.
8478 *
8479 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
8480 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
8481 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
8482 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
Hai Shaloma20dcd72022-02-04 13:43:00 -08008483 * flush packets with access category. This is optional. See below.
8484 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
8485 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
8486 * bit to 1 to act upon the TID. This is optional. Either this attribute or
8487 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
8488 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
8489 * it is an error.
8490 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
8491 * packets corresponding to the peer/TID provided. It is a u32 value,
8492 * represented by %enum qca_wlan_vendor_flush_pending_policy. This
8493 * value is honored only when TID mask is provided. This is not honored when AC
8494 * mask is provided.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008495 */
8496enum qca_wlan_vendor_attr_flush_pending {
8497 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
8498 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
8499 QCA_WLAN_VENDOR_ATTR_AC = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008500 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
8501 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008502
8503 /* keep last */
8504 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
8505 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
8506 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
8507};
8508
8509/**
Hai Shalom74f70d42019-02-11 14:42:39 -08008510 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8511 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8512 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8513 * Spectral bin scaling formula ID.
8514 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8515 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8516 * and RSSI threshold based formula.
8517 */
8518enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8519 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8520 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8521};
8522
8523/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07008524 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8525 * RF Operating Parameter (RROP) information is available, and if so, at which
8526 * point in the application-driver interaction sequence it can be retrieved by
8527 * the application from the driver. This point may vary by architecture and
8528 * other factors. This is a u16 value.
8529 */
8530enum qca_wlan_vendor_attr_rropavail_info {
8531 /* RROP information is unavailable. */
8532 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8533 /* RROP information is available and the application can retrieve the
8534 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8535 * event from the driver.
8536 */
8537 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8538 /* RROP information is available only after a vendor specific scan
8539 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8540 * successfully completed. The application can retrieve the information
8541 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8542 * the driver.
8543 */
8544 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8545};
8546
8547/**
8548 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8549 * Representative RF Operating Parameter (RROP) information. It is sent for the
8550 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8551 * intended for use by external Auto Channel Selection applications. It provides
8552 * guidance values for some RF parameters that are used by the system during
8553 * operation. These values could vary by channel, band, radio, and so on.
8554 */
8555enum qca_wlan_vendor_attr_rrop_info {
8556 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8557
8558 /* Representative Tx Power List (RTPL) which has an array of nested
8559 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8560 */
8561 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8562
8563 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8564 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8565 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8566};
8567
8568/**
8569 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8570 * entry instances in the Representative Tx Power List (RTPL). It provides
8571 * simplified power values intended for helping external Auto channel Selection
8572 * applications compare potential Tx power performance between channels, other
8573 * operating conditions remaining identical. These values are not necessarily
8574 * the actual Tx power values that will be used by the system. They are also not
8575 * necessarily the max or average values that will be used. Instead, they are
8576 * relative, summarized keys for algorithmic use computed by the driver or
8577 * underlying firmware considering a number of vendor specific factors.
8578 */
8579enum qca_wlan_vendor_attr_rtplinst {
8580 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8581
Hai Shalomfdcde762020-04-02 11:19:20 -07008582 /* Primary channel number (u8).
8583 * Note: If both the driver and user space application support the
8584 * 6 GHz band, this attribute is deprecated and
8585 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8586 * maintain backward compatibility,
8587 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8588 * driver or user space application or both do not support the 6 GHz
8589 * band.
8590 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07008591 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8592 /* Representative Tx power in dBm (s32) with emphasis on throughput. */
8593 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8594 /* Representative Tx power in dBm (s32) with emphasis on range. */
8595 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
Hai Shalomfdcde762020-04-02 11:19:20 -07008596 /* Primary channel center frequency (u32) in MHz */
8597 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008598
8599 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8600 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8601 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8602};
8603
8604/**
8605 * enum qca_wlan_vendor_attr_config_latency_level - Level for
8606 * wlan latency module.
8607 *
8608 * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8609 * power saving which would causing data exchange out of service, this
8610 * would be a big impact on latency. For latency sensitive applications over
8611 * Wi-Fi are intolerant to such operations and thus would configure them
8612 * to meet their respective needs. It is well understood by such applications
8613 * that altering the default behavior would degrade the Wi-Fi functionality
8614 * w.r.t the above pointed WLAN operations.
8615 *
8616 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8617 * Default WLAN operation level which throughput orientated.
Hai Shaloma20dcd72022-02-04 13:43:00 -08008618 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8619 * Use XR level to benefit XR (extended reality) application to achieve
8620 * latency and power by via constraint scan/roaming/adaptive PS.
Roshan Pius3a1667e2018-07-03 15:17:14 -07008621 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
Sunil Ravia04bd252022-05-02 22:54:18 -07008622 * Use low latency level to benefit application like concurrent
Roshan Pius3a1667e2018-07-03 15:17:14 -07008623 * downloading or video streaming via constraint scan/adaptive PS.
8624 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8625 * Use ultra low latency level to benefit for gaming/voice
8626 * application via constraint scan/roaming/adaptive PS.
8627 */
8628enum qca_wlan_vendor_attr_config_latency_level {
8629 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8630 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -08008631 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8632 /* legacy name */
8633 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8634 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008635 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8636 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8637
8638 /* keep last */
8639 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8640 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8641 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8642};
8643
8644/**
8645 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
8646 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8647 */
8648enum qca_wlan_vendor_attr_mac {
8649 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8650
8651 /* MAC mode info list which has an array of nested values as
8652 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
8653 */
8654 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8655
8656 /* keep last */
8657 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8658 QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8659 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8660};
8661
8662/**
8663 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8664 * Wi-Fi netdev interface on a respective MAC.
8665 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8666 */
8667enum qca_wlan_vendor_attr_mac_iface_info {
8668 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8669 /* Wi-Fi netdev's interface index (u32) */
8670 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8671 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
8672 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8673
8674 /* keep last */
8675 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8676 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8677 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8678};
8679
8680/**
8681 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8682 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8683 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8684 */
8685enum qca_wlan_vendor_attr_mac_info {
8686 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8687 /* Hardware MAC ID associated for the MAC (u32) */
8688 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8689 /* Band supported by the MAC at a given point.
8690 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
8691 * nl80211_band.
8692 */
8693 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8694 /* Refers to list of WLAN netdev interfaces associated with this MAC.
8695 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
8696 */
8697 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8698
8699 /* keep last */
8700 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8701 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8702 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8703};
8704
8705/**
8706 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
8707 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
8708 */
8709enum qca_wlan_vendor_attr_get_logger_features {
8710 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
8711 /* Unsigned 32-bit enum value of wifi_logger_supported_features */
8712 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
8713 /* keep last */
8714 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
8715 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
8716 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
8717};
8718
8719/**
8720 * enum wifi_logger_supported_features - Values for supported logger features
8721 */
8722enum wifi_logger_supported_features {
8723 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
8724 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
8725 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8726 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8727 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8728 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8729 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8730 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8731 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8732};
8733
8734/**
8735 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8736 * capabilities features
8737 */
8738enum qca_wlan_tdls_caps_features_supported {
8739 WIFI_TDLS_SUPPORT = (1 << (0)),
8740 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008741 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
8742
8743 /* Indicates if the TDLS session can be formed with the peer using
8744 * higher bandwidth than the bandwidth of the AP path.
8745 */
8746 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
Roshan Pius3a1667e2018-07-03 15:17:14 -07008747};
8748
8749/**
8750 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8751 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8752 */
8753enum qca_wlan_vendor_attr_tdls_get_capabilities {
8754 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8755 /* Indicates the max concurrent sessions */
8756 /* Unsigned 32-bit value */
8757 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8758 /* Indicates the support for features */
8759 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8760 */
8761 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8762
8763 /* keep last */
8764 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8765 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8766 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8767};
8768
8769/**
8770 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8771 * command used as value for the attribute
8772 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8773 */
8774enum qca_wlan_offloaded_packets_sending_control {
8775 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8776 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8777 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8778};
8779
8780/**
8781 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8782 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8783 */
8784enum qca_wlan_vendor_attr_offloaded_packets {
8785 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8786 /* Takes valid value from the enum
8787 * qca_wlan_offloaded_packets_sending_control
8788 * Unsigned 32-bit value
8789 */
8790 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
8791 /* Unsigned 32-bit value */
8792 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
8793 /* array of u8 len: Max packet size */
8794 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
8795 /* 6-byte MAC address used to represent source MAC address */
8796 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
8797 /* 6-byte MAC address used to represent destination MAC address */
8798 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
8799 /* Unsigned 32-bit value, in milli seconds */
8800 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
Hai Shalom021b0b52019-04-10 11:17:58 -07008801 /* This optional unsigned 16-bit attribute is used for specifying
8802 * ethernet protocol type. If not specified ethertype defaults to IPv4.
8803 */
8804 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008805
8806 /* keep last */
8807 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
8808 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
8809 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
8810};
8811
8812/**
8813 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
8814 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
8815 */
8816enum qca_wlan_rssi_monitoring_control {
8817 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
8818 QCA_WLAN_RSSI_MONITORING_START,
8819 QCA_WLAN_RSSI_MONITORING_STOP,
8820};
8821
8822/**
8823 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
8824 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
8825 */
8826enum qca_wlan_vendor_attr_rssi_monitoring {
8827 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
8828 /* Takes valid value from the enum
8829 * qca_wlan_rssi_monitoring_control
8830 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
8831 */
8832 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
8833 /* Unsigned 32-bit value */
8834 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
8835 /* Signed 8-bit value in dBm */
8836 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
8837 /* Signed 8-bit value in dBm */
8838 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
8839 /* attributes to be used/received in callback */
8840 /* 6-byte MAC address used to represent current BSSID MAC address */
8841 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
8842 /* Signed 8-bit value indicating the current RSSI */
8843 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
8844 /* keep last */
8845 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
8846 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
8847 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
8848};
8849
8850/**
8851 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
8852 * QCA_NL80211_VENDOR_SUBCMD_NDP.
8853 */
8854enum qca_wlan_vendor_attr_ndp_params {
8855 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
8856 /* Unsigned 32-bit value
8857 * enum of sub commands values in qca_wlan_ndp_sub_cmd
8858 */
8859 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
8860 /* Unsigned 16-bit value */
8861 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
8862 /* NL attributes for data used NDP SUB cmds */
8863 /* Unsigned 32-bit value indicating a service info */
8864 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
8865 /* Unsigned 32-bit value; channel frequency in MHz */
8866 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
8867 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */
8868 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
8869 /* Interface name on which NDP is being created */
8870 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
8871 /* Unsigned 32-bit value for security */
8872 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
8873 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
8874 /* Unsigned 32-bit value for QoS */
8875 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
8876 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
8877 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
8878 /* Unsigned 32-bit value for NDP instance Id */
8879 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
8880 /* Array of instance Ids */
8881 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
8882 /* Unsigned 32-bit value for initiator/responder NDP response code
8883 * accept/reject
8884 */
8885 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
8886 /* NDI MAC address. An array of 6 Unsigned int8 */
8887 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
8888 /* Unsigned 32-bit value errors types returned by driver
8889 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8890 * NanStatusType includes these values.
8891 */
8892 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
8893 /* Unsigned 32-bit value error values returned by driver
8894 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
8895 * NanInternalStatusType includes these values.
8896 */
8897 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
8898 /* Unsigned 32-bit value for Channel setup configuration
8899 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8900 * NanDataPathChannelCfg includes these values.
8901 */
8902 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
8903 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */
8904 QCA_WLAN_VENDOR_ATTR_NDP_CSID,
8905 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
8906 QCA_WLAN_VENDOR_ATTR_NDP_PMK,
8907 /* Security Context Identifier that contains the PMKID
8908 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
8909 */
8910 QCA_WLAN_VENDOR_ATTR_NDP_SCID,
8911 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
8912 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
8913 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
8914 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
8915 /* Unsigned 32-bit bitmap indicating schedule update
8916 * BIT_0: NSS Update
8917 * BIT_1: Channel list update
8918 */
8919 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
8920 /* Unsigned 32-bit value for NSS */
8921 QCA_WLAN_VENDOR_ATTR_NDP_NSS,
8922 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */
8923 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
8924 /* Unsigned 32-bit value for CHANNEL BANDWIDTH
8925 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
8926 */
8927 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
8928 /* Array of channel/band width */
8929 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
8930 /* IPv6 address used by NDP (in network byte order), 16 bytes array.
8931 * This attribute is used and optional for ndp request, ndp response,
8932 * ndp indication, and ndp confirm.
8933 */
8934 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
8935 /* Unsigned 16-bit value indicating transport port used by NDP.
8936 * This attribute is used and optional for ndp response, ndp indication,
8937 * and ndp confirm.
8938 */
8939 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
8940 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by
8941 * the Internet Assigned Numbers Authority (IANA) as per:
8942 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
8943 * This attribute is used and optional for ndp response, ndp indication,
8944 * and ndp confirm.
8945 */
8946 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -08008947 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
8948 * 1:support 0:not support
8949 */
8950 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
Sunil Ravia04bd252022-05-02 22:54:18 -07008951 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
8952 * 48 bits of the SHA-256 hash of the Service Name.
8953 * A lower-case representation of the Service Name shall be used to
8954 * calculate the Service ID.
8955 * Array of u8: length is 6 bytes
8956 * This attribute is used and optional for ndp indication.
8957 */
8958 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
Sunil Ravi2a14cf12023-11-21 00:54:38 +00008959 /* Unsigned 8-bit value for Cipher Suite capabilities.
8960 * u8 attribute.
8961 * This attribute is used and optional in ndp request, ndp response,
8962 * ndp indication, and ndp confirm.
8963 * This attribute is used to indicate the Capabilities field of Cipher
8964 * Suite Information attribute (CSIA) of NDP frames as defined in
8965 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
8966 * Firmware can accept or ignore any of the capability bits.
8967 */
8968 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
8969 /* Indicate that GTK protection is required for NDP.
8970 * NLA_FLAG attribute.
8971 * This attribute can be used in ndp request, ndp response, ndp
8972 * indication, and ndp confirm.
8973 * GTK protection required is indicated in the NDPE attribute of NAN
8974 * action frame (NAF) during NDP negotiation as defined in
8975 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
8976 * If the device and peer supports GTKSA and if GTK protection required
8977 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
8978 * of Data Path Security Confirm and Data Path Security Install frames
8979 * of NDP negotiation to send and receive protected group addressed data
8980 * frames from each other.
8981 */
8982 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
Roshan Pius3a1667e2018-07-03 15:17:14 -07008983
8984 /* keep last */
8985 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
8986 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
8987 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
8988};
8989
8990enum qca_wlan_ndp_sub_cmd {
8991 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
Sunil Ravia04bd252022-05-02 22:54:18 -07008992 /* Command to create a NAN data path interface.
8993 * This command was initially designed to both create and start a NAN
8994 * data path interface. However, changes to Linux 5.12 no longer allow
8995 * interface creation via vendor commands. When the driver advertises
8996 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8997 * userspace must explicitly first create the interface using
8998 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
8999 * to start the interface.
9000 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009001 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
Sunil Ravia04bd252022-05-02 22:54:18 -07009002 /* Command to delete a NAN data path interface.
9003 * This command was initially designed to both stop and delete a NAN
9004 * data path interface. However, changes to Linux 5.12 no longer allow
9005 * interface deletion via vendor commands. When the driver advertises
9006 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
9007 * userspace must explicitly delete the interface using
9008 * NL80211_CMD_DEL_INTERFACE after calling this command.
9009 */
Roshan Pius3a1667e2018-07-03 15:17:14 -07009010 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
9011 /* Command to initiate a NAN data path session */
9012 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
9013 /* Command to notify if the NAN data path session was sent */
9014 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
9015 /* Command to respond to NAN data path session */
9016 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
9017 /* Command to notify on the responder about the response */
9018 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
9019 /* Command to initiate a NAN data path end */
9020 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
9021 /* Command to notify the if end request was sent */
9022 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
9023 /* Command to notify the peer about the end request */
9024 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
9025 /* Command to confirm the NAN data path session is complete */
9026 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
9027 /* Command to indicate the peer about the end request being received */
9028 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
9029 /* Command to indicate the peer of schedule update */
9030 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
9031};
9032
9033/**
9034 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
9035 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
9036 */
9037enum qca_wlan_vendor_attr_nd_offload {
9038 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
9039 /* Flag to set Neighbour Discovery offload */
9040 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
9041 /* Keep last */
9042 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
9043 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
9044 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
9045};
9046
9047/**
9048 * enum packet_filter_sub_cmd - Packet filter sub commands
9049 */
9050enum packet_filter_sub_cmd {
9051 /**
9052 * Write packet filter program and/or data. The driver/firmware should
9053 * disable APF before writing into local buffer and re-enable APF after
9054 * writing is done.
9055 */
9056 QCA_WLAN_SET_PACKET_FILTER = 1,
9057 /* Get packet filter feature capabilities from driver */
9058 QCA_WLAN_GET_PACKET_FILTER = 2,
9059 /**
9060 * Write packet filter program and/or data. User space will send the
9061 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
9062 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
9063 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
9064 * enable/disable is given to user space with this command. Also,
9065 * user space sends the length of program portion in the buffer within
9066 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
9067 */
9068 QCA_WLAN_WRITE_PACKET_FILTER = 3,
9069 /* Read packet filter program and/or data */
9070 QCA_WLAN_READ_PACKET_FILTER = 4,
9071 /* Enable APF feature */
9072 QCA_WLAN_ENABLE_PACKET_FILTER = 5,
9073 /* Disable APF feature */
9074 QCA_WLAN_DISABLE_PACKET_FILTER = 6,
9075};
9076
9077/**
9078 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
9079 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
9080 */
9081enum qca_wlan_vendor_attr_packet_filter {
9082 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
9083 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
9084 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
9085 /* Unsigned 32-bit value indicating the packet filter version */
9086 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
9087 /* Unsigned 32-bit value indicating the packet filter id */
9088 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
9089 /**
9090 * Unsigned 32-bit value indicating the packet filter size including
9091 * program + data.
9092 */
9093 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
9094 /* Unsigned 32-bit value indicating the packet filter current offset */
9095 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
9096 /* Program and/or data in bytes */
9097 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
9098 /* Unsigned 32-bit value of the length of the program section in packet
9099 * filter buffer.
9100 */
9101 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
9102
9103 /* keep last */
9104 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
9105 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
9106 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
9107};
9108
9109/**
9110 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
9111 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
9112 */
9113enum qca_wlan_vendor_drv_info {
9114 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
9115 /* Maximum Message size info between firmware & HOST
9116 * Unsigned 32-bit value
9117 */
9118 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
9119 /* keep last */
9120 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
9121 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
9122 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
9123};
9124
9125/**
9126 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
9127 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
9128 */
9129enum qca_wlan_vendor_attr_wake_stats {
9130 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
9131 /* Unsigned 32-bit value indicating the total count of wake event */
9132 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
9133 /* Array of individual wake count, each index representing wake reason
9134 */
9135 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
9136 /* Unsigned 32-bit value representing wake count array */
9137 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
9138 /* Unsigned 32-bit total wake count value of driver/fw */
9139 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
9140 /* Array of wake stats of driver/fw */
9141 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
9142 /* Unsigned 32-bit total wake count value of driver/fw */
9143 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
9144 /* Unsigned 32-bit total wake count value of packets received */
9145 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
9146 /* Unsigned 32-bit wake count value unicast packets received */
9147 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
9148 /* Unsigned 32-bit wake count value multicast packets received */
9149 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
9150 /* Unsigned 32-bit wake count value broadcast packets received */
9151 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
9152 /* Unsigned 32-bit wake count value of ICMP packets */
9153 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
9154 /* Unsigned 32-bit wake count value of ICMP6 packets */
9155 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
9156 /* Unsigned 32-bit value ICMP6 router advertisement */
9157 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
9158 /* Unsigned 32-bit value ICMP6 neighbor advertisement */
9159 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
9160 /* Unsigned 32-bit value ICMP6 neighbor solicitation */
9161 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
9162 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
9163 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
9164 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
9165 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
9166 /* Unsigned 32-bit wake count value of receive side multicast */
9167 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
9168 /* Unsigned 32-bit wake count value of a given RSSI breach */
9169 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
9170 /* Unsigned 32-bit wake count value of low RSSI */
9171 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
9172 /* Unsigned 32-bit value GSCAN count */
9173 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
9174 /* Unsigned 32-bit value PNO complete count */
9175 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
9176 /* Unsigned 32-bit value PNO match count */
9177 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
9178 /* keep last */
9179 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
9180 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
9181 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
9182};
9183
9184/**
Hai Shalomfdcde762020-04-02 11:19:20 -07009185 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
Hai Shalom899fcc72020-10-19 14:38:18 -07009186 * configured by userspace to the driver/firmware.
9187 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
9188 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
Hai Shalomfdcde762020-04-02 11:19:20 -07009189 * The driver/firmware takes actions requested by userspace such as throttling
9190 * wifi TX etc. in order to mitigate high temperature.
9191 *
9192 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
9193 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
9194 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
9195 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
9196 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
9197 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
9198 */
9199enum qca_wlan_vendor_thermal_level {
9200 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
9201 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
9202 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
9203 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
9204 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
9205 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
9206};
9207
9208/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009209 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
9210 * cmd value. Used for NL attributes for data used by
9211 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9212 */
9213enum qca_wlan_vendor_attr_thermal_cmd {
9214 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
9215 /* The value of command, driver will implement different operations
9216 * according to this value. It uses values defined in
9217 * enum qca_wlan_vendor_attr_thermal_cmd_type.
9218 * u32 attribute.
9219 */
9220 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
Hai Shalomfdcde762020-04-02 11:19:20 -07009221 /* Userspace uses this attribute to configure thermal level to the
Hai Shalom899fcc72020-10-19 14:38:18 -07009222 * driver/firmware, or get thermal level from the driver/firmware.
9223 * Used in request or response, u32 attribute,
9224 * possible values are defined in enum qca_wlan_vendor_thermal_level.
Hai Shalomfdcde762020-04-02 11:19:20 -07009225 */
9226 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
9227 /* Userspace uses this attribute to configure the time in which the
9228 * driver/firmware should complete applying settings it received from
9229 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
9230 * command type. Used in request, u32 attribute, value is in
9231 * milliseconds. A value of zero indicates to apply the settings
9232 * immediately. The driver/firmware can delay applying the configured
9233 * thermal settings within the time specified in this attribute if
9234 * there is any critical ongoing operation.
9235 */
9236 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009237 /* Nested attribute, the driver/firmware uses this attribute to report
9238 * thermal statistics of different thermal levels to userspace when
9239 * requested using the
9240 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
9241 * type. This attribute contains a nested array of records of thermal
9242 * statistics of multiple levels. The attributes used inside this nested
9243 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
9244 */
9245 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009246
9247 /* keep last */
9248 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
9249 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
9250 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
9251};
9252
9253/**
9254 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
9255 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
9256 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
9257 * thermal command types sent to driver.
9258 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
9259 * get thermal shutdown configuration parameters for display. Parameters
9260 * responded from driver are defined in
9261 * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
9262 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
9263 * get temperature. Host should respond with a temperature data. It is defined
9264 * in enum qca_wlan_vendor_attr_thermal_get_temperature.
9265 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
9266 * suspend action.
9267 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
9268 * resume action.
Hai Shalomfdcde762020-04-02 11:19:20 -07009269 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
9270 * the driver/firmware.
Hai Shalom899fcc72020-10-19 14:38:18 -07009271 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
9272 * thermal level from the driver/firmware. The driver should respond with a
9273 * thermal level defined in enum qca_wlan_vendor_thermal_level.
Hai Shaloma20dcd72022-02-04 13:43:00 -08009274 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
9275 * current thermal statistics from the driver/firmware. The driver should
9276 * respond with statistics of all thermal levels encapsulated in the attribute
9277 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
9278 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
9279 * the current thermal statistics for all thermal levels maintained in the
9280 * driver/firmware and start counting from zero again.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009281 */
9282enum qca_wlan_vendor_attr_thermal_cmd_type {
9283 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
9284 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
9285 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
9286 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
Hai Shalomfdcde762020-04-02 11:19:20 -07009287 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
Hai Shalom899fcc72020-10-19 14:38:18 -07009288 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
Hai Shaloma20dcd72022-02-04 13:43:00 -08009289 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
9290 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009291};
9292
9293/**
9294 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
9295 * to get chip temperature by user.
9296 * enum values are used for NL attributes for data used by
9297 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
9298 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9299 */
9300enum qca_wlan_vendor_attr_thermal_get_temperature {
9301 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
9302 /* Temperature value (degree Celsius) from driver.
9303 * u32 attribute.
9304 */
9305 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
9306
9307 /* keep last */
9308 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
9309 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
9310 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
9311};
9312
9313/**
9314 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
9315 * to get configuration parameters of thermal shutdown feature. Enum values are
9316 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
9317 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
9318 */
9319enum qca_wlan_vendor_attr_get_thermal_params_rsp {
9320 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
9321 /* Indicate if the thermal shutdown feature is enabled.
9322 * NLA_FLAG attribute.
9323 */
9324 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
9325 /* Indicate if the auto mode is enabled.
9326 * Enable: Driver triggers the suspend/resume action.
9327 * Disable: User space triggers the suspend/resume action.
9328 * NLA_FLAG attribute.
9329 */
9330 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
9331 /* Thermal resume threshold (degree Celsius). Issue the resume command
9332 * if the temperature value is lower than this threshold.
9333 * u16 attribute.
9334 */
9335 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
9336 /* Thermal warning threshold (degree Celsius). FW reports temperature
9337 * to driver if it's higher than this threshold.
9338 * u16 attribute.
9339 */
9340 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
9341 /* Thermal suspend threshold (degree Celsius). Issue the suspend command
9342 * if the temperature value is higher than this threshold.
9343 * u16 attribute.
9344 */
9345 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
9346 /* FW reports temperature data periodically at this interval (ms).
9347 * u16 attribute.
9348 */
9349 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
9350
9351 /* keep last */
9352 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
9353 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
9354 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
9355};
9356
9357/**
9358 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
9359 * report thermal events from driver to user space.
9360 * enum values are used for NL attributes for data used by
9361 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
9362 */
9363enum qca_wlan_vendor_attr_thermal_event {
9364 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
9365 /* Temperature value (degree Celsius) from driver.
9366 * u32 attribute.
9367 */
9368 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
9369 /* Indication of resume completion from power save mode.
9370 * NLA_FLAG attribute.
9371 */
9372 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
Hai Shalom899fcc72020-10-19 14:38:18 -07009373 /* Thermal level from the driver.
9374 * u32 attribute. Possible values are defined in
9375 * enum qca_wlan_vendor_thermal_level.
9376 */
9377 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
Roshan Pius3a1667e2018-07-03 15:17:14 -07009378
9379 /* keep last */
9380 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
9381 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
9382 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
9383};
9384
9385/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009386 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9387 * to get thermal status from the driver/firmware.
9388 * enum values are used for NL attributes encapsulated inside the
9389 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9390 *
9391 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9392 * of a thermal level in Celsius. u32 size.
9393 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9394 * of a thermal level in Celsius. u32 size.
9395 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9396 * thermal level in milliseconds. u32 size.
9397 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9398 * of times the temperature crossed into the temperature range defined by the
9399 * thermal level from both higher and lower directions. u32 size.
9400 */
9401enum qca_wlan_vendor_attr_thermal_stats {
9402 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9403 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9404 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9405 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9406 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9407
9408 /* keep last */
9409 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9410 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9411 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9412};
9413
9414/**
Roshan Pius3a1667e2018-07-03 15:17:14 -07009415 * enum he_fragmentation_val - HE fragmentation support values
9416 * Indicates level of dynamic fragmentation that is supported by
9417 * a STA as a recipient.
9418 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
9419 * (HE MAC Capabilities Information field) and are used in HE Capabilities
9420 * element to advertise the support. These values are validated in the driver
9421 * to check the device capability and advertised in the HE Capabilities
9422 * element. These values are used to configure testbed device to allow the
9423 * advertised hardware capabilities to be downgraded for testing purposes.
9424 *
9425 * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9426 * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9427 * contained within an MPDU or S-MPDU, no support for dynamic fragments
9428 * within an A-MPDU that is not an S-MPDU.
9429 * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9430 * contained within an MPDU or S-MPDU and support for up to one dynamic
9431 * fragment for each MSDU, each A-MSDU if supported by the recipient, and
9432 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9433 * MPDU or S-MPDU.
9434 * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9435 * contained within an MPDU or S-MPDU and support for multiple dynamic
9436 * fragments for each MSDU and for each A-MSDU if supported by the
9437 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9438 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9439 */
9440enum he_fragmentation_val {
9441 HE_FRAG_DISABLE,
9442 HE_FRAG_LEVEL1,
9443 HE_FRAG_LEVEL2,
9444 HE_FRAG_LEVEL3,
9445};
9446
9447/**
9448 * enum he_mcs_config - HE MCS support configuration
9449 *
9450 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9451 * These values are used in driver to configure the HE MCS map to advertise
9452 * Tx/Rx MCS map in HE capability and these values are applied for all the
9453 * streams supported by the device. To configure MCS for different bandwidths,
9454 * vendor command needs to be sent using this attribute with appropriate value.
9455 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9456 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
9457 * send this command using HE MCS config attribute with value HE_160_MCS0_11.
9458 * These values are used to configure testbed device to allow the advertised
9459 * hardware capabilities to be downgraded for testing purposes. The enum values
9460 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
9461 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
9462 * These values are validated in the driver before setting the MCS map and
9463 * driver returns error if the input is other than these enum values.
9464 *
9465 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
9466 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
9467 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
9468 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
9469 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
9470 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
9471 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
9472 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
9473 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
9474 */
9475enum he_mcs_config {
9476 HE_80_MCS0_7 = 0,
9477 HE_80_MCS0_9 = 1,
9478 HE_80_MCS0_11 = 2,
9479 HE_160_MCS0_7 = 4,
9480 HE_160_MCS0_9 = 5,
9481 HE_160_MCS0_11 = 6,
9482 HE_80P80_MCS0_7 = 8,
9483 HE_80P80_MCS0_9 = 9,
9484 HE_80P80_MCS0_11 = 10,
9485};
9486
9487/**
9488 * enum qca_wlan_ba_session_config - BA session configuration
9489 *
9490 * Indicates the configuration values for BA session configuration attribute.
9491 *
9492 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9493 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9494 */
9495enum qca_wlan_ba_session_config {
9496 QCA_WLAN_ADD_BA = 1,
9497 QCA_WLAN_DELETE_BA = 2,
9498};
9499
9500/**
9501 * enum qca_wlan_ac_type - Access category type
9502 *
9503 * Indicates the access category type value.
9504 *
9505 * @QCA_WLAN_AC_BE: BE access category
9506 * @QCA_WLAN_AC_BK: BK access category
9507 * @QCA_WLAN_AC_VI: VI access category
9508 * @QCA_WLAN_AC_VO: VO access category
9509 * @QCA_WLAN_AC_ALL: All ACs
9510 */
9511enum qca_wlan_ac_type {
9512 QCA_WLAN_AC_BE = 0,
9513 QCA_WLAN_AC_BK = 1,
9514 QCA_WLAN_AC_VI = 2,
9515 QCA_WLAN_AC_VO = 3,
9516 QCA_WLAN_AC_ALL = 4,
9517};
9518
9519/**
9520 * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9521 *
9522 * Indicates the HE LTF configuration value.
9523 *
9524 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
9525 * based on the GI setting
9526 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9527 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9528 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9529 */
9530enum qca_wlan_he_ltf_cfg {
9531 QCA_WLAN_HE_LTF_AUTO = 0,
9532 QCA_WLAN_HE_LTF_1X = 1,
9533 QCA_WLAN_HE_LTF_2X = 2,
9534 QCA_WLAN_HE_LTF_4X = 3,
9535};
9536
Hai Shalomc9e41a12018-07-31 14:41:42 -07009537/**
9538 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9539 *
9540 * Indicates the HE trigger frame MAC padding duration value.
9541 *
9542 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9543 * process the trigger frame.
9544 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9545 * trigger frame.
9546 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9547 * trigger frame.
9548 */
9549enum qca_wlan_he_mac_padding_dur {
9550 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9551 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9552 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9553};
9554
Hai Shalom74f70d42019-02-11 14:42:39 -08009555/**
9556 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9557 *
9558 * Indicates the HE Operating mode control channel width setting value.
9559 *
9560 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9561 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9562 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9563 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9564 */
9565enum qca_wlan_he_om_ctrl_ch_bw {
9566 QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9567 QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9568 QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9569 QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9570};
9571
9572/**
Hai Shaloma20dcd72022-02-04 13:43:00 -08009573 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9574 *
9575 * Indicates the frame types to use for keep alive data.
9576 *
9577 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9578 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9579 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9580 */
9581enum qca_wlan_keep_alive_data_type {
9582 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9583 QCA_WLAN_KEEP_ALIVE_DATA = 1,
9584 QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9585};
9586
9587/**
Sunil Ravi77d572f2023-01-17 23:58:31 +00009588 * enum eht_mcs_config - EHT MCS support configuration
9589 *
9590 * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9591 * These values are used in the driver to configure the EHT MCS map to advertise
9592 * Tx/Rx MCS map in EHT capability and these values are applied for all the
9593 * streams supported by the device.
9594 * @EHT_MCS0_7: EHT MCS 0 to 7 support
9595 * @EHT_MCS0_9: EHT MCS 0 to 9 support
9596 * @EHT_MCS0_11: EHT MCS 0 to 11 support
9597 * @EHT_MCS0_13: EHT MCS 0 to 13 support
9598 */
9599enum eht_mcs_config {
9600 EHT_MCS0_7 = 0,
9601 EHT_MCS0_9 = 1,
9602 EHT_MCS0_11 = 2,
9603 EHT_MCS0_13 = 3,
9604};
9605
9606/**
9607 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9608 * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9609 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9610 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9611 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9612 * multi-link multi radio mode.
9613 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9614 * multi-link multi radio mode.
9615 */
9616enum qca_wlan_eht_mlo_mode {
9617 QCA_WLAN_EHT_MODE_INVALID = 0,
9618 QCA_WLAN_EHT_MLSR = 1,
9619 QCA_WLAN_EHT_EMLSR = 2,
9620 QCA_WLAN_EHT_NON_STR_MLMR = 3,
9621 QCA_WLAN_EHT_STR_MLMR = 4,
9622};
9623
9624/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009625 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9626 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9627 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9628 */
9629enum qca_wlan_emlsr_mode {
9630 QCA_WLAN_EMLSR_MODE_ENTER = 0,
9631 QCA_WLAN_EMLSR_MODE_EXIT = 1,
9632};
9633
9634/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +00009635 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9636 * support
9637 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9638 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9639 * both DL and UL
9640 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9641 * different link set
9642 */
9643enum qca_wlan_ttlm_negotiation_support {
9644 QCA_WLAN_TTLM_DISABLE = 0,
9645 QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9646 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9647};
9648
9649/**
9650 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9651 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9652 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9653 */
9654enum qca_coex_traffic_shaping_mode {
9655 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9656 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9657};
9658
9659/**
Sunil Ravi640215c2023-06-28 23:08:09 +00009660 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9661 * EHT operating mode control transmit request. These attributes are
9662 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
Hai Shalom74f70d42019-02-11 14:42:39 -08009663 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9664 *
9665 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9666 * indicates the maximum number of spatial streams, NSS, that the STA
9667 * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9668 * and is set to NSS - 1.
9669 *
9670 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9671 * indicates the operating channel width supported by the STA for both
9672 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9673 *
9674 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9675 * indicates the all trigger based UL MU operations by the STA.
9676 * 0 - UL MU operations are enabled by the STA.
9677 * 1 - All triggered UL MU transmissions are suspended by the STA.
9678 *
9679 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9680 * indicates the maximum number of space-time streams, NSTS, that
9681 * the STA supports in transmission and is set to NSTS - 1.
Hai Shalom021b0b52019-04-10 11:17:58 -07009682 *
9683 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9684 * combined with the UL MU Disable subfield and the recipient's setting
9685 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9686 * capabilities to determine which HE TB PPDUs are possible by the
9687 * STA to transmit.
9688 * 0 - UL MU data operations are enabled by the STA.
9689 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9690 * bit is not set, else UL MU Tx is suspended.
9691 *
Sunil Ravi640215c2023-06-28 23:08:09 +00009692 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9693 * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9694 * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9695 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9696 *
9697 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9698 * 320 MHz operating channel width supported by the EHT STA for both reception
9699 * and transmission.
9700 *
9701 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9702 * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9703 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9704 * that the STA supports in transmission for PPDU bandwidths less than or equal
9705 * to 80 MHz.
Hai Shalom74f70d42019-02-11 14:42:39 -08009706 */
Sunil Ravi640215c2023-06-28 23:08:09 +00009707enum qca_wlan_vendor_attr_omi_tx {
Hai Shalom74f70d42019-02-11 14:42:39 -08009708 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9709 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9710 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9711 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9712 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
Hai Shalom021b0b52019-04-10 11:17:58 -07009713 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
Sunil Ravi640215c2023-06-28 23:08:09 +00009714 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9715 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9716 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
Hai Shalom74f70d42019-02-11 14:42:39 -08009717
9718 /* keep last */
Sunil Ravi640215c2023-06-28 23:08:09 +00009719 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9720 QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9721 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
Hai Shalom74f70d42019-02-11 14:42:39 -08009722};
9723
Sunil Ravi640215c2023-06-28 23:08:09 +00009724/* deprecated legacy names */
9725#define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9726 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9727#define qca_wlan_vendor_attr_he_omi_tx \
9728 qca_wlan_vendor_attr_omi_tx
9729#define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9730 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9731#define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9732 QCA_WLAN_VENDOR_ATTR_OMI_MAX
9733
Hai Shalom899fcc72020-10-19 14:38:18 -07009734 /**
9735 * enum qca_wlan_vendor_phy_mode - Different PHY modes
9736 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9737 *
9738 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9739 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9740 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9741 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9742 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9743 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9744 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9745 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9746 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9747 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9748 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9749 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9750 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9751 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9752 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9753 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9754 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9755 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9756 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9757 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9758 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9759 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9760 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9761 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9762 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9763 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9764 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9765 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9766 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9767 */
9768enum qca_wlan_vendor_phy_mode {
9769 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9770 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9771 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9772 QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9773 QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9774 QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9775 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9776 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9777 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9778 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9779 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9780 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9781 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9782 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9783 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9784 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9785 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9786 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9787 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9788 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9789 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9790 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9791 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9792 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9793 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9794 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9795 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9796 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9797 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9798};
9799
Roshan Pius3a1667e2018-07-03 15:17:14 -07009800/* Attributes for data used by
9801 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9802 */
9803enum qca_wlan_vendor_attr_wifi_test_config {
9804 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9805 /* 8-bit unsigned value to configure the driver to enable/disable
9806 * WMM feature. This attribute is used to configure testbed device.
9807 * 1-enable, 0-disable
9808 */
9809 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9810
9811 /* 8-bit unsigned value to configure the driver to accept/reject
9812 * the addba request from peer. This attribute is used to configure
9813 * the testbed device.
9814 * 1-accept addba, 0-reject addba
9815 */
9816 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9817
9818 /* 8-bit unsigned value to configure the driver to send or not to
9819 * send the addba request to peer.
9820 * This attribute is used to configure the testbed device.
9821 * 1-send addba, 0-do not send addba
9822 */
9823 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9824
9825 /* 8-bit unsigned value to indicate the HE fragmentation support.
9826 * Uses enum he_fragmentation_val values.
9827 * This attribute is used to configure the testbed device to
9828 * allow the advertised hardware capabilities to be downgraded
9829 * for testing purposes.
9830 */
9831 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9832
9833 /* 8-bit unsigned value to indicate the HE MCS support.
9834 * Uses enum he_mcs_config values.
9835 * This attribute is used to configure the testbed device to
9836 * allow the advertised hardware capabilities to be downgraded
9837 * for testing purposes.
9838 */
9839 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9840
9841 /* 8-bit unsigned value to configure the driver to allow or not to
9842 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9843 * This attribute is used to configure the testbed device.
9844 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
9845 */
9846 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9847
9848 /* 8-bit unsigned value to configure the driver to add a
9849 * new BA session or delete the existing BA session for
9850 * given TID. ADDBA command uses the buffer size and TID
9851 * configuration if user specifies the values else default
9852 * value for buffer size is used for all TIDs if the TID
9853 * also not specified. For DEL_BA command TID value is
9854 * required to process the command.
9855 * Uses enum qca_wlan_ba_session_config values.
9856 * This attribute is used to configure the testbed device.
9857 */
9858 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9859
Hai Shalomce48b4a2018-09-05 11:41:35 -07009860 /* 16-bit unsigned value to configure the buffer size in addba
Roshan Pius3a1667e2018-07-03 15:17:14 -07009861 * request and response frames.
9862 * This attribute is used to configure the testbed device.
Hai Shalomce48b4a2018-09-05 11:41:35 -07009863 * The range of the value is 0 to 256.
Roshan Pius3a1667e2018-07-03 15:17:14 -07009864 */
9865 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9866
9867 /* 8-bit unsigned value to configure the buffer size in addba
9868 * request and response frames.
9869 * This attribute is used to configure the testbed device.
9870 */
9871 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9872
9873 /* 8-bit unsigned value to configure the no ack policy.
9874 * To configure no ack policy, access category value is
9875 * required to process the command.
9876 * This attribute is used to configure the testbed device.
9877 * 1 - enable no ack, 0 - disable no ack.
9878 */
9879 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9880
9881 /* 8-bit unsigned value to configure the AC for no ack policy
9882 * This attribute is used to configure the testbed device.
9883 * Uses the enum qca_wlan_ac_type values.
9884 */
9885 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9886
9887 /* 8-bit unsigned value to configure the HE LTF
9888 * This attribute is used to configure the testbed device.
9889 * Uses the enum qca_wlan_he_ltf_cfg values.
9890 */
9891 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9892
9893 /* 8-bit unsigned value to configure the tx beamformee.
9894 * This attribute is used to configure the testbed device.
9895 * 1-enable, 0-disable.
9896 */
9897 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9898
9899 /* 8-bit unsigned value to configure the tx beamformee number
9900 * of space-time streams.
9901 * This attribute is used to configure the testbed device.
9902 * The range of the value is 0 to 8.
9903 */
9904 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9905
9906 /* 8-bit unsigned value to configure the MU EDCA params for given AC
9907 * This attribute is used to configure the testbed device.
9908 * Uses the enum qca_wlan_ac_type values.
9909 */
9910 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9911
9912 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9913 * To configure MU EDCA AIFSN value, MU EDCA access category value
9914 * is required to process the command.
9915 * This attribute is used to configure the testbed device.
9916 */
9917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9918
9919 /* 8-bit unsigned value to configure the MU EDCA ECW min value for
9920 * given AC.
9921 * To configure MU EDCA ECW min value, MU EDCA access category value
9922 * is required to process the command.
9923 * This attribute is used to configure the testbed device.
9924 */
9925 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9926
9927 /* 8-bit unsigned value to configure the MU EDCA ECW max value for
9928 * given AC.
9929 * To configure MU EDCA ECW max value, MU EDCA access category value
9930 * is required to process the command.
9931 * This attribute is used to configure the testbed device.
9932 */
9933 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9934
9935 /* 8-bit unsigned value to configure the MU EDCA timer for given AC
9936 * To configure MU EDCA timer value, MU EDCA access category value
9937 * is required to process the command.
9938 * This attribute is used to configure the testbed device.
9939 */
9940 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9941
Hai Shalomc9e41a12018-07-31 14:41:42 -07009942 /* 8-bit unsigned value to configure the HE trigger frame MAC padding
9943 * duration.
9944 * This attribute is used to configure the testbed device.
9945 * Uses the enum qca_wlan_he_mac_padding_dur values.
9946 */
9947 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9948
Hai Shalomce48b4a2018-09-05 11:41:35 -07009949 /* 8-bit unsigned value to override the MU EDCA params to defaults
9950 * regardless of the AP beacon MU EDCA params. If it is enabled use
9951 * the default values else use the MU EDCA params from AP beacon.
9952 * This attribute is used to configure the testbed device.
9953 * 1-enable, 0-disable.
9954 */
9955 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9956
Hai Shalom39ba6fc2019-01-22 12:40:38 -08009957 /* 8-bit unsigned value to configure the support for receiving
9958 * an MPDU that contains an operating mode control subfield.
9959 * This attribute is used to configure the testbed device.
9960 * 1-enable, 0-disable.
9961 */
9962 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9963
9964 /* Nested attribute values required to setup the TWT session.
9965 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9966 * information to set up the session. It contains broadcast flags,
9967 * set_up flags, trigger value, flow type, flow ID, wake interval
9968 * exponent, protection, target wake time, wake duration, wake interval
9969 * mantissa. These nested attributes are used to setup a host triggered
9970 * TWT session.
9971 */
9972 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9973
9974 /* This nested attribute is used to terminate the current TWT session.
9975 * It does not currently carry any attributes.
9976 */
9977 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9978
9979 /* This nested attribute is used to suspend the current TWT session.
9980 * It does not currently carry any attributes.
9981 */
9982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9983
9984 /* Nested attribute values to indicate the request for resume.
9985 * This attribute is used to resume the TWT session.
9986 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9987 * parameters required to resume the TWT session.
9988 */
9989 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9990
Hai Shalom74f70d42019-02-11 14:42:39 -08009991 /* 8-bit unsigned value to set the HE operating mode control
9992 * (OM CTRL) Channel Width subfield.
9993 * The Channel Width subfield indicates the operating channel width
9994 * supported by the STA for both reception and transmission.
9995 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9996 * This setting is cleared with the
9997 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9998 * flag attribute to reset defaults.
9999 * This attribute is used to configure the testbed device.
10000 */
10001 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
10002
10003 /* 8-bit unsigned value to configure the number of spatial
10004 * streams in HE operating mode control field.
10005 * This setting is cleared with the
10006 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10007 * flag attribute to reset defaults.
10008 * This attribute is used to configure the testbed device.
10009 */
10010 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
10011
10012 /* Flag attribute to configure the UL MU disable bit in
10013 * HE operating mode control field.
10014 * This setting is cleared with the
10015 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
10016 * flag attribute to reset defaults.
10017 * This attribute is used to configure the testbed device.
10018 */
10019 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
10020
10021 /* Flag attribute to clear the previously set HE operating mode
10022 * control field configuration.
10023 * This attribute is used to configure the testbed device to reset
10024 * defaults to clear any previously set HE operating mode control
10025 * field configuration.
10026 */
10027 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
10028
10029 /* 8-bit unsigned value to configure HE single user PPDU
10030 * transmission. By default this setting is disabled and it
10031 * is disabled in the reset defaults of the device configuration.
10032 * This attribute is used to configure the testbed device.
10033 * 1-enable, 0-disable
10034 */
10035 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
10036
10037 /* 8-bit unsigned value to configure action frame transmission
10038 * in HE trigger based PPDU transmission.
10039 * By default this setting is disabled and it is disabled in
10040 * the reset defaults of the device configuration.
10041 * This attribute is used to configure the testbed device.
10042 * 1-enable, 0-disable
10043 */
10044 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
10045
10046 /* Nested attribute to indicate HE operating mode control field
10047 * transmission. It contains operating mode control field Nss,
10048 * channel bandwidth, Tx Nsts and UL MU disable attributes.
10049 * These nested attributes are used to send HE operating mode control
10050 * with configured values.
Sunil Ravi640215c2023-06-28 23:08:09 +000010051 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
Hai Shalom74f70d42019-02-11 14:42:39 -080010052 * This attribute is used to configure the testbed device.
10053 */
Sunil Ravi640215c2023-06-28 23:08:09 +000010054 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
Hai Shalom74f70d42019-02-11 14:42:39 -080010055
10056 /* 8-bit unsigned value to configure +HTC_HE support to indicate the
10057 * support for the reception of a frame that carries an HE variant
10058 * HT Control field.
10059 * This attribute is used to configure the testbed device.
10060 * 1-enable, 0-disable
10061 */
10062 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
10063
Hai Shalom021b0b52019-04-10 11:17:58 -070010064 /* 8-bit unsigned value to configure VHT support in 2.4G band.
10065 * This attribute is used to configure the testbed device.
10066 * 1-enable, 0-disable
10067 */
10068 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
10069
10070 /* 8-bit unsigned value to configure HE testbed defaults.
10071 * This attribute is used to configure the testbed device.
10072 * 1-set the device HE capabilities to testbed defaults.
10073 * 0-reset the device HE capabilities to supported config.
10074 */
10075 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
10076
10077 /* 8-bit unsigned value to configure TWT request support.
10078 * This attribute is used to configure the testbed device.
10079 * 1-enable, 0-disable.
10080 */
10081 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
10082
Hai Shalom899fcc72020-10-19 14:38:18 -070010083 /* 8-bit unsigned value to configure protection for Management
10084 * frames when PMF is enabled for the association.
10085 * This attribute is used to configure the testbed device.
10086 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
10087 */
10088 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
10089
10090 /* Flag attribute to inject Disassociation frame to the connected AP.
10091 * This attribute is used to configure the testbed device.
10092 */
10093 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
10094
10095 /* 8-bit unsigned value to configure an override for the RSNXE Used
10096 * subfield in the MIC control field of the FTE in FT Reassociation
10097 * Request frame.
10098 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
10099 * This attribute is used to configure the testbed device.
10100 * This attribute can be configured only when STA is in associated state
10101 * and the configuration is valid until the disconnection.
10102 */
10103 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
10104
10105 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
10106 * Switch Announcement) when STA is in connected state.
10107 * 0 - Default behavior, 1 - Ignore CSA.
10108 * This attribute is used to configure the testbed device.
10109 * This attribute can be configured only when STA is in associated state
10110 * and the configuration is valid until the disconnection.
10111 */
10112 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
10113
10114 /* Nested attribute values required to configure OCI (Operating Channel
10115 * Information). Attributes defined in enum
10116 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
10117 * This attribute is used to configure the testbed device.
10118 * This attribute can be configured only when STA is in associated state
10119 * and the configuration is valid until the disconnection.
10120 */
10121 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
10122
10123 /* 8-bit unsigned value to configure the driver/firmware to ignore SA
10124 * Query timeout. If this configuration is enabled STA shall not send
10125 * Deauthentication frmae when SA Query times out (mainly, after a
10126 * channel switch when OCV is enabled).
10127 * 0 - Default behavior, 1 - Ignore SA Query timeout.
10128 * This attribute is used to configure the testbed device.
10129 * This attribute can be configured only when STA is in associated state
10130 * and the configuration is valid until the disconnection.
10131 */
10132 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
10133
10134 /* 8-bit unsigned value to configure the driver/firmware to start or
10135 * stop transmitting FILS discovery frames.
10136 * 0 - Stop transmitting FILS discovery frames
10137 * 1 - Start transmitting FILS discovery frames
10138 * This attribute is used to configure the testbed device.
10139 * This attribute can be configured only in AP mode and the
10140 * configuration is valid until AP restart.
10141 */
10142 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
10143
Hai Shalom60840252021-02-19 19:02:11 -080010144 /* 8-bit unsigned value to configure the driver/firmware to enable or
10145 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
10146 * information field.
10147 * 0 - Disable full bandwidth UL MU-MIMO subfield
10148 * 1 - Enable full bandwidth UL MU-MIMO subfield
10149 * This attribute is used to configure the testbed device.
10150 */
10151 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
10152
10153 /* 16-bit unsigned value to configure the driver with a specific BSS
10154 * max idle period to advertise in the BSS Max Idle Period element
10155 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
10156 * This attribute is used to configure the testbed device.
10157 */
10158 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
10159
10160 /* 8-bit unsigned value to configure the driver to use only RU 242 tone
10161 * for data transmission.
10162 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
10163 * This attribute is used to configure the testbed device.
10164 */
10165 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
10166
10167 /* 8-bit unsigned value to configure the driver to disable data and
10168 * management response frame transmission to test the BSS max idle
10169 * feature.
10170 * 0 - Default behavior, 1 - Disable data and management response Tx.
10171 * This attribute is used to configure the testbed device.
10172 */
10173 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
10174
10175 /* 8-bit unsigned value to configure the driver/firmware to enable or
10176 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
10177 * information field.
10178 * 0 - Disable Punctured Preamble Rx subfield
10179 * 1 - Enable Punctured Preamble Rx subfield
10180 * This attribute is used to configure the testbed device.
10181 */
10182 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
10183
Hai Shaloma20dcd72022-02-04 13:43:00 -080010184 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
10185 * requirement mismatch for 6 GHz connection.
10186 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
10187 * This attribute is used to configure the testbed device.
10188 */
10189 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
10190
10191 /* 8-bit unsigned value to configure the driver to allow 6 GHz
10192 * connection with all security modes.
10193 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
10194 * modes.
10195 * This attribute is used for testing purposes.
10196 */
10197 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
10198
10199 /* 8-bit unsigned value to configure the driver to transmit data with
10200 * ER SU PPDU type.
10201 *
10202 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
10203 * This attribute is used for testing purposes.
10204 */
10205 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
10206
10207 /* 8-bit unsigned value to configure the driver to use Data or
10208 * Management frame type for keep alive data.
10209 * Uses enum qca_wlan_keep_alive_data_type values.
10210 *
10211 * This attribute is used for testing purposes.
10212 */
10213 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
10214
10215 /* 8-bit unsigned value to configure the driver to use scan request
10216 * BSSID value in Probe Request frame RA(A1) during the scan. The
10217 * driver saves this configuration and applies this setting to all user
10218 * space scan requests until the setting is cleared. If this
10219 * configuration is set, the driver uses the BSSID value from the scan
10220 * request to set the RA(A1) in the Probe Request frames during the
10221 * scan.
10222 *
10223 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
10224 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
10225 * This attribute is used for testing purposes.
10226 */
10227 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
10228
10229 /* 8-bit unsigned value to configure the driver to enable/disable the
10230 * BSS max idle period support.
10231 *
10232 * 0 - Disable the BSS max idle support.
10233 * 1 - Enable the BSS max idle support.
10234 * This attribute is used for testing purposes.
10235 */
10236 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
10237
10238 /* 8-bit unsigned value to configure the driver/firmware to enable or
10239 * disable Rx control frame to MultiBSS subfield in the HE MAC
10240 * capabilities information field.
10241 * 0 - Disable Rx control frame to MultiBSS subfield
10242 * 1 - Enable Rx control frame to MultiBSS subfield
10243 * This attribute is used to configure the testbed device.
10244 */
10245 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
10246
10247 /* 8-bit unsigned value to configure the driver/firmware to enable or
10248 * disable Broadcast TWT support subfield in the HE MAC capabilities
10249 * information field.
10250 * 0 - Disable Broadcast TWT support subfield
10251 * 1 - Enable Broadcast TWT support subfield
10252 * This attribute is used to configure the testbed device.
10253 */
10254 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
10255
Sunil Ravia04bd252022-05-02 22:54:18 -070010256 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
10257 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
10258 * to 1, and if the firmware supports this capability too, the STA
10259 * advertises this capability to the AP over Association Request frame.
10260 * This attribute will not have any effect on legacy devices with no
10261 * IEEE 802.11be support.
10262 * 0 - Default behavior
10263 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
10264 * This attribute is used to configure the testbed device.
10265 */
10266 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
10267
Sunil Ravi89eba102022-09-13 21:04:37 -070010268 /* 8-bit unsigned value to configure the driver to enable/disable the
10269 * periodic sounding for Tx beamformer functionality. The default
10270 * behavior uses algorithm to do sounding based on packet stats.
10271 *
10272 * 0 - Default behavior.
10273 * 1 - Enable the periodic sounding for Tx beamformer.
10274 * This attribute is used for testing purposes.
10275 */
10276 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
10277
Sunil Ravi77d572f2023-01-17 23:58:31 +000010278 /* 8-bit unsigned value to configure beamformee SS EHT capability
10279 * to indicate the maximum number of spatial streams that the STA
10280 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
10281 * The range of the value is 3 to 7.
10282 * This attribute is used to configure the testbed device.
10283 */
10284 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
10285
10286 /* 8-bit unsigned value to configure beamformee SS EHT capability
10287 * to indicate the maximum number of spatial streams that the STA
10288 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
10289 * The range of the value is 3 to 7.
10290 * This attribute is used to configure the testbed device.
10291 */
10292 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
10293
10294 /* 8-bit unsigned value to configure beamformee SS EHT capability
10295 * to indicate the maximum number of spatial streams that the STA
10296 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
10297 * The range of the value is 3 to 7.
10298 * This attribute is used to configure the testbed device.
10299 */
10300 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
10301
10302 /* 8-bit unsigned value to configure the driver to exclude station
10303 * profile in Probe Request frame Multi-Link element.
10304 * 0 - Default behavior, sends the Probe Request frame with station
10305 * profile data included in the Multi-Link element.
10306 * 1 - Exclude station profile in Probe Request frame Multi-Link
10307 * element.
10308 * This attribute is used to configure the testbed device.
10309 */
10310 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10311
10312 /* 8-bit unsigned value to configure EHT testbed defaults.
10313 * This attribute is used to configure the testbed device.
10314 * 1 - Set the device EHT capabilities to testbed defaults.
10315 * 0 - Reset the device EHT capabilities to supported config.
10316 */
10317 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10318
10319 /* 8-bit unsigned value to indicate the EHT MCS support.
10320 * Uses enum eht_mcs_config values.
10321 * This attribute is used to configure the testbed device to
10322 * allow the advertised hardware capabilities to be downgraded
10323 * for testing purposes.
10324 */
10325 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10326
10327 /* 8-bit unsigned value to configure EHT TB Sounding Feedback
10328 * Rate Limit capability.
10329 * This attribute is used to configure the testbed device.
10330 * 0 - Indicates no maximum supported data rate limitation.
10331 * 1 - Indicates the maximum supported data rate is the lower of
10332 * the 1500 Mb/s and the maximum supported data rate.
10333 */
10334 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10335
Sunil Ravi640215c2023-06-28 23:08:09 +000010336 /* 8-bit unsigned value to configure the support for receiving an MPDU
10337 * that contains an EHT operating mode control subfield.
10338 * This attribute is used to configure the testbed device.
10339 * 1-enable, 0-disable.
10340 */
10341 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10342
10343 /* 8-bit unsigned value to configure the driver with EMLSR padding delay
10344 * subfield value.
10345 *
10346 * 0 - 0 us
10347 * 1 - 32 us
10348 * 2 - 64 us
10349 * 3 - 128 us
10350 * 4 - 256 us
10351 * 5-255 - Reserved
10352 *
10353 * This attribute is used for testing purposes.
10354 */
10355 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10356
10357 /*
10358 * 8-bit unsigned value to indicate the firmware to force the active MLO
10359 * links to power save mode for the configured number of beacon periods.
10360 * This allows the firmware to suspend STA links for X beacon periods
10361 * and remain asleep even if the AP advertises TIM as opposed to regular
10362 * power save mode where STA links wake up if the AP indicates that it
10363 * has buffered data to send.
10364 * This attribute is used to configure the testbed device.
10365 */
10366 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10367
10368 /*
10369 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10370 * to enable simultaneous transmission of PPDUs on all active links.
10371 * 0 - Default behavior
10372 * 1 - Enter STR mode for simultaneous data transmission on all links
10373 */
10374 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10375
Sunil Ravi2a14cf12023-11-21 00:54:38 +000010376 /* Nested attribute to indicate EHT MLO links on which powersave to be
10377 * enabled. It contains link ID attributes. These nested attributes are
10378 * of the type u8 and are used to enable the powersave on associated
10379 * MLO links corresponding to the link IDs provided in the command.
10380 * This attribute is used to configure the testbed device.
10381 */
10382 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10383
10384 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10385 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10386 * testcase, STA can request information of non-Tx BSS through Tx BSS
10387 * by configuring non-Tx BSS MLD ID within the ML probe request that
10388 * is transmitted via host initiated scan request.
10389 *
10390 * This attribute is used for testing purposes.
10391 */
10392 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10393
Sunil Ravib0ac25f2024-07-12 01:42:03 +000010394 /* 8-bit unsigned value to configure the SCS traffic description
10395 * support in the EHT capabilities of an Association Request frame.
10396 * 1-enable, 0-disable
10397 * This attribute is used to configure the testbed device.
10398 */
10399 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
10400
Roshan Pius3a1667e2018-07-03 15:17:14 -070010401 /* keep last */
10402 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10403 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10404 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10405};
10406
10407/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010408 * enum qca_wlan_twt_operation - Operation of the config TWT request
10409 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
Hai Shalom60840252021-02-19 19:02:11 -080010410 * The response for the respective operations can be either synchronous or
10411 * asynchronous (wherever specified). If synchronous, the response to this
10412 * operation is obtained in the corresponding vendor command reply to the user
10413 * space. For the asynchronous case the response is obtained as an event with
10414 * the same operation type.
10415 *
10416 * Drivers shall support either of these modes but not both simultaneously.
10417 * This support for asynchronous mode is advertised through the flag
10418 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10419 * the driver shall support synchronous mode.
Hai Shalom899fcc72020-10-19 14:38:18 -070010420 *
10421 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10422 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010423 * qca_wlan_vendor_attr_twt_setup. Depending upon the
10424 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10425 * synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010426 *
10427 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10428 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
Hai Shalom60840252021-02-19 19:02:11 -080010429 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010430 *
10431 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10432 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10433 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010434 * This terminate can either get triggered by the user space or can as well be
10435 * a notification from the firmware if it initiates a terminate.
10436 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10437 * the request from user space can either be a synchronous or asynchronous
10438 * operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010439 *
10440 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10441 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10442 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010443 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10444 * this is either a synchronous or asynchronous operation.
Hai Shalom899fcc72020-10-19 14:38:18 -070010445 *
10446 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10447 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10448 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
Hai Shalom60840252021-02-19 19:02:11 -080010449 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10450 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10451 * capability, this is either a synchronous or asynchronous operation.
10452 *
10453 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10454 * combination of suspend and resume in a single request. Required parameters
10455 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10456 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10457 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10458 * capability, this is either a synchronous or asynchronous operation.
10459 *
10460 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10461 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10462 * session is setup. It's a synchronous operation.
10463 *
10464 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10465 * Valid only after the TWT session is setup. It's a synchronous operation.
10466 *
10467 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10468 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10469 * operation.
10470 *
Sunil Ravia04bd252022-05-02 22:54:18 -070010471 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
Hai Shalom60840252021-02-19 19:02:11 -080010472 * ready for a new TWT session setup after it issued a TWT teardown.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010473 *
10474 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10475 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10476 * the enum qca_wlan_vendor_attr_twt_set_param.
Sunil Ravia04bd252022-05-02 22:54:18 -070010477 *
10478 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10479 * related information for example TWT required bit in AP capabilities etc.
10480 * The reason for the notification is sent using
10481 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
Hai Shalom899fcc72020-10-19 14:38:18 -070010482 */
10483enum qca_wlan_twt_operation {
10484 QCA_WLAN_TWT_SET = 0,
10485 QCA_WLAN_TWT_GET = 1,
10486 QCA_WLAN_TWT_TERMINATE = 2,
10487 QCA_WLAN_TWT_SUSPEND = 3,
10488 QCA_WLAN_TWT_RESUME = 4,
Hai Shalom60840252021-02-19 19:02:11 -080010489 QCA_WLAN_TWT_NUDGE = 5,
10490 QCA_WLAN_TWT_GET_STATS = 6,
10491 QCA_WLAN_TWT_CLEAR_STATS = 7,
10492 QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10493 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010494 QCA_WLAN_TWT_SET_PARAM = 10,
Sunil Ravia04bd252022-05-02 22:54:18 -070010495 QCA_WLAN_TWT_NOTIFY = 11,
Hai Shalom899fcc72020-10-19 14:38:18 -070010496};
10497
10498/**
10499 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10500 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10501 *
10502 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
10503 * operation of this request. Possible values are defined in enum
10504 * qca_wlan_twt_operation. The parameters for the respective operation is
10505 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10506 *
10507 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10508 * parameters configured for TWT. These parameters are represented by
Hai Shalom60840252021-02-19 19:02:11 -080010509 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
Hai Shaloma20dcd72022-02-04 13:43:00 -080010510 * enum qca_wlan_vendor_attr_twt_set_param, or
10511 * enum qca_wlan_vendor_attr_twt_stats based on the operation.
Sunil Ravia04bd252022-05-02 22:54:18 -070010512 *
10513 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10514 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10515 * The values used by this attribute are defined in
10516 * enum qca_wlan_vendor_twt_status.
Hai Shalom899fcc72020-10-19 14:38:18 -070010517 */
10518enum qca_wlan_vendor_attr_config_twt {
10519 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10520 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10521 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
Sunil Ravia04bd252022-05-02 22:54:18 -070010522 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
Hai Shalom899fcc72020-10-19 14:38:18 -070010523
10524 /* keep last */
10525 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10526 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10527 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10528};
10529
10530/**
Roshan Pius3a1667e2018-07-03 15:17:14 -070010531 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
10532 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10533 * The user can add/delete the filter by specifying the BSSID/STA MAC address in
10534 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
10535 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
10536 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
10537 * statistics of an unassociated station by specifying the MAC address in
10538 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
10539 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
10540 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
10541 * the statistics of all unassociated stations by specifying the Broadcast MAC
10542 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
10543 * above procedure. In the response, driver shall specify statistics
10544 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
10545 */
10546enum qca_wlan_vendor_attr_bss_filter {
10547 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
10548 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
10549 /* Other BSS filter type, unsigned 8 bit value. One of the values
10550 * in enum qca_wlan_vendor_bss_filter_type.
10551 */
10552 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
10553 /* Other BSS filter action, unsigned 8 bit value. One of the values
10554 * in enum qca_wlan_vendor_bss_filter_action.
10555 */
10556 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
10557 /* Array of nested attributes where each entry is the statistics
10558 * information of the specified station that belong to another BSS.
10559 * Attributes for each entry are taken from enum
10560 * qca_wlan_vendor_bss_filter_sta_stats.
10561 * Other BSS station configured in
10562 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
10563 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
10564 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
10565 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
10566 */
10567 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
10568
10569 /* keep last */
10570 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
10571 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
10572 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
10573};
10574
10575/**
10576 * enum qca_wlan_vendor_bss_filter_type - Type of
10577 * filter used in other BSS filter operations. Used by the vendor command
10578 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10579 *
10580 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
10581 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
10582 */
10583enum qca_wlan_vendor_bss_filter_type {
10584 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
10585 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
10586};
10587
10588/**
10589 * enum qca_wlan_vendor_bss_filter_action - Type of
10590 * action in other BSS filter operations. Used by the vendor command
10591 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10592 *
10593 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
10594 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
10595 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
10596 */
10597enum qca_wlan_vendor_bss_filter_action {
10598 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
10599 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
10600 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
10601};
10602
10603/**
10604 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
10605 * the statistics of a specific unassociated station belonging to another BSS.
10606 * The statistics provides information of the unassociated station
10607 * filtered by other BSS operation - such as MAC, signal value.
10608 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
10609 *
10610 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
10611 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
10612 * of the station. Unsigned 8 bit number containing RSSI.
10613 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
10614 * driver for the last received RSSI. Unsigned 64 bit number containing
10615 * nanoseconds from the boottime.
Sunil Ravi036cec52023-03-29 11:35:17 -070010616 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
10617 * 64-bit alignment.
Roshan Pius3a1667e2018-07-03 15:17:14 -070010618 */
10619enum qca_wlan_vendor_bss_filter_sta_stats {
10620 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
10621 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
10622 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
10623 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070010624 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
Roshan Pius3a1667e2018-07-03 15:17:14 -070010625
10626 /* keep last */
10627 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
10628 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
10629 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
10630};
10631
Hai Shalomce48b4a2018-09-05 11:41:35 -070010632/* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10633 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10634 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10635 */
10636enum qca_wlan_nan_ext_subcmd_type {
10637 /* Subcmd of type NAN Enable Request */
10638 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10639 /* Subcmd of type NAN Disable Request */
10640 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10641};
10642
10643/**
10644 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10645 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10646 */
10647enum qca_wlan_vendor_attr_nan_params {
10648 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10649 /* Carries NAN command for firmware component. Every vendor command
10650 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10651 * payload containing the NAN command. NLA_BINARY attribute.
10652 */
10653 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10654 /* Indicates the type of NAN command sent with
10655 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10656 * describes the possible range of values. This attribute is mandatory
10657 * if the command being issued is either
10658 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10659 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10660 */
10661 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10662 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10663 * band. This attribute is mandatory when command type is
10664 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10665 */
10666 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10667 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10668 * band. This attribute is optional and should be included when command
10669 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10670 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10671 */
10672 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10673
10674 /* keep last */
10675 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10676 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10677 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10678};
10679
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010680/**
Hai Shalom60840252021-02-19 19:02:11 -080010681 * qca_wlan_twt_setup_state: Represents the TWT session states.
10682 *
10683 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10684 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10685 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10686 */
10687enum qca_wlan_twt_setup_state {
10688 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10689 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10690 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10691};
10692
10693/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010694 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10695 * TWT (Target Wake Time) setup request. These attributes are sent as part of
10696 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
Hai Shalom899fcc72020-10-19 14:38:18 -070010697 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10698 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010699 *
10700 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10701 * Disable (flag attribute not present) - Individual TWT
10702 * Enable (flag attribute present) - Broadcast TWT.
10703 * Individual means the session is between the STA and the AP.
10704 * This session is established using a separate negotiation between
10705 * STA and AP.
10706 * Broadcast means the session is across multiple STAs and an AP. The
10707 * configuration parameters are announced in Beacon frames by the AP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010708 * This is used in
10709 * 1. TWT SET Request and Response
10710 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010711 *
10712 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10713 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
Hai Shalom899fcc72020-10-19 14:38:18 -070010714 * specify the TWT request type. This is used in TWT SET operation.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010715 *
10716 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10717 * Enable (flag attribute present) - TWT with trigger support.
10718 * Disable (flag attribute not present) - TWT without trigger support.
10719 * Trigger means the AP will send the trigger frame to allow STA to send data.
10720 * Without trigger, the STA will wait for the MU EDCA timer before
10721 * transmitting the data.
Hai Shalom899fcc72020-10-19 14:38:18 -070010722 * This is used in
10723 * 1. TWT SET Request and Response
10724 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010725 *
10726 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10727 * 0 - Announced TWT - In this mode, STA may skip few service periods to
10728 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10729 * NULL frame to AP.
10730 * 1 - Unannounced TWT - The STA will wakeup during every SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010731 * This is a required parameter for
10732 * 1. TWT SET Request and Response
10733 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010734 *
10735 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10736 * Flow ID is the unique identifier for each TWT session.
Hai Shalom899fcc72020-10-19 14:38:18 -070010737 * If not provided then dialog ID will be set to zero.
10738 * This is an optional parameter for
10739 * 1. TWT SET Request and Response
10740 * 2. TWT GET Request and Response
10741 * 3. TWT TERMINATE Request and Response
10742 * 4. TWT SUSPEND Request and Response
Hai Shalom60840252021-02-19 19:02:11 -080010743 * Flow ID values from 0 to 254 represent a single TWT session
10744 * Flow ID value of 255 represents all TWT sessions for the following
10745 * 1. TWT TERMINATE Request and Response
10746 * 2. TWT SUSPEND Request and Response
10747 * 4. TWT CLEAR STATISTICS request
10748 * 5. TWT GET STATISTICS request and response
10749 * If an invalid dialog ID is provided, status
10750 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010751 *
10752 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10753 * This attribute (exp) is used along with the mantissa to derive the
10754 * wake interval using the following formula:
10755 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10756 * Wake interval is the interval between 2 successive SP.
Hai Shalom899fcc72020-10-19 14:38:18 -070010757 * This is a required parameter for
10758 * 1. TWT SET Request and Response
10759 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010760 *
10761 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10762 * Enable (flag attribute present) - Protection required.
10763 * Disable (flag attribute not present) - Protection not required.
10764 * If protection is enabled, then the AP will use protection
10765 * mechanism using RTS/CTS to self to reserve the airtime.
Hai Shalom899fcc72020-10-19 14:38:18 -070010766 * This is used in
10767 * 1. TWT SET Request and Response
10768 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010769 *
10770 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10771 * This attribute is used as the SP offset which is the offset from
10772 * TSF after which the wake happens. The units are in microseconds. If
10773 * this attribute is not provided, then the value will be set to zero.
Hai Shalom899fcc72020-10-19 14:38:18 -070010774 * This is an optional parameter for
10775 * 1. TWT SET Request and Response
10776 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010777 *
10778 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
Hai Shalom899fcc72020-10-19 14:38:18 -070010779 * This is the duration of the service period. This is specified as
10780 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
10781 * This is a required parameter for
10782 * 1. TWT SET Request and Response
10783 * 2. TWT GET Response
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010784 *
10785 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
10786 * This attribute is used to configure wake interval mantissa.
10787 * The units are in TU.
Hai Shalom899fcc72020-10-19 14:38:18 -070010788 * This is a required parameter for
10789 * 1. TWT SET Request and Response
10790 * 2. TWT GET Response
10791 *
10792 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
10793 * This field is applicable for TWT response only.
10794 * This contains status values in enum qca_wlan_vendor_twt_status
10795 * and is passed to the userspace. This is used in TWT SET operation.
10796 * This is a required parameter for
10797 * 1. TWT SET Response
10798 * 2. TWT TERMINATE Response
10799 * 3. TWT SUSPEND Response
10800 * 4. TWT RESUME Response
Hai Shalom60840252021-02-19 19:02:11 -080010801 * 5. TWT NUDGE Response
Hai Shalom899fcc72020-10-19 14:38:18 -070010802 *
10803 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
10804 * This field is applicable for TWT response only.
10805 * This field contains response type from the TWT responder and is
10806 * passed to the userspace. The values for this field are defined in
10807 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10808 * response.
10809 *
10810 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
Hai Shaloma20dcd72022-02-04 13:43:00 -080010811 * In TWT setup command this field contains absolute TSF that will
10812 * be used by TWT requester during setup.
10813 * In TWT response this field contains absolute TSF value of the
10814 * wake time received from the TWT responder and is passed to
10815 * the userspace.
10816 * This is an optional parameter for
10817 * 1. TWT SET Request
Hai Shalom899fcc72020-10-19 14:38:18 -070010818 * This is a required parameter for
10819 * 1. TWT SET Response
10820 * 2. TWT GET Response
10821 *
10822 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10823 * Enable (flag attribute present) - Indicates that the TWT responder
10824 * supports reception of TWT information frame from the TWT requestor.
10825 * Disable (flag attribute not present) - Indicates that the responder
10826 * doesn't support reception of TWT information frame from requestor.
10827 * This is used in
10828 * 1. TWT SET Response
10829 * 2. TWT GET Response
10830 *
10831 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10832 * Represents the MAC address of the peer for which the TWT session
10833 * is being configured. This is used in AP mode to represent the respective
Hai Shaloma20dcd72022-02-04 13:43:00 -080010834 * client.
10835 * In AP mode, this is a required parameter in response for
10836 * 1. TWT SET
10837 * 2. TWT GET
10838 * 3. TWT TERMINATE
10839 * 4. TWT SUSPEND
Hai Shalom899fcc72020-10-19 14:38:18 -070010840 * In STA mode, this is an optional parameter in request and response for
10841 * the above four TWT operations.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010842 * In AP mode, this is a required parameter in request for
10843 * 1. TWT GET
10844 * 2. TWT TERMINATE
Hai Shalom60840252021-02-19 19:02:11 -080010845 *
10846 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10847 * Minimum tolerance limit of wake interval parameter in microseconds.
10848 *
10849 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10850 * Maximum tolerance limit of wake interval parameter in microseconds.
10851 *
10852 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10853 * Minimum tolerance limit of wake duration parameter in microseconds.
10854 *
10855 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10856 * Maximum tolerance limit of wake duration parameter in microseconds.
10857 *
10858 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10859 * TWT state for the given dialog id. The values for this are represented
10860 * by enum qca_wlan_twt_setup_state.
10861 * This is obtained through TWT GET operation.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010862 *
10863 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10864 * This attribute is used to configure wake interval mantissa.
10865 * The unit is microseconds. This attribute, when specified, takes
10866 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10867 * This parameter is used for
10868 * 1. TWT SET Request and Response
10869 * 2. TWT GET Response
10870 *
10871 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10872 * This attribute is used to configure Broadcast TWT ID.
10873 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10874 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10875 * This parameter is used for
10876 * 1. TWT SET Request
10877 * 2. TWT TERMINATE Request
10878 *
10879 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10880 * This attribute is used to configure Broadcast TWT recommendation.
10881 * The Broadcast TWT Recommendation subfield contains a value that indicates
10882 * recommendations on the types of frames that are transmitted by TWT
10883 * scheduled STAs and scheduling AP during the broadcast TWT SP.
10884 * The allowed values are 0 - 3.
10885 * This parameter is used for
10886 * 1. TWT SET Request
10887 *
10888 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10889 * This attribute is used to configure Broadcast TWT Persistence.
10890 * The Broadcast TWT Persistence subfield indicates the number of
10891 * TBTTs during which the Broadcast TWT SPs corresponding to this
10892 * broadcast TWT Parameter set are present. The number of beacon intervals
10893 * during which the Broadcast TWT SPs are present is equal to the value in the
10894 * Broadcast TWT Persistence subfield plus 1 except that the value 255
10895 * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10896 * This parameter is used for
10897 * 1. TWT SET Request
10898 *
10899 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10900 * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
Sunil Ravi7f769292024-07-23 22:21:32 +000010901 * from TWT response frame. During TWT setup request, this attribute is used to
10902 * configure the Responder PM Mode bit in the control field of the TWT element
10903 * for broadcast TWT schedule.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010904 * This parameter is used for
10905 * 1. TWT SET Response
10906 * 2. TWT GET Response
Sunil Ravi7f769292024-07-23 22:21:32 +000010907 * 3. TWT SET Request
Hai Shaloma20dcd72022-02-04 13:43:00 -080010908 *
10909 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10910 * This attribute is used to configure the announce timeout value (in us) in
10911 * the firmware. This timeout value is only applicable for the announced TWT. If
10912 * the timeout value is non-zero the firmware waits up to the timeout value to
10913 * use Data frame as an announcement frame. If the timeout value is 0 the
10914 * firmware sends an explicit QoS NULL frame as the announcement frame on SP
10915 * start. The default value in the firmware is 0.
10916 * This parameter is used for
10917 * 1. TWT SET Request
Sunil Ravi036cec52023-03-29 11:35:17 -070010918 *
10919 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
10920 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010921 */
10922enum qca_wlan_vendor_attr_twt_setup {
10923 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10924 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10925 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10926 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10927 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10928 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10929 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10930 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10931 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10932 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10933 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10934
Hai Shalom899fcc72020-10-19 14:38:18 -070010935 /* TWT Response only attributes */
10936 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10937 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10938 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10939 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10940
10941 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
Hai Shalom60840252021-02-19 19:02:11 -080010942 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10943 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10944 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10945 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10946 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
Hai Shalom899fcc72020-10-19 14:38:18 -070010947
Hai Shaloma20dcd72022-02-04 13:43:00 -080010948 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10949
10950 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10951 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10952 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10953
10954 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10955 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10956
Sunil Ravi036cec52023-03-29 11:35:17 -070010957 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
10958
Hai Shalom39ba6fc2019-01-22 12:40:38 -080010959 /* keep last */
10960 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10961 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10962 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10963};
10964
10965/**
Hai Shalom899fcc72020-10-19 14:38:18 -070010966 * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10967 * TWT operation
10968 *
10969 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10970 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10971 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10972 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10973 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10974 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10975 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10976 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10977 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10978 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10979 * request/response frame
10980 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10981 * frame
10982 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10983 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10984 * unknown reason
10985 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10986 * suspend state
Hai Shalom60840252021-02-19 19:02:11 -080010987 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10988 * invalid IE in the received TWT frame
10989 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10990 * the responder are not in the specified range
10991 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10992 * session due to request from the responder. Used on the TWT_TERMINATE
10993 * notification from the firmware.
10994 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10995 * session due to roaming. Used on the TWT_TERMINATE notification from the
10996 * firmware.
Hai Shaloma20dcd72022-02-04 13:43:00 -080010997 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10998 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
10999 * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
11000 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
11001 * request due to roaming in progress.
11002 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
11003 * setup request due to channel switch in progress.
11004 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
11005 * request due to scan in progress.
11006 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
11007 * terminate an existing TWT session on power save exit request from userspace.
11008 * Used on the TWT_TERMINATE notification from the driver/firmware.
Sunil Ravia04bd252022-05-02 22:54:18 -070011009 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
11010 * required bit in its capabilities.
11011 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
11012 * the TWT required bit(1->0) in its capabilities.
Hai Shalom899fcc72020-10-19 14:38:18 -070011013 */
11014enum qca_wlan_vendor_twt_status {
11015 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
11016 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
11017 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
11018 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
11019 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
11020 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
11021 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
11022 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
11023 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
11024 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
11025 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
11026 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
11027 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
11028 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
Hai Shalom60840252021-02-19 19:02:11 -080011029 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
11030 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
11031 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
11032 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011033 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
11034 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
11035 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
11036 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
11037 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
Sunil Ravia04bd252022-05-02 22:54:18 -070011038 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
11039 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
Hai Shalom899fcc72020-10-19 14:38:18 -070011040};
11041
11042/**
11043 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011044 * TWT (Target Wake Time) resume request. These attributes are sent as part of
11045 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
Hai Shalom899fcc72020-10-19 14:38:18 -070011046 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
11047 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011048 *
11049 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
Hai Shalom899fcc72020-10-19 14:38:18 -070011050 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
11051 * These attributes are used as the SP offset which is the offset from TSF after
11052 * which the wake happens. The units are in microseconds. Please note that
11053 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
11054 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
11055 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
11056 * will be set to zero.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011057 *
11058 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
11059 * This attribute represents the next TWT subfield size.
Hai Shalom899fcc72020-10-19 14:38:18 -070011060 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11061 * and 4 for 64 bits.
11062 *
11063 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
11064 * Flow ID is the unique identifier for each TWT session. This attribute
11065 * represents the respective TWT session to resume.
Hai Shalom60840252021-02-19 19:02:11 -080011066 * Flow ID values from 0 to 254 represent a single TWT session
11067 * Flow ID value of 255 represents all TWT sessions.
11068 * If an invalid dialog id is provided, status
11069 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
Hai Shalom899fcc72020-10-19 14:38:18 -070011070 *
11071 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
11072 * Represents the MAC address of the peer to which TWT Resume is
11073 * being sent. This is used in AP mode to represent the respective
11074 * client and is a required parameter. In STA mode, this is an optional
11075 * parameter
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011076 */
11077enum qca_wlan_vendor_attr_twt_resume {
11078 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
11079 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
11080 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070011081 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
11082 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
11083 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011084
11085 /* keep last */
11086 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
11087 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
11088 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
11089};
11090
11091/**
Hai Shalom60840252021-02-19 19:02:11 -080011092 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
11093 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
11094 * and resume in a single request. These attributes are sent as part of
11095 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11096 *
11097 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
11098 * Flow ID is the unique identifier for each TWT session. This attribute
11099 * represents the respective TWT session to suspend and resume.
11100 * Flow ID values from 0 to 254 represent a single TWT session
11101 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
11102 * and response.
11103 * If an invalid dialog id is provided, status
11104 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
11105 *
11106 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
11107 * This attribute is used as the SP offset which is the offset from
11108 * TSF after which the wake happens. The units are in microseconds.
11109 *
11110 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
11111 * This attribute represents the next TWT subfield size.
11112 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
11113 * and 4 for 64 bits.
11114 *
11115 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
11116 * Represents the MAC address of the peer to which TWT Suspend and Resume is
11117 * being sent. This is used in AP mode to represent the respective
11118 * client and is a required parameter. In STA mode, this is an optional
11119 * parameter.
11120 *
11121 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
11122 * This field contains absolute TSF value of the time at which the TWT
11123 * session will be resumed.
Sunil Ravi89eba102022-09-13 21:04:37 -070011124 *
11125 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
11126 * This field will be used when device supports Flexible TWT.
11127 * This field contains an offset value by which to shift the starting time
11128 * of the next service period. The value of offset can be negative or positive.
11129 * If provided, this attribute will override
11130 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
11131 *
Sunil Ravi036cec52023-03-29 11:35:17 -070011132 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
11133 * alignment.
Hai Shalom60840252021-02-19 19:02:11 -080011134 */
11135enum qca_wlan_vendor_attr_twt_nudge {
11136 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
11137 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
11138 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
11139 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
11140 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
11141 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070011142 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
Sunil Ravi036cec52023-03-29 11:35:17 -070011143 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
Hai Shalom60840252021-02-19 19:02:11 -080011144
11145 /* keep last */
11146 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
11147 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
11148 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
11149};
11150
11151/**
11152 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
11153 * TWT (Target Wake Time) get statistics and clear statistics request.
11154 * These attributes are sent as part of
11155 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11156 *
11157 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
11158 * Flow ID is the unique identifier for each TWT session. This attribute
11159 * represents the respective TWT session for get and clear TWT statistics.
11160 * Flow ID values from 0 to 254 represent a single TWT session
11161 * Flow ID value of 255 represents all TWT sessions in
11162 * 1) TWT GET STATISTICS request and response
11163 * 2) TWT CLEAR STATISTICS request
11164 *
11165 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
11166 * Represents the MAC address of the peer for which TWT Statistics
11167 * is required.
11168 * In AP mode this is used to represent the respective
11169 * client and is a required parameter for
11170 * 1) TWT GET STATISTICS request and response
11171 * 2) TWT CLEAR STATISTICS request and response
11172 * In STA mode, this is an optional parameter.
11173 *
11174 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
11175 * This is the duration of the service period in microseconds.
11176 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11177 *
11178 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
11179 * Average of the actual wake duration observed so far. Unit is microseconds.
11180 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11181 *
11182 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
11183 * The number of TWT service periods elapsed so far.
11184 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11185 *
11186 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
11187 * This is the minimum value of the wake duration observed across
11188 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11189 * microseconds.
11190 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11191 *
11192 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
11193 * This is the maximum value of wake duration observed across
11194 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
11195 * microseconds.
11196 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11197 *
11198 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
11199 * Average number of MPDUs transmitted successfully across
11200 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11201 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11202 *
11203 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
11204 * Average number of MPDUs received successfully across
11205 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11206 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11207 *
11208 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
11209 * Average number of bytes transmitted successfully across
11210 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11211 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11212 *
11213 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
11214 * Average number of bytes received successfully across
11215 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
11216 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11217 *
11218 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
11219 * Status of the TWT GET STATISTICS request.
11220 * This contains status values in enum qca_wlan_vendor_twt_status
11221 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
11222 */
11223enum qca_wlan_vendor_attr_twt_stats {
11224 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
11225 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
11226 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
11227 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
11228 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
11229 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
11230 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
11231 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
11232 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
11233 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
11234 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
11235 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
11236 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
11237
11238 /* keep last */
11239 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
11240 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
11241 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
11242};
11243
11244/**
11245 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities
11246 * supported by the device and the peer.
11247 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
11248 *
11249 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
11250 * TWT non-scheduling STA. This capability is advertised in the HE
11251 * Capability/Extended Capabilities information element in the
11252 * Association Request frame by the device.
11253 *
11254 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
11255 * the TWT scheduling AP. This capability is advertised in the Extended
11256 * Capabilities/HE Capabilities information element.
11257 *
11258 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
11259 * for the broadcast TWT functionality. On the responder side, this indicates
11260 * support for the role of broadcast TWT scheduling functionality. This
11261 * capability is advertised in the HE Capabilities information element.
11262 *
11263 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
11264 * This capability is advertised in the HE Capabilities information element.
11265 *
11266 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
11267 * that it mandates the associated HE STAs to support TWT. This capability is
11268 * advertised by AP in the HE Operation Parameters field of the HE Operation
11269 * information element.
11270 */
11271enum qca_wlan_twt_capa {
11272 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
11273 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
11274 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
11275 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
11276 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
11277};
11278
11279/**
11280 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
11281 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
11282 * operation.
11283 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
11284 * Represents the MAC address of the peer for which the TWT capabilities
11285 * are being queried. This is used in AP mode to represent the respective
11286 * client. In STA mode, this is an optional parameter.
11287 *
11288 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
11289 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
11290 * enum qca_wlan_twt_capa.
11291 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
11292 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
11293 * enum qca_wlan_twt_capa.
11294 */
11295enum qca_wlan_vendor_attr_twt_capability {
11296 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
11297 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
11298 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
11299 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
11300
11301 /* keep last */
11302 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
11303 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
11304 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
11305};
11306
11307/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011308 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
11309 * TWT (Target Wake Time) related parameters. It is used when
11310 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
11311 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
11312 *
11313 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
11314 * This attribute configures AC parameters to be used for all TWT
11315 * sessions in AP mode.
11316 * Uses the enum qca_wlan_ac_type values.
Sunil Ravi7f769292024-07-23 22:21:32 +000011317 *
11318 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute,
11319 * used by TWT responder to indicate unavailability outside of the SPs.
11320 * Enable (flag attribute present) - Indicates that the TWT responder may be
11321 * unavailable outside of the SPs of its broadcast TWT schedule.
11322 * Disable (flag attribute not present) - Indicates that the responder will be
11323 * available for all TWT sessions (including individual TWT).
Hai Shaloma20dcd72022-02-04 13:43:00 -080011324 */
11325enum qca_wlan_vendor_attr_twt_set_param {
11326 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
11327 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
Sunil Ravi7f769292024-07-23 22:21:32 +000011328 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011329
11330 /* keep last */
11331 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
11332 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
11333 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
11334};
11335
11336/**
Hai Shalom899fcc72020-10-19 14:38:18 -070011337 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
11338 * the TWT responder
11339 *
11340 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
11341 * parameters that are different from TWT requesting STA suggested
11342 * or demanded TWT parameters
11343 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
11344 * parameters that are different from TWT requesting STA TWT suggested
11345 * or demanded parameters
11346 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
11347 * setup
11348 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
11349 * setup.
11350 */
11351enum qca_wlan_vendor_twt_setup_resp_type {
11352 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
11353 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
11354 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
11355 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
11356};
11357
11358/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011359 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11360 * Represents the setup type being requested for TWT.
11361 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11362 * parameters but relying on AP to fill the parameters during the negotiation.
11363 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11364 * values which the AP may accept or AP may provide alternative parameters
11365 * which the STA may accept.
11366 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11367 * alternate parameters than the requested ones.
11368 */
11369enum qca_wlan_vendor_twt_setup_req_type {
11370 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11371 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11372 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
11373};
11374
11375/**
11376 * enum qca_wlan_roam_scan_event_type - Type of roam scan event
11377 *
11378 * Indicates the type of roam scan event sent by firmware/driver.
11379 *
11380 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
11381 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
11382 */
11383enum qca_wlan_roam_scan_event_type {
11384 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
11385 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
11386};
11387
11388/**
11389 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
11390 *
11391 * Indicates the reason for triggering roam scan by firmware/driver.
11392 *
11393 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
11394 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
11395 */
11396enum qca_wlan_roam_scan_trigger_reason {
11397 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
11398 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
11399};
11400
11401/**
11402 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
11403 * roam scan related details from driver/firmware to user space. enum values
11404 * are used for NL attributes sent with
11405 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
11406 */
11407enum qca_wlan_vendor_attr_roam_scan {
11408 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
11409 /* Encapsulates type of roam scan event being reported. enum
11410 * qca_wlan_roam_scan_event_type describes the possible range of
11411 * values. u32 attribute.
11412 */
11413 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
11414 /* Encapsulates reason for triggering roam scan. enum
11415 * qca_wlan_roam_scan_trigger_reason describes the possible range of
11416 * values. u32 attribute.
11417 */
11418 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
11419
11420 /* keep last */
11421 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
11422 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
11423 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
11424};
11425
11426/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080011427 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11428 * transport modes and is used by the attribute
11429 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
11430 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11431 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
11432 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11433 * data. The data shall be encapsulated within
11434 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
11435 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11436 */
11437enum qca_wlan_vendor_cfr_data_transport_modes {
11438 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11439 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11440};
11441
11442/**
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011443 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11444 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11445 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
Hai Shalomfdcde762020-04-02 11:19:20 -070011446 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
11447 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
11448 * with phase
11449 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011450 */
11451enum qca_wlan_vendor_cfr_method {
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011452 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
Hai Shalomfdcde762020-04-02 11:19:20 -070011453 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11454 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11455};
11456
11457/**
11458 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11459 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11460 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11461 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11462 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11463 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11464 * is provided by one or more of below attributes:
11465 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11466 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11467 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11468 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11469 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11470 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11471 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11472 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11473 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11474 */
11475enum qca_wlan_vendor_cfr_capture_type {
11476 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11477 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11478 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11479 QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11480 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11481 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011482};
11483
11484/**
11485 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11486 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11487 * Channel Frequency Response capture parameters and enable periodic CFR
11488 * capture.
Hai Shalomfdcde762020-04-02 11:19:20 -070011489 *
11490 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11491 * MAC address of peer. This is for CFR version 1 only.
11492 *
11493 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11494 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
11495 * capture. If this attribute is not present, peer CFR capture is disabled.
11496 *
11497 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11498 * BW of measurement, attribute uses the values in enum nl80211_chan_width
11499 * Supported values: 20, 40, 80, 80+80, 160.
11500 * Note that all targets may not support all bandwidths.
11501 * This attribute is mandatory for version 1 if attribute
11502 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11503 *
11504 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11505 * Periodicity of CFR measurement in milliseconds.
11506 * Periodicity should be a multiple of Base timer.
11507 * Current Base timer value supported is 10 milliseconds (default).
11508 * 0 for one shot capture.
11509 * This attribute is mandatory for version 1 if attribute
11510 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11511 *
11512 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11513 * Method used to capture Channel Frequency Response.
11514 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11515 * This attribute is mandatory for version 1 if attribute
11516 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11517 *
11518 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11519 * Enable periodic CFR capture.
11520 * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11521 * If this attribute is not present, periodic CFR capture is disabled.
11522 *
11523 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
11524 * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11525 * can't be enabled at same time. This attribute is mandatory if target
11526 * support both versions and use one of them.
11527 *
11528 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11529 * This attribute is mandatory for version 2 if
11530 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11531 * Bits 15:0 bitfield indicates which group is to be enabled.
11532 * Bits 31:16 Reserved for future use.
11533 *
11534 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11535 * CFR capture duration in microsecond. This attribute is mandatory for
11536 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11537 *
11538 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11539 * CFR capture interval in microsecond. This attribute is mandatory for
11540 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11541 *
11542 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11543 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11544 * This attribute is mandatory for version 2.
11545 *
11546 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11547 * Bitfield indicating which user in the current UL MU transmissions are
11548 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
11549 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
11550 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
11551 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
11552 * reserved for future use. This is for CFR version 2 only.
11553 *
11554 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11555 * Indicates the number of consecutive RX frames to be skipped before CFR
11556 * capture is enabled again. This is for CFR version 2 only.
11557 *
11558 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11559 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11560 *
11561 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11562 * the following group attributes:
11563 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11564 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11565 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11566 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11567 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11568 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11569 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11570 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11571 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11572 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11573 *
11574 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11575 * Target supports multiple groups for some configurations. The group number
11576 * can be any value between 0 and 15. This is for CFR version 2 only.
11577 *
11578 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11579 * Transmitter address which is used to filter frames. This MAC address takes
11580 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
11581 * version 2 only.
11582 *
11583 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11584 * Receiver address which is used to filter frames. This MAC address takes
11585 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
11586 * version 2 only.
11587 *
11588 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11589 * Mask of transmitter address which is used to filter frames. This is for CFR
11590 * version 2 only.
11591 *
11592 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11593 * Mask of receiver address which is used to filter frames. This is for CFR
11594 * version 2 only.
11595 *
11596 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11597 * Indicates frames with a specific NSS will be filtered for CFR capture.
11598 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
11599 * capture to be done for frames matching the NSS specified within this bitmask.
11600 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
11601 * bit 0 : NSS 1
11602 * bit 1 : NSS 2
11603 * ...
11604 * bit 7 : NSS 8
11605 *
11606 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11607 * Indicates frames with a specific bandwidth will be filtered for CFR capture.
11608 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
11609 * capture to be done for frames matching the bandwidths specified within this
11610 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
11611 * numerated in enum nl80211_band (although not all bands may be supported
11612 * by a given device).
11613 *
11614 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11615 * Management frames matching the subtype filter categories will be filtered in
11616 * by MAC for CFR capture. This is a bitmask in which each bit represents the
11617 * corresponding Management frame subtype value per IEEE Std 802.11-2016,
11618 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
11619 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
11620 *
11621 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11622 * Control frames matching the subtype filter categories will be filtered in by
11623 * MAC for CFR capture. This is a bitmask in which each bit represents the
11624 * corresponding Control frame subtype value per IEEE Std 802.11-2016,
11625 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
11626 *
11627 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11628 * Data frames matching the subtype filter categories will be filtered in by
11629 * MAC for CFR capture. This is a bitmask in which each bit represents the
11630 * corresponding Data frame subtype value per IEEE Std 802.11-2016,
11631 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
Hai Shaloma20dcd72022-02-04 13:43:00 -080011632 *
11633 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11634 * Userspace can use this attribute to specify the driver about which transport
11635 * mode shall be used by the driver to send CFR data to userspace. Uses values
11636 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11637 * not present, the driver shall use the default transport mechanism which is
11638 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11639 *
11640 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11641 * Userspace can use this attribute to specify the nl port id of the application
11642 * which receives the CFR data and processes it further so that the drivers can
11643 * unicast the netlink events to a specific application. Optionally included
11644 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11645 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11646 * shall multicast the netlink events when this attribute is not included.
11647 *
11648 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11649 * This attribute will be used by the driver to encapsulate and send CFR data
11650 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11651 * asynchronous event when the driver is configured to send CFR data using
11652 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
Sunil Ravi036cec52023-03-29 11:35:17 -070011653 *
11654 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
11655 * alignment.
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011656 */
11657enum qca_wlan_vendor_peer_cfr_capture_attr {
11658 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011659 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011660 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011661 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011662 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011663 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011664 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
Hai Shalomfdcde762020-04-02 11:19:20 -070011665 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11666 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11667 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11668 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11669 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11670 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11671 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11672 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11673 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11674 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11675 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
11676 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
11677 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
11678 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
11679 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
11680 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
11681 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
11682 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
11683 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
Hai Shaloma20dcd72022-02-04 13:43:00 -080011684 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
11685 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
11686 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070011687 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
Hai Shalom39ba6fc2019-01-22 12:40:38 -080011688
11689 /* Keep last */
11690 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
11691 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
11692 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
11693};
11694
Hai Shalom74f70d42019-02-11 14:42:39 -080011695/**
11696 * enum qca_wlan_throughput_level - Current throughput level
11697 *
11698 * Indicates the current level of throughput calculated by the driver. The
11699 * driver may choose different thresholds to decide whether the throughput level
11700 * is low or medium or high based on variety of parameters like physical link
11701 * capacity of the current connection, the number of packets being dispatched
11702 * per second, etc. The throughput level events might not be consistent with the
11703 * actual current throughput value being observed.
11704 *
11705 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
11706 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
11707 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
11708 */
11709enum qca_wlan_throughput_level {
11710 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
11711 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
11712 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
11713};
11714
11715/**
11716 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
11717 * report throughput changes from the driver to user space. enum values are used
11718 * for netlink attributes sent with
11719 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
11720 */
11721enum qca_wlan_vendor_attr_throughput_change {
11722 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
11723 /* Indicates the direction of throughput in which the change is being
11724 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
11725 */
11726 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
11727 /* Indicates the newly observed throughput level. enum
11728 * qca_wlan_throughput_level describes the possible range of values.
11729 * u8 attribute.
11730 */
11731 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
11732 /* Indicates the driver's guidance on the new value to be set to
11733 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
11734 * driver may optionally include this attribute.
11735 */
11736 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
11737 /* Indicates the driver's guidance on the new value to be set to
11738 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
11739 * values are from -31 to 31. The driver may optionally include this
11740 * attribute.
11741 */
11742 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
11743 /* Indicates the driver's guidance on the new value to be set to
11744 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
11745 * optionally include this attribute.
11746 */
11747 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
11748
11749 /* keep last */
11750 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
11751 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
11752 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
11753};
11754
11755/**
11756 * enum qca_coex_config_profiles - This enum defines different types of
11757 * traffic streams that can be prioritized one over the other during coex
11758 * scenarios.
11759 * The types defined in this enum are categorized in the below manner.
11760 * 0 - 31 values corresponds to WLAN
11761 * 32 - 63 values corresponds to BT
11762 * 64 - 95 values corresponds to Zigbee
11763 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
11764 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
11765 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
11766 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
11767 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
11768 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
11769 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
11770 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
11771 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
11772 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
11773 * @QCA_BT_A2DP: Prioritize BT A2DP
11774 * @QCA_BT_BLE: Prioritize BT BLE
11775 * @QCA_BT_SCO: Prioritize BT SCO
11776 * @QCA_ZB_LOW: Prioritize Zigbee Low
11777 * @QCA_ZB_HIGH: Prioritize Zigbee High
11778 */
11779enum qca_coex_config_profiles {
11780 /* 0 - 31 corresponds to WLAN */
11781 QCA_WIFI_STA_DISCOVERY = 0,
11782 QCA_WIFI_STA_CONNECTION = 1,
11783 QCA_WIFI_STA_CLASS_3_MGMT = 2,
11784 QCA_WIFI_STA_DATA = 3,
11785 QCA_WIFI_STA_ALL = 4,
11786 QCA_WIFI_SAP_DISCOVERY = 5,
11787 QCA_WIFI_SAP_CONNECTION = 6,
11788 QCA_WIFI_SAP_CLASS_3_MGMT = 7,
11789 QCA_WIFI_SAP_DATA = 8,
11790 QCA_WIFI_SAP_ALL = 9,
Hai Shalom021b0b52019-04-10 11:17:58 -070011791 QCA_WIFI_CASE_MAX = 31,
Hai Shalom74f70d42019-02-11 14:42:39 -080011792 /* 32 - 63 corresponds to BT */
11793 QCA_BT_A2DP = 32,
11794 QCA_BT_BLE = 33,
11795 QCA_BT_SCO = 34,
Hai Shalom021b0b52019-04-10 11:17:58 -070011796 QCA_BT_CASE_MAX = 63,
Hai Shalom74f70d42019-02-11 14:42:39 -080011797 /* 64 - 95 corresponds to Zigbee */
11798 QCA_ZB_LOW = 64,
Hai Shalom021b0b52019-04-10 11:17:58 -070011799 QCA_ZB_HIGH = 65,
11800 QCA_ZB_CASE_MAX = 95,
11801 /* 0xff is default value if the u8 profile value is not set. */
11802 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
11803};
11804
11805/**
11806 * enum qca_vendor_attr_coex_config_types - Coex configurations types.
11807 * This enum defines the valid set of values of coex configuration types. These
11808 * values may used by attribute
11809 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
11810 *
11811 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
11812 * weights to default values.
11813 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
11814 * weights with configurability value.
11815 */
11816enum qca_vendor_attr_coex_config_types {
11817 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11818 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11819 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
Hai Shalom74f70d42019-02-11 14:42:39 -080011820};
11821
11822/**
11823 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
11824 *
11825 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
11826 * length array of 8-bit values from enum qca_coex_config_profiles.
11827 * FW will prioritize the profiles in the order given in the array encapsulated
11828 * in this attribute.
11829 * For example:
11830 * -----------------------------------------------------------------------
11831 * | 1 | 34 | 32 | 65 |
11832 * -----------------------------------------------------------------------
11833 * If the attribute contains the values defined in above array then it means
11834 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
11835 * 2) BT_SCO has priority over BT_A2DP.
11836 * 3) BT_A2DP has priority over ZIGBEE HIGH.
11837 * Profiles which are not listed in this array shall not be preferred over the
11838 * profiles which are listed in the array as a part of this attribute.
11839 */
11840enum qca_vendor_attr_coex_config {
11841 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11842 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
11843
11844 /* Keep last */
11845 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
11846 QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
11847 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
11848};
11849
11850/**
Hai Shalom021b0b52019-04-10 11:17:58 -070011851 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11852 * attributes
11853 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11854 *
11855 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11856 * Indicate config type.
11857 * The config types are 32-bit values from qca_vendor_attr_coex_config_types
11858 *
11859 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11860 * Indicate the Priority 1 profiles.
11861 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11862 * In same priority level, maximum to 4 profiles can be set here.
11863 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11864 * Indicate the Priority 2 profiles.
11865 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11866 * In same priority level, maximum to 4 profiles can be set here.
11867 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11868 * Indicate the Priority 3 profiles.
11869 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11870 * In same priority level, maximum to 4 profiles can be set here.
11871 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11872 * Indicate the Priority 4 profiles.
11873 * The profiles are 8-bit values from enum qca_coex_config_profiles.
11874 * In same priority level, maximum to 4 profiles can be set here.
11875 * NOTE:
11876 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11877 * arrangement:
11878 * 1: In the same u32 attribute (priority x), the profiles enum values own
11879 * same priority level.
11880 * 2: 0xff is default value if the u8 profile value is not set.
11881 * 3: max to 4 rules/profiles in same priority level.
11882 * 4: max to 4 priority level (priority 1 - priority 4)
11883 * 5: one priority level only supports one scenario from WLAN/BT/ZB,
11884 * hybrid rules not support.
11885 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11886 * remain blank to reset all parameters.
11887 * For example:
11888 *
11889 * If the attributes as follow:
11890 * priority 1:
11891 * ------------------------------------
11892 * | 0xff | 0 | 1 | 2 |
11893 * ------------------------------------
11894 * priority 2:
11895 * -------------------------------------
11896 * | 0xff | 0xff | 0xff | 32 |
11897 * -------------------------------------
11898 * priority 3:
11899 * -------------------------------------
11900 * | 0xff | 0xff | 0xff | 65 |
11901 * -------------------------------------
11902 * then it means:
11903 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11904 * owns same priority level.
11905 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11906 * has priority over BT_A2DP and ZB_HIGH.
11907 * 3: BT_A2DP has priority over ZB_HIGH.
11908 */
Hai Shalom021b0b52019-04-10 11:17:58 -070011909enum qca_vendor_attr_coex_config_three_way {
11910 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11911 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11912 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11913 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11914 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11915 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11916
11917 /* Keep last */
11918 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11919 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11920 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11921};
11922
11923/**
Hai Shalom74f70d42019-02-11 14:42:39 -080011924 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
11925 *
11926 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
11927 * (STA/AP) for the connected link.
11928 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
11929 * &struct nl80211_sta_flag_update for the respective connected link. MAC
11930 * address of the peer represented by
11931 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
11932 */
11933enum qca_wlan_vendor_attr_link_properties {
11934 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
11935 /* 1 - 3 are reserved */
11936 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
11937 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
11938
11939 /* Keep last */
11940 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
11941 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
11942 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
11943};
11944
Hai Shalom021b0b52019-04-10 11:17:58 -070011945/**
11946 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11947 * This enum defines the valid set of values of peer stats cache types. These
11948 * values are used by attribute
11949 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
11950 *
11951 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
11952 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
11953 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
11954 * statistics
11955 */
11956enum qca_vendor_attr_peer_stats_cache_type {
11957 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11958
11959 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11960 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11961 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11962};
11963
11964/**
11965 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11966 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11967 * Information in these attributes is used to flush peer rate statistics from
11968 * the driver to user application.
11969 *
11970 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11971 * Indicate peer statistics cache type.
11972 * The statistics types are 32-bit values from
11973 * enum qca_vendor_attr_peer_stats_cache_type.
11974 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11975 * of size 6 octets, representing the peer MAC address.
11976 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11977 * containing buffer of statistics to send to application layer entity.
11978 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11979 * representing a cookie for peer unique session.
Sunil Ravi036cec52023-03-29 11:35:17 -070011980 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
11981 * 64-bit alignment.
Hai Shalom021b0b52019-04-10 11:17:58 -070011982 */
11983enum qca_wlan_vendor_attr_peer_stats_cache_params {
11984 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11985
11986 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11987 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11988 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11989 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070011990 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
Hai Shalom021b0b52019-04-10 11:17:58 -070011991
11992 /* Keep last */
11993 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11994 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11995 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11996};
11997
11998/**
11999 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
12000 * This enum defines all the possible states of Zigbee, which can be
12001 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
12002 *
12003 * @ZIGBEE_IDLE: Zigbee in idle state
12004 * @ZIGBEE_FORM_NETWORK: Zigbee forming network
12005 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
12006 * @ZIGBEE_JOIN: Zigbee joining network
12007 * @ZIGBEE_NETWORK_UP: Zigbee network is up
12008 * @ZIGBEE_HMI: Zigbee in HMI mode
12009 */
12010enum qca_mpta_helper_attr_zigbee_state {
12011 ZIGBEE_IDLE = 0,
12012 ZIGBEE_FORM_NETWORK = 1,
12013 ZIGBEE_WAIT_JOIN = 2,
12014 ZIGBEE_JOIN = 3,
12015 ZIGBEE_NETWORK_UP = 4,
12016 ZIGBEE_HMI = 5,
12017};
12018
12019/*
12020 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
12021 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
12022 */
12023enum qca_mpta_helper_vendor_attr {
12024 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
12025 /* Optional attribute used to update Zigbee state.
12026 * enum qca_mpta_helper_attr_zigbee_state.
12027 * NLA_U32 attribute.
12028 */
12029 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
12030 /* Optional attribute used to configure WLAN duration for Shape-OCS
12031 * during interrupt.
12032 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
12033 * Value range 0 ~ 300 (ms).
12034 * NLA_U32 attribute.
12035 */
12036 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
12037 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12038 * during interrupt.
12039 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
12040 * Value range 0 ~ 300 (ms).
12041 * NLA_U32 attribute.
12042 */
12043 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
12044 /* Optional attribute used to configure WLAN duration for Shape-OCS
12045 * monitor period.
12046 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
12047 * Value range 0 ~ 300 (ms)
12048 * NLA_U32 attribute
12049 */
12050 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
12051 /* Optional attribute used to configure non-WLAN duration for Shape-OCS
12052 * monitor period.
12053 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
12054 * Value range 0 ~ 300 (ms)
12055 * NLA_U32 attribute
12056 */
12057 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
12058 /* Optional attribute used to configure OCS interrupt duration.
12059 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
12060 * Value range 1000 ~ 20000 (ms)
12061 * NLA_U32 attribute
12062 */
12063 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
12064 /* Optional attribute used to configure OCS monitor duration.
12065 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
12066 * Value range 1000 ~ 20000 (ms)
12067 * NLA_U32 attribute
12068 */
12069 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
12070 /* Optional attribute used to notify WLAN firmware the current Zigbee
12071 * channel.
12072 * Value range 11 ~ 26
12073 * NLA_U32 attribute
12074 */
12075 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
12076 /* Optional attribute used to configure WLAN mute duration.
12077 * Value range 0 ~ 400 (ms)
12078 * NLA_U32 attribute
12079 */
12080 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
12081
12082 /* keep last */
12083 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
12084 QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
12085 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
12086};
12087
Hai Shalom81f62d82019-07-22 12:10:00 -070012088/**
12089 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
12090 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
12091 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
12092 *
12093 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
12094 * to request the driver to start reporting Beacon frames.
12095 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
12096 * request the driver to stop reporting Beacon frames.
12097 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
12098 * userspace to report received Beacon frames.
12099 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
12100 * to indicate that the driver is going to pause reporting Beacon frames.
12101 */
12102enum qca_wlan_vendor_beacon_reporting_op_types {
12103 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
12104 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
12105 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
12106 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
12107};
12108
12109/**
12110 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
12111 * of reasons for which the driver is pausing reporting Beacon frames. Will be
12112 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
12113 *
12114 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
12115 * reasons.
12116 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
12117 * driver/firmware is starting a scan.
12118 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
12119 * driver/firmware disconnects from the ESS and indicates the disconnection to
12120 * userspace (non-seamless roaming case). This reason code will be used by the
12121 * driver/firmware to indicate stopping of beacon report events. Userspace will
12122 * need to start beacon reporting again (if desired) by sending vendor command
12123 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
12124 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
12125 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
12126 * completed.
12127 */
12128enum qca_wlan_vendor_beacon_reporting_pause_reasons {
12129 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
12130 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
12131 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
12132};
12133
12134/*
12135 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
12136 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
12137 */
12138enum qca_wlan_vendor_attr_beacon_reporting_params {
12139 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
12140 /* Specifies the type of operation that the vendor command/event is
12141 * intended for. Possible values for this attribute are defined in
12142 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
12143 */
12144 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
12145 /* Optionally set by userspace to request the driver to report Beacon
12146 * frames using asynchronous vendor events when the
12147 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12148 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12149 * If this flag is not set, the driver will only update Beacon frames in
12150 * cfg80211 scan cache but not send any vendor events.
12151 */
12152 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
12153 /* Optionally used by userspace to request the driver/firmware to report
12154 * Beacon frames periodically when the
12155 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12156 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
12157 * u32 attribute, indicates the period of Beacon frames to be reported
12158 * and in the units of beacon interval.
12159 * If this attribute is missing in the command, then the default value
12160 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
12161 * Zero is an invalid value.
12162 * If a valid value is received for this attribute, the driver will
12163 * update the cfg80211 scan cache periodically as per the value received
12164 * in this attribute in addition to updating the cfg80211 scan cache
12165 * when there is significant change in Beacon frame IEs.
12166 */
12167 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
12168 /* Used by the driver to encapsulate the SSID when the
12169 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12170 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12171 * u8 array with a maximum size of 32.
12172 *
12173 * When generating beacon report from non-MBSSID Beacon frame, the SSID
12174 * will be taken from the SSID element of the received Beacon frame.
12175 *
12176 * When generating beacon report from Multiple BSSID Beacon frame and if
12177 * the BSSID of the current connected BSS matches the BSSID of the
12178 * transmitting BSS, the SSID will be taken from the SSID element of the
12179 * received Beacon frame.
12180 *
12181 * When generating beacon report from Multiple BSSID Beacon frame and if
12182 * the BSSID of the current connected BSS matches the BSSID of one of
12183 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
12184 * included in the nontransmitted BSS profile whose derived BSSID is
12185 * same as the BSSID of the current connected BSS. When there is no
12186 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
12187 * of current connected* BSS, this attribute will not be present.
12188 */
12189 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
12190 /* Used by the driver to encapsulate the BSSID of the AP to which STA is
12191 * currently connected to when the
12192 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12193 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
12194 * fixed size of 6 bytes.
12195 *
12196 * When generating beacon report from a Multiple BSSID beacon and the
12197 * current connected BSSID matches one of the nontransmitted BSSIDs in a
12198 * Multiple BSSID set, this BSSID will be that particular nontransmitted
12199 * BSSID and not the transmitted BSSID (i.e., the transmitting address
12200 * of the Beacon frame).
12201 */
12202 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
12203 /* Used by the driver to encapsulate the frequency in MHz on which
12204 * the Beacon frame was received when the
12205 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
12206 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12207 * u32 attribute.
12208 */
12209 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
12210 /* Used by the driver to encapsulate the Beacon interval
12211 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12212 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12213 * u16 attribute. The value will be copied from the Beacon frame and the
12214 * units are TUs.
12215 */
12216 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
12217 /* Used by the driver to encapsulate the Timestamp field from the Beacon
12218 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
12219 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
12220 * u64 attribute.
12221 */
12222 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
12223 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
12224 * Beacon frame is received in the driver when the
12225 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12226 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
12227 * the units of nanoseconds. This value is expected to have accuracy of
12228 * about 10 ms.
12229 */
12230 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
12231 /* Used by the driver to encapsulate the IEs of the Beacon frame from
12232 * which this event is generated when the
12233 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12234 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
12235 */
12236 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
12237 /* Used by the driver to specify the reason for the driver/firmware to
12238 * pause sending beacons to userspace when the
12239 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12240 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
12241 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
12242 * attribute.
12243 */
12244 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
12245 /* Used by the driver to specify whether the driver will automatically
12246 * resume reporting beacon events to userspace later (for example after
12247 * the ongoing off-channel activity is completed etc.) when the
12248 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12249 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
12250 */
12251 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
12252 /* Optionally set by userspace to request the driver not to resume
12253 * beacon reporting after a pause is completed, when the
12254 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
12255 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
12256 * If this flag is set, the driver will not resume beacon reporting
12257 * after any pause in beacon reporting is completed. Userspace has to
12258 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
12259 * to initiate beacon reporting again. If this flag is set in the recent
12260 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
12261 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
12262 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
12263 * set by the driver. Setting this flag until and unless there is a
12264 * specific need is not recommended as there is a chance of some beacons
12265 * received after pause command and next start command being not
12266 * reported.
12267 */
12268 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
Sunil Ravi036cec52023-03-29 11:35:17 -070012269 /* Attribute used for padding for 64-bit alignment */
12270 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
Hai Shalom81f62d82019-07-22 12:10:00 -070012271
12272 /* Keep last */
12273 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
12274 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
12275 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
12276};
12277
12278/**
12279 * enum qca_vendor_interop_issues_ap_type - Interop issue types
12280 * This enum defines the valid set of values of interop issue types. These
12281 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
12282 *
12283 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
12284 * when the STA's Qpower feature is enabled.
12285 */
12286enum qca_vendor_interop_issues_ap_type {
12287 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
12288 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
12289};
12290
12291/**
12292 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
12293 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
12294 *
12295 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
12296 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
12297 * 32-bit unsigned value. The values defined in enum
12298 * qca_vendor_interop_issues_ap_type are used.
12299 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
12300 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
12301 * It is present and mandatory for the command but is not used for the event
12302 * since only a single BSSID is reported in an event.
12303 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
12304 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
12305 * attribute in command case and without such encapsulation in the event case.
12306 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
12307 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
12308 */
12309enum qca_vendor_attr_interop_issues_ap {
12310 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
12311 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
12312 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
12313 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
12314 /* keep last */
12315 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
12316 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
12317 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
12318};
12319
Hai Shalomc3565922019-10-28 11:58:20 -070012320/**
12321 * enum qca_vendor_oem_device_type - Represents the target device in firmware.
12322 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
12323 *
12324 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
12325 * a virtual device.
12326 *
12327 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
12328 * a physical device.
12329 */
12330enum qca_vendor_oem_device_type {
12331 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
12332 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
12333};
12334
12335/**
12336 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
12337 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
12338 *
Hai Shalom899fcc72020-10-19 14:38:18 -070012339 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
12340 * used to set/query the data to/from the firmware. On query, the same
12341 * attribute is used to carry the respective data in the reply sent by the
12342 * driver to userspace. The request to set/query the data and the format of the
12343 * respective data from the firmware are embedded in the attribute. The
12344 * maximum size of the attribute payload is 1024 bytes.
12345 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
12346 * attribute when the data is queried from the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012347 *
12348 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
12349 * based on this field. This optional attribute is included to specify whether
12350 * the device type is a virtual device or a physical device for the
12351 * command/event. This attribute can be omitted for a virtual device (default)
12352 * command/event.
12353 * This u8 attribute is used to carry information for the device type using
12354 * values defined by enum qca_vendor_oem_device_type.
Hai Shalom899fcc72020-10-19 14:38:18 -070012355 *
12356 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
12357 * is set when the userspace queries data from the firmware. This attribute
12358 * should not be set when userspace sets the OEM data to the firmware.
Hai Shalomc3565922019-10-28 11:58:20 -070012359 */
12360enum qca_wlan_vendor_attr_oem_data_params {
12361 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
12362 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
12363 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
Hai Shalom899fcc72020-10-19 14:38:18 -070012364 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
Hai Shalomc3565922019-10-28 11:58:20 -070012365
12366 /* keep last */
12367 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
12368 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
12369 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
12370};
12371
12372/**
12373 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
12374 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
12375 *
12376 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
12377 * Nested attribute containing multiple ranges with following attributes:
Hai Shaloma20dcd72022-02-04 13:43:00 -080012378 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
12379 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
12380 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
Hai Shalomc3565922019-10-28 11:58:20 -070012381 *
12382 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
12383 * Starting center frequency in MHz.
12384 *
12385 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
12386 * Ending center frequency in MHz.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012387 *
12388 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
12389 * s32 attribute, optional. It is a per frequency range attribute.
12390 * The maximum TX power limit from user space is to be applied on an
12391 * unrestricted interface for corresponding frequency range. It is also
12392 * possible that the actual TX power may be even lower than this cap due to
12393 * other considerations such as regulatory compliance, SAR, etc. In absence of
12394 * this attribute the driver shall follow current behavior which means
12395 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
12396 * power derived by the driver based on regulatory/SAR during interface up.
12397 *
12398 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
12399 * u32 attribute, optional. Indicates all the interface types which are
12400 * restricted for all frequency ranges provided in
12401 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
12402 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
12403 * This attribute encapsulates bitmasks of interface types defined in
12404 * enum nl80211_iftype. If an interface is marked as restricted the driver must
12405 * move to a safe channel and if no safe channel is available the driver shall
12406 * terminate that interface functionality. In absence of this attribute,
12407 * interface (SAP/P2P) can still continue operating on an unsafe channel with
12408 * TX power limit derived from either
12409 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
12410 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
12411 * is not provided.
Sunil Ravi99c035e2024-07-12 01:42:03 +000012412 *
12413 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional.
12414 * This specifies the interface index (netdev) for which the corresponding
12415 * configurations are applied. If the interface index is not specified, the
12416 * configurations are applied based on
12417 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK.
12418 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this
12419 * attribute shall have the matching nl80211_iftype.
Hai Shalomc3565922019-10-28 11:58:20 -070012420 */
12421enum qca_wlan_vendor_attr_avoid_frequency_ext {
12422 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
12423 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
12424 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
12425 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012426 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
12427 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
Sunil Ravi99c035e2024-07-12 01:42:03 +000012428 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6,
Hai Shalomc3565922019-10-28 11:58:20 -070012429
12430 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
12431 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
12432 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
12433};
12434
12435/*
12436 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
12437 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
12438 */
12439enum qca_wlan_vendor_attr_add_sta_node_params {
12440 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
12441 /* 6 byte MAC address of STA */
12442 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
12443 /* Authentication algorithm used by the station of size u16;
12444 * defined in enum nl80211_auth_type.
12445 */
12446 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
12447
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012448 /*
12449 * This flag attribute is set if the node being added is an
12450 * MLD STA node.
12451 */
12452 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
12453
Hai Shalomc3565922019-10-28 11:58:20 -070012454 /* keep last */
12455 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12456 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12457 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12458};
12459
12460/**
12461 * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12462 * This enum defines the valid set of values of BT coex chain mode.
12463 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12464 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12465 *
Sunil Ravi89eba102022-09-13 21:04:37 -070012466 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12467 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12468 * separated, hybrid mode.
12469 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12470 * separated, fixed FDD mode.
Hai Shalomc3565922019-10-28 11:58:20 -070012471 */
12472enum qca_btc_chain_mode {
12473 QCA_BTC_CHAIN_SHARED = 0,
Sunil Ravi89eba102022-09-13 21:04:37 -070012474 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12475 QCA_BTC_CHAIN_SEPARATED_FDD = 2,
Hai Shalomc3565922019-10-28 11:58:20 -070012476};
12477
Sunil Ravi89eba102022-09-13 21:04:37 -070012478/* deprecated legacy name */
12479#define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12480
Hai Shalomc3565922019-10-28 11:58:20 -070012481/**
12482 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12483 * chain mode.
12484 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12485 *
12486 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12487 * Indicates the BT coex chain mode, are 32-bit values from
12488 * enum qca_btc_chain_mode. This attribute is mandatory.
12489 *
12490 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12491 * If set, vdev should be restarted when BT coex chain mode is updated.
12492 * This attribute is optional.
12493 */
12494enum qca_vendor_attr_btc_chain_mode {
12495 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12496 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12497 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12498
12499 /* Keep last */
12500 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12501 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12502 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12503};
12504
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012505/**
12506 * enum qca_vendor_wlan_sta_flags - Station feature flags
12507 * Bits will be set to 1 if the corresponding features are enabled.
12508 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12509 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12510 for the station
12511 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12512 for the station
12513 */
12514enum qca_vendor_wlan_sta_flags {
12515 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12516 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12517 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12518};
12519
12520/**
12521 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12522 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12523 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12524 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12525 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12526 */
12527enum qca_vendor_wlan_sta_guard_interval {
12528 QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12529 QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12530 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12531 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12532};
12533
12534/**
12535 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12536 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12537 *
12538 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
Hai Shalomfdcde762020-04-02 11:19:20 -070012539 * Required attribute in request for AP mode only, 6-byte MAC address,
12540 * corresponding to the station's MAC address for which information is
12541 * requested. For STA mode this is not required as the info always correspond
12542 * to the self STA and the current/last association.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012543 *
12544 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12545 * Optionally used in response, u32 attribute, contains a bitmap of different
12546 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12547 *
12548 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12549 * Optionally used in response, u32 attribute, possible values are defined in
12550 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12551 * Guard interval used by the station.
12552 *
12553 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12554 * Optionally used in response, u32 attribute, used in AP mode only.
12555 * Value indicates the number of data frames received from station with retry
12556 * bit set to 1 in FC.
12557 *
12558 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12559 * Optionally used in response, u32 attribute, used in AP mode only.
12560 * Counter for number of data frames with broadcast or multicast address in
12561 * the destination address received from the station.
12562 *
12563 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12564 * Optionally used in response, u32 attribute, used in both STA and AP modes.
12565 * Value indicates the number of data frames successfully transmitted only
12566 * after retrying the packets and for which the TX status has been updated
12567 * back to host from target.
12568 *
12569 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012570 * Optionally used in response, u32 attribute, used in both STA and AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012571 * Value indicates the number of data frames not transmitted successfully even
12572 * after retrying the packets for the number of times equal to the total number
12573 * of retries allowed for that packet and for which the TX status has been
12574 * updated back to host from target.
12575 *
12576 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12577 * Optionally used in response, u32 attribute, used in AP mode only.
12578 * Counter in the target for the number of data frames successfully transmitted
12579 * to the station.
12580 *
12581 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12582 * Optionally used in response, u32 attribute, used in AP mode only.
12583 * Value indicates the number of data frames successfully transmitted only
12584 * after retrying the packets.
12585 *
12586 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
Hai Shalomfdcde762020-04-02 11:19:20 -070012587 * Optionally used in response, u32 attribute, used in both STA & AP mode.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012588 * Value indicates the number of data frames not transmitted successfully even
12589 * after retrying the packets for the number of times equal to the total number
12590 * of retries allowed for that packet.
Hai Shalomfdcde762020-04-02 11:19:20 -070012591 *
12592 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12593 * the STA mode only. Represent the number of probe requests sent by the STA
12594 * while attempting to roam on missing certain number of beacons from the
12595 * connected AP. If queried in the disconnected state, this represents the
12596 * count for the last connected state.
12597 *
12598 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12599 * the STA mode. Represent the number of probe responses received by the station
12600 * while attempting to roam on missing certain number of beacons from the
12601 * connected AP. When queried in the disconnected state, this represents the
12602 * count when in last connected state.
12603 *
12604 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12605 * STA mode only. Represents the total number of frames sent out by STA
12606 * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12607 * only for the connect session. Represents the count of last connected session,
12608 * when queried in the disconnected state.
12609 *
12610 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12611 * Total number of RTS sent out by the STA. This data is maintained per connect
12612 * session. Represents the count of last connected session, when queried in the
12613 * disconnected state.
12614 *
12615 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12616 * STA mode.Represent the number of RTS transmission failure that reach retry
12617 * limit. This data is maintained per connect session. Represents the count of
12618 * last connected session, when queried in the disconnected state.
12619 *
12620 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12621 * the STA mode. Represent the total number of non aggregated frames transmitted
12622 * by the STA. This data is maintained per connect session. Represents the count
12623 * of last connected session, when queried in the disconnected state.
12624 *
12625 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12626 * STA mode. Represent the total number of aggregated frames transmitted by the
12627 * STA. This data is maintained per connect session. Represents the count of
12628 * last connected session, when queried in the disconnected state.
12629 *
12630 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12631 * the STA mode. Represents the number of received frames with a good PLCP. This
12632 * data is maintained per connect session. Represents the count of last
12633 * connected session, when queried in the disconnected state.
12634 *
12635 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12636 * used in the STA mode. Represents the number of occasions that no valid
12637 * delimiter is detected by A-MPDU parser. This data is maintained per connect
12638 * session. Represents the count of last connected session, when queried in the
12639 * disconnected state.
12640 *
12641 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12642 * STA mode. Represents the number of frames for which CRC check failed in the
12643 * MAC. This data is maintained per connect session. Represents the count of
12644 * last connected session, when queried in the disconnected state.
12645 *
12646 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12647 * STA mode. Represents the number of unicast ACKs received with good FCS. This
12648 * data is maintained per connect session. Represents the count of last
12649 * connected session, when queried in the disconnected state.
12650 *
12651 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12652 * mode. Represents the number of received Block Acks. This data is maintained
12653 * per connect session. Represents the count of last connected session, when
12654 * queried in the disconnected state.
12655 *
12656 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12657 * mode. Represents the number of beacons received from the connected BSS. This
12658 * data is maintained per connect session. Represents the count of last
12659 * connected session, when queried in the disconnected state.
12660 *
12661 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12662 * STA mode. Represents the number of beacons received by the other BSS when in
12663 * connected state (through the probes done by the STA). This data is maintained
12664 * per connect session. Represents the count of last connected session, when
12665 * queried in the disconnected state.
12666 *
12667 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12668 * the STA mode. Represents the number of received DATA frames with good FCS and
12669 * matching Receiver Address when in connected state. This data is maintained
12670 * per connect session. Represents the count of last connected session, when
12671 * queried in the disconnected state.
12672 *
12673 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
12674 * STA mode. Represents the number of RX Data multicast frames dropped by the HW
12675 * when in the connected state. This data is maintained per connect session.
12676 * Represents the count of last connected session, when queried in the
12677 * disconnected state.
12678 *
12679 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
12680 * STA mode. This represents the target power in dBm for the transmissions done
12681 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
12682 * connect session. Represents the count of last connected session, when
12683 * queried in the disconnected state.
12684 *
12685 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
12686 * STA mode. This represents the Target power in dBm for transmissions done to
12687 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12688 * session. Represents the count of last connected session, when queried in the
12689 * disconnected state.
12690 *
12691 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
12692 * STA mode. This represents the Target power in dBm for transmissions done to
12693 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
12694 * Represents the count of last connected session, when queried in the
12695 * disconnected state.
12696 *
12697 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
12698 * STA mode. This represents the Target power in dBm for transmissions done to
12699 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12700 * session. Represents the count of last connected session, when queried in
12701 * the disconnected state.
12702 *
12703 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
Sunil Ravi2a14cf12023-11-21 00:54:38 +000012704 * STA mode. This represents the Target power in dBm for transmissions done
Hai Shalomfdcde762020-04-02 11:19:20 -070012705 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
12706 * Represents the count of last connected session, when queried in the
12707 * disconnected state.
12708 *
12709 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
12710 * in the STA mode. This represents the Nested attribute representing the
12711 * overflow counts of each receive buffer allocated to the hardware during the
12712 * STA's connection. The number of hw buffers might vary for each WLAN
12713 * solution and hence this attribute represents the nested array of all such
12714 * HW buffer count. This data is maintained per connect session. Represents
12715 * the count of last connected session, when queried in the disconnected state.
12716 *
12717 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
12718 * allowed as per the regulatory requirements for the current or last connected
12719 * session. Used in the STA mode.
12720 *
12721 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
12722 * (dBm) used by the station in its latest unicast frame while communicating
12723 * to the AP in the connected state. When queried in the disconnected state,
12724 * this represents the TX power used by the STA with last AP communication
12725 * when in connected state.
12726 *
12727 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
12728 * level used to adjust the RX sensitivity. Represents the current ANI level
12729 * when queried in the connected state. When queried in the disconnected
12730 * state, this corresponds to the latest ANI level at the instance of
12731 * disconnection.
12732 *
12733 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
12734 * the raw information elements from Beacon frames. Represents the Beacon frames
12735 * of the current BSS in the connected state. When queried in the disconnected
12736 * state, these IEs correspond to the last connected BSSID.
12737 *
12738 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
12739 * containing the raw information elements from Probe Response frames.
12740 * Represents the Probe Response frames of the current BSS in the connected
12741 * state. When queried in the disconnected state, these IEs correspond to the
12742 * last connected BSSID.
12743 *
12744 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
12745 * disconnect reason for the last disconnection if the disconnection is
12746 * triggered from the host driver. The values are referred from
12747 * enum qca_disconnect_reason_codes.
Hai Shalom899fcc72020-10-19 14:38:18 -070012748 *
12749 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
12750 * only. This represents the number of group addressed robust management frames
12751 * received from this station with an invalid MIC or a missing MME when PMF is
12752 * enabled.
12753 *
12754 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
12755 * only. This represents the number of group addressed robust management frames
12756 * received from this station with the packet number less than or equal to the
12757 * last received packet number when PMF is enabled.
12758 *
12759 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
12760 * mode only. This represents the number of Beacon frames received from this
12761 * station with an invalid MIC or a missing MME when beacon protection is
12762 * enabled.
12763 *
12764 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
12765 * only. This represents number of Beacon frames received from this station with
12766 * the packet number less than or equal to the last received packet number when
12767 * beacon protection is enabled.
12768 *
12769 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
12770 * STA mode only. The driver uses this attribute to populate the connection
12771 * failure reason codes and the values are defined in
12772 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
12773 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
12774 * a connection failure indication from the driver. The driver shall not
12775 * include this attribute in response to the
12776 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
12777 * failure observed in the last attempted connection.
Hai Shalom60840252021-02-19 19:02:11 -080012778 *
12779 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
12780 * used by the station in its last TX frame while communicating to the AP in the
12781 * connected state. When queried in the disconnected state, this represents the
12782 * rate used by the STA in the last TX frame to the AP when it was connected.
12783 * This attribute is used for STA mode only.
12784 *
12785 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
12786 * This represents the rate index used by the STA for the last TX frame to the
12787 * AP. When queried in the disconnected state, this gives the last RIX used by
12788 * the STA in the last TX frame to the AP when it was connected.
12789 *
12790 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
12791 * mode only. This represents the number of times the STA TSF goes out of sync
12792 * from the AP after the connection. If queried in the disconnected state, this
12793 * gives the count of TSF out of sync for the last connection.
12794 *
12795 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
12796 * mode only. This represents the roam trigger reason for the last roaming
12797 * attempted by the firmware. This can be queried either in connected state or
12798 * disconnected state. Each bit of this attribute represents the different
12799 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
12800 *
12801 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
12802 * only. This represents the roam fail reason for the last failed roaming
12803 * attempt by the firmware. Different roam failure reason codes are specified
12804 * in enum qca_vendor_roam_fail_reasons. This can be queried either in
12805 * connected state or disconnected state.
12806 *
12807 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
12808 * STA mode only. This represents the roam invoke fail reason for the last
12809 * failed roam invoke. Different roam invoke failure reason codes
12810 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
12811 * queried either in connected state or disconnected state.
Hai Shaloma20dcd72022-02-04 13:43:00 -080012812 *
12813 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
12814 * This represents the average congestion duration of uplink frames in MAC
12815 * queue in unit of ms. This can be queried either in connected state or
12816 * disconnected state.
Sunil Ravi89eba102022-09-13 21:04:37 -070012817 *
12818 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
12819 * values, used in AP mode. This represents the MPDU packet count per MCS
12820 * rate value of TX packets. Every index of this nested attribute corresponds
12821 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
12822 * queried in connected state.
12823 *
12824 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
12825 * values, used in AP mode. This represents the MPDU packet count per MCS
12826 * rate value of RX packets. Every index of this nested attribute corresponds
12827 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
12828 * queried in connected state.
Sunil Ravi036cec52023-03-29 11:35:17 -070012829 *
12830 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
12831 * 64-bit alignment.
Sunil Ravi7f769292024-07-23 22:21:32 +000012832 *
12833 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode
12834 * only. This represents the average of the delta between successive uplink
12835 * frames congestion duration in MAC queue in unit of ms. This can be queried
12836 * either in connected state or disconnected state.
12837 *
12838 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes,
12839 * used in STA mode. This represents the number of MSDU packets
12840 * (unicast/multicast/broadcast) transmitted/received with each NSS value. See
12841 * enum qca_wlan_vendor_attr_nss_pkt.
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012842 */
12843enum qca_wlan_vendor_attr_get_sta_info {
12844 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12845 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12846 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12847 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12848 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12849 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12850 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12851 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12852 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12853 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12854 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
Hai Shalomfdcde762020-04-02 11:19:20 -070012855 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12856 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12857 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12858 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12859 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12860 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12861 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12862 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12863 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12864 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12865 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12866 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12867 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12868 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12869 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12870 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12871 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12872 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12873 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12874 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12875 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12876 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12877 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12878 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12879 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12880 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
12881 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
12882 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
Hai Shalom899fcc72020-10-19 14:38:18 -070012883 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12884 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12885 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12886 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12887 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
Hai Shalom60840252021-02-19 19:02:11 -080012888 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12889 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12890 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12891 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12892 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12893 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
Hai Shaloma20dcd72022-02-04 13:43:00 -080012894 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
Sunil Ravi89eba102022-09-13 21:04:37 -070012895 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12896 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
Sunil Ravi036cec52023-03-29 11:35:17 -070012897 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
Sunil Ravi7f769292024-07-23 22:21:32 +000012898 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54,
12899 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55,
Ahmed ElArabawy0ff61c52019-12-26 12:38:39 -080012900
12901 /* keep last */
12902 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12903 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12904 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12905};
12906
Hai Shalomfdcde762020-04-02 11:19:20 -070012907/**
12908 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
12909 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
12910 *
12911 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
12912 * Used in STA mode. This attribute represents the list of channel center
12913 * frequencies in MHz (u32) the station has learnt during the last connection
12914 * or roaming attempt. This information shall not signify the channels for
12915 * an explicit scan request from the user space. Host drivers can update this
12916 * information to the user space in both connected and disconnected state.
12917 * In the disconnected state this information shall signify the channels
12918 * scanned in the last connection/roam attempt that lead to the disconnection.
12919 */
12920enum qca_wlan_vendor_attr_update_sta_info {
12921 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
12922 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
12923
12924 /* keep last */
12925 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
12926 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
12927 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
12928};
12929
12930/**
12931 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12932 * Used when the driver triggers the STA to disconnect from the AP.
12933 *
12934 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12935 * disconnection with the AP due to unspecified reasons.
12936 *
12937 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12938 * disconnection with the AP due to a roaming failure. This roaming is triggered
12939 * internally (host driver/firmware).
12940 *
12941 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12942 * the AP when the user/external triggered roaming fails.
12943 *
12944 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12945 * by the host driver whenever gateway reachability failure is detected and the
12946 * driver disconnects with AP.
12947 *
12948 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12949 * the AP on a channel switch announcement from it with an unsupported channel.
12950 *
12951 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12952 * with indoor channels disabled and if the STA is connected on one of these
12953 * disabled channels, the host driver disconnected the STA with this reason
12954 * code.
12955 *
12956 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12957 * explicit request from the user to disable the current operating channel.
12958 *
12959 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12960 * the internal host driver/firmware recovery.
12961 *
12962 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12963 * a timeout for the key installations from the user space.
12964 *
12965 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12966 * STA on a band change request from the user space to a different band from the
12967 * current operation channel/band.
12968 *
12969 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12970 * interface down trigger from the user space.
12971 *
12972 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12973 * STA on getting continuous transmission failures for multiple Data frames.
12974 *
12975 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12976 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12977 * represents inactivity from AP on such transmissions.
12978
12979 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12980 * disconnection when SA Query times out (AP does not respond to SA Query).
12981 *
12982 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12983 * STA on missing the beacons continuously from the AP.
12984 *
12985 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12986 * able to move to the channel mentioned by the AP in CSA.
12987 *
12988 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12989 */
12990enum qca_disconnect_reason_codes {
12991 QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12992 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12993 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12994 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12995 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12996 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12997 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12998 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12999 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
13000 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
13001 QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
13002 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
13003 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
13004 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
13005 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
13006 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
13007 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
13008};
13009
13010/**
13011 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
13012 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
13013 *
13014 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
13015 * This attribute represents the driver specific reason codes (local
13016 * driver/firmware initiated reasons for disconnection) defined
13017 * in enum qca_disconnect_reason_codes.
13018 */
13019enum qca_wlan_vendor_attr_driver_disconnect_reason {
13020 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
13021 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
13022
13023 /* keep last */
13024 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
13025 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
13026 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
13027};
13028
Hai Shalom899fcc72020-10-19 14:38:18 -070013029/**
13030 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
13031 *
13032 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
13033 */
13034enum qca_wlan_tspec_operation {
13035 QCA_WLAN_TSPEC_ADD = 0,
13036 QCA_WLAN_TSPEC_DEL = 1,
13037 QCA_WLAN_TSPEC_GET = 2,
13038};
13039
13040/**
13041 * enum qca_wlan_tspec_direction - Direction in TSPEC
13042 * As what is defined in IEEE Std 802.11-2016, Table 9-139.
13043 *
13044 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
13045 */
13046enum qca_wlan_tspec_direction {
13047 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
13048 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
13049 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
13050 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
13051};
13052
13053/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013054 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
Hai Shalom899fcc72020-10-19 14:38:18 -070013055 * As what is defined in IEEE Std 802.11-2016, Table 9-141.
13056 *
13057 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
13058 */
13059enum qca_wlan_tspec_ack_policy {
13060 QCA_WLAN_TSPEC_NORMAL_ACK = 0,
13061 QCA_WLAN_TSPEC_NO_ACK = 1,
13062 /* Reserved */
13063 QCA_WLAN_TSPEC_BLOCK_ACK = 3,
13064};
13065
13066/**
13067 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
13068 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
13069 *
13070 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
13071 * u8 attribute. Specify the TSPEC operation of this request. Possible values
13072 * are defined in enum qca_wlan_tspec_operation.
13073 * Mandatory attribute for all kinds of config TSPEC requests.
13074 *
13075 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
13076 * u8 attribute. TS ID. Possible values are 0-7.
13077 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
13078 * QCA_WLAN_TSPEC_GET. A mandatory attribute.
13079 *
13080 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
13081 * u8 attribute. Direction of data carried by the TS. Possible values are
13082 * defined in enum qca_wlan_tspec_direction.
13083 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13084 *
13085 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
13086 * Flag attribute. Indicate whether APSD is enabled for the traffic associated
13087 * with the TS. set - enabled, not set - disabled.
13088 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13089 *
13090 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
13091 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
13092 * belonging to this TS. Possible values are 0-7.
13093 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13094 *
13095 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
13096 * u8 attribute. Indicate whether MAC acknowledgements are required for
13097 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
13098 * Possible values are defined in enum qca_wlan_tspec_ack_policy.
13099 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13100 *
13101 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
13102 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
13103 * belonging to this TS.
13104 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13105 *
13106 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
13107 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
13108 * belonging to this TS.
13109 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13110 *
13111 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
13112 * u32 attribute. Specify the minimum interval in microseconds between the
13113 * start of two successive SPs.
13114 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13115 *
13116 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
13117 * u32 attribute. Specify the maximum interval in microseconds between the
13118 * start of two successive SPs.
13119 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13120 *
13121 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
13122 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13123 * without arrival or transfer of an MPDU belonging to the TS before this TS
13124 * is deleted by the MAC entity at the HC.
13125 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13126 *
13127 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
13128 * u32 attribute. Specify the minimum interval in microseconds that can elapse
13129 * without arrival or transfer of an MSDU belonging to the TS before the
13130 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
13131 * 0xFFFFFFFF disables the suspension interval. The value of the suspension
13132 * interval is always less than or equal to the inactivity interval.
13133 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13134 *
13135 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
13136 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
13137 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13138 * bounds of this TSPEC.
13139 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13140 *
13141 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
13142 * u32 attribute. Indicate the average data rate in bps specified at the MAC
13143 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
13144 * bounds of this TSPEC.
13145 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13146 *
13147 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
13148 * u32 attribute. Indicate the maximum allowable data rate in bps specified at
13149 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
13150 * the bounds of this TSPEC.
13151 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13152 *
13153 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
13154 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
13155 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
13156 * value of 0 indicates that there are no bursts.
13157 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13158 *
13159 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
13160 * u32 attribute. Indicate the minimum PHY rate in bps for transport of
13161 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
13162 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
13163 *
13164 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
13165 * u16 attribute. Specify the excess allocation of time (and bandwidth) over
13166 * and above the stated application rates required to transport an MSDU/A-MSDU
13167 * belonging to the TS in this TSPEC.
13168 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
13169 */
13170enum qca_wlan_vendor_attr_config_tspec {
13171 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
13172 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
13173 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
13174 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
13175 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
13176 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
13177 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
13178 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
13179 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
13180 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
13181 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
13182 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
13183 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
13184 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
13185 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
13186 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
13187 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
13188 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
13189 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
13190
13191 /* keep last */
13192 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
13193 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
13194 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
13195};
13196
13197/**
13198 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
13199 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
13200 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
13201 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
13202 * frame
13203 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
13204 * Request frame.
13205 */
13206enum qca_wlan_vendor_oci_override_frame_type {
13207 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
13208 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
13209 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
13210 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
13211};
13212
13213/**
13214 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
13215 * OCI override request. These attributes are used inside nested attribute
13216 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
13217 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
13218 *
13219 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
13220 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
13221 * attribute to specify the frame type in which the OCI is to be overridden.
13222 *
13223 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
13224 * OCI frequency (in MHz) to override in the specified frame type.
13225 */
13226enum qca_wlan_vendor_attr_oci_override {
13227 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
13228 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
13229 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
13230
13231 /* keep last */
13232 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
13233 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
13234 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
13235};
13236
13237/**
13238 * enum qca_wlan_medium_assess_type - Type of medium assess request
13239 *
13240 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
13241 */
13242enum qca_wlan_medium_assess_type {
13243 QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
13244 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
13245};
13246
13247/**
13248 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
13249 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
13250 *
13251 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
13252 * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
13253 * Specify the type of medium assess request and indicate its type in response.
13254 * Possible values are defined in enum qca_wlan_medium_assess_type.
13255 *
13256 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
13257 * u32 attribute. Mandatory in CCA request.
13258 * Specify the assessment period in terms of seconds. Assessment result will be
13259 * sent as the response to the CCA request after the assessment period.
13260 *
13261 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
13262 * u32 attribute. Mandatory in response to CCA request.
13263 * Total timer tick count of the assessment cycle.
13264 *
13265 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
13266 * u32 attribute. Mandatory in response to CCA request.
13267 * Timer tick count of idle time in the assessment cycle.
13268 *
13269 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
13270 * u32 attribute. Mandatory in response to CCA request.
13271 * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
13272 *
13273 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
13274 * u32 attribute. Mandatory in response to CCA request.
13275 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
13276 *
13277 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
13278 * s32 attribute. Mandatory in response to CCA request.
13279 * Maximum RSSI of Intra BSS traffic in the assessment cycle.
13280 *
13281 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
13282 * s32 attribute. Mandatory in response to CCA request.
13283 * Minimum RSSI of Intra BSS traffic in the assessment cycle.
13284 *
13285 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
13286 * u8 attribute. Mandatory in congestion report request.
13287 * 1-enable 0-disable.
13288 *
13289 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
13290 * u8 attribute. Mandatory in congestion report enable request and will be
13291 * ignored if present in congestion report disable request. Possible values are
13292 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
13293 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
13294 * congestion percentage reaches the configured threshold.
13295 *
13296 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
13297 * u8 attribute. Optional in congestion report enable request and will be
13298 * ignored if present in congestion report disable request.
13299 * Specify the interval of congestion report event in terms of seconds. Possible
13300 * values are 1-255. Default value 1 will be used if this attribute is omitted
13301 * or using invalid values.
13302 *
13303 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
13304 * u8 attribute. Mandatory in congestion report event.
13305 * Indicate the actual congestion percentage. Possible values are 0-100.
13306 */
13307enum qca_wlan_vendor_attr_medium_assess {
13308 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
13309 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
13310
13311 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
13312 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
13313 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
13314 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
13315 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
13316 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
13317 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
13318
13319 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
13320 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
13321 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
13322 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
13323
13324 /* keep last */
13325 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
13326 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
13327 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
13328};
13329
13330/**
13331 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
13332 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
13333 *
13334 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
13335 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
13336 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
13337 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013338 *
13339 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
13340 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
13341 *
13342 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
13343 * u8 attribute, required. Indicates group id of Tx VDEV.
13344 *
13345 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
13346 * Nested attribute. This attribute shall be used by the driver to send
13347 * group information. The attributes defined in enum
13348 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
13349 * are nested in this attribute.
Hai Shalom899fcc72020-10-19 14:38:18 -070013350 */
13351enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
13352 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
13353 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013354 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
13355 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
13356 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
Hai Shalom899fcc72020-10-19 14:38:18 -070013357
13358 /* keep last */
13359 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
13360 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
13361 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
13362};
13363
13364/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080013365 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
13366 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
13367 *
13368 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
13369 * u32 attribute, required. Contains interface index.
13370 *
13371 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
13372 * u8 attribute, required. 0 - means vdev is in down state.
13373 * 1 - means vdev is in up state.
13374 */
13375enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
13376 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
13377 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
13378 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
13379
13380 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
13381 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
13382 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
13383};
13384
13385/**
13386 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
13387 *
13388 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
13389 * STA interface has to be given while selecting the connection policies
13390 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
13391 * An interface is set as primary through the attribute
13392 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
13393 * applicable if the primary interface has not been set earlier.
13394 *
13395 * The intention is not to downgrade the primary STA performance, such as:
13396 * - Do not reduce the number of TX/RX chains of primary connection.
13397 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
13398 * chains.
13399 * - If using MCC, should set the MCC duty cycle of the primary connection to
13400 * be higher than the secondary connection.
13401 *
13402 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
13403 * subsequent STA connection shall be chosen to balance with the existing
13404 * concurrent STA's performance.
13405 * Such as
13406 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
13407 * capability.
13408 * - If using MCC, set the MCC duty cycle of the primary connection to be equal
13409 * to the secondary.
13410 * - Prefer BSSID candidates which will help provide the best "overall"
13411 * performance for all the STA connections.
13412 */
13413enum qca_wlan_concurrent_sta_policy_config {
13414 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
13415 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
13416};
13417
13418/**
Sunil8cd6f4d2022-06-28 18:40:46 +000013419 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
Hai Shaloma20dcd72022-02-04 13:43:00 -080013420 *
Sunil8cd6f4d2022-06-28 18:40:46 +000013421 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
13422 * interface.
13423 *
13424 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
13425 * to meet gaming audio latency requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013426 * This policy is used only when the driver advertises support for
13427 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil8cd6f4d2022-06-28 18:40:46 +000013428 *
13429 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
13430 * concurrencies to meet lossless audio streaming requirements.
Sunil Ravi640215c2023-06-28 23:08:09 +000013431 * This policy is used only when the driver advertises support for
13432 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013433 *
13434 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
13435 * XR (eXtended Reality) requirements.
Sunil8cd6f4d2022-06-28 18:40:46 +000013436 */
13437enum qca_wlan_concurrent_ap_policy_config {
13438 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
13439 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
13440 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013441 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000013442};
13443
13444/**
13445 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
13446 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
13447 *
13448 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
Hai Shaloma20dcd72022-02-04 13:43:00 -080013449 * u8 attribute. Configures the concurrent STA policy configuration.
13450 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
Sunil8cd6f4d2022-06-28 18:40:46 +000013451
13452 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
13453 * u8 attribute. Configures the concurrent AP policy configuration.
13454 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013455 */
Sunil8cd6f4d2022-06-28 18:40:46 +000013456enum qca_wlan_vendor_attr_concurrent_policy {
13457 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
13458 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
13459 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013460
13461 /* keep last */
Sunil8cd6f4d2022-06-28 18:40:46 +000013462 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
13463 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
13464 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013465
13466};
13467
Sunil8cd6f4d2022-06-28 18:40:46 +000013468/* Compatibility defines for previously used enum
13469 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
13470 * in any new implementation.
13471 */
13472#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
13473 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
13474#define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
13475 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
13476#define qca_wlan_vendor_attr_concurrent_sta_policy \
13477 qca_wlan_vendor_attr_concurrent_policy
13478
Hai Shaloma20dcd72022-02-04 13:43:00 -080013479/**
Hai Shalom899fcc72020-10-19 14:38:18 -070013480 * enum qca_sta_connect_fail_reason_codes - Defines values carried
13481 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
13482 * attribute.
13483 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
13484 * for unicast Probe Request frame.
13485 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
13486 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
13487 * auth request.
13488 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
13489 * received from AP.
13490 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
13491 * Association Request frame.
13492 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
13493 * Association Request frame.
13494 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
13495 * frame is not received from AP.
13496 */
13497enum qca_sta_connect_fail_reason_codes {
13498 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
13499 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
13500 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
13501 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
13502 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
13503 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
13504 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
13505};
13506
Hai Shaloma20dcd72022-02-04 13:43:00 -080013507/**
13508 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
13509 * filters defined in this enum are used in attribute
13510 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
13511 *
13512 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
13513 * shall filter the channels which are not usable because of coexistence with
13514 * cellular radio.
13515 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
13516 * shall filter the channels which are not usable because of existing active
13517 * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13518 *
13519 */
13520enum qca_wlan_vendor_usable_channels_filter {
13521 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13522 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13523};
13524
13525/**
13526 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13527 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13528 *
13529 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13530 * u32 attribute, required. Indicates the center frequency of the primary
13531 * channel in MHz.
13532 *
13533 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13534 * u32 attribute. Indicates the center frequency of the primary segment of the
13535 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13536 * 160 MHz, and 320 MHz channels.
13537 *
13538 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13539 * u32 attribute. Indicates the center frequency of the secondary segment of
13540 * 80+80 channel in MHz. This attribute is required only when
13541 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13542 *
13543 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13544 * u32 attribute, required. Indicates the bandwidth of the channel, possible
13545 * values are defined in enum nl80211_chan_width.
13546 *
13547 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13548 * u32 attribute, required. Indicates all the interface types for which this
13549 * channel is usable. This attribute encapsulates bitmasks of interface types
13550 * defined in enum nl80211_iftype.
13551 *
13552 */
13553enum qca_wlan_vendor_attr_chan_info {
13554 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13555 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13556 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13557 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13558 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13559 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13560
13561 /* keep last */
13562 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13563 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13564 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13565};
13566
13567/**
13568 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13569 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13570 *
13571 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13572 * u32 attribute. Indicates the bands from which the channels should be reported
13573 * in response. This attribute encapsulates bit masks of bands defined in enum
13574 * nl80211_band. Optional attribute, if not present in the request the driver
13575 * shall return channels from all supported bands.
13576 *
13577 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13578 * u32 attribute. Indicates all the interface types for which the usable
13579 * channels information is requested. This attribute encapsulates bitmasks of
13580 * interface types defined in enum nl80211_iftype. Optional attribute, if not
13581 * present in the request the driver shall send information of all supported
13582 * interface modes.
13583 *
13584 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13585 * u32 attribute. This attribute carries information of all filters that shall
13586 * be applied while populating usable channels information by the driver. This
13587 * attribute carries bit masks of different filters defined in enum
13588 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13589 * in the request the driver shall send information of channels without applying
13590 * any of the filters that can be configured through this attribute.
13591 *
13592 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13593 * Nested attribute. This attribute shall be used by the driver to send
13594 * usability information of each channel. The attributes defined in enum
13595 * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13596 */
13597enum qca_wlan_vendor_attr_usable_channels {
13598 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13599 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13600 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13601 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13602 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13603
13604 /* keep last */
13605 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13606 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13607 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13608};
13609
13610/**
13611 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13612 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13613 *
13614 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13615 * the list of radar history entries.
13616 * Each entry contains freq, timestamp, and radar signal detect flag.
13617 * The driver shall add an entry when CAC has finished, or radar signal
13618 * has been detected post AP beaconing. The driver shall maintain at least
13619 * 8 entries in order to save CAC result for a 160 MHz channel.
13620 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13621 * Channel frequency in MHz.
13622 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13623 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13624 * or radar detection.
13625 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13626 * This flag indicates radar signal has been detected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013627 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
13628 * 64-bit alignment.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013629 */
13630enum qca_wlan_vendor_attr_radar_history {
13631 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13632
13633 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13634 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13635 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13636 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070013637 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013638
13639 /* keep last */
13640 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13641 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13642 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13643};
13644
13645/**
13646 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13647 *
13648 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13649 * target exited MCC state and cleared the quota information. In the
13650 * command it clears MCC quota setting and restores adaptive scheduling.
13651 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13652 * will not be changed.
Sunil Ravi036cec52023-03-29 11:35:17 -070013653 * This quota type is present in command/event.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013654 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13655 * and the target may change the quota based on the data activity.
Sunil Ravi036cec52023-03-29 11:35:17 -070013656 * This quota type is only present in event.
13657 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13658 * by the target for low latency.
13659 * This quota type is only present in command.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013660 */
13661enum qca_wlan_vendor_mcc_quota_type {
13662 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13663 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13664 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
Sunil Ravi036cec52023-03-29 11:35:17 -070013665 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013666};
13667
13668/**
13669 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
13670 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
13671 * quota information or as a command to set the required MCC quota for an
13672 * interface.
13673 *
13674 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
13675 * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
13676 * In a command this specifies the MCC quota type to be set for the interface.
13677 * In an event this provides the current quota type in force.
13678 * This is required in a command and an event.
13679 *
13680 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
13681 * the list of channel quota entries.
13682 * In an event each entry contains the frequency and respective time quota for
13683 * all the MCC interfaces.
13684 * In a command it specifies the interface index and respective time quota.
13685 * In a command only one entry (ifindex, quota pair) may be specified.
13686 *
13687 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
13688 * Channel frequency in MHz. This is present only in an event.
13689 *
13690 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
13691 * Channel time quota expressed as percentage.
13692 * This is present in an event and a command.
13693 * In an command, the user shall specify the quota to be allocated for the
13694 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
13695 * In an event this provides the existing quota for the channel.
13696 *
13697 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
13698 * Specifies the interface index (netdev) for which the corresponding
13699 * configurations are applied. This is required in a command only. Only one
13700 * interface index may be specified. If not specified, the configuration is
13701 * rejected.
Sunil Ravi036cec52023-03-29 11:35:17 -070013702 *
13703 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
13704 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
13705 * low latency mode. The firmware will do optimization for low
13706 * latency in Multi-Channel concurrency state if enabled. And all existing
13707 * user quota setting will be overwritten by the target.
13708 * 0 - disable(default), 1 - enable.
13709 * It is only present in a command with quota type of
13710 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
Hai Shaloma20dcd72022-02-04 13:43:00 -080013711 */
13712enum qca_wlan_vendor_attr_mcc_quota {
13713 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
13714 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
13715 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
13716 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
13717 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
13718 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
Sunil Ravi036cec52023-03-29 11:35:17 -070013719 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
Hai Shaloma20dcd72022-02-04 13:43:00 -080013720
13721 /* keep last */
13722 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
13723 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
13724 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
13725};
13726
13727/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013728 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
13729 * are used by the attribute
13730 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
13731 *
13732 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
13733 * invoke roam.
13734 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
13735 * detection failed when the roam trigger.
13736 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
13737 */
13738
13739enum qca_wlan_roam_stats_invoke_reason {
13740 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
13741 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
13742 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
13743};
13744
13745/**
13746 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
13747 * values are used by the attribute
13748 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
13749 *
13750 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
13751 * roam by kickout.
13752 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
13753 * trigger by kickout.
13754 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
13755 * roam trigger by kickout.
13756 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
13757 * roam trigger by kickout.
13758 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
13759 * disappeared, and all TX is failing when roam trigger by kickout.
13760 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
13761 * timeout when roam trigger by kickout.
13762 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
13763 * peer has roamed to a repeater.
13764 */
13765enum qca_wlan_roam_stats_tx_failures_reason {
13766 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
13767 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
13768 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
13769 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
13770 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
13771 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
13772 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
13773};
13774
13775/**
13776 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
13777 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
13778 *
13779 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
13780 * detailed reason for roam scan being aborted.
13781 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
13782 * started due to high data RSSI during LOW-RSSI roaming.
13783 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
13784 * started due to good link speed during LOW-RSSI roaming.
13785 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
13786 * due to high data RSSI during background roaming.
13787 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
13788 * started due to high beacon RSSI during background roaming
13789 */
13790enum qca_wlan_roam_stats_abort_reason {
13791 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
13792 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
13793 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
13794 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
13795 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
13796};
13797
13798/**
Sunil Ravi036cec52023-03-29 11:35:17 -070013799 * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
13800 * These values are used by the attribute
13801 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
13802 *
13803 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
13804 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
13805 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
13806 * This is generally used in BTM events to indicate BTM frame exchange logs.
13807 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
13808 * from 2.4 GHz to 5 GHz or 6 GHz
13809 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
13810 * 5 GHz to 6 GHz
13811 */
13812enum qca_wlan_roam_stats_scan_type {
13813 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
13814 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
13815 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
13816 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
13817 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
13818};
13819
13820/**
13821 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
13822 * These values are used by the attribute
13823 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
13824 *
13825 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
13826 * detailed roam scan type.
13827 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
13828 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
13829 */
13830enum qca_wlan_roam_stats_scan_dwell_type {
13831 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
13832 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
13833 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
13834};
13835
13836/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000013837 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
13838 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
13839 */
13840enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
13841 /* 32-bit unsigned value to indicate center frequency of the primary
13842 * channel in MHz for each roam scan channel.
13843 */
13844 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13845 /* 8-bit unsigned value to indicate channel scan type for each
Sunil Ravi036cec52023-03-29 11:35:17 -070013846 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000013847 */
13848 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13849 /* 32-bit unsigned value to indicate maximum scan time in milliseconds
13850 * for each roam scan channel.
13851 */
13852 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13853
13854 /* keep last */
13855 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13856 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13857 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13858};
13859
13860/**
13861 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13862 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13863 *
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013864 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
13865 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013866 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13867 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13868 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13869 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13870 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13871 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013872 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
13873 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
Sunil Ravi77d572f2023-01-17 23:58:31 +000013874 */
13875enum qca_wlan_roam_stats_frame_subtype {
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013876 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
13877 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013878 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13879 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13880 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13881 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13882 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13883 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013884 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
13885 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013886};
13887
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013888/* Compatibility defines for previously used names.
13889 * These values should not be used in any new implementation.
13890 */
13891#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
13892 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
13893#define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
13894 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
13895
Sunil Ravi77d572f2023-01-17 23:58:31 +000013896/**
13897 * enum roam_frame_status - Specifies the valid values the vendor roam frame
13898 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13899 *
13900 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13901 * sent or received successfully.
13902 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13903 * receiving failed.
13904 */
13905enum qca_wlan_roam_stats_frame_status {
13906 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13907 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13908};
13909
13910/**
13911 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13912 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13913 */
13914enum qca_wlan_vendor_attr_roam_stats_frame_info {
13915 /* 8-bit unsigned value to indicate the frame subtype during
13916 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13917 */
13918 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13919 /* 8-bit unsigned value to indicate the frame is successful or failed
13920 * during roaming, one of the values in
13921 * qca_wlan_roam_stats_frame_status.
13922 */
13923 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13924 /* 64-bit unsigned value to indicate the timestamp for frame of
13925 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13926 * when sent or received during roaming, timestamp in milliseconds
13927 * from system boot.
13928 */
13929 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
Sunil Ravi036cec52023-03-29 11:35:17 -070013930 /* Attribute used for padding for 64-bit alignment */
13931 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000013932 /* This attribute indicates a 6-byte MAC address representing
13933 * the BSSID of the AP.
13934 * For non-MLO scenario, it indicates the AP BSSID.
13935 * For MLO scenario, it indicates the AP BSSID which may be the primary
13936 * link BSSID or a nonprimary link BSSID.
13937 */
13938 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000013939
13940 /* keep last */
13941 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13942 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13943 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13944};
13945
13946/**
13947 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13948 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13949 */
13950enum qca_wlan_vendor_attr_roam_stats_info {
13951 /* 64-bit unsigned value to indicate the timestamp when roam was
13952 * triggered by the firmware, timestamp in milliseconds from system
13953 * boot.
13954 */
13955 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13956 /* 32-bit unsigned value to indicate the roam trigger reason for the
13957 * last roaming attempted by the firmware. This can be queried either
13958 * in a connected state or disconnected state. The values of this
13959 * attribute represent the roam trigger reason codes, which
13960 * are defined in enum qca_roam_reason.
13961 */
13962 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13963 /* 8-bit unsigned value to indicate percentage of packets for which
13964 * the RX rate is lower than the RX rate threshold in total RX packets,
13965 * used for roaming trigger by per.
13966 */
13967 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13968 /* 8-bit unsigned value to indicate percentage of packets for which
13969 * the TX rate is lower than TX rate threshold in total TX packets,
13970 * used for roaming trigger by per.
13971 */
13972 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13973 /* 32-bit unsigned value to indicate final beacon miss count for
13974 * trigger reason of beacon miss.
13975 */
13976 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13977 /* 32-bit unsigned value to indicate consecutive beacon miss count
13978 * for trigger reason of beacon miss.
13979 */
13980 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13981 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13982 * reason of beacon miss, 0 - success, 1 - fail.
13983 * If QOS-NULL TX status is successful, beacon miss final count and
13984 * consecutive beacon miss count will be reset to zero, and roam will
13985 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13986 * count and consecutive beacon miss count continue to calculate until
13987 * roaming trigger by beacon miss.
13988 */
13989 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
Sunil Ravi036cec52023-03-29 11:35:17 -070013990 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013991 * for trigger reason of poor RSSI.
13992 */
13993 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
Sunil Ravi036cec52023-03-29 11:35:17 -070013994 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000013995 * for trigger reason of poor RSSI.
13996 */
13997 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13998 /* 8-bit unsigned value to indicate RX link speed status
13999 * for trigger reason of poor RSSI, 0 - good link speed,
14000 * 1 - bad link speed.
14001 */
14002 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
Sunil Ravi036cec52023-03-29 11:35:17 -070014003 /* 8-bit signed value to indicate connected AP RSSI in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014004 * for trigger reason of better RSSI.
14005 */
14006 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
Sunil Ravi036cec52023-03-29 11:35:17 -070014007 /* 8-bit signed value to indicate RSSI threshold value in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014008 * for trigger reason of better RSSI.
14009 */
14010 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
14011 /* 32-bit unsigned value to indicate RX throughput in bytes per second
14012 * for trigger reason of congestion.
14013 */
14014 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
14015 /* 32-bit unsigned value to indicate TX throughput in bytes per second
14016 * for trigger reason of congestion.
14017 */
14018 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
14019 /* 8-bit unsigned value to indicate roamable AP count
14020 * for trigger reason of congestion.
14021 */
14022 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
14023 /* 8-bit unsigned value to indicate invoke reason, one of the values
14024 * defined in qca_wlan_roam_stats_invoke_reason.
14025 */
14026 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
14027 /* 8-bit unsigned value to indicate request mode for trigger reason
14028 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
14029 */
14030 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
14031 /* 32-bit unsigned value to indicate disassociate time in milliseconds
14032 * for trigger reason of BTM.
14033 */
14034 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
14035 /* 32-bit unsigned value to indicate preferred candidate list valid
14036 * interval in milliseconds for trigger reason of BTM.
14037 */
14038 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
14039 /* 8-bit unsigned value to indicate the number of preferred
14040 * candidates for trigger reason of BTM.
14041 */
14042 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
14043 /* 8-bit unsigned value to indicate response status for trigger
14044 * reason of BTM, values are defined in IEEE Std 802.11-2020,
14045 * Table 9-428 (BTM status code definitions).
14046 */
14047 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
14048 /* 32-bit unsigned value to indicate BSS termination timeout value
14049 * in milliseconds for trigger reason of BTM.
14050 */
14051 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
14052 /* 32-bit unsigned value to indicate MBO associate retry timeout
14053 * value in milliseconds for trigger reason of BTM.
14054 */
14055 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
14056 /* 8-bit unsigned value to indicate dialog token number
14057 * for trigger reason of BTM.
14058 */
14059 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
14060 /* 8-bit unsigned value to indicate percentage of connected AP
14061 * channel congestion utilization for trigger reason of BSS load.
14062 */
14063 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
14064 /* 8-bit unsigned value to indicate disconnection type
14065 * for trigger reason of disconnection. 1 - Deauthentication,
14066 * 2 - Disassociation.
14067 */
14068 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
14069 /* 16-bit unsigned value to indicate deauthentication or disassociation
14070 * reason for trigger reason of disconnection, values are defined
14071 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
14072 */
14073 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
14074 /* 32-bit unsigned value to indicate milliseconds of roam scan
14075 * periodicity when needing to roam to find a better AP for trigger
14076 * reason of periodic timer.
14077 */
14078 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
Sunil Ravi036cec52023-03-29 11:35:17 -070014079 /* 8-bit signed value to indicate connected AP RSSI in dBm for
Sunil Ravi77d572f2023-01-17 23:58:31 +000014080 * trigger reason of background scan.
14081 */
14082 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
Sunil Ravi036cec52023-03-29 11:35:17 -070014083 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
Sunil Ravi77d572f2023-01-17 23:58:31 +000014084 * of background scan.
14085 */
14086 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
Sunil Ravi036cec52023-03-29 11:35:17 -070014087 /* 8-bit signed value to indicate data RSSI threshold in dBm
Sunil Ravi77d572f2023-01-17 23:58:31 +000014088 * for trigger reason of background scan.
14089 */
14090 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
14091 /* 32-bit unsigned value to indicate consecutive TX failure threshold
14092 * for trigger reason of TX failures.
14093 */
14094 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
14095 /* 8-bit unsigned value to indicate TX failure reason for trigger
14096 * reason of TX failures, one of the values defined in
14097 * qca_wlan_roam_stats_tx_failures_reason.
14098 */
14099 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
14100 /* 8-bit unsigned value to indicate detail abort reason. One of the
14101 * values in enum qca_wlan_roam_stats_abort_reason.
14102 */
14103 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
Sunil Ravi036cec52023-03-29 11:35:17 -070014104 /* 8-bit signed value to indicate data RSSI in dBm when aborting the
Sunil Ravi77d572f2023-01-17 23:58:31 +000014105 * roam scan.
14106 */
14107 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
Sunil Ravi036cec52023-03-29 11:35:17 -070014108 /* 8-bit signed value to indicate data RSSI threshold in dBm when
Sunil Ravi77d572f2023-01-17 23:58:31 +000014109 * aborting the roam scan.
14110 */
14111 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
14112 /* 8-bit unsigned value to indicate data RSSI threshold in RX link
14113 * speed status when aborting the roam scan.
14114 * 0 - good link speed, 1 - bad link speed
14115 */
14116 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
14117 /* 8-bit unsigned value to indicate roaming scan type.
Sunil Ravi036cec52023-03-29 11:35:17 -070014118 * One of the values in enum qca_wlan_roam_stats_scan_type.
Sunil Ravi77d572f2023-01-17 23:58:31 +000014119 */
14120 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
14121 /* 8-bit unsigned value to indicate roaming result, used in STA mode
14122 * only.
14123 * 0-Roaming is successful, 1-Roaming is failed
14124 */
14125 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
14126 /* 8-bit unsigned value to indicate the roam fail reason for the
14127 * last failed roaming attempt by the firmware. Different roam failure
14128 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
14129 * This can be queried either in connected state or disconnected state.
14130 */
14131 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
14132 /* Nested attribute. Indicate roam scan info for each channel, the
14133 * attributes defined in enum
14134 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
14135 * this attribute.
14136 */
14137 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
14138 /* 32-bit unsigned value to indicate total scan time during roam scan
14139 * all channels, time in milliseconds.
14140 */
14141 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
14142 /* Nested attribute. This attribute shall be used by the driver to
14143 * send roam information of each subtype. The attributes defined in
14144 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
14145 * this attribute.
14146 */
14147 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
Sunil Ravi036cec52023-03-29 11:35:17 -070014148 /* Attribute used for padding for 64-bit alignment */
14149 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014150 /* 6-byte MAC address used by the driver to send roam stats information
14151 * of the original AP BSSID. The original AP is the connected AP before
14152 * roam happens, regardless of the roam resulting in success or failure.
14153 * This attribute is only present when
14154 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14155 * 0 (success) or 1 (failure).
14156 * For non-MLO scenario, it indicates the original connected AP BSSID.
14157 * For MLO scenario, it indicates the original BSSID of the link
14158 * for which the reassociation occurred during the roam.
14159 */
14160 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
14161 /* 6-byte MAC address used by the driver to send roam stats information
14162 * of the roam candidate AP BSSID when roam failed. This is only present
14163 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14164 * 1 (failure). If the firmware updates more than one candidate AP BSSID
14165 * to the driver, the driver only fills the last candidate AP BSSID and
14166 * reports it to user space.
14167 * For non-MLO scenario, it indicates the last candidate AP BSSID.
14168 * For MLO scenario, it indicates the AP BSSID which may be the primary
14169 * link BSSID or a nonprimary link BSSID.
14170 */
14171 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
14172 /* 6-byte MAC address used by the driver to send roam stats information
14173 * of the roamed AP BSSID when roam succeeds. This is only present when
14174 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
14175 * 0 (success).
14176 * For non-MLO scenario, it indicates the new AP BSSID to which has
14177 * been successfully roamed.
14178 * For MLO scenario, it indicates the new AP BSSID of the link on
14179 * which the reassociation occurred during the roam.
14180 */
14181 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
Sunil Ravi77d572f2023-01-17 23:58:31 +000014182
14183 /* keep last */
14184 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
14185 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
14186 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
14187};
14188
14189/**
14190 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
14191 * report cached roam info from the driver to user space, enum values are used
14192 * for netlink attributes sent with the
14193 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
14194 */
14195enum qca_wlan_vendor_attr_roam_cached_stats {
14196 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
14197 /* Nested attribute, this attribute contains nested array roam info
14198 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
14199 */
14200 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
14201
14202 /* keep last */
14203 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
14204 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
14205 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
14206};
14207
14208/**
Sunil8cd6f4d2022-06-28 18:40:46 +000014209 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
14210 * radio configurations present in each radio combination.
14211 *
14212 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
14213 * the band info in the radio configuration. Uses the enum qca_set_band values.
14214 *
14215 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
14216 * the number of antennas info in the radio configuration.
14217 */
14218enum qca_wlan_vendor_attr_supported_radio_cfg {
14219 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
14220 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
14221 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
14222
14223 /* keep last */
14224 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
14225 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
14226 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
14227};
14228
14229/**
14230 * enum qca_wlan_vendor_attr_radio_combination - Attributes for
14231 * radio combinations supported by the device.
14232 *
14233 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
14234 * provides the radio configurations present in the radio combination.
14235 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
14236 * This attribute provides the values for radio combination matrix.
14237 * For standalone config, the number of config values is one and the config
14238 * carries the band and antenna information for standalone configuration. For
14239 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
14240 * configuration the number of config values is two and the config carries the
14241 * band and antenna information for each simultaneous radio.
14242 */
14243enum qca_wlan_vendor_attr_radio_combination {
14244 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
14245 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
14246
14247 /* keep last */
14248 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
14249 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
14250 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
14251};
14252
14253/**
14254 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
14255 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
14256 *
14257 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
14258 * provides the radio combinations supported by the device.
14259 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
14260 * For example, in the radio combination matrix for a device which has two
14261 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
14262 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
14263 * combinations is 5 and the radio combinations are
14264 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
14265 * {{5 GHz 2X2}}, //Standalone 5 GHz
14266 * {{6 GHz 2X2}}, //Standalone 6 GHz
14267 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
14268 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
14269 * The band and antenna info together as nested data provides one radio config.
14270 * Standalone configuration has one config with band and antenna nested data.
14271 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
14272 * have two nested band and antenna info data.
14273 */
14274enum qca_wlan_vendor_attr_radio_combination_matrix {
14275 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
14276 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
14277
14278 /* keep last */
14279 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
14280 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
14281 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
14282};
14283
14284/**
Hai Shaloma20dcd72022-02-04 13:43:00 -080014285 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
14286 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
14287 *
14288 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
14289 * Enable mDNS offload. This attribute is mandatory to enable
14290 * mDNS offload feature. If this attribute is not present, mDNS offload
14291 * is disabled.
14292 *
14293 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
14294 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
14295 * attribute is mandatory when enabling the feature, and not required when
14296 * disabling the feature.
14297 *
14298 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
14299 * the following attributes:
14300 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
14301 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
14302 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
14303 *
14304 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
14305 * It consists of a hostname and ".local" as the domain name. The character
14306 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
14307 * It is used to compare the domain in the "QU" query. Only 1 FQDN is
14308 * supported per vdev.
14309 * For example: myphone.local
14310 *
14311 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
14312 * u16 attribute. It specifies the total number of resource records present
14313 * in the answer section of the answer payload. This attribute is needed by the
14314 * firmware to populate the mDNS response frame for mDNS queries without having
14315 * to parse the answer payload.
14316 *
14317 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
14318 * attribute sent by the mdnsResponder from userspace. It contains resource
14319 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
14320 * payload is passed down to the firmware and is transmitted in response to
14321 * mDNS queries.
14322 * The maximum supported size of the answer payload is 512 bytes.
14323 */
14324enum qca_wlan_vendor_attr_mdns_offload {
14325 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
14326 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
14327 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
14328 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
14329 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
14330 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
14331 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
14332
14333 /* keep last */
14334 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
14335 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
14336 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
14337};
14338
14339/**
14340 * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14341 * Data frame types to be sent over the monitor interface.
14342 */
14343enum qca_wlan_vendor_monitor_data_frame_type {
14344 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14345 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
14346 */
14347 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14348 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14349 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14350 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14351 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14352 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14353 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14354 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14355 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14356 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14357 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14358 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14359 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14360 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14361 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14362 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14363 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14364};
14365
14366/**
14367 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14368 * Management frame types to be sent over the monitor interface.
14369 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
14370 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
14371 * except the Beacon frame.
14372 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14373 * BSSID Beacon frames. Valid only in the connected state.
14374 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14375 * the Beacon frames obtained during the scan (off channel and connected
14376 * channel), when in connected state.
14377 */
14378enum qca_wlan_vendor_monitor_mgmt_frame_type {
14379 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14380 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
14381 */
14382 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
14383 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14384 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14385};
14386
14387/**
14388 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14389 * Control frame types to be sent over the monitor interface.
14390 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
14391 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
14392 */
14393enum qca_wlan_vendor_monitor_ctrl_frame_type {
14394 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14395 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
14396 */
14397 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14398};
14399
14400/**
14401 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14402 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14403 * monitor mode.
14404 *
14405 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
14406 * Represents the TX Data frame types to be monitored (u32). These Data frames
14407 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14408 *
14409 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
14410 * Represents the RX Data frame types to be monitored (u32). These Data frames
14411 * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14412 *
14413 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
14414 * Represents the TX Management frame types to be monitored (u32). These
14415 * Management frames are represented by
14416 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14417 *
14418 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
14419 * Represents the RX Management frame types to be monitored (u32). These
14420 * Management frames are represented by
14421 * enum qca_wlan_vendor_monitor_mgmt_frame_type.
14422 *
14423 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
14424 * Represents the TX Control frame types to be monitored (u32). These Control
14425 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14426 *
14427 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
14428 * Represents the RX Control frame types to be monitored (u32). These Control
14429 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14430 *
14431 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
14432 * attribute.
14433 * Represents the interval in milliseconds only for the connected Beacon frames,
14434 * expecting the connected BSS's Beacon frames to be sent on the monitor
14435 * interface at this specific interval.
14436 */
14437enum qca_wlan_vendor_attr_set_monitor_mode {
14438 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14439 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14440 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14441 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14442 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14443 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14444 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14445 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
14446
14447 /* keep last */
14448 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14449 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14450 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14451};
14452
14453/**
14454 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14455 * Bits will be set to 1 if the corresponding state is enabled.
14456 *
14457 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14458 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14459 */
14460enum qca_wlan_vendor_roam_scan_state {
14461 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14462 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14463};
14464
14465/**
14466 * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14467 * Bits will be set to 1 if the corresponding event is notified.
14468 *
14469 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14470 * carries the trigger reason. When set, it is expected that the roam event
14471 * carries the respective reason via the attribute
14472 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14473 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14474 *
14475 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14476 * carries the roam fail reason. When set, it is expected that the roam event
14477 * carries the respective reason via the attribute
14478 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14479 * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14480 *
14481 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14482 * event carries the roam invoke fail reason. When set, it is expected that
14483 * the roam event carries the respective reason via the attribute
14484 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14485 *
14486 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14487 * carries the roam scan state. When set, it is expected that the roam event
14488 * carries the respective scan state via the attribute
14489 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14490 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14491 */
14492enum qca_wlan_vendor_roam_event_type {
14493 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14494 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14495 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14496 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14497};
14498
14499/**
14500 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14501 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14502 *
14503 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14504 * representing the BSSID of the AP to which the roam is attempted.
14505 *
14506 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14507 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14508 * attempted.
14509 *
14510 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
14511 * on which the roam is attempted.
14512 *
14513 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14514 * STA mode only. This represents the roam fail reason for the last failed
14515 * roaming attempt by the firmware for the specific BSSID. Different roam
14516 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14517 */
14518enum qca_wlan_vendor_attr_roam_events_candidate_info {
14519 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14520 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14521 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14522 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14523 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14524
14525 /* keep last */
14526 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14527 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14528 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14529};
14530
14531/**
14532 * enum qca_wlan_vendor_attr_roam_events - Used by the
14533 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14534 * roam events to the driver or notify these events from the driver.
14535 *
14536 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14537 * driver/firmware to enable/disable the notification of roam events. It's a
14538 * mandatory attribute and used only in the request from the userspace to the
14539 * host driver. 1-Enable, 0-Disable.
14540 * If the roaming is totally offloaded to the firmware, this request when
14541 * enabled shall mandate the firmware to notify all the relevant roam events
14542 * represented by the below attributes. If the host is in the suspend mode,
14543 * the behavior of the firmware to notify these events is guided by
14544 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14545 * these events in the suspend state, the firmware is expected to wake up the
14546 * host before the respective events are notified. Please note that such a
14547 * request to get the events in the suspend state will have a definite power
14548 * implication.
14549 *
14550 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14551 * that the roam events need to be notified in the suspend state too. By
14552 * default, these roam events are notified in the resume state. With this flag,
14553 * the roam events are notified in both resume and suspend states.
14554 * This attribute is used in the request from the userspace to the host driver.
14555 *
14556 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14557 * Represents the different roam event types, signified by the enum
14558 * qca_wlan_vendor_roam_event_type.
14559 * Each bit of this attribute represents the different roam even types reported
14560 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14561 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14562 *
14563 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14564 * mode only. This represents the roam trigger reason for the last roaming
14565 * attempted by the firmware. Each bit of this attribute represents the
14566 * different roam trigger reason code which are defined in enum
14567 * qca_vendor_roam_triggers.
14568 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14569 *
14570 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14571 * STA mode only. This represents the roam invoke fail reason for the last
14572 * failed roam invoke. Different roam invoke failure reason codes
14573 * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14574 *
14575 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14576 * for which the roam is attempted. Each entry is a nested attribute defined
14577 * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14578 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14579 *
14580 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14581 * the scan state on which the roam events need to be notified. The values for
14582 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14583 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14584 *
14585 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14586 * u32 values. List of frequencies in MHz considered for a roam scan.
14587 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14588 */
14589enum qca_wlan_vendor_attr_roam_events {
14590 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14591 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14592 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14593 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14594 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14595 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14596 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14597 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14598 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14599
14600 /* keep last */
14601 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14602 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
Sunil Ravi2a14cf12023-11-21 00:54:38 +000014603 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014604};
14605
14606/**
14607 * enum qca_wlan_ratemask_params_type - Rate mask config type
14608 *
14609 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
14610 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14611 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14612 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014613 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
Hai Shaloma20dcd72022-02-04 13:43:00 -080014614 */
14615enum qca_wlan_ratemask_params_type {
14616 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14617 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14618 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14619 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000014620 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014621};
14622
14623/**
14624 * enum qca_wlan_vendor_attr_ratemask_params - Used by the
14625 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14626 * This is used to set the rate mask value to be used in rate selection.
14627 *
14628 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14629 * Array of nested containing attributes
14630 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14631 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14632 *
14633 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14634 * the different PHY types to which the rate mask config is to be applied.
14635 * The values for this attribute are referred from enum
14636 * qca_wlan_vendor_ratemask_params_type.
14637 *
14638 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14639 * A bit value of 1 represents rate is enabled and a value of 0
14640 * represents rate is disabled.
Sunil Ravi99c035e2024-07-12 01:42:03 +000014641 * For EHT targets,
14642 * b0-1 => NSS1, MCS 14-15
14643 * b2-15 => NSS1, MCS 0-13
14644 * b16-29 => NSS2, MCS 0-13
14645 * For HE targets, 14 bits correspond to one NSS setting.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014646 * b0-13 => NSS1, MCS 0-13
14647 * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14648 * For VHT targets, 10 bits correspond to one NSS setting.
14649 * b0-9 => NSS1, MCS 0-9
14650 * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14651 * For HT targets, 8 bits correspond to one NSS setting.
14652 * b0-7 => NSS1, MCS 0-7
14653 * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14654 * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
Sunil Ravi99c035e2024-07-12 01:42:03 +000014655 *
14656 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the
14657 * MLO link ID of a link to be configured. Optional attribute.
14658 * No need of this attribute in non-MLO cases. If the attribute is
14659 * not provided, ratemask will be applied for setup link.
Hai Shaloma20dcd72022-02-04 13:43:00 -080014660 */
14661enum qca_wlan_vendor_attr_ratemask_params {
14662 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
14663 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14664 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14665 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
Sunil Ravi99c035e2024-07-12 01:42:03 +000014666 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4,
Hai Shaloma20dcd72022-02-04 13:43:00 -080014667
14668 /* keep last */
14669 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14670 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14671 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14672};
14673
Sunil8cd6f4d2022-06-28 18:40:46 +000014674/**
14675 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
14676 * traffic.
14677 *
14678 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
14679 * Send audio traffic through the host processor.
14680 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
14681 * Send audio traffic using the low power DSP to/from the encoder.
14682 */
14683enum qca_wlan_audio_data_path {
14684 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
14685 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
14686};
14687
14688/**
14689 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14690 * for) or drop existing PASN security association for the listed the
14691 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14692 * to userspace.
14693 *
14694 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14695 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14696 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14697 * the driver to userspace to inform that the existing PASN keys of the
14698 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14699 * not valid anymore.
14700 */
14701enum qca_wlan_vendor_pasn_action {
14702 QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14703 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14704};
14705
14706/**
14707 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14708 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14709 *
14710 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14711 * event from the driver to userspace and represents the local MAC address
14712 * to be used for PASN handshake. When this attribute is present, userspace
14713 * shall use the source address specified in this attribute by the driver
14714 * for PASN handshake with peer device.
14715 * This attribute is required in a command response from userspace to the
14716 * driver and represents the MAC address that was used in PASN handshake
14717 * with the peer device.
14718 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14719 * peer device to which PASN handshake is requested in an event from the
14720 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14721 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14722 * Indicates the MAC address of the peer device for which the keys are to
14723 * be invalidated in an event from the driver to userspace when
14724 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14725 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14726 * Indicates the MAC address of the peer device for which the status is
14727 * being sent in a status report from userspace to the driver.
14728 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14729 * in the event from the driver to userspace. When set, userspace is
14730 * required to derive LTF key seed from KDK and set it to the driver.
14731 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14732 * attribute is used in the command response from userspace to the driver.
14733 * If present, it indicates the successful PASN handshake with the peer. If
14734 * this flag is not present, it indicates that the PASN handshake with the
14735 * peer device failed.
14736 */
14737enum qca_wlan_vendor_attr_pasn_peer {
14738 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14739 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14740 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14741 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14742 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14743
14744 /* keep last */
14745 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14746 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14747 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14748};
14749
14750/**
14751 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14752 * QCA_NL80211_VENDOR_SUBCMD_PASN command.
14753 *
14754 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14755 * defined in enum qca_wlan_vendor_pasn_action and used only in an event
14756 * from the driver to userspace.
14757 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14758 * details for each peer and used in both an event and a command response.
14759 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14760 * defined in enum qca_wlan_vendor_attr_pasn_peer.
Sunil Ravi7f769292024-07-23 22:21:32 +000014761 * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a
14762 * specific link affiliated to an MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000014763 */
14764enum qca_wlan_vendor_attr_pasn {
14765 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14766 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14767 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
Sunil Ravi7f769292024-07-23 22:21:32 +000014768 QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3,
Sunil8cd6f4d2022-06-28 18:40:46 +000014769
14770 /* keep last */
14771 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14772 QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14773 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14774};
14775
14776/**
14777 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14778 * the ranging security context derived from PASN for each peer. Used in
14779 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14780 *
14781 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14782 * context for the peer.
14783 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
14784 * context for the peer.
14785 */
14786enum qca_wlan_vendor_secure_ranging_ctx_action {
14787 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
14788 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
14789};
14790
14791/**
14792 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
14793 * used for deriving PASN keys to the driver. Used in
14794 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
14795 * @QCA_WLAN_VENDOR_SHA_256: SHA-256
14796 * @QCA_WLAN_VENDOR_SHA_384: SHA-384
14797 */
14798enum qca_wlan_vendor_sha_type {
14799 QCA_WLAN_VENDOR_SHA_256,
14800 QCA_WLAN_VENDOR_SHA_384,
14801};
14802
14803/**
14804 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
14805 * to set security context for the PASN peer from userspace to the driver.
14806 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
14807 *
14808 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
14809 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
14810 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
14811 * was used during the PASN handshake.
14812 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
14813 * the peer device for which secure ranging context is being configured.
14814 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
14815 * hash algorithm to be used, possible values are defined in enum
14816 * qca_wlan_vendor_sha_type.
14817 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
14818 * the temporal key generated from the PASN handshake. The length of this
14819 * attribute is dependent on the value of
14820 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
14821 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
14822 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
14823 * (e.g., 0x000FAC04).
14824 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
14825 * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
14826 * The length of this attribute is dependent on the value of
14827 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
Sunil Ravi7f769292024-07-23 22:21:32 +000014828 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used
14829 * for secure ranging to identify a specific link affiliated to an AP MLD.
Sunil8cd6f4d2022-06-28 18:40:46 +000014830 */
14831enum qca_wlan_vendor_attr_secure_ranging_ctx {
14832 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
14833 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
14834 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
14835 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
14836 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
14837 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
14838 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
14839 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
Sunil Ravi7f769292024-07-23 22:21:32 +000014840 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8,
Sunil8cd6f4d2022-06-28 18:40:46 +000014841
14842 /* keep last */
14843 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
14844 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
14845 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
14846};
14847
Sunil Ravi89eba102022-09-13 21:04:37 -070014848/**
14849 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
14850 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
14851 * nested attribute. The packets that match a filter will be replied with
14852 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
14853 *
14854 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
14855 * u32 attribute. Destination IPv4 address in network byte order, the
14856 * IPv4 packets with different address will be filtered out.
14857 * This attribute is optional.
14858 *
14859 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
14860 * Flag attribute. If it's present, indicates that
14861 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
14862 * address; while if not, indicates that the address is a unicast/multicast
14863 * address.
14864 * This attribute is optional.
14865 *
14866 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
14867 * NLA_BINARY attribute, length is 16 bytes.
14868 * Destination IPv6 address in network byte order, the IPv6 packets
14869 * with different destination address will be filtered out.
14870 * This attribute is optional.
14871 *
14872 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
14873 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
14874 * Packets on both IPv4 and IPv6 will be processed if both are configured.
14875 *
14876 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
14877 * u16 attribute. Destination UDP port, the packets with different destination
14878 * UDP port will be filtered out.
14879 * This attribute is mandatory.
14880 *
14881 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
14882 * u32 attribute. Represents the offset (in UDP payload) of the data
14883 * to be matched.
14884 * This attribute is mandatory.
14885 *
14886 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
14887 * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
14888 * Binary data that is compared bit-by-bit against the data (specified
14889 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
14890 * payload, the packets don't match will be filtered out.
14891 * This attribute is mandatory.
14892 */
14893enum qca_wlan_vendor_attr_coap_offload_filter {
14894 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
14895 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
14896 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
14897 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
14898 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
14899 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
14900 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
14901
14902 /* keep last */
14903 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
14904 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
14905 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
14906};
14907
14908/**
14909 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
14910 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14911 *
14912 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14913 * u32 attribute. Source address (in network byte order) for replying
14914 * the matching broadcast/multicast IPv4 packets.
14915 * This attribute is optional.
14916 *
14917 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14918 * NLA_BINARY attribute, length is 16 bytes.
14919 * Source address (in network byte order) for replying the matching
14920 * multicast IPv6 packets.
14921 * This attribute is optional.
14922 *
14923 * For broadcast/multicast offload reply, one of
14924 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14925 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14926 * configured according to version of the IP address(es) configured in
14927 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14928 * while for unicast case, firmware will take the destination IP address
14929 * in the received matching packet as the source address for replying.
14930 *
14931 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14932 * Nested attribute. Filter for the received UDP packets, only the matching
14933 * packets will be replied and cached.
14934 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14935 * attributes.
14936 * This attribute is mandatory.
14937 *
14938 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14939 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14940 * CoAP message (UDP payload) to be sent upon receiving matching packets.
14941 * Firmware is responsible for adding any necessary protocol headers.
14942 * This attribute is mandatory.
14943 *
14944 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14945 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14946 * A cached message will be dropped by firmware if it's expired.
14947 * This attribute is optional. A default value of 40000 will be used in the
14948 * absence of it.
14949 */
14950enum qca_wlan_vendor_attr_coap_offload_reply {
14951 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14952 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14953 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14954 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14955 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14956 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14957
14958 /* keep last */
14959 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14960 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14961 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14962};
14963
14964/**
14965 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14966 * CoAP message (UDP) transmitting on IPv4.
14967 *
14968 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14969 * u32 attribute. Source address (in network byte order) for transmitting
14970 * packets on IPv4.
14971 * This attribute is mandatory.
14972 *
14973 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14974 * u16 attribute. Source UDP port.
14975 * This attribute is optional, a random port is taken if it's not present.
14976 *
14977 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14978 * u32 attribute. Destination IPv4 address (in network byte order).
14979 * This attribute is mandatory.
14980 *
14981 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14982 * Flag attribute. If it's present, indicates that
14983 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14984 * address; while if not, indicates that the address is unicast/multicast
14985 * address.
14986 * This attribute is optional.
14987 *
14988 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14989 * u16 attribute. Destination UDP port.
14990 * This attribute is mandatory.
14991 */
14992enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14993 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14994 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14995 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14996 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14997 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14998 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14999
15000 /* keep last */
15001 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
15002 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
15003 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
15004};
15005
15006/**
15007 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
15008 * CoAP message (UDP) transmitting on IPv6.
15009 *
15010 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
15011 * NLA_BINARY attribute, length is 16 bytes.
15012 * Source address (in network byte order) for transmitting packets on IPv6.
15013 * This attribute is mandatory.
15014 *
15015 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
15016 * u16 attribute. Source UDP port.
15017 * This attribute is optional, a random port is taken if it's not present.
15018 *
15019 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
15020 * NLA_BINARY attribute, length is 16 bytes.
15021 * Destination IPv6 address (in network byte order).
15022 * This attribute is mandatory.
15023 *
15024 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
15025 * u16 attribute. Destination UDP port.
15026 * This attribute is mandatory.
15027 */
15028enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
15029 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
15030 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
15031 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
15032 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
15033 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
15034
15035 /* keep last */
15036 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
15037 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
15038 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
15039};
15040
15041/**
15042 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
15043 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
15044 *
15045 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
15046 * Nested attribute. The IPv4 source/destination address/port for offload
15047 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
15048 * of supported attributes.
15049 * This attribute is optional.
15050 *
15051 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
15052 * Nested attribute. The IPv6 source/destination address/port for offload
15053 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
15054 * of supported attributes.
15055 * This attribute is optional.
15056 *
15057 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
15058 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
15059 * Firmware will transmit the packets on both IPv4 and IPv6 if both are
15060 * configured.
15061 *
15062 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
15063 * u32 attribute. Period in milliseconds for the periodic transmitting.
15064 * This attribute is mandatory.
15065 *
15066 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
15067 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15068 * CoAP message (UDP payload) to be periodically transmitted. Firmware
15069 * is responsible for adding any necessary protocol headers.
15070 * This attribute is mandatory.
15071 */
15072enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
15073 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
15074 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
15075 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
15076 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
15077 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
15078
15079 /* keep last */
15080 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
15081 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
15082 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
15083};
15084
15085/**
15086 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
15087 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
15088 *
15089 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
15090 * u64 attribute. Received time (since system booted in microseconds) of
15091 * the cached CoAP message.
15092 * This attribute is mandatory.
15093 *
15094 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
15095 * u32 attribute. Source IPv4 address (in network byte order) of the cached
15096 * CoAP message.
15097 * This attribute is optional.
15098 *
15099 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
15100 * NLA_BINARY attribute, length is 16 bytes.
15101 * Source IPv6 address (in network byte order) of the cached CoAP message.
15102 * This attribute is optional.
15103 *
15104 * At most and at least one of
15105 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
15106 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
15107 * an entry.
15108 *
15109 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
15110 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15111 * The cached CoAP message (UDP payload). If the actual message size is
15112 * greater than the maximum size, it will be truncated and leaving only
15113 * the first 1152 bytes.
15114 * This attribute is mandatory.
Sunil Ravi036cec52023-03-29 11:35:17 -070015115 *
15116 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
15117 * padding for 64-bit alignment
Sunil Ravi89eba102022-09-13 21:04:37 -070015118 */
15119enum qca_wlan_vendor_attr_coap_offload_cache_info {
15120 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
15121 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
15122 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
15123 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
15124 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070015125 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015126
15127 /* keep last */
15128 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
15129 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
15130 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
15131};
15132
15133/**
15134 * enum qca_wlan_vendor_coap_offload_action - Actions for
15135 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15136 *
15137 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
15138 * Enable CoAP offload reply.
15139 * If it's enabled, firmware will start offload processing on each suspend
15140 * and stop on each resume.
15141 *
15142 * Offload reply on match works as follows:
15143 * Reply the packets that match the filter with the given CoAP
15144 * message (with necessary protocol headers), increase the CoAP message
15145 * ID in the given CoAP message by one for the next use after each successful
15146 * transmission, and try to store the information of the received packet,
15147 * including the received time, source IP address, and CoAP message (UDP
15148 * payload).
15149 *
15150 * Firmware has a limit to the maximum stored entries, it takes the source IP
15151 * address as the key of an entry, and keeps at most one entry for each key.
15152 * A packet won't be stored if no entry for the same key is present and the
15153 * total number of the existing unexpired entries reaches the maximum value.
15154 *
15155 * If any configured item is changed, user space should disable offload reply
15156 * first and then issue a new enable request.
15157 *
15158 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
15159 * Disable CoAP offload reply and return information of any cached CoAP
15160 * messages.
15161 *
15162 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
15163 * Enable CoAP offload periodic transmitting.
15164 * If it's enabled, firmware will start offload periodic transmitting on
15165 * each suspend and stop on each resume.
15166 *
15167 * Offload periodic transmitting works as follows:
15168 * Send the given CoAP message (with necessary protocol headers) with the given
15169 * source/destination IP address/UDP port periodically based on the given
15170 * period and increase the CoAP message ID in the given CoAP message by one
15171 * for the next use after each successful transmission.
15172 *
15173 * If any configured item is changed, user space should disable offload
15174 * periodic transmitting first and then issue a new enable request.
15175 *
15176 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
15177 * Disable CoAP offload periodic transmitting.
15178 *
15179 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
15180 * Get information of the CoAP messages cached during offload reply
15181 * processing. The cache is cleared after retrieval.
15182 */
15183enum qca_wlan_vendor_coap_offload_action {
15184 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
15185 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
15186 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
15187 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
15188 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
15189};
15190
15191/**
15192 * enum qca_wlan_vendor_attr_coap_offload - Used by the
15193 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15194 * This is used to set parameters for CoAP offload processing, or get
15195 * cached CoAP messages from firmware.
15196 *
15197 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
15198 * u32 attribute. Action to take in this vendor command.
15199 * See enum qca_wlan_vendor_coap_offload_action for supported actions.
15200 * This attribute is mandatory.
15201 *
15202 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
15203 * u32 attribute. Represents the Request ID for the CoAP offload
15204 * configuration, which can help to identify the user entity starting
15205 * the CoAP offload processing and accordingly stop the respective
15206 * ones/get the cached CoAP messages with the matching ID.
15207 * This attribute is mandatory.
15208 *
15209 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
15210 * Nested attribute. Parameters for offload reply.
15211 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
15212 * supported attributes.
15213 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15214 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
15215 * otherwise.
15216 *
15217 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
15218 * Nested attribute. Parameters for offload periodic transmitting.
15219 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
15220 * supported attributes.
15221 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
15222 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
15223 * otherwise.
15224 *
15225 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
15226 * Array of nested attributes. Information of the cached CoAP messages,
15227 * where each entry is taken from
15228 * enum qca_wlan_vendor_attr_coap_offload_cache_info.
15229 * This attribute is used for reporting the cached CoAP messages
15230 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15231 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
15232 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
15233 * cached item if this attribute is not present.
15234 */
15235enum qca_wlan_vendor_attr_coap_offload {
15236 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
15237 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
15238 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
15239 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
15240 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
15241 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
15242
15243 /* keep last */
15244 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
15245 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
15246 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
15247};
15248
15249/**
15250 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
15251 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
15252 * Service (SCS) rule.
15253 *
15254 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
15255 * Represents the unique id of SCS rule to be configured.
15256
15257 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
15258 * Represents the request type: add, remove, or change.
15259 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
15260 * Type definitions).
15261 *
15262 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
15263 * in case of add/change request type.
15264 * Represents the output traffic identifier (TID) to be assigned to the flow
15265 * matching the rule.
15266 *
15267 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
15268 * attribute in case of add/change request type.
15269 * Represents type of classifier parameters present in SCS rule.
15270 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
15271 * Only classifier types 4 and 10 are supported for SCS.
15272 *
15273 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
15274 * in case of add/change request type when classifier type is TCLAS4.
15275 * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
15276 *
15277 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
15278 * attribute in case of add/change request type when classifier type is TCLAS4
15279 * and version attribute is IPv4.
15280 * Represents the source IPv4 address in the rule which is to be compared
15281 * against the source IP address in the IPv4 header.
15282 *
15283 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
15284 * attribute in case of add/change request type when classifier type is TCLAS4
15285 * and version attribute is IPv4.
15286 * Represents the destination IPv4 address in the rule which is to be compared
15287 * against the destination IP address in the IPv4 header.
15288 *
15289 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
15290 * attribute in case of add/change request type when classifier type is TCLAS4
15291 * and version attribute is IPv6.
15292 * Represents the source IPv6 address in the rule which is to be compared
15293 * against the source IP address in the IPv6 header.
15294 *
15295 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
15296 * attribute in case of add/change request type when classifier type is TCLAS4
15297 * and version attribute is IPv6.
15298 * Represents the destination IPv6 address in the rule which is to be compared
15299 * against the destination IP address in the IPv6 header.
15300 *
15301 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
15302 * in case of add/change request type when classifier type is TCLAS4.
15303 * Represents the source port number in the rule which is to be compared against
15304 * the source port number in the protocol header.
15305 *
15306 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
15307 * in case of add/change request type when classifier type is TCLAS4.
15308 * Represents the destination port number in the rule which is to be compared
15309 * against the destination port number in the protocol header.
15310 *
15311 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
15312 * in case of add/change request type when classifier type is TCLAS4.
15313 * Represents the DSCP value in the rule which is to be compared against the
15314 * DSCP field present in the IP header.
15315 *
15316 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
15317 * attribute in case of add/change request type when classifier type is TCLAS4.
15318 * Represents the protocol/next header in the rule which is to be compared
15319 * against the protocol/next header field present in the IPv4/IPv6 header.
15320 *
15321 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
15322 * attribute of size 3 bytes present in case of add/change request type
15323 * when classifier type is TCLAS4 and version is IPv6.
15324 * Represents the flow label value in the rule which is to be compared against
15325 * the flow label field present in the IPv6 header.
15326 *
15327 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
15328 * attribute in case of add/change request type when classifier type is TCLAS10.
15329 * Represents the protocol instance number in the rule.
15330 *
15331 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
15332 * attribute in case of add/change request type when classifier type is TCLAS10.
15333 * Represents the protocol/next header in the rule which is to be compared
15334 * against the protocol/next header field present in the IPv4/IPv6 header.
15335 *
15336 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
15337 * attribute of variable length present when request type is add/change and
15338 * classifier type is TCLAS10.
15339 * Represents the mask to be used for masking the header contents of the header
15340 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15341 * attribute.
15342 *
15343 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15344 * attribute of variable length present when request type is add/change and
15345 * classifier type is TCLAS10.
15346 * Represents the value to be compared against after masking the header contents
15347 * of the header specified by the
15348 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15349 * filter mask specified by the
15350 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015351 *
15352 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15353 * attribute.
15354 * Represents the service class id of the configured SCS rule.
15355 *
15356 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15357 * MAC address.
15358 * Represents the destination MAC address in the rule.
15359 *
15360 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15361 * Represents the netdevice interface index in the rule.
Sunil Ravi89eba102022-09-13 21:04:37 -070015362 */
15363enum qca_wlan_vendor_attr_scs_rule_config {
15364 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15365 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15366 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15367 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15368 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15369 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15370 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15371 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15372 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15373 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15374 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15375 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15376 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15377 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15378 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15379 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15380 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15381 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15382 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015383 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15384 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15385 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
Sunil Ravi89eba102022-09-13 21:04:37 -070015386
15387 /* Keep last */
15388 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15389 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15390 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15391};
15392
15393/**
15394 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
15395 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
15396 *
15397 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
15398 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
15399 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
15400 */
15401enum qca_wlan_vendor_attr_mlo_links {
15402 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
15403 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
15404 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
15405 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
15406
15407 /* Keep last */
15408 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
15409 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
15410 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
15411};
15412
15413/**
15414 * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15415 * used in the firmware.
15416 *
15417 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15418 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15419 *
15420 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15421 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15422 * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15423 * groups.
15424 *
15425 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15426 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15427 * CTL group but user can choose up to 3 SAR set index only, as the top half
15428 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15429 * the SAR index (3 to 5) is used for DBS mode.
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015430 *
15431 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
15432 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
15433 * for power limit computation in collaboration with WWAN.
15434 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
15435 *
15436 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
15437 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
15438 * instead of fixed static SAR power limit firmware uses time averaging
15439 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
15440 * In this mode firmware has up to 43 indexes.
Sunil Ravi89eba102022-09-13 21:04:37 -070015441 */
15442enum qca_wlan_vendor_sar_version {
15443 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15444 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15445 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15446 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
Sunil Ravib0ac25f2024-07-12 01:42:03 +000015447 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
15448 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
Sunil Ravi89eba102022-09-13 21:04:37 -070015449};
15450
15451/**
15452 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15453 * CTL grouping is enabled or disabled in the firmware.
15454 *
15455 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15456 * is enabled in firmware.
15457 *
15458 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15459 * is disabled in firmware.
15460 *
15461 */
15462enum qca_wlan_vendor_sar_ctl_group_state {
15463 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15464 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15465 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15466};
15467
15468/**
15469 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15470 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15471 * supported by the firmware.
15472
15473 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15474 * u32 attribute. This field describes current SAR version supported by the
15475 * firmware.
15476 * See enum qca_wlan_vendor_sar_version for more information.
15477 * This attribute is mandatory.
15478
15479 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15480 * u32 attribute. This field describes whether CTL groups are enabled
15481 * or disabled in the firmware.
15482 * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15483 * This attribute is optional.
15484 */
15485
15486enum qca_wlan_vendor_attr_sar_capability {
15487 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15488 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15489 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15490
15491 /* Keep last */
15492 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15493 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15494 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15495};
15496
15497/**
15498 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15499 * These statistics are sent from the driver in a response when userspace
15500 * queries to get the statistics using the operation
15501 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15502 * by the driver when the SR feature is enabled, when the driver receives
15503 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15504 *
15505 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15506 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15507 * This represents the number of non-SRG TX opportunities.
15508 *
15509 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15510 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15511 * This represents the number of non-SRG PPDUs tried to transmit.
15512 *
15513 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15514 * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15515 * This represents the number of non-SRG PPDUs successfully transmitted.
15516 *
15517 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15518 * Mandatory only when SRG is supported by the AP and optional otherwise.
15519 * This represents the number of SRG TX opportunities.
15520 *
15521 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15522 * Mandatory only when SRG is supported by the AP and optional otherwise.
15523 * This represents the number of SRG PPDUs tried to transmit.
15524 *
15525 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15526 * Mandatory only when SRG is supported by the AP and optional otherwise.
15527 * This represents the number of SRG PPDUs successfully transmitted.
15528 */
15529enum qca_wlan_vendor_attr_sr_stats {
15530 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15531 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15532 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15533 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15534 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15535 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15536 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15537
15538 /* Keep last */
15539 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15540 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15541 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15542};
15543
15544/**
15545 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15546 * Spatial Reuse feature.
15547 *
15548 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15549 * roaming to an AP that doesn't support/supports SR feature, respectively.
15550 *
15551 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15552 * to change in concurrent interfaces that are supported by the driver.
15553 */
15554enum qca_wlan_sr_reason_code {
15555 QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15556 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15557};
15558
15559/**
15560 * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15561 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15562 *
15563 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15564 * driver to enable the Spatial Reuse feature. Attributes
15565 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15566 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15567 * operation.
15568 *
15569 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15570 * driver to disable the Spatial Reuse feature.
15571 *
15572 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15573 * asynchronous event sent to userspace when the SR feature is disabled.
15574 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15575 * and sent along with the asynchronous event.
15576 *
15577 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15578 * asynchronous event when the SR feature is enabled again after the SR feature
15579 * was suspended by the driver earlier. The enable reason is
15580 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15581 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15582 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15583 *
15584 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15585 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15586 * reuse transmissions. Userspace sends this operation to the driver.
15587 * The driver/firmware upon receiving this operation shall prohibit PSR-based
15588 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15589 *
15590 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15591 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15592 * reuse transmissions. Userspace sends this operation to the driver.
15593 * The driver/firmware upon receiving this operation shall allow PSR-based
15594 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15595 *
15596 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15597 * driver to get the SR statistics and the driver sends a synchronous response
15598 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15599 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15600 *
15601 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15602 * driver to clear the SR statistics and upon receiving this operation
15603 * the driver/firmware shall clear the SR statistics.
15604 *
15605 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15606 * driver to get the SR parameters and the driver sends the synchronous response
15607 * with the following required attributes:
15608 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15609 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15610 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15611 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15612 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15613 *
15614 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15615 * asynchronous event to userspace to update any changes in SR parameters.
15616 * The following attributes are used with this operation:
15617 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15618 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15619 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15620 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15621 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15622 */
15623enum qca_wlan_sr_operation {
15624 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15625 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15626 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15627 QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15628 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15629 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15630 QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15631 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15632 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15633 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15634};
15635
15636/**
15637 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15638 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15639 *
15640 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15641 * This attribute is optionally set in response to
15642 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15643 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15644 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15645 * about HESIGA_Spatial_reuse_value15_allowed.
15646 *
15647 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15648 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15649 * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15650 * allowed or not at non-AP STAs that are associated with the AP. If present
15651 * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15652 *
15653 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15654 * attribute. This attribute is used in response to
15655 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15656 * Min Offset field which contains an unsigned integer that is added to -82 dBm
15657 * to generate the value of the SRG OBSS PD Min parameter.
15658 *
15659 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15660 * attribute. This attribute is used in response to
15661 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15662 * Max Offset field which contains an unsigned integer that is added to -82 dBm
15663 * to generate the value of the SRG OBSS PD Max parameter.
15664 *
15665 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15666 * attribute. This attribute is used in response to
15667 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15668 * PD Max Offset field which contains an unsigned integer that is added to -82
15669 * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15670 *
15671 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15672 * Userspace optionally sends this attribute with
15673 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15674 * preferred SRG PD threshold. The driver shall send this attribute to
15675 * userspace in SR resume event to indicate the PD threshold being used for SR.
15676 * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15677 * the driver shall indicate the userspace the newly configured SRG PD threshold
15678 * using an asynchronous event.
15679 *
15680 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15681 * Userspace optionally sends this attribute with
15682 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15683 * preferred non-SRG PD threshold. The driver shall send this attribute to
15684 * userspace in SR resume event to indicate the PD threshold being used for SR.
15685 * When there is change in non-SRG PD threshold (for example, due to roaming,
15686 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15687 * threshold using an asynchronous event.
15688 *
15689 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15690 * values are defined in enum qca_wlan_sr_reason_code. This
15691 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15692 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15693 */
15694enum qca_wlan_vendor_attr_sr_params {
15695 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15696 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15697 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15698 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15699 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15700 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15701 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15702 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15703 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15704
15705 /* keep last */
15706 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15707 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15708 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15709};
15710
15711/**
15712 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15713 * command QCA_NL80211_VENDOR_SUBCMD_SR.
15714 *
15715 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15716 * from userspace to the driver. Possible values are defined in enum
15717 * qca_wlan_sr_operation.
15718 *
15719 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15720 * configuration parameters. The possible attributes inside this attribute are
15721 * defined in enum qca_wlan_vendor_attr_sr_params.
15722 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15723 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15724 * also in response from the driver to userspace when the response is sent for
15725 * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15726 * The driver uses this attribute in asynchronous events in which the operation
15727 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15728 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15729 *
15730 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15731 * statistics. These attributes used inside this are defined in enum
15732 * qca_wlan_vendor_attr_sr_stats.
15733 * This attribute is used in response from the driver to a command in which
15734 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15735 * %QCA_WLAN_SR_OPERATION_GET_STATS.
15736 */
15737enum qca_wlan_vendor_attr_sr {
15738 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15739 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15740 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15741 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15742
15743 /* Keep last */
15744 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15745 QCA_WLAN_VENDOR_ATTR_SR_MAX =
15746 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15747};
15748
Sunil Ravi77d572f2023-01-17 23:58:31 +000015749/**
15750 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15751 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15752 *
15753 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15754 * used by the peer on the link that corresponds to the link used for sending
15755 * the event notification.
15756 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15757 * MLD MAC address of the peer.
15758 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15759 * used to pass ifindex of the primary netdev.
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015760 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
15761 * used to pass ifindex of the MLD netdev.
15762 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
15763 * used to indicate the number of links that the non-AP MLD negotiated to be
15764 * used in the ML connection.
15765 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
15766 * attribute, contains information regarding links of the non-AP MLD.
15767 * User applications need to know all the links of a non-AP MLD that are
15768 * participating in the ML association. The possible attributes inside this
15769 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
Sunil Ravi77d572f2023-01-17 23:58:31 +000015770 */
15771enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15772 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15773 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15774 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15775 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015776 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
15777 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
15778 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
Sunil Ravi77d572f2023-01-17 23:58:31 +000015779
15780 /* keep last */
15781 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15782 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15783 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15784};
15785
15786/**
Sunil Ravi2a14cf12023-11-21 00:54:38 +000015787 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
15788 * non-AP MLD link parameters used by the attribute
15789 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
15790 *
15791 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
15792 * to pass the netdev ifindex of the non-AP MLD link.
15793 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
15794 * the non-AP MLD link.
15795 */
15796enum qca_wlan_vendor_attr_mlo_link_info {
15797 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
15798 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
15799 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
15800
15801 /* keep last */
15802 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
15803 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
15804 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
15805};
15806
15807/**
Sunil Ravi77d572f2023-01-17 23:58:31 +000015808 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15809 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15810 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15811 * and PSD information.
15812 *
15813 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15814 * u32. This attribute is used to indicate the start of the queried frequency
15815 * range in MHz.
15816 *
15817 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15818 * This attribute is used to indicate the end of the queried frequency range
15819 * in MHz.
15820 *
15821 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
15822 * This attribute will contain the PSD information for a single range as
15823 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
15824 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
15825 *
15826 * The PSD power info (dBm/MHz) from user space should be multiplied
15827 * by a factor of 100 when sending to the driver to preserve granularity
15828 * up to 2 decimal places.
15829 * Example:
15830 * PSD power value: 10.21 dBm/MHz
15831 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
15832 *
15833 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
15834 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
15835 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
15836 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15837 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15838 *
15839 * The following set of attributes will be used to exchange frequency and
15840 * corresponding PSD information for AFC between the user space and the driver.
15841 */
15842enum qca_wlan_vendor_attr_afc_freq_psd_info {
15843 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
15844 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
15845 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
15846 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
15847
15848 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
15849 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
15850 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
15851};
15852
15853/**
15854 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
15855 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
15856 * channel list and corresponding EIRP information.
15857 *
15858 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
15859 * This attribute is used to indicate queried channel from
15860 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
15861 *
15862 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
15863 * This attribute is used to configure the EIRP power info corresponding
15864 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
15865 * The EIRP power info(dBm) from user space should be multiplied
15866 * by a factor of 100 when sending to Driver to preserve granularity up to
15867 * 2 decimal places.
15868 * Example:
15869 * EIRP power value: 34.23 dBm
15870 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
15871 *
15872 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
15873 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15874 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
15875 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15876 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
15877 *
15878 * The following set of attributes will be used to exchange Channel and
15879 * corresponding EIRP information for AFC between the user space and Driver.
15880 */
15881enum qca_wlan_vendor_attr_afc_chan_eirp_info {
15882 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
15883 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
15884 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
15885
15886 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
15887 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
15888 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
15889};
15890
15891/**
15892 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
15893 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15894 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
15895 * channel, and EIRP related information.
15896 *
15897 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
15898 * This attribute is used to indicate the operating class, as listed under
15899 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
15900 *
15901 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
15902 * for updating the channel number and EIRP power information.
15903 * It uses the attributes defined in
15904 * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
15905 *
15906 * Operating class information packing format for
15907 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15908 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15909 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
15910 *
15911 * m - Total number of operating classes.
15912 * n, j - Number of queried channels for the corresponding operating class.
15913 *
15914 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15915 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15916 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15917 * .....
15918 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15919 * ....
15920 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15921 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15922 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15923 * ....
15924 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15925 *
15926 * Operating class information packing format for
15927 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15928 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15929 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15930 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15931 *
15932 * m - Total number of operating classes.
15933 * n, j - Number of channels for the corresponding operating class.
15934 *
15935 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15936 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15937 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15938 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15939 * .....
15940 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15941 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
15942 * ....
15943 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15944 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15945 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15946 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15947 * ....
15948 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15949 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
15950 *
15951 * The following set of attributes will be used to exchange operating class
15952 * information for AFC between the user space and the driver.
15953 */
15954enum qca_wlan_vendor_attr_afc_opclass_info {
15955 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
15956 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
15957 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15958
15959 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15960 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15961 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15962};
15963
15964/**
15965 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15966 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15967 *
15968 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15969 * driver to userspace in order to query the new AFC power values.
15970 *
15971 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15972 * complete event will be sent from the driver to userspace to indicate
15973 * processing of the AFC response.
15974 *
15975 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15976 * will be sent from the driver to userspace to indicate last received
15977 * AFC response data has been cleared on the AP due to invalid data
15978 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15979 *
15980 * The following enum defines the different event types that will be
15981 * used by the driver to help trigger corresponding AFC functionality in user
15982 * space.
15983 */
15984enum qca_wlan_vendor_afc_event_type {
15985 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15986 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15987 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15988};
15989
15990/**
15991 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15992 * deployment type.
15993 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15994 *
15995 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15996 *
15997 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15998 *
15999 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
16000 *
16001 * The following enum defines different deployment modes that the AP might
16002 * come up in. This information will be essential to retrieve deployment-type
16003 * specific SP power values for AFC operation.
16004 */
16005enum qca_wlan_vendor_afc_ap_deployment_type {
16006 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
16007 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
16008 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
16009};
16010
16011/**
16012 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
16013 * indicate AFC response status.
16014 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
16015 *
16016 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
16017 *
16018 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
16019 * command was not received within the expected time of the AFC expiry event
16020 * being triggered.
16021 *
16022 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
16023 * parsing error by the driver.
16024 *
16025 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
16026 * error.
16027 *
16028 * The following enum defines the status codes that the driver will use to
16029 * indicate whether the AFC data is valid or not.
16030 */
16031enum qca_wlan_vendor_afc_evt_status_code {
16032 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
16033 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
16034 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
16035 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
16036};
16037
16038/**
16039 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
16040 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
16041 * support sending only a single request to the user space at a time.
16042 *
16043 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
16044 * Used with event to notify the type of AFC event received.
16045 * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
16046 *
16047 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
16048 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16049 * otherwise unused.
16050 *
16051 * This attribute is used to indicate the AP deployment type in the AFC request.
16052 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
16053 *
16054 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
16055 * Unique request identifier generated by the AFC client for every
16056 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
16057 * The user space application is responsible for ensuring no duplicate values
16058 * are in-flight with the server, e.g., by delaying a request, should the same
16059 * value be received from different radios in parallel.
16060 *
16061 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
16062 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16063 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
16064 *
16065 * This attribute indicates the AFC spec version information. This will
16066 * indicate the AFC version AFC client must use to query the AFC data.
16067 * Bits 15:0 - Minor version
16068 * Bits 31:16 - Major version
16069 *
16070 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
16071 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16072 * otherwise unused.
16073 * This attribute indicates the minimum desired power (in dBm) for
16074 * the queried spectrum.
16075 *
16076 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
16077 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16078 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16079 *
16080 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
16081 * This attribute is used to indicate if there were any errors parsing the
16082 * AFC response.
16083 *
16084 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
16085 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16086 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16087 *
16088 * This attribute indicates the AFC response code. The AFC response codes are
16089 * in the following categories:
16090 * -1: General Failure.
16091 * 0: Success.
16092 * 100 - 199: General errors related to protocol.
16093 * 300 - 399: Error events specific to message exchange
16094 * for the Available Spectrum Inquiry.
16095 *
16096 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
16097 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16098 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16099 *
16100 * This attribute indicates the date until which the current response is
16101 * valid for in UTC format.
16102 * Date format: bits 7:0 - DD (Day 1-31)
16103 * bits 15:8 - MM (Month 1-12)
16104 * bits 31:16 - YYYY (Year)
16105 *
16106 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
16107 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16108 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16109 *
16110 * This attribute indicates the time until which the current response is
16111 * valid for in UTC format.
16112 * Time format: bits 7:0 - SS (Seconds 0-59)
16113 * bits 15:8 - MM (Minutes 0-59)
16114 * bits 23:16 - HH (Hours 0-23)
16115 * bits 31:24 - Reserved
16116 *
16117 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
16118 * for updating the list of frequency ranges to be queried.
16119 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16120 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16121 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16122 * It uses the attributes defined in
16123 * enum qca_wlan_vendor_attr_afc_freq_psd_info.
16124 *
16125 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
16126 * for updating the list of operating classes and corresponding channels to be
16127 * queried.
16128 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16129 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16130 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16131 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
16132 */
16133enum qca_wlan_vendor_attr_afc_event {
16134 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
16135 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
16136 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
16137 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
16138 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
16139 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
16140 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
16141 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
16142 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
16143 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
16144 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
16145 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
16146
16147 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
16148 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
16149 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
16150};
16151
16152/**
16153 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
16154 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
16155 * will support sending only a single AFC response to the driver at a time.
16156 *
16157 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
16158 * This attribute will be used to send a single Spectrum Inquiry response object
16159 * from the 'availableSpectrumInquiryResponses' array object from the response
16160 * JSON.
16161 *
16162 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
16163 *
16164 * This attribute indicates the period (in seconds) for which the response
16165 * data received is valid for.
16166 *
16167 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
16168 *
16169 * This attribute indicates the request ID for which the corresponding
16170 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
16171 *
16172 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
16173 *
16174 * This attribute indicates the date until which the current response is
16175 * valid for in UTC format.
16176 * Date format: bits 7:0 - DD (Day 1-31)
16177 * bits 15:8 - MM (Month 1-12)
16178 * bits 31:16 - YYYY (Year)
16179 *
16180 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
16181 *
16182 * This attribute indicates the time until which the current response is
16183 * valid for in UTC format.
16184 * Time format: bits 7:0 - SS (Seconds 0-59)
16185 * bits 15:8 - MM (Minutes 0-59)
16186 * bits 23:16 - HH (Hours 0-23)
16187 * bits 31:24 - Reserved
16188 *
16189 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
16190 *
16191 * This attribute indicates the AFC response code. The AFC response codes are
16192 * in the following categories:
16193 * -1: General Failure.
16194 * 0: Success.
16195 * 100 - 199: General errors related to protocol.
16196 * 300 - 399: Error events specific to message exchange
16197 * for the Available Spectrum Inquiry.
16198 *
16199 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
16200 * for PSD info of all the queried frequency ranges. It uses the attributes
16201 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
16202 *
16203 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
16204 * attributes for EIRP info of all queried operating class/channels. It uses
16205 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
16206 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
16207 *
16208 */
16209enum qca_wlan_vendor_attr_afc_response {
16210 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
16211 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
16212 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
16213 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
16214 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
16215 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
16216 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
16217 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
16218 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
16219
16220 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
16221 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
16222 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
16223};
16224
16225/**
16226 * enum qca_wlan_dozed_ap_state - Doze states for AP interface
16227 *
16228 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
16229 *
16230 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
16231 * beaconing at higher beacon interval with Rx disabled.
16232 */
16233enum qca_wlan_dozed_ap_state {
16234 QCA_WLAN_DOZED_AP_DISABLE = 0,
16235 QCA_WLAN_DOZED_AP_ENABLE = 1,
16236};
16237
16238/**
16239 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
16240 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
16241 * configuration.
16242 *
16243 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
16244 * Configures the doze state for an AP interface. Possible values are defined
16245 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
16246 * gets triggered asynchronously to provide updated AP interface configuration.
16247 *
16248 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
16249 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
16250 * command, which is used later to maintain synchronization between commands
16251 * and asynchronous events.
16252 *
16253 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
16254 * Used in event to indicate the next TBTT TSF timer value after applying the
16255 * doze mode configuration. Next TBTT TSF is the time at which the AP sends
16256 * the first beacon after entering or exiting dozed mode.
16257 *
16258 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
16259 * Used with event to inform the periodicity of beacon transmission that would
16260 * be skipped at all TBTTs in between.
Sunil Ravi036cec52023-03-29 11:35:17 -070016261 *
16262 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
16263 * alignment.
Sunil Ravi77d572f2023-01-17 23:58:31 +000016264 */
16265enum qca_wlan_vendor_attr_dozed_ap {
16266 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
16267 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
16268 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
16269 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
16270 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
Sunil Ravi036cec52023-03-29 11:35:17 -070016271 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
Sunil Ravi77d572f2023-01-17 23:58:31 +000016272
16273 /* Keep last */
16274 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
16275 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
16276 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
16277};
16278
16279/**
16280 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
16281 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
16282 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
16283 * capture running status.
16284 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
16285 * capture running status.
16286 **/
16287
16288enum qca_wlan_vendor_monitor_mode_status {
16289 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
16290 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
16291};
16292
16293/**
16294 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
16295 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
16296 * information regarding the local packet capture over the monitor mode.
16297 *
16298 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
16299 * represents the status of the start capture commands. The values used with
16300 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
16301 * is returned by the driver in the response to the command.
16302 */
16303
16304enum qca_wlan_vendor_attr_get_monitor_mode {
16305 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
16306 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
16307
16308 /* Keep last */
16309 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
16310 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
16311 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
16312};
16313
Sunil Ravi036cec52023-03-29 11:35:17 -070016314/**
16315 * enum qca_wlan_vendor_link_state_op_types - Defines different types of
16316 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
16317 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
16318 *
16319 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
16320 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
16321 */
16322enum qca_wlan_vendor_link_state_op_types {
16323 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
16324 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
16325};
16326
16327/**
16328 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
16329 * links state control modes. This enum is used by
16330 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
16331 *
16332 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
16333 * by the driver.
16334 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
16335 * user space.
16336 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
16337 * desired number of MLO links to operate in active state at any given time.
16338 * The driver will choose which MLO links should operate in the active state.
16339 * See enum qca_wlan_vendor_link_state for active state definition.
16340 */
16341enum qca_wlan_vendor_link_state_control_modes {
16342 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16343 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16344 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16345};
16346
16347/**
16348 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16349 * links state operation modes. This enum is used by
16350 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16351 *
16352 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16353 * mode, the driver selects the operating mode of the links, without any
16354 * guidance from the user space.
16355 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16356 * operation mode the driver should select MLO links that will achieve low
16357 * latency.
16358 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16359 * throughput operation mode the driver should select MLO links that will
16360 * achieve higher throughput.
16361 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16362 * operation mode the driver should select MLO links that will achieve low
16363 * power.
16364 */
16365enum qca_wlan_vendor_link_state_operation_modes {
16366 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16367 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16368 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16369 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16370};
16371
16372/**
16373 * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16374 * MLO link.
16375 *
16376 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
16377 * be used for data transmission but it can have TIDs mapped to it. It will be
16378 * in doze state always and does not monitor the beacons.
16379 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
16380 * used for data TX/RX and monitors the beacons to check TIM bit indication.
16381 * It may enter doze state and comes out based on the transmit data traffic and
16382 * TIM bit indication in the beacon.
16383 */
16384enum qca_wlan_vendor_link_state {
16385 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16386 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16387};
16388
16389/**
16390 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16391 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16392 *
16393 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16394 * MLO link.
16395 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16396 * enum qca_wlan_vendor_link_state for possible MLO link states.
16397 */
16398
16399enum qca_wlan_vendor_attr_link_state_config {
16400 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16401 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16402 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16403
16404 /* Keep last */
16405 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16406 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16407 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16408};
16409
16410/**
16411 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16412 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16413 *
16414 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16415 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16416 * Required only in a command. Possible values for this attribute are defined in
16417 * enum qca_wlan_vendor_link_state_op_types.
16418 *
16419 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16420 * links control mode type. Optional attribute in a command when
16421 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16422 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16423 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16424 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16425 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16426 *
16427 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16428 * Indicates the state of the each MLO link affiliated with the interface.
16429 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16430 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16431 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16432 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16433 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16434 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16435 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16436 *
16437 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16438 * Represents the number of active state links. See enum
16439 * qca_wlan_vendor_link_state for active state definition.
16440 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16441 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16442 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16443 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16444 *
16445 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16446 * links operation mode type. Optional attribute in a command when
16447 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16448 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16449 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16450 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16451 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16452 * modes.
16453 */
16454enum qca_wlan_vendor_attr_mlo_link_state {
16455 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16456 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16457 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16458 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16459 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16460 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16461
16462 /* keep last */
16463 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16464 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16465 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16466};
16467
Sunil Ravi640215c2023-06-28 23:08:09 +000016468/**
16469 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16470 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16471 *
16472 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16473 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16474 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16475 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16476 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16477 * traffic for that link.
16478 *
16479 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16480 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16481 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16482 * bitmask of the link IDs in which a bit set means that the TID is mapped with
16483 * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16484 * downlink traffic for that link.
16485 */
16486enum qca_wlan_vendor_attr_tid_link_map_status {
16487 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16488 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16489 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16490
16491 /* keep last */
16492 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16493 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16494 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16495};
16496
16497/*
16498 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16499 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16500 *
16501 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16502 * AP MLD address with which this TID-to-link negotiation mapping is
16503 * established/updated.
16504 *
16505 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16506 * nested attributes containing TID-to-links mapping information. This will have
16507 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16508 * map information. If this attribute is not present the default TID-to-link
16509 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16510 * downlink traffic.
16511 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16512 */
16513enum qca_wlan_vendor_attr_tid_to_link_map {
16514 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16515 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16516 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16517
16518 /* keep last */
16519 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16520 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16521 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16522};
16523
16524/**
16525 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16526 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16527 *
16528 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16529 * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16530 *
16531 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16532 * A bitmap of the removed setup links link IDs.
16533 */
16534enum qca_wlan_vendor_attr_link_reconfig {
Sunil Ravi640215c2023-06-28 23:08:09 +000016535 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16536 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16537 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16538
16539 /* keep last */
16540 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16541 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16542 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
16543};
16544
16545/**
16546 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16547 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16548 *
16549 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16550 * Indicates the MLO link id on which the TDLS discovery response
16551 * frame is to be transmitted.
16552 */
16553enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16554 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16555 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16556
16557 /* Keep last */
16558 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16559 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16560 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16561};
16562
Sunil Ravi2a14cf12023-11-21 00:54:38 +000016563/**
16564 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16565 *
16566 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16567 * for all stations.
16568 *
16569 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16570 * establish the session.
16571 *
16572 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16573 * established.
16574 *
16575 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16576 * session is established using MCC.
16577 *
16578 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16579 * established, but is temporarily dropped currently.
16580 *
16581 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16582 */
16583enum qca_wlan_vendor_tdls_state {
16584 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16585 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16586 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16587 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16588 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16589 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16590};
16591
16592/**
16593 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16594 *
16595 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16596 *
16597 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16598 *
16599 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16600 *
16601 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16602 *
16603 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16604 * than through direct link.
16605 *
16606 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16607 * session anymore.
16608 */
16609
16610enum qca_wlan_vendor_tdls_reason {
16611 QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16612 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16613 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16614 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16615 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16616 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16617};
16618
16619/**
16620 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16621 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16622 *
16623 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16624 * station to enable the TDLS session. Optional attribute. The driver sends the
16625 * TDLS session result as an asynchronous response using the command
16626 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16627 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16628 *
16629 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16630 * channel on which the TDLS session to be established. Required only when
16631 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16632 *
16633 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16634 * Indicates the global operating class of the TDLS session to be established.
16635 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16636 *
16637 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16638 * the maximum latency of the WLAN packets to be transmitted/received in
16639 * milliseconds on TDLS session. Required only when
16640 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16641 *
16642 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16643 * Indicates the minimum bandwidth to be used to establish the TDLS session
16644 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16645 * present.
16646 */
16647enum qca_wlan_vendor_attr_tdls_enable {
16648 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
16649 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
16650 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
16651 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
16652 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
16653 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
16654
16655 /* keep last */
16656 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
16657 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
16658 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
16659};
16660
16661/**
16662 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
16663 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
16664 *
16665 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
16666 * station to disable the TDLS session. Optional attribute.
16667 */
16668enum qca_wlan_vendor_attr_tdls_disable {
16669 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
16670 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
16671
16672 /* keep last */
16673 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
16674 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
16675 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
16676};
16677
16678/**
16679 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
16680 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
16681 *
16682 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
16683 * peer station. Optional attribute. Used in
16684 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
16685 *
16686 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
16687 * TDLS session state with the peer specified in
16688 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
16689 * enum qca_wlan_vendor_tdls_state. Used in
16690 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16691 *
16692 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
16693 * reason for the TDLS session state indicated in
16694 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
16695 * qca_wlan_vendor_tdls_reason. Used in
16696 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16697 *
16698 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
16699 * channel of the TDLS session established with
16700 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16701 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16702 *
16703 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
16704 * Indicates the global operating class of the TDLS session established with
16705 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16706 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16707 *
16708 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
16709 * the current number of active TDLS sessions. This is indicated in the response
16710 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16711 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16712 *
16713 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
16714 * whether the driver can initiate new TDLS session. This is indicated in the
16715 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16716 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16717 */
16718enum qca_wlan_vendor_attr_tdls_get_status {
16719 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
16720 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
16721 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
16722 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
16723 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
16724 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
16725 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
16726 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
16727
16728 /* keep last */
16729 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
16730 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
16731 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
16732};
16733
16734/**
16735 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
16736 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
16737 *
16738 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
16739 * peer station. Required attribute.
16740 *
16741 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
16742 * the current TDLS state. Required attribute. Uses the values from
16743 * enum qca_wlan_vendor_tdls_state.
16744 *
16745 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
16746 * reason of the current TDLS session state. Required attribute. Uses the values
16747 * from enum qca_wlan_vendor_tdls_reason.
16748 *
16749 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
16750 * TDLS session channel. Required attribute.
16751 *
16752 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
16753 * Indicates the TDLS session global operating class. Required attribute.
16754 */
16755enum qca_wlan_vendor_attr_tdls_state {
16756 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
16757 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
16758 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
16759 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
16760 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
16761 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
16762
16763 /* keep last */
16764 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
16765 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
16766 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
16767};
16768
16769/*
16770 * enum qca_wlan_vendor_opm_mode - Modes supported by
16771 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
16772 *
16773 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
16774 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
16775 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
16776 * to configure power save inactivity timeout and speculative wake up
16777 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
16778 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
16779 */
16780
16781enum qca_wlan_vendor_opm_mode {
16782 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
16783 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
16784 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
16785};
16786
16787/*
16788 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
16789 * types.
16790 *
16791 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
16792 * from: An MSDU is presented to the driver
16793 * to: the MSDU is queued into TCL SRNG
16794 *
16795 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
16796 * from: the MSDU is queued into TCL SRNG
16797 * to: the MSDU is released by the driver
16798 *
16799 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
16800 * from: the MSDU is presented to the hardware
16801 * to: the MSDU is released by the hardware
16802 *
16803 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
16804 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
16805 * from: A PPDU is presented to the hardware LMAC
16806 * to: over-the-air transmission is started for the PPDU
16807 */
16808enum qca_wlan_vendor_tx_latency_type {
16809 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
16810 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
16811 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
16812 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
16813};
16814
16815/**
16816 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
16817 * used inside nested attributes
16818 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
16819 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
16820 *
16821 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
16822 * Indicates the latency type.
16823 * See enum qca_wlan_vendor_tx_latency_type for the supported types.
16824 *
16825 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
16826 * Indicates the granularity (in microseconds) of the distribution for the
16827 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
16828 * must be positive.
16829 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
16830 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
16831 * of 1000, and the maximum allowed value is 15000 (us).
16832 *
16833 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
16834 * Indicates the average of the latency (in microseconds) for the type
16835 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
16836 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
16837 * otherwise, it represents the quotient of <accumulated latency of the
16838 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
16839 * MSDUs/MPDUs in a cycle>.
16840 *
16841 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
16842 * Array of u32, 4 elements in total, represents the latency distribution for
16843 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
16844 * Each element holds the count of MSDUs/PPDUs (according to the latency type)
16845 * within a range:
16846 * element[0]: latency >= 0 && latency < granularity
16847 * element[1]: latency >= granularity && latency < granularity * 2
16848 * element[2]: latency >= granularity * 2 && latency < granularity * 3
16849 * element[3]: latency >= granularity * 3
16850 */
16851enum qca_wlan_vendor_attr_tx_latency_bucket {
16852 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
16853 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
16854 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
16855 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
16856 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
16857
16858 /* keep last */
16859 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
16860 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
16861 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
16862};
16863
16864/**
16865 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
16866 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
16867 *
16868 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
16869 * Indicates link MAC address of the remote peer. For example, when running
16870 * in station mode, it's the BSSID of the link; while when running in AP
16871 * mode, it's the link MAC address of the remote station.
16872 *
16873 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
16874 * Array of nested attribute.
16875 * Represents the transmit latency statistics for the link specified by
16876 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16877 * Each entry represents the statistics for one of the types defined in
16878 * enum qca_wlan_vendor_tx_latency_type.
16879 * Each defined type has and must have one entry.
16880 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
16881 */
16882enum qca_wlan_vendor_attr_tx_latency_link {
16883 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
16884 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
16885 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
16886
16887 /* keep last */
16888 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
16889 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
16890 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
16891};
16892
16893/**
16894 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
16895 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
16896 *
16897 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
16898 * Disable transmit latency monitoring.
16899 *
16900 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
16901 * Enable transmit latency monitoring.
16902 *
16903 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
16904 * Get transmit latency statistics of the last cycle (period is specified by
16905 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
16906 */
16907enum qca_wlan_vendor_tx_latency_action {
16908 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
16909 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
16910 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
16911};
16912
16913/**
16914 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
16915 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
16916 * per-link transmit latency statistics.
16917 *
16918 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
16919 * 1) used as a command to enable the feature
16920 * Precondition(s):
16921 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16922 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
16923 * Mandatory attribute(s):
16924 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16925 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
16926 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
16927 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16928 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
16929 * Notes:
16930 * The driver will monitor the transmit latency for the active links
16931 * and save the statistics for each cycle (period is set by
16932 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
16933 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
16934 * report is required.
16935 *
16936 * 2) used as a command to disable the feature
16937 * Precondition(s):
16938 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16939 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
16940 * Mandatory attribute(s):
16941 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16942 *
16943 * 3) used as a command to retrieve the statistics for all the active links on
16944 * the requested interface
16945 * Precondition(s):
16946 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16947 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16948 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
16949 * Mandatory attribute(s):
16950 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
16951 * Notes:
16952 * The driver returns failure directly if the feature is not enabled or
16953 * there is no active link.
16954 * The driver returns the statistics of the last cycle in the case of
16955 * success.
16956 *
16957 * 4) used as a command to retrieve the statistics for the specified links
16958 * Precondition(s):
16959 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
16960 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
16961 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
16962 * Mandatory attribute(s):
16963 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
16964 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
16965 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
16966 * Notes:
16967 * The driver returns failure directly if the feature is not enabled or
16968 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
16969 * does not exist or is not in active state.
16970 *
16971 * 5) used as a command response for #3 or #4
16972 * Precondition(s):
16973 * Userspace issues command #3 or #4, and the driver gets corresponding
16974 * statistics successfully.
16975 * Mandatory attribute(s):
16976 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16977 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16978 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16979 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16980 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16981 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16982 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16983 *
16984 * 6) used as an asynchronous event to report the statistics periodically
16985 * Precondition(s):
16986 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
16987 * #1.
16988 * One or more links are in active state.
16989 * Mandatory attribute(s):
16990 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
16991 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
16992 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
16993 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
16994 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
16995 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
16996 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
16997 *
16998 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
16999 *
17000 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
17001 * Action to take in this vendor command.
17002 * See enum qca_wlan_vendor_tx_latency_action for supported actions.
17003 *
17004 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
17005 * Enable (flag attribute present) - The driver needs to report transmit latency
17006 * statistics at the end of each statistical period.
17007 * Disable (flag attribute not present) - The driver doesn't need to report
17008 * transmit latency statistics periodically.
17009 *
17010 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
17011 * Indicates statistical period for transmit latency in terms of milliseconds,
17012 * the minimal allowed value is 100 and the maximum allowed value is 60000.
17013 *
17014 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
17015 * Each entry represents the latency buckets configuration for one of the types
17016 * defined in enum qca_wlan_vendor_tx_latency_type.
17017 * Each defined type has and must have one entry.
17018 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
17019 * supported attributes.
17020 *
17021 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
17022 * Information of the links, each entry represents for one link.
17023 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
17024 * supported attributes for each entry.
17025 */
17026enum qca_wlan_vendor_attr_tx_latency {
17027 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
17028 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
17029 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
17030 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
17031 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
17032 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
17033
17034 /* keep last */
17035 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
17036 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
17037 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
17038};
17039
17040/**
17041 * enum qca_chan_width_update_type - Represents the possible values for
17042 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
17043 *
17044 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
17045 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
17046 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
17047 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
17048 * with AP to indicate the change in the maximum allowed operating bandwidth.
17049 *
17050 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
17051 * bandwidth only to Tx path. In this case the driver doesn't need to conduct
17052 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
17053 * expected to be less than the current connection maximum negotiated bandwidth.
17054 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
17055 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
17056 * to 80 MHz only in the Tx path.
17057 *
17058 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
17059 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
17060 * phymode bandwidth to avoid interoperability issues with APs which don't
17061 * handle the maximum bandwidth change indication correctly.
17062 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
17063 * bandwidth configured is 20 MHz, now the driver indicates the change in
17064 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
17065 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
17066 * interoperability issues with APs which still use 40 MHz for sending the
17067 * frames though it received maximum allowed bandwidth indication as 20 MHz
17068 * from the STA.
17069 */
17070enum qca_chan_width_update_type {
17071 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
17072 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
17073 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
17074};
17075
Sunil Ravib0ac25f2024-07-12 01:42:03 +000017076/**
17077 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
17078 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
17079 *
17080 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
17081 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
17082 * frequency. If non PSD power, carries either 20 MHz bandwidth's center
17083 * channel frequency or 40 MHz bandwidth's center channel frequency
17084 * (or 80/160 MHz bandwidth's center channel frequency).
17085 *
17086 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
17087 * If PSD power, carries PSD power value of the
17088 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
17089 * If non PSD power, carries EIRP power value of bandwidth mentioned
17090 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
17091 */
17092enum qca_wlan_vendor_attr_tpc_pwr_level {
17093 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
17094 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
17095 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
17096
17097 /* keep last */
17098 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
17099 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
17100 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
17101};
17102
17103/**
17104 * enum qca_wlan_vendor_tpc - Definition of link attributes
17105 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
17106 *
17107 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
17108 * For MLO STA, AP BSSID indicates the AP's link address.
17109 *
17110 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
17111 * Indicates using PSD power mode if this flag is present.
17112 *
17113 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
17114 * value in dBm
17115 *
17116 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
17117 * AP, refer to Table E-12-Regulatory Info subfield encoding in
17118 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
17119 *
17120 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
17121 * (dBm) advertised by AP in Power Constraint element, refer to
17122 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
17123 *
17124 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
17125 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
17126 * If PSD power, each power level describes each 20 MHz subchannel PSD
17127 * power value. If non PSD power, each power level describes each supported
17128 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
17129 * each level attribute contains corresponding bandwidth's center channel
17130 * frequency and its EIRP power value.
17131 */
17132enum qca_wlan_vendor_attr_tpc {
17133 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
17134 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
17135 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
17136 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
17137 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
17138 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
17139 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
17140
17141 /* keep last */
17142 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
17143 QCA_WLAN_VENDOR_ATTR_TPC_MAX =
17144 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17145};
17146
17147/**
17148 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
17149 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
17150 *
17151 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
17152 * per-link TPC information of all the active links of MLO STA.
17153 * For non MLO STA, only one link TPC information will be returned
17154 * for connected AP in this nested attribute.
17155 * The attributes used inside this nested attributes are defined
17156 * in enum qca_wlan_vendor_attr_tpc.
17157 */
17158enum qca_wlan_vendor_attr_tpc_links {
17159 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
17160 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
17161
17162 /* keep last */
17163 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
17164 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
17165 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
17166};
17167
17168/**
17169 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
17170 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
17171 *
17172 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
17173 * associated with the firmware page fault that is expected to contain the
17174 * required dump to analyze frequent page faults.
17175 * NLA_BINARY attribute, the maximum size is 1024 bytes.
17176 */
17177enum qca_wlan_vendor_attr_fw_page_fault_report {
17178 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
17179 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
17180
17181 /* keep last */
17182 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
17183 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
17184 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
17185};
17186
Sunil Ravi99c035e2024-07-12 01:42:03 +000017187/**
17188 * enum qca_wlan_btm_support: BTM support configuration
17189 *
17190 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
17191 * follows the BSS Transition bit in the Extended Capabilities element from the
17192 * connect request IEs with the default BTM support policy.
17193 *
17194 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
17195 * (re)association attempts. The driver shall restore the default BTM support
17196 * policy during the first disconnection after successful association. When this
17197 * configuration is enabled, the driver shall overwrite the BSS Transition bit
17198 * as zero in the Extended Capabilities element while sending (Re)Association
17199 * Request frames. Also, the driver shall drop the BTM frames from userspace and
17200 * the connected AP when this configuration is enabled.
17201 */
17202enum qca_wlan_btm_support {
17203 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
17204 QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
17205};
17206
17207/**
17208 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for
17209 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE.
17210 *
17211 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code
17212 * used in OFDM/CCK.
17213 *
17214 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index.
17215 *
17216 */
17217enum qca_wlan_vendor_data_rate_type {
17218 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0,
17219 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1,
17220};
17221
17222/**
17223 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition
17224 * of data rate related attributes which is used inside nested attribute
17225 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG.
17226 *
17227 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type.
17228 * For this attribute, valid values are enumerated in enum
17229 * %qca_wlan_vendor_data_rate_type.
17230 *
17231 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value.
17232 * This attribute value is interpreted according to the value of attribute
17233 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config
17234 * type, this attribute value is defined in the units of 0.5 Mbps.
17235 * For non legacy config type, this attribute carries the MCS index number.
17236 *
17237 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm.
17238 * Usually the target computes a final transmit power that is the maximum
17239 * power level that doesn't exceed the limits enforced by various sources
17240 * like chip-specific conformance test limits (CTL), Specific Absorption
17241 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific
17242 * limits, channel avoidance limits, Automated Frequency Coordination (AFC),
17243 * and others. In some cases it may be desirable to use a power level that is
17244 * lower than the maximum power level allowed by all of these limits, so this
17245 * attribute provides an additional limit that can be used to reduce the
17246 * transmit power level.
17247 *
17248 */
17249enum qca_wlan_vendor_attr_adjust_tx_power_rate {
17250 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0,
17251 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1,
17252 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2,
17253 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3,
17254
17255 /* keep last */
17256 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST,
17257 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX =
17258 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1,
17259};
17260
17261/**
17262 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition
17263 * of chain related attributes which is used inside nested attribute
17264 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG.
17265 *
17266 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value.
17267 * Represents a particular chain for which transmit power adjustment needed.
17268 *
17269 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested
17270 * attribute containing data rate related information to adjust transmit
17271 * power. The attributes used inside this nested attributes are defined in
17272 * enum qca_wlan_vendor_attr_adjust_tx_power_rate.
17273 */
17274enum qca_wlan_vendor_attr_adjust_tx_power_chain_config {
17275 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0,
17276 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1,
17277 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2,
17278
17279 /* keep last */
17280 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST,
17281 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX =
17282 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1,
17283};
17284
17285/**
17286 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition
17287 * of band related attributes which is used inside nested attribute
17288 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG.
17289 *
17290 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to
17291 * indicate band for which configuration applies. Valid values are enumerated
17292 * in enum %nl80211_band.
17293 *
17294 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested
17295 * attribute containing per chain related information to adjust transmit
17296 * power. The attributes used inside this nested attribute are defined in
17297 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config.
17298 *
17299 */
17300enum qca_wlan_vendor_attr_adjust_tx_power_band_config {
17301 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0,
17302 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1,
17303 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2,
17304
17305 /* keep last */
17306 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST,
17307 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX =
17308 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1,
17309};
17310
17311/**
17312 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes
17313 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand.
17314 *
17315 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute
17316 * containing per band related information to adjust transmit power.
17317 * The attributes used inside this nested attributes are defined in
17318 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config.
17319 */
17320enum qca_wlan_vendor_attr_adjust_tx_power {
17321 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0,
17322 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1,
17323
17324 /* keep last */
17325 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST,
17326 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX =
17327 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1,
17328};
17329
17330/**
17331 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute
17332 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE.
17333 *
17334 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to
17335 * send spectral data to userspace applications.
17336 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface
17337 * to send spectral data to userspace applications.
17338 */
17339enum qca_wlan_vendor_spectral_data_transport_mode {
17340 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0,
17341 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1,
17342};
17343
17344/* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute
17345 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to
17346 * indicate the completion status for a spectral scan.
17347 *
17348 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL:
17349 * Indicates a successful completion of the scan.
17350 *
17351 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates
17352 * a timeout has occured while processing the spectral reports.
17353 */
17354enum qca_wlan_vendor_spectral_scan_complete_status {
17355 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0,
17356 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1,
17357};
17358
17359/* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of
17360 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE
17361 * to indicate scan status and samples received from hardware.
17362 *
17363 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute
17364 *
17365 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute.
17366 * Indicates completion status, either the scan is successful or a timeout
17367 * is issued by the driver.
17368 * See enum qca_wlan_vendor_spectral_scan_complete_status.
17369 *
17370 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32
17371 * attribute. Number of spectral samples received after the scan has started.
17372 */
17373enum qca_wlan_vendor_attr_spectral_scan_complete {
17374 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0,
17375 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1,
17376 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2,
17377
17378 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST,
17379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX =
17380 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1,
17381};
17382
Sunil Ravi7f769292024-07-23 22:21:32 +000017383/**
17384 * enum qca_wlan_vendor_async_get_station_attr - Attribute values for
17385 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command.
17386 *
17387 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to
17388 * configure the driver to enable/disable reporting
17389 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable.
17390 * This is required in a command.
17391 *
17392 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is
17393 * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event.
17394 * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC
17395 * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see
17396 * enum nl80211_sta_info.
17397 */
17398enum qca_wlan_vendor_async_get_station_attr {
17399 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0,
17400 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1,
17401 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2,
17402
17403 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST,
17404 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX =
17405 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1,
17406};
17407
17408/* enum qca_wlan_vendor_ap_suspend_state - Attribute values for
17409 * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE.
17410 *
17411 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used
17412 * with a command, the driver resumes AP with the same configuration that was
17413 * applied earlier and starts all TX/RX operations. When used in an event,
17414 * indicates the AP interface resumed.
17415 *
17416 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this
17417 * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP
17418 * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE
17419 * or AP stop/teardown operations. When used in an event, indicates the AP
17420 * interface suspended.
17421 */
17422enum qca_wlan_vendor_ap_suspend_state {
17423 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0,
17424 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1,
17425};
17426
17427/* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for
17428 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state.
17429 *
17430 * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify
17431 * suspend state defined in enum qca_wlan_vendor_ap_suspend_state.
17432 */
17433enum qca_wlan_vendor_attr_ap_suspend {
17434 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0,
17435 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1,
17436
17437 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST,
17438 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX =
17439 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1,
17440};
17441
17442/**
17443 * enum qca_traffic_type - Traffic types into which the flows can be classified.
17444 * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming
17445 * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming
17446 * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call
17447 * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call
17448 * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share
17449 * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown
17450 * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type
17451 */
17452enum qca_traffic_type {
17453 QCA_TRAFFIC_TYPE_STREAMING = 0,
17454 QCA_TRAFFIC_TYPE_GAMING = 1,
17455 QCA_TRAFFIC_TYPE_VOICE_CALL = 2,
17456 QCA_TRAFFIC_TYPE_VIDEO_CALL = 3,
17457 QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4,
17458 QCA_TRAFFIC_TYPE_UNKNOWN = 5,
17459 QCA_TRAFFIC_TYPE_INVALID = 6,
17460};
17461
17462/**
17463 * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify
17464 * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL.
17465 *
17466 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow
17467 *
17468 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow
17469 */
17470enum qca_wlan_vendor_flow_tuple_proto {
17471 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0,
17472 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1,
17473};
17474
17475/**
17476 * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a
17477 * flow tuple.
17478 *
17479 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute
17480 * indicates the source IPv4 address (in network byte order).
17481 *
17482 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute
17483 * indicates the destination IPv4 address (in network byte order).
17484 *
17485 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY
17486 * attribute of 16 bytes length that indicates the source IPv6 address
17487 * (in network byte order) for a flow.
17488 *
17489 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY
17490 * attribute of 16 bytes length that indicates the destination IPv6 address
17491 * (in network byte order) for a flow.
17492 *
17493 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates
17494 * the TCP/UDP source port.
17495 *
17496 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates
17497 * the TCP/UDP destination port.
17498 *
17499 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates
17500 * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto.
17501 *
17502 * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR
17503 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR.
17504 * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR
17505 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR.
17506 */
17507enum qca_wlan_vendor_attr_flow_tuple {
17508 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0,
17509 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1,
17510 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2,
17511 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3,
17512 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4,
17513 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5,
17514 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6,
17515 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7,
17516
17517 /* keep last */
17518 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST,
17519 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX =
17520 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1,
17521};
17522
17523/**
17524 * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify
17525 * TX/RX sample for one window.
17526 *
17527 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates
17528 * the total number of uplink/downlink bytes within the sampling window.
17529 *
17530 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates
17531 * the total number of packets (uplink/downlink) within the sampling window.
17532 *
17533 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute
17534 * indicates the minimum uplink/downlink packet size (in bytes) during the
17535 * sampling window.
17536 *
17537 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute
17538 * indicates the maximum uplink/downlink packet size (in bytes) during the
17539 * sampling window.
17540 *
17541 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute
17542 * indicates the minimum uplink/downlink packet IAT (inter-arrival time)
17543 * in microseconds, during the sampling window.
17544 *
17545 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute
17546 * indicates the maximum uplink/downlink packet IAT (inter-arrival time)
17547 * in microseconds, during the sampling window.
17548 *
17549 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute
17550 * indicates the sum of all the values of uplink/downlink packet IAT
17551 * (inter-arrival time) in microseconds, during the sampling window.
17552 * This attribute is used to calculate the mean packet (inter-arrival time)
17553 * during the sampling window.
17554 */
17555enum qca_wlan_vendor_attr_txrx_stats {
17556 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0,
17557 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1,
17558 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2,
17559 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3,
17560 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4,
17561 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5,
17562 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6,
17563 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7,
17564
17565 /* keep last */
17566 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST,
17567 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX =
17568 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1,
17569};
17570
17571/**
17572 * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes
17573 * to specify the TX/RX statistics collected in a sampling window.
17574 *
17575 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32
17576 * attribute indicates window size for packet TX/RX sampling (in milliseconds).
17577 *
17578 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested
17579 * attribute containing the uplink TX/RX packet statistics for a flow. Uses the
17580 * enum qca_wlan_vendor_attr_txrx_stats.
17581 *
17582 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested
17583 * attribute containing the downlink TX/RX packet statistics for a flow. Uses
17584 * the enum qca_wlan_vendor_attr_txrx_stats.
17585 */
17586enum qca_wlan_vendor_attr_txrx_samples_windows {
17587 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0,
17588 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1,
17589 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2,
17590 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3,
17591
17592 /* keep last */
17593 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST,
17594 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX =
17595 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1,
17596};
17597
17598/**
17599 * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify
17600 * a TX/RX sample.
17601 *
17602 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested
17603 * attributes that indicates the TX/RX samples in multiple overlapping windows.
17604 * This uses the attributes defined by
17605 * enum qca_wlan_vendor_attr_txrx_samples_windows.
17606 */
17607enum qca_wlan_vendor_attr_txrx_samples {
17608 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0,
17609 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1,
17610
17611 /* keep last */
17612 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST,
17613 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX =
17614 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1,
17615};
17616
17617/**
17618 * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify
17619 * burst statistics.
17620 *
17621 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute
17622 * indicates minimum burst duration (in milliseconds) during the sampling
17623 * window.
17624 *
17625 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute
17626 * indicates maximum burst duration (in milliseconds) during the sampling
17627 * window.
17628 *
17629 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute
17630 * indicates the sum of all the values of burst duration (in milliseconds)
17631 * during the sampling window. This attribute is used to calculate the mean
17632 * burst duration (in milliseconds) during the sampling window.
17633 *
17634 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute
17635 * indicates minimum burst size (in bytes) during the sampling window.
17636 *
17637 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute
17638 * indicates maximum burst size (in bytes) during the sampling window.
17639 *
17640 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute
17641 * indicates the sum of all the values of burst size (in bytes) during the
17642 * sampling window. This attribute is used to calculate the mean burst size
17643 * (in bytes) during the sampling window.
17644 *
17645 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute
17646 * indicates the number of bursts during the sampling window.
17647 */
17648enum qca_wlan_vendor_attr_burst_stats {
17649 QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0,
17650 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1,
17651 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2,
17652 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3,
17653 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4,
17654 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5,
17655 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6,
17656 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7,
17657
17658 /* keep last */
17659 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST,
17660 QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX =
17661 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1,
17662};
17663
17664/**
17665 * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify
17666 * a burst sample.
17667 *
17668 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute
17669 * indicates the uplink and downlink packet statistics collected in a
17670 * sampling window, containing attributes defined in
17671 * enum qca_wlan_vendor_attr_txrx_samples_windows.
17672 *
17673 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute
17674 * indicates the uplink burst stats, containing attributes defined in
17675 * enum qca_wlan_vendor_attr_burst_stats.
17676 *
17677 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute
17678 * indicates the downlink burst stats, containing attributes defined in
17679 * enum qca_wlan_vendor_attr_burst_stats.
17680 */
17681enum qca_wlan_vendor_attr_burst_sample {
17682 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0,
17683 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1,
17684 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2,
17685 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3,
17686
17687 /* keep last */
17688 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST,
17689 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX =
17690 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1,
17691};
17692
17693/**
17694 * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by
17695 * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and
17696 * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS.
17697 *
17698 * Presence of one of the attributes
17699 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and
17700 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory.
17701 *
17702 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute
17703 * containing the flow tuple of the flow for which the statistics are being
17704 * reported.
17705 * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple.
17706 *
17707 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute
17708 * indicates the traffic type classified for this flow tuple. Uses the
17709 * enum qca_traffic_type values.
17710 * This attribute is mandatory for the command
17711 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT.
17712 *
17713 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute
17714 * containing nested array of TX/RX samples defined in
17715 * enum qca_wlan_vendor_attr_txrx_samples.
17716 *
17717 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute
17718 * indicates the packet burst statistics for a flow. Uses attributes defined by
17719 * enum qca_wlan_vendor_attr_burst_sample.
17720 */
17721enum qca_wlan_vendor_attr_flow_stats {
17722 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0,
17723 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1,
17724 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2,
17725 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3,
17726 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4,
17727
17728 /* keep last */
17729 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST,
17730 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX =
17731 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1,
17732};
17733
17734/**
17735 * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to
17736 * specify the flow classification result. This enum is used by
17737 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT.
17738 *
17739 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested
17740 * attribute containing attributes defined by
17741 * enum qca_wlan_vendor_attr_flow_tuple.
17742 *
17743 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8
17744 * attribute indicates the traffic type learned for this flow tuple. Uses the
17745 * enum qca_traffic_type values.
17746 */
17747enum qca_wlan_vendor_attr_flow_classify_result {
17748 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0,
17749 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1,
17750 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2,
17751
17752 /* keep last */
17753 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST,
17754 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX =
17755 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1,
17756};
17757
17758/**
17759 * enum qca_async_stats_sub_module - The statistics type used in async
17760 * statistics policy.
17761 * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE.
17762 *
17763 * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics
17764 *
17765 * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics
17766 *
17767 * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics
17768 */
17769enum qca_async_stats_type {
17770 QCA_ASYNC_STATS_TYPE_POWERSAVE = 0,
17771 QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1,
17772 QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2,
17773};
17774
17775/**
17776 * enum qca_async_stats_action - ASYNC statistics action. Used by
17777 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION.
17778 *
17779 * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics
17780 * collection.
17781 * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics
17782 * collection.
17783 */
17784enum qca_async_stats_action {
17785 QCA_ASYNC_STATS_ACTION_START = 0,
17786 QCA_ASYNC_STATS_ACTION_STOP = 1,
17787};
17788
17789/**
17790 * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to
17791 * specify the ASYNC statistics policy. This enum is used by
17792 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY.
17793 *
17794 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8
17795 * attribute indicates the statistics type for which the async statistics policy
17796 * needs to be applied by the driver. Uses the enum qca_async_stats_type values.
17797 *
17798 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute
17799 * indicates the action as part of this policy.
17800 * Uses the enum qca_async_stats_action values.
17801 *
17802 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32
17803 * attribute indicates the periodicity (in milliseconds) for the statistics to
17804 * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE.
17805 */
17806enum qca_wlan_vendor_attr_async_stats_policy {
17807 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0,
17808 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1,
17809 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2,
17810 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3,
17811
17812 /* keep last */
17813 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST,
17814 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX =
17815 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1,
17816};
17817
17818/**
17819 * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by
17820 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT.
17821 *
17822 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This
17823 * represents the number of spatial streams.
17824 *
17825 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This
17826 * represents the number of MSDU packets transmitted with the number of spatial
17827 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
17828 *
17829 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This
17830 * represents the number of MSDU packets received with the number of spatial
17831 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
17832 */
17833enum qca_wlan_vendor_attr_nss_pkt {
17834 QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0,
17835 QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1,
17836 QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2,
17837 QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3,
17838
17839 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST,
17840 QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX =
17841 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1,
17842};
17843
17844/**
17845 * enum qca_wlan_intf_offload_type - Definition of available values for
17846 * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for
17847 * packets handled through a network device.
17848 *
17849 * There are three offload paths possible for handling packet forwarding between
17850 * Ethernet and Wi-Fi network, and which path to use can be configured on a per
17851 * netdevice level based on use case. Userspace can choose different options
17852 * based on use cases like performance requirements, traffic control features
17853 * and limitations provided in each option.
17854 *
17855 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured.
17856 * Packets are processed through the Linux kernel networking stack.
17857 *
17858 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through
17859 * the shortcut forwarding engine (SFE) to bypass the Linux networking stack
17860 * for improved throughput performance. This option is applicable for AP, STA,
17861 * and Mesh mode and available for all radio designs. From the performance
17862 * aspect, this option consumes more CPU compared to the other two options.
17863 * Linux traffic control can be further applied with this option to have more
17864 * control on the traffic flows.
17865 *
17866 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed
17867 * through both hardware and software in this case. Packet classification is
17868 * done by the hardware and then the packets are delivered to software along
17869 * with classification results as meta data. Software can choose to do more
17870 * classification/QoS based on use cases. This is applicable for AP, STA, and
17871 * Mesh modes and this is available for all radio designs. From the performance
17872 * aspect, this option consumes relatively less CPU compared to the SFE option
17873 * above. Linux traffic control rules cannot be applied with this option.
17874 *
17875 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through
17876 * special hardware (Direct Switch) rings which can directly forward the packets
17877 * between Ethernet hardware and Wi-Fi hardware with very little software
17878 * involvement. This is applicable only for AP and STA modes; not applicable
17879 * for Mesh mode. From the performance aspect, this option consumes very much
17880 * less CPU compared to the other options. Linux traffic control rules cannot be
17881 * applied when this option is used. This option is applicable only for
17882 * specific radio designs. When this option is not available, the default option
17883 * (SFE) would be configured.
17884 */
17885enum qca_wlan_intf_offload_type {
17886 QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0,
17887 QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1,
17888 QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2,
17889 QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3,
17890};
17891
17892/**
17893 * enum qca_wlan_vendor_attr_usd_op_type: Attribute values for
17894 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE to the vendor subcmd
17895 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a mandatory u8 attribute which
17896 * represents the USD command type.
17897 *
17898 * @QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH: Indicates USD tear down of all active
17899 * publish and subscribe sessions.
17900 *
17901 * @QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH: Indicates USD solicited publish
17902 * operation that enables to offer a service for other devices based on
17903 * given parameters.
17904 *
17905 * @QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE: Indicates USD active subscribe
17906 * operation that requests for a given service with given parameters from
17907 * other devices that offer the service.
17908 *
17909 * @QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH: Indicates update of an instance
17910 * of the publish function of given publish id.
17911 *
17912 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH: Indicates cancellation of an
17913 * instance of the publish function.
17914 *
17915 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE: Indicates cancellation of an
17916 * instance of the subscribe function.
17917 */
17918enum qca_wlan_vendor_attr_an_usd_op_type {
17919 QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH = 0,
17920 QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH = 1,
17921 QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE = 2,
17922 QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH = 3,
17923 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH = 4,
17924 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE = 5,
17925};
17926
17927/**
17928 * enum qca_wlan_vendor_attr_usd_service_protocol_type: Attribute values for
17929 * %QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE to the vendor subcmd
17930 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a u8 attribute which represents the
17931 * USD service protocol type for service specific information.
17932 *
17933 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR: Indicates SSI info is
17934 * of type Bonjour
17935 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC: Indicates SSI info is
17936 * of type generic
17937 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER: Indicates SSI info
17938 * is of type CSA/Matter
17939 */
17940enum qca_wlan_vendor_attr_usd_service_protocol_type {
17941 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR = 1,
17942 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC = 2,
17943 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER = 3,
17944};
17945
17946/**
17947 * enum qca_wlan_vendor_attr_usd_chan_config - Attributes used inside nested
17948 * attribute %QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG.
17949 *
17950 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ: Required
17951 * u32 attribute containing the default channel frequency (MHz).
17952 *
17953 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST: Optional array of channel
17954 * frequencies in MHz (u32) to publish or subscribe.
17955 */
17956enum qca_wlan_vendor_attr_usd_chan_config {
17957 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_INVALID = 0,
17958 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ = 1,
17959 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST = 2,
17960
17961 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST,
17962 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_MAX =
17963 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST - 1,
17964};
17965
17966/**
17967 * enum qca_wlan_vendor_attr_usd_status
17968 *
17969 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS: USD request success status.
17970 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED: USD request failed status.
17971 */
17972enum qca_wlan_vendor_attr_usd_status {
17973 QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS,
17974 QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED,
17975};
17976
17977/* enum qca_wlan_vendor_attr_usd: Attributes used by vendor command
17978 * %QCA_NL80211_VENDOR_SUBCMD_USD.
17979 *
17980 * @QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR: 6-byte source MAC address
17981 * Mandatory attribute used with type
17982 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
17983 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
17984 *
17985 * @QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE: Required u8 attribute.
17986 * It indicates the type of the USD command. It uses values defined in enum
17987 * qca_wlan_vendor_attr_usd_op_type.
17988 *
17989 * @QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID: Required u8 attribute.
17990 * It contains the publisher/subscribe id that is specific to the
17991 * publish/subscribe instance.
17992 *
17993 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID: Required 6-byte attribute.
17994 * It contains the service id that is specific to the service being
17995 * published/subscribed.
17996 *
17997 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE: u8 attribute that indicates
17998 * the service protocol type of service specific info. It uses values
17999 * defined in enum qca_wlan_vendor_attr_usd_service_protocol_type. It is
18000 * applicable when %QCA_WLAN_VENDOR_ATTR_USD_SSI is present.
18001 *
18002 * @QCA_WLAN_VENDOR_ATTR_USD_SSI: u8 array containing service specific
18003 * information that has to be conveyed in publish/subscribe message.
18004 * Optional attribute used with type
18005 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH,
18006 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE, and
18007 * %QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH.
18008 *
18009 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG: Nested attribute containing USD
18010 * channel configuration parameters.
18011 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18012 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18013 * See enum qca_wlan_vendor_attr_usd_chan_config for nested attributes.
18014 *
18015 * @QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER: u8 array containing a USD
18016 * element container buffer that has to be conveyed in publish/subscribe
18017 * message.
18018 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and
18019 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE.
18020 *
18021 * @QCA_WLAN_VENDOR_ATTR_USD_TTL: u16 attribute. Indicates the timeout
18022 * for each request in seconds. Timeout value 0 represents single time
18023 * operation.
18024 *
18025 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS: u8 attribute. Status received in event
18026 * indicating whether the underlying driver/firmware has started the USD
18027 * operation as indicated by attributes
18028 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE and
18029 * %QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID.
18030 * enum qca_wlan_vendor_attr_usd_status indicates status values.
18031 */
18032enum qca_wlan_vendor_attr_usd {
18033 QCA_WLAN_VENDOR_ATTR_USD_INVALID = 0,
18034 QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR = 1,
18035 QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE = 2,
18036 QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID = 3,
18037 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID = 4,
18038 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE = 5,
18039 QCA_WLAN_VENDOR_ATTR_USD_SSI = 6,
18040 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG = 7,
18041 QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER = 8,
18042 QCA_WLAN_VENDOR_ATTR_USD_TTL = 9,
18043 QCA_WLAN_VENDOR_ATTR_USD_STATUS = 10,
18044
18045 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST,
18046 QCA_WLAN_VENDOR_ATTR_USD_MAX =
18047 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST - 1,
18048};
18049
Dmitry Shmidtcf32e602014-01-28 10:57:39 -080018050#endif /* QCA_VENDOR_H */