1 /*
2  * Qualcomm Atheros OUI and vendor specific assignments
3  * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
4  * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
5  *
6  * Changes from Qualcomm Innovation Center are provided under the following license:
7  *
8  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted (subject to the limitations in the
12  * disclaimer below) provided that the following conditions are met:
13  *
14  *   * Redistributions of source code must retain the above copyright
15  *     notice, this list of conditions and the following disclaimer.
16  *
17  *   * Redistributions in binary form must reproduce the above
18  *     copyright notice, this list of conditions and the following
19  *     disclaimer in the documentation and/or other materials provided
20  *     with the distribution.
21  *
22  *   * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its
23  *     contributors may be used to endorse or promote products derived
24  *     from this software without specific prior written permission.
25  *
26  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
27  * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
28  * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
29  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31  * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
32  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
36  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
38  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39  */
40 
41 #ifndef QCA_VENDOR_H
42 #define QCA_VENDOR_H
43 
44 /*
45  * This file is a registry of identifier assignments from the Qualcomm Atheros
46  * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
47  * can be assigned through normal review process for changes to the upstream
48  * hostap.git repository.
49  */
50 
51 #define OUI_QCA 0x001374
52 
53 #ifndef BIT
54 #define BIT(x) (1U << (x))
55 #endif
56 
57 /**
58  * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
59  */
60 enum qca_radiotap_vendor_ids {
61 	QCA_RADIOTAP_VID_WLANTEST = 0,
62 };
63 
64 /**
65  * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
66  *
67  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
68  *
69  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
70  *
71  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
72  *	internal BSS-selection. This command uses
73  *	@QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
74  *	for the current connection (i.e., changes policy set by the nl80211
75  *	Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
76  *	included to indicate which BSS to use in case roaming is disabled.
77  *
78  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
79  *	ranges to avoid to reduce issues due to interference or internal
80  *	co-existence information in the driver. These frequencies aim to
81  *	minimize the traffic but not to totally avoid the traffic. That said
82  *	for a P2P use case, these frequencies are allowed for the P2P
83  *	discovery/negotiation but avoid the group to get formed on these
84  *	frequencies. The event data structure is defined in
85  *	struct qca_avoid_freq_list.
86  *
87  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
88  *	for DFS offloading.
89  *
90  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
91  *	NAN Request/Response and NAN Indication messages. These messages are
92  *	interpreted between the framework and the firmware component. While
93  *	sending the command from userspace to the driver, payload is not
94  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
95  *	is used when receiving vendor events in userspace from the driver.
96  *
97  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
98  *	used to configure PMK to the driver even when not connected. This can
99  *	be used to request offloading of key management operations. Only used
100  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
101  *
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
103  *	NL80211_CMD_ROAM event with optional attributes including information
104  *	from offloaded key management operation. Uses
105  *	enum qca_wlan_vendor_attr_roam_auth attributes. Only used
106  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
107  *
108  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
109  *	invoke the ACS function in device and pass selected channels to
110  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
111  *
112  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
113  *	supported by the driver. enum qca_wlan_vendor_features defines
114  *	the possible features.
115  *
116  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
117  *	which supports DFS offloading, to indicate a channel availability check
118  *	start.
119  *
120  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
121  *	which supports DFS offloading, to indicate a channel availability check
122  *	completion.
123  *
124  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
125  *	which supports DFS offloading, to indicate that the channel availability
126  *	check aborted, no change to the channel status.
127  *
128  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
129  *	driver, which supports DFS offloading, to indicate that the
130  *	Non-Occupancy Period for this channel is over, channel becomes usable.
131  *
132  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
133  *	which supports DFS offloading, to indicate a radar pattern has been
134  *	detected. The channel is now unusable.
135  *
136  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
137  *	Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
138  *
139  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
140  *	based on enum wifi_logger_supported_features. Attributes defined in
141  *	enum qca_wlan_vendor_attr_get_logger_features.
142  *
143  * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
144  *	logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
145  *	attribute for this command. Attributes defined in
146  *	enum qca_wlan_vendor_attr_wifi_logger_start.
147  *
148  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
149  *	capabilities of the driver, parameters includes the attributes defined
150  *	in enum qca_wlan_vendor_attr_tdls_get_capabilities.
151  *
152  * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
153  *	sending of certain periodic IP packet to firmware, attributes defined in
154  *	enum qca_wlan_vendor_attr_offloaded_packets.
155  *
156  * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
157  *	monitoring, defines min and max RSSI which are configured for RSSI
158  *	monitoring. Also used to notify the RSSI breach and provides the BSSID
159  *	and RSSI value that was breached. Attributes defined in
160  *	enum qca_wlan_vendor_attr_rssi_monitoring.
161  *
162  * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
163  *	Data Path (NDP) related operations, attributes defined in
164  *	enum qca_wlan_vendor_attr_ndp_params.
165  *
166  * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
167  *	Neighbour Discovery offload, attributes defined in
168  *	enum qca_wlan_vendor_attr_nd_offload.
169  *
170  * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
171  *	configuration parameter for BPF packet filter, attributes defined in
172  *	enum qca_wlan_vendor_attr_packet_filter.
173  *
174  * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
175  *	maximum supported size, attributes defined in
176  *	enum qca_wlan_vendor_drv_info.
177  *
178  * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
179  *	data about wake reasons and datapath IP statistics, attributes defined
180  *	in enum qca_wlan_vendor_attr_wake_stats.
181  *
182  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
183  *	for IEEE 802.11 communicating outside the context of a basic service
184  *	set, called OCB command. Uses the attributes defines in
185  *	enum qca_wlan_vendor_attr_ocb_set_config.
186  *
187  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
188  *	UTC time. Use the attributes defines in
189  *	enum qca_wlan_vendor_attr_ocb_set_utc_time.
190  *
191  * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
192  *	sending OCB timing advert frames. Uses the attributes defines in
193  *	enum qca_wlan_vendor_attr_ocb_start_timing_advert.
194  *
195  * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
196  *	OCB timing advert. Uses the attributes defines in
197  *	enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
198  *
199  * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
200  *	timer value. Uses the attributes defines in
201  *	enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
202  *
203  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
204  *	link properties of the respective interface. As an event, is used
205  *	to notify the connected station's status. The attributes for this
206  *	command are defined in enum qca_wlan_vendor_attr_link_properties.
207  *
208  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
209  *	to the driver. This command sets the band(s) through either the
210  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
211  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
212  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
213  *	integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
214  *	bit unsigned bitmask values. The allowed values for
215  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
216  *	QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
217  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
218  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
219  *	is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the	both attributes
220  *	are included for backwards compatibility, the configurations through
221  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
222  *	that support both attributes.
223  *
224  * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
225  *	DFS policy and channel hint for ACS operation. This command uses the
226  *	attributes defined in enum qca_wlan_vendor_attr_acs_config and
227  *	enum qca_acs_dfs_mode.
228  *
229  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
230  *	start the P2P Listen offload function in device and pass the listen
231  *	channel, period, interval, count, device types, and vendor specific
232  *	information elements to the device driver and firmware.
233  *	Uses the attributes defines in
234  *	enum qca_wlan_vendor_attr_p2p_listen_offload.
235  *
236  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
237  *	indicate stop request/response of the P2P Listen offload function in
238  *	device. As an event, it indicates either the feature stopped after it
239  *	was already running or feature has actually failed to start. Uses the
240  *	attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
241  *
242  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
243  *	beaconing, this sub command provides the driver, the frequencies on the
244  *	5 GHz band to check for any radar activity. Driver selects one channel
245  *	from this priority list provided through
246  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
247  *	to check for radar activity on it. If no radar activity is detected
248  *	during the channel availability check period, driver internally switches
249  *	to the selected frequency of operation. If the frequency is zero, driver
250  *	internally selects a channel. The status of this conditional switch is
251  *	indicated through an event using the same sub command through
252  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
253  *	listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
254  *
255  * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
256  *	attributes defined in enum qca_wlan_gpio_attr.
257  *
258  * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
259  *	This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
260  *	capabilities are to be fetched and other
261  *	enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
262  *	requested capabilities.
263  *
264  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
265  *	enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
266  *	command and event.
267  *
268  * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
269  *	indoor location features. Capabilities are reported in
270  *	QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
271  *
272  * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
273  *	(fine timing measurement) session with one or more peers.
274  *	Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
275  *	peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
276  *	On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
277  *	events will be reported, followed by
278  *	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
279  *	end of session.
280  *	Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
281  *
282  * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
283  *	A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
284  *	status code indicating session was aborted.
285  *
286  * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
287  *	results for one peer. Results are reported in
288  *	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
289  *
290  * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
291  *	FTM session is finished, either successfully or aborted by
292  *	request.
293  *
294  * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
295  *	mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
296  *	to enable or disable the responder. LCI/LCR reports can be
297  *	configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
298  *	QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
299  *	times to update the LCI/LCR reports.
300  *
301  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
302  *	arrival) measurement with a single peer. Specify peer MAC address in
303  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
304  *	QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
305  *	scan results cache and use the frequency from there).
306  *	Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
307  *	Measurement result is reported in
308  *	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
309  *
310  * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
311  *	peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
312  *
313  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
314  *	the AOA measurement result.
315  *	Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
316  *	success/failure status is reported in
317  *	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
318  *	Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
319  *	The antenna array(s) used in the measurement are reported in
320  *	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
321  *
322  * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
323  *	data as per the given parameters.
324  *
325  * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
326  *	specific chain.
327  *
328  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
329  *	configuration for a DMG RF sector. Specify sector index in
330  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
331  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
332  *	to return sector information for in
333  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
334  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
335  *	exact time where information was captured in
336  *	QCA_WLAN_VENDOR_ATTR_TSF.
337  *
338  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
339  *	configuration for a DMG RF sector. Specify sector index in
340  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
341  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
342  *	for one or more DMG RF modules in
343  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
344  *
345  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
346  *	DMG RF sector for a station. This is the sector that the HW
347  *	will use to communicate with the station. Specify the MAC address
348  *	of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
349  *	needed for unassociated	station). Specify sector type to return in
350  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
351  *	sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
352  *	Also return the exact time where the information was captured
353  *	in QCA_WLAN_VENDOR_ATTR_TSF.
354  *
355  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
356  *	selected DMG RF sector for a station. This is the sector that
357  *	the HW will use to communicate with the station.
358  *	Specify the MAC address of associated station/AP/PCP in
359  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
360  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
361  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
362  *	The selected sector will be locked such that it will not be
363  *	modified like it normally does (for example when station
364  *	moves around). To unlock the selected sector for a station
365  *	pass the special value 0xFFFF in the sector index. To unlock
366  *	all connected stations also pass a broadcast MAC address.
367  *
368  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
369  *	in the host driver. The different TDLS configurations are defined
370  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
371  *
372  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
373  *	capabilities. The response uses the attributes defined in
374  *	enum qca_wlan_vendor_attr_get_he_capabilities.
375  *
376  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
377  *	started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
378  *	carries the scan cookie of the corresponding scan request. The scan
379  *	cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
380  *
381  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
382  *	Absorption Rate (SAR) power limits. A critical regulation for
383  *	FCC compliance, OEMs require methods to set SAR limits on TX
384  *	power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
385  *	attributes are used with this command.
386  *
387  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
388  *	host driver for offloading the implementation of Auto Channel Selection
389  *	(ACS) to an external user space entity. This interface is used as the
390  *	event from the host driver to the user space entity and also as the
391  *	request from the user space entity to the host driver. The event from
392  *	the host driver is used by the user space entity as an indication to
393  *	start the ACS functionality. The attributes used by this event are
394  *	represented by the enum qca_wlan_vendor_attr_external_acs_event.
395  *	User space entity uses the same interface to inform the host driver with
396  *	selected channels after the ACS operation using the attributes defined
397  *	by enum qca_wlan_vendor_attr_external_acs_channels.
398  *
399  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
400  *	requisite information leading to a power save failure. The information
401  *	carried as part of this event is represented by the
402  *	enum qca_attr_chip_power_save_failure attributes.
403  *
404  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
405  *	collection. Uses attributes defined in enum qca_attr_nud_stats_set.
406  *
407  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
408  *	statistics are represented by the enum qca_attr_nud_stats_get
409  *	attributes.
410  *
411  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
412  *	the BSS transition status, whether accept or reject, for a list of
413  *	candidate BSSIDs provided by the userspace. This uses the vendor
414  *	attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
415  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
416  *	the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
417  *	array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
418  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
419  *	the driver shall specify array of
420  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
421  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
422  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
423  *
424  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
425  *	specific QCA module. The trace levels are represented by
426  *	enum qca_attr_trace_level attributes.
427  *
428  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
429  *	Protocol antenna limit in different modes. See enum
430  *	qca_wlan_vendor_attr_brp_ant_limit_mode.
431  *
432  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
433  *	parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
434  *	This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
435  *	identifying the operation in success case. In failure cases an
436  *	error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
437  *	describing the reason for the failure is returned.
438  *
439  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
440  *	a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
441  *	@QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
442  *	be stopped.
443  *
444  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
445  *	specific interface. This can be used to modify some of the low level
446  *	scan parameters (off channel dwell time, home channel time) in the
447  *	driver/firmware. These parameters are maintained within the host driver.
448  *	This command is valid only when the interface is in the connected state.
449  *	These scan parameters shall be reset by the driver/firmware once
450  *	disconnected. The attributes used with this command are defined in
451  *	enum qca_wlan_vendor_attr_active_tos.
452  *
453  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
454  *	driver has detected an internal failure. This event carries the
455  *	information indicating the reason that triggered this detection. The
456  *	attributes for this command are defined in
457  *	enum qca_wlan_vendor_attr_hang.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
460  *	of spectral parameters used. The spectral scan parameters are specified
461  *	by enum qca_wlan_vendor_attr_spectral_scan.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
464  *	for spectral scan functionality. The debug stats are specified by
465  *	enum qca_wlan_vendor_attr_spectral_diag_stats.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
468  *	scan system capabilities. The capabilities are specified
469  *	by enum qca_wlan_vendor_attr_spectral_cap.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
472  *	status of spectral scan. The status values are specified
473  *	by enum qca_wlan_vendor_attr_spectral_scan_status.
474  *
475  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
476  *	peer pending packets. Specify the peer MAC address in
477  *	QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
478  *	in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
479  *	in enum qca_wlan_vendor_attr_flush_pending.
480  *
481  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
482  *	RF Operating Parameter (RROP) information. The attributes for this
483  *	information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
484  *	intended for use by external Auto Channel Selection applications.
485  *
486  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
487  *	(SAR) power limits. This is a companion to the command
488  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
489  *	settings currently in use. The attributes returned by this command are
490  *	defined by enum qca_vendor_attr_sar_limits.
491  *
492  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
493  *	the WLAN hardware MAC. Also, provides the WLAN netdev interface
494  *	information attached to the respective MAC.
495  *	This works both as a query (user space asks the current mode) or event
496  *	interface (driver advertising the current mode to the user space).
497  *	Driver does not trigger this event for temporary hardware mode changes.
498  *	Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
499  *	channel change, etc.) are updated with this event. Attributes for this
500  *	interface are defined in enum qca_wlan_vendor_attr_mac.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
503  *	per peer per TID. Attributes for this command are define in
504  *	enum qca_wlan_set_qdepth_thresh_attr.
505  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
506  *	guide for WLAN driver. Request to suspend of driver and FW if the
507  *	temperature is higher than the suspend threshold; resume action is
508  *	requested to driver if the temperature is lower than the resume
509  *	threshold. In user poll mode, request temperature data by user. For test
510  *	purpose, getting thermal shutdown configuration parameters is needed.
511  *	Attributes for this interface are defined in
512  *	enum qca_wlan_vendor_attr_thermal_cmd.
513  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
514  *	driver. Thermal temperature and indication of resume completion are
515  *	reported as thermal events. The attributes for this command are defined
516  *	in enum qca_wlan_vendor_attr_thermal_event.
517  *
518  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
519  *	test configuration. Attributes for this command are defined in
520  *	enum qca_wlan_vendor_attr_wifi_test_config.
521  *
522  * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
523  *	RX filter to receive frames from stations that are active on the
524  *	operating channel, but not associated with the local device (e.g., STAs
525  *	associated with other APs). Filtering is done based on a list of BSSIDs
526  *	and STA MAC addresses added by the user. This command is also used to
527  *	fetch the statistics of unassociated stations. The attributes used with
528  *	this command are defined in enum qca_wlan_vendor_attr_bss_filter.
529  *
530  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
531  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
532  *	carried a payload which was a binary blob of data. The command was not
533  *	extendable to send more information. The newer version carries the
534  *	legacy blob encapsulated within an attribute and can be extended with
535  *	additional vendor attributes that can enhance the NAN command interface.
536  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
537  *	or stopped within driver/firmware in order to initiate roaming. The
538  *	attributes used with this event are defined in enum
539  *	qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
540  *	in few cases, e.g., if the host processor is sleeping when this event
541  *	is generated in firmware.
542  *
543  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
544  *	configure parameters per peer to capture Channel Frequency Response
545  *	(CFR) and enable Periodic CFR capture. The attributes for this command
546  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
547  *	can also be used to send CFR data from the driver to userspace when
548  *	netlink events are used to send CFR data.
549  *
550  * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
551  *	in throughput dynamically. The driver estimates the throughput based on
552  *	number of packets being transmitted/received per second and indicates
553  *	the changes in throughput to user space. Userspace tools can use this
554  *	information to configure kernel's TCP parameters in order to achieve
555  *	peak throughput. Optionally, the driver will also send guidance on
556  *	modifications to kernel's TCP parameters which can be referred by
557  *	userspace tools. The attributes used with this event are defined in enum
558  *	qca_wlan_vendor_attr_throughput_change.
559  *
560  * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
561  *	priorities among different types of traffic during coex scenarios.
562  *	Current supported prioritization is among WLAN/BT/ZIGBEE with different
563  *	profiles mentioned in enum qca_coex_config_profiles. The associated
564  *	attributes used with this command are defined in enum
565  *	qca_vendor_attr_coex_config.
566  *
567  *	Based on the config provided, FW will boost the weight and prioritize
568  *	the traffic for that subsystem (WLAN/BT/Zigbee).
569  *
570  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
571  *	the supported AKM suite selectorss from the driver. It returns the list
572  *	of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
573  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
574  *	state from the driver. It returns the firmware state in the attribute
575  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
576  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
577  *	is used by the driver to flush per-peer cached statistics to user space
578  *	application. This interface is used as an event from the driver to
579  *	user space application. Attributes for this event are specified in
580  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
581  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
582  *	sent in the event.
583  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
584  *	improve the success rate of Zigbee joining network.
585  *	Due to PTA master limitation, Zigbee joining network success rate is
586  *	low while WLAN is working. The WLAN driver needs to configure some
587  *	parameters including Zigbee state and specific WLAN periods to enhance
588  *	PTA master. All these parameters are delivered by the attributes
589  *	defined in enum qca_mpta_helper_vendor_attr.
590  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
591  *	implement Beacon frame reporting feature.
592  *
593  *	Userspace can request the driver/firmware to periodically report
594  *	received Beacon frames whose BSSID is same as the current connected
595  *	BSS's MAC address.
596  *
597  *	In case the STA seamlessly (without sending disconnect indication to
598  *	userspace) roams to a different BSS, Beacon frame reporting will be
599  *	automatically enabled for the Beacon frames whose BSSID is same as the
600  *	MAC address of the new BSS. Beacon reporting will be stopped when the
601  *	STA is disconnected (when the disconnect indication is sent to
602  *	userspace) and need to be explicitly enabled by userspace for next
603  *	connection.
604  *
605  *	When a Beacon frame matching configured conditions is received, and if
606  *	userspace has requested to send asynchronous beacon reports, the
607  *	driver/firmware will encapsulate the details of the Beacon frame in an
608  *	event and send it to userspace along with updating the BSS information
609  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
610  *	scan cache with the information from the received Beacon frame but will
611  *	not send any active report to userspace.
612  *
613  *	The userspace can request the driver/firmware to stop reporting Beacon
614  *	frames. If the driver/firmware is not able to receive Beacon frames due
615  *	to other Wi-Fi operations such as off-channel activities, etc., the
616  *	driver/firmware will send a pause event to userspace and stop reporting
617  *	Beacon frames. Whether the beacon reporting will be automatically
618  *	resumed or not by the driver/firmware later will be reported to
619  *	userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
620  *	flag. The beacon reporting shall be resumed for all the cases except
621  *	either when userspace sets
622  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
623  *	which triggered the current beacon reporting or during any disconnection
624  *	case as indicated by setting
625  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
626  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
627  *	driver.
628  *
629  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
630  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
631  *	flag not set, the next first
632  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
633  *	shall be considered as un-pause event.
634  *
635  *	All the attributes used with this command are defined in
636  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
637  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
638  *	interop issues with the DUT. This sub command is used to transfer the
639  *	AP info between the driver and user space. This works both as a command
640  *	and an event. As a command, it configures the stored list of APs from
641  *	user space to firmware; as an event, it indicates the AP info detected
642  *	by the firmware to user space for persistent storage. The attributes
643  *	defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
644  *	the parameters.
645  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
646  *	send/receive OEM data binary blobs to/from application/service to/from
647  *	firmware. The attributes defined in enum
648  *	qca_wlan_vendor_attr_oem_data_params are used to deliver the
649  *	parameters.
650  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
651  *	to send/receive avoid frequency data using
652  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
653  *	This new command is alternative to existing command
654  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
655  *	is using stream of bytes instead of structured data using vendor
656  *	attributes. User space sends unsafe frequency ranges to the driver using
657  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
658  *	reception of this command, the driver shall check if an interface is
659  *	operating on an unsafe frequency and the driver shall try to move to a
660  *	safe channel when needed. If the driver is not able to find a safe
661  *	channel the interface can keep operating on an unsafe channel with the
662  *	TX power limit derived based on internal configurations	like
663  *	regulatory/SAR rules.
664  *
665  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
666  *	add the STA node details in driver/firmware. Attributes for this event
667  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
668  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
669  *	coex chain mode from application/service.
670  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
671  *	to deliver the parameters.
672  *
673  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
674  *	get information of a station from driver to userspace. This command can
675  *	be used in both STA and AP modes. For STA mode, it provides information
676  *	of the current association when in connected state or the last
677  *	association when in disconnected state. For AP mode, only information
678  *	of the currently connected stations is available. This command uses
679  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
680  *
681  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
682  *	Host drivers can request the user space entity to set the SAR power
683  *	limits with this event. Accordingly, the user space entity is expected
684  *	to set the SAR power limits. Host drivers can retry this event to the
685  *	user space for the SAR power limits configuration from user space. If
686  *	the driver does not get the SAR power limits from user space for all
687  *	the retried attempts, it can configure a default SAR power limit.
688  *
689  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
690  *	is used to update the information about the station from the driver to
691  *	userspace. Uses attributes from enum
692  *	qca_wlan_vendor_attr_update_sta_info.
693  *
694  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
695  *	The host driver initiates the disconnection for scenarios such as beacon
696  *	miss, NUD failure, peer kick out, etc. The disconnection indication
697  *	through cfg80211_disconnected() expects the reason codes from enum
698  *	ieee80211_reasoncode which does not signify these various reasons why
699  *	the driver has triggered the disconnection. This event will be used to
700  *	send the driver specific reason codes by the host driver to userspace.
701  *	Host drivers should trigger this event and pass the respective reason
702  *	code immediately prior to triggering cfg80211_disconnected(). The
703  *	attributes used with this event are defined in enum
704  *	qca_wlan_vendor_attr_driver_disconnect_reason.
705  *
706  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
707  *	add/delete TSPEC for each AC. One command is for one specific AC only.
708  *	This command can only be used in STA mode and the STA must be
709  *	associated with an AP when the command is issued. Uses attributes
710  *	defined in enum qca_wlan_vendor_attr_config_tspec.
711  *
712  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
713  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
714  *
715  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
716  *	the driver. The band configurations obtained are referred through
717  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
718  *
719  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
720  *	assessment.
721  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
722  *
723  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
724  *	used to update SSID information in hostapd when it is updated in the
725  *	driver. Uses the attribute NL80211_ATTR_SSID.
726  *
727  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
728  *	the driver to send opaque data from the firmware to userspace. The
729  *	driver sends an event to userspace whenever such data is received from
730  *	the firmware.
731  *
732  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
733  *	send this opaque data for this event.
734  *
735  *	The format of the opaque data is specific to the particular firmware
736  *	version and there is no guarantee of the format remaining same.
737  *
738  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
739  *	The host driver selects Tx VDEV, and notifies user. The attributes
740  *	used with this event are defined in enum
741  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
742  *	This event contains Tx VDEV group information, other VDEVs
743  *	interface index, and status information.
744  *
745  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
746  *	configure the concurrent session policies when multiple interfaces
747  *	are (getting) active. The attributes used by this command are defined
748  *	in enum qca_wlan_vendor_attr_concurrent_policy.
749  *
750  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
751  *	to query usable channels for different interface types such as STA,
752  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
753  *	channels in the response based on country code, different static
754  *	configurations, concurrency combinations, etc. The attributes used
755  *	with this command are defined in
756  *	enum qca_wlan_vendor_attr_usable_channels.
757  *
758  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
759  *	to get DFS radar history from the driver to userspace. The driver
760  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
761  *	array of nested entries.
762  *
763  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
764  *	enable/disable mDNS offload to the firmware. The attributes used with
765  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
766  *
767  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
768  *	to set packet monitor mode that aims to send the specified set of TX and
769  *	RX frames on the current client interface to an active monitor
770  *	interface. If this monitor mode is set, the driver will send the
771  *	configured frames, from the interface on which the command is issued, to
772  *	an active monitor interface. The attributes used with this command are
773  *	defined in enum qca_wlan_vendor_attr_set_monitor_mode.
774  *
775  *	Though the monitor mode is configured for the respective
776  *	Data/Management/Control frames, it is up to the respective WLAN
777  *	driver/firmware/hardware designs to consider the possibility of sending
778  *	these frames over the monitor interface. For example, the Control frames
779  *	are handled within the hardware and thus passing such frames over the
780  *	monitor interface is left to the respective designs.
781  *
782  *	Also, this monitor mode is governed to behave accordingly in
783  *	suspend/resume states. If the firmware handles any of such frames in
784  *	suspend state without waking up the host and if the monitor mode is
785  *	configured to notify all such frames, the firmware is expected to resume
786  *	the host and forward the respective frames to the monitor interface.
787  *	Please note that such a request to get the frames over the monitor
788  *	interface will have a definite power implication.
789  *
790  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
791  *	as a request to set the driver/firmware with the parameters to trigger
792  *	the roaming events, and also used by the driver/firmware to pass on the
793  *	various roam events to userspace.
794  *	Applicable only for the STA mode. The attributes used with this command
795  *	are defined in enum qca_wlan_vendor_attr_roam_events.
796  *
797  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
798  *	rate mask config for a list of PHY types. Userspace shall provide an
799  *	array of the vendor attributes defined in
800  *	enum qca_wlan_vendor_attr_ratemask_params.
801  *
802  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
803  *	when two interfaces are active on the same band, using two different
804  *	home channels, and only supported by a single radio. In this scenario
805  *	the device must split the use of the radio between the two interfaces.
806  *	The percentage of time allocated to a given interface is the quota.
807  *	Depending on the configuration, the quota can either be fixed or
808  *	dynamic.
809  *
810  *	When used as an event, the device will report the quota type, and for
811  *	all interfaces operating in MCC it will report the current quota.
812  *	When used as a command, the device can be configured for a specific
813  *	quota type, and in the case of a fixed quota, the quota to apply to one
814  *	of the interfaces.
815  *
816  *	Applications can use the event to do TX bitrate control based on the
817  *	information, and can use the command to explicitly set the quota to
818  *	enhance performance in specific scenarios.
819  *
820  *	The attributes used with this command are defined in
821  *	enum qca_wlan_vendor_attr_mcc_quota.
822  *
823  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
824  *	get the WLAN radio combinations matrix supported by the device which
825  *	provides the device simultaneous radio configurations such as
826  *	standalone, dual band simultaneous, and single band simultaneous.
827  *
828  *	The attributes used with this command are defined in
829  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
830  *
831  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
832  *	that the driver is ready for operations again after recovering from
833  *	internal failures. This occurs following a failure that was indicated by
834  *	@QCA_NL80211_VENDOR_SUBCMD_HANG.
835  *
836  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
837  *	security negotiation and key generation to user space.
838  *
839  *	When used as an event, the driver requests userspace to trigger the PASN
840  *	authentication or dropping of a PTKSA for the indicated peer devices.
841  *	When used as a command response, userspace indicates a consolidated
842  *	status report for all the peers that were requested for.
843  *
844  *	The attributes used with this command are defined in
845  *	enum qca_wlan_vendor_attr_pasn.
846  *
847  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
848  *	secure ranging context such as TK and LTF keyseed for each peer
849  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
850  *
851  *	The attributes used with this command are defined in
852  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
853  *
854  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
855  *	enable/disable offload processing in firmware during system/runtime
856  *	suspend for CoAP messages (see RFC7252: The Constrained Application
857  *	Protocol) and fetch information of the CoAP messages cached during
858  *	offload processing.
859  *
860  *	The attributes used with this command are defined in
861  *	enum qca_wlan_vendor_attr_coap_offload.
862  *
863  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
864  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
865  *
866  *      The attributes used with this event are defined in
867  *      enum qca_wlan_vendor_attr_scs_rule_config.
868  *
869  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
870  *	supported by the WLAN firmware.
871  *
872  *	The attributes used with this command are defined in
873  *	enum qca_wlan_vendor_attr_sar_capability.
874  *
875  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
876  *	(SR) feature. This command is used by userspace to configure SR
877  *	parameters to the driver and to get the SR related parameters and
878  *	statistics with synchronous responses from the driver.
879  *	The driver also uses this command to send asynchronous events to
880  *	userspace to indicate suspend/resume of SR feature and changes
881  *	in SR parameters.
882  *
883  *	The attributes used with this command are defined in
884  *	enum qca_wlan_vendor_attr_sr.
885  *
886  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
887  *	notify application layer about the primary netdev of an MLO connection.
888  *	In some implementations, MLO has multiple netdevs out of which one
889  *	netdev is designated as primary to provide a unified interface to the
890  *	bridge. In those implementations this event is sent on every MLO peer
891  *	connection.
892  *
893  *	The attributes used with this event are defined in
894  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
895  *
896  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
897  *	driver to notify different AFC events to userspace. The attributes used
898  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
899  *
900  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
901  *	userspace to deliver AFC response data to driver. The attributes used
902  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
903  *
904  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
905  *	operate in doze mode.
906  *
907  *	Userspace uses this command to configure the AP interface to enter or
908  *	exit from doze mode. The driver sends this event after it enters or
909  *	exits the doze mode with the updated AP doze mode settings.
910  *
911  *	The attributes used with this subcommand are defined in
912  *	enum qca_wlan_vendor_attr_dozed_ap.
913  */
914 enum qca_nl80211_vendor_subcmds {
915 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
916 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
917 	/* subcmds 2..8 not yet allocated */
918 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
919 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
920 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
921 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
922 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
923 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
924 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
925 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
926 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
927 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
928 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
929 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
930 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
931 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
932 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
933 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
934 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
935 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
936 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
937 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
938 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
939 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
940 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
941 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
942 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
943 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
944 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
945 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
946 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
947 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
948 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
949 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
950 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
951 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
952 	/* 43..49 - reserved for QCA */
953 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
954 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
955 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
956 	/* 53 - reserved - was used by QCA, but not in use anymore */
957 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
958 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
959 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
960 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
961 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
962 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
963 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
964 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
965 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
966 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
967 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
968 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
969 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
970 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
971 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
972 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
973 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
974 	QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
975 	QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
976 	QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
977 	/* Wi-Fi configuration subcommands */
978 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
979 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
980 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
981 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
982 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
983 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
984 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
985 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
986 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
987 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
988 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
989 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
990 	/* 86-90 - reserved for QCA */
991 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
992 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
993 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
994 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
995 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
996 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
997 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
998 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
999 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1000 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
1001 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
1002 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1003 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1004 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1005 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
1006 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1007 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1008 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1009 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1010 	/* 110..114 - reserved for QCA */
1011 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
1012 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1013 	/* 117 - reserved for QCA */
1014 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
1015 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1016 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
1017 	/* 121 - reserved for QCA */
1018 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1019 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1020 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
1021 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1022 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
1023 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1024 	/* FTM/indoor location subcommands */
1025 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1026 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1027 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1028 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1029 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1030 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1031 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1032 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1033 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
1034 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1035 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
1036 	/* DMG low level RF sector operations */
1037 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1038 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1039 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1040 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1041 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
1042 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
1043 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
1044 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
1045 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1046 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1047 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1048 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
1049 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1050 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
1051 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1052 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1053 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1054 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1055 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
1056 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1057 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1058 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1059 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1060 	/* Flush peer pending data */
1061 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1062 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1063 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1064 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1065 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1066 	/* Thermal shutdown commands to protect wifi chip */
1067 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1068 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1069 	/* Wi-Fi test configuration subcommand */
1070 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1071 	/* Frame filter operations for other BSSs/unassociated STAs */
1072 	QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
1073 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
1074 	QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1075 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
1076 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1077 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1078 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
1079 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1080 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1081 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
1082 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1083 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
1084 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1085 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1086 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1087 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
1088 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
1089 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1090 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1091 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
1092 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1093 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1094 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1095 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1096 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1097 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1098 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
1099 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
1100 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1101 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1102 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1103 	/* 201 - reserved for QCA */
1104 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1105 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1106 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1107 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
1108 	/* 206..212 - reserved for QCA */
1109 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1110 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1111 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1112 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
1113 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1114 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1115 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1116 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
1117 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1118 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1119 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1120 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1121 };
1122 
1123 /* Compatibility defines for previously used subcmd names.
1124  * These values should not be used in any new implementation.
1125  */
1126 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1127 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1128 
1129 enum qca_wlan_vendor_attr {
1130 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1131 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1132 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1133 	/* Used only when driver sends vendor events to the userspace under the
1134 	 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1135 	 * commands to the driver.
1136 	 */
1137 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1138 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1139 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1140 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1141 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1142 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1143 	 * by enum qca_roaming_policy.
1144 	 */
1145 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1146 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1147 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1148 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1149 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1150 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1151 	/* Unsigned 32-bit value. */
1152 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1153 	/* Unsigned 32-bit value */
1154 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1155 	/* Unsigned 32-bit value */
1156 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1157 	/* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1158 	 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1159 	 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1160 	 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1161 	 */
1162 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1163 	/* Dummy (NOP) attribute for 64 bit padding */
1164 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1165 	/* Unique FTM session cookie (Unsigned 64 bit). Specified in
1166 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1167 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1168 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1169 	 */
1170 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1171 	/* Indoor location capabilities, returned by
1172 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1173 	 * see enum qca_wlan_vendor_attr_loc_capa.
1174 	 */
1175 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1176 	/* Array of nested attributes containing information about each peer
1177 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1178 	 * for supported attributes for each peer.
1179 	 */
1180 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1181 	/* Array of nested attributes containing measurement results for
1182 	 * one or more peers, reported by the
1183 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1184 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1185 	 * attributes.
1186 	 */
1187 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1188 	/* Flag attribute for enabling or disabling responder functionality. */
1189 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1190 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1191 	 * command to specify the LCI report that will be sent by
1192 	 * the responder during a measurement exchange. The format is
1193 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1194 	 */
1195 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1196 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1197 	 * command to specify the location civic report that will
1198 	 * be sent by the responder during a measurement exchange.
1199 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1200 	 */
1201 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1202 	/* Session/measurement completion status code,
1203 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1204 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1205 	 * see enum qca_vendor_attr_loc_session_status.
1206 	 */
1207 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1208 	/* Initial dialog token used by responder (0 if not specified),
1209 	 * unsigned 8 bit value.
1210 	 */
1211 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1212 	/* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1213 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1214 	 * AOA measurements are needed as part of an FTM session.
1215 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1216 	 * enum qca_wlan_vendor_attr_aoa_type.
1217 	 */
1218 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1219 	/* A bit mask (unsigned 32 bit value) of antenna arrays used
1220 	 * by indoor location measurements. Refers to the antenna
1221 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1222 	 */
1223 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1224 	/* AOA measurement data. Its contents depends on the AOA measurement
1225 	 * type and antenna array mask:
1226 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1227 	 * phase of the strongest CIR path for each antenna in the measured
1228 	 * array(s).
1229 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1230 	 * values, phase and amplitude of the strongest CIR path for each
1231 	 * antenna in the measured array(s).
1232 	 */
1233 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1234 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1235 	 * to specify the chain number (unsigned 32 bit value) to inquire
1236 	 * the corresponding antenna RSSI value
1237 	 */
1238 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1239 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1240 	 * to report the specific antenna RSSI value (unsigned 32 bit value)
1241 	 */
1242 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1243 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1244 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1245 	/* TSF timer value, unsigned 64 bit value.
1246 	 * May be returned by various commands.
1247 	 */
1248 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1249 	/* DMG RF sector index, unsigned 16 bit number. Valid values are
1250 	 * 0..127 for sector indices or 65535 as special value used to
1251 	 * unlock sector selection in
1252 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1253 	 */
1254 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1255 	/* DMG RF sector type, unsigned 8 bit value. One of the values
1256 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1257 	 */
1258 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1259 	/* Bitmask of DMG RF modules for which information is requested. Each
1260 	 * bit corresponds to an RF module with the same index as the bit
1261 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1262 	 * all DMG chips currently have up to 8 RF modules.
1263 	 */
1264 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1265 	/* Array of nested attributes where each entry is DMG RF sector
1266 	 * configuration for a single RF module.
1267 	 * Attributes for each entry are taken from enum
1268 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1269 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1270 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1271 	 */
1272 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1273 	/* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1274 	 * to report frame aggregation statistics to userspace.
1275 	 */
1276 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1277 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1278 	/* Unsigned 8-bit value representing MBO transition reason code as
1279 	 * provided by the AP used by subcommand
1280 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1281 	 * specified by the userspace in the request to the driver.
1282 	 */
1283 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1284 	/* Array of nested attributes, BSSID and status code, used by subcommand
1285 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1286 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1287 	 * The userspace space specifies the list/array of candidate BSSIDs in
1288 	 * the order of preference in the request. The driver specifies the
1289 	 * status code, for each BSSID in the list, in the response. The
1290 	 * acceptable candidates are listed in the order preferred by the
1291 	 * driver.
1292 	 */
1293 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1294 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1295 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1296 	 */
1297 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1298 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1299 	 * to define the number of antennas to use for BRP.
1300 	 * different purpose in each ANT_LIMIT_MODE:
1301 	 * DISABLE - ignored
1302 	 * EFFECTIVE - upper limit to number of antennas to be used
1303 	 * FORCE - exact number of antennas to be used
1304 	 * unsigned 8 bit value
1305 	 */
1306 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1307 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1308 	 * to report the corresponding antenna index to the chain RSSI value
1309 	 */
1310 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1311 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1312 	 * the specific antenna EVM value (unsigned 32 bit value). With a
1313 	 * determinate group of antennas, the driver specifies the EVM value
1314 	 * for each antenna ID, and application extract them in user space.
1315 	 */
1316 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1317 	/*
1318 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1319 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1320 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1321 	 */
1322 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1323 
1324 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1325 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1326 	 * of single values from enum qca_set_band are valid. This attribute
1327 	 * uses bitmask combinations to define the respective allowed band
1328 	 * combinations and this attributes takes precedence over
1329 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1330 	 */
1331 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1332 
1333 	/* keep last */
1334 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1335 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1336 };
1337 
1338 enum qca_roaming_policy {
1339 	QCA_ROAMING_NOT_ALLOWED,
1340 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
1341 };
1342 
1343 /**
1344  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1345  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1346  *
1347  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1348  * reasons.
1349  *
1350  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1351  * the configured threshold.
1352  *
1353  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1354  * beacon misses from the then connected AP.
1355  *
1356  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1357  * by the connected AP.
1358  *
1359  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1360  * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1361  *
1362  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1363  * or environment being very noisy or congested.
1364  *
1365  * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
1366  * from the user (user space).
1367  *
1368  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1369  * the connected AP.
1370  *
1371  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1372  * breaching out the configured threshold.
1373  *
1374  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1375  * transition request.
1376  *
1377  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1378  * data activity with the AP and the current RSSI falls below a certain
1379  * threshold.
1380  *
1381  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1382  * Disassociation frames received from the connected AP.
1383  *
1384  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1385  * that happens when there is no candidate AP found during the poor RSSI scan
1386  * trigger.
1387  *
1388  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1389  * obtained from an external scan (not aimed at roaming).
1390  *
1391  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1392  * established when the station is connected in the 2.4 GHz band.
1393  */
1394 enum qca_roam_reason {
1395 	QCA_ROAM_REASON_UNKNOWN,
1396 	QCA_ROAM_REASON_PER,
1397 	QCA_ROAM_REASON_BEACON_MISS,
1398 	QCA_ROAM_REASON_POOR_RSSI,
1399 	QCA_ROAM_REASON_BETTER_RSSI,
1400 	QCA_ROAM_REASON_CONGESTION,
1401 	QCA_ROAM_REASON_USER_TRIGGER,
1402 	QCA_ROAM_REASON_BTM,
1403 	QCA_ROAM_REASON_BSS_LOAD,
1404 	QCA_ROAM_REASON_WTC,
1405 	QCA_ROAM_REASON_IDLE,
1406 	QCA_ROAM_REASON_DISCONNECTION,
1407 	QCA_ROAM_REASON_PERIODIC_TIMER,
1408 	QCA_ROAM_REASON_BACKGROUND_SCAN,
1409 	QCA_ROAM_REASON_BT_ACTIVITY,
1410 };
1411 
1412 enum qca_wlan_vendor_attr_roam_auth {
1413 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1414 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1415 	 * of the roamed AP for MLO roaming.
1416 	 */
1417 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1418 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1419 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1420 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1421 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1422 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1423 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
1424 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
1425 	/* Indicates the status of re-association requested by user space for
1426 	 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1427 	 * Type u16.
1428 	 * Represents the status code from AP. Use
1429 	 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1430 	 * real status code for failures.
1431 	 */
1432 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1433 	/* This attribute indicates that the old association was maintained when
1434 	 * a re-association is requested by user space and that re-association
1435 	 * attempt fails (i.e., cannot connect to the requested BSS, but can
1436 	 * remain associated with the BSS with which the association was in
1437 	 * place when being requested to roam). Used along with
1438 	 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1439 	 * re-association status. Type flag.
1440 	 * This attribute is applicable only for re-association failure cases.
1441 	 */
1442 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1443 	/* This attribute specifies the PMK if one was newly generated during
1444 	 * FILS roaming. This is added to the PMKSA cache and is used in
1445 	 * subsequent connections with PMKSA caching.
1446 	 */
1447 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1448 	/* This attribute specifies the PMKID used/generated for the current
1449 	 * FILS roam. This is used in subsequent connections with PMKSA caching.
1450 	 */
1451 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1452 	/* A 16-bit unsigned value specifying the next sequence number to use
1453 	 * in ERP message in the currently associated realm. This is used in
1454 	 * doing subsequent ERP based connections in the same realm.
1455 	 */
1456 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
1457 	/* A 16-bit unsigned value representing the reasons for the roaming.
1458 	 * Defined by enum qca_roam_reason.
1459 	 */
1460 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1461 	/* A nested attribute containing per-link information of all the links
1462 	 * of MLO connection done while roaming. The attributes used inside this
1463 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1464 	 */
1465 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
1466 
1467 	/* keep last */
1468 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1469 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1470 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1471 };
1472 
1473 enum qca_wlan_vendor_attr_p2p_listen_offload {
1474 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1475 	/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1476 	 * of the social channels.
1477 	 */
1478 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1479 	/* A 32-bit unsigned value; the P2P listen offload period (ms).
1480 	 */
1481 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1482 	/* A 32-bit unsigned value; the P2P listen interval duration (ms).
1483 	 */
1484 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1485 	/* A 32-bit unsigned value; number of interval times the firmware needs
1486 	 * to run the offloaded P2P listen operation before it stops.
1487 	 */
1488 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1489 	/* An array of arbitrary binary data with one or more 8-byte values.
1490 	 * The device types include both primary and secondary device types.
1491 	 */
1492 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1493 	/* An array of unsigned 8-bit characters; vendor information elements.
1494 	 */
1495 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1496 	/* A 32-bit unsigned value; a control flag to indicate whether listen
1497 	 * results need to be flushed to wpa_supplicant.
1498 	 */
1499 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1500 	/* A 8-bit unsigned value; reason code for P2P listen offload stop
1501 	 * event.
1502 	 */
1503 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1504 	/* keep last */
1505 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1506 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1507 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1508 };
1509 
1510 /**
1511  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1512  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1513  *
1514  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1515  * Used with event to notify the primary channel number selected in ACS
1516  * operation.
1517  * Note: If both the driver and user-space application supports the 6 GHz band,
1518  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1519  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1520  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1521  * is still used if either of the driver or user space application doesn't
1522  * support the 6 GHz band.
1523  *
1524  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1525  * Used with event to notify the secondary channel number selected in ACS
1526  * operation.
1527  * Note: If both the driver and user-space application supports the 6 GHz band,
1528  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1529  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1530  * To maintain backward compatibility,
1531  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1532  * the driver or user space application doesn't support 6 GHz band.
1533  *
1534  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1535  * (a) Used with command to configure hw_mode from
1536  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1537  * (b) Also used with event to notify the hw_mode of selected primary channel
1538  * in ACS operation.
1539  *
1540  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1541  * Used with command to configure ACS operation for HT mode.
1542  * Disable (flag attribute not present) - HT disabled and
1543  * Enable (flag attribute present) - HT enabled.
1544  *
1545  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1546  * Used with command to configure ACS operation for HT40 mode.
1547  * Disable (flag attribute not present) - HT40 disabled and
1548  * Enable (flag attribute present) - HT40 enabled.
1549  *
1550  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1551  * Used with command to configure ACS operation for VHT mode.
1552  * Disable (flag attribute not present) - VHT disabled and
1553  * Enable (flag attribute present) - VHT enabled.
1554  *
1555  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1556  * mandatory with event.
1557  * If specified in command path, ACS operation is configured with the given
1558  * channel width (in MHz).
1559  * In event path, specifies the channel width of the primary channel selected.
1560  *
1561  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1562  * Used with command to configure channel list using an array of
1563  * channel numbers (u8).
1564  * Note: If both the driver and user-space application supports the 6 GHz band,
1565  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1566  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1567  *
1568  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1569  * Used with event to notify the VHT segment 0 center channel number selected in
1570  * ACS operation. The value is the index of the channel center frequency for
1571  * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1572  * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
1573  * Note: If both the driver and user-space application supports the 6 GHz band,
1574  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1575  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1576  * To maintain backward compatibility,
1577  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1578  * the driver or user space application doesn't support the 6 GHz band.
1579  *
1580  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1581  * Used with event to notify the VHT segment 1 center channel number selected in
1582  * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1583  * The value is the index of the channel center frequency for 160 MHz channels
1584  * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1585  * channels.
1586  * Note: If both the driver and user-space application supports the 6 GHz band,
1587  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1588  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1589  * To maintain backward compatibility,
1590  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1591  * the driver or user space application doesn't support the 6 GHz band.
1592  *
1593  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1594  * Used with command to configure the channel list using an array of channel
1595  * center frequencies in MHz (u32).
1596  * Note: If both the driver and user-space application supports the 6 GHz band,
1597  * the driver first parses the frequency list and if it fails to get a frequency
1598  * list, parses the channel list specified using
1599  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1600  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1601  *
1602  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1603  * Used with event to notify the primary channel center frequency (MHz) selected
1604  * in ACS operation.
1605  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1606  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1607  *
1608  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1609  * Used with event to notify the secondary channel center frequency (MHz)
1610  * selected in ACS operation.
1611  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1612  * includes this attribute along with
1613  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1614  *
1615  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1616  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1617  * selected in ACS operation.
1618  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1619  * includes this attribute along with
1620  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1621  *
1622  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1623  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1624  * selected in ACS operation.
1625  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1626  * includes this attribute along with
1627  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
1628  *
1629  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1630  * Used with command to notify the driver of EDMG request for ACS
1631  * operation.
1632  *
1633  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1634  * Used with event to notify the EDMG channel number selected in ACS
1635  * operation.
1636  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1637  *
1638  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1639  * Used with event to notify the puncture pattern selected in ACS operation.
1640  * Encoding for this attribute will follow the convention used in the Disabled
1641  * Subchannel Bitmap field of the EHT Operation IE.
1642  *
1643  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1644  * Used with command to configure ACS operation for EHT mode.
1645  * Disable (flag attribute not present) - EHT disabled and
1646  * Enable (flag attribute present) - EHT enabled.
1647  *
1648  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1649  * Used with command to configure how older scan can be considered for ACS
1650  * scoring. In case scan was performed on a partial set of channels configured
1651  * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1652  * (in ms), scan only the remaining channels.
1653  */
1654 enum qca_wlan_vendor_attr_acs_offload {
1655 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
1656 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1657 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1658 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1659 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1660 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1661 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1662 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1663 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1664 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1665 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1666 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1667 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1668 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1669 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1670 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
1671 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1672 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
1673 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1674 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
1675 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
1676 
1677 	/* keep last */
1678 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1679 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1680 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1681 };
1682 
1683 /**
1684  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1685  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1686  *
1687  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1688  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1689  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1690  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1691  * @QCA_ACS_MODE_IEEE80211ANY: all modes
1692  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1693  */
1694 enum qca_wlan_vendor_acs_hw_mode {
1695 	QCA_ACS_MODE_IEEE80211B,
1696 	QCA_ACS_MODE_IEEE80211G,
1697 	QCA_ACS_MODE_IEEE80211A,
1698 	QCA_ACS_MODE_IEEE80211AD,
1699 	QCA_ACS_MODE_IEEE80211ANY,
1700 	QCA_ACS_MODE_IEEE80211AX,
1701 };
1702 
1703 /**
1704  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1705  *
1706  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1707  *	management offload, a mechanism where the station's firmware
1708  *	does the exchange with the AP to establish the temporal keys
1709  *	after roaming, rather than having the user space wpa_supplicant do it.
1710  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1711  *	band selection based on channel selection results.
1712  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
1713  *	simultaneous off-channel operations.
1714  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1715  *	Listen offload; a mechanism where the station's firmware takes care of
1716  *	responding to incoming Probe Request frames received from other P2P
1717  *	Devices whilst in Listen state, rather than having the user space
1718  *	wpa_supplicant do it. Information from received P2P requests are
1719  *	forwarded from firmware to host whenever the host processor wakes up.
1720  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1721  *	specific features.
1722  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1723  *	features.
1724  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1725  *	specific features only. If a Device sets this bit but not the
1726  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1727  *	this Device may not support all OCE AP functionalities but can support
1728  *	only OCE STA-CFON functionalities.
1729  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1730  *	managed regulatory.
1731  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
1732  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1733  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
1734  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1735  *	and applying thermal configuration through
1736  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1737  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1738  *	userspace.
1739  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1740  *	With Adaptive 11r feature, access points advertise the vendor
1741  *	specific IEs and MDE but do not include FT AKM in the RSNE.
1742  *	The Adaptive 11r supported stations are expected to identify
1743  *	such vendor specific IEs and connect to the AP in FT mode though
1744  *	the profile is configured in non-FT mode.
1745  *	The driver-based SME cases also need to have this support for
1746  *	Adaptive 11r to handle the connection and roaming scenarios.
1747  *	This flag indicates the support for the same to the user space.
1748  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1749  *	concurrent network sessions on different Wi-Fi bands. This feature
1750  *	capability is attributed to the hardware's capability to support
1751  *	the same (e.g., DBS).
1752  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1753  *	responses for the respective TWT operations are asynchronous (separate
1754  *	event message) from the driver. If not specified, the responses are
1755  *	synchronous (in vendor command reply) to the request. Each TWT
1756  *	operation is specifically mentioned (against its respective
1757  *	documentation) to support either of these or both modes.
1758  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
1759  *	that the driver requires add/del virtual interface path using the
1760  *	generic nl80211 commands for NDP interface create/delete and to
1761  *	register/unregister the netdev instead of creating/deleting the NDP
1762  *	interface using the vendor commands
1763  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1764  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
1765  *	(5.12 version onward), interface creation/deletion is not allowed using
1766  *	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1767  *	during the register/unregister of netdev. Create and delete NDP
1768  *	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1769  *	commands respectively if the driver advertises this capability set.
1770  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1771  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1772  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1773  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1774  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1775  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1776  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1777  *	station mode supports secure RTT measurement exchange. If
1778  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
1779  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1780  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1781  *	mode supports secure RTT measurement exchange. If
1782  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
1783  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1784  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1785  *	the device in station mode supports protection of range negotiation and
1786  *	measurement management frames. If
1787  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1788  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1789  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1790  *	the device in AP mode supports protection of range negotiation and
1791  *	measurement management frames. If
1792  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1793  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
1794  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1795  */
1796 enum qca_wlan_vendor_features {
1797 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
1798 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
1799 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
1800 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD	= 3,
1801 	QCA_WLAN_VENDOR_FEATURE_OCE_STA                 = 4,
1802 	QCA_WLAN_VENDOR_FEATURE_OCE_AP                  = 5,
1803 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON            = 6,
1804 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
1805 	QCA_WLAN_VENDOR_FEATURE_TWT			= 8,
1806 	QCA_WLAN_VENDOR_FEATURE_11AX			= 9,
1807 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT		= 10,
1808 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG		= 11,
1809 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R		= 12,
1810 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1811 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT	= 14,
1812 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
1813 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
1814 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
1815 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
1816 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
1817 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
1818 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
1819 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1820 };
1821 
1822 /**
1823  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1824  *
1825  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1826  *	the offloaded data.
1827  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1828  *	data.
1829  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1830  *	indication.
1831  */
1832 enum qca_wlan_vendor_attr_data_offload_ind {
1833 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1834 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1835 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1836 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1837 
1838 	/* keep last */
1839 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1840 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1841 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1842 };
1843 
1844 /**
1845  * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1846  *	OCB config
1847  *
1848  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1849  *	configuration
1850  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1851  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1852  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1853  *	scheduled
1854  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1855  *	information
1856  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1857  *	active state configuration
1858  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1859  *	OCB_CONFIG_FLAG_80211_FRAME_MODE
1860  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1861  *	use in the case that a packet is sent without a TX control header
1862  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1863  *	last TA received that the local time set by TA is synchronous to other
1864  *	communicating OCB STAs.
1865  */
1866 enum qca_wlan_vendor_attr_ocb_set_config {
1867 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1868 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1869 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1870 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1871 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1872 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1873 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1874 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1875 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1876 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1877 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1878 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1879 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1880 };
1881 
1882 /**
1883  * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1884  *	UTC time
1885  *
1886  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1887  *	10 bytes
1888  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1889  *	5 bytes
1890  */
1891 enum qca_wlan_vendor_attr_ocb_set_utc_time {
1892 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1893 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1894 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1895 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1896 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1897 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1898 };
1899 
1900 /**
1901  * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1902  *	to start sending timing advert frames
1903  *
1904  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1905  *	on which to send the frames
1906  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1907  *	the frame is sent in 5 seconds
1908  */
1909 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1910 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1911 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1912 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1913 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1914 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1915 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1916 };
1917 
1918 /**
1919  * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1920  *	to stop timing advert
1921  *
1922  * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1923  *	frequency on which to stop the timing advert
1924  */
1925 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1926 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1927 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1928 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1929 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1930 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1931 };
1932 
1933 /**
1934  * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1935  *	get TSF timer value
1936  *
1937  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1938  *	timer
1939  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1940  */
1941 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1942 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1943 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1944 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1945 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1946 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1947 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1948 };
1949 
1950 enum qca_vendor_attr_get_preferred_freq_list {
1951 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1952 	/* A 32-unsigned value; the interface type/mode for which the preferred
1953 	 * frequency list is requested (see enum qca_iface_type for possible
1954 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1955 	 * kernel and in the kernel response back to user-space.
1956 	 */
1957 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1958 	/* An array of 32-unsigned values; values are frequency (MHz); sent
1959 	 * from kernel space to user space.
1960 	 */
1961 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
1962 	/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1963 	 * attribute. Each element contains frequency (MHz), weight, and flag
1964 	 * bit mask indicating how the frequency should be used in P2P
1965 	 * negotiation; sent from kernel space to user space.
1966 	 */
1967 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
1968 	/* keep last */
1969 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1970 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1971 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1972 };
1973 
1974 enum qca_vendor_attr_probable_oper_channel {
1975 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1976 	/* 32-bit unsigned value; indicates the connection/iface type likely to
1977 	 * come on this channel (see enum qca_iface_type).
1978 	 */
1979 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1980 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1981 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1982 	/* keep last */
1983 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1984 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1985 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1986 };
1987 
1988 enum qca_iface_type {
1989 	QCA_IFACE_TYPE_STA,
1990 	QCA_IFACE_TYPE_AP,
1991 	QCA_IFACE_TYPE_P2P_CLIENT,
1992 	QCA_IFACE_TYPE_P2P_GO,
1993 	QCA_IFACE_TYPE_IBSS,
1994 	QCA_IFACE_TYPE_TDLS,
1995 };
1996 
1997 enum qca_set_band {
1998 	QCA_SETBAND_AUTO = 0,
1999 	QCA_SETBAND_5G = BIT(0),
2000 	QCA_SETBAND_2G = BIT(1),
2001 	QCA_SETBAND_6G = BIT(2),
2002 };
2003 
2004 /**
2005  * enum qca_access_policy - Access control policy
2006  *
2007  * Access control policy is applied on the configured IE
2008  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2009  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2010  *
2011  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2012  *	the specific configuration (IE) set, i.e., allow all the
2013  *	connections which do not match the configuration.
2014  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2015  *	the specific configuration (IE) set, i.e., deny all the
2016  *	connections which do not match the configuration.
2017  */
2018 enum qca_access_policy {
2019 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2020 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2021 };
2022 
2023 /**
2024  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2025  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2026  * Specify the TSF command. Possible values are defined in
2027  * &enum qca_tsf_cmd.
2028  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2029  * This attribute contains TSF timer value. This attribute is only available
2030  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2031  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2032  * This attribute contains SOC timer value at TSF capture. This attribute is
2033  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2034  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2035  * This attribute is used to provide TSF sync interval and only applicable when
2036  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2037  * driver will use the default value. Time unit is in milliseconds.
2038  */
2039 enum qca_vendor_attr_tsf_cmd {
2040 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2041 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2042 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2043 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
2044 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
2045 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2046 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2047 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2048 };
2049 
2050 /**
2051  * enum qca_tsf_cmd: TSF driver commands
2052  * @QCA_TSF_CAPTURE: Initiate TSF Capture
2053  * @QCA_TSF_GET: Get TSF capture value
2054  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
2055  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2056  * will automatically send TSF report to the host. To query
2057  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2058  * initiated first.
2059  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2060  * will not automatically send TSF report to the host. If
2061  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2062  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2063  * operation needs to be initiated.
2064  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2065  * fetches TSF and host time mapping from the firmware with interval configured
2066  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2067  * interval value is not provided the driver will use the default value. The
2068  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2069  * command.
2070  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
2071  */
2072 enum qca_tsf_cmd {
2073 	QCA_TSF_CAPTURE,
2074 	QCA_TSF_GET,
2075 	QCA_TSF_SYNC_GET,
2076 	QCA_TSF_AUTO_REPORT_ENABLE,
2077 	QCA_TSF_AUTO_REPORT_DISABLE,
2078 	QCA_TSF_SYNC_START,
2079 	QCA_TSF_SYNC_STOP,
2080 };
2081 
2082 /**
2083  * enum qca_vendor_attr_wisa_cmd
2084  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2085  * WISA setup vendor commands
2086  */
2087 enum qca_vendor_attr_wisa_cmd {
2088 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2089 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2090 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2091 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2092 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2093 };
2094 
2095 /* IEEE 802.11 Vendor Specific elements */
2096 
2097 /**
2098  * enum qca_vendor_element_id - QCA Vendor Specific element types
2099  *
2100  * These values are used to identify QCA Vendor Specific elements. The
2101  * payload of the element starts with the three octet OUI (OUI_QCA) and
2102  * is followed by a single octet type which is defined by this enum.
2103  *
2104  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2105  *	This element can be used to specify preference order for supported
2106  *	channels. The channels in this list are in preference order (the first
2107  *	one has the highest preference) and are described as a pair of
2108  *	(global) Operating Class and Channel Number (each one octet) fields.
2109  *
2110  *	This extends the standard P2P functionality by providing option to have
2111  *	more than one preferred operating channel. When this element is present,
2112  *	it replaces the preference indicated in the Operating Channel attribute.
2113  *	For supporting other implementations, the Operating Channel attribute is
2114  *	expected to be used with the highest preference channel. Similarly, all
2115  *	the channels included in this Preferred channel list element are
2116  *	expected to be included in the Channel List attribute.
2117  *
2118  *	This vendor element may be included in GO Negotiation Request, P2P
2119  *	Invitation Request, and Provision Discovery Request frames.
2120  *
2121  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2122  *	This element can be used for pre-standard publication testing of HE
2123  *	before P802.11ax draft assigns the element ID. The payload of this
2124  *	vendor specific element is defined by the latest P802.11ax draft.
2125  *	Please note that the draft is still work in progress and this element
2126  *	payload is subject to change.
2127  *
2128  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2129  *	This element can be used for pre-standard publication testing of HE
2130  *	before P802.11ax draft assigns the element ID. The payload of this
2131  *	vendor specific element is defined by the latest P802.11ax draft.
2132  *	Please note that the draft is still work in progress and this element
2133  *	payload is subject to change.
2134  *
2135  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2136  *	element).
2137  *	This element can be used for pre-standard publication testing of HE
2138  *	before P802.11ax draft assigns the element ID extension. The payload of
2139  *	this vendor specific element is defined by the latest P802.11ax draft
2140  *	(not including the Element ID Extension field). Please note that the
2141  *	draft is still work in progress and this element payload is subject to
2142  *	change.
2143  *
2144  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2145  *	This element can be used for pre-standard publication testing of HE
2146  *	before P802.11ax draft assigns the element ID extension. The payload of
2147  *	this vendor specific element is defined by the latest P802.11ax draft
2148  *	(not including the Element ID Extension field). Please note that the
2149  *	draft is still work in progress and this element payload is subject to
2150  *	change.
2151  *
2152  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2153  *	This element can be used for pre-standard publication testing of HE
2154  *	before P802.11ax draft assigns the element ID extension. The payload of
2155  *	this vendor specific element is defined by the latest P802.11ax draft
2156  *	(not including the Element ID Extension field). Please note that the
2157  *	draft is still work in progress and this element payload is subject to
2158  *	change.
2159  *
2160  *  @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
2161  */
2162 enum qca_vendor_element_id {
2163 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
2164 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
2165 	QCA_VENDOR_ELEM_HE_OPER = 2,
2166 	QCA_VENDOR_ELEM_RAPS = 3,
2167 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2168 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
2169 	QCA_VENDOR_ELEM_ALLPLAY = 6,
2170 };
2171 
2172 /**
2173  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2174  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2175  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2176  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2177  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2178  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2179  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2180  */
2181 enum qca_wlan_vendor_scan_priority {
2182 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2183 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2184 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2185 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2186 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2187 };
2188 
2189 /**
2190  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2191  *
2192  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2193  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2194  *	with frequencies to be scanned (in MHz)
2195  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2196  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2197  *	rates to be included
2198  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2199  *	at non CCK rate in 2GHz band
2200  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2201  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2202  *	driver for the specific scan request
2203  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2204  *	request decoded as in enum scan_status
2205  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2206  *	scan flag is set
2207  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2208  *	randomisation
2209  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2210  *	specific BSSID to scan for.
2211  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2212  *	microseconds. This is a common value which applies across all
2213  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2214  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2215  *	other scan requests. It is a u32 attribute and takes values from enum
2216  *	qca_wlan_vendor_scan_priority. This is an optional attribute.
2217  *	If this attribute is not configured, the driver shall use
2218  *	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2219  */
2220 enum qca_wlan_vendor_attr_scan {
2221 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2222 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2223 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2224 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2225 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2226 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2227 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2228 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2229 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2230 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2231 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2232 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2233 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2234 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2235 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2236 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2237 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2238 };
2239 
2240 /**
2241  * enum scan_status - Specifies the valid values the vendor scan attribute
2242  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2243  *
2244  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2245  *	new scan results
2246  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2247  */
2248 enum scan_status {
2249 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2250 	VENDOR_SCAN_STATUS_ABORTED,
2251 	VENDOR_SCAN_STATUS_MAX,
2252 };
2253 
2254 /**
2255  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2256  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2257  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2258  */
2259 enum qca_vendor_attr_ota_test {
2260 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2261 	/* 8-bit unsigned value to indicate if OTA test is enabled */
2262 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2263 	/* keep last */
2264 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2265 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2266 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2267 };
2268 
2269 /**
2270  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2271  *
2272  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2273  */
2274 enum qca_vendor_attr_txpower_scale {
2275 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2276 	/* 8-bit unsigned value to indicate the scaling of tx power */
2277 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2278 	/* keep last */
2279 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2280 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2281 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2282 };
2283 
2284 /**
2285  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2286  *
2287  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2288  */
2289 enum qca_vendor_attr_txpower_decr_db {
2290 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2291 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
2292 	 * a virtual interface.
2293 	 */
2294 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2295 	/* keep last */
2296 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2297 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2298 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2299 };
2300 
2301 /* Attributes for data used by
2302  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2303  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
2304  */
2305 enum qca_wlan_vendor_attr_config {
2306 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
2307 	/* Unsigned 32-bit value to set the DTIM period.
2308 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2309 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2310 	 * DTIM beacons.
2311 	 */
2312 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
2313 	/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2314 	 * used to calculate statistics like average the TSF offset or average
2315 	 * number of frame leaked.
2316 	 * For instance, upon Beacon frame reception:
2317 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2318 	 * For instance, when evaluating leaky APs:
2319 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2320 	 */
2321 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
2322 	/* Unsigned 32-bit value to configure guard time, i.e., when
2323 	 * implementing IEEE power management based on frame control PM bit, how
2324 	 * long the driver waits before shutting down the radio and after
2325 	 * receiving an ACK frame for a Data frame with PM bit set.
2326 	 */
2327 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
2328 	/* Unsigned 32-bit value to change the FTM capability dynamically */
2329 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
2330 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
2331 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
2332 	/* Unsigned 32-bit value to configure the number of continuous
2333 	 * Beacon Miss which shall be used by the firmware to penalize
2334 	 * the RSSI.
2335 	 */
2336 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
2337 	/* Unsigned 8-bit value to configure the channel avoidance indication
2338 	 * behavior. Firmware to send only one indication and ignore duplicate
2339 	 * indications when set to avoid multiple Apps wakeups.
2340 	 */
2341 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
2342 	/* 8-bit unsigned value to configure the maximum TX MPDU for
2343 	 * aggregation.
2344 	 */
2345 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
2346 	/* 8-bit unsigned value to configure the maximum RX MPDU for
2347 	 * aggregation.
2348 	 */
2349 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
2350 	/* 8-bit unsigned value to configure the Non aggregrate/11g sw
2351 	 * retry threshold (0 disable, 31 max).
2352 	 */
2353 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
2354 	/* 8-bit unsigned value to configure the aggregrate sw
2355 	 * retry threshold (0 disable, 31 max).
2356 	 */
2357 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
2358 	/* 8-bit unsigned value to configure the MGMT frame
2359 	 * retry threshold (0 disable, 31 max).
2360 	 */
2361 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
2362 	/* 8-bit unsigned value to configure the CTRL frame
2363 	 * retry threshold (0 disable, 31 max).
2364 	 */
2365 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
2366 	/* 8-bit unsigned value to configure the propagation delay for
2367 	 * 2G/5G band (0~63, units in us)
2368 	 */
2369 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
2370 	/* Unsigned 32-bit value to configure the number of unicast TX fail
2371 	 * packet count. The peer is disconnected once this threshold is
2372 	 * reached.
2373 	 */
2374 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
2375 	/* Attribute used to set scan default IEs to the driver.
2376 	 *
2377 	 * These IEs can be used by scan operations that will be initiated by
2378 	 * the driver/firmware.
2379 	 *
2380 	 * For further scan requests coming to the driver, these IEs should be
2381 	 * merged with the IEs received along with scan request coming to the
2382 	 * driver. If a particular IE is present in the scan default IEs but not
2383 	 * present in the scan request, then that IE should be added to the IEs
2384 	 * sent in the Probe Request frames for that scan request.
2385 	 */
2386 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
2387 	/* Unsigned 32-bit attribute for generic commands */
2388 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
2389 	/* Unsigned 32-bit value attribute for generic commands */
2390 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
2391 	/* Unsigned 32-bit data attribute for generic command response */
2392 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
2393 	/* Unsigned 32-bit length attribute for
2394 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2395 	 */
2396 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
2397 	/* Unsigned 32-bit flags attribute for
2398 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2399 	 */
2400 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
2401 	/* Unsigned 32-bit, defining the access policy.
2402 	 * See enum qca_access_policy. Used with
2403 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2404 	 */
2405 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
2406 	/* Sets the list of full set of IEs for which a specific access policy
2407 	 * has to be applied. Used along with
2408 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
2409 	 * Zero length payload can be used to clear this access constraint.
2410 	 */
2411 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
2412 	/* Unsigned 32-bit, specifies the interface index (netdev) for which the
2413 	 * corresponding configurations are applied. If the interface index is
2414 	 * not specified, the configurations are attributed to the respective
2415 	 * wiphy.
2416 	 */
2417 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
2418 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
2419 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2420 	/* 8-bit unsigned value to configure the driver and below layers to
2421 	 * ignore the assoc disallowed set by APs while connecting
2422 	 * 1-Ignore, 0-Don't ignore
2423 	 */
2424 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
2425 	/* 32-bit unsigned value to trigger antenna diversity features:
2426 	 * 1-Enable, 0-Disable
2427 	 */
2428 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
2429 	/* 32-bit unsigned value to configure specific chain antenna */
2430 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
2431 	/* 32-bit unsigned value to trigger cycle selftest
2432 	 * 1-Enable, 0-Disable
2433 	 */
2434 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
2435 	/* 32-bit unsigned to configure the cycle time of selftest
2436 	 * the unit is micro-second
2437 	 */
2438 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2439 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
2440 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2441 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
2442 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2443 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
2444 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2445 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
2446 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2447 	/* 6-byte MAC address to point out the specific peer */
2448 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2449 	/* 32-bit unsigned value to set window size for specific peer */
2450 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
2451 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2452 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2453 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2454 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
2455 	/* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2456 	 * station device while in disconnect state. The attribute use the
2457 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2458 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2459 	 * 10 MHz channel width, the station will not connect to a BSS using 20
2460 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
2461 	 * clear this constraint.
2462 	 */
2463 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2464 	/* 32-bit unsigned value to configure the propagation absolute delay
2465 	 * for 2G/5G band (units in us)
2466 	 */
2467 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2468 	/* 32-bit unsigned value to set probe period */
2469 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2470 	/* 32-bit unsigned value to set stay period */
2471 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2472 	/* 32-bit unsigned value to set snr diff */
2473 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2474 	/* 32-bit unsigned value to set probe dwell time */
2475 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2476 	/* 32-bit unsigned value to set mgmt snr weight */
2477 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2478 	/* 32-bit unsigned value to set data snr weight */
2479 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2480 	/* 32-bit unsigned value to set ack snr weight */
2481 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2482 	/* 32-bit unsigned value to configure the listen interval.
2483 	 * This is in units of beacon intervals. This configuration alters
2484 	 * the negotiated listen interval with the AP during the connection.
2485 	 * It is highly recommended to configure a value less than or equal to
2486 	 * the one negotiated during the association. Configuring any greater
2487 	 * value can have adverse effects (frame loss, AP disassociating STA,
2488 	 * etc.).
2489 	 */
2490 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2491 	/*
2492 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2493 	 * disable operations that would cause the AP/GO to leave its operating
2494 	 * channel.
2495 	 *
2496 	 * This will restrict the scans to the AP/GO operating channel and the
2497 	 * channels of the other band, if DBS is supported.A STA/CLI interface
2498 	 * brought up after this setting is enabled, will be restricted to
2499 	 * connecting to devices only on the AP/GO interface's operating channel
2500 	 * or on the other band in DBS case. P2P supported channel list is
2501 	 * modified, to only include AP interface's operating-channel and the
2502 	 * channels of the other band if DBS is supported.
2503 	 *
2504 	 * These restrictions are only applicable as long as the AP/GO interface
2505 	 * is alive. If the AP/GO interface is brought down then this
2506 	 * setting/restriction is forgotten.
2507 	 *
2508 	 * If this variable is set on an AP/GO interface while a multi-channel
2509 	 * concurrent session is active, it has no effect on the operation of
2510 	 * the current interfaces, other than restricting the scan to the AP/GO
2511 	 * operating channel and the other band channels if DBS is supported.
2512 	 * However, if the STA is brought down and restarted then the new STA
2513 	 * connection will either be formed on the AP/GO channel or on the
2514 	 * other band in a DBS case. This is because of the scan being
2515 	 * restricted on these channels as mentioned above.
2516 	 *
2517 	 * 1-Restrict / 0-Don't restrict offchannel operations.
2518 	 */
2519 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2520 	/*
2521 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2522 	 * on an interface.
2523 	 * 1 - Enable, 0 - Disable.
2524 	 */
2525 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2526 
2527 	/*
2528 	 * 8 bit unsigned value to globally enable/disable scan
2529 	 * 1 - Enable, 0 - Disable.
2530 	 */
2531 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2532 
2533 	/* 8-bit unsigned value to set the total beacon miss count
2534 	 * This parameter will set the total beacon miss count.
2535 	 */
2536 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2537 
2538 	/* Unsigned 32-bit value to configure the number of continuous
2539 	 * Beacon Miss which shall be used by the firmware to penalize
2540 	 * the RSSI for BTC.
2541 	 */
2542 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2543 
2544 	/* 8-bit unsigned value to configure the driver and below layers to
2545 	 * enable/disable all FILS features.
2546 	 * 0-enable, 1-disable
2547 	 */
2548 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
2549 
2550 	/* 16-bit unsigned value to configure the level of WLAN latency
2551 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2552 	 */
2553 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2554 
2555 	/* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2556 	 * the connect interface. Exclusively used for the scenarios where the
2557 	 * device is used as a test bed device with special functionality and
2558 	 * not recommended for production. This helps driver to not validate the
2559 	 * RSNE passed from user space and thus allow arbitrary IE data to be
2560 	 * used for testing purposes.
2561 	 * 1-enable, 0-disable.
2562 	 * Applications set/reset this configuration. If not reset, this
2563 	 * parameter remains in use until the driver is unloaded.
2564 	 */
2565 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2566 
2567 	/* 8-bit unsigned value to trigger green Tx power saving.
2568 	 * 1-Enable, 0-Disable
2569 	 */
2570 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2571 
2572 	/* Attribute to configure disconnect IEs to the driver.
2573 	 * This carries an array of unsigned 8-bit characters.
2574 	 *
2575 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
2576 	 * frame.
2577 	 * These IEs are expected to be considered only for the next
2578 	 * immediate disconnection (disassoc/deauth frame) originated by
2579 	 * the DUT, irrespective of the entity (user space/driver/firmware)
2580 	 * triggering the disconnection.
2581 	 * The host drivers are not expected to use the IEs set through
2582 	 * this interface for further disconnections after the first immediate
2583 	 * disconnection initiated post the configuration.
2584 	 * If the IEs are also updated through cfg80211 interface (after the
2585 	 * enhancement to cfg80211_disconnect), host driver is expected to
2586 	 * take the union of IEs from both of these interfaces and send in
2587 	 * further disassoc/deauth frames.
2588 	 */
2589 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
2590 
2591 	/* 8-bit unsigned value for ELNA bypass.
2592 	 * 0 - Disable eLNA bypass.
2593 	 * 1 - Enable eLNA bypass.
2594 	 * 2 - Reset eLNA bypass configuration, the driver should
2595 	 *	revert to the default configuration of eLNA bypass.
2596 	 */
2597 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2598 
2599 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2600 	 * to send the Beacon Report Response with failure reason for the
2601 	 * scenarios where STA cannot honor the Beacon Report Request from AP.
2602 	 * 1-Enable, 0-Disable.
2603 	 */
2604 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2605 
2606 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2607 	 * to send roam reason information in the Reassociation Request frame to
2608 	 * the target AP when roaming within the same ESS.
2609 	 * 1-Enable, 0-Disable.
2610 	 */
2611 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2612 
2613 	/* 32-bit unsigned value to configure different PHY modes to the
2614 	 * driver/firmware. The possible values are defined in
2615 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2616 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2617 	 * the driver.
2618 	 */
2619 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2620 
2621 	/* 8-bit unsigned value to configure the maximum supported channel width
2622 	 * for STA mode. If this value is configured when STA is in connected
2623 	 * state, it should not exceed the negotiated channel width. If it is
2624 	 * configured when STA is in disconnected state, the configured value
2625 	 * will take effect for the next immediate connection.
2626 	 * Possible values are:
2627 	 *   NL80211_CHAN_WIDTH_20
2628 	 *   NL80211_CHAN_WIDTH_40
2629 	 *   NL80211_CHAN_WIDTH_80
2630 	 *   NL80211_CHAN_WIDTH_80P80
2631 	 *   NL80211_CHAN_WIDTH_160
2632 	 */
2633 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2634 
2635 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2636 	 * This attribute is only applicable for STA mode. When dynamic
2637 	 * bandwidth adjustment is disabled, STA will use static channel width
2638 	 * the value of which is negotiated during connection.
2639 	 * 1-enable (default), 0-disable
2640 	 */
2641 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2642 
2643 	/* 8-bit unsigned value to configure the maximum number of subframes of
2644 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2645 	 * it is decided by the hardware.
2646 	 */
2647 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2648 
2649 	/* 8-bit unsigned value to configure the maximum number of subframes of
2650 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2651 	 * it is decided by the hardware.
2652 	 */
2653 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2654 
2655 	/* 8-bit unsigned value. This attribute is used to dynamically
2656 	 * enable/disable the LDPC capability of the device. When configured in
2657 	 * the disconnected state, the updated configuration will be considered
2658 	 * for the immediately following connection attempt. If this
2659 	 * configuration is modified while the device is in the connected state,
2660 	 * the LDPC TX will be updated with this configuration immediately,
2661 	 * while the LDPC RX configuration update will take place starting from
2662 	 * the subsequent association attempt.
2663 	 * 1-Enable, 0-Disable.
2664 	 */
2665 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2666 
2667 	/* 8-bit unsigned value. This attribute is used to dynamically
2668 	 * enable/disable the TX STBC capability of the device. When configured
2669 	 * in the disconnected state, the updated configuration will be
2670 	 * considered for the immediately following connection attempt. If the
2671 	 * connection is formed with TX STBC enabled and if this configuration
2672 	 * is disabled during that association, the TX will be impacted
2673 	 * immediately. Further connection attempts will disable TX STBC.
2674 	 * However, enabling the TX STBC for a connected session with disabled
2675 	 * capability is not allowed and will fail.
2676 	 * 1-Enable, 0-Disable.
2677 	 */
2678 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2679 
2680 	/* 8-bit unsigned value. This attribute is used to dynamically
2681 	 * enable/disable the RX STBC capability of the device. When configured
2682 	 * in the disconnected state, the updated configuration will be
2683 	 * considered for the immediately following connection attempt. If the
2684 	 * configuration is modified in the connected state, there will be no
2685 	 * impact for the current association, but further connection attempts
2686 	 * will use the updated configuration.
2687 	 * 1-Enable, 0-Disable.
2688 	 */
2689 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2690 
2691 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2692 	 * the number of spatial streams. When configured in the disconnected
2693 	 * state, the updated configuration will be considered for the
2694 	 * immediately following connection attempt. If the NSS is updated after
2695 	 * the connection, the updated NSS value is notified to the peer using
2696 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
2697 	 * frame. The updated NSS value after the connection shall not be
2698 	 * greater than the one negotiated during the connection. Any such
2699 	 * higher value configuration shall be returned with a failure.
2700 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2701 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2702 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2703 	 * configure the asymmetric NSS configuration (such as 1X2).
2704 	 */
2705 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2706 	/* 8-bit unsigned value to trigger Optimized Power Management:
2707 	 * 1-Enable, 0-Disable
2708 	 */
2709 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2710 
2711 	/* 8-bit unsigned value. This attribute takes the QoS/access category
2712 	 * value represented by the enum qca_wlan_ac_type and expects the driver
2713 	 * to upgrade the UDP frames to this access category. The value of
2714 	 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2715 	 * DSCP value configured in the frame with the intention to only upgrade
2716 	 * the access category. That said, it is not intended to downgrade the
2717 	 * access category for the frames.
2718 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2719 	 * disabled, as BK is of the lowest priority and an upgrade to it does
2720 	 * not result in any changes for the frames.
2721 	 *
2722 	 * If only UDP frames of BE or BK access category needs to be upgraded
2723 	 * without changing the access category of VO or VI UDP frames, refer to
2724 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2725 	 *
2726 	 * This attribute is not recommended to be used as it blindly forces all
2727 	 * UDP packets to a higher access category which could impact the
2728 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
2729 	 */
2730 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2731 
2732 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2733 	 * the number of chains to be used for transmitting data. This
2734 	 * configuration is allowed only when in connected state and will be
2735 	 * effective until disconnected. The driver rejects this configuration
2736 	 * if the number of spatial streams being used in the current connection
2737 	 * cannot be supported by this configuration.
2738 	 */
2739 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2740 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2741 	 * the number of chains to be used for receiving data. This
2742 	 * configuration is allowed only when in connected state and will be
2743 	 * effective until disconnected. The driver rejects this configuration
2744 	 * if the number of spatial streams being used in the current connection
2745 	 * cannot be supported by this configuration.
2746 	 */
2747 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2748 
2749 	/* 8-bit unsigned value to configure ANI setting type.
2750 	 * See &enum qca_wlan_ani_setting for possible values.
2751 	 */
2752 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2753 	/* 32-bit signed value to configure ANI level. This is used when
2754 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2755 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2756 	 * is invalid, the driver will return a failure.
2757 	 */
2758 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2759 
2760 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2761 	 * the number of spatial streams used for transmitting the data. When
2762 	 * configured in the disconnected state, the configured value will
2763 	 * be considered for the following connection attempt.
2764 	 * If the NSS is updated after the connection, the updated NSS value
2765 	 * is notified to the peer using the Operating Mode Notification/Spatial
2766 	 * Multiplexing Power Save frame.
2767 	 * The TX NSS value configured after the connection shall not be greater
2768 	 * than the value negotiated during the connection. Any such higher
2769 	 * value configuration shall be treated as invalid configuration by
2770 	 * the driver. This attribute shall be configured along with
2771 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2772 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2773 	 * configuration (such as 1X2).
2774 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2775 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2776 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2777 	 */
2778 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2779 
2780 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2781 	 * the number of spatial streams used for receiving the data. When
2782 	 * configured in the disconnected state, the configured value will
2783 	 * be considered for the following connection attempt.
2784 	 * If the NSS is updated after the connection, the updated NSS value
2785 	 * is notified to the peer using the Operating Mode Notification/Spatial
2786 	 * Multiplexing Power Save frame.
2787 	 * The RX NSS value configured after the connection shall not be greater
2788 	 * than the value negotiated during the connection. Any such higher
2789 	 * value configuration shall be treated as invalid configuration by
2790 	 * the driver. This attribute shall be configured along with
2791 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2792 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2793 	 * configuration (such as 1X2).
2794 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2795 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2796 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2797 	 */
2798 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2799 
2800 	/*
2801 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
2802 	 * specified interface is the primary STA interface when there are more
2803 	 * than one STA interfaces concurrently active.
2804 	 *
2805 	 * This configuration helps the firmware/hardware to support certain
2806 	 * features (e.g., roaming) on this primary interface, if the same
2807 	 * cannot be supported on the concurrent STA interfaces simultaneously.
2808 	 *
2809 	 * This configuration is only applicable for a single STA interface on
2810 	 * a device and gives the priority for it only over other concurrent STA
2811 	 * interfaces.
2812 	 *
2813 	 * If the device is a multi wiphy/soc, this configuration applies to a
2814 	 * single STA interface across the wiphys.
2815 	 *
2816 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2817 	 */
2818 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2819 
2820 	/*
2821 	 * 8-bit unsigned value. This attribute can be used to configure the
2822 	 * driver to enable/disable FT-over-DS feature. Possible values for
2823 	 * this attribute are 1-Enable and 0-Disable.
2824 	 */
2825 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2826 
2827 	/*
2828 	 * 8-bit unsigned value. This attribute can be used to configure the
2829 	 * firmware to enable/disable ARP/NS offload feature. Possible values
2830 	 * for this attribute are 0-Disable and 1-Enable.
2831 	 *
2832 	 * This attribute is only applicable for STA/P2P-Client interface,
2833 	 * and is optional, default behavior is ARP/NS offload enabled.
2834 	 *
2835 	 * This attribute can be set in disconnected and connected state, and
2836 	 * will restore to the default behavior if the interface is closed.
2837 	 */
2838 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2839 
2840 	/*
2841 	 * 8-bit unsigned value. This attribute can be used to configure the
2842 	 * data path mode to be followed for audio traffic. Possible values
2843 	 * are defined in enum qca_wlan_audio_data_path.
2844 	 */
2845 	QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2846 
2847 	/*
2848 	 * 8-bit unsigned value. This attribute can be used to configure the
2849 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
2850 	 * this attribute are defined in the enum qca_wlan_dbam_config.
2851 	 */
2852 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
2853 
2854 	/* 8-bit unsigned value. This attribute takes the QoS/access category
2855 	 * value represented by the enum qca_wlan_ac_type and expects the driver
2856 	 * to upgrade the UDP frames of BE or BK access category to this access
2857 	 * category. This attribute will not modify UDP frames of VO or VI
2858 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
2859 	 * attribute.
2860 	 *
2861 	 * This will override the DSCP value configured in the frame with the
2862 	 * intention to only upgrade the access category. That said, it is not
2863 	 * intended to downgrade the access category for the frames.
2864 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2865 	 * disabled, as BK is of the lowest priority and an upgrade to it does
2866 	 * not result in any changes for the frames.
2867 	 *
2868 	 * This attribute behavior is similar to
2869 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
2870 	 * only UDP frames of BE or BK access category are upgraded and not
2871 	 * UDP frames of VI or VO access category.
2872 	 *
2873 	 * This attribute is not recommended to be used as it blindly forces all
2874 	 * UDP packets of BE or BK access category to a higher access category
2875 	 * which could impact the traffic pattern of all apps using UDP and can
2876 	 * cause unknown behavior.
2877 	 */
2878 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
2879 
2880 	/* 8-bit unsigned value to configure the driver to enable/disable the
2881 	 * periodic sounding for Tx beamformer functionality. The default
2882 	 * behavior uses algorithm to do sounding based on packet stats.
2883 	 *
2884 	 * 0 - Default behavior.
2885 	 * 1 - Enable the periodic sounding for Tx beamformer.
2886 	 */
2887 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
2888 
2889 	/* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
2890 	 * userspace sends this information to the driver/firmware to configure
2891 	 * wfc state. The driver/firmware uses this information to
2892 	 * optimize power savings, rate adaption, roaming, etc.
2893 	 *
2894 	 * 1 - wfc is on.
2895 	 * 0 - wfc is off.
2896 	 */
2897 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
2898 
2899 	/* keep last */
2900 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2901 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2902 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2903 };
2904 
2905 /* Compatibility defines for previously used incorrect enum
2906  * qca_wlan_vendor_attr_config names. These values should not be used in any
2907  * new implementation. */
2908 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2909 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2910 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2911 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2912 
2913 /**
2914  * enum qca_dbam_config - Specifies DBAM config mode
2915  * @QCA_DBAM_DISABLE: Firmware disables DBAM
2916  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
2917  * internal criteria are met.
2918  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
2919  */
2920 enum qca_dbam_config {
2921 	QCA_DBAM_DISABLE = 0,
2922 	QCA_DBAM_ENABLE = 1,
2923 	QCA_DBAM_FORCE_ENABLE = 2,
2924 };
2925 
2926 /**
2927  * enum qca_wlan_ani_setting - ANI setting type
2928  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2929  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2930  */
2931 enum qca_wlan_ani_setting {
2932 	QCA_WLAN_ANI_SETTING_AUTO = 0,
2933 	QCA_WLAN_ANI_SETTING_FIXED = 1,
2934 };
2935 
2936 /**
2937  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
2938  *
2939  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2940  * Channel number on which Access Point should restart.
2941  * Note: If both the driver and user space application supports the 6 GHz band,
2942  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2943  * should be used.
2944  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2945  * is still used if either of the driver or user space application doesn't
2946  * support the 6 GHz band.
2947  *
2948  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2949  * Channel center frequency (MHz) on which the access point should restart.
2950  */
2951 enum qca_wlan_vendor_attr_sap_config {
2952 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
2953 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2954 
2955 	/* List of frequencies on which AP is expected to operate.
2956 	 * This is irrespective of ACS configuration. This list is a priority
2957 	 * based one and is looked for before the AP is created to ensure the
2958 	 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2959 	 * the system.
2960 	 */
2961 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
2962 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
2963 
2964 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2965 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2966 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2967 };
2968 
2969 /**
2970  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2971  *					conditional channel switch
2972  */
2973 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2974 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2975 	/* Priority based frequency list (an array of u32 values in host byte
2976 	 * order)
2977 	 */
2978 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2979 	/* Status of the conditional switch (u32).
2980 	 * 0: Success, Non-zero: Failure
2981 	 */
2982 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2983 
2984 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2985 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2986 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2987 };
2988 
2989 /**
2990  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
2991  *
2992  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2993  * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2994  * for the available values.
2995  *
2996  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2997  * value to specify the GPIO number.
2998  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2999  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3000  *
3001  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3002  * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3003  * for the available values.
3004  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3005  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3006  *
3007  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
3008  * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3009  * for the available values.
3010  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3011  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3012  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3013  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3014  * attribute is present.
3015  *
3016  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
3017  * value to specify the GPIO interrupt mode. Please refer to enum
3018  * qca_gpio_interrupt_mode for the available values.
3019  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3020  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3021  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3022  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3023  * attribute is present.
3024  *
3025  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
3026  * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3027  * for the available values.
3028  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3029  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3030  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3031  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3032  * attribute is present.
3033  *
3034  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3035  * Value to specify the mux config. Meaning of a given value is dependent
3036  * on the target chipset and GPIO pin. Must be of the range 0-15.
3037  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3038  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3039  *
3040  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3041  * Value to specify the drive, refer to enum qca_gpio_drive.
3042  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3043  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3044  *
3045  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3046  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3047  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3048  * other parameters for the given GPIO will be obtained from internal
3049  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3050  * specified to indicate the GPIO pin being configured.
3051  */
3052 enum qca_wlan_gpio_attr {
3053 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3054 	/* Unsigned 32-bit attribute for GPIO command */
3055 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
3056 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
3057 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
3058 	/* Unsigned 32-bit attribute for GPIO value to configure */
3059 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
3060 	/* Unsigned 32-bit attribute for GPIO pull type */
3061 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
3062 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
3063 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3064 	/* Unsigned 32-bit attribute for GPIO direction to configure */
3065 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
3066 	/* Unsigned 32-bit attribute for GPIO mux config */
3067 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3068 	/* Unsigned 32-bit attribute for GPIO drive */
3069 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3070 	/* Flag attribute for using internal GPIO configuration */
3071 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
3072 
3073 	/* keep last */
3074 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3075 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3076 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3077 };
3078 
3079 /**
3080  * enum gpio_cmd_type - GPIO configuration command type
3081  * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3082  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3083  */
3084 enum qca_gpio_cmd_type {
3085 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3086 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3087 };
3088 
3089 /**
3090  * enum qca_gpio_pull_type - GPIO pull type
3091  * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3092  * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3093  * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3094  */
3095 enum qca_gpio_pull_type {
3096 	QCA_WLAN_GPIO_PULL_NONE = 0,
3097 	QCA_WLAN_GPIO_PULL_UP = 1,
3098 	QCA_WLAN_GPIO_PULL_DOWN = 2,
3099 	QCA_WLAN_GPIO_PULL_MAX,
3100 };
3101 
3102 /**
3103  * enum qca_gpio_direction - GPIO direction
3104  * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3105  * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3106  * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3107  */
3108 enum qca_gpio_direction {
3109 	QCA_WLAN_GPIO_INPUT = 0,
3110 	QCA_WLAN_GPIO_OUTPUT = 1,
3111 	QCA_WLAN_GPIO_DIR_MAX,
3112 };
3113 
3114 /**
3115  * enum qca_gpio_value - GPIO Value
3116  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3117  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3118  * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3119  */
3120 enum qca_gpio_value {
3121 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
3122 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3123 	QCA_WLAN_GPIO_LEVEL_MAX,
3124 };
3125 
3126 /**
3127  * enum gpio_interrupt_mode - GPIO interrupt mode
3128  * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3129  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3130  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3131  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3132  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3133  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3134  * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3135  */
3136 enum qca_gpio_interrupt_mode {
3137 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3138 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3139 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3140 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3141 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3142 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3143 	QCA_WLAN_GPIO_INTMODE_MAX,
3144 };
3145 
3146 /**
3147  * enum qca_gpio_drive - GPIO drive
3148  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3149  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3150  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3151  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3152  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3153  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3154  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3155  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3156  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3157  */
3158 enum qca_gpio_drive {
3159 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
3160 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
3161 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
3162 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
3163 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
3164 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
3165 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
3166 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
3167 	QCA_WLAN_GPIO_DRIVE_MAX,
3168 };
3169 
3170 /**
3171  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3172  * MSDUQ depth threshold per peer per tid in the target
3173  *
3174  * Associated Vendor Command:
3175  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3176  */
3177 enum qca_wlan_set_qdepth_thresh_attr {
3178 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3179 	/* 6-byte MAC address */
3180 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3181 	/* Unsigned 32-bit attribute for holding the TID */
3182 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3183 	/* Unsigned 32-bit attribute for holding the update mask
3184 	 * bit 0 - Update high priority msdu qdepth threshold
3185 	 * bit 1 - Update low priority msdu qdepth threshold
3186 	 * bit 2 - Update UDP msdu qdepth threshold
3187 	 * bit 3 - Update Non UDP msdu qdepth threshold
3188 	 * rest of bits are reserved
3189 	 */
3190 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3191 	/* Unsigned 32-bit attribute for holding the threshold value */
3192 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3193 
3194 	/* keep last */
3195 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3196 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3197 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3198 };
3199 
3200 /**
3201  * enum qca_acs_dfs_mode - Defines different types of DFS channel
3202  * configurations for ACS operation.
3203  *
3204  * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3205  * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3206  * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3207  * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3208  */
3209 enum qca_acs_dfs_mode {
3210 	QCA_ACS_DFS_MODE_NONE = 0,
3211 	QCA_ACS_DFS_MODE_ENABLE = 1,
3212 	QCA_ACS_DFS_MODE_DISABLE = 2,
3213 	QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3214 };
3215 
3216 /**
3217  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3218  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3219  *
3220  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3221  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3222  *
3223  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3224  * channel number hint for ACS operation, if valid channel is specified then
3225  * ACS operation gives priority to this channel.
3226  * Note: If both the driver and user space application supports the 6 GHz band,
3227  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3228  * should be used.
3229  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3230  * is still used if either of the driver or user space application doesn't
3231  * support the 6 GHz band.
3232  *
3233  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3234  * Channel center frequency (MHz) hint for ACS operation, if a valid center
3235  * frequency is specified, ACS operation gives priority to this channel.
3236  */
3237 enum qca_wlan_vendor_attr_acs_config {
3238 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3239 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3240 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3241 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3242 
3243 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3244 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3245 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3246 };
3247 
3248 /**
3249  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3250  */
3251 enum qca_wlan_vendor_attr_get_hw_capability {
3252 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3253 	/* Antenna isolation
3254 	 * An attribute used in the response.
3255 	 * The content of this attribute is encoded in a byte array. Each byte
3256 	 * value is an antenna isolation value. The array length is the number
3257 	 * of antennas.
3258 	 */
3259 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3260 	/* Request HW capability
3261 	 * An attribute used in the request.
3262 	 * The content of this attribute is a u32 array for one or more of
3263 	 * hardware capabilities (attribute IDs) that are being requested. Each
3264 	 * u32 value has a value from this
3265 	 * enum qca_wlan_vendor_attr_get_hw_capability
3266 	 * identifying which capabilities are requested.
3267 	 */
3268 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3269 
3270 	/* keep last */
3271 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3272 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3273 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3274 };
3275 
3276 /**
3277  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3278  *    offload which is an extension for LL_STATS.
3279  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3280  *    If MAC counters do not exceed the threshold, FW will report monitored
3281  *    link layer counters periodically as this setting. The first report is
3282  *    always triggered by this timer.
3283  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3284  *    For each MAC layer counter, FW holds two copies. One is the current value.
3285  *    The other is the last report. Once a current counter's increment is larger
3286  *    than the threshold, FW will indicate that counter to host even if the
3287  *    monitoring timer does not expire.
3288  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3289  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3290  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3291  *    failure code.
3292  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3293  *    1: TX packet discarded
3294  *    2: No ACK
3295  *    3: Postpone
3296  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3297  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3298  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3299  *    Threshold for all monitored parameters. If per counter dedicated threshold
3300  *    is not enabled, this threshold will take effect.
3301  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3302  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3303  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3304  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3305  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3306  *    Bit0: TX counter unit in MSDU
3307  *    Bit1: TX counter unit in MPDU
3308  *    Bit2: TX counter unit in PPDU
3309  *    Bit3: TX counter unit in byte
3310  *    Bit4: Dropped MSDUs
3311  *    Bit5: Dropped Bytes
3312  *    Bit6: MPDU retry counter
3313  *    Bit7: MPDU failure counter
3314  *    Bit8: PPDU failure counter
3315  *    Bit9: MPDU aggregation counter
3316  *    Bit10: MCS counter for ACKed MPDUs
3317  *    Bit11: MCS counter for Failed MPDUs
3318  *    Bit12: TX Delay counter
3319  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3320  *    Bit0: MAC RX counter unit in MPDU
3321  *    Bit1: MAC RX counter unit in byte
3322  *    Bit2: PHY RX counter unit in PPDU
3323  *    Bit3: PHY RX counter unit in byte
3324  *    Bit4: Disorder counter
3325  *    Bit5: Retry counter
3326  *    Bit6: Duplication counter
3327  *    Bit7: Discard counter
3328  *    Bit8: MPDU aggregation size counter
3329  *    Bit9: MCS counter
3330  *    Bit10: Peer STA power state change (wake to sleep) counter
3331  *    Bit11: Peer STA power save counter, total time in PS mode
3332  *    Bit12: Probe request counter
3333  *    Bit13: Other management frames counter
3334  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3335  *    Bit0: Idle time
3336  *    Bit1: TX time
3337  *    Bit2: time RX in current bss
3338  *    Bit3: Out of current bss time
3339  *    Bit4: Wireless medium busy time
3340  *    Bit5: RX in bad condition time
3341  *    Bit6: TX in bad condition time
3342  *    Bit7: time wlan card not available
3343  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3344  *    Bit0: Per channel SNR counter
3345  *    Bit1: Per channel noise floor counter
3346  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3347  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3348  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3349  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3350  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3351  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3352  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3353  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3354  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3355  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3356  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3357  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3358  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3359  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3360  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3361  *    aggregation stats buffer length
3362  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3363  *    buffer for ACKed MPDUs.
3364  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3365  *    buffer for failed MPDUs.
3366  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3367  *    length of delay stats array.
3368  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3369  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3370  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3371  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3372  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3373  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3374  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3375  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3376  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3377  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3378  *    flagged as retransmissions
3379  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3380  *    flagged as duplicated
3381  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3382  *    packets discarded
3383  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3384  *    stats buffer.
3385  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3386  *    stats buffer.
3387  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3388  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3389  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3390  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3391  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3392  *    requests received
3393  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3394  *    frames received
3395  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3396  *    there is no TX, nor RX, nor interference.
3397  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3398  *    transmitting packets.
3399  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3400  *    for receiving.
3401  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3402  *    interference detected.
3403  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3404  *    receiving packets with errors.
3405  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3406  *    TX no-ACK.
3407  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3408  *    the chip is unable to work in normal conditions.
3409  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3410  *    receiving packets in current BSS.
3411  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3412  *    receiving packets not in current BSS.
3413  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3414  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3415  *    This is a container for per antenna signal stats.
3416  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3417  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3418  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3419  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
3420  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3421  *    Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3422  *    message, user layer APP could call gettimeofday to get another
3423  *    timestamp and calculate transfer delay for the message.
3424  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3425  *    Real period for this measurement, unit in us.
3426  */
3427 enum qca_wlan_vendor_attr_ll_stats_ext {
3428 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3429 
3430 	/* Attributes for configurations */
3431 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3432 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3433 
3434 	/* Peer STA power state change */
3435 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3436 
3437 	/* TX failure event */
3438 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3439 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3440 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3441 
3442 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3443 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3444 
3445 	/* MAC counters */
3446 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3447 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3448 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3449 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3450 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3451 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3452 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3453 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3455 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3456 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3457 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3458 
3459 	/* Sub-attributes for PEER_AC_TX */
3460 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3461 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3462 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3463 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3464 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3465 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3466 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3467 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3468 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3469 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3471 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3472 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3473 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3474 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3475 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3476 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3477 
3478 	/* Sub-attributes for PEER_AC_RX */
3479 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3481 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3482 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3483 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3484 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3485 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3486 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3488 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3489 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3490 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3491 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3492 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3493 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3494 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3495 
3496 	/* Sub-attributes for CCA_BSS */
3497 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3498 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3499 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3500 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3501 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3502 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3504 
3505 	/* sub-attribute for BSS_RX_TIME */
3506 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3507 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3508 
3509 	/* Sub-attributes for PEER_SIGNAL */
3510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3511 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3512 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3513 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3514 
3515 	/* Sub-attributes for IFACE_BSS */
3516 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3517 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3518 
3519 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3521 
3522 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3523 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3524 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3525 };
3526 
3527 /* Attributes for FTM commands and events */
3528 
3529 /**
3530  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3531  *
3532  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3533  *	enum qca_wlan_vendor_attr_loc_capa_flags.
3534  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3535  *	of measurement sessions that can run concurrently.
3536  *	Default is one session (no session concurrency).
3537  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3538  *	peers that are supported in running sessions. For example,
3539  *	if the value is 8 and maximum number of sessions is 2, you can
3540  *	have one session with 8 unique peers, or 2 sessions with 4 unique
3541  *	peers each, and so on.
3542  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3543  *	of bursts per peer, as an exponent (2^value). Default is 0,
3544  *	meaning no multi-burst support.
3545  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3546  *	of measurement exchanges allowed in a single burst.
3547  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3548  *	types. A bit mask (unsigned 32 bit value), each bit corresponds
3549  *	to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3550  */
3551 enum qca_wlan_vendor_attr_loc_capa {
3552 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3553 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3554 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3555 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3556 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3557 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3558 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3559 	/* keep last */
3560 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3561 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3562 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3563 };
3564 
3565 /**
3566  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3567  *
3568  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3569  *	can be configured as an FTM responder (for example, an AP that
3570  *	services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3571  *	will be supported if set.
3572  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3573  *	can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3574  *	will be supported if set.
3575  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
3576  *	supports immediate (ASAP) response.
3577  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3578  *	AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3579  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3580  *	requesting AOA measurements as part of an FTM session.
3581  */
3582 enum qca_wlan_vendor_attr_loc_capa_flags {
3583 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3584 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3585 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3586 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3587 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3588 };
3589 
3590 /**
3591  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3592  *	a single peer in a measurement session.
3593  *
3594  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3595  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3596  *	to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
3597  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
3598  *	FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3599  *	9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3600  *	list of supported attributes.
3601  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3602  *	secure measurement.
3603  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3604  *	measurement every <value> bursts. If 0 or not specified,
3605  *	AOA measurements will be disabled for this peer.
3606  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3607  *	the measurement frames are exchanged. Optional; if not
3608  *	specified, try to locate the peer in the kernel scan
3609  *	results cache and use frequency from there.
3610  */
3611 enum qca_wlan_vendor_attr_ftm_peer_info {
3612 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3613 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3614 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
3615 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
3616 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3617 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
3618 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
3619 	/* keep last */
3620 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3621 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3622 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3623 };
3624 
3625 /**
3626  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3627  *	per-peer
3628  *
3629  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3630  *	immediate (ASAP) response from peer.
3631  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3632  *	LCI report from peer. The LCI report includes the absolute
3633  *	location of the peer in "official" coordinates (similar to GPS).
3634  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3635  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3636  *	Location civic report from peer. The LCR includes the location
3637  *	of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3638  *	11.24.6.7 for more information.
3639  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3640  *	request a secure measurement.
3641  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3642  */
3643 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3644 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP	= 1 << 0,
3645 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI	= 1 << 1,
3646 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR	= 1 << 2,
3647 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE	= 1 << 3,
3648 };
3649 
3650 /**
3651  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3652  *
3653  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3654  *	to perform in a single burst.
3655  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3656  *	perform, specified as an exponent (2^value).
3657  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3658  *	instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3659  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3660  *	as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3661  *	be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3662  */
3663 enum qca_wlan_vendor_attr_ftm_meas_param {
3664 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3665 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3666 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3667 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3668 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3669 	/* keep last */
3670 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3671 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3672 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3673 };
3674 
3675 /**
3676  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3677  *
3678  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3679  *	 peer.
3680  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3681  *	request for this peer.
3682  *	See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3683  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3684  *	to measurement results for this peer.
3685  *	See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3686  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3687  *	request failed and peer requested not to send an additional request
3688  *	for this number of seconds.
3689  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3690  *	from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3691  *	9.4.2.22.10.
3692  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3693  *	received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3694  *	9.4.2.22.13.
3695  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3696  *	overridden some measurement request parameters. See
3697  *	enum qca_wlan_vendor_attr_ftm_meas_param.
3698  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3699  *	for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3700  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3701  *	results. Each entry is a nested attribute defined
3702  *	by enum qca_wlan_vendor_attr_ftm_meas.
3703  */
3704 enum qca_wlan_vendor_attr_ftm_peer_result {
3705 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3706 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3707 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3708 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3709 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3710 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3711 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3712 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3713 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3714 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3715 	/* keep last */
3716 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3717 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3718 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3719 };
3720 
3721 /**
3722  * enum qca_wlan_vendor_attr_ftm_peer_result_status
3723  *
3724  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3725  *	will be provided. Peer may have overridden some measurement parameters,
3726  *	in which case overridden parameters will be report by
3727  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3728  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3729  *	of performing the measurement request. No more results will be sent
3730  *	for this peer in this session.
3731  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3732  *	failed, and requested not to send an additional request for number
3733  *	of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3734  *	attribute.
3735  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3736  *	failed. Request was not sent over the air.
3737  */
3738 enum qca_wlan_vendor_attr_ftm_peer_result_status {
3739 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3740 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3741 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3742 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3743 };
3744 
3745 /**
3746  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3747  *  for measurement result, per-peer
3748  *
3749  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3750  *	measurement completed for this peer. No more results will be reported
3751  *	for this peer in this session.
3752  */
3753 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3754 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3755 };
3756 
3757 /**
3758  * enum qca_vendor_attr_loc_session_status: Session completion status code
3759  *
3760  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3761  *	successfully.
3762  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3763  *	by request.
3764  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3765  *	was invalid and was not started.
3766  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3767  *	and did not complete normally (for example out of resources).
3768  */
3769 enum qca_vendor_attr_loc_session_status {
3770 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3771 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3772 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3773 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3774 };
3775 
3776 /**
3777  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3778  *
3779  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3780  *	recorded by responder, in picoseconds.
3781  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3782  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3783  *	initiator, in picoseconds.
3784  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3785  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3786  *	initiator, in picoseconds.
3787  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3788  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3789  *	responder, in picoseconds.
3790  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3791  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3792  *	during this measurement exchange. Optional and will be provided if
3793  *	the hardware can measure it.
3794  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3795  *	responder. Not always provided.
3796  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3797  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3798  *	responder. Not always provided.
3799  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3800  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3801  *	initiator. Not always provided.
3802  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3803  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3804  *	initiator. Not always provided.
3805  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3806  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3807  */
3808 enum qca_wlan_vendor_attr_ftm_meas {
3809 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
3810 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3811 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3812 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3813 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3814 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3815 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3816 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3817 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3818 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3819 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3820 	/* keep last */
3821 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3822 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3823 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3824 };
3825 
3826 /**
3827  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3828  *
3829  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3830  *	CIR (channel impulse response) path for each antenna.
3831  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3832  *	of the strongest CIR path for each antenna.
3833  */
3834 enum qca_wlan_vendor_attr_aoa_type {
3835 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3836 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3837 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3838 };
3839 
3840 /**
3841  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3842  * validate encryption engine
3843  *
3844  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3845  *	This will be included if the request is for decryption; if not included,
3846  *	the request is treated as a request for encryption by default.
3847  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3848  *	indicating the key cipher suite. Takes same values as
3849  *	NL80211_ATTR_KEY_CIPHER.
3850  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3851  *	Key Id to be used for encryption
3852  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3853  *	Key (TK) to be used for encryption/decryption
3854  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3855  *	Packet number to be specified for encryption/decryption
3856  *	6 bytes for TKIP/CCMP/GCMP.
3857  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3858  *	representing the 802.11 packet (header + payload + FCS) that
3859  *	needs to be encrypted/decrypted.
3860  *	Encrypted/decrypted response from the driver will also be sent
3861  *	to userspace with the same attribute.
3862  */
3863 enum qca_wlan_vendor_attr_encryption_test {
3864 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3865 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3866 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3867 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3868 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3869 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3870 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3871 
3872 	/* keep last */
3873 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3874 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3875 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3876 };
3877 
3878 /**
3879  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3880  * sector for DMG RF sector operations.
3881  *
3882  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3883  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3884  */
3885 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3886 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3887 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3888 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3889 };
3890 
3891 /**
3892  * enum qca_wlan_vendor_attr_fw_state - State of firmware
3893  *
3894  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3895  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3896  */
3897 enum qca_wlan_vendor_attr_fw_state {
3898 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3899 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3900 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3901 };
3902 
3903 /**
3904  * BRP antenna limit mode
3905  *
3906  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3907  *	antenna limit, BRP will be performed as usual.
3908  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3909  *	antennas limit. the hardware may use less antennas than the
3910  *	maximum limit.
3911  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3912  *	use exactly the specified number of antennas for BRP.
3913  */
3914 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3915 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3916 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3917 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3918 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3919 };
3920 
3921 /**
3922  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3923  * DMG RF sector configuration for a single RF module.
3924  * The values are defined in a compact way which closely matches
3925  * the way it is stored in HW registers.
3926  * The configuration provides values for 32 antennas and 8 distribution
3927  * amplifiers, and together describes the characteristics of the RF
3928  * sector - such as a beam in some direction with some gain.
3929  *
3930  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3931  *	of RF module for this configuration.
3932  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3933  *	amplifier gain index. Unsigned 32 bit number containing
3934  *	bits for all 32 antennas.
3935  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3936  *	amplifier gain index. Unsigned 32 bit number containing
3937  *	bits for all 32 antennas.
3938  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3939  *	amplifier gain index. Unsigned 32 bit number containing
3940  *	bits for all 32 antennas.
3941  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3942  *	for first 16 antennas, 2 bits per antenna.
3943  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3944  *	for last 16 antennas, 2 bits per antenna.
3945  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3946  *	DTYPE values (3 bits) for each distribution amplifier, followed
3947  *	by X16 switch bits for each distribution amplifier. There are
3948  *	total of 8 distribution amplifiers.
3949  */
3950 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3951 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3952 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3953 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3954 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3955 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3956 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3957 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3958 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3959 
3960 	/* keep last */
3961 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3962 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3963 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3964 };
3965 
3966 enum qca_wlan_vendor_attr_ll_stats_set {
3967 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3968 	/* Unsigned 32-bit value */
3969 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3970 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3971 	/* keep last */
3972 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3973 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3974 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3975 };
3976 
3977 enum qca_wlan_vendor_attr_ll_stats_clr {
3978 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3979 	/* Unsigned 32bit bitmap for clearing statistics
3980 	 * All radio statistics                     0x00000001
3981 	 * cca_busy_time (within radio statistics)  0x00000002
3982 	 * All channel stats (within radio statistics) 0x00000004
3983 	 * All scan statistics (within radio statistics) 0x00000008
3984 	 * All interface statistics                     0x00000010
3985 	 * All tx rate statistics (within interface statistics) 0x00000020
3986 	 * All ac statistics (with in interface statistics) 0x00000040
3987 	 * All contention (min, max, avg) statistics (within ac statisctics)
3988 	 * 0x00000080.
3989 	 */
3990 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3991 	/* Unsigned 8 bit value: Request to stop statistics collection */
3992 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3993 
3994 	/* Unsigned 32 bit bitmap: Response from the driver
3995 	 * for the cleared statistics
3996 	 */
3997 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3998 	/* Unsigned 8 bit value: Response from driver/firmware
3999 	 * for the stop request
4000 	 */
4001 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4002 	/* keep last */
4003 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4004 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4005 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4006 };
4007 
4008 enum qca_wlan_vendor_attr_ll_stats_get {
4009 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4010 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
4011 	 * command. When reporting the stats results, the driver uses the same
4012 	 * value to indicate which GET request the results correspond to.
4013 	 */
4014 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4015 	/* Unsigned 32 bit value - bit mask to identify what statistics are
4016 	 * requested for retrieval.
4017 	 * Radio Statistics 0x00000001
4018 	 * Interface Statistics 0x00000020
4019 	 * All Peer Statistics 0x00000040
4020 	 * Peer Statistics     0x00000080
4021 	 */
4022 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4023 	/* keep last */
4024 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4025 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4026 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4027 };
4028 
4029 enum qca_wlan_vendor_attr_ll_stats_results {
4030 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
4031 	/* Unsigned 32bit value. Used by the driver; must match the request id
4032 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4033 	 */
4034 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4035 
4036 	/* Unsigned 32 bit value */
4037 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
4038 	/* Unsigned 32 bit value */
4039 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
4040 	/* Unsigned 32 bit value */
4041 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
4042 	/* Unsigned 32 bit value */
4043 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
4044 	/* Signed 32 bit value */
4045 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
4046 	/* Signed 32 bit value */
4047 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
4048 	/* Signed 32 bit value */
4049 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4050 
4051 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4052 	 * nested within the interface stats.
4053 	 */
4054 
4055 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4056 	 * Type = enum wifi_interface_mode.
4057 	 */
4058 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4059 	/* Interface MAC address. An array of 6 Unsigned int8 */
4060 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4061 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4062 	 * AUTHENTICATING, etc. valid for STA, CLI only.
4063 	 */
4064 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4065 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4066 	 */
4067 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4068 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4069 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4070 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4071 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
4072 	/* BSSID. An array of 6 unsigned 8 bit values */
4073 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4074 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
4075 	 * values.
4076 	 */
4077 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4078 	/* Country string for this association. An array of 3 unsigned 8 bit
4079 	 * values.
4080 	 */
4081 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4082 
4083 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4084 	 * be nested within the interface stats.
4085 	 */
4086 
4087 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4088 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4089 	/* Unsigned int 32 value corresponding to respective AC */
4090 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4091 	/* Unsigned int 32 value corresponding to respective AC */
4092 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4093 	/* Unsigned int 32 value corresponding to respective AC */
4094 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4095 	/* Unsigned int 32 value corresponding to respective AC */
4096 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4097 	/* Unsigned int 32 value corresponding to respective AC */
4098 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4099 	/* Unsigned int 32 value corresponding to respective AC */
4100 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4101 	/* Unsigned int 32 value corresponding to respective AC */
4102 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4103 	/* Unsigned int 32 value corresponding to respective AC */
4104 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4105 	/* Unsigned int 32 value corresponding to respective AC  */
4106 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4107 	/* Unsigned int 32 values corresponding to respective AC */
4108 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4109 	/* Unsigned int 32 values corresponding to respective AC */
4110 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4111 	/* Unsigned int 32 values corresponding to respective AC */
4112 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4113 	/* Unsigned int 32 values corresponding to respective AC */
4114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4115 	/* Unsigned int 32 values corresponding to respective AC */
4116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4117 	/* Unsigned 32 bit value. Number of peers */
4118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4119 
4120 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4121 	 * nested within the interface stats.
4122 	 */
4123 
4124 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4125 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4126 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
4127 	 * 8 bit values.
4128 	 */
4129 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4130 	/* Unsigned int 32 bit value representing capabilities corresponding
4131 	 * to respective peer.
4132 	 */
4133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4134 	/* Unsigned 32 bit value. Number of rates */
4135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4136 
4137 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4138 	 * are nested within the rate stat.
4139 	 */
4140 
4141 	/* Wi-Fi Rate - separate attributes defined for individual fields */
4142 
4143 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4144 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4145 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4146 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4147 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4148 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4149 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
4150 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4151 	 */
4152 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4153 
4154 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4155 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4156 
4157 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4158 	 * nested within the peer info stats.
4159 	 */
4160 
4161 	/* Unsigned int 32 bit value. Number of successfully transmitted data
4162 	 * packets, i.e., with ACK received corresponding to the respective
4163 	 * rate.
4164 	 */
4165 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4166 	/* Unsigned int 32 bit value. Number of received data packets
4167 	 * corresponding to the respective rate.
4168 	 */
4169 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4170 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4171 	 * received corresponding to the respective rate.
4172 	 */
4173 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4174 	/* Unsigned int 32 bit value. Total number of data packet retries for
4175 	 * the respective rate.
4176 	 */
4177 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4178 	/* Unsigned int 32 bit value. Total number of short data packet retries
4179 	 * for the respective rate.
4180 	 */
4181 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4182 	/* Unsigned int 32 bit value. Total number of long data packet retries
4183 	 * for the respective rate.
4184 	 */
4185 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4186 
4187 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4188 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
4189 	 * accruing over time.
4190 	 */
4191 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4192 	/* Unsigned 32 bit value. Total number of msecs the radio is
4193 	 * transmitting accruing over time.
4194 	 */
4195 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4196 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
4197 	 * receive accruing over time.
4198 	 */
4199 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4200 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4201 	 * to all scan accruing over time.
4202 	 */
4203 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4204 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4205 	 * to NAN accruing over time.
4206 	 */
4207 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4208 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4209 	 * to GSCAN accruing over time.
4210 	 */
4211 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4212 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4213 	 * to roam scan accruing over time.
4214 	 */
4215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4216 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4217 	 * to PNO scan accruing over time.
4218 	 */
4219 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4220 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4221 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4222 	 */
4223 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4224 	/* Unsigned 32 bit value. Number of channels. */
4225 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4226 
4227 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4228 	 * be nested within the channel stats.
4229 	 */
4230 
4231 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4233 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
4234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4235 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4237 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4238 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4239 
4240 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4241 	 * nested within the radio stats.
4242 	 */
4243 
4244 	/* Unsigned int 32 bit value representing total number of msecs the
4245 	 * radio is awake on that channel accruing over time, corresponding to
4246 	 * the respective channel.
4247 	 */
4248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4249 	/* Unsigned int 32 bit value representing total number of msecs the CCA
4250 	 * register is busy accruing over time corresponding to the respective
4251 	 * channel.
4252 	 */
4253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4254 
4255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4256 
4257 	/* Signifies the nested list of channel attributes
4258 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
4259 	 */
4260 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4261 
4262 	/* Signifies the nested list of peer info attributes
4263 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
4264 	 */
4265 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4266 
4267 	/* Signifies the nested list of rate info attributes
4268 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4269 	 */
4270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4271 
4272 	/* Signifies the nested list of wmm info attributes
4273 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4274 	 */
4275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4276 
4277 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4278 	 * that more stats, e.g., peers or radio, are to follow in the next
4279 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4280 	 * Otherwise, it is set to 0.
4281 	 */
4282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4283 
4284 	/* Unsigned 64 bit value */
4285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4286 
4287 	/* Unsigned 32 bit value */
4288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4289 
4290 	/* Unsigned 32 bit value */
4291 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4292 
4293 	/* Unsigned 32 bit value */
4294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4295 
4296 	/* Unsigned 32 bit value */
4297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4298 
4299 	/* Unsigned 32 bit value */
4300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4301 
4302 	/* Number of msecs the radio spent in transmitting for each power level
4303 	 */
4304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4305 
4306 	/* Unsigned 32 bit value */
4307 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4308 	/* Unsigned 32 bit value */
4309 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4310 	/* Unsigned 32 bit value */
4311 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4312 	/* Unsigned 32 bit value */
4313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4314 
4315 	/* Unsigned int 32 value.
4316 	 * Pending MSDUs corresponding to respective AC.
4317 	 */
4318 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4319 
4320 	/* u32 value representing total time in milliseconds for which the radio
4321 	 * is transmitting on this channel. This attribute will be nested
4322 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4323 	 */
4324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4325 	/* u32 value representing total time in milliseconds for which the radio
4326 	 * is receiving all 802.11 frames intended for this device on this
4327 	 * channel. This attribute will be nested within
4328 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4329 	 */
4330 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
4331 	/* u8 value representing the channel load percentage. Possible values
4332 	 * are 0-100.
4333 	 */
4334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4335 	/* u8 value representing the time slicing duty cycle percentage.
4336 	 * Possible values are 0-100.
4337 	 */
4338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
4339 	/* Unsigned 32 bit value. The number of Beacon frames which are received
4340 	 * from the associated AP and indicate buffered unicast frame(s) for us
4341 	 * in the TIM element.
4342 	 */
4343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4344 	/* Unsigned 32 bit value. The total number of Beacon frames received
4345 	 * from the associated AP that have wrongly indicated buffered unicast
4346 	 * traffic in the TIM element for us.
4347 	 * Below scenarios will be considered as wrong TIM element beacon:
4348 	 * 1)	The related TIM element is set in the beacon for STA but STA
4349 	 *      doesn’t receive any unicast data after this beacon.
4350 	 * 2)	The related TIM element is still set in the beacon for STA
4351 	 *	after STA has indicated power save exit by QoS Null Data frame.
4352 	 */
4353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
4354 
4355 	/* keep last */
4356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4358 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4359 };
4360 
4361 enum qca_wlan_vendor_attr_ll_stats_type {
4362 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4363 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4364 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4365 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4366 
4367 	/* keep last */
4368 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4369 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4370 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4371 };
4372 
4373 /**
4374  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4375  * TDLS configuration to the host driver.
4376  *
4377  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4378  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4379  *	represents the different TDLS trigger modes.
4380  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4381  *      which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4382  *      of packets shall meet the criteria for implicit TDLS setup.
4383  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4384  *      within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4385  *      to initiate a TDLS setup.
4386  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4387  *      a TDLS Discovery to the peer.
4388  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4389  *      discovery attempts to know the TDLS capability of the peer. A peer is
4390  *      marked as TDLS not capable if there is no response for all the attempts.
4391  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4392  *      within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4393  *      number of TX / RX frames meet the criteria for TDLS teardown.
4394  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4395  *      of Tx/Rx packets within a duration
4396  *      QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4397  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4398  *	corresponding to the RSSI of the peer below which a TDLS setup is
4399  *	triggered.
4400  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4401  *	corresponding to the RSSI of the peer above which a TDLS teardown is
4402  *	triggered.
4403  */
4404 enum qca_wlan_vendor_attr_tdls_configuration {
4405 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4406 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4407 
4408 	/* Attributes configuring the TDLS Implicit Trigger */
4409 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4410 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4411 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4412 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4413 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4414 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4415 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4416 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4417 
4418 	/* keep last */
4419 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4420 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4421 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4422 };
4423 
4424 /**
4425  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4426  *	the driver
4427  *
4428  * The following are the different values for
4429  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4430  *
4431  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4432  *	the TDLS connection to a respective peer comes from the user space.
4433  *	wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4434  *	TDLS_DISCOVER to do this.
4435  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4436  *	setup/teardown to the eligible peer once the configured criteria
4437  *	(such as TX/RX threshold, RSSI) is met. The attributes
4438  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4439  *	the different configuration criteria for the TDLS trigger from the
4440  *	host driver.
4441  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4442  *	the TDLS setup / teardown through the implicit mode only to the
4443  *	configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4444  *	configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4445  *	External mode works on top of the implicit mode. Thus the host driver
4446  *	is expected to configure in TDLS Implicit mode too to operate in
4447  *	External mode.
4448  *	Configuring External mode alone without	Implicit mode is invalid.
4449  *
4450  * All the above implementations work as expected only when the host driver
4451  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4452  * that the TDLS message exchange is not internal to the host driver, but
4453  * depends on wpa_supplicant to do the message exchange.
4454  */
4455 enum qca_wlan_vendor_tdls_trigger_mode {
4456 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4457 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4458 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4459 };
4460 
4461 /**
4462  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4463  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4464  *	that is hard-coded in the Board Data File (BDF).
4465  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4466  *	that is hard-coded in the Board Data File (BDF).
4467  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4468  *	that is hard-coded in the Board Data File (BDF).
4469  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4470  *	that is hard-coded in the Board Data File (BDF).
4471  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4472  *	that is hard-coded in the Board Data File (BDF).
4473  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4474  *	source of SAR power limits, thereby disabling the SAR power
4475  *	limit feature.
4476  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4477  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4478  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4479  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4480  *
4481  * This enumerates the valid set of values that may be supplied for
4482  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
4483  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4484  * the response to an instance of the
4485  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4486  */
4487 enum qca_vendor_attr_sar_limits_selections {
4488 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4489 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4490 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4491 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4492 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4493 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4494 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
4495 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
4496 };
4497 
4498 /**
4499  * enum qca_vendor_attr_sar_limits_spec_modulations -
4500  *	SAR limits specification modulation
4501  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4502  *	CCK modulation
4503  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4504  *	OFDM modulation
4505  *
4506  * This enumerates the valid set of values that may be supplied for
4507  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4508  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4509  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
4510  * command or in the response to an instance of the
4511  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4512  */
4513 enum qca_vendor_attr_sar_limits_spec_modulations {
4514 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4515 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4516 };
4517 
4518 /**
4519  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4520  *
4521  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
4522  *	select which SAR power limit table should be used. Valid
4523  *	values are enumerated in enum
4524  *	%qca_vendor_attr_sar_limits_selections. The existing SAR
4525  *	power limit selection is unchanged if this attribute is not
4526  *	present.
4527  *
4528  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4529  *	which specifies the number of SAR power limit specifications
4530  *	which will follow.
4531  *
4532  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4533  *	limit specifications. The number of specifications is
4534  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4535  *	specification contains a set of
4536  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4537  *	specification is uniquely identified by the attributes
4538  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4539  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4540  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4541  *	contains as a payload the attribute
4542  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4543  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4544  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4545  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4546  *	needed based upon the value of
4547  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
4548  *
4549  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4550  *	indicate for which band this specification applies. Valid
4551  *	values are enumerated in enum %nl80211_band (although not all
4552  *	bands may be supported by a given device). If the attribute is
4553  *	not supplied then the specification will be applied to all
4554  *	supported bands.
4555  *
4556  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4557  *	to indicate for which antenna chain this specification
4558  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4559  *	attribute is not supplied then the specification will be
4560  *	applied to all chains.
4561  *
4562  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4563  *	value to indicate for which modulation scheme this
4564  *	specification applies. Valid values are enumerated in enum
4565  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4566  *	is not supplied then the specification will be applied to all
4567  *	modulation schemes.
4568  *
4569  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4570  *	value to specify the actual power limit value in units of 0.5
4571  *	dBm (i.e., a value of 11 represents 5.5 dBm).
4572  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4573  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
4574  *
4575  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4576  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4577  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4578  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4579  *
4580  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4581  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
4582  */
4583 enum qca_vendor_attr_sar_limits {
4584 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4585 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4586 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4587 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4588 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4589 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4590 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4591 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
4592 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
4593 
4594 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4595 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4596 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4597 };
4598 
4599 /**
4600  * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4601  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
4602  *
4603  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4604  *	should be set to any U8 value to indicate that the driver version
4605  *	should be returned. When enabled in this manner, in a response this
4606  *	attribute will contain a string representation of the driver version.
4607  *
4608  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4609  *	should be set to any U8 value to indicate that the firmware version
4610  *	should be returned. When enabled in this manner, in a response this
4611  *	attribute will contain a string representation of the firmware version.
4612  *
4613  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4614  *	should be set to any U32 value to indicate that the current radio
4615  *	index should be returned. When enabled in this manner, in a response
4616  *	this attribute will contain a U32 radio index value.
4617  *
4618  */
4619 enum qca_wlan_vendor_attr_get_wifi_info {
4620 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4621 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4622 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
4623 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
4624 
4625 	/* keep last */
4626 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4627 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4628 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4629 };
4630 
4631 /*
4632  * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4633  * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4634  */
4635 enum qca_wlan_vendor_attr_wifi_logger_start {
4636 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4637 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4638 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4639 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4640 
4641 	/* keep last */
4642 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4643 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4644 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4645 };
4646 
4647 enum qca_wlan_vendor_attr_logger_results {
4648 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4649 
4650 	/* Unsigned 32-bit value; must match the request Id supplied by
4651 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
4652 	 */
4653 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4654 
4655 	/* Unsigned 32-bit value; used to indicate the size of memory
4656 	 * dump to be allocated.
4657 	 */
4658 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4659 
4660 	/* keep last */
4661 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4662 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4663 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4664 };
4665 
4666 /**
4667  * enum qca_scan_freq_list_type: Frequency list types
4668  *
4669  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4670  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4671  *	a preferred frequency list for roaming.
4672  *
4673  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4674  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4675  *	a specific frequency list for roaming.
4676  */
4677 enum qca_scan_freq_list_type {
4678 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4679 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4680 };
4681 
4682 /**
4683  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4684  *
4685  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4686  *	List of frequencies in MHz to be considered for a roam scan.
4687  *
4688  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4689  *	Type of frequency list scheme being configured/gotten as defined by the
4690  *	enum qca_scan_freq_list_type.
4691  */
4692 enum qca_vendor_attr_scan_freq_list_scheme {
4693 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4694 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4695 
4696 	/* keep last */
4697 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4698 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4699 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4700 };
4701 
4702 /**
4703  * enum qca_roam_scan_scheme: Scan scheme
4704  *
4705  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4706  *     Indicates the driver to not scan on a Roam Trigger scenario, but
4707  *     disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4708  *     disconnect from the current connected AP by notifying a failure
4709  *     code in the BTM response.
4710  *
4711  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4712  *     trigger partial frequency scans. These frequencies are the ones learned
4713  *     or maintained by the driver based on the probability of finding the
4714  *     BSSIDs in the ESS for which the roaming is triggered.
4715  *
4716  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4717  *     trigger the scan on all the valid frequencies to find better
4718  *     candidates to roam.
4719  */
4720 enum qca_roam_scan_scheme {
4721 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4722 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4723 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4724 };
4725 
4726 /*
4727  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4728  *
4729  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4730  *	a bad packet error rates (PER).
4731  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4732  *	based on beacon misses from the connected AP.
4733  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4734  *	due to poor RSSI of the connected AP.
4735  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4736  *	upon finding a BSSID with a better RSSI than the connected BSSID.
4737  *	Here the RSSI of the current BSSID need not be poor.
4738  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4739  *	by triggering a periodic scan to find a better AP to roam.
4740  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4741  *	when the connected channel environment is too noisy/congested.
4742  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4743  *	when BTM Request frame is received from the connected AP.
4744  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4745  *	when the channel utilization is goes above the configured threshold.
4746  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4747  *	based on the request from the user (space).
4748  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4749  *	device receives Deauthentication/Disassociation frame from connected AP.
4750  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4751  *	device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4752  *	is determined to be a poor one.
4753  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4754  *	based on continuous TX Data frame failures to the connected AP.
4755  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4756  *	based on the scan results obtained from an external scan (not triggered
4757  *	to aim roaming).
4758  *
4759  * Set the corresponding roam trigger reason bit to consider it for roam
4760  * trigger.
4761  * Userspace can set multiple bits and send to the driver. The driver shall
4762  * consider all of them to trigger/initiate a roam scan.
4763  */
4764 enum qca_vendor_roam_triggers {
4765 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
4766 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
4767 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
4768 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
4769 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
4770 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
4771 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
4772 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
4773 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
4774 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
4775 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
4776 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
4777 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
4778 };
4779 
4780 /*
4781  * enum qca_vendor_roam_fail_reasons: Defines the various roam
4782  * fail reasons. This enum value is used in
4783  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4784  *
4785  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4786  * able to trigger the scan.
4787  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4788  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4789  * scan.
4790  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4791  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4792  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4793  * status code.
4794  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4795  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4796  * frame.
4797  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4798  * with error status code.
4799  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4800  * received.
4801  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4802  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4803  * frame.
4804  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4805  * internally before transmission.
4806  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4807  * Request frame.
4808  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4809  * dropped internally.
4810  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4811  * times out.
4812  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4813  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4814  * internally.
4815  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4816  * M2 frame.
4817  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4818  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4819  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4820  * internally.
4821  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4822  * frame.
4823  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4824  * started for final beacon miss case.
4825  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4826  * received from the AP during roaming handoff.
4827  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4828  * or host is suspended and gives the indication of the last roamed AP only
4829  * when the Apps is resumed. If the Apps is resumed while the roaming is in
4830  * progress, this ongoing roaming is aborted and the last roamed AP is
4831  * indicated to host.
4832  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4833  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4834  * out.
4835  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4836  */
4837 enum qca_vendor_roam_fail_reasons {
4838 	QCA_ROAM_FAIL_REASON_NONE = 0,
4839 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4840 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4841 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4842 	QCA_ROAM_FAIL_REASON_HOST = 4,
4843 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4844 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4845 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4846 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4847 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4848 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4849 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4850 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4851 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4852 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4853 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4854 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4855 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4856 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4857 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4858 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4859 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4860 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4861 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4862 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4863 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4864 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4865 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4866 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4867 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4868 };
4869 
4870 /*
4871  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4872  * invoke fail reasons. This enum value is used in
4873  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4874  *
4875  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4876  * in roam invoke command.
4877  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4878  * enabled.
4879  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4880  * length is invalid.
4881  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4882  * in progress.
4883  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4884  * of the AP in the roam invoke command to firmware. This reason is sent by the
4885  * firmware when the given AP is configured to be ignored or SSID/security
4886  * does not match.
4887  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4888  * firmware internal reasons.
4889  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4890  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4891  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4892  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4893  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4894  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4895  */
4896 enum qca_vendor_roam_invoke_fail_reasons {
4897 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
4898 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4899 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4900 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4901 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4902 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4903 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4904 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4905 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4906 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4907 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4908 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4909 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4910 
4911 };
4912 
4913 /**
4914  * enum qca_vendor_attr_roam_candidate_selection_criteria:
4915  *
4916  * Each attribute carries a weightage in percentage (%).
4917  *
4918  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4919  *	Represents the weightage to be given for the RSSI selection
4920  *	criteria among other parameters.
4921  *
4922  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4923  *	Represents the weightage to be given for the rate selection
4924  *	criteria among other parameters.
4925  *
4926  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4927  *	Represents the weightage to be given for the band width selection
4928  *	criteria among other parameters.
4929  *
4930  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4931  *	Represents the weightage to be given for the band selection
4932  *	criteria among other parameters.
4933  *
4934  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4935  *	Represents the weightage to be given for the NSS selection
4936  *	criteria among other parameters.
4937  *
4938  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4939  *	Represents the weightage to be given for the channel congestion
4940  *	selection criteria among other parameters.
4941  *
4942  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4943  *	Represents the weightage to be given for the beamforming selection
4944  *	criteria among other parameters.
4945  *
4946  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4947  *	Represents the weightage to be given for the OCE selection
4948  *	criteria among other parameters.
4949  */
4950 enum qca_vendor_attr_roam_candidate_selection_criteria {
4951 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4952 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4953 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4954 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4955 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4956 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4957 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4958 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4959 
4960 	/* keep last */
4961 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4962 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4963 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4964 };
4965 
4966 /**
4967  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
4968  *	The following attributes are used to set/get/clear the respective
4969  *	configurations to/from the driver.
4970  *	For the get, the attribute for the configuration to be queried shall
4971  *	carry any of its acceptable values to the driver. In return, the driver
4972  *	shall send the configured values within the same attribute to the user
4973  *	space.
4974  *
4975  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4976  *	Signifies to enable/disable roam control in driver.
4977  *	1-enable, 0-disable
4978  *	Enable: Mandates the driver to do the further roams using the
4979  *	configuration parameters set through
4980  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4981  *	Disable: Disables the driver/firmware roaming triggered through
4982  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4983  *	expected to continue with the default configurations.
4984  *
4985  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4986  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4987  *	Roam control status is obtained through this attribute.
4988  *
4989  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4990  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4991  *	is to be cleared in the driver.
4992  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4993  *	and shall be ignored if used with other sub commands.
4994  *	If this attribute is specified along with subcmd
4995  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4996  *	all other attributes, if there are any.
4997  *	If this attribute is not specified when the subcmd
4998  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4999  *	clear the data corresponding to the attributes specified.
5000  *
5001  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5002  *	list of frequencies and its type, represented by
5003  *	enum qca_vendor_attr_scan_freq_list_scheme.
5004  *	Frequency list and its type are mandatory for this attribute to set
5005  *	the frequencies.
5006  *	Frequency type is mandatory for this attribute to get the frequencies
5007  *	and the frequency list is obtained through
5008  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5009  *	Frequency list type is mandatory for this attribute to clear the
5010  *	frequencies.
5011  *
5012  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5013  *	Carries the value of scan period in seconds to set.
5014  *	The value of scan period is obtained with the same attribute for get.
5015  *	Clears the scan period in the driver when specified with clear command.
5016  *	Scan period is the idle time in seconds between each subsequent
5017  *	channel scans.
5018  *
5019  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5020  *	Carries the value of full scan period in seconds to set.
5021  *	The value of full scan period is obtained with the same attribute for
5022  *	get.
5023  *	Clears the full scan period in the driver when specified with clear
5024  *	command. Full scan period is the idle period in seconds between two
5025  *	successive full channel roam scans.
5026  *
5027  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5028  *	Carries a bitmap of the roam triggers specified in
5029  *	enum qca_vendor_roam_triggers.
5030  *	The driver shall enable roaming by enabling corresponding roam triggers
5031  *	based on the trigger bits sent with this attribute.
5032  *	If this attribute is not configured, the driver shall proceed with
5033  *	default behavior.
5034  *	The bitmap configured is obtained with the same attribute for get.
5035  *	Clears the bitmap configured in driver when specified with clear
5036  *	command.
5037  *
5038  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5039  *	weightage in percentage (%) to be given for each selection criteria.
5040  *	Different roam candidate selection criteria are represented by
5041  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
5042  *	The driver shall select the roam candidate based on corresponding
5043  *	candidate selection scores sent.
5044  *
5045  *	An empty nested attribute is used to indicate that no specific
5046  *	preference score/criteria is configured (i.e., to disable this mechanism
5047  *	in the set case and to show that the mechanism is disabled in the get
5048  *	case).
5049  *
5050  *	Userspace can send multiple attributes out of this enum to the driver.
5051  *	Since this attribute represents the weight/percentage of preference for
5052  *	the respective selection criteria, it is preferred to configure 100%
5053  *	total weightage. The value in each attribute or cumulative weight of the
5054  *	values in all the nested attributes should not exceed 100%. The driver
5055  *	shall reject such configuration.
5056  *
5057  *	If the weights configured through this attribute are less than 100%,
5058  *	the driver shall honor the weights (x%) passed for the corresponding
5059  *	selection criteria and choose/distribute rest of the weight (100-x)%
5060  *	for the other selection criteria, based on its internal logic.
5061  *
5062  *	The selection criteria configured is obtained with the same
5063  *	attribute for get.
5064  *
5065  *	Clears the selection criteria configured in the driver when specified
5066  *	with clear command.
5067  *
5068  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5069  *	Represents value of the scan frequency scheme from enum
5070  *	qca_roam_scan_scheme.
5071  *	It's an optional attribute. If this attribute is not configured, the
5072  *	driver shall proceed with default behavior.
5073  *
5074  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5075  *	signifying the RSSI threshold of the current connected AP, indicating
5076  *	the driver to trigger roam only when the current connected AP's RSSI
5077  *	is less than this threshold.
5078  *
5079  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5080  *	signifying the RSSI threshold of the candidate AP, indicating
5081  *	the driver to trigger roam only to the candidate AP with RSSI
5082  *	better than this threshold. If RSSI thresholds for candidate APs found
5083  *	in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5084  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5085  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5086  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5087  *	take precedence over the value configured using the
5088  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
5089  *
5090  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5091  *	user defined reason code to be sent to the AP in response to AP's
5092  *	request to trigger the roam if the roaming cannot be triggered.
5093  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5094  *
5095  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5096  *	Carries a bitmap of the roam triggers specified in
5097  *	enum qca_vendor_roam_triggers.
5098  *	Represents the roam triggers for which the specific scan scheme from
5099  *	enum qca_roam_scan_scheme has to be applied.
5100  *	It's an optional attribute. If this attribute is not configured, but
5101  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5102  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5103  *	all the roams.
5104  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5105  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5106  *	driver shall proceed with the default behavior.
5107  *
5108  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5109  *	in dBm, signifying the RSSI threshold of the candidate AP found in the
5110  *	2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5111  *	AP found in the 2.4 GHz band only if its RSSI value is better than this
5112  *	threshold. Optional attribute. If this attribute is not included, the
5113  *	threshold value specified by the
5114  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5115  *
5116  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5117  *	dBm, signifying the RSSI threshold of the candidate AP found in the 5
5118  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
5119  *	found in the 5 GHz band only if its RSSI value is better than this
5120  *	threshold. Optional attribute. If this attribute is not included, the
5121  *	threshold value specified by tge
5122  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5123  *
5124  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5125  *	dBm, signifying the RSSI threshold of the candidate AP found in the 6
5126  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
5127  *	found in the 6 GHz band only if its RSSI value is better than this
5128  *	threshold. Optional attribute. If this attribute is not included, the
5129  *	threshold value specified by the
5130  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5131  *
5132  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5133  *	Carries bitmask value of bits from &enum qca_set_band and represents
5134  *	all the bands in which roaming is allowed. The configuration is valid
5135  *	until next disconnection. If this attribute is not present, the
5136  *	existing configuration shall be used. By default, roaming is allowed on
5137  *	all bands supported by the local device. When the value is set to
5138  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
5139  *
5140  * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5141  *	Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5142  *	bands. If this attribute is not configured, the driver shall proceed
5143  *	with default behavior.
5144  *
5145  * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5146  *	Optional parameter. Scan dwell time for passive channels in the 5 GHz
5147  *	band. If this attribute is not configured, the driver shall proceed with
5148  *	default behavior.
5149  *
5150  * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5151  *	Optional parameter. The minimum duration to stay on the connected AP
5152  *	channel during the channel scanning. If this attribute is not
5153  *	configured, the driver shall proceed with default behavior.
5154  *
5155  * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5156  *	Optional parameter. The maximum duration for which the radio can scan
5157  *	foreign channels consecutively without coming back to home channel. If
5158  *	this attribute is not configured, the driver shall proceed with default
5159  *	behavior.
5160  *
5161  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5162  *	Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5163  *	If this attribute is not configured, the driver shall proceed with
5164  *	default behavior.
5165  *
5166  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5167  *	Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5168  *	Channels. If this attribute is not configured, the driver shall proceed
5169  *	with default behavior.
5170  *
5171  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5172  *	Optional parameter. RX link speed threshold to disable roaming.
5173  *	If the current RX link speed is above the threshold, roaming is not
5174  *	needed. If this attribute is not configured, or if it is set to 0, the
5175  *	driver will not consider the RX link speed in the roaming decision.
5176  *
5177  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5178  *	Optional parameter. This configuration delays hand-off by the
5179  *	specified duration to receive pending RX frames from the current BSS.
5180  *
5181  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5182  *	value.
5183  *	During the roam scan, if there are no desired APs found in the partial
5184  *	frequency list, an immediate full scan on all the supported frequencies
5185  *	is initiated as a fallback. This flag controls the frequency list
5186  *	creation for the full scan on the following lines.
5187  *	1 - Full scan to exclude the frequencies that were already scanned by
5188  *	    the previous partial scan.
5189  *	0 - Full scan to include all the supported frequencies irrespective of
5190  *	    the ones part of the earlier partial scan.
5191  *	If this flag is not specified, a full scan shall include all the
5192  *	supported frequencies irrespective of the ones part of an earlier
5193  *	partial scan.
5194  *
5195  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5196  *	value.
5197  *	During the roam scan, if there are no desired APs found in the partial
5198  *	frequency list, an immediate full scan on all the supported frequencies
5199  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5200  *	frequencies, including all PSC frequencies by default. This attribute
5201  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
5202  *	as following.
5203  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5204  *	   prior discovery of any 6 GHz frequency support in the environment.
5205  *	   This discovery can happen through a prior RNR, 11k neighbor
5206  *	request, 11v BTM request, host scan, etc.
5207  *	0 - Default behavior. Full scan to include all the supported 6 GHz
5208  *	   PSC frequencies regardless of whether 6 GHz BSSs have been
5209  *	   discovered.
5210  *	The default behavior if this flag is not specified is to include all
5211  *	the supported 6 GHz PSC frequencies in the roam full scan.
5212  */
5213 enum qca_vendor_attr_roam_control {
5214 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5215 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5216 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
5217 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
5218 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5219 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5220 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5221 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
5222 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5223 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5224 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5225 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5226 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
5227 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5228 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5229 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5230 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5231 	QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5232 	QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5233 	QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5234 	QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5235 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5236 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
5237 	QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
5238 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5239 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5240 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
5241 
5242 	/* keep last */
5243 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5244 	QCA_ATTR_ROAM_CONTROL_MAX =
5245 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5246 };
5247 
5248 /*
5249  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5250  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5251  *
5252  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5253  *	Represents the different roam sub commands referred by
5254  *	enum qca_wlan_vendor_roaming_subcmd.
5255  *
5256  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5257  *	Represents the Request ID for the specific set of commands.
5258  *	This also helps to map specific set of commands to the respective
5259  *	ID / client. e.g., helps to identify the user entity configuring the
5260  *	ignored BSSIDs and accordingly clear the respective ones with the
5261  *	matching ID.
5262  *
5263  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5264  *	32-bit value. Represents the number of allowlist SSIDs configured.
5265  *
5266  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5267  *	to carry the list of allowlist SSIDs.
5268  *
5269  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5270  *	0..32 octets). Represents the allow list SSID. Allowlist SSIDs
5271  *	represent the list of SSIDs to which the firmware/driver can consider
5272  *	to roam to.
5273  *
5274  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5275  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5276  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5277  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5278  *
5279  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5280  *	value, RSSI threshold above which 5GHz RSSI is favored.
5281  *
5282  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5283  *	value, RSSI threshold below which 5GHz RSSI is penalized.
5284  *
5285  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5286  *	value, factor by which 5GHz RSSI is boosted.
5287  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5288  *
5289  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5290  *	value, factor by which 5GHz RSSI is penalized.
5291  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5292  *
5293  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5294  *	value, maximum boost that can be applied to a 5GHz RSSI.
5295  *
5296  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5297  *	value, boost applied to current BSSID to ensure the currently
5298  *	associated BSSID is favored so as to prevent ping-pong situations.
5299  *
5300  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5301  *	value, RSSI below which "Alert" roam is enabled.
5302  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5303  *	because the RSSI is low, or because many successive beacons have been
5304  *	lost or other bad link conditions.
5305  *
5306  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5307  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
5308  *	firmware is hunting for a better BSSID or allow listed SSID even though
5309  *	the RSSI of the link is good. The parameters enabling the roaming are
5310  *	configured through the PARAM_A_BAND_XX attrbutes.
5311  *
5312  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5313  *	represents the BSSIDs preferred over others while evaluating them
5314  *	for the roaming.
5315  *
5316  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5317  *	32-bit value. Represents the number of preferred BSSIDs set.
5318  *
5319  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5320  *	address representing the BSSID to be preferred.
5321  *
5322  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5323  *	32-bit value, representing the modifier to be applied to the RSSI of
5324  *	the BSSID for the purpose of comparing it with other roam candidate.
5325  *
5326  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
5327  *	represents the BSSIDs to get ignored for roaming.
5328  *
5329  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
5330  *	32-bit value, represents the number of ignored BSSIDs.
5331  *
5332  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
5333  *	address representing the ignored BSSID.
5334  *
5335  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
5336  *	indicates this request to ignore the BSSID as a hint to the driver. The
5337  *	driver can select this BSSID in the worst case (when no other BSSIDs are
5338  *	better).
5339  *
5340  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5341  *	set/get/clear the roam control config as
5342  *	defined @enum qca_vendor_attr_roam_control.
5343  */
5344 enum qca_wlan_vendor_attr_roaming_config_params {
5345 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5346 
5347 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5348 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5349 
5350 	/* Attributes for wifi_set_ssid_allow_list */
5351 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5352 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5353 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
5354 
5355 	/* Attributes for set_roam_params */
5356 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5357 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5358 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5359 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5360 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5361 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5362 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5363 
5364 	/* Attribute for set_lazy_roam */
5365 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5366 
5367 	/* Attribute for set_lazy_roam with preferences */
5368 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5369 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5370 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5371 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5372 
5373 	/* Attribute for setting ignored BSSID parameters */
5374 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5375 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5376 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
5377 	/* Flag attribute indicates this entry as a hint */
5378 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
5379 
5380 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5381 
5382 	/* keep last */
5383 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5384 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5385 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5386 };
5387 
5388 /* old names for API compatibility */
5389 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5390 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5391 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5392 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5393 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5394 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5395 
5396 /*
5397  * enum qca_wlan_vendor_roaming_subcmd: Referred by
5398  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5399  *
5400  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5401  *	configure the allow list SSIDs. These are configured through
5402  *	the following attributes.
5403  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5404  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5405  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5406  *
5407  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5408  *	configure the Roam params. These parameters are evaluated on the GScan
5409  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
5410  *	params.
5411  *
5412  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5413  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5414  *	to enable/disable Lazy roam.
5415  *
5416  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5417  *	preference. Contains the attribute
5418  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5419  *	preference.
5420  *
5421  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
5422  *	to ignore in roaming decision. Uses
5423  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
5424  *
5425  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5426  *	roam control config to the driver with the attribute
5427  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5428  *
5429  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5430  *	roam control config from driver with the attribute
5431  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5432  *	For the get, the attribute for the configuration to be queried shall
5433  *	carry any of its acceptable value to the driver. In return, the driver
5434  *	shall send the configured values within the same attribute to the user
5435  *	space.
5436  *
5437  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5438  *	roam control config in the driver with the attribute
5439  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5440  *	The driver shall continue with its default roaming behavior when data
5441  *	corresponding to an attribute is cleared.
5442  */
5443 enum qca_wlan_vendor_roaming_subcmd {
5444 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
5445 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
5446 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5447 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5448 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5449 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
5450 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
5451 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5452 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5453 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
5454 };
5455 
5456 /* old names for API compatibility */
5457 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5458 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5459 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5460 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5461 
5462 enum qca_wlan_vendor_attr_gscan_config_params {
5463 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5464 
5465 	/* Unsigned 32-bit value */
5466 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5467 
5468 	/* Attributes for data used by
5469 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5470 	 */
5471 	/* Unsigned 32-bit value */
5472 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5473 	= 2,
5474 	/* Unsigned 32-bit value */
5475 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5476 	= 3,
5477 
5478 	/* Attributes for input params used by
5479 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5480 	 */
5481 
5482 	/* Unsigned 32-bit value; channel frequency */
5483 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5484 	/* Unsigned 32-bit value; dwell time in ms. */
5485 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5486 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5487 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5488 	/* Unsigned 8-bit value; channel class */
5489 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5490 
5491 	/* Unsigned 8-bit value; bucket index, 0 based */
5492 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5493 	/* Unsigned 8-bit value; band. */
5494 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5495 	/* Unsigned 32-bit value; desired period, in ms. */
5496 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5497 	/* Unsigned 8-bit value; report events semantics. */
5498 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5499 	/* Unsigned 32-bit value. Followed by a nested array of
5500 	 * GSCAN_CHANNEL_SPEC_* attributes.
5501 	 */
5502 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5503 
5504 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5505 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5506 	 */
5507 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5508 
5509 	/* Unsigned 32-bit value; base timer period in ms. */
5510 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5511 	/* Unsigned 32-bit value; number of APs to store in each scan in the
5512 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5513 	 */
5514 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5515 	/* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5516 	 * up AP.
5517 	 */
5518 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5519 	= 16,
5520 
5521 	/* Unsigned 8-bit value; number of scan bucket specs; followed by a
5522 	 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5523 	 * of the array is determined by NUM_BUCKETS.
5524 	 */
5525 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5526 
5527 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5528 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5529 	 */
5530 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5531 
5532 	/* Unsigned 8-bit value */
5533 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5534 	= 19,
5535 	/* Unsigned 32-bit value; maximum number of results to be returned. */
5536 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5537 	= 20,
5538 
5539 	/* An array of 6 x unsigned 8-bit value */
5540 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5541 	/* Signed 32-bit value */
5542 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5543 	/* Signed 32-bit value */
5544 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5545 	/* Unsigned 32-bit value */
5546 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5547 
5548 	/* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5549 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5550 	 * array is determined by NUM_AP.
5551 	 */
5552 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5553 
5554 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5555 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5556 	 */
5557 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5558 
5559 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
5560 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5561 	= 27,
5562 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
5563 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5564 	= 28,
5565 	/* Unsigned 32-bit value; number of APs breaching threshold. */
5566 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5567 	/* Unsigned 32-bit value; number of APs. Followed by an array of
5568 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5569 	 */
5570 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5571 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
5572 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5573 	= 31,
5574 	/* Unsigned 32-bit value. If max_period is non zero or different than
5575 	 * period, then this bucket is an exponential backoff bucket.
5576 	 */
5577 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5578 	/* Unsigned 32-bit value. */
5579 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5580 	/* Unsigned 32-bit value. For exponential back off bucket, number of
5581 	 * scans to perform for a given period.
5582 	 */
5583 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5584 	/* Unsigned 8-bit value; in number of scans, wake up AP after these
5585 	 * many scans.
5586 	 */
5587 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5588 	= 35,
5589 
5590 	/* Attributes for data used by
5591 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5592 	 */
5593 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5594 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5595 	= 36,
5596 	/* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5597 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5598 	 * size of the array is determined by NUM_SSID.
5599 	 */
5600 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5601 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5602 	 * attributes.
5603 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5604 	 */
5605 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5606 
5607 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5608 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5609 	/* Unsigned 8-bit value */
5610 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5611 	/* Signed 32-bit value */
5612 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5613 	/* Signed 32-bit value */
5614 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5615 	/* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5616 	 */
5617 	QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5618 
5619 	/* keep last */
5620 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5621 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5622 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5623 };
5624 
5625 enum qca_wlan_vendor_attr_gscan_results {
5626 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5627 
5628 	/* Unsigned 32-bit value; must match the request Id supplied by
5629 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
5630 	 */
5631 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5632 
5633 	/* Unsigned 32-bit value; used to indicate the status response from
5634 	 * firmware/driver for the vendor sub-command.
5635 	 */
5636 	QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5637 
5638 	/* GSCAN Valid Channels attributes */
5639 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5640 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5641 	/* An array of NUM_CHANNELS x unsigned 32-bit value integers
5642 	 * representing channel numbers.
5643 	 */
5644 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5645 
5646 	/* GSCAN Capabilities attributes */
5647 	/* Unsigned 32-bit value */
5648 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5649 	/* Unsigned 32-bit value */
5650 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5651 	/* Unsigned 32-bit value */
5652 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5653 	= 7,
5654 	/* Unsigned 32-bit value */
5655 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5656 	= 8,
5657 	/* Signed 32-bit value */
5658 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5659 	= 9,
5660 	/* Unsigned 32-bit value */
5661 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5662 	/* Unsigned 32-bit value */
5663 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5664 	= 11,
5665 	/* Unsigned 32-bit value */
5666 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5667 	= 12,
5668 
5669 	/* GSCAN Attributes used with
5670 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5671 	 */
5672 
5673 	/* Unsigned 32-bit value */
5674 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5675 
5676 	/* GSCAN attributes used with
5677 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5678 	 */
5679 
5680 	/* An array of NUM_RESULTS_AVAILABLE x
5681 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5682 	 */
5683 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5684 
5685 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
5686 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5687 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
5688 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5689 	/* An array of 6 x unsigned 8-bit value */
5690 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5691 	/* Unsigned 32-bit value; channel frequency in MHz */
5692 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5693 	/* Signed 32-bit value */
5694 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5695 	/* Unsigned 32-bit value */
5696 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5697 	/* Unsigned 32-bit value */
5698 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5699 	/* Unsigned 16-bit value */
5700 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5701 	/* Unsigned 16-bit value */
5702 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5703 	/* Unsigned 32-bit value; size of the IE DATA blob */
5704 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5705 	/* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5706 	 * information elements found in the beacon; this data should be a
5707 	 * packed list of wifi_information_element objects, one after the
5708 	 * other.
5709 	 */
5710 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5711 
5712 	/* Unsigned 8-bit value; set by driver to indicate more scan results are
5713 	 * available.
5714 	 */
5715 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5716 
5717 	/* GSCAN attributes for
5718 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5719 	 */
5720 	/* Unsigned 8-bit value */
5721 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5722 	/* Unsigned 32-bit value */
5723 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5724 
5725 	/* GSCAN attributes for
5726 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5727 	 */
5728 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5729 	 * to indicate number of results.
5730 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5731 	 * list of results.
5732 	 */
5733 
5734 	/* GSCAN attributes for
5735 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5736 	 */
5737 	/* An array of 6 x unsigned 8-bit value */
5738 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5739 	/* Unsigned 32-bit value */
5740 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5741 	= 30,
5742 	/* Unsigned 32-bit value. */
5743 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5744 	= 31,
5745 	/* A nested array of signed 32-bit RSSI values. Size of the array is
5746 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5747 	 */
5748 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5749 	= 32,
5750 
5751 	/* GSCAN attributes used with
5752 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5753 	 */
5754 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5755 	 * to indicate number of gscan cached results returned.
5756 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5757 	 *  the list of gscan cached results.
5758 	 */
5759 
5760 	/* An array of NUM_RESULTS_AVAILABLE x
5761 	 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5762 	 */
5763 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5764 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
5765 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5766 	/* Unsigned 32-bit value; a bitmask w/additional information about scan.
5767 	 */
5768 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5769 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5770 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
5771 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5772 	 * list of wifi scan results returned for each cached result block.
5773 	 */
5774 
5775 	/* GSCAN attributes for
5776 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5777 	 */
5778 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5779 	 * number of results.
5780 	 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5781 	 * list of wifi scan results returned for each
5782 	 * wifi_passpoint_match_result block.
5783 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5784 	 */
5785 
5786 	/* GSCAN attributes for
5787 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5788 	 */
5789 	/* Unsigned 32-bit value */
5790 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5791 	= 36,
5792 	/* A nested array of
5793 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5794 	 * attributes. Array size =
5795 	 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5796 	 */
5797 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5798 
5799 	/* Unsigned 32-bit value; network block id for the matched network */
5800 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5801 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5802 	 * list of wifi scan results returned for each
5803 	 * wifi_passpoint_match_result block.
5804 	 */
5805 	/* Unsigned 32-bit value */
5806 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5807 	/* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5808 	 * ANQP data in the information_element format.
5809 	 */
5810 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5811 
5812 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5813 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5814 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5815 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5816 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5817 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5818 	= 43,
5819 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5820 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5821 	= 44,
5822 
5823 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5824 
5825 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5826 	 * This is used to limit the maximum number of BSSIDs while sending
5827 	 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
5828 	 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
5829 	 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5830 	 */
5831 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
5832 
5833 	/* keep last */
5834 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5835 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5836 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5837 };
5838 
5839 /* old names for API compatibility */
5840 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
5841 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
5842 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
5843 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
5844 
5845 enum qca_wlan_vendor_attr_pno_config_params {
5846 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5847 	/* Attributes for data used by
5848 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5849 	 */
5850 	/* Unsigned 32-bit value */
5851 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5852 	/* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5853 	 * attributes. Array size =
5854 	 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5855 	 */
5856 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5857 
5858 	/* Unsigned 32-bit value */
5859 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5860 	/* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5861 	 * realm, 0 if unspecified.
5862 	 */
5863 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5864 	/* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5865 	 * match, 0 if unspecified.
5866 	 */
5867 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5868 	/* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5869 	 * unspecified.
5870 	 */
5871 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5872 
5873 	/* Attributes for data used by
5874 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5875 	 */
5876 	/* Unsigned 32-bit value */
5877 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5878 	/* Array of nested
5879 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5880 	 * attributes. Array size =
5881 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5882 	 */
5883 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5884 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5885 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5886 	/* Signed 8-bit value; threshold for considering this SSID as found,
5887 	 * required granularity for this threshold is 4 dBm to 8 dBm.
5888 	 */
5889 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5890 	= 10,
5891 	/* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5892 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5893 	/* Unsigned 8-bit value; auth bit field for matching WPA IE */
5894 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5895 	/* Unsigned 8-bit to indicate ePNO type;
5896 	 * It takes values from qca_wlan_epno_type
5897 	 */
5898 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5899 
5900 	/* Nested attribute to send the channel list */
5901 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5902 
5903 	/* Unsigned 32-bit value; indicates the interval between PNO scan
5904 	 * cycles in msec.
5905 	 */
5906 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5907 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5908 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5909 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5910 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5911 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5912 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5913 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
5914 	/* Unsigned 32-bit value, representing the PNO Request ID */
5915 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
5916 
5917 	/* keep last */
5918 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5919 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5920 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5921 };
5922 
5923 /**
5924  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5925  * the ACS has to be triggered. These values are used by
5926  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5927  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5928  */
5929 enum qca_wlan_vendor_acs_select_reason {
5930 	/* Represents the reason that the ACS triggered during the AP start */
5931 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5932 	/* Represents the reason that DFS found with the current channel */
5933 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5934 	/* Represents the reason that LTE co-exist in the current band. */
5935 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
5936 	/* Represents the reason that generic, uncategorized interference has
5937 	 * been found in the current channel.
5938 	 */
5939 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5940 	/* Represents the reason that excessive 802.11 interference has been
5941 	 * found in the current channel.
5942 	 */
5943 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5944 	/* Represents the reason that generic Continuous Wave (CW) interference
5945 	 * has been found in the current channel.
5946 	 */
5947 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5948 	/* Represents the reason that Microwave Oven (MWO) interference has been
5949 	 * found in the current channel.
5950 	 */
5951 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5952 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
5953 	 * (FHSS) interference has been found in the current channel. This may
5954 	 * include 802.11 waveforms.
5955 	 */
5956 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5957 	/* Represents the reason that non-802.11 generic Frequency-Hopping
5958 	 * Spread Spectrum (FHSS) interference has been found in the current
5959 	 * channel.
5960 	 */
5961 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5962 	/* Represents the reason that generic Wideband (WB) interference has
5963 	 * been found in the current channel. This may include 802.11 waveforms.
5964 	 */
5965 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5966 	/* Represents the reason that non-802.11 generic Wideband (WB)
5967 	 * interference has been found in the current channel.
5968 	 */
5969 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5970 	/* Represents the reason that Jammer interference has been found in the
5971 	 * current channel.
5972 	 */
5973 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
5974 	/* Represents the reason that ACS triggered by AFC */
5975 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
5976 };
5977 
5978 /**
5979  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5980  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5981  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5982  * external ACS policies to select the channels w.r.t. the PCL weights.
5983  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5984  * their PCL weights.)
5985  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5986  * select a channel with non-zero PCL weight.
5987  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5988  * channel with non-zero PCL weight.
5989  *
5990  */
5991 enum qca_wlan_vendor_attr_external_acs_policy {
5992 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5993 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5994 };
5995 
5996 /**
5997  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5998  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5999  */
6000 enum qca_wlan_vendor_channel_prop_flags {
6001 	/* Bits 0, 1, 2, and 3 are reserved */
6002 
6003 	/* Turbo channel */
6004 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
6005 	/* CCK channel */
6006 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
6007 	/* OFDM channel */
6008 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
6009 	/* 2.4 GHz spectrum channel. */
6010 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
6011 	/* 5 GHz spectrum channel */
6012 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
6013 	/* Only passive scan allowed */
6014 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
6015 	/* Dynamic CCK-OFDM channel */
6016 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
6017 	/* GFSK channel (FHSS PHY) */
6018 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
6019 	/* Radar found on channel */
6020 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
6021 	/* 11a static turbo channel only */
6022 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
6023 	/* Half rate channel */
6024 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
6025 	/* Quarter rate channel */
6026 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
6027 	/* HT 20 channel */
6028 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
6029 	/* HT 40 with extension channel above */
6030 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
6031 	/* HT 40 with extension channel below */
6032 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
6033 	/* HT 40 intolerant */
6034 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
6035 	/* VHT 20 channel */
6036 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
6037 	/* VHT 40 with extension channel above */
6038 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
6039 	/* VHT 40 with extension channel below */
6040 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
6041 	/* VHT 80 channel */
6042 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
6043 	/* HT 40 intolerant mark bit for ACS use */
6044 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6045 	/* Channel temporarily blocked due to noise */
6046 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
6047 	/* VHT 160 channel */
6048 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
6049 	/* VHT 80+80 channel */
6050 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
6051 	/* HE 20 channel */
6052 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
6053 	/* HE 40 with extension channel above */
6054 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
6055 	/* HE 40 with extension channel below */
6056 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
6057 	/* HE 40 intolerant */
6058 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
6059 };
6060 
6061 /**
6062  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6063  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6064  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6065  */
6066 enum qca_wlan_vendor_channel_prop_flags_2 {
6067 	/* HE 40 intolerant mark bit for ACS use */
6068 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6069 	/* HE 80 channel */
6070 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
6071 	/* HE 160 channel */
6072 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
6073 	/* HE 80+80 channel */
6074 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
6075 };
6076 
6077 /**
6078  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6079  * each channel. This is used by
6080  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6081  */
6082 enum qca_wlan_vendor_channel_prop_flags_ext {
6083 	/* Radar found on channel */
6084 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
6085 	/* DFS required on channel */
6086 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
6087 	/* DFS required on channel for 2nd band of 80+80 */
6088 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
6089 	/* If channel has been checked for DFS */
6090 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
6091 	/* Excluded in 802.11d */
6092 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
6093 	/* Channel Switch Announcement received on this channel */
6094 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
6095 	/* Ad-hoc is not allowed */
6096 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
6097 	/* Station only channel */
6098 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
6099 	/* DFS radar history for client device (STA mode) */
6100 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
6101 	/* DFS CAC valid for client device (STA mode) */
6102 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
6103 };
6104 
6105 /**
6106  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6107  * information. These attributes are sent as part of
6108  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6109  * attributes correspond to a single channel.
6110  */
6111 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6112 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6113 
6114 	/* A bitmask (u32) with flags specified in
6115 	 * enum qca_wlan_vendor_channel_prop_flags.
6116 	 */
6117 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6118 	/* A bitmask (u32) with flags specified in
6119 	 * enum qca_wlan_vendor_channel_prop_flags_ext.
6120 	 */
6121 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6122 	/* frequency in MHz (u32) */
6123 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6124 	/* maximum regulatory transmission power (u32) */
6125 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6126 	/* maximum transmission power (u32) */
6127 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6128 	/* minimum transmission power (u32) */
6129 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6130 	/* regulatory class id (u8) */
6131 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6132 	/* maximum antenna gain in (u8) */
6133 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6134 	/* VHT segment 0 (u8) */
6135 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6136 	/* VHT segment 1 (u8) */
6137 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
6138 	/* A bitmask (u32) with flags specified in
6139 	 * enum qca_wlan_vendor_channel_prop_flags_2.
6140 	 */
6141 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
6142 
6143 	/*
6144 	 * Segment 0 in MHz (u32).
6145 	 *
6146 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
6147 	 * frequency index for the 20/40/80 MHz operating channel.
6148 	 * For 160 MHz bandwidth, this indicates the channel center
6149 	 * frequency of the primary 80 MHz channel.
6150 	 * For 320 MHz bandwidth, indicates the channel center frequency
6151 	 * of the primary 160 MHz channel.
6152 	 *
6153 	 * To maintain backward compatibility,
6154 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6155 	 * is also maintained.
6156 	 */
6157 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6158 	/* Legacy alias for the Segment 0 attribute.
6159 	 *
6160 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6161 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6162 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6163 	 * along with
6164 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6165 	 *
6166 	 * If both the driver and user-space application supports the 6 GHz
6167 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6168 	 * is deprecated and
6169 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6170 	 * should be used.
6171 	 *
6172 	 * To maintain backward compatibility,
6173 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6174 	 * is still used if either of the driver or user space application
6175 	 * doesn't support the 6 GHz band.
6176 	 */
6177 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6178 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
6179 
6180 	/*
6181 	 * Segment 1 in MHz (u32).
6182 	 *
6183 	 * For 20/40/80 MHz bandwidth, this is set to 0.
6184 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
6185 	 * 160 MHz channel.
6186 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
6187 	 * 320 MHz channel.
6188 	 *
6189 	 * To maintain backward compatibility,
6190 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6191 	 * is also maintained.
6192 	 */
6193 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6194 	/* Legacy alias for the Segment 1 attribute.
6195 	 *
6196 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6197 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6198 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6199 	 * along with
6200 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6201 	 *
6202 	 * If both the driver and user-space application supports the 6 GHz
6203 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6204 	 * is deprecated and
6205 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6206 	 * should be considered.
6207 	 *
6208 	 * To maintain backward compatibility,
6209 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6210 	 * is still used if either of the driver or user space application
6211 	 * doesn't support the 6 GHz band.
6212 	 */
6213 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6214 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
6215 
6216 	/*
6217 	 * 16-bit attribute of bits indicating the AP power modes supported by
6218 	 * the channel (u16).
6219 	 * Note: Currently, only 3 bits are used in the attribute and each bit
6220 	 * corresponds to the power mode mentioned in enum
6221 	 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6222 	 * set if the associated mode is supported.
6223 	 */
6224 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6225 									= 14,
6226 	/* Array of nested attributes for each power mode. It takes attr as
6227 	 * defined in enum
6228 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6229 	 */
6230 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
6231 	/*
6232 	 * This indicates the overlapping 320 MHz center frequency in MHz
6233 	 * (u32), if the given primary channel supports more than one
6234 	 * 320 MHz channel bonding.
6235 	 *
6236 	 * Example:
6237 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6238 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6239 	 * possible segment 2 frequencies for this (320 MHz center
6240 	 * frequencies):
6241 	 *
6242 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6243 	 *    from frequency 5945 MHz - 6265 MHz
6244 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6245 	 *    from frequency 6105 MHz - 6425 MHz
6246 	 *
6247 	 * In this case,
6248 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6249 	 * return 6185 MHz.
6250 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6251 	 * return 6105 MHz.
6252 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6253 	 * will return 6265 MHz.
6254 	 */
6255 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6256 									= 16,
6257 
6258 	/* keep last */
6259 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6260 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6261 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6262 };
6263 
6264 /**
6265  * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6266  * values that the vendor external ACS channel power attribute
6267  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6268  * take.
6269  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6270  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6271  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6272  */
6273 enum qca_wlan_vendor_external_acs_chan_power_level {
6274 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6275 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6276 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6277 };
6278 
6279 /**
6280  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6281  * attributes for power mode type and power values corresponding to that.
6282  * These attributes are sent as part of
6283  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6284  */
6285 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6286 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6287 	/*
6288 	 * Power mode (u8) takes the values defined in enum
6289 	 * qca_wlan_vendor_external_acs_chan_power_mode
6290 	 */
6291 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6292 									= 1,
6293 	/*
6294 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6295 	 * present, it indicates a PSD value.
6296 	 */
6297 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6298 	/*
6299 	 * Power value (u32) PSD/EIRP as indicated by
6300 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6301 	 * for power mode corresponding to the
6302 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6303 	 * Units for PSD - dBm/MHz
6304 	 * Units for EIRP - dBm
6305 	 */
6306 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6307 									= 3,
6308 	/* keep last */
6309 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6310 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6311 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6312 };
6313 
6314 /**
6315  * qca_wlan_vendor_attr_pcl: Represents attributes for
6316  * preferred channel list (PCL). These attributes are sent as part of
6317  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6318  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
6319  */
6320 enum qca_wlan_vendor_attr_pcl {
6321 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6322 
6323 	/* Channel number (u8) */
6324 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6325 	/* Channel weightage (u8) */
6326 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
6327 	/* Channel frequency (u32) in MHz */
6328 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6329 	/* Channel flags (u32)
6330 	 * bit 0 set: channel to be used for GO role,
6331 	 * bit 1 set: channel to be used on CLI role,
6332 	 * bit 2 set: channel must be considered for operating channel
6333 	 *                 selection & peer chosen operating channel should be
6334 	 *                 one of the channels with this flag set,
6335 	 * bit 3 set: channel should be excluded in GO negotiation
6336 	 */
6337 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
6338 
6339 	/* Keep last */
6340 	QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6341 	QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
6342 };
6343 
6344 /**
6345  * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6346  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6347  * host driver.
6348  */
6349 enum qca_wlan_vendor_attr_external_acs_event {
6350 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6351 
6352 	/* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6353 	 * This helps ACS module to understand why ACS needs to be started.
6354 	 */
6355 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6356 	/* Flag attribute to indicate if driver supports spectral scanning */
6357 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6358 	/* Flag attribute to indicate if 11ac is offloaded to firmware */
6359 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6360 	/* Flag attribute to indicate if driver provides additional channel
6361 	 * capability as part of scan operation
6362 	 */
6363 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6364 	/* Flag attribute to indicate interface status is UP */
6365 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6366 	/* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
6367 	 * values.
6368 	 */
6369 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6370 	/* Channel width (u8). It takes one of enum nl80211_chan_width values.
6371 	 * This is the upper bound of channel width. ACS logic should try to get
6372 	 * a channel with the specified width and if not found, look for lower
6373 	 * values.
6374 	 */
6375 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6376 	/* This (u8) will hold values of one of enum nl80211_bands */
6377 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6378 	/* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
6379 	 * values
6380 	 */
6381 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6382 	/* Array of (u32) supported frequency list among which ACS should choose
6383 	 * best frequency.
6384 	 */
6385 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6386 	/* Preferred channel list by the driver which will have array of nested
6387 	 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6388 	 */
6389 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6390 	/* Array of nested attribute for each channel. It takes attr as defined
6391 	 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6392 	 */
6393 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
6394 	/* External ACS policy such as PCL mandatory, PCL preferred, etc.
6395 	 * It uses values defined in enum
6396 	 * qca_wlan_vendor_attr_external_acs_policy.
6397 	 */
6398 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
6399 	/* Reference RF Operating Parameter (RROP) availability information
6400 	 * (u16). It uses values defined in enum
6401 	 * qca_wlan_vendor_attr_rropavail_info.
6402 	 */
6403 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
6404 	/* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6405 	 * for External ACS
6406 	 */
6407 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
6408 
6409 	/* keep last */
6410 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6411 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6412 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6413 };
6414 
6415 /**
6416  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6417  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6418  * in priority order as decided after ACS operation in userspace.
6419  *
6420  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6421  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6422  *
6423  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6424  * Array of nested values for each channel with following attributes:
6425  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6426  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6427  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6428  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6429  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6430  * Note: If both the driver and user-space application supports the 6 GHz band,
6431  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6432  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6433  * To maintain backward compatibility,
6434  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6435  * is still used if either of the driver or user space application doesn't
6436  * support the 6 GHz band.
6437  *
6438  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6439  * Primary channel number
6440  * Note: If both the driver and user-space application supports the 6 GHz band,
6441  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6442  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6443  * To maintain backward compatibility,
6444  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6445  * is still used if either of the driver or user space application doesn't
6446  * support the 6 GHz band.
6447  *
6448  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6449  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6450  * Note: If both the driver and user-space application supports the 6 GHz band,
6451  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6452  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6453  * To maintain backward compatibility,
6454  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6455  * is still used if either of the driver or user space application
6456  * doesn't support the 6 GHz band.
6457  *
6458  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6459  * VHT seg0 channel number
6460  * Note: If both the driver and user-space application supports the 6 GHz band,
6461  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6462  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6463  * To maintain backward compatibility,
6464  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6465  * is still used if either of the driver or user space application
6466  * doesn't support the 6 GHz band.
6467  *
6468  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6469  * VHT seg1 channel number
6470  * Note: If both the driver and user-space application supports the 6 GHz band,
6471  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6472  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6473  * To maintain backward compatibility,
6474  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6475  * is still used if either of the driver or user space application
6476  * doesn't support the 6 GHz band.
6477  *
6478  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6479  * Takes one of enum nl80211_chan_width values.
6480  *
6481  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6482  * Array of nested values for each channel with following attributes:
6483  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6484  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6485  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6486  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6487  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6488  * Note: If user-space application has no support of the 6 GHz band, this
6489  * attribute is optional.
6490  *
6491  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6492  * Primary channel frequency in MHz
6493  * Note: If user-space application has no support of the 6 GHz band, this
6494  * attribute is optional.
6495  *
6496  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6497  * Secondary channel frequency in MHz used for HT 40 MHz channels.
6498  * Note: If user-space application has no support of the 6 GHz band, this
6499  * attribute is optional.
6500  *
6501  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6502  * VHT seg0 channel frequency in MHz
6503  * Note: If user-space application has no support of the 6GHz band, this
6504  * attribute is optional.
6505  *
6506  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6507  * VHT seg1 channel frequency in MHz
6508  * Note: If user-space application has no support of the 6 GHz band, this
6509  * attribute is optional.
6510  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
6511  * Puncture Bitmap for selected primary channel. Optional if no support
6512  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
6513  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
6514  * element.
6515  */
6516 enum qca_wlan_vendor_attr_external_acs_channels {
6517 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6518 
6519 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6520 	 */
6521 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6522 
6523 	/* Array of nested values for each channel with following attributes:
6524 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6525 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6526 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6527 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6528 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6529 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6530 	 */
6531 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6532 	/* This (u8) will hold values of one of enum nl80211_bands */
6533 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6534 	/* Primary channel (u8) */
6535 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6536 	/* Secondary channel (u8) used for HT 40 MHz channels */
6537 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6538 	/* VHT seg0 channel (u8) */
6539 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6540 	/* VHT seg1 channel (u8) */
6541 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6542 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6543 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6544 
6545 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6546 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6547 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6548 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6549 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6550 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
6551 
6552 	/* keep last */
6553 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6554 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6555 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6556 };
6557 
6558 enum qca_chip_power_save_failure_reason {
6559 	/* Indicates if the reason for the failure is due to a protocol
6560 	 * layer/module.
6561 	 */
6562 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
6563 	/* Indicates if the reason for the failure is due to a hardware issue.
6564 	 */
6565 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
6566 };
6567 
6568 /**
6569  * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6570  * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6571  * information leading to the power save failure.
6572  */
6573 enum qca_attr_chip_power_save_failure {
6574 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6575 	/* Reason to cause the power save failure.
6576 	 * These reasons are represented by
6577 	 * enum qca_chip_power_save_failure_reason.
6578 	 */
6579 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
6580 
6581 	/* keep last */
6582 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6583 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6584 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6585 };
6586 
6587 /**
6588  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6589  * data types for which the stats have to get collected.
6590  */
6591 enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6592 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6593 	QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6594 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6595 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6596 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6597 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6598 	 * to represent the stats of respective data type.
6599 	 */
6600 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6601 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6602 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6603 };
6604 
6605 enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6606 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6607 	/* Represents the data packet type to be monitored (u32).
6608 	 * Host driver tracks the stats corresponding to each data frame
6609 	 * represented by these flags.
6610 	 * These data packets are represented by
6611 	 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6612 	 */
6613 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6614 	/* Name corresponding to the DNS frame for which the respective DNS
6615 	 * stats have to get monitored (string). Max string length 255.
6616 	 */
6617 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6618 	/* source port on which the respective proto stats have to get
6619 	 * collected (u32).
6620 	 */
6621 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6622 	/* destination port on which the respective proto stats have to get
6623 	 * collected (u32).
6624 	 */
6625 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6626 	/* IPv4 address for which the destined data packets have to be
6627 	 * monitored. (in network byte order), u32.
6628 	 */
6629 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6630 	/* IPv6 address for which the destined data packets have to be
6631 	 * monitored. (in network byte order), 16 bytes array.
6632 	 */
6633 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6634 
6635 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6636 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6637 		QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
6638 };
6639 
6640 /**
6641  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6642  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6643  * information to start/stop the NUD statistics collection.
6644  */
6645 enum qca_attr_nud_stats_set {
6646 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6647 
6648 	/* Flag to start/stop the NUD statistics collection.
6649 	 * Start - If included, Stop - If not included
6650 	 */
6651 	QCA_ATTR_NUD_STATS_SET_START = 1,
6652 	/* IPv4 address of the default gateway (in network byte order), u32 */
6653 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
6654 	/* Represents the list of data packet types to be monitored.
6655 	 * Host driver tracks the stats corresponding to each data frame
6656 	 * represented by these flags.
6657 	 * These data packets are represented by
6658 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
6659 	 */
6660 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
6661 
6662 	/* keep last */
6663 	QCA_ATTR_NUD_STATS_SET_LAST,
6664 	QCA_ATTR_NUD_STATS_SET_MAX =
6665 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
6666 };
6667 
6668 enum qca_attr_nud_data_stats {
6669 	QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
6670 	/* Data packet type for which the stats are collected (u32).
6671 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
6672 	 */
6673 	QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
6674 	/* Name corresponding to the DNS frame for which the respective DNS
6675 	 * stats are monitored (string). Max string length 255.
6676 	 */
6677 	QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
6678 	/* source port on which the respective proto stats are collected (u32).
6679 	 */
6680 	QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
6681 	/* destination port on which the respective proto stats are collected
6682 	 * (u32).
6683 	 */
6684 	QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
6685 	/* IPv4 address for which the destined data packets have to be
6686 	 * monitored. (in network byte order), u32.
6687 	 */
6688 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
6689 	/* IPv6 address for which the destined data packets have to be
6690 	 * monitored. (in network byte order), 16 bytes array.
6691 	 */
6692 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
6693 	/* Data packet Request count received from netdev (u32). */
6694 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
6695 	/* Data packet Request count sent to lower MAC from upper MAC (u32). */
6696 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
6697 	/* Data packet Request count received by lower MAC from upper MAC
6698 	 * (u32)
6699 	 */
6700 	QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
6701 	/* Data packet Request count successfully transmitted by the device
6702 	 * (u32)
6703 	 */
6704 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
6705 	/* Data packet Response count received by lower MAC (u32) */
6706 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
6707 	/* Data packet Response count received by upper MAC (u32) */
6708 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
6709 	/* Data packet Response count delivered to netdev (u32) */
6710 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
6711 	/* Data Packet Response count that are dropped out of order (u32) */
6712 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
6713 
6714 	/* keep last */
6715 	QCA_ATTR_NUD_DATA_STATS_LAST,
6716 	QCA_ATTR_NUD_DATA_STATS_MAX =
6717 		QCA_ATTR_NUD_DATA_STATS_LAST - 1,
6718 };
6719 
6720 /**
6721  * qca_attr_nud_stats_get: Attributes to vendor subcmd
6722  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6723  * NUD statistics collected when queried.
6724  */
6725 enum qca_attr_nud_stats_get {
6726 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
6727 	/* ARP Request count from netdev (u32) */
6728 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
6729 	/* ARP Request count sent to lower MAC from upper MAC (u32) */
6730 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
6731 	/* ARP Request count received by lower MAC from upper MAC (u32) */
6732 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
6733 	/* ARP Request count successfully transmitted by the device (u32) */
6734 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
6735 	/* ARP Response count received by lower MAC (u32) */
6736 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
6737 	/* ARP Response count received by upper MAC (u32) */
6738 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
6739 	/* ARP Response count delivered to netdev (u32) */
6740 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
6741 	/* ARP Response count dropped due to out of order reception (u32) */
6742 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6743 	/* Flag indicating if the station's link to the AP is active.
6744 	 * Active Link - If included, Inactive link - If not included
6745 	 */
6746 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
6747 	/* Flag indicating if there is any duplicate address detected (DAD).
6748 	 * Yes - If detected, No - If not detected.
6749 	 */
6750 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
6751 	/* List of Data packet types for which the stats are requested.
6752 	 * This list does not carry ARP stats as they are done by the
6753 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
6754 	 */
6755 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
6756 
6757 	/* keep last */
6758 	QCA_ATTR_NUD_STATS_GET_LAST,
6759 	QCA_ATTR_NUD_STATS_GET_MAX =
6760 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
6761 };
6762 
6763 enum qca_wlan_btm_candidate_status {
6764 	QCA_STATUS_ACCEPT = 0,
6765 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6766 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6767 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6768 	QCA_STATUS_REJECT_LOW_RSSI = 4,
6769 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6770 	QCA_STATUS_REJECT_UNKNOWN = 6,
6771 };
6772 
6773 enum qca_wlan_vendor_attr_btm_candidate_info {
6774 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6775 
6776 	/* 6-byte MAC address representing the BSSID of transition candidate */
6777 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6778 	/* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6779 	 * returned by the driver. It says whether the BSSID provided in
6780 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6781 	 * the driver, if not it specifies the reason for rejection.
6782 	 * Note that the user-space can overwrite the transition reject reason
6783 	 * codes provided by driver based on more information.
6784 	 */
6785 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6786 
6787 	/* keep last */
6788 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6789 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6790 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6791 };
6792 
6793 enum qca_attr_trace_level {
6794 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6795 	/*
6796 	 * Nested array of the following attributes:
6797 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
6798 	 * QCA_ATTR_TRACE_LEVEL_MASK.
6799 	 */
6800 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6801 	/*
6802 	 * Specific QCA host driver module. Please refer to the QCA host
6803 	 * driver implementation to get the specific module ID.
6804 	 */
6805 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6806 	/* Different trace level masks represented in the QCA host driver. */
6807 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
6808 
6809 	/* keep last */
6810 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6811 	QCA_ATTR_TRACE_LEVEL_MAX =
6812 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6813 };
6814 
6815 /**
6816  * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6817  */
6818 enum qca_wlan_vendor_attr_get_he_capabilities {
6819 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6820 	/* Whether HE capabilities is supported
6821 	 * (u8 attribute: 0 = not supported, 1 = supported)
6822 	 */
6823 	QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6824 	/* HE PHY capabilities, array of 3 u32 values  */
6825 	QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6826 	/* HE MAC capabilities (u32 attribute) */
6827 	QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6828 	/* HE MCS map (u32 attribute) */
6829 	QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6830 	/* Number of SS (u32 attribute) */
6831 	QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6832 	/* RU count (u32 attribute) */
6833 	QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6834 	/* PPE threshold data, array of 8 u32 values */
6835 	QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6836 
6837 	/* keep last */
6838 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6839 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6840 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6841 };
6842 
6843 /**
6844  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6845  */
6846 enum qca_wlan_vendor_attr_spectral_scan {
6847 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6848 	/* Number of times the chip enters spectral scan mode before
6849 	 * deactivating spectral scans. When set to 0, chip will enter spectral
6850 	 * scan mode continuously. u32 attribute.
6851 	 */
6852 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6853 	/* Spectral scan period. Period increment resolution is 256*Tclk,
6854 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6855 	 */
6856 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6857 	/* Spectral scan priority. u32 attribute. */
6858 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6859 	/* Number of FFT data points to compute. u32 attribute. */
6860 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6861 	/* Enable targeted gain change before starting the spectral scan FFT.
6862 	 * u32 attribute.
6863 	 */
6864 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6865 	/* Restart a queued spectral scan. u32 attribute. */
6866 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6867 	/* Noise floor reference number for the calculation of bin power.
6868 	 * u32 attribute.
6869 	 */
6870 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6871 	/* Disallow spectral scan triggers after TX/RX packets by setting
6872 	 * this delay value to roughly SIFS time period or greater.
6873 	 * u32 attribute.
6874 	 */
6875 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6876 	/* Number of strong bins (inclusive) per sub-channel, below
6877 	 * which a signal is declared a narrow band tone. u32 attribute.
6878 	 */
6879 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6880 	/* Specify the threshold over which a bin is declared strong (for
6881 	 * scan bandwidth analysis). u32 attribute.
6882 	 */
6883 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6884 	/* Spectral scan report mode. u32 attribute. */
6885 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6886 	/* RSSI report mode, if the ADC RSSI is below
6887 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6888 	 * then FFTs will not trigger, but timestamps and summaries get
6889 	 * reported. u32 attribute.
6890 	 */
6891 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6892 	/* ADC RSSI must be greater than or equal to this threshold (signed dB)
6893 	 * to ensure spectral scan reporting with normal error code.
6894 	 * u32 attribute.
6895 	 */
6896 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6897 	/* Format of frequency bin magnitude for spectral scan triggered FFTs:
6898 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6899 	 * u32 attribute.
6900 	 */
6901 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6902 	/* Format of FFT report to software for spectral scan triggered FFTs.
6903 	 * 0: No FFT report (only spectral scan summary report)
6904 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6905 	 * report
6906 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6907 	 * bins (in-band) per FFT + spectral scan summary report
6908 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6909 	 * bins (all) per FFT + spectral scan summary report
6910 	 * u32 attribute.
6911 	 */
6912 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6913 	/* Number of LSBs to shift out in order to scale the FFT bins.
6914 	 * u32 attribute.
6915 	 */
6916 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6917 	/* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6918 	 * in dBm power. u32 attribute.
6919 	 */
6920 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6921 	/* Per chain enable mask to select input ADC for search FFT.
6922 	 * u32 attribute.
6923 	 */
6924 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6925 	/* An unsigned 64-bit integer provided by host driver to identify the
6926 	 * spectral scan request. This attribute is included in the scan
6927 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6928 	 * and used as an attribute in
6929 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6930 	 * specific scan to be stopped.
6931 	 */
6932 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
6933 	/* Skip interval for FFT reports. u32 attribute */
6934 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6935 	/* Set to report only one set of FFT results.
6936 	 * u32 attribute.
6937 	 */
6938 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6939 	/* Debug level for spectral module in driver.
6940 	 * 0 : Verbosity level 0
6941 	 * 1 : Verbosity level 1
6942 	 * 2 : Verbosity level 2
6943 	 * 3 : Matched filterID display
6944 	 * 4 : One time dump of FFT report
6945 	 * u32 attribute.
6946 	 */
6947 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6948 	/* Type of spectral scan request. u32 attribute.
6949 	 * It uses values defined in enum
6950 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
6951 	 */
6952 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
6953 	/* This specifies the frequency span over which spectral
6954 	 * scan would be carried out. Its value depends on the
6955 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6956 	 * the relation is as follows.
6957 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6958 	 *    Not applicable. Spectral scan would happen in the
6959 	 *    operating span.
6960 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6961 	 *    Center frequency (in MHz) of the span of interest or
6962 	 *    for convenience, center frequency (in MHz) of any channel
6963 	 *    in the span of interest. For 80+80 MHz agile spectral scan
6964 	 *    request it represents center frequency (in MHz) of the primary
6965 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
6966 	 *    channel in the primary 80 MHz span. If agile spectral scan is
6967 	 *    initiated without setting a valid frequency it returns the
6968 	 *    error code
6969 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6970 	 * u32 attribute.
6971 	 */
6972 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6973 	/* Spectral scan mode. u32 attribute.
6974 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6975 	 * If this attribute is not present, it is assumed to be
6976 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6977 	 */
6978 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6979 	/* Spectral scan error code. u32 attribute.
6980 	 * It uses values defined in enum
6981 	 * qca_wlan_vendor_spectral_scan_error_code.
6982 	 * This attribute is included only in failure scenarios.
6983 	 */
6984 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6985 	/* 8-bit unsigned value to enable/disable debug of the
6986 	 * Spectral DMA ring.
6987 	 * 1-enable, 0-disable
6988 	 */
6989 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6990 	/* 8-bit unsigned value to enable/disable debug of the
6991 	 * Spectral DMA buffers.
6992 	 * 1-enable, 0-disable
6993 	 */
6994 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
6995 	/* This specifies the frequency span over which spectral scan would be
6996 	 * carried out. Its value depends on the value of
6997 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6998 	 * follows.
6999 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7000 	 *    Not applicable. Spectral scan would happen in the operating span.
7001 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7002 	 *    This attribute is applicable only for agile spectral scan
7003 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7004 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7005 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7006 	 * u32 attribute.
7007 	 */
7008 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7009 	/* This attribute specifies the bandwidth to be used for spectral scan
7010 	 * operation. This is an u8 attribute and uses the values in enum
7011 	 * nl80211_chan_width. This is an optional attribute.
7012 	 * If this attribute is not populated, the driver should configure the
7013 	 * spectral scan bandwidth to the maximum value supported by the target
7014 	 * for the current operating bandwidth.
7015 	 */
7016 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7017 	/* Spectral FFT recapture flag attribute, to enable FFT recapture.
7018 	 * Recapture can only be enabled for scan period greater than 52 us.
7019 	 * If this attribute is enabled, re-triggers will be enabled when AGC
7020 	 * gain changes.
7021 	 */
7022 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
7023 
7024 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7025 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7026 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7027 };
7028 
7029 /**
7030  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7031  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7032  */
7033 enum qca_wlan_vendor_attr_spectral_diag_stats {
7034 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7035 	/* Number of spectral TLV signature mismatches.
7036 	 * u64 attribute.
7037 	 */
7038 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7039 	/* Number of spectral phyerror events with insufficient length when
7040 	 * parsing for secondary 80 search FFT report. u64 attribute.
7041 	 */
7042 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7043 	/* Number of spectral phyerror events without secondary 80
7044 	 * search FFT report. u64 attribute.
7045 	 */
7046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7047 	/* Number of spectral phyerror events with vht operation segment 1 id
7048 	 * mismatches in search fft report. u64 attribute.
7049 	 */
7050 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7051 	/* Number of spectral phyerror events with vht operation segment 2 id
7052 	 * mismatches in search fft report. u64 attribute.
7053 	 */
7054 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
7055 
7056 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7057 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7058 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7059 };
7060 
7061 /**
7062  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7063  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7064  */
7065 enum qca_wlan_vendor_attr_spectral_cap {
7066 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7067 	/* Flag attribute to indicate phydiag capability */
7068 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7069 	/* Flag attribute to indicate radar detection capability */
7070 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7071 	/* Flag attribute to indicate spectral capability */
7072 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7073 	/* Flag attribute to indicate advanced spectral capability */
7074 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7075 	/* Spectral hardware generation. u32 attribute.
7076 	 * It uses values defined in enum
7077 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7078 	 */
7079 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
7080 	/* Spectral bin scaling formula ID. u16 attribute.
7081 	 * It uses values defined in enum
7082 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7083 	 */
7084 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7085 	/* Spectral bin scaling param - low level offset.
7086 	 * s16 attribute.
7087 	 */
7088 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7089 	/* Spectral bin scaling param - high level offset.
7090 	 * s16 attribute.
7091 	 */
7092 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7093 	/* Spectral bin scaling param - RSSI threshold.
7094 	 * s16 attribute.
7095 	 */
7096 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7097 	/* Spectral bin scaling param - default AGC max gain.
7098 	 * u8 attribute.
7099 	 */
7100 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
7101 	/* Flag attribute to indicate agile spectral scan capability
7102 	 * for 20/40/80 MHz modes.
7103 	 */
7104 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
7105 	/* Flag attribute to indicate agile spectral scan capability
7106 	 * for 160 MHz mode.
7107 	 */
7108 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7109 	/* Flag attribute to indicate agile spectral scan capability
7110 	 * for 80+80 MHz mode.
7111 	 */
7112 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
7113 	/* Number of spectral detectors used for scan in 20 MHz.
7114 	 * u32 attribute.
7115 	 */
7116 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7117 	/* Number of spectral detectors used for scan in 40 MHz.
7118 	 * u32 attribute.
7119 	 */
7120 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7121 	/* Number of spectral detectors used for scan in 80 MHz.
7122 	 * u32 attribute.
7123 	 */
7124 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7125 	/* Number of spectral detectors used for scan in 160 MHz.
7126 	 * u32 attribute.
7127 	 */
7128 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7129 	/* Number of spectral detectors used for scan in 80+80 MHz.
7130 	 * u32 attribute.
7131 	 */
7132 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
7133 	/* Flag attribute to indicate agile spectral scan capability
7134 	 * for 320 MHz mode.
7135 	 */
7136 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7137 	/* Number of spectral detectors used for scan in 320 MHz.
7138 	 * u32 attribute.
7139 	 */
7140 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
7141 
7142 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7143 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7144 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7145 };
7146 
7147 /**
7148  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7149  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7150  */
7151 enum qca_wlan_vendor_attr_spectral_scan_status {
7152 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7153 	/* Flag attribute to indicate whether spectral scan is enabled */
7154 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7155 	/* Flag attribute to indicate whether spectral scan is in progress*/
7156 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
7157 	/* Spectral scan mode. u32 attribute.
7158 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7159 	 * If this attribute is not present, normal mode
7160 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7161 	 * requested.
7162 	 */
7163 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
7164 
7165 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7166 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7167 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7168 };
7169 
7170 /**
7171  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7172  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7173  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7174  * spectral scan request types.
7175  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7176  * set the spectral parameters and start scan.
7177  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7178  * only set the spectral parameters.
7179  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7180  * only start the spectral scan.
7181  */
7182 enum qca_wlan_vendor_attr_spectral_scan_request_type {
7183 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7184 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7185 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7186 };
7187 
7188 /**
7189  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7190  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7191  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7192  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7193  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7194  * spectral scan modes.
7195  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7196  * spectral scan in the current operating span.
7197  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7198  * spectral scan in the configured agile span.
7199  */
7200 enum qca_wlan_vendor_spectral_scan_mode {
7201 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7202 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7203 };
7204 
7205 /**
7206  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7207  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7208  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7209  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7210  * of a parameter is not supported.
7211  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7212  * mode is not supported.
7213  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7214  * has invalid value.
7215  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7216  * is not initialized.
7217  */
7218 enum qca_wlan_vendor_spectral_scan_error_code {
7219 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7220 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7221 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7222 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7223 };
7224 
7225 /**
7226  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7227  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7228  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7229  * spectral hardware generation.
7230  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7231  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7232  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7233  */
7234 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7235 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7236 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7237 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7238 };
7239 
7240 enum qca_wlan_vendor_tos {
7241 	QCA_WLAN_VENDOR_TOS_BK = 0,
7242 	QCA_WLAN_VENDOR_TOS_BE = 1,
7243 	QCA_WLAN_VENDOR_TOS_VI = 2,
7244 	QCA_WLAN_VENDOR_TOS_VO = 3,
7245 };
7246 
7247 /**
7248  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7249  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7250  */
7251 enum qca_wlan_vendor_attr_active_tos {
7252 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7253 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
7254 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7255 	/* Flag attribute representing the start (attribute included) or stop
7256 	 * (attribute not included) of the respective TOS.
7257 	 */
7258 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7259 };
7260 
7261 enum qca_wlan_vendor_hang_reason {
7262 	/* Unspecified reason */
7263 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7264 	/* No Map for the MAC entry for the received frame */
7265 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7266 	/* Peer deletion timeout happened */
7267 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7268 	/* Peer unmap timeout */
7269 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
7270 	/* Scan request timed out */
7271 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
7272 	/* Consecutive Scan attempt failures */
7273 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
7274 	/* Unable to get the message buffer */
7275 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
7276 	/* Current command processing is timedout */
7277 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
7278 	/* Timeout for an ACK from FW for suspend request */
7279 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
7280 	/* Timeout for an ACK from FW for resume request */
7281 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
7282 	/* Transmission timeout for consecutive data frames */
7283 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
7284 	/* Timeout for the TX completion status of data frame */
7285 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
7286 	/* DXE failure for TX/RX, DXE resource unavailability */
7287 	QCA_WLAN_HANG_DXE_FAILURE = 12,
7288 	/* WMI pending commands exceed the maximum count */
7289 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
7290 	/* Timeout for peer STA connection accept command's response from the
7291 	 * FW in AP mode. This command is triggered when a STA (peer) connects
7292 	 * to AP (DUT).
7293 	 */
7294 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
7295 	/* Timeout for the AP connection accept command's response from the FW
7296 	 * in STA mode. This command is triggered when the STA (DUT) connects
7297 	 * to an AP (peer).
7298 	 */
7299 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
7300 	/* Timeout waiting for the response to the MAC HW mode change command
7301 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
7302 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
7303 	 * Channel Concurrency) mode.
7304 	 */
7305 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
7306 	/* Timeout waiting for the response from FW to configure the MAC HW's
7307 	 * mode. This operation is to configure the single/two MACs in either
7308 	 * SCC/MCC/DBS mode.
7309 	 */
7310 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
7311 	/* Timeout waiting for response of VDEV start command from the FW */
7312 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
7313 	/* Timeout waiting for response of VDEV restart command from the FW */
7314 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
7315 	/* Timeout waiting for response of VDEV stop command from the FW */
7316 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
7317 	/* Timeout waiting for response of VDEV delete command from the FW */
7318 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
7319 	/* Timeout waiting for response of peer all delete request command to
7320 	 * the FW on a specific VDEV.
7321 	 */
7322 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
7323 	/* WMI sequence mismatch between WMI command and Tx completion */
7324 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
7325 	/* Write to Device HAL register failed */
7326 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
7327 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
7328 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
7329 	/* Bus failure */
7330 	QCA_WLAN_HANG_BUS_FAILURE = 26,
7331 	/* tasklet/credit latency found */
7332 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
7333 };
7334 
7335 /**
7336  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7337  * QCA_NL80211_VENDOR_SUBCMD_HANG.
7338  */
7339 enum qca_wlan_vendor_attr_hang {
7340 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7341 	/* Reason for the hang - u32 attribute with a value from enum
7342 	 * qca_wlan_vendor_hang_reason.
7343 	 */
7344 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
7345 	/* The binary blob data associated with the hang reason specified by
7346 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7347 	 * contain the required dump to analyze the reason for the hang.
7348 	 * NLA_BINARY attribute, the max size is 1024 bytes.
7349 	 */
7350 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
7351 
7352 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7353 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7354 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7355 };
7356 
7357 /**
7358  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7359  * the policy to flush pending frames, configured via
7360  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7361  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7362  *
7363  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7364  * the flush policy configured before. This command basically disables the
7365  * flush config set by the user.
7366  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7367  * the flush policy to be immediate. All pending packets for the peer/TID are
7368  * flushed when this command/policy is received.
7369  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7370  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7371  * are flushed when the end of TWT SP is reached.
7372  */
7373 enum qca_wlan_vendor_flush_pending_policy  {
7374 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7375 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7376 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7377 };
7378 
7379 /**
7380  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7381  * flushing pending traffic in firmware.
7382  *
7383  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7384  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7385  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7386  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
7387  * flush packets with access category. This is optional. See below.
7388  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7389  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7390  * bit to 1 to act upon the TID. This is optional. Either this attribute or
7391  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7392  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7393  * it is an error.
7394  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7395  * packets corresponding to the peer/TID provided. It is a u32 value,
7396  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7397  * value is honored only when TID mask is provided. This is not honored when AC
7398  * mask is provided.
7399  */
7400 enum qca_wlan_vendor_attr_flush_pending {
7401 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7402 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7403 	QCA_WLAN_VENDOR_ATTR_AC = 2,
7404 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7405 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
7406 
7407 	/* keep last */
7408 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7409 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7410 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7411 };
7412 
7413 /**
7414  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7415  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7416  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7417  * Spectral bin scaling formula ID.
7418  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7419  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7420  * and RSSI threshold based formula.
7421  */
7422 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7423 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7424 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7425 };
7426 
7427 /**
7428  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7429  * RF Operating Parameter (RROP) information is available, and if so, at which
7430  * point in the application-driver interaction sequence it can be retrieved by
7431  * the application from the driver. This point may vary by architecture and
7432  * other factors. This is a u16 value.
7433  */
7434 enum qca_wlan_vendor_attr_rropavail_info {
7435 	/* RROP information is unavailable. */
7436 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7437 	/* RROP information is available and the application can retrieve the
7438 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7439 	 * event from the driver.
7440 	 */
7441 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7442 	/* RROP information is available only after a vendor specific scan
7443 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7444 	 * successfully completed. The application can retrieve the information
7445 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7446 	 * the driver.
7447 	 */
7448 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7449 };
7450 
7451 /**
7452  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7453  * Representative RF Operating Parameter (RROP) information. It is sent for the
7454  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7455  * intended for use by external Auto Channel Selection applications. It provides
7456  * guidance values for some RF parameters that are used by the system during
7457  * operation. These values could vary by channel, band, radio, and so on.
7458  */
7459 enum qca_wlan_vendor_attr_rrop_info {
7460 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7461 
7462 	/* Representative Tx Power List (RTPL) which has an array of nested
7463 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7464 	 */
7465 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7466 
7467 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7468 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7469 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7470 };
7471 
7472 /**
7473  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7474  * entry instances in the Representative Tx Power List (RTPL). It provides
7475  * simplified power values intended for helping external Auto channel Selection
7476  * applications compare potential Tx power performance between channels, other
7477  * operating conditions remaining identical. These values are not necessarily
7478  * the actual Tx power values that will be used by the system. They are also not
7479  * necessarily the max or average values that will be used. Instead, they are
7480  * relative, summarized keys for algorithmic use computed by the driver or
7481  * underlying firmware considering a number of vendor specific factors.
7482  */
7483 enum qca_wlan_vendor_attr_rtplinst {
7484 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7485 
7486 	/* Primary channel number (u8).
7487 	 * Note: If both the driver and user space application support the
7488 	 * 6 GHz band, this attribute is deprecated and
7489 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7490 	 * maintain backward compatibility,
7491 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7492 	 * driver or user space application or both do not support the 6 GHz
7493 	 * band.
7494 	 */
7495 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7496 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
7497 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7498 	/* Representative Tx power in dBm (s32) with emphasis on range. */
7499 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
7500 	/* Primary channel center frequency (u32) in MHz */
7501 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
7502 
7503 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7504 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7505 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7506 };
7507 
7508 /**
7509  * enum qca_wlan_vendor_attr_config_latency_level - Level for
7510  * wlan latency module.
7511  *
7512  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7513  * power saving which would causing data exchange out of service, this
7514  * would be a big impact on latency. For latency sensitive applications over
7515  * Wi-Fi are intolerant to such operations and thus would configure them
7516  * to meet their respective needs. It is well understood by such applications
7517  * that altering the default behavior would degrade the Wi-Fi functionality
7518  * w.r.t the above pointed WLAN operations.
7519  *
7520  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7521  *	Default WLAN operation level which throughput orientated.
7522  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7523  *	Use XR level to benefit XR (extended reality) application to achieve
7524  *	latency and power by via constraint scan/roaming/adaptive PS.
7525  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
7526  *	Use low latency level to benefit application like concurrent
7527  *	downloading or video streaming via constraint scan/adaptive PS.
7528  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7529  *	Use ultra low latency level to benefit for gaming/voice
7530  *	application via constraint scan/roaming/adaptive PS.
7531  */
7532 enum qca_wlan_vendor_attr_config_latency_level {
7533 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7534 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
7535 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7536 	/* legacy name */
7537 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7538 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
7539 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7540 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7541 
7542 	/* keep last */
7543 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7544 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7545 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7546 };
7547 
7548 /**
7549  * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7550  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7551  */
7552 enum qca_wlan_vendor_attr_mac {
7553 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7554 
7555 	/* MAC mode info list which has an array of nested values as
7556 	 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7557 	 */
7558 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7559 
7560 	/* keep last */
7561 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7562 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7563 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7564 };
7565 
7566 /**
7567  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7568  *	Wi-Fi netdev interface on a respective MAC.
7569  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7570  */
7571 enum qca_wlan_vendor_attr_mac_iface_info {
7572 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7573 	/* Wi-Fi netdev's interface index (u32) */
7574 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7575 	/* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7576 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7577 
7578 	/* keep last */
7579 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7580 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7581 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7582 };
7583 
7584 /**
7585  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7586  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7587  *	vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7588  */
7589 enum qca_wlan_vendor_attr_mac_info {
7590 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7591 	/* Hardware MAC ID associated for the MAC (u32) */
7592 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7593 	/* Band supported by the MAC at a given point.
7594 	 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7595 	 * nl80211_band.
7596 	 */
7597 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7598 	/* Refers to list of WLAN netdev interfaces associated with this MAC.
7599 	 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7600 	 */
7601 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7602 
7603 	/* keep last */
7604 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7605 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7606 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7607 };
7608 
7609 /**
7610  * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7611  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7612  */
7613 enum qca_wlan_vendor_attr_get_logger_features {
7614 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7615 	/* Unsigned 32-bit enum value of wifi_logger_supported_features */
7616 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7617 	/* keep last */
7618 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7619 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7620 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7621 };
7622 
7623 /**
7624  * enum wifi_logger_supported_features - Values for supported logger features
7625  */
7626 enum wifi_logger_supported_features {
7627 	WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7628 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7629 	WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
7630 	WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
7631 	WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
7632 	WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
7633 	WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
7634 	WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
7635 	WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
7636 };
7637 
7638 /**
7639  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
7640  * capabilities features
7641  */
7642 enum qca_wlan_tdls_caps_features_supported {
7643 	WIFI_TDLS_SUPPORT = (1 << (0)),
7644 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
7645 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
7646 };
7647 
7648 /**
7649  * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
7650  * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
7651  */
7652 enum qca_wlan_vendor_attr_tdls_get_capabilities {
7653 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
7654 	/* Indicates the max concurrent sessions */
7655 	/* Unsigned 32-bit value */
7656 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
7657 	/* Indicates the support for features */
7658 	/* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
7659 	 */
7660 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
7661 
7662 	/* keep last */
7663 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
7664 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
7665 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
7666 };
7667 
7668 /**
7669  * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
7670  * command used as value for the attribute
7671  * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
7672  */
7673 enum qca_wlan_offloaded_packets_sending_control {
7674 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
7675 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
7676 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
7677 };
7678 
7679 /**
7680  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
7681  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
7682  */
7683 enum qca_wlan_vendor_attr_offloaded_packets {
7684 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
7685 	/* Takes valid value from the enum
7686 	 * qca_wlan_offloaded_packets_sending_control
7687 	 * Unsigned 32-bit value
7688 	 */
7689 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
7690 	/* Unsigned 32-bit value */
7691 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
7692 	/* array of u8 len: Max packet size */
7693 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
7694 	/* 6-byte MAC address used to represent source MAC address */
7695 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
7696 	/* 6-byte MAC address used to represent destination MAC address */
7697 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
7698 	/* Unsigned 32-bit value, in milli seconds */
7699 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
7700 	/* This optional unsigned 16-bit attribute is used for specifying
7701 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
7702 	 */
7703 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
7704 
7705 	/* keep last */
7706 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
7707 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
7708 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
7709 };
7710 
7711 /**
7712  * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
7713  * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
7714  */
7715 enum qca_wlan_rssi_monitoring_control {
7716 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
7717 	QCA_WLAN_RSSI_MONITORING_START,
7718 	QCA_WLAN_RSSI_MONITORING_STOP,
7719 };
7720 
7721 /**
7722  * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
7723  * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
7724  */
7725 enum qca_wlan_vendor_attr_rssi_monitoring {
7726 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
7727 	/* Takes valid value from the enum
7728 	 * qca_wlan_rssi_monitoring_control
7729 	 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
7730 	 */
7731 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
7732 	/* Unsigned 32-bit value */
7733 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
7734 	/* Signed 8-bit value in dBm */
7735 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
7736 	/* Signed 8-bit value in dBm */
7737 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
7738 	/* attributes to be used/received in callback */
7739 	/* 6-byte MAC address used to represent current BSSID MAC address */
7740 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
7741 	/* Signed 8-bit value indicating the current RSSI */
7742 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
7743 	/* keep last */
7744 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
7745 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
7746 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
7747 };
7748 
7749 /**
7750  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
7751  * QCA_NL80211_VENDOR_SUBCMD_NDP.
7752  */
7753 enum qca_wlan_vendor_attr_ndp_params {
7754 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
7755 	/* Unsigned 32-bit value
7756 	 * enum of sub commands values in qca_wlan_ndp_sub_cmd
7757 	 */
7758 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
7759 	/* Unsigned 16-bit value */
7760 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
7761 	/* NL attributes for data used NDP SUB cmds */
7762 	/* Unsigned 32-bit value indicating a service info */
7763 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
7764 	/* Unsigned 32-bit value; channel frequency in MHz */
7765 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
7766 	/* Interface Discovery MAC address. An array of 6 Unsigned int8 */
7767 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
7768 	/* Interface name on which NDP is being created */
7769 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
7770 	/* Unsigned 32-bit value for security */
7771 	/* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
7772 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
7773 	/* Unsigned 32-bit value for QoS */
7774 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
7775 	/* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
7776 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
7777 	/* Unsigned 32-bit value for NDP instance Id */
7778 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
7779 	/* Array of instance Ids */
7780 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
7781 	/* Unsigned 32-bit value for initiator/responder NDP response code
7782 	 * accept/reject
7783 	 */
7784 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7785 	/* NDI MAC address. An array of 6 Unsigned int8 */
7786 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7787 	/* Unsigned 32-bit value errors types returned by driver
7788 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7789 	 * NanStatusType includes these values.
7790 	 */
7791 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7792 	/* Unsigned 32-bit value error values returned by driver
7793 	 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7794 	 * NanInternalStatusType includes these values.
7795 	 */
7796 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7797 	/* Unsigned 32-bit value for Channel setup configuration
7798 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7799 	 * NanDataPathChannelCfg includes these values.
7800 	 */
7801 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7802 	/* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7803 	QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7804 	/* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7805 	QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7806 	/* Security Context Identifier that contains the PMKID
7807 	 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7808 	 */
7809 	QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7810 	/* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7811 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7812 	/* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7813 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7814 	/* Unsigned 32-bit bitmap indicating schedule update
7815 	 * BIT_0: NSS Update
7816 	 * BIT_1: Channel list update
7817 	 */
7818 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7819 	/* Unsigned 32-bit value for NSS */
7820 	QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7821 	/* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7822 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7823 	/* Unsigned 32-bit value for CHANNEL BANDWIDTH
7824 	 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7825 	 */
7826 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7827 	/* Array of channel/band width */
7828 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7829 	/* IPv6 address used by NDP (in network byte order), 16 bytes array.
7830 	 * This attribute is used and optional for ndp request, ndp response,
7831 	 * ndp indication, and ndp confirm.
7832 	 */
7833 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7834 	/* Unsigned 16-bit value indicating transport port used by NDP.
7835 	 * This attribute is used and optional for ndp response, ndp indication,
7836 	 * and ndp confirm.
7837 	 */
7838 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7839 	/* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7840 	 * the Internet Assigned Numbers Authority (IANA) as per:
7841 	 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7842 	 * This attribute is used and optional for ndp response, ndp indication,
7843 	 * and ndp confirm.
7844 	 */
7845 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
7846 	/* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7847 	 * 1:support 0:not support
7848 	 */
7849 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
7850 	/* As per Wi-Fi Aware Specification v3.2 Service Id is the first
7851 	 * 48 bits of the SHA-256 hash of the Service Name.
7852 	 * A lower-case representation of the Service Name shall be used to
7853 	 * calculate the Service ID.
7854 	 * Array of u8: length is 6 bytes
7855 	 * This attribute is used and optional for ndp indication.
7856 	 */
7857 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
7858 
7859 	/* keep last */
7860 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7861 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7862 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7863 };
7864 
7865 enum qca_wlan_ndp_sub_cmd {
7866 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
7867 	/* Command to create a NAN data path interface.
7868 	 * This command was initially designed to both create and start a NAN
7869 	 * data path interface. However, changes to Linux 5.12 no longer allow
7870 	 * interface creation via vendor commands. When the driver advertises
7871 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7872 	 * userspace must explicitly first create the interface using
7873 	 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
7874 	 * to start the interface.
7875 	 */
7876 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
7877 	/* Command to delete a NAN data path interface.
7878 	 * This command was initially designed to both stop and delete a NAN
7879 	 * data path interface. However, changes to Linux 5.12 no longer allow
7880 	 * interface deletion via vendor commands. When the driver advertises
7881 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
7882 	 * userspace must explicitly delete the interface using
7883 	 * NL80211_CMD_DEL_INTERFACE after calling this command.
7884 	 */
7885 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7886 	/* Command to initiate a NAN data path session */
7887 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7888 	/* Command to notify if the NAN data path session was sent */
7889 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7890 	/* Command to respond to NAN data path session */
7891 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7892 	/* Command to notify on the responder about the response */
7893 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7894 	/* Command to initiate a NAN data path end */
7895 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7896 	/* Command to notify the if end request was sent */
7897 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7898 	/* Command to notify the peer about the end request */
7899 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7900 	/* Command to confirm the NAN data path session is complete */
7901 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7902 	/* Command to indicate the peer about the end request being received */
7903 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7904 	/* Command to indicate the peer of schedule update */
7905 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7906 };
7907 
7908 /**
7909  * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7910  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7911  */
7912 enum qca_wlan_vendor_attr_nd_offload {
7913 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7914 	/* Flag to set Neighbour Discovery offload */
7915 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7916 	/* Keep last */
7917 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7918 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7919 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7920 };
7921 
7922 /**
7923  * enum packet_filter_sub_cmd - Packet filter sub commands
7924  */
7925 enum packet_filter_sub_cmd {
7926 	/**
7927 	 * Write packet filter program and/or data. The driver/firmware should
7928 	 * disable APF before writing into local buffer and re-enable APF after
7929 	 * writing is done.
7930 	 */
7931 	QCA_WLAN_SET_PACKET_FILTER = 1,
7932 	/* Get packet filter feature capabilities from driver */
7933 	QCA_WLAN_GET_PACKET_FILTER = 2,
7934 	/**
7935 	 * Write packet filter program and/or data. User space will send the
7936 	 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7937 	 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7938 	 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7939 	 * enable/disable is given to user space with this command. Also,
7940 	 * user space sends the length of program portion in the buffer within
7941 	 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7942 	 */
7943 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
7944 	/* Read packet filter program and/or data */
7945 	QCA_WLAN_READ_PACKET_FILTER = 4,
7946 	/* Enable APF feature */
7947 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7948 	/* Disable APF feature */
7949 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7950 };
7951 
7952 /**
7953  * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7954  * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7955  */
7956 enum qca_wlan_vendor_attr_packet_filter {
7957 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7958 	/* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7959 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7960 	/* Unsigned 32-bit value indicating the packet filter version */
7961 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7962 	/* Unsigned 32-bit value indicating the packet filter id */
7963 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7964 	/**
7965 	 * Unsigned 32-bit value indicating the packet filter size including
7966 	 * program + data.
7967 	 */
7968 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7969 	/* Unsigned 32-bit value indicating the packet filter current offset */
7970 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7971 	/* Program and/or data in bytes */
7972 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7973 	/* Unsigned 32-bit value of the length of the program section in packet
7974 	 * filter buffer.
7975 	 */
7976 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7977 
7978 	/* keep last */
7979 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7980 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7981 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7982 };
7983 
7984 /**
7985  * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7986  * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7987  */
7988 enum qca_wlan_vendor_drv_info {
7989 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7990 	/* Maximum Message size info between firmware & HOST
7991 	 * Unsigned 32-bit value
7992 	 */
7993 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7994 	/* keep last */
7995 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7996 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7997 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7998 };
7999 
8000 /**
8001  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8002  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8003  */
8004 enum qca_wlan_vendor_attr_wake_stats {
8005 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8006 	/* Unsigned 32-bit value indicating the total count of wake event */
8007 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8008 	/* Array of individual wake count, each index representing wake reason
8009 	 */
8010 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8011 	/* Unsigned 32-bit value representing wake count array */
8012 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8013 	/* Unsigned 32-bit total wake count value of driver/fw */
8014 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8015 	/* Array of wake stats of driver/fw */
8016 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8017 	/* Unsigned 32-bit total wake count value of driver/fw */
8018 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8019 	/* Unsigned 32-bit total wake count value of packets received */
8020 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8021 	/* Unsigned 32-bit wake count value unicast packets received */
8022 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8023 	/* Unsigned 32-bit wake count value multicast packets received */
8024 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8025 	/* Unsigned 32-bit wake count value broadcast packets received */
8026 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8027 	/* Unsigned 32-bit wake count value of ICMP packets */
8028 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8029 	/* Unsigned 32-bit wake count value of ICMP6 packets */
8030 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8031 	/* Unsigned 32-bit value ICMP6 router advertisement */
8032 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8033 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
8034 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8035 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
8036 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8037 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8038 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8039 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8040 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8041 	/* Unsigned 32-bit wake count value of receive side multicast */
8042 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8043 	/* Unsigned 32-bit wake count value of a given RSSI breach */
8044 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8045 	/* Unsigned 32-bit wake count value of low RSSI */
8046 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8047 	/* Unsigned 32-bit value GSCAN count */
8048 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8049 	/* Unsigned 32-bit value PNO complete count */
8050 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8051 	/* Unsigned 32-bit value PNO match count */
8052 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8053 	/* keep last */
8054 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8055 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8056 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8057 };
8058 
8059 /**
8060  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
8061  * configured by userspace to the driver/firmware.
8062  * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8063  * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
8064  * The driver/firmware takes actions requested by userspace such as throttling
8065  * wifi TX etc. in order to mitigate high temperature.
8066  *
8067  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8068  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8069  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8070  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8071  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8072  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8073  */
8074 enum qca_wlan_vendor_thermal_level {
8075 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8076 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8077 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8078 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8079 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8080 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8081 };
8082 
8083 /**
8084  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8085  * cmd value. Used for NL attributes for data used by
8086  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8087  */
8088 enum qca_wlan_vendor_attr_thermal_cmd {
8089 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8090 	/* The value of command, driver will implement different operations
8091 	 * according to this value. It uses values defined in
8092 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8093 	 * u32 attribute.
8094 	 */
8095 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
8096 	/* Userspace uses this attribute to configure thermal level to the
8097 	 * driver/firmware, or get thermal level from the driver/firmware.
8098 	 * Used in request or response, u32 attribute,
8099 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
8100 	 */
8101 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8102 	/* Userspace uses this attribute to configure the time in which the
8103 	 * driver/firmware should complete applying settings it received from
8104 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8105 	 * command type. Used in request, u32 attribute, value is in
8106 	 * milliseconds. A value of zero indicates to apply the settings
8107 	 * immediately. The driver/firmware can delay applying the configured
8108 	 * thermal settings within the time specified in this attribute if
8109 	 * there is any critical ongoing operation.
8110 	 */
8111 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
8112 	/* Nested attribute, the driver/firmware uses this attribute to report
8113 	 * thermal statistics of different thermal levels to userspace when
8114 	 * requested using the
8115 	 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8116 	 * type. This attribute contains a nested array of records of thermal
8117 	 * statistics of multiple levels. The attributes used inside this nested
8118 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8119 	 */
8120 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
8121 
8122 	/* keep last */
8123 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8124 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8125 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8126 };
8127 
8128 /**
8129  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8130  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8131  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8132  * thermal command types sent to driver.
8133  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8134  * get thermal shutdown configuration parameters for display. Parameters
8135  * responded from driver are defined in
8136  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8137  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8138  * get temperature. Host should respond with a temperature data. It is defined
8139  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8140  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8141  * suspend action.
8142  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8143  * resume action.
8144  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8145  * the driver/firmware.
8146  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8147  * thermal level from the driver/firmware. The driver should respond with a
8148  * thermal level defined in enum qca_wlan_vendor_thermal_level.
8149  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8150  * current thermal statistics from the driver/firmware. The driver should
8151  * respond with statistics of all thermal levels encapsulated in the attribute
8152  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8153  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8154  * the current thermal statistics for all thermal levels maintained in the
8155  * driver/firmware and start counting from zero again.
8156  */
8157 enum qca_wlan_vendor_attr_thermal_cmd_type {
8158 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8159 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8160 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8161 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
8162 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
8163 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
8164 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8165 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
8166 };
8167 
8168 /**
8169  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8170  * to get chip temperature by user.
8171  * enum values are used for NL attributes for data used by
8172  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8173  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8174  */
8175 enum qca_wlan_vendor_attr_thermal_get_temperature {
8176 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8177 	/* Temperature value (degree Celsius) from driver.
8178 	 * u32 attribute.
8179 	 */
8180 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8181 
8182 	/* keep last */
8183 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8184 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
8185 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
8186 };
8187 
8188 /**
8189  * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
8190  * to get configuration parameters of thermal shutdown feature. Enum values are
8191  * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
8192  * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8193  */
8194 enum qca_wlan_vendor_attr_get_thermal_params_rsp {
8195 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
8196 	/* Indicate if the thermal shutdown feature is enabled.
8197 	 * NLA_FLAG attribute.
8198 	 */
8199 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
8200 	/* Indicate if the auto mode is enabled.
8201 	 * Enable: Driver triggers the suspend/resume action.
8202 	 * Disable: User space triggers the suspend/resume action.
8203 	 * NLA_FLAG attribute.
8204 	 */
8205 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
8206 	/* Thermal resume threshold (degree Celsius). Issue the resume command
8207 	 * if the temperature value is lower than this threshold.
8208 	 * u16 attribute.
8209 	 */
8210 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
8211 	/* Thermal warning threshold (degree Celsius). FW reports temperature
8212 	 * to driver if it's higher than this threshold.
8213 	 * u16 attribute.
8214 	 */
8215 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
8216 	/* Thermal suspend threshold (degree Celsius). Issue the suspend command
8217 	 * if the temperature value is higher than this threshold.
8218 	 * u16 attribute.
8219 	 */
8220 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
8221 	/* FW reports temperature data periodically at this interval (ms).
8222 	 * u16 attribute.
8223 	 */
8224 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
8225 
8226 	/* keep last */
8227 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
8228 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
8229 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
8230 };
8231 
8232 /**
8233  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
8234  * report thermal events from driver to user space.
8235  * enum values are used for NL attributes for data used by
8236  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
8237  */
8238 enum qca_wlan_vendor_attr_thermal_event {
8239 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
8240 	/* Temperature value (degree Celsius) from driver.
8241 	 * u32 attribute.
8242 	 */
8243 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
8244 	/* Indication of resume completion from power save mode.
8245 	 * NLA_FLAG attribute.
8246 	 */
8247 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
8248 	/* Thermal level from the driver.
8249 	 * u32 attribute. Possible values are defined in
8250 	 * enum qca_wlan_vendor_thermal_level.
8251 	 */
8252 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
8253 
8254 	/* keep last */
8255 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
8256 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
8257 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
8258 };
8259 
8260 /**
8261  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8262  * to get thermal status from the driver/firmware.
8263  * enum values are used for NL attributes encapsulated inside the
8264  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8265  *
8266  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8267  * of a thermal level in Celsius. u32 size.
8268  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8269  * of a thermal level in Celsius. u32 size.
8270  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8271  * thermal level in milliseconds. u32 size.
8272  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8273  * of times the temperature crossed into the temperature range defined by the
8274  * thermal level from both higher and lower directions. u32 size.
8275  */
8276 enum qca_wlan_vendor_attr_thermal_stats {
8277 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8278 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8279 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8280 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8281 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8282 
8283 	/* keep last */
8284 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8285 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8286 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8287 };
8288 
8289 /**
8290  * enum he_fragmentation_val - HE fragmentation support values
8291  * Indicates level of dynamic fragmentation that is supported by
8292  * a STA as a recipient.
8293  * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
8294  * (HE MAC Capabilities Information field) and are used in HE Capabilities
8295  * element to advertise the support. These values are validated in the driver
8296  * to check the device capability and advertised in the HE Capabilities
8297  * element. These values are used to configure testbed device to allow the
8298  * advertised hardware capabilities to be downgraded for testing purposes.
8299  *
8300  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8301  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8302  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8303  *	within an A-MPDU that is not an S-MPDU.
8304  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8305  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8306  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8307  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8308  *	MPDU or S-MPDU.
8309  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8310  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8311  *	fragments for each MSDU and for each A-MSDU if supported by the
8312  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8313  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8314  */
8315 enum he_fragmentation_val {
8316 	HE_FRAG_DISABLE,
8317 	HE_FRAG_LEVEL1,
8318 	HE_FRAG_LEVEL2,
8319 	HE_FRAG_LEVEL3,
8320 };
8321 
8322 /**
8323  * enum he_mcs_config - HE MCS support configuration
8324  *
8325  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8326  * These values are used in driver to configure the HE MCS map to advertise
8327  * Tx/Rx MCS map in HE capability and these values are applied for all the
8328  * streams supported by the device. To configure MCS for different bandwidths,
8329  * vendor command needs to be sent using this attribute with appropriate value.
8330  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8331  * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8332  * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8333  * These values are used to configure testbed device to allow the advertised
8334  * hardware capabilities to be downgraded for testing purposes. The enum values
8335  * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8336  * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8337  * These values are validated in the driver before setting the MCS map and
8338  * driver returns error if the input is other than these enum values.
8339  *
8340  * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8341  * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8342  * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8343  * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8344  * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8345  * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8346  * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8347  * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8348  * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8349  */
8350 enum he_mcs_config {
8351 	HE_80_MCS0_7 = 0,
8352 	HE_80_MCS0_9 = 1,
8353 	HE_80_MCS0_11 = 2,
8354 	HE_160_MCS0_7 = 4,
8355 	HE_160_MCS0_9 = 5,
8356 	HE_160_MCS0_11 = 6,
8357 	HE_80P80_MCS0_7 = 8,
8358 	HE_80P80_MCS0_9 = 9,
8359 	HE_80P80_MCS0_11 = 10,
8360 };
8361 
8362 /**
8363  * enum qca_wlan_ba_session_config - BA session configuration
8364  *
8365  * Indicates the configuration values for BA session configuration attribute.
8366  *
8367  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8368  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8369  */
8370 enum qca_wlan_ba_session_config {
8371 	QCA_WLAN_ADD_BA = 1,
8372 	QCA_WLAN_DELETE_BA = 2,
8373 };
8374 
8375 /**
8376  * enum qca_wlan_ac_type - Access category type
8377  *
8378  * Indicates the access category type value.
8379  *
8380  * @QCA_WLAN_AC_BE: BE access category
8381  * @QCA_WLAN_AC_BK: BK access category
8382  * @QCA_WLAN_AC_VI: VI access category
8383  * @QCA_WLAN_AC_VO: VO access category
8384  * @QCA_WLAN_AC_ALL: All ACs
8385  */
8386 enum qca_wlan_ac_type {
8387 	QCA_WLAN_AC_BE = 0,
8388 	QCA_WLAN_AC_BK = 1,
8389 	QCA_WLAN_AC_VI = 2,
8390 	QCA_WLAN_AC_VO = 3,
8391 	QCA_WLAN_AC_ALL = 4,
8392 };
8393 
8394 /**
8395  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8396  *
8397  * Indicates the HE LTF configuration value.
8398  *
8399  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8400  * based on the GI setting
8401  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8402  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8403  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8404  */
8405 enum qca_wlan_he_ltf_cfg {
8406 	QCA_WLAN_HE_LTF_AUTO = 0,
8407 	QCA_WLAN_HE_LTF_1X = 1,
8408 	QCA_WLAN_HE_LTF_2X = 2,
8409 	QCA_WLAN_HE_LTF_4X = 3,
8410 };
8411 
8412 /**
8413  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8414  *
8415  * Indicates the HE trigger frame MAC padding duration value.
8416  *
8417  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8418  * process the trigger frame.
8419  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8420  * trigger frame.
8421  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8422  * trigger frame.
8423  */
8424 enum qca_wlan_he_mac_padding_dur {
8425 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8426 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8427 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8428 };
8429 
8430 /**
8431  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8432  *
8433  * Indicates the HE Operating mode control channel width setting value.
8434  *
8435  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8436  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8437  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8438  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8439  */
8440 enum qca_wlan_he_om_ctrl_ch_bw {
8441 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8442 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8443 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8444 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8445 };
8446 
8447 /**
8448  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8449  *
8450  * Indicates the frame types to use for keep alive data.
8451  *
8452  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8453  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8454  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8455  */
8456 enum qca_wlan_keep_alive_data_type {
8457 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8458 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8459 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8460 };
8461 
8462 /**
8463  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8464  * HE operating mode control transmit request. These attributes are
8465  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8466  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8467  *
8468  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8469  * indicates the maximum number of spatial streams, NSS, that the STA
8470  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8471  * and is set to NSS - 1.
8472  *
8473  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8474  * indicates the operating channel width supported by the STA for both
8475  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8476  *
8477  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8478  * indicates the all trigger based UL MU operations by the STA.
8479  * 0 - UL MU operations are enabled by the STA.
8480  * 1 - All triggered UL MU transmissions are suspended by the STA.
8481  *
8482  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8483  * indicates the maximum number of space-time streams, NSTS, that
8484  * the STA supports in transmission and is set to NSTS - 1.
8485  *
8486  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8487  * combined with the UL MU Disable subfield and the recipient's setting
8488  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8489  * capabilities to determine which HE TB PPDUs are possible by the
8490  * STA to transmit.
8491  * 0 - UL MU data operations are enabled by the STA.
8492  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8493  * bit is not set, else UL MU Tx is suspended.
8494  *
8495  */
8496 enum qca_wlan_vendor_attr_he_omi_tx {
8497 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8498 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8499 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8500 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8501 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8502 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8503 
8504 	/* keep last */
8505 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8506 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8507 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8508 };
8509 
8510  /**
8511   * enum qca_wlan_vendor_phy_mode - Different PHY modes
8512   * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8513   *
8514   * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8515   * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8516   * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8517   * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8518   * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8519   * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8520   * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8521   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8522   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8523   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8524   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8525   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8526   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8527   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8528   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8529   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8530   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8531   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8532   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8533   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8534   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8535   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8536   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8537   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8538   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8539   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8540   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8541   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8542   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8543   */
8544 enum qca_wlan_vendor_phy_mode {
8545 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8546 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8547 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8548 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8549 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8550 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8551 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8552 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8553 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8554 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8555 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8556 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8557 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8558 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8559 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8560 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8561 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8562 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8563 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8564 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8565 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8566 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8567 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8568 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8569 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8570 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8571 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8572 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8573 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8574 };
8575 
8576 /* Attributes for data used by
8577  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8578  */
8579 enum qca_wlan_vendor_attr_wifi_test_config {
8580 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8581 	/* 8-bit unsigned value to configure the driver to enable/disable
8582 	 * WMM feature. This attribute is used to configure testbed device.
8583 	 * 1-enable, 0-disable
8584 	 */
8585 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8586 
8587 	/* 8-bit unsigned value to configure the driver to accept/reject
8588 	 * the addba request from peer. This attribute is used to configure
8589 	 * the testbed device.
8590 	 * 1-accept addba, 0-reject addba
8591 	 */
8592 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8593 
8594 	/* 8-bit unsigned value to configure the driver to send or not to
8595 	 * send the addba request to peer.
8596 	 * This attribute is used to configure the testbed device.
8597 	 * 1-send addba, 0-do not send addba
8598 	 */
8599 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8600 
8601 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8602 	 * Uses enum he_fragmentation_val values.
8603 	 * This attribute is used to configure the testbed device to
8604 	 * allow the advertised hardware capabilities to be downgraded
8605 	 * for testing purposes.
8606 	 */
8607 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8608 
8609 	/* 8-bit unsigned value to indicate the HE MCS support.
8610 	 * Uses enum he_mcs_config values.
8611 	 * This attribute is used to configure the testbed device to
8612 	 * allow the advertised hardware capabilities to be downgraded
8613 	 * for testing purposes.
8614 	 */
8615 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8616 
8617 	/* 8-bit unsigned value to configure the driver to allow or not to
8618 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8619 	 * This attribute is used to configure the testbed device.
8620 	 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
8621 	 */
8622 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8623 
8624 	/* 8-bit unsigned value to configure the driver to add a
8625 	 * new BA session or delete the existing BA session for
8626 	 * given TID. ADDBA command uses the buffer size and TID
8627 	 * configuration if user specifies the values else default
8628 	 * value for buffer size is used for all TIDs if the TID
8629 	 * also not specified. For DEL_BA command TID value is
8630 	 * required to process the command.
8631 	 * Uses enum qca_wlan_ba_session_config values.
8632 	 * This attribute is used to configure the testbed device.
8633 	 */
8634 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8635 
8636 	/* 16-bit unsigned value to configure the buffer size in addba
8637 	 * request and response frames.
8638 	 * This attribute is used to configure the testbed device.
8639 	 * The range of the value is 0 to 256.
8640 	 */
8641 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8642 
8643 	/* 8-bit unsigned value to configure the buffer size in addba
8644 	 * request and response frames.
8645 	 * This attribute is used to configure the testbed device.
8646 	 */
8647 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8648 
8649 	/* 8-bit unsigned value to configure the no ack policy.
8650 	 * To configure no ack policy, access category value is
8651 	 * required to process the command.
8652 	 * This attribute is used to configure the testbed device.
8653 	 * 1 - enable no ack, 0 - disable no ack.
8654 	 */
8655 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8656 
8657 	/* 8-bit unsigned value to configure the AC for no ack policy
8658 	 * This attribute is used to configure the testbed device.
8659 	 * Uses the enum qca_wlan_ac_type values.
8660 	 */
8661 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8662 
8663 	/* 8-bit unsigned value to configure the HE LTF
8664 	 * This attribute is used to configure the testbed device.
8665 	 * Uses the enum qca_wlan_he_ltf_cfg values.
8666 	 */
8667 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8668 
8669 	/* 8-bit unsigned value to configure the tx beamformee.
8670 	 * This attribute is used to configure the testbed device.
8671 	 * 1-enable, 0-disable.
8672 	 */
8673 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8674 
8675 	/* 8-bit unsigned value to configure the tx beamformee number
8676 	 * of space-time streams.
8677 	 * This attribute is used to configure the testbed device.
8678 	 * The range of the value is 0 to 8.
8679 	 */
8680 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8681 
8682 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
8683 	 * This attribute is used to configure the testbed device.
8684 	 * Uses the enum qca_wlan_ac_type values.
8685 	 */
8686 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8687 
8688 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8689 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
8690 	 * is required to process the command.
8691 	 * This attribute is used to configure the testbed device.
8692 	 */
8693 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8694 
8695 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
8696 	 * given AC.
8697 	 * To configure MU EDCA ECW min value, MU EDCA access category value
8698 	 * is required to process the command.
8699 	 * This attribute is used to configure the testbed device.
8700 	 */
8701 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8702 
8703 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
8704 	 * given AC.
8705 	 * To configure MU EDCA ECW max value, MU EDCA access category value
8706 	 * is required to process the command.
8707 	 * This attribute is used to configure the testbed device.
8708 	 */
8709 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8710 
8711 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
8712 	 * To configure MU EDCA timer value, MU EDCA access category value
8713 	 * is required to process the command.
8714 	 * This attribute is used to configure the testbed device.
8715 	 */
8716 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8717 
8718 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
8719 	 * duration.
8720 	 * This attribute is used to configure the testbed device.
8721 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
8722 	 */
8723 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8724 
8725 	/* 8-bit unsigned value to override the MU EDCA params to defaults
8726 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
8727 	 * the default values else use the MU EDCA params from AP beacon.
8728 	 * This attribute is used to configure the testbed device.
8729 	 * 1-enable, 0-disable.
8730 	 */
8731 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8732 
8733 	/* 8-bit unsigned value to configure the support for receiving
8734 	 * an MPDU that contains an operating mode control subfield.
8735 	 * This attribute is used to configure the testbed device.
8736 	 * 1-enable, 0-disable.
8737 	 */
8738 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8739 
8740 	/* Nested attribute values required to setup the TWT session.
8741 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8742 	 * information to set up the session. It contains broadcast flags,
8743 	 * set_up flags, trigger value, flow type, flow ID, wake interval
8744 	 * exponent, protection, target wake time, wake duration, wake interval
8745 	 * mantissa. These nested attributes are used to setup a host triggered
8746 	 * TWT session.
8747 	 */
8748 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8749 
8750 	/* This nested attribute is used to terminate the current TWT session.
8751 	 * It does not currently carry any attributes.
8752 	 */
8753 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8754 
8755 	/* This nested attribute is used to suspend the current TWT session.
8756 	 * It does not currently carry any attributes.
8757 	 */
8758 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8759 
8760 	/* Nested attribute values to indicate the request for resume.
8761 	 * This attribute is used to resume the TWT session.
8762 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8763 	 * parameters required to resume the TWT session.
8764 	 */
8765 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8766 
8767 	/* 8-bit unsigned value to set the HE operating mode control
8768 	 * (OM CTRL) Channel Width subfield.
8769 	 * The Channel Width subfield indicates the operating channel width
8770 	 * supported by the STA for both reception and transmission.
8771 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8772 	 * This setting is cleared with the
8773 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8774 	 * flag attribute to reset defaults.
8775 	 * This attribute is used to configure the testbed device.
8776 	 */
8777 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8778 
8779 	/* 8-bit unsigned value to configure the number of spatial
8780 	 * streams in HE operating mode control field.
8781 	 * This setting is cleared with the
8782 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8783 	 * flag attribute to reset defaults.
8784 	 * This attribute is used to configure the testbed device.
8785 	 */
8786 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8787 
8788 	/* Flag attribute to configure the UL MU disable bit in
8789 	 * HE operating mode control field.
8790 	 * This setting is cleared with the
8791 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8792 	 * flag attribute to reset defaults.
8793 	 * This attribute is used to configure the testbed device.
8794 	 */
8795 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8796 
8797 	/* Flag attribute to clear the previously set HE operating mode
8798 	 * control field configuration.
8799 	 * This attribute is used to configure the testbed device to reset
8800 	 * defaults to clear any previously set HE operating mode control
8801 	 * field configuration.
8802 	 */
8803 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8804 
8805 	/* 8-bit unsigned value to configure HE single user PPDU
8806 	 * transmission. By default this setting is disabled and it
8807 	 * is disabled in the reset defaults of the device configuration.
8808 	 * This attribute is used to configure the testbed device.
8809 	 * 1-enable, 0-disable
8810 	 */
8811 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8812 
8813 	/* 8-bit unsigned value to configure action frame transmission
8814 	 * in HE trigger based PPDU transmission.
8815 	 * By default this setting is disabled and it is disabled in
8816 	 * the reset defaults of the device configuration.
8817 	 * This attribute is used to configure the testbed device.
8818 	 * 1-enable, 0-disable
8819 	 */
8820 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8821 
8822 	/* Nested attribute to indicate HE operating mode control field
8823 	 * transmission. It contains operating mode control field Nss,
8824 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8825 	 * These nested attributes are used to send HE operating mode control
8826 	 * with configured values.
8827 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8828 	 * This attribute is used to configure the testbed device.
8829 	 */
8830 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8831 
8832 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
8833 	 * support for the reception of a frame that carries an HE variant
8834 	 * HT Control field.
8835 	 * This attribute is used to configure the testbed device.
8836 	 * 1-enable, 0-disable
8837 	 */
8838 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8839 
8840 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
8841 	 * This attribute is used to configure the testbed device.
8842 	 * 1-enable, 0-disable
8843 	 */
8844 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8845 
8846 	/* 8-bit unsigned value to configure HE testbed defaults.
8847 	 * This attribute is used to configure the testbed device.
8848 	 * 1-set the device HE capabilities to testbed defaults.
8849 	 * 0-reset the device HE capabilities to supported config.
8850 	 */
8851 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8852 
8853 	/* 8-bit unsigned value to configure TWT request support.
8854 	 * This attribute is used to configure the testbed device.
8855 	 * 1-enable, 0-disable.
8856 	 */
8857 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8858 
8859 	/* 8-bit unsigned value to configure protection for Management
8860 	 * frames when PMF is enabled for the association.
8861 	 * This attribute is used to configure the testbed device.
8862 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8863 	 */
8864 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8865 
8866 	/* Flag attribute to inject Disassociation frame to the connected AP.
8867 	 * This attribute is used to configure the testbed device.
8868 	 */
8869 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8870 
8871 	/* 8-bit unsigned value to configure an override for the RSNXE Used
8872 	 * subfield in the MIC control field of the FTE in FT Reassociation
8873 	 * Request frame.
8874 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8875 	 * This attribute is used to configure the testbed device.
8876 	 * This attribute can be configured only when STA is in associated state
8877 	 * and the configuration is valid until the disconnection.
8878 	 */
8879 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8880 
8881 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8882 	 * Switch Announcement) when STA is in connected state.
8883 	 * 0 - Default behavior, 1 - Ignore CSA.
8884 	 * This attribute is used to configure the testbed device.
8885 	 * This attribute can be configured only when STA is in associated state
8886 	 * and the configuration is valid until the disconnection.
8887 	 */
8888 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8889 
8890 	/* Nested attribute values required to configure OCI (Operating Channel
8891 	 * Information). Attributes defined in enum
8892 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8893 	 * This attribute is used to configure the testbed device.
8894 	 * This attribute can be configured only when STA is in associated state
8895 	 * and the configuration is valid until the disconnection.
8896 	 */
8897 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8898 
8899 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
8900 	 * Query timeout. If this configuration is enabled STA shall not send
8901 	 * Deauthentication frmae when SA Query times out (mainly, after a
8902 	 * channel switch when OCV is enabled).
8903 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8904 	 * This attribute is used to configure the testbed device.
8905 	 * This attribute can be configured only when STA is in associated state
8906 	 * and the configuration is valid until the disconnection.
8907 	 */
8908 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8909 
8910 	/* 8-bit unsigned value to configure the driver/firmware to start or
8911 	 * stop transmitting FILS discovery frames.
8912 	 * 0 - Stop transmitting FILS discovery frames
8913 	 * 1 - Start transmitting FILS discovery frames
8914 	 * This attribute is used to configure the testbed device.
8915 	 * This attribute can be configured only in AP mode and the
8916 	 * configuration is valid until AP restart.
8917 	 */
8918 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8919 
8920 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8921 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8922 	 * information field.
8923 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
8924 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
8925 	 * This attribute is used to configure the testbed device.
8926 	 */
8927 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8928 
8929 	/* 16-bit unsigned value to configure the driver with a specific BSS
8930 	 * max idle period to advertise in the BSS Max Idle Period element
8931 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8932 	 * This attribute is used to configure the testbed device.
8933 	 */
8934 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8935 
8936 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
8937 	 * for data transmission.
8938 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8939 	 * This attribute is used to configure the testbed device.
8940 	 */
8941 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8942 
8943 	/* 8-bit unsigned value to configure the driver to disable data and
8944 	 * management response frame transmission to test the BSS max idle
8945 	 * feature.
8946 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
8947 	 * This attribute is used to configure the testbed device.
8948 	 */
8949 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8950 
8951 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8952 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8953 	 * information field.
8954 	 * 0 - Disable Punctured Preamble Rx subfield
8955 	 * 1 - Enable Punctured Preamble Rx subfield
8956 	 * This attribute is used to configure the testbed device.
8957 	 */
8958 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8959 
8960 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8961 	 * requirement mismatch for 6 GHz connection.
8962 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8963 	 * This attribute is used to configure the testbed device.
8964 	 */
8965 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8966 
8967 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
8968 	 * connection with all security modes.
8969 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8970 	 * modes.
8971 	 * This attribute is used for testing purposes.
8972 	 */
8973 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8974 
8975 	/* 8-bit unsigned value to configure the driver to transmit data with
8976 	 * ER SU PPDU type.
8977 	 *
8978 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8979 	 * This attribute is used for testing purposes.
8980 	 */
8981 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8982 
8983 	/* 8-bit unsigned value to configure the driver to use Data or
8984 	 * Management frame type for keep alive data.
8985 	 * Uses enum qca_wlan_keep_alive_data_type values.
8986 	 *
8987 	 * This attribute is used for testing purposes.
8988 	 */
8989 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8990 
8991 	/* 8-bit unsigned value to configure the driver to use scan request
8992 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
8993 	 * driver saves this configuration and applies this setting to all user
8994 	 * space scan requests until the setting is cleared. If this
8995 	 * configuration is set, the driver uses the BSSID value from the scan
8996 	 * request to set the RA(A1) in the Probe Request frames during the
8997 	 * scan.
8998 	 *
8999 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9000 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9001 	 * This attribute is used for testing purposes.
9002 	 */
9003 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9004 
9005 	/* 8-bit unsigned value to configure the driver to enable/disable the
9006 	 * BSS max idle period support.
9007 	 *
9008 	 * 0 - Disable the BSS max idle support.
9009 	 * 1 - Enable the BSS max idle support.
9010 	 * This attribute is used for testing purposes.
9011 	 */
9012 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9013 
9014 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9015 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9016 	 * capabilities information field.
9017 	 * 0 - Disable Rx control frame to MultiBSS subfield
9018 	 * 1 - Enable Rx control frame to MultiBSS subfield
9019 	 * This attribute is used to configure the testbed device.
9020 	 */
9021 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9022 
9023 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9024 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9025 	 * information field.
9026 	 * 0 - Disable Broadcast TWT support subfield
9027 	 * 1 - Enable Broadcast TWT support subfield
9028 	 * This attribute is used to configure the testbed device.
9029 	 */
9030 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9031 
9032 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9033 	 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9034 	 * to 1, and if the firmware supports this capability too, the STA
9035 	 * advertises this capability to the AP over Association Request frame.
9036 	 * This attribute will not have any effect on legacy devices with no
9037 	 * IEEE 802.11be support.
9038 	 * 0 - Default behavior
9039 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9040 	 * This attribute is used to configure the testbed device.
9041 	 */
9042 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9043 
9044 	/* 8-bit unsigned value to configure the driver to enable/disable the
9045 	 * periodic sounding for Tx beamformer functionality. The default
9046 	 * behavior uses algorithm to do sounding based on packet stats.
9047 	 *
9048 	 * 0 - Default behavior.
9049 	 * 1 - Enable the periodic sounding for Tx beamformer.
9050 	 * This attribute is used for testing purposes.
9051 	 */
9052 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9053 
9054 	/* keep last */
9055 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9056 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9057 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9058 };
9059 
9060 /**
9061  * enum qca_wlan_twt_operation - Operation of the config TWT request
9062  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9063  * The response for the respective operations can be either synchronous or
9064  * asynchronous (wherever specified). If synchronous, the response to this
9065  * operation is obtained in the corresponding vendor command reply to the user
9066  * space. For the asynchronous case the response is obtained as an event with
9067  * the same operation type.
9068  *
9069  * Drivers shall support either of these modes but not both simultaneously.
9070  * This support for asynchronous mode is advertised through the flag
9071  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9072  * the driver shall support synchronous mode.
9073  *
9074  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9075  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9076  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9077  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9078  * synchronous or asynchronous operation.
9079  *
9080  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9081  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9082  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9083  *
9084  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9085  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9086  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9087  * This terminate can either get triggered by the user space or can as well be
9088  * a notification from the firmware if it initiates a terminate.
9089  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9090  * the request from user space can either be a synchronous or asynchronous
9091  * operation.
9092  *
9093  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9094  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9095  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9096  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9097  * this is either a synchronous or asynchronous operation.
9098  *
9099  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9100  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9101  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9102  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9103  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9104  * capability, this is either a synchronous or asynchronous operation.
9105  *
9106  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9107  * combination of suspend and resume in a single request. Required parameters
9108  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9109  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9110  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9111  * capability, this is either a synchronous or asynchronous operation.
9112  *
9113  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9114  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9115  * session is setup. It's a synchronous operation.
9116  *
9117  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9118  * Valid only after the TWT session is setup. It's a synchronous operation.
9119  *
9120  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9121  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9122  * operation.
9123  *
9124  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9125  * ready for a new TWT session setup after it issued a TWT teardown.
9126  *
9127  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9128  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9129  * the enum qca_wlan_vendor_attr_twt_set_param.
9130  *
9131  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9132  * related information for example TWT required bit in AP capabilities etc.
9133  * The reason for the notification is sent using
9134  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9135  */
9136 enum qca_wlan_twt_operation {
9137 	QCA_WLAN_TWT_SET = 0,
9138 	QCA_WLAN_TWT_GET = 1,
9139 	QCA_WLAN_TWT_TERMINATE = 2,
9140 	QCA_WLAN_TWT_SUSPEND = 3,
9141 	QCA_WLAN_TWT_RESUME = 4,
9142 	QCA_WLAN_TWT_NUDGE = 5,
9143 	QCA_WLAN_TWT_GET_STATS = 6,
9144 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9145 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9146 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9147 	QCA_WLAN_TWT_SET_PARAM = 10,
9148 	QCA_WLAN_TWT_NOTIFY = 11,
9149 };
9150 
9151 /**
9152  * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9153  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9154  *
9155  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
9156  * operation of this request. Possible values are defined in enum
9157  * qca_wlan_twt_operation. The parameters for the respective operation is
9158  * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9159  *
9160  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9161  * parameters configured for TWT. These parameters are represented by
9162  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9163  * enum qca_wlan_vendor_attr_twt_set_param, or
9164  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9165  *
9166  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9167  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9168  * The values used by this attribute are defined in
9169  * enum qca_wlan_vendor_twt_status.
9170  */
9171 enum qca_wlan_vendor_attr_config_twt {
9172 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9173 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9174 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9175 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9176 
9177 	/* keep last */
9178 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9179 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9180 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9181 };
9182 
9183 /**
9184  * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
9185  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9186  * The user can add/delete the filter by specifying the BSSID/STA MAC address in
9187  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
9188  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
9189  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
9190  * statistics of an unassociated station by specifying the MAC address in
9191  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
9192  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
9193  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
9194  * the statistics of all unassociated stations by specifying the Broadcast MAC
9195  * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
9196  * above procedure. In the response, driver shall specify statistics
9197  * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
9198  */
9199 enum qca_wlan_vendor_attr_bss_filter {
9200 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
9201 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
9202 	/* Other BSS filter type, unsigned 8 bit value. One of the values
9203 	 * in enum qca_wlan_vendor_bss_filter_type.
9204 	 */
9205 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
9206 	/* Other BSS filter action, unsigned 8 bit value. One of the values
9207 	 * in enum qca_wlan_vendor_bss_filter_action.
9208 	 */
9209 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
9210 	/* Array of nested attributes where each entry is the statistics
9211 	 * information of the specified station that belong to another BSS.
9212 	 * Attributes for each entry are taken from enum
9213 	 * qca_wlan_vendor_bss_filter_sta_stats.
9214 	 * Other BSS station configured in
9215 	 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
9216 	 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
9217 	 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
9218 	 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
9219 	 */
9220 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
9221 
9222 	/* keep last */
9223 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
9224 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
9225 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
9226 };
9227 
9228 /**
9229  * enum qca_wlan_vendor_bss_filter_type - Type of
9230  * filter used in other BSS filter operations. Used by the vendor command
9231  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9232  *
9233  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
9234  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
9235  */
9236 enum qca_wlan_vendor_bss_filter_type {
9237 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
9238 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
9239 };
9240 
9241 /**
9242  * enum qca_wlan_vendor_bss_filter_action - Type of
9243  * action in other BSS filter operations. Used by the vendor command
9244  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9245  *
9246  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
9247  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
9248  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
9249  */
9250 enum qca_wlan_vendor_bss_filter_action {
9251 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
9252 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
9253 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
9254 };
9255 
9256 /**
9257  * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
9258  * the statistics of a specific unassociated station belonging to another BSS.
9259  * The statistics provides information of the unassociated station
9260  * filtered by other BSS operation - such as MAC, signal value.
9261  * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9262  *
9263  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
9264  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
9265  *	of the station. Unsigned 8 bit number containing RSSI.
9266  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
9267  *	driver for the last received RSSI. Unsigned 64 bit number containing
9268  *	nanoseconds from the boottime.
9269  */
9270 enum qca_wlan_vendor_bss_filter_sta_stats {
9271 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
9272 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
9273 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
9274 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
9275 
9276 	/* keep last */
9277 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
9278 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
9279 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
9280 };
9281 
9282 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9283  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9284  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9285  */
9286 enum qca_wlan_nan_ext_subcmd_type {
9287 	/* Subcmd of type NAN Enable Request */
9288 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9289 	/* Subcmd of type NAN Disable Request */
9290 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9291 };
9292 
9293 /**
9294  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9295  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9296  */
9297 enum qca_wlan_vendor_attr_nan_params {
9298 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9299 	/* Carries NAN command for firmware component. Every vendor command
9300 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9301 	 * payload containing the NAN command. NLA_BINARY attribute.
9302 	 */
9303 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9304 	/* Indicates the type of NAN command sent with
9305 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9306 	 * describes the possible range of values. This attribute is mandatory
9307 	 * if the command being issued is either
9308 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9309 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9310 	 */
9311 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9312 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9313 	 * band. This attribute is mandatory when command type is
9314 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9315 	 */
9316 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9317 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9318 	 * band. This attribute is optional and should be included when command
9319 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9320 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9321 	 */
9322 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9323 
9324 	/* keep last */
9325 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9326 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9327 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9328 };
9329 
9330 /**
9331  * qca_wlan_twt_setup_state: Represents the TWT session states.
9332  *
9333  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9334  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9335  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9336  */
9337 enum qca_wlan_twt_setup_state {
9338 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9339 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9340 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9341 };
9342 
9343 /**
9344  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9345  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9346  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9347  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9348  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9349  *
9350  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9351  * Disable (flag attribute not present) - Individual TWT
9352  * Enable (flag attribute present) - Broadcast TWT.
9353  * Individual means the session is between the STA and the AP.
9354  * This session is established using a separate negotiation between
9355  * STA and AP.
9356  * Broadcast means the session is across multiple STAs and an AP. The
9357  * configuration parameters are announced in Beacon frames by the AP.
9358  * This is used in
9359  * 1. TWT SET Request and Response
9360  * 2. TWT GET Response
9361  *
9362  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9363  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9364  * specify the TWT request type. This is used in TWT SET operation.
9365  *
9366  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9367  * Enable (flag attribute present) - TWT with trigger support.
9368  * Disable (flag attribute not present) - TWT without trigger support.
9369  * Trigger means the AP will send the trigger frame to allow STA to send data.
9370  * Without trigger, the STA will wait for the MU EDCA timer before
9371  * transmitting the data.
9372  * This is used in
9373  * 1. TWT SET Request and Response
9374  * 2. TWT GET Response
9375  *
9376  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9377  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9378  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9379  * NULL frame to AP.
9380  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9381  * This is a required parameter for
9382  * 1. TWT SET Request and Response
9383  * 2. TWT GET Response
9384  *
9385  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9386  * Flow ID is the unique identifier for each TWT session.
9387  * If not provided then dialog ID will be set to zero.
9388  * This is an optional parameter for
9389  * 1. TWT SET Request and Response
9390  * 2. TWT GET Request and Response
9391  * 3. TWT TERMINATE Request and Response
9392  * 4. TWT SUSPEND Request and Response
9393  * Flow ID values from 0 to 254 represent a single TWT session
9394  * Flow ID value of 255 represents all TWT sessions for the following
9395  * 1. TWT TERMINATE Request and Response
9396  * 2. TWT SUSPEND Request and Response
9397  * 4. TWT CLEAR STATISTICS request
9398  * 5. TWT GET STATISTICS request and response
9399  * If an invalid dialog ID is provided, status
9400  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9401  *
9402  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9403  * This attribute (exp) is used along with the mantissa to derive the
9404  * wake interval using the following formula:
9405  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9406  * Wake interval is the interval between 2 successive SP.
9407  * This is a required parameter for
9408  * 1. TWT SET Request and Response
9409  * 2. TWT GET Response
9410  *
9411  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9412  * Enable (flag attribute present) - Protection required.
9413  * Disable (flag attribute not present) - Protection not required.
9414  * If protection is enabled, then the AP will use protection
9415  * mechanism using RTS/CTS to self to reserve the airtime.
9416  * This is used in
9417  * 1. TWT SET Request and Response
9418  * 2. TWT GET Response
9419  *
9420  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9421  * This attribute is used as the SP offset which is the offset from
9422  * TSF after which the wake happens. The units are in microseconds. If
9423  * this attribute is not provided, then the value will be set to zero.
9424  * This is an optional parameter for
9425  * 1. TWT SET Request and Response
9426  * 2. TWT GET Response
9427  *
9428  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9429  * This is the duration of the service period. This is specified as
9430  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9431  * This is a required parameter for
9432  * 1. TWT SET Request and Response
9433  * 2. TWT GET Response
9434  *
9435  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9436  * This attribute is used to configure wake interval mantissa.
9437  * The units are in TU.
9438  * This is a required parameter for
9439  * 1. TWT SET Request and Response
9440  * 2. TWT GET Response
9441  *
9442  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9443  * This field is applicable for TWT response only.
9444  * This contains status values in enum qca_wlan_vendor_twt_status
9445  * and is passed to the userspace. This is used in TWT SET operation.
9446  * This is a required parameter for
9447  * 1. TWT SET Response
9448  * 2. TWT TERMINATE Response
9449  * 3. TWT SUSPEND Response
9450  * 4. TWT RESUME Response
9451  * 5. TWT NUDGE Response
9452  *
9453  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9454  * This field is applicable for TWT response only.
9455  * This field contains response type from the TWT responder and is
9456  * passed to the userspace. The values for this field are defined in
9457  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9458  * response.
9459  *
9460  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9461  * In TWT setup command this field contains absolute TSF that will
9462  * be used by TWT requester during setup.
9463  * In TWT response this field contains absolute TSF value of the
9464  * wake time received from the TWT responder and is passed to
9465  * the userspace.
9466  * This is an optional parameter for
9467  * 1. TWT SET Request
9468  * This is a required parameter for
9469  * 1. TWT SET Response
9470  * 2. TWT GET Response
9471  *
9472  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9473  * Enable (flag attribute present) - Indicates that the TWT responder
9474  * supports reception of TWT information frame from the TWT requestor.
9475  * Disable (flag attribute not present) - Indicates that the responder
9476  * doesn't support reception of TWT information frame from requestor.
9477  * This is used in
9478  * 1. TWT SET Response
9479  * 2. TWT GET Response
9480  *
9481  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9482  * Represents the MAC address of the peer for which the TWT session
9483  * is being configured. This is used in AP mode to represent the respective
9484  * client.
9485  * In AP mode, this is a required parameter in response for
9486  * 1. TWT SET
9487  * 2. TWT GET
9488  * 3. TWT TERMINATE
9489  * 4. TWT SUSPEND
9490  * In STA mode, this is an optional parameter in request and response for
9491  * the above four TWT operations.
9492  * In AP mode, this is a required parameter in request for
9493  * 1. TWT GET
9494  * 2. TWT TERMINATE
9495  *
9496  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9497  * Minimum tolerance limit of wake interval parameter in microseconds.
9498  *
9499  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9500  * Maximum tolerance limit of wake interval parameter in microseconds.
9501  *
9502  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9503  * Minimum tolerance limit of wake duration parameter in microseconds.
9504  *
9505  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9506  * Maximum tolerance limit of wake duration parameter in microseconds.
9507  *
9508  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9509  * TWT state for the given dialog id. The values for this are represented
9510  * by enum qca_wlan_twt_setup_state.
9511  * This is obtained through TWT GET operation.
9512  *
9513  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9514  * This attribute is used to configure wake interval mantissa.
9515  * The unit is microseconds. This attribute, when specified, takes
9516  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9517  * This parameter is used for
9518  * 1. TWT SET Request and Response
9519  * 2. TWT GET Response
9520  *
9521  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9522  * This attribute is used to configure Broadcast TWT ID.
9523  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9524  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9525  * This parameter is used for
9526  * 1. TWT SET Request
9527  * 2. TWT TERMINATE Request
9528  *
9529  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9530  * This attribute is used to configure Broadcast TWT recommendation.
9531  * The Broadcast TWT Recommendation subfield contains a value that indicates
9532  * recommendations on the types of frames that are transmitted by TWT
9533  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9534  * The allowed values are 0 - 3.
9535  * This parameter is used for
9536  * 1. TWT SET Request
9537  *
9538  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9539  * This attribute is used to configure Broadcast TWT Persistence.
9540  * The Broadcast TWT Persistence subfield indicates the number of
9541  * TBTTs during which the Broadcast TWT SPs corresponding to this
9542  * broadcast TWT Parameter set are present. The number of beacon intervals
9543  * during which the Broadcast TWT SPs are present is equal to the value in the
9544  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9545  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9546  * This parameter is used for
9547  * 1. TWT SET Request
9548  *
9549  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9550  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9551  * from TWT response frame.
9552  * This parameter is used for
9553  * 1. TWT SET Response
9554  * 2. TWT GET Response
9555  *
9556  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9557  * This attribute is used to configure the announce timeout value (in us) in
9558  * the firmware. This timeout value is only applicable for the announced TWT. If
9559  * the timeout value is non-zero the firmware waits up to the timeout value to
9560  * use Data frame as an announcement frame. If the timeout value is 0 the
9561  * firmware sends an explicit QoS NULL frame as the announcement frame on SP
9562  * start. The default value in the firmware is 0.
9563  * This parameter is used for
9564  * 1. TWT SET Request
9565  */
9566 enum qca_wlan_vendor_attr_twt_setup {
9567 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9568 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9569 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9570 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9571 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9572 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9573 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9574 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9575 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9576 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9577 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9578 
9579 	/* TWT Response only attributes */
9580 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9581 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9582 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9583 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9584 
9585 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9586 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9587 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9588 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9589 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9590 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9591 
9592 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9593 
9594 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9595 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9596 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9597 
9598 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9599 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9600 
9601 	/* keep last */
9602 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9603 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9604 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9605 };
9606 
9607 /**
9608  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9609  * TWT operation
9610  *
9611  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9612  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9613  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9614  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9615  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9616  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9617  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9618  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9619  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9620  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9621  * request/response frame
9622  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9623  * frame
9624  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9625  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9626  * unknown reason
9627  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9628  * suspend state
9629  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9630  * invalid IE in the received TWT frame
9631  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9632  * the responder are not in the specified range
9633  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9634  * session due to request from the responder. Used on the TWT_TERMINATE
9635  * notification from the firmware.
9636  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9637  * session due to roaming. Used on the TWT_TERMINATE notification from the
9638  * firmware.
9639  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9640  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
9641  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9642  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9643  * request due to roaming in progress.
9644  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9645  * setup request due to channel switch in progress.
9646  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9647  * request due to scan in progress.
9648  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9649  * terminate an existing TWT session on power save exit request from userspace.
9650  * Used on the TWT_TERMINATE notification from the driver/firmware.
9651  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9652  * required bit in its capabilities.
9653  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9654  * the TWT required bit(1->0) in its capabilities.
9655  */
9656 enum qca_wlan_vendor_twt_status {
9657 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9658 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9659 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9660 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9661 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9662 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9663 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9664 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9665 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9666 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9667 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9668 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9669 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9670 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9671 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9672 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9673 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9674 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9675 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9676 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9677 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9678 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9679 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9680 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9681 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9682 };
9683 
9684 /**
9685  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9686  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9687  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9688  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9689  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9690  *
9691  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9692  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9693  * These attributes are used as the SP offset which is the offset from TSF after
9694  * which the wake happens. The units are in microseconds. Please note that
9695  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9696  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9697  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9698  * will be set to zero.
9699  *
9700  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9701  * This attribute represents the next TWT subfield size.
9702  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9703  * and 4 for 64 bits.
9704  *
9705  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9706  * Flow ID is the unique identifier for each TWT session. This attribute
9707  * represents the respective TWT session to resume.
9708  * Flow ID values from 0 to 254 represent a single TWT session
9709  * Flow ID value of 255 represents all TWT sessions.
9710  * If an invalid dialog id is provided, status
9711  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9712  *
9713  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9714  * Represents the MAC address of the peer to which TWT Resume is
9715  * being sent. This is used in AP mode to represent the respective
9716  * client and is a required parameter. In STA mode, this is an optional
9717  * parameter
9718  */
9719 enum qca_wlan_vendor_attr_twt_resume {
9720 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9721 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9722 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9723 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9724 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9725 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9726 
9727 	/* keep last */
9728 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9729 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9730 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9731 };
9732 
9733 /**
9734  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9735  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9736  * and resume in a single request. These attributes are sent as part of
9737  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9738  *
9739  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9740  * Flow ID is the unique identifier for each TWT session. This attribute
9741  * represents the respective TWT session to suspend and resume.
9742  * Flow ID values from 0 to 254 represent a single TWT session
9743  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9744  * and response.
9745  * If an invalid dialog id is provided, status
9746  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9747  *
9748  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9749  * This attribute is used as the SP offset which is the offset from
9750  * TSF after which the wake happens. The units are in microseconds.
9751  *
9752  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9753  * This attribute represents the next TWT subfield size.
9754  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9755  * and 4 for 64 bits.
9756  *
9757  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9758  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9759  * being sent. This is used in AP mode to represent the respective
9760  * client and is a required parameter. In STA mode, this is an optional
9761  * parameter.
9762  *
9763  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9764  * This field contains absolute TSF value of the time at which the TWT
9765  * session will be resumed.
9766  *
9767  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9768  * This field will be used when device supports Flexible TWT.
9769  * This field contains an offset value by which to shift the starting time
9770  * of the next service period. The value of offset can be negative or positive.
9771  * If provided, this attribute will override
9772  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
9773  *
9774  */
9775 enum qca_wlan_vendor_attr_twt_nudge {
9776 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9777 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9778 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9779 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9780 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9781 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9782 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
9783 
9784 	/* keep last */
9785 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9786 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9787 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9788 };
9789 
9790 /**
9791  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9792  * TWT (Target Wake Time) get statistics and clear statistics request.
9793  * These attributes are sent as part of
9794  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9795  *
9796  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9797  * Flow ID is the unique identifier for each TWT session. This attribute
9798  * represents the respective TWT session for get and clear TWT statistics.
9799  * Flow ID values from 0 to 254 represent a single TWT session
9800  * Flow ID value of 255 represents all TWT sessions in
9801  * 1) TWT GET STATISTICS request and response
9802  * 2) TWT CLEAR STATISTICS request
9803  *
9804  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9805  * Represents the MAC address of the peer for which TWT Statistics
9806  * is required.
9807  * In AP mode this is used to represent the respective
9808  * client and is a required parameter for
9809  * 1) TWT GET STATISTICS request and response
9810  * 2) TWT CLEAR STATISTICS request and response
9811  * In STA mode, this is an optional parameter.
9812  *
9813  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9814  * This is the duration of the service period in microseconds.
9815  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9816  *
9817  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9818  * Average of the actual wake duration observed so far. Unit is microseconds.
9819  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9820  *
9821  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9822  * The number of TWT service periods elapsed so far.
9823  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9824  *
9825  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9826  * This is the minimum value of the wake duration observed across
9827  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9828  * microseconds.
9829  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9830  *
9831  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
9832  * This is the maximum value of wake duration observed across
9833  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9834  * microseconds.
9835  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9836  *
9837  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9838  * Average number of MPDUs transmitted successfully across
9839  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9840  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9841  *
9842  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9843  * Average number of MPDUs received successfully across
9844  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9845  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9846  *
9847  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9848  * Average number of bytes transmitted successfully across
9849  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9850  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9851  *
9852  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
9853  * Average number of bytes received successfully across
9854  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9855  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9856  *
9857  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9858  * Status of the TWT GET STATISTICS request.
9859  * This contains status values in enum qca_wlan_vendor_twt_status
9860  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9861  */
9862 enum qca_wlan_vendor_attr_twt_stats {
9863 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9864 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9865 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9866 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9867 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9868 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9869 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9870 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9871 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9872 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9873 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9874 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9875 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9876 
9877 	/* keep last */
9878 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9879 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9880 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9881 };
9882 
9883 /**
9884  * qca_wlan_twt_get_capa  - Represents the bitmap of TWT capabilities
9885  * supported by the device and the peer.
9886  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9887  *
9888  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9889  * TWT non-scheduling STA. This capability is advertised in the HE
9890  * Capability/Extended Capabilities information element in the
9891  * Association Request frame by the device.
9892  *
9893  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
9894  * the TWT scheduling AP. This capability is advertised in the Extended
9895  * Capabilities/HE Capabilities information element.
9896  *
9897  * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
9898  * for the broadcast TWT functionality. On the responder side, this indicates
9899  * support for the role of broadcast TWT scheduling functionality. This
9900  * capability is advertised in the HE Capabilities information element.
9901  *
9902  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
9903  * This capability is advertised in the HE Capabilities information element.
9904  *
9905  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9906  * that it mandates the associated HE STAs to support TWT. This capability is
9907  * advertised by AP in the HE Operation Parameters field of the HE Operation
9908  * information element.
9909  */
9910 enum qca_wlan_twt_capa {
9911 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9912 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9913 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9914 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
9915 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
9916 };
9917 
9918 /**
9919  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
9920  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9921  * operation.
9922  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9923  * Represents the MAC address of the peer for which the TWT capabilities
9924  * are being queried. This is used in AP mode to represent the respective
9925  * client. In STA mode, this is an optional parameter.
9926  *
9927  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9928  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9929  * enum qca_wlan_twt_capa.
9930  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9931  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9932  * enum qca_wlan_twt_capa.
9933  */
9934 enum qca_wlan_vendor_attr_twt_capability {
9935 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9936 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9937 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9938 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9939 
9940 	/* keep last */
9941 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9942 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9943 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9944 };
9945 
9946 /**
9947  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9948  * TWT (Target Wake Time) related parameters. It is used when
9949  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9950  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9951  *
9952  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9953  * This attribute configures AC parameters to be used for all TWT
9954  * sessions in AP mode.
9955  * Uses the enum qca_wlan_ac_type values.
9956  */
9957 enum qca_wlan_vendor_attr_twt_set_param {
9958 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9959 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9960 
9961 	/* keep last */
9962 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9963 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9964 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9965 };
9966 
9967 /**
9968  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9969  * the TWT responder
9970  *
9971  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9972  * parameters that are different from TWT requesting STA suggested
9973  * or demanded TWT parameters
9974  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9975  * parameters that are different from TWT requesting STA TWT suggested
9976  * or demanded parameters
9977  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9978  * setup
9979  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9980  * setup.
9981  */
9982 enum qca_wlan_vendor_twt_setup_resp_type {
9983 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9984 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9985 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9986 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9987 };
9988 
9989 /**
9990  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9991  * Represents the setup type being requested for TWT.
9992  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9993  * parameters but relying on AP to fill the parameters during the negotiation.
9994  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9995  * values which the AP may accept or AP may provide alternative parameters
9996  * which the STA may accept.
9997  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9998  * alternate parameters than the requested ones.
9999  */
10000 enum qca_wlan_vendor_twt_setup_req_type {
10001 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10002 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10003 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10004 };
10005 
10006 /**
10007  * enum qca_wlan_roam_scan_event_type - Type of roam scan event
10008  *
10009  * Indicates the type of roam scan event sent by firmware/driver.
10010  *
10011  * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
10012  * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
10013  */
10014 enum qca_wlan_roam_scan_event_type {
10015 	QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
10016 	QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
10017 };
10018 
10019 /**
10020  * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
10021  *
10022  * Indicates the reason for triggering roam scan by firmware/driver.
10023  *
10024  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
10025  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
10026  */
10027 enum qca_wlan_roam_scan_trigger_reason {
10028 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
10029 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
10030 };
10031 
10032 /**
10033  * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
10034  * roam scan related details from driver/firmware to user space. enum values
10035  * are used for NL attributes sent with
10036  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
10037  */
10038 enum qca_wlan_vendor_attr_roam_scan {
10039 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
10040 	/* Encapsulates type of roam scan event being reported. enum
10041 	 * qca_wlan_roam_scan_event_type describes the possible range of
10042 	 * values. u32 attribute.
10043 	 */
10044 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
10045 	/* Encapsulates reason for triggering roam scan. enum
10046 	 * qca_wlan_roam_scan_trigger_reason describes the possible range of
10047 	 * values. u32 attribute.
10048 	 */
10049 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
10050 
10051 	/* keep last */
10052 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
10053 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
10054 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
10055 };
10056 
10057 /**
10058  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10059  * transport modes and is used by the attribute
10060  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
10061  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10062  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
10063  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10064  * data. The data shall be encapsulated within
10065  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
10066  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10067  */
10068 enum qca_wlan_vendor_cfr_data_transport_modes {
10069 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10070 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10071 };
10072 
10073 /**
10074  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10075  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10076  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10077  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
10078  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
10079  * with phase
10080  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
10081  */
10082 enum qca_wlan_vendor_cfr_method {
10083 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10084 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10085 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10086 };
10087 
10088 /**
10089  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10090  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10091  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10092  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10093  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10094  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10095  * is provided by one or more of below attributes:
10096  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10097  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10098  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10099  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10100  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10101  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10102  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10103  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10104  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10105  */
10106 enum qca_wlan_vendor_cfr_capture_type {
10107 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10108 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10109 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10110 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10111 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10112 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10113 };
10114 
10115 /**
10116  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10117  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10118  * Channel Frequency Response capture parameters and enable periodic CFR
10119  * capture.
10120  *
10121  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10122  * MAC address of peer. This is for CFR version 1 only.
10123  *
10124  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10125  * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
10126  * capture. If this attribute is not present, peer CFR capture is disabled.
10127  *
10128  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10129  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10130  * Supported values: 20, 40, 80, 80+80, 160.
10131  * Note that all targets may not support all bandwidths.
10132  * This attribute is mandatory for version 1 if attribute
10133  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10134  *
10135  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10136  * Periodicity of CFR measurement in milliseconds.
10137  * Periodicity should be a multiple of Base timer.
10138  * Current Base timer value supported is 10 milliseconds (default).
10139  * 0 for one shot capture.
10140  * This attribute is mandatory for version 1 if attribute
10141  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10142  *
10143  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10144  * Method used to capture Channel Frequency Response.
10145  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10146  * This attribute is mandatory for version 1 if attribute
10147  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10148  *
10149  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10150  * Enable periodic CFR capture.
10151  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10152  * If this attribute is not present, periodic CFR capture is disabled.
10153  *
10154  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
10155  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10156  * can't be enabled at same time. This attribute is mandatory if target
10157  * support both versions and use one of them.
10158  *
10159  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10160  * This attribute is mandatory for version 2 if
10161  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10162  * Bits 15:0 bitfield indicates which group is to be enabled.
10163  * Bits 31:16 Reserved for future use.
10164  *
10165  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10166  * CFR capture duration in microsecond. This attribute is mandatory for
10167  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10168  *
10169  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10170  * CFR capture interval in microsecond. This attribute is mandatory for
10171  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10172  *
10173  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10174  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10175  * This attribute is mandatory for version 2.
10176  *
10177  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10178  * Bitfield indicating which user in the current UL MU transmissions are
10179  * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
10180  * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
10181  * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
10182  * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
10183  * reserved for future use. This is for CFR version 2 only.
10184  *
10185  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10186  * Indicates the number of consecutive RX frames to be skipped before CFR
10187  * capture is enabled again. This is for CFR version 2 only.
10188  *
10189  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10190  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10191  *
10192  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10193  * the following group attributes:
10194  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10195  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10196  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10197  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10198  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10199  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10200  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10201  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10202  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10203  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10204  *
10205  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10206  * Target supports multiple groups for some configurations. The group number
10207  * can be any value between 0 and 15. This is for CFR version 2 only.
10208  *
10209  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10210  * Transmitter address which is used to filter frames. This MAC address takes
10211  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
10212  * version 2 only.
10213  *
10214  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10215  * Receiver address which is used to filter frames. This MAC address takes
10216  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
10217  * version 2 only.
10218  *
10219  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10220  * Mask of transmitter address which is used to filter frames. This is for CFR
10221  * version 2 only.
10222  *
10223  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10224  * Mask of receiver address which is used to filter frames. This is for CFR
10225  * version 2 only.
10226  *
10227  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10228  * Indicates frames with a specific NSS will be filtered for CFR capture.
10229  * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
10230  * capture to be done for frames matching the NSS specified within this bitmask.
10231  * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
10232  *     bit 0 : NSS 1
10233  *     bit 1 : NSS 2
10234  *     ...
10235  *     bit 7 : NSS 8
10236  *
10237  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10238  * Indicates frames with a specific bandwidth will be filtered for CFR capture.
10239  * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
10240  * capture to be done for frames matching the bandwidths specified within this
10241  * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
10242  * numerated in enum nl80211_band (although not all bands may be supported
10243  * by a given device).
10244  *
10245  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10246  * Management frames matching the subtype filter categories will be filtered in
10247  * by MAC for CFR capture. This is a bitmask in which each bit represents the
10248  * corresponding Management frame subtype value per IEEE Std 802.11-2016,
10249  * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
10250  * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
10251  *
10252  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10253  * Control frames matching the subtype filter categories will be filtered in by
10254  * MAC for CFR capture. This is a bitmask in which each bit represents the
10255  * corresponding Control frame subtype value per IEEE Std 802.11-2016,
10256  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10257  *
10258  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10259  * Data frames matching the subtype filter categories will be filtered in by
10260  * MAC for CFR capture. This is a bitmask in which each bit represents the
10261  * corresponding Data frame subtype value per IEEE Std 802.11-2016,
10262  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10263  *
10264  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10265  * Userspace can use this attribute to specify the driver about which transport
10266  * mode shall be used by the driver to send CFR data to userspace. Uses values
10267  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10268  * not present, the driver shall use the default transport mechanism which is
10269  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10270  *
10271  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10272  * Userspace can use this attribute to specify the nl port id of the application
10273  * which receives the CFR data and processes it further so that the drivers can
10274  * unicast the netlink events to a specific application. Optionally included
10275  * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10276  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10277  * shall multicast the netlink events when this attribute is not included.
10278  *
10279  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10280  * This attribute will be used by the driver to encapsulate and send CFR data
10281  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10282  * asynchronous event when the driver is configured to send CFR data using
10283  * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
10284  */
10285 enum qca_wlan_vendor_peer_cfr_capture_attr {
10286 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10287 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10288 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10289 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10290 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10291 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10292 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10293 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10294 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10295 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10296 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10297 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10298 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10299 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10300 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10301 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10302 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10303 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10304 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10305 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10306 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10307 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10308 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10309 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10310 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10311 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10312 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10313 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10314 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10315 
10316 	/* Keep last */
10317 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10318 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10319 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10320 };
10321 
10322 /**
10323  * enum qca_wlan_throughput_level - Current throughput level
10324  *
10325  * Indicates the current level of throughput calculated by the driver. The
10326  * driver may choose different thresholds to decide whether the throughput level
10327  * is low or medium or high based on variety of parameters like physical link
10328  * capacity of the current connection, the number of packets being dispatched
10329  * per second, etc. The throughput level events might not be consistent with the
10330  * actual current throughput value being observed.
10331  *
10332  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10333  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10334  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10335  */
10336 enum qca_wlan_throughput_level {
10337 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10338 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10339 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10340 };
10341 
10342 /**
10343  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10344  * report throughput changes from the driver to user space. enum values are used
10345  * for netlink attributes sent with
10346  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10347  */
10348 enum qca_wlan_vendor_attr_throughput_change {
10349 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10350 	/* Indicates the direction of throughput in which the change is being
10351 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10352 	 */
10353 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10354 	/* Indicates the newly observed throughput level. enum
10355 	 * qca_wlan_throughput_level describes the possible range of values.
10356 	 * u8 attribute.
10357 	 */
10358 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10359 	/* Indicates the driver's guidance on the new value to be set to
10360 	 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10361 	 * driver may optionally include this attribute.
10362 	 */
10363 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10364 	/* Indicates the driver's guidance on the new value to be set to
10365 	 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10366 	 * values are from -31 to 31. The driver may optionally include this
10367 	 * attribute.
10368 	 */
10369 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10370 	/* Indicates the driver's guidance on the new value to be set to
10371 	 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10372 	 * optionally include this attribute.
10373 	 */
10374 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10375 
10376 	/* keep last */
10377 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10378 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10379 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10380 };
10381 
10382 /**
10383  * enum qca_coex_config_profiles - This enum defines different types of
10384  * traffic streams that can be prioritized one over the other during coex
10385  * scenarios.
10386  * The types defined in this enum are categorized in the below manner.
10387  * 0 - 31 values corresponds to WLAN
10388  * 32 - 63 values corresponds to BT
10389  * 64 - 95 values corresponds to Zigbee
10390  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10391  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10392  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10393  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10394  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10395  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10396  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10397  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10398  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10399  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10400  * @QCA_BT_A2DP: Prioritize BT A2DP
10401  * @QCA_BT_BLE: Prioritize BT BLE
10402  * @QCA_BT_SCO: Prioritize BT SCO
10403  * @QCA_ZB_LOW: Prioritize Zigbee Low
10404  * @QCA_ZB_HIGH: Prioritize Zigbee High
10405  */
10406 enum qca_coex_config_profiles {
10407 	/* 0 - 31 corresponds to WLAN */
10408 	QCA_WIFI_STA_DISCOVERY = 0,
10409 	QCA_WIFI_STA_CONNECTION = 1,
10410 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10411 	QCA_WIFI_STA_DATA = 3,
10412 	QCA_WIFI_STA_ALL = 4,
10413 	QCA_WIFI_SAP_DISCOVERY = 5,
10414 	QCA_WIFI_SAP_CONNECTION = 6,
10415 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10416 	QCA_WIFI_SAP_DATA = 8,
10417 	QCA_WIFI_SAP_ALL = 9,
10418 	QCA_WIFI_CASE_MAX = 31,
10419 	/* 32 - 63 corresponds to BT */
10420 	QCA_BT_A2DP = 32,
10421 	QCA_BT_BLE = 33,
10422 	QCA_BT_SCO = 34,
10423 	QCA_BT_CASE_MAX = 63,
10424 	/* 64 - 95 corresponds to Zigbee */
10425 	QCA_ZB_LOW = 64,
10426 	QCA_ZB_HIGH = 65,
10427 	QCA_ZB_CASE_MAX = 95,
10428 	/* 0xff is default value if the u8 profile value is not set. */
10429 	QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10430 };
10431 
10432 /**
10433  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10434  * This enum defines the valid set of values of coex configuration types. These
10435  * values may used by attribute
10436  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10437  *
10438  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10439  *	weights to default values.
10440  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10441  *	weights with configurability value.
10442  */
10443 enum qca_vendor_attr_coex_config_types {
10444 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10445 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10446 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10447 };
10448 
10449 /**
10450  * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
10451  *
10452  * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
10453  * length array of 8-bit values from enum qca_coex_config_profiles.
10454  * FW will prioritize the profiles in the order given in the array encapsulated
10455  * in this attribute.
10456  * For example:
10457  * -----------------------------------------------------------------------
10458  * |     1       |       34       |        32         |         65       |
10459  * -----------------------------------------------------------------------
10460  * If the attribute contains the values defined in above array then it means
10461  * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
10462  * 2) BT_SCO has priority over BT_A2DP.
10463  * 3) BT_A2DP has priority over ZIGBEE HIGH.
10464  * Profiles which are not listed in this array shall not be preferred over the
10465  * profiles which are listed in the array as a part of this attribute.
10466  */
10467 enum qca_vendor_attr_coex_config {
10468 	QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10469 	QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
10470 
10471 	/* Keep last */
10472 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
10473 	QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
10474 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
10475 };
10476 
10477 /**
10478  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10479  * attributes
10480  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10481  *
10482  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10483  * Indicate config type.
10484  * The config types are 32-bit values from qca_vendor_attr_coex_config_types
10485  *
10486  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10487  *	Indicate the Priority 1 profiles.
10488  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
10489  *	In same priority level, maximum to 4 profiles can be set here.
10490  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10491  *	Indicate the Priority 2 profiles.
10492  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
10493  *	In same priority level, maximum to 4 profiles can be set here.
10494  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10495  *	Indicate the Priority 3 profiles.
10496  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
10497  *	In same priority level, maximum to 4 profiles can be set here.
10498  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10499  *	Indicate the Priority 4 profiles.
10500  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
10501  *	In same priority level, maximum to 4 profiles can be set here.
10502  * NOTE:
10503  * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10504  * arrangement:
10505  *	1: In the same u32 attribute (priority x), the profiles enum values own
10506  *	same priority level.
10507  *	2: 0xff is default value if the u8 profile value is not set.
10508  *	3: max to 4 rules/profiles in same priority level.
10509  *	4: max to 4 priority level (priority 1 - priority 4)
10510  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10511  *	hybrid rules not support.
10512  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10513  *	remain blank to reset all parameters.
10514  * For example:
10515  *
10516  *	If the attributes as follow:
10517  *	priority 1:
10518  *	------------------------------------
10519  *	|  0xff  |    0   |   1   |    2   |
10520  *	------------------------------------
10521  *	priority 2:
10522  *	-------------------------------------
10523  *	|  0xff  |  0xff  |  0xff  |   32   |
10524  *	-------------------------------------
10525  *	priority 3:
10526  *	-------------------------------------
10527  *	|  0xff  |  0xff  |  0xff  |   65   |
10528  *	-------------------------------------
10529  *	then it means:
10530  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10531  *		owns same priority level.
10532  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10533  *		has priority over BT_A2DP and ZB_HIGH.
10534  *	3: BT_A2DP has priority over ZB_HIGH.
10535  */
10536 enum qca_vendor_attr_coex_config_three_way {
10537 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10538 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10539 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10540 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10541 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10542 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10543 
10544 	/* Keep last */
10545 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10546 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10547 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10548 };
10549 
10550 /**
10551  * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
10552  *
10553  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
10554  * (STA/AP) for the connected link.
10555  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
10556  * &struct nl80211_sta_flag_update for the respective connected link. MAC
10557  * address of the peer represented by
10558  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
10559  */
10560 enum qca_wlan_vendor_attr_link_properties {
10561 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
10562 	/* 1 - 3 are reserved */
10563 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
10564 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
10565 
10566 	/* Keep last */
10567 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
10568 	QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
10569 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
10570 };
10571 
10572 /**
10573  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10574  * This enum defines the valid set of values of peer stats cache types. These
10575  * values are used by attribute
10576  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
10577  *
10578  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
10579  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
10580  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
10581  * statistics
10582  */
10583 enum qca_vendor_attr_peer_stats_cache_type {
10584 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10585 
10586 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10587 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10588 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10589 };
10590 
10591 /**
10592  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10593  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10594  * Information in these attributes is used to flush peer rate statistics from
10595  * the driver to user application.
10596  *
10597  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10598  * Indicate peer statistics cache type.
10599  * The statistics types are 32-bit values from
10600  * enum qca_vendor_attr_peer_stats_cache_type.
10601  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10602  * of size 6 octets, representing the peer MAC address.
10603  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10604  * containing buffer of statistics to send to application layer entity.
10605  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10606  * representing a cookie for peer unique session.
10607  */
10608 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10609 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10610 
10611 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10612 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10613 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10614 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10615 
10616 	/* Keep last */
10617 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10618 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10619 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10620 };
10621 
10622 /**
10623  * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
10624  * This enum defines all the possible states of Zigbee, which can be
10625  * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
10626  *
10627  * @ZIGBEE_IDLE: Zigbee in idle state
10628  * @ZIGBEE_FORM_NETWORK: Zigbee forming network
10629  * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
10630  * @ZIGBEE_JOIN: Zigbee joining network
10631  * @ZIGBEE_NETWORK_UP: Zigbee network is up
10632  * @ZIGBEE_HMI: Zigbee in HMI mode
10633  */
10634 enum qca_mpta_helper_attr_zigbee_state {
10635 	ZIGBEE_IDLE = 0,
10636 	ZIGBEE_FORM_NETWORK = 1,
10637 	ZIGBEE_WAIT_JOIN = 2,
10638 	ZIGBEE_JOIN = 3,
10639 	ZIGBEE_NETWORK_UP = 4,
10640 	ZIGBEE_HMI = 5,
10641 };
10642 
10643 /*
10644  * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
10645  * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10646  */
10647 enum qca_mpta_helper_vendor_attr {
10648 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10649 	/* Optional attribute used to update Zigbee state.
10650 	 * enum qca_mpta_helper_attr_zigbee_state.
10651 	 * NLA_U32 attribute.
10652 	 */
10653 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10654 	/* Optional attribute used to configure WLAN duration for Shape-OCS
10655 	 * during interrupt.
10656 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10657 	 * Value range 0 ~ 300 (ms).
10658 	 * NLA_U32 attribute.
10659 	 */
10660 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10661 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
10662 	 * during interrupt.
10663 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10664 	 * Value range 0 ~ 300 (ms).
10665 	 * NLA_U32 attribute.
10666 	 */
10667 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION  = 3,
10668 	/* Optional attribute used to configure WLAN duration for Shape-OCS
10669 	 * monitor period.
10670 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10671 	 * Value range 0 ~ 300 (ms)
10672 	 * NLA_U32 attribute
10673 	 */
10674 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10675 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
10676 	 * monitor period.
10677 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10678 	 * Value range 0 ~ 300 (ms)
10679 	 * NLA_U32 attribute
10680 	 */
10681 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION  = 5,
10682 	/* Optional attribute used to configure OCS interrupt duration.
10683 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10684 	 * Value range 1000 ~ 20000 (ms)
10685 	 * NLA_U32 attribute
10686 	 */
10687 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION  = 6,
10688 	/* Optional attribute used to configure OCS monitor duration.
10689 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10690 	 * Value range 1000 ~ 20000 (ms)
10691 	 * NLA_U32 attribute
10692 	 */
10693 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION  = 7,
10694 	/* Optional attribute used to notify WLAN firmware the current Zigbee
10695 	 * channel.
10696 	 * Value range 11 ~ 26
10697 	 * NLA_U32 attribute
10698 	 */
10699 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10700 	/* Optional attribute used to configure WLAN mute duration.
10701 	 * Value range 0 ~ 400 (ms)
10702 	 * NLA_U32 attribute
10703 	 */
10704 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION	= 9,
10705 
10706 	/* keep last */
10707 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10708 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10709 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10710 };
10711 
10712 /**
10713  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10714  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
10715  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10716  *
10717  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10718  * to request the driver to start reporting Beacon frames.
10719  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
10720  * request the driver to stop reporting Beacon frames.
10721  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10722  * userspace to report received Beacon frames.
10723  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10724  * to indicate that the driver is going to pause reporting Beacon frames.
10725  */
10726 enum qca_wlan_vendor_beacon_reporting_op_types {
10727 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10728 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10729 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10730 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10731 };
10732 
10733 /**
10734  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
10735  * of reasons for which the driver is pausing reporting Beacon frames. Will be
10736  * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10737  *
10738  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10739  * reasons.
10740  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10741  * driver/firmware is starting a scan.
10742  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10743  * driver/firmware disconnects from the ESS and indicates the disconnection to
10744  * userspace (non-seamless roaming case). This reason code will be used by the
10745  * driver/firmware to indicate stopping of beacon report events. Userspace will
10746  * need to start beacon reporting again (if desired) by sending vendor command
10747  * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10748  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10749  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10750  * completed.
10751  */
10752 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10753 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10754 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10755 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10756 };
10757 
10758 /*
10759  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10760  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10761  */
10762 enum qca_wlan_vendor_attr_beacon_reporting_params {
10763 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10764 	/* Specifies the type of operation that the vendor command/event is
10765 	 * intended for. Possible values for this attribute are defined in
10766 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10767 	 */
10768 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10769 	/* Optionally set by userspace to request the driver to report Beacon
10770 	 * frames using asynchronous vendor events when the
10771 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10772 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10773 	 * If this flag is not set, the driver will only update Beacon frames in
10774 	 * cfg80211 scan cache but not send any vendor events.
10775 	 */
10776 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10777 	/* Optionally used by userspace to request the driver/firmware to report
10778 	 * Beacon frames periodically when the
10779 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10780 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10781 	 * u32 attribute, indicates the period of Beacon frames to be reported
10782 	 * and in the units of beacon interval.
10783 	 * If this attribute is missing in the command, then the default value
10784 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10785 	 * Zero is an invalid value.
10786 	 * If a valid value is received for this attribute, the driver will
10787 	 * update the cfg80211 scan cache periodically as per the value received
10788 	 * in this attribute in addition to updating the cfg80211 scan cache
10789 	 * when there is significant change in Beacon frame IEs.
10790 	 */
10791 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10792 	/* Used by the driver to encapsulate the SSID when the
10793 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10794 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10795 	 * u8 array with a maximum size of 32.
10796 	 *
10797 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10798 	 * will be taken from the SSID element of the received Beacon frame.
10799 	 *
10800 	 * When generating beacon report from Multiple BSSID Beacon frame and if
10801 	 * the BSSID of the current connected BSS matches the BSSID of the
10802 	 * transmitting BSS, the SSID will be taken from the SSID element of the
10803 	 * received Beacon frame.
10804 	 *
10805 	 * When generating beacon report from Multiple BSSID Beacon frame and if
10806 	 * the BSSID of the current connected BSS matches the BSSID of one of
10807 	 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
10808 	 * included in the nontransmitted BSS profile whose derived BSSID is
10809 	 * same as the BSSID of the current connected BSS. When there is no
10810 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10811 	 * of current connected* BSS, this attribute will not be present.
10812 	 */
10813 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10814 	/* Used by the driver to encapsulate the BSSID of the AP to which STA is
10815 	 * currently connected to when the
10816 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10817 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10818 	 * fixed size of 6 bytes.
10819 	 *
10820 	 * When generating beacon report from a Multiple BSSID beacon and the
10821 	 * current connected BSSID matches one of the nontransmitted BSSIDs in a
10822 	 * Multiple BSSID set, this BSSID will be that particular nontransmitted
10823 	 * BSSID and not the transmitted BSSID (i.e., the transmitting address
10824 	 * of the Beacon frame).
10825 	 */
10826 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10827 	/* Used by the driver to encapsulate the frequency in MHz on which
10828 	 * the Beacon frame was received when the
10829 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10830 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10831 	 * u32 attribute.
10832 	 */
10833 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10834 	/* Used by the driver to encapsulate the Beacon interval
10835 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10836 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10837 	 * u16 attribute. The value will be copied from the Beacon frame and the
10838 	 * units are TUs.
10839 	 */
10840 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10841 	/* Used by the driver to encapsulate the Timestamp field from the Beacon
10842 	 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
10843 	 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10844 	 * u64 attribute.
10845 	 */
10846 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10847 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10848 	 * Beacon frame is received in the driver when the
10849 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10850 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10851 	 * the units of nanoseconds. This value is expected to have accuracy of
10852 	 * about 10 ms.
10853 	 */
10854 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10855 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
10856 	 * which this event is generated when the
10857 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10858 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10859 	 */
10860 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10861 	/* Used by the driver to specify the reason for the driver/firmware to
10862 	 * pause sending beacons to userspace when the
10863 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10864 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10865 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10866 	 * attribute.
10867 	 */
10868 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10869 	/* Used by the driver to specify whether the driver will automatically
10870 	 * resume reporting beacon events to userspace later (for example after
10871 	 * the ongoing off-channel activity is completed etc.) when the
10872 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10873 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10874 	 */
10875 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10876 	/* Optionally set by userspace to request the driver not to resume
10877 	 * beacon reporting after a pause is completed, when the
10878 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10879 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10880 	 * If this flag is set, the driver will not resume beacon reporting
10881 	 * after any pause in beacon reporting is completed. Userspace has to
10882 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10883 	 * to initiate beacon reporting again. If this flag is set in the recent
10884 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10885 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10886 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10887 	 * set by the driver. Setting this flag until and unless there is a
10888 	 * specific need is not recommended as there is a chance of some beacons
10889 	 * received after pause command and next start command being not
10890 	 * reported.
10891 	 */
10892 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10893 
10894 	/* Keep last */
10895 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10896 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10897 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10898 };
10899 
10900 /**
10901  * enum qca_vendor_interop_issues_ap_type - Interop issue types
10902  * This enum defines the valid set of values of interop issue types. These
10903  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
10904  *
10905  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
10906  * when the STA's Qpower feature is enabled.
10907  */
10908 enum qca_vendor_interop_issues_ap_type {
10909 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
10910 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
10911 };
10912 
10913 /**
10914  * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
10915  * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
10916  *
10917  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
10918  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
10919  * 32-bit unsigned value. The values defined in enum
10920  * qca_vendor_interop_issues_ap_type are used.
10921  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
10922  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
10923  * It is present and mandatory for the command but is not used for the event
10924  * since only a single BSSID is reported in an event.
10925  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
10926  * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
10927  * attribute in command case and without such encapsulation in the event case.
10928  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
10929  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
10930  */
10931 enum qca_vendor_attr_interop_issues_ap {
10932 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
10933 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
10934 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
10935 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
10936 	/* keep last */
10937 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
10938 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
10939 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
10940 };
10941 
10942 /**
10943  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10944  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10945  *
10946  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10947  * a virtual device.
10948  *
10949  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10950  * a physical device.
10951  */
10952 enum qca_vendor_oem_device_type {
10953 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10954 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10955 };
10956 
10957 /**
10958  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
10959  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10960  *
10961  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10962  * used to set/query the data to/from the firmware. On query, the same
10963  * attribute is used to carry the respective data in the reply sent by the
10964  * driver to userspace. The request to set/query the data and the format of the
10965  * respective data from the firmware are embedded in the attribute. The
10966  * maximum size of the attribute payload is 1024 bytes.
10967  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10968  * attribute when the data is queried from the firmware.
10969  *
10970  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10971  * based on this field. This optional attribute is included to specify whether
10972  * the device type is a virtual device or a physical device for the
10973  * command/event. This attribute can be omitted for a virtual device (default)
10974  * command/event.
10975  * This u8 attribute is used to carry information for the device type using
10976  * values defined by enum qca_vendor_oem_device_type.
10977  *
10978  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10979  * is set when the userspace queries data from the firmware. This attribute
10980  * should not be set when userspace sets the OEM data to the firmware.
10981  */
10982 enum qca_wlan_vendor_attr_oem_data_params {
10983 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10984 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10985 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10986 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10987 
10988 	/* keep last */
10989 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10990 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10991 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10992 };
10993 
10994 /**
10995  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10996  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10997  *
10998  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10999  * Nested attribute containing multiple ranges with following attributes:
11000  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11001  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11002  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11003  *
11004  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11005  * Starting center frequency in MHz.
11006  *
11007  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11008  * Ending center frequency in MHz.
11009  *
11010  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11011  * s32 attribute, optional. It is a per frequency range attribute.
11012  * The maximum TX power limit from user space is to be applied on an
11013  * unrestricted interface for corresponding frequency range. It is also
11014  * possible that the actual TX power may be even lower than this cap due to
11015  * other considerations such as regulatory compliance, SAR, etc. In absence of
11016  * this attribute the driver shall follow current behavior which means
11017  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11018  * power derived by the driver based on regulatory/SAR during interface up.
11019  *
11020  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11021  * u32 attribute, optional. Indicates all the interface types which are
11022  * restricted for all frequency ranges provided in
11023  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11024  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11025  * This attribute encapsulates bitmasks of interface types defined in
11026  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11027  * move to a safe channel and if no safe channel is available the driver shall
11028  * terminate that interface functionality. In absence of this attribute,
11029  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11030  * TX power limit derived from either
11031  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11032  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11033  * is not provided.
11034  */
11035 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11036 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11037 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11038 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11039 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11040 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11041 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11042 
11043 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11044 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11045 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11046 };
11047 
11048 /*
11049  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11050  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11051  */
11052 enum qca_wlan_vendor_attr_add_sta_node_params {
11053 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11054 	/* 6 byte MAC address of STA */
11055 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11056 	/* Authentication algorithm used by the station of size u16;
11057 	 * defined in enum nl80211_auth_type.
11058 	 */
11059 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11060 
11061 	/* keep last */
11062 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11063 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11064 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11065 };
11066 
11067 /**
11068  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11069  * This enum defines the valid set of values of BT coex chain mode.
11070  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11071  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11072  *
11073  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11074  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11075  * separated, hybrid mode.
11076  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11077  * separated, fixed FDD mode.
11078  */
11079 enum qca_btc_chain_mode {
11080 	QCA_BTC_CHAIN_SHARED = 0,
11081 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11082 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11083 };
11084 
11085 /* deprecated legacy name */
11086 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11087 
11088 /**
11089  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11090  * chain mode.
11091  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11092  *
11093  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11094  * Indicates the BT coex chain mode, are 32-bit values from
11095  * enum qca_btc_chain_mode. This attribute is mandatory.
11096  *
11097  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11098  * If set, vdev should be restarted when BT coex chain mode is updated.
11099  * This attribute is optional.
11100  */
11101 enum qca_vendor_attr_btc_chain_mode {
11102 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11103 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11104 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11105 
11106 	/* Keep last */
11107 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11108 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11109 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11110 };
11111 
11112 /**
11113  * enum qca_vendor_wlan_sta_flags - Station feature flags
11114  * Bits will be set to 1 if the corresponding features are enabled.
11115  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11116  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11117     for the station
11118  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11119     for the station
11120  */
11121 enum qca_vendor_wlan_sta_flags {
11122 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11123 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11124 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11125 };
11126 
11127 /**
11128  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11129  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11130  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11131  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11132  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11133  */
11134 enum qca_vendor_wlan_sta_guard_interval {
11135 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11136 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11137 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11138 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11139 };
11140 
11141 /**
11142  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11143  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11144  *
11145  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11146  * Required attribute in request for AP mode only, 6-byte MAC address,
11147  * corresponding to the station's MAC address for which information is
11148  * requested. For STA mode this is not required as the info always correspond
11149  * to the self STA and the current/last association.
11150  *
11151  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11152  * Optionally used in response, u32 attribute, contains a bitmap of different
11153  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11154  *
11155  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11156  * Optionally used in response, u32 attribute, possible values are defined in
11157  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11158  * Guard interval used by the station.
11159  *
11160  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11161  * Optionally used in response, u32 attribute, used in AP mode only.
11162  * Value indicates the number of data frames received from station with retry
11163  * bit set to 1 in FC.
11164  *
11165  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11166  * Optionally used in response, u32 attribute, used in AP mode only.
11167  * Counter for number of data frames with broadcast or multicast address in
11168  * the destination address received from the station.
11169  *
11170  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11171  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11172  * Value indicates the number of data frames successfully transmitted only
11173  * after retrying the packets and for which the TX status has been updated
11174  * back to host from target.
11175  *
11176  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11177  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11178  * Value indicates the number of data frames not transmitted successfully even
11179  * after retrying the packets for the number of times equal to the total number
11180  * of retries allowed for that packet and for which the TX status has been
11181  * updated back to host from target.
11182  *
11183  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11184  * Optionally used in response, u32 attribute, used in AP mode only.
11185  * Counter in the target for the number of data frames successfully transmitted
11186  * to the station.
11187  *
11188  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11189  * Optionally used in response, u32 attribute, used in AP mode only.
11190  * Value indicates the number of data frames successfully transmitted only
11191  * after retrying the packets.
11192  *
11193  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11194  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11195  * Value indicates the number of data frames not transmitted successfully even
11196  * after retrying the packets for the number of times equal to the total number
11197  * of retries allowed for that packet.
11198  *
11199  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11200  * the STA mode only. Represent the number of probe requests sent by the STA
11201  * while attempting to roam on missing certain number of beacons from the
11202  * connected AP. If queried in the disconnected state, this represents the
11203  * count for the last connected state.
11204  *
11205  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11206  * the STA mode. Represent the number of probe responses received by the station
11207  * while attempting to roam on missing certain number of beacons from the
11208  * connected AP. When queried in the disconnected state, this represents the
11209  * count when in last connected state.
11210  *
11211  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11212  * STA mode only. Represents the total number of frames sent out by STA
11213  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11214  * only for the connect session. Represents the count of last connected session,
11215  * when queried in the disconnected state.
11216  *
11217  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11218  * Total number of RTS sent out by the STA. This data is maintained per connect
11219  * session. Represents the count of last connected session, when queried in the
11220  * disconnected state.
11221  *
11222  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11223  * STA mode.Represent the number of RTS transmission failure that reach retry
11224  * limit. This data is maintained per connect session. Represents the count of
11225  * last connected session, when queried in the disconnected state.
11226  *
11227  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11228  * the STA mode. Represent the total number of non aggregated frames transmitted
11229  * by the STA. This data is maintained per connect session. Represents the count
11230  * of last connected session, when queried in the disconnected state.
11231  *
11232  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11233  * STA mode. Represent the total number of aggregated frames transmitted by the
11234  * STA. This data is maintained per connect session. Represents the count of
11235  * last connected session, when queried in the disconnected state.
11236  *
11237  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11238  * the STA mode. Represents the number of received frames with a good PLCP. This
11239  * data is maintained per connect session. Represents the count of last
11240  * connected session, when queried in the disconnected state.
11241  *
11242  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11243  * used in the STA mode. Represents the number of occasions that no valid
11244  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11245  * session. Represents the count of last connected session, when queried in the
11246  * disconnected state.
11247  *
11248  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11249  * STA mode. Represents the number of frames for which CRC check failed in the
11250  * MAC. This data is maintained per connect session. Represents the count of
11251  * last connected session, when queried in the disconnected state.
11252  *
11253  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11254  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11255  * data is maintained per connect session. Represents the count of last
11256  * connected session, when queried in the disconnected state.
11257  *
11258  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11259  * mode. Represents the number of received Block Acks. This data is maintained
11260  * per connect session. Represents the count of last connected session, when
11261  * queried in the disconnected state.
11262  *
11263  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11264  * mode. Represents the number of beacons received from the connected BSS. This
11265  * data is maintained per connect session. Represents the count of last
11266  * connected session, when queried in the disconnected state.
11267  *
11268  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11269  * STA mode. Represents the number of beacons received by the other BSS when in
11270  * connected state (through the probes done by the STA). This data is maintained
11271  * per connect session. Represents the count of last connected session, when
11272  * queried in the disconnected state.
11273  *
11274  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11275  * the STA mode. Represents the number of received DATA frames with good FCS and
11276  * matching Receiver Address when in connected state. This data is maintained
11277  * per connect session. Represents the count of last connected session, when
11278  * queried in the disconnected state.
11279  *
11280  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11281  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11282  * when in the connected state. This data is maintained per connect session.
11283  * Represents the count of last connected session, when queried in the
11284  * disconnected state.
11285  *
11286  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11287  * STA mode. This represents the target power in dBm for the transmissions done
11288  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11289  * connect session. Represents the count of last connected session, when
11290  * queried in the disconnected state.
11291  *
11292  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11293  * STA mode. This represents the Target power in dBm for transmissions done to
11294  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11295  * session. Represents the count of last connected session, when queried in the
11296  * disconnected state.
11297  *
11298  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11299  * STA mode. This represents the Target power in dBm for transmissions done to
11300  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11301  * Represents the count of last connected session, when queried in the
11302  * disconnected state.
11303  *
11304  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11305  * STA mode. This represents the Target power in dBm for transmissions done to
11306  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11307  * session. Represents the count of last connected session, when queried in
11308  * the disconnected state.
11309  *
11310  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11311  * STA mode. This represents the Target power in dBm for for transmissions done
11312  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11313  * Represents the count of last connected session, when queried in the
11314  * disconnected state.
11315  *
11316  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11317  * in the STA mode. This represents the Nested attribute representing the
11318  * overflow counts of each receive buffer allocated to the hardware during the
11319  * STA's connection. The number of hw buffers might vary for each WLAN
11320  * solution and hence this attribute represents the nested array of all such
11321  * HW buffer count. This data is maintained per connect session. Represents
11322  * the count of last connected session, when queried in the disconnected state.
11323  *
11324  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11325  * allowed as per the regulatory requirements for the current or last connected
11326  * session. Used in the STA mode.
11327  *
11328  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11329  * (dBm) used by the station in its latest unicast frame while communicating
11330  * to the AP in the connected state. When queried in the disconnected state,
11331  * this represents the TX power used by the STA with last AP communication
11332  * when in connected state.
11333  *
11334  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11335  * level used to adjust the RX sensitivity. Represents the current ANI level
11336  * when queried in the connected state. When queried in the disconnected
11337  * state, this corresponds to the latest ANI level at the instance of
11338  * disconnection.
11339  *
11340  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
11341  * the raw information elements from Beacon frames. Represents the Beacon frames
11342  * of the current BSS in the connected state. When queried in the disconnected
11343  * state, these IEs correspond to the last connected BSSID.
11344  *
11345  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
11346  * containing the raw information elements from Probe Response frames.
11347  * Represents the Probe Response frames of the current BSS in the connected
11348  * state. When queried in the disconnected state, these IEs correspond to the
11349  * last connected BSSID.
11350  *
11351  * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
11352  * disconnect reason for the last disconnection if the disconnection is
11353  * triggered from the host driver. The values are referred from
11354  * enum qca_disconnect_reason_codes.
11355  *
11356  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11357  * only. This represents the number of group addressed robust management frames
11358  * received from this station with an invalid MIC or a missing MME when PMF is
11359  * enabled.
11360  *
11361  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11362  * only. This represents the number of group addressed robust management frames
11363  * received from this station with the packet number less than or equal to the
11364  * last received packet number when PMF is enabled.
11365  *
11366  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11367  * mode only. This represents the number of Beacon frames received from this
11368  * station with an invalid MIC or a missing MME when beacon protection is
11369  * enabled.
11370  *
11371  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11372  * only. This represents number of Beacon frames received from this station with
11373  * the packet number less than or equal to the last received packet number when
11374  * beacon protection is enabled.
11375  *
11376  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11377  * STA mode only. The driver uses this attribute to populate the connection
11378  * failure reason codes and the values are defined in
11379  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11380  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11381  * a connection failure indication from the driver. The driver shall not
11382  * include this attribute in response to the
11383  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11384  * failure observed in the last attempted connection.
11385  *
11386  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11387  * used by the station in its last TX frame while communicating to the AP in the
11388  * connected state. When queried in the disconnected state, this represents the
11389  * rate used by the STA in the last TX frame to the AP when it was connected.
11390  * This attribute is used for STA mode only.
11391  *
11392  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11393  * This represents the rate index used by the STA for the last TX frame to the
11394  * AP. When queried in the disconnected state, this gives the last RIX used by
11395  * the STA in the last TX frame to the AP when it was connected.
11396  *
11397  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11398  * mode only. This represents the number of times the STA TSF goes out of sync
11399  * from the AP after the connection. If queried in the disconnected state, this
11400  * gives the count of TSF out of sync for the last connection.
11401  *
11402  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11403  * mode only. This represents the roam trigger reason for the last roaming
11404  * attempted by the firmware. This can be queried either in connected state or
11405  * disconnected state. Each bit of this attribute represents the different
11406  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11407  *
11408  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11409  * only. This represents the roam fail reason for the last failed roaming
11410  * attempt by the firmware. Different roam failure reason codes are specified
11411  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11412  * connected state or disconnected state.
11413  *
11414  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11415  * STA mode only. This represents the roam invoke fail reason for the last
11416  * failed roam invoke. Different roam invoke failure reason codes
11417  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11418  * queried either in connected state or disconnected state.
11419  *
11420  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11421  * This represents the average congestion duration of uplink frames in MAC
11422  * queue in unit of ms. This can be queried either in connected state or
11423  * disconnected state.
11424  *
11425  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
11426  * values, used in AP mode. This represents the MPDU packet count per MCS
11427  * rate value of TX packets. Every index of this nested attribute corresponds
11428  * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
11429  * queried in connected state.
11430  *
11431  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
11432  * values, used in AP mode. This represents the MPDU packet count per MCS
11433  * rate value of RX packets. Every index of this nested attribute corresponds
11434  * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
11435  * queried in connected state.
11436  */
11437 enum qca_wlan_vendor_attr_get_sta_info {
11438 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11439 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11440 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11441 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11442 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11443 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11444 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11445 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11446 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11447 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11448 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11449 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11450 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11451 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11452 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11453 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11454 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11455 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11456 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11457 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11458 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11459 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11460 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11461 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11462 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11463 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11464 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11465 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11466 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11467 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11468 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11469 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11470 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11471 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11472 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11473 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11474 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
11475 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
11476 	QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
11477 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11478 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11479 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11480 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11481 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11482 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11483 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11484 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11485 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11486 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11487 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11488 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11489 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11490 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11491 
11492 	/* keep last */
11493 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11494 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11495 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11496 };
11497 
11498 /**
11499  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
11500  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
11501  *
11502  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
11503  * Used in STA mode. This attribute represents the list of channel center
11504  * frequencies in MHz (u32) the station has learnt during the last connection
11505  * or roaming attempt. This information shall not signify the channels for
11506  * an explicit scan request from the user space. Host drivers can update this
11507  * information to the user space in both connected and disconnected state.
11508  * In the disconnected state this information shall signify the channels
11509  * scanned in the last connection/roam attempt that lead to the disconnection.
11510  */
11511 enum qca_wlan_vendor_attr_update_sta_info {
11512 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
11513 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
11514 
11515 	/* keep last */
11516 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
11517 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
11518 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
11519 };
11520 
11521 /**
11522  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11523  * Used when the driver triggers the STA to disconnect from the AP.
11524  *
11525  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11526  * disconnection with the AP due to unspecified reasons.
11527  *
11528  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11529  * disconnection with the AP due to a roaming failure. This roaming is triggered
11530  * internally (host driver/firmware).
11531  *
11532  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11533  * the AP when the user/external triggered roaming fails.
11534  *
11535  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11536  * by the host driver whenever gateway reachability failure is detected and the
11537  * driver disconnects with AP.
11538  *
11539  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11540  * the AP on a channel switch announcement from it with an unsupported channel.
11541  *
11542  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11543  * with indoor channels disabled and if the STA is connected on one of these
11544  * disabled channels, the host driver disconnected the STA with this reason
11545  * code.
11546  *
11547  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11548  * explicit request from the user to disable the current operating channel.
11549  *
11550  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11551  * the internal host driver/firmware recovery.
11552  *
11553  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11554  * a timeout for the key installations from the user space.
11555  *
11556  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11557  * STA on a band change request from the user space to a different band from the
11558  * current operation channel/band.
11559  *
11560  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11561  * interface down trigger from the user space.
11562  *
11563  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11564  * STA on getting continuous transmission failures for multiple Data frames.
11565  *
11566  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11567  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11568  * represents inactivity from AP on such transmissions.
11569 
11570  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11571  * disconnection when SA Query times out (AP does not respond to SA Query).
11572  *
11573  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11574  * STA on missing the beacons continuously from the AP.
11575  *
11576  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11577  * able to move to the channel mentioned by the AP in CSA.
11578  *
11579  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11580  */
11581 enum qca_disconnect_reason_codes {
11582 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11583 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11584 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11585 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11586 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11587 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11588 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11589 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11590 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11591 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11592 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11593 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11594 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11595 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11596 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11597 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11598 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11599 };
11600 
11601 /**
11602  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11603  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11604  *
11605  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11606  * This attribute represents the driver specific reason codes (local
11607  * driver/firmware initiated reasons for disconnection) defined
11608  * in enum qca_disconnect_reason_codes.
11609  */
11610 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11611 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11612 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11613 
11614 	/* keep last */
11615 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11616 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11617 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11618 };
11619 
11620 /**
11621  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11622  *
11623  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11624  */
11625 enum qca_wlan_tspec_operation {
11626 	QCA_WLAN_TSPEC_ADD = 0,
11627 	QCA_WLAN_TSPEC_DEL = 1,
11628 	QCA_WLAN_TSPEC_GET = 2,
11629 };
11630 
11631 /**
11632  * enum qca_wlan_tspec_direction - Direction in TSPEC
11633  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11634  *
11635  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11636  */
11637 enum qca_wlan_tspec_direction {
11638 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11639 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11640 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11641 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11642 };
11643 
11644 /**
11645  * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
11646  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11647  *
11648  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11649  */
11650 enum qca_wlan_tspec_ack_policy {
11651 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11652 	QCA_WLAN_TSPEC_NO_ACK = 1,
11653 	/* Reserved */
11654 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11655 };
11656 
11657 /**
11658  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11659  * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11660  *
11661  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11662  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11663  * are defined in enum qca_wlan_tspec_operation.
11664  * Mandatory attribute for all kinds of config TSPEC requests.
11665  *
11666  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11667  * u8 attribute. TS ID. Possible values are 0-7.
11668  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11669  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11670  *
11671  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11672  * u8 attribute. Direction of data carried by the TS. Possible values are
11673  * defined in enum qca_wlan_tspec_direction.
11674  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11675  *
11676  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11677  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11678  * with the TS. set - enabled, not set - disabled.
11679  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11680  *
11681  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11682  * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
11683  * belonging to this TS. Possible values are 0-7.
11684  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11685  *
11686  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11687  * u8 attribute. Indicate whether MAC acknowledgements are required for
11688  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11689  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11690  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11691  *
11692  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11693  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11694  * belonging to this TS.
11695  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11696  *
11697  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11698  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11699  * belonging to this TS.
11700  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11701  *
11702  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11703  * u32 attribute. Specify the minimum interval in microseconds between the
11704  * start of two successive SPs.
11705  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11706  *
11707  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11708  * u32 attribute. Specify the maximum interval in microseconds between the
11709  * start of two successive SPs.
11710  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11711  *
11712  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11713  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11714  * without arrival or transfer of an MPDU belonging to the TS before this TS
11715  * is deleted by the MAC entity at the HC.
11716  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11717  *
11718  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11719  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11720  * without arrival or transfer of an MSDU belonging to the TS before the
11721  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11722  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11723  * interval is always less than or equal to the inactivity interval.
11724  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11725  *
11726  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11727  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11728  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11729  * bounds of this TSPEC.
11730  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11731  *
11732  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11733  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11734  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11735  * bounds of this TSPEC.
11736  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11737  *
11738  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11739  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11740  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11741  * the bounds of this TSPEC.
11742  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11743  *
11744  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11745  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11746  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11747  * value of 0 indicates that there are no bursts.
11748  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11749  *
11750  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11751  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11752  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11753  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11754  *
11755  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11756  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11757  * and above the stated application rates required to transport an MSDU/A-MSDU
11758  * belonging to the TS in this TSPEC.
11759  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11760  */
11761 enum qca_wlan_vendor_attr_config_tspec {
11762 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11763 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11764 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11765 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11766 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11767 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11768 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11769 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11770 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11771 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11772 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11773 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11774 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11775 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11776 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11777 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11778 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11779 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11780 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11781 
11782 	/* keep last */
11783 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11784 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11785 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11786 };
11787 
11788 /**
11789  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11790  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11791  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11792  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11793  * frame
11794  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11795  * Request frame.
11796  */
11797 enum qca_wlan_vendor_oci_override_frame_type {
11798 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11799 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11800 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11801 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11802 };
11803 
11804 /**
11805  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11806  * OCI override request. These attributes are used inside nested attribute
11807  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11808  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11809  *
11810  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11811  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11812  * attribute to specify the frame type in which the OCI is to be overridden.
11813  *
11814  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11815  * OCI frequency (in MHz) to override in the specified frame type.
11816  */
11817 enum qca_wlan_vendor_attr_oci_override {
11818 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11819 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11820 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11821 
11822 	/* keep last */
11823 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11824 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11825 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11826 };
11827 
11828 /**
11829  * enum qca_wlan_medium_assess_type - Type of medium assess request
11830  *
11831  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11832  */
11833 enum qca_wlan_medium_assess_type {
11834 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11835 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11836 };
11837 
11838 /**
11839  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11840  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11841  *
11842  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11843  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11844  * Specify the type of medium assess request and indicate its type in response.
11845  * Possible values are defined in enum qca_wlan_medium_assess_type.
11846  *
11847  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11848  * u32 attribute. Mandatory in CCA request.
11849  * Specify the assessment period in terms of seconds. Assessment result will be
11850  * sent as the response to the CCA request after the assessment period.
11851  *
11852  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11853  * u32 attribute. Mandatory in response to CCA request.
11854  * Total timer tick count of the assessment cycle.
11855  *
11856  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11857  * u32 attribute. Mandatory in response to CCA request.
11858  * Timer tick count of idle time in the assessment cycle.
11859  *
11860  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11861  * u32 attribute. Mandatory in response to CCA request.
11862  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11863  *
11864  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11865  * u32 attribute. Mandatory in response to CCA request.
11866  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11867  *
11868  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11869  * s32 attribute. Mandatory in response to CCA request.
11870  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11871  *
11872  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11873  * s32 attribute. Mandatory in response to CCA request.
11874  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11875  *
11876  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11877  * u8 attribute. Mandatory in congestion report request.
11878  * 1-enable 0-disable.
11879  *
11880  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11881  * u8 attribute. Mandatory in congestion report enable request and will be
11882  * ignored if present in congestion report disable request. Possible values are
11883  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11884  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11885  * congestion percentage reaches the configured threshold.
11886  *
11887  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11888  * u8 attribute. Optional in congestion report enable request and will be
11889  * ignored if present in congestion report disable request.
11890  * Specify the interval of congestion report event in terms of seconds. Possible
11891  * values are 1-255. Default value 1 will be used if this attribute is omitted
11892  * or using invalid values.
11893  *
11894  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11895  * u8 attribute. Mandatory in congestion report event.
11896  * Indicate the actual congestion percentage. Possible values are 0-100.
11897  */
11898 enum qca_wlan_vendor_attr_medium_assess {
11899 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11900 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11901 
11902 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11903 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11904 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11905 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11906 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11907 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11908 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11909 
11910 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11911 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11912 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11913 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11914 
11915 	/* keep last */
11916 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11917 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11918 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11919 };
11920 
11921 /**
11922  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11923  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11924  *
11925  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11926  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11927  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11928  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11929  *
11930  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11931  * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
11932  *
11933  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11934  * u8 attribute, required. Indicates group id of Tx VDEV.
11935  *
11936  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11937  * Nested attribute. This attribute shall be used by the driver to send
11938  * group information. The attributes defined in enum
11939  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11940  * are nested in this attribute.
11941  */
11942 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11943 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11944 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
11945 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11946 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11947 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
11948 
11949 	/* keep last */
11950 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11951 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11952 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11953 };
11954 
11955 /**
11956  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11957  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11958  *
11959  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11960  * u32 attribute, required. Contains interface index.
11961  *
11962  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11963  * u8 attribute, required. 0 - means vdev is in down state.
11964  * 1 - means vdev is in up state.
11965  */
11966 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11967 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11968 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11969 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11970 
11971 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11972 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11973 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11974 };
11975 
11976 /**
11977  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11978  *
11979  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11980  * STA interface has to be given while selecting the connection policies
11981  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11982  * An interface is set as primary through the attribute
11983  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11984  * applicable if the primary interface has not been set earlier.
11985  *
11986  * The intention is not to downgrade the primary STA performance, such as:
11987  * - Do not reduce the number of TX/RX chains of primary connection.
11988  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11989  *   chains.
11990  * - If using MCC, should set the MCC duty cycle of the primary connection to
11991  *   be higher than the secondary connection.
11992  *
11993  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11994  * subsequent STA connection shall be chosen to balance with the existing
11995  * concurrent STA's performance.
11996  * Such as
11997  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11998  *   capability.
11999  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12000  *   to the secondary.
12001  * - Prefer BSSID candidates which will help provide the best "overall"
12002  *   performance for all the STA connections.
12003  */
12004 enum qca_wlan_concurrent_sta_policy_config {
12005 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12006 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12007 };
12008 
12009 /**
12010  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12011  *
12012  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12013  * interface.
12014  *
12015  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12016  * to meet gaming audio latency requirements.
12017  *
12018  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12019  * concurrencies to meet lossless audio streaming requirements.
12020  */
12021 enum qca_wlan_concurrent_ap_policy_config {
12022 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12023 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12024 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12025 };
12026 
12027 /**
12028  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12029  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12030  *
12031  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12032  * u8 attribute. Configures the concurrent STA policy configuration.
12033  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12034 
12035  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12036  * u8 attribute. Configures the concurrent AP policy configuration.
12037  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12038  */
12039 enum qca_wlan_vendor_attr_concurrent_policy {
12040 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12041 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12042 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12043 
12044 	/* keep last */
12045 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12046 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12047 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12048 
12049 };
12050 
12051 /* Compatibility defines for previously used enum
12052  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12053  * in any new implementation.
12054  */
12055 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12056 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12057 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12058 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12059 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12060 	qca_wlan_vendor_attr_concurrent_policy
12061 
12062 /**
12063  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12064  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12065  * attribute.
12066  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
12067  *	for unicast Probe Request frame.
12068  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12069  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12070  *	auth request.
12071  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12072  *	received from AP.
12073  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
12074  *	Association Request frame.
12075  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12076  *	Association Request frame.
12077  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
12078  *	frame is not received from AP.
12079  */
12080 enum qca_sta_connect_fail_reason_codes {
12081 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12082 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12083 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12084 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12085 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12086 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12087 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12088 };
12089 
12090 /**
12091  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12092  * filters defined in this enum are used in attribute
12093  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12094  *
12095  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12096  * shall filter the channels which are not usable because of coexistence with
12097  * cellular radio.
12098  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12099  * shall filter the channels which are not usable because of existing active
12100  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12101  *
12102  */
12103 enum qca_wlan_vendor_usable_channels_filter {
12104 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12105 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12106 };
12107 
12108 /**
12109  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12110  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12111  *
12112  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12113  * u32 attribute, required. Indicates the center frequency of the primary
12114  * channel in MHz.
12115  *
12116  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12117  * u32 attribute. Indicates the center frequency of the primary segment of the
12118  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12119  * 160 MHz, and 320 MHz channels.
12120  *
12121  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12122  * u32 attribute. Indicates the center frequency of the secondary segment of
12123  * 80+80 channel in MHz. This attribute is required only when
12124  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12125  *
12126  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12127  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12128  * values are defined in enum nl80211_chan_width.
12129  *
12130  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12131  * u32 attribute, required. Indicates all the interface types for which this
12132  * channel is usable. This attribute encapsulates bitmasks of interface types
12133  * defined in enum nl80211_iftype.
12134  *
12135  */
12136 enum qca_wlan_vendor_attr_chan_info {
12137 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12138 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12139 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12140 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12141 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12142 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12143 
12144 	/* keep last */
12145 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12146 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12147 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12148 };
12149 
12150 /**
12151  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12152  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12153  *
12154  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12155  * u32 attribute. Indicates the bands from which the channels should be reported
12156  * in response. This attribute encapsulates bit masks of bands defined in enum
12157  * nl80211_band. Optional attribute, if not present in the request the driver
12158  * shall return channels from all supported bands.
12159  *
12160  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12161  * u32 attribute. Indicates all the interface types for which the usable
12162  * channels information is requested. This attribute encapsulates bitmasks of
12163  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12164  * present in the request the driver shall send information of all supported
12165  * interface modes.
12166  *
12167  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12168  * u32 attribute. This attribute carries information of all filters that shall
12169  * be applied while populating usable channels information by the driver. This
12170  * attribute carries bit masks of different filters defined in enum
12171  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12172  * in the request the driver shall send information of channels without applying
12173  * any of the filters that can be configured through this attribute.
12174  *
12175  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12176  * Nested attribute. This attribute shall be used by the driver to send
12177  * usability information of each channel. The attributes defined in enum
12178  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12179  */
12180 enum qca_wlan_vendor_attr_usable_channels {
12181 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12182 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12183 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12184 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12185 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12186 
12187 	/* keep last */
12188 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12189 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12190 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12191 };
12192 
12193 /**
12194  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12195  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12196  *
12197  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12198  *	the list of radar history entries.
12199  *	Each entry contains freq, timestamp, and radar signal detect flag.
12200  *	The driver shall add an entry when CAC has finished, or radar signal
12201  *	has been detected post AP beaconing. The driver shall maintain at least
12202  *	8 entries in order to save CAC result for a 160 MHz channel.
12203  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12204  *	Channel frequency in MHz.
12205  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12206  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12207  *	or radar detection.
12208  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12209  *	This flag indicates radar signal has been detected.
12210  */
12211 enum qca_wlan_vendor_attr_radar_history {
12212 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12213 
12214 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12215 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12216 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12217 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12218 
12219 	/* keep last */
12220 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12221 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12222 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12223 };
12224 
12225 /**
12226  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12227  *
12228  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12229  *	target exited MCC state and cleared the quota information. In the
12230  *	command it clears MCC quota setting and restores adaptive scheduling.
12231  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12232  *      will not be changed.
12233  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12234  *      and the target may change the quota based on the data activity.
12235  */
12236 enum qca_wlan_vendor_mcc_quota_type {
12237 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12238 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12239 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12240 };
12241 
12242 /**
12243  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12244  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12245  * quota information or as a command to set the required MCC quota for an
12246  * interface.
12247  *
12248  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12249  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12250  * In a command this specifies the MCC quota type to be set for the interface.
12251  * In an event this provides the current quota type in force.
12252  * This is required in a command and an event.
12253  *
12254  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12255  * the list of channel quota entries.
12256  * In an event each entry contains the frequency and respective time quota for
12257  * all the MCC interfaces.
12258  * In a command it specifies the interface index and respective time quota.
12259  * In a command only one entry (ifindex, quota pair) may be specified.
12260  *
12261  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12262  * Channel frequency in MHz. This is present only in an event.
12263  *
12264  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12265  * Channel time quota expressed as percentage.
12266  * This is present in an event and a command.
12267  * In an command, the user shall specify the quota to be allocated for the
12268  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12269  * In an event this provides the existing quota for the channel.
12270  *
12271  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12272  * Specifies the interface index (netdev) for which the corresponding
12273  * configurations are applied. This is required in a command only. Only one
12274  * interface index may be specified. If not specified, the configuration is
12275  * rejected.
12276  */
12277 enum qca_wlan_vendor_attr_mcc_quota {
12278 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12279 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12280 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12281 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12282 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12283 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12284 
12285 	/* keep last */
12286 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12287 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12288 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12289 };
12290 
12291 /**
12292  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12293  * radio configurations present in each radio combination.
12294  *
12295  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12296  * the band info in the radio configuration. Uses the enum qca_set_band values.
12297  *
12298  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12299  * the number of antennas info in the radio configuration.
12300  */
12301 enum qca_wlan_vendor_attr_supported_radio_cfg {
12302 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12303 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12304 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12305 
12306 	/* keep last */
12307 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12308 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12309 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12310 };
12311 
12312 /**
12313  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12314  * radio combinations supported by the device.
12315  *
12316  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12317  * provides the radio configurations present in the radio combination.
12318  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12319  * This attribute provides the values for radio combination matrix.
12320  * For standalone config, the number of config values is one and the config
12321  * carries the band and antenna information for standalone configuration. For
12322  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12323  * configuration the number of config values is two and the config carries the
12324  * band and antenna information for each simultaneous radio.
12325  */
12326 enum qca_wlan_vendor_attr_radio_combination {
12327 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12328 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12329 
12330 	/* keep last */
12331 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12332 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12333 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12334 };
12335 
12336 /**
12337  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12338  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12339  *
12340  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12341  * provides the radio combinations supported by the device.
12342  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12343  * For example, in the radio combination matrix for a device which has two
12344  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12345  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12346  * combinations is 5 and the radio combinations are
12347  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12348  * {{5 GHz 2X2}}, //Standalone 5 GHz
12349  * {{6 GHz 2X2}}, //Standalone 6 GHz
12350  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12351  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12352  * The band and antenna info together as nested data provides one radio config.
12353  * Standalone configuration has one config with band and antenna nested data.
12354  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12355  * have two nested band and antenna info data.
12356  */
12357 enum qca_wlan_vendor_attr_radio_combination_matrix {
12358 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12359 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12360 
12361 	/* keep last */
12362 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12363 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12364 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12365 };
12366 
12367 /**
12368  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12369  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12370  *
12371  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12372  * Enable mDNS offload. This attribute is mandatory to enable
12373  * mDNS offload feature. If this attribute is not present, mDNS offload
12374  * is disabled.
12375  *
12376  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12377  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12378  * attribute is mandatory when enabling the feature, and not required when
12379  * disabling the feature.
12380  *
12381  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12382  * the following attributes:
12383  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12384  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12385  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12386  *
12387  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12388  * It consists of a hostname and ".local" as the domain name. The character
12389  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12390  * It is used to compare the domain in the "QU" query. Only 1 FQDN is
12391  * supported per vdev.
12392  * For example: myphone.local
12393  *
12394  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12395  * u16 attribute. It specifies the total number of resource records present
12396  * in the answer section of the answer payload. This attribute is needed by the
12397  * firmware to populate the mDNS response frame for mDNS queries without having
12398  * to parse the answer payload.
12399  *
12400  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
12401  * attribute sent by the mdnsResponder from userspace. It contains resource
12402  * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
12403  * payload is passed down to the firmware and is transmitted in response to
12404  * mDNS queries.
12405  * The maximum supported size of the answer payload is 512 bytes.
12406  */
12407 enum qca_wlan_vendor_attr_mdns_offload {
12408 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12409 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12410 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12411 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12412 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12413 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12414 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12415 
12416 	/* keep last */
12417 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12418 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12419 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12420 };
12421 
12422 /**
12423  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
12424  * Data frame types to be sent over the monitor interface.
12425  */
12426 enum qca_wlan_vendor_monitor_data_frame_type {
12427 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
12428 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
12429 	 */
12430 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
12431 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
12432 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
12433 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
12434 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
12435 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
12436 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
12437 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
12438 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
12439 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
12440 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
12441 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
12442 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
12443 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
12444 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
12445 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
12446 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
12447 };
12448 
12449 /**
12450  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
12451  * Management frame types to be sent over the monitor interface.
12452  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
12453  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
12454  * except the Beacon frame.
12455  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
12456  * BSSID Beacon frames. Valid only in the connected state.
12457  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
12458  * the Beacon frames obtained during the scan (off channel and connected
12459  * channel), when in connected state.
12460  */
12461 enum qca_wlan_vendor_monitor_mgmt_frame_type {
12462 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
12463 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
12464 	 */
12465 	QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
12466 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
12467 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
12468 };
12469 
12470 /**
12471  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
12472  * Control frame types to be sent over the monitor interface.
12473  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
12474  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
12475  */
12476 enum qca_wlan_vendor_monitor_ctrl_frame_type {
12477 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
12478 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
12479 	 */
12480 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
12481 };
12482 
12483 /**
12484  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
12485  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
12486  * monitor mode.
12487  *
12488  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
12489  * Represents the TX Data frame types to be monitored (u32). These Data frames
12490  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12491  *
12492  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
12493  * Represents the RX Data frame types to be monitored (u32). These Data frames
12494  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
12495  *
12496  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
12497  * Represents the TX Management frame types to be monitored (u32). These
12498  * Management frames are represented by
12499  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12500  *
12501  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
12502  * Represents the RX Management frame types to be monitored (u32). These
12503  * Management frames are represented by
12504  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
12505  *
12506  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
12507  * Represents the TX Control frame types to be monitored (u32). These Control
12508  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12509  *
12510  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
12511  * Represents the RX Control frame types to be monitored (u32). These Control
12512  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
12513  *
12514  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
12515  * attribute.
12516  * Represents the interval in milliseconds only for the connected Beacon frames,
12517  * expecting the connected BSS's Beacon frames to be sent on the monitor
12518  * interface at this specific interval.
12519  */
12520 enum qca_wlan_vendor_attr_set_monitor_mode {
12521 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
12522 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
12523 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
12524 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
12525 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
12526 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
12527 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
12528 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
12529 
12530 	/* keep last */
12531 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
12532 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
12533 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
12534 };
12535 
12536 /**
12537  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
12538  * Bits will be set to 1 if the corresponding state is enabled.
12539  *
12540  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
12541  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
12542  */
12543 enum qca_wlan_vendor_roam_scan_state {
12544 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
12545 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
12546 };
12547 
12548 /**
12549  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
12550  * Bits will be set to 1 if the corresponding event is notified.
12551  *
12552  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
12553  * carries the trigger reason. When set, it is expected that the roam event
12554  * carries the respective reason via the attribute
12555  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
12556  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
12557  *
12558  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
12559  * carries the roam fail reason. When set, it is expected that the roam event
12560  * carries the respective reason via the attribute
12561  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
12562  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
12563  *
12564  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
12565  * event carries the roam invoke fail reason. When set, it is expected that
12566  * the roam event carries the respective reason via the attribute
12567  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
12568  *
12569  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
12570  * carries the roam scan state. When set, it is expected that the roam event
12571  * carries the respective scan state via the attribute
12572  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
12573  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
12574  */
12575 enum qca_wlan_vendor_roam_event_type {
12576 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
12577 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
12578 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
12579 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
12580 };
12581 
12582 /**
12583  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
12584  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
12585  *
12586  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
12587  * representing the BSSID of the AP to which the roam is attempted.
12588  *
12589  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
12590  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
12591  * attempted.
12592  *
12593  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
12594  * on which the roam is attempted.
12595  *
12596  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
12597  * STA mode only. This represents the roam fail reason for the last failed
12598  * roaming attempt by the firmware for the specific BSSID. Different roam
12599  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
12600  */
12601 enum qca_wlan_vendor_attr_roam_events_candidate_info {
12602 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
12603 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
12604 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
12605 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
12606 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
12607 
12608 	/* keep last */
12609 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
12610 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
12611 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
12612 };
12613 
12614 /**
12615  * enum qca_wlan_vendor_attr_roam_events - Used by the
12616  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
12617  * roam events to the driver or notify these events from the driver.
12618  *
12619  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
12620  * driver/firmware to enable/disable the notification of roam events. It's a
12621  * mandatory attribute and used only in the request from the userspace to the
12622  * host driver. 1-Enable, 0-Disable.
12623  * If the roaming is totally offloaded to the firmware, this request when
12624  * enabled shall mandate the firmware to notify all the relevant roam events
12625  * represented by the below attributes. If the host is in the suspend mode,
12626  * the behavior of the firmware to notify these events is guided by
12627  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
12628  * these events in the suspend state, the firmware is expected to wake up the
12629  * host before the respective events are notified. Please note that such a
12630  * request to get the events in the suspend state will have a definite power
12631  * implication.
12632  *
12633  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
12634  * that the roam events need to be notified in the suspend state too. By
12635  * default, these roam events are notified in the resume state. With this flag,
12636  * the roam events are notified in both resume and suspend states.
12637  * This attribute is used in the request from the userspace to the host driver.
12638  *
12639  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
12640  * Represents the different roam event types, signified by the enum
12641  * qca_wlan_vendor_roam_event_type.
12642  * Each bit of this attribute represents the different roam even types reported
12643  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12644  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12645  *
12646  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
12647  * mode only. This represents the roam trigger reason for the last roaming
12648  * attempted by the firmware. Each bit of this attribute represents the
12649  * different roam trigger reason code which are defined in enum
12650  * qca_vendor_roam_triggers.
12651  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12652  *
12653  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
12654  * STA mode only. This represents the roam invoke fail reason for the last
12655  * failed roam invoke. Different roam invoke failure reason codes
12656  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
12657  *
12658  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
12659  * for which the roam is attempted. Each entry is a nested attribute defined
12660  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
12661  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12662  *
12663  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
12664  * the scan state on which the roam events need to be notified. The values for
12665  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
12666  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12667  *
12668  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
12669  * u32 values. List of frequencies in MHz considered for a roam scan.
12670  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
12671  */
12672 enum qca_wlan_vendor_attr_roam_events {
12673 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
12674 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
12675 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
12676 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
12677 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
12678 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
12679 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
12680 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
12681 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
12682 
12683 	/* keep last */
12684 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
12685 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
12686 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
12687 };
12688 
12689 /**
12690  * enum qca_wlan_ratemask_params_type - Rate mask config type
12691  *
12692  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
12693  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
12694  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
12695  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
12696  */
12697 enum qca_wlan_ratemask_params_type {
12698 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
12699 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
12700 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
12701 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
12702 };
12703 
12704 /**
12705  * enum qca_wlan_vendor_attr_ratemask_params - Used by the
12706  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
12707  * This is used to set the rate mask value to be used in rate selection.
12708  *
12709  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
12710  * Array of nested containing attributes
12711  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
12712  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
12713  *
12714  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
12715  * the different PHY types to which the rate mask config is to be applied.
12716  * The values for this attribute are referred from enum
12717  * qca_wlan_vendor_ratemask_params_type.
12718  *
12719  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
12720  * A bit value of 1 represents rate is enabled and a value of 0
12721  * represents rate is disabled.
12722  * For HE targets, 12 bits correspond to one NSS setting.
12723  * b0-13  => NSS1, MCS 0-13
12724  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
12725  * For VHT targets, 10 bits correspond to one NSS setting.
12726  * b0-9   => NSS1, MCS 0-9
12727  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
12728  * For HT targets, 8 bits correspond to one NSS setting.
12729  * b0-7  => NSS1, MCS 0-7
12730  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
12731  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
12732  */
12733 enum qca_wlan_vendor_attr_ratemask_params {
12734 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
12735 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
12736 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
12737 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
12738 
12739 	/* keep last */
12740 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
12741 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
12742 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
12743 };
12744 
12745 /**
12746  * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
12747  * traffic.
12748  *
12749  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
12750  * Send audio traffic through the host processor.
12751  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
12752  * Send audio traffic using the low power DSP to/from the encoder.
12753  */
12754 enum qca_wlan_audio_data_path {
12755 	QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
12756 	QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
12757 };
12758 
12759 /**
12760  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
12761  *	for) or drop existing PASN security association for the listed the
12762  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
12763  *	to userspace.
12764  *
12765  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
12766  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
12767  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
12768  *	the driver to userspace to inform that the existing PASN keys of the
12769  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
12770  *	not valid anymore.
12771  */
12772 enum qca_wlan_vendor_pasn_action {
12773 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
12774 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
12775 };
12776 
12777 /**
12778  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
12779  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
12780  *
12781  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
12782  *	event from the driver to userspace and represents the local MAC address
12783  *	to be used for PASN handshake. When this attribute is present, userspace
12784  *	shall use the source address specified in this attribute by the driver
12785  *	for PASN handshake with peer device.
12786  *	This attribute is required in a command response from userspace to the
12787  *	driver and represents the MAC address that was used in PASN handshake
12788  *	with the peer device.
12789  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
12790  *	peer device to which PASN handshake is requested in an event from the
12791  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12792  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
12793  *	Indicates the MAC address of the peer device for which the keys are to
12794  *	be invalidated in an event from the driver to userspace when
12795  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
12796  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
12797  *	Indicates the MAC address of the peer device for which the status is
12798  *	being sent in a status report from userspace to the driver.
12799  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
12800  *	in the event from the driver to userspace. When set, userspace is
12801  *	required to derive LTF key seed from KDK and set it to the driver.
12802  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
12803  *	attribute is used in the command response from userspace to the driver.
12804  *	If present, it indicates the successful PASN handshake with the peer. If
12805  *	this flag is not present, it indicates that the PASN handshake with the
12806  *	peer device failed.
12807  */
12808 enum qca_wlan_vendor_attr_pasn_peer {
12809 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
12810 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
12811 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
12812 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
12813 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
12814 
12815 	/* keep last */
12816 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
12817 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
12818 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
12819 };
12820 
12821 /**
12822  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
12823  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
12824  *
12825  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
12826  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
12827  *	from the driver to userspace.
12828  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
12829  *	details for each peer and used in both an event and a command response.
12830  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
12831  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
12832  */
12833 enum qca_wlan_vendor_attr_pasn {
12834 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
12835 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
12836 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
12837 
12838 	/* keep last */
12839 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
12840 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
12841 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
12842 };
12843 
12844 /**
12845  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
12846  *	the ranging security context derived from PASN for each peer. Used in
12847  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
12848  *
12849  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
12850  *	context for the peer.
12851  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
12852  *	context for the peer.
12853  */
12854 enum qca_wlan_vendor_secure_ranging_ctx_action {
12855 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
12856 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
12857 };
12858 
12859 /**
12860  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
12861  *	used for deriving PASN keys to the driver. Used in
12862  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
12863  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
12864  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
12865  */
12866 enum qca_wlan_vendor_sha_type {
12867 	QCA_WLAN_VENDOR_SHA_256,
12868 	QCA_WLAN_VENDOR_SHA_384,
12869 };
12870 
12871 /**
12872  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
12873  *	to set security context for the PASN peer from userspace to the driver.
12874  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
12875  *
12876  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
12877  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
12878  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
12879  *	was used during the PASN handshake.
12880  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
12881  *	the peer device for which secure ranging context is being configured.
12882  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
12883  *	hash algorithm to be used, possible values are defined in enum
12884  *	qca_wlan_vendor_sha_type.
12885  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
12886  *	the temporal key generated from the PASN handshake. The length of this
12887  *	attribute is dependent on the value of
12888  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
12889  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
12890  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
12891  *	(e.g., 0x000FAC04).
12892  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
12893  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
12894  *	The length of this attribute is dependent on the value of
12895  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
12896 
12897  */
12898 enum qca_wlan_vendor_attr_secure_ranging_ctx {
12899 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
12900 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
12901 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
12902 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
12903 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
12904 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
12905 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
12906 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
12907 
12908 	/* keep last */
12909 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
12910 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
12911 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
12912 };
12913 
12914 /**
12915  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
12916  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
12917  * nested attribute. The packets that match a filter will be replied with
12918  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
12919  *
12920  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
12921  * u32 attribute. Destination IPv4 address in network byte order, the
12922  * IPv4 packets with different address will be filtered out.
12923  * This attribute is optional.
12924  *
12925  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
12926  * Flag attribute. If it's present, indicates that
12927  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
12928  * address; while if not, indicates that the address is a unicast/multicast
12929  * address.
12930  * This attribute is optional.
12931  *
12932  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
12933  * NLA_BINARY attribute, length is 16 bytes.
12934  * Destination IPv6 address in network byte order, the IPv6 packets
12935  * with different destination address will be filtered out.
12936  * This attribute is optional.
12937  *
12938  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
12939  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
12940  * Packets on both IPv4 and IPv6 will be processed if both are configured.
12941  *
12942  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
12943  * u16 attribute. Destination UDP port, the packets with different destination
12944  * UDP port will be filtered out.
12945  * This attribute is mandatory.
12946  *
12947  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
12948  * u32 attribute. Represents the offset (in UDP payload) of the data
12949  * to be matched.
12950  * This attribute is mandatory.
12951  *
12952  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
12953  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
12954  * Binary data that is compared bit-by-bit against the data (specified
12955  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
12956  * payload, the packets don't match will be filtered out.
12957  * This attribute is mandatory.
12958  */
12959 enum qca_wlan_vendor_attr_coap_offload_filter {
12960 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
12961 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
12962 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
12963 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
12964 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
12965 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
12966 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
12967 
12968 	/* keep last */
12969 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
12970 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
12971 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
12972 };
12973 
12974 /**
12975  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
12976  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
12977  *
12978  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
12979  * u32 attribute. Source address (in network byte order) for replying
12980  * the matching broadcast/multicast IPv4 packets.
12981  * This attribute is optional.
12982  *
12983  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
12984  * NLA_BINARY attribute, length is 16 bytes.
12985  * Source address (in network byte order) for replying the matching
12986  * multicast IPv6 packets.
12987  * This attribute is optional.
12988  *
12989  * For broadcast/multicast offload reply, one of
12990  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
12991  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
12992  * configured according to version of the IP address(es) configured in
12993  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
12994  * while for unicast case, firmware will take the destination IP address
12995  * in the received matching packet as the source address for replying.
12996  *
12997  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
12998  * Nested attribute. Filter for the received UDP packets, only the matching
12999  * packets will be replied and cached.
13000  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13001  * attributes.
13002  * This attribute is mandatory.
13003  *
13004  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13005  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13006  * CoAP message (UDP payload) to be sent upon receiving matching packets.
13007  * Firmware is responsible for adding any necessary protocol headers.
13008  * This attribute is mandatory.
13009  *
13010  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13011  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13012  * A cached message will be dropped by firmware if it's expired.
13013  * This attribute is optional. A default value of 40000 will be used in the
13014  * absence of it.
13015  */
13016 enum qca_wlan_vendor_attr_coap_offload_reply {
13017 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13018 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13019 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13020 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13021 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13022 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13023 
13024 	/* keep last */
13025 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13026 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13027 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13028 };
13029 
13030 /**
13031  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13032  * CoAP message (UDP) transmitting on IPv4.
13033  *
13034  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13035  * u32 attribute. Source address (in network byte order) for transmitting
13036  * packets on IPv4.
13037  * This attribute is mandatory.
13038  *
13039  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13040  * u16 attribute. Source UDP port.
13041  * This attribute is optional, a random port is taken if it's not present.
13042  *
13043  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13044  * u32 attribute. Destination IPv4 address (in network byte order).
13045  * This attribute is mandatory.
13046  *
13047  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13048  * Flag attribute. If it's present, indicates that
13049  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13050  * address; while if not, indicates that the address is unicast/multicast
13051  * address.
13052  * This attribute is optional.
13053  *
13054  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13055  * u16 attribute. Destination UDP port.
13056  * This attribute is mandatory.
13057  */
13058 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13059 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13060 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13061 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13062 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13063 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13064 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13065 
13066 	/* keep last */
13067 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13068 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13069 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13070 };
13071 
13072 /**
13073  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13074  * CoAP message (UDP) transmitting on IPv6.
13075  *
13076  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13077  * NLA_BINARY attribute, length is 16 bytes.
13078  * Source address (in network byte order) for transmitting packets on IPv6.
13079  * This attribute is mandatory.
13080  *
13081  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13082  * u16 attribute. Source UDP port.
13083  * This attribute is optional, a random port is taken if it's not present.
13084  *
13085  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13086  * NLA_BINARY attribute, length is 16 bytes.
13087  * Destination IPv6 address (in network byte order).
13088  * This attribute is mandatory.
13089  *
13090  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13091  * u16 attribute. Destination UDP port.
13092  * This attribute is mandatory.
13093  */
13094 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13095 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13096 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13097 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13098 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13099 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13100 
13101 	/* keep last */
13102 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13103 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13104 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13105 };
13106 
13107 /**
13108  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13109  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13110  *
13111  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13112  * Nested attribute. The IPv4 source/destination address/port for offload
13113  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13114  * of supported attributes.
13115  * This attribute is optional.
13116  *
13117  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13118  * Nested attribute. The IPv6 source/destination address/port for offload
13119  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13120  * of supported attributes.
13121  * This attribute is optional.
13122  *
13123  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13124  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13125  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13126  * configured.
13127  *
13128  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13129  * u32 attribute. Period in milliseconds for the periodic transmitting.
13130  * This attribute is mandatory.
13131  *
13132  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13133  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13134  * CoAP message (UDP payload) to be periodically transmitted. Firmware
13135  * is responsible for adding any necessary protocol headers.
13136  * This attribute is mandatory.
13137  */
13138 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13139 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13140 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13141 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13142 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13143 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13144 
13145 	/* keep last */
13146 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13147 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13148 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13149 };
13150 
13151 /**
13152  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13153  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13154  *
13155  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13156  * u64 attribute. Received time (since system booted in microseconds) of
13157  * the cached CoAP message.
13158  * This attribute is mandatory.
13159  *
13160  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13161  * u32 attribute. Source IPv4 address (in network byte order) of the cached
13162  * CoAP message.
13163  * This attribute is optional.
13164  *
13165  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13166  * NLA_BINARY attribute, length is 16 bytes.
13167  * Source IPv6 address (in network byte order) of the cached CoAP message.
13168  * This attribute is optional.
13169  *
13170  * At most and at least one of
13171  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13172  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13173  * an entry.
13174  *
13175  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13176  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13177  * The cached CoAP message (UDP payload). If the actual message size is
13178  * greater than the maximum size, it will be truncated and leaving only
13179  * the first 1152 bytes.
13180  * This attribute is mandatory.
13181  */
13182 enum qca_wlan_vendor_attr_coap_offload_cache_info {
13183 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13184 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13185 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13186 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13187 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
13188 
13189 	/* keep last */
13190 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13191 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13192 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13193 };
13194 
13195 /**
13196  * enum qca_wlan_vendor_coap_offload_action - Actions for
13197  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13198  *
13199  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13200  * Enable CoAP offload reply.
13201  * If it's enabled, firmware will start offload processing on each suspend
13202  * and stop on each resume.
13203  *
13204  * Offload reply on match works as follows:
13205  * Reply the packets that match the filter with the given CoAP
13206  * message (with necessary protocol headers), increase the CoAP message
13207  * ID in the given CoAP message by one for the next use after each successful
13208  * transmission, and try to store the information of the received packet,
13209  * including the received time, source IP address, and CoAP message (UDP
13210  * payload).
13211  *
13212  * Firmware has a limit to the maximum stored entries, it takes the source IP
13213  * address as the key of an entry, and keeps at most one entry for each key.
13214  * A packet won't be stored if no entry for the same key is present and the
13215  * total number of the existing unexpired entries reaches the maximum value.
13216  *
13217  * If any configured item is changed, user space should disable offload reply
13218  * first and then issue a new enable request.
13219  *
13220  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13221  * Disable CoAP offload reply and return information of any cached CoAP
13222  * messages.
13223  *
13224  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13225  * Enable CoAP offload periodic transmitting.
13226  * If it's enabled, firmware will start offload periodic transmitting on
13227  * each suspend and stop on each resume.
13228  *
13229  * Offload periodic transmitting works as follows:
13230  * Send the given CoAP message (with necessary protocol headers) with the given
13231  * source/destination IP address/UDP port periodically based on the given
13232  * period and increase the CoAP message ID in the given CoAP message by one
13233  * for the next use after each successful transmission.
13234  *
13235  * If any configured item is changed, user space should disable offload
13236  * periodic transmitting first and then issue a new enable request.
13237  *
13238  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13239  * Disable CoAP offload periodic transmitting.
13240  *
13241  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13242  * Get information of the CoAP messages cached during offload reply
13243  * processing. The cache is cleared after retrieval.
13244  */
13245 enum qca_wlan_vendor_coap_offload_action {
13246 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13247 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13248 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13249 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13250 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13251 };
13252 
13253 /**
13254  * enum qca_wlan_vendor_attr_coap_offload - Used by the
13255  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13256  * This is used to set parameters for CoAP offload processing, or get
13257  * cached CoAP messages from firmware.
13258  *
13259  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13260  * u32 attribute. Action to take in this vendor command.
13261  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13262  * This attribute is mandatory.
13263  *
13264  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13265  * u32 attribute. Represents the Request ID for the CoAP offload
13266  * configuration, which can help to identify the user entity starting
13267  * the CoAP offload processing and accordingly stop the respective
13268  * ones/get the cached CoAP messages with the matching ID.
13269  * This attribute is mandatory.
13270  *
13271  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13272  * Nested attribute. Parameters for offload reply.
13273  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13274  * supported attributes.
13275  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13276  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13277  * otherwise.
13278  *
13279  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13280  * Nested attribute. Parameters for offload periodic transmitting.
13281  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13282  * supported attributes.
13283  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13284  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13285  * otherwise.
13286  *
13287  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13288  * Array of nested attributes. Information of the cached CoAP messages,
13289  * where each entry is taken from
13290  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13291  * This attribute is used for reporting the cached CoAP messages
13292  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13293  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13294  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13295  * cached item if this attribute is not present.
13296  */
13297 enum qca_wlan_vendor_attr_coap_offload {
13298 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13299 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13300 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13301 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13302 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13303 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13304 
13305 	/* keep last */
13306 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13307 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13308 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13309 };
13310 
13311 /**
13312  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13313  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13314  * Service (SCS) rule.
13315  *
13316  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13317  * Represents the unique id of SCS rule to be configured.
13318 
13319  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13320  * Represents the request type: add, remove, or change.
13321  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13322  * Type definitions).
13323  *
13324  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13325  * in case of add/change request type.
13326  * Represents the output traffic identifier (TID) to be assigned to the flow
13327  * matching the rule.
13328  *
13329  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13330  * attribute in case of add/change request type.
13331  * Represents type of classifier parameters present in SCS rule.
13332  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13333  * Only classifier types 4 and 10 are supported for SCS.
13334  *
13335  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13336  * in case of add/change request type when classifier type is TCLAS4.
13337  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13338  *
13339  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13340  * attribute in case of add/change request type when classifier type is TCLAS4
13341  * and version attribute is IPv4.
13342  * Represents the source IPv4 address in the rule which is to be compared
13343  * against the source IP address in the IPv4 header.
13344  *
13345  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13346  * attribute in case of add/change request type when classifier type is TCLAS4
13347  * and version attribute is IPv4.
13348  * Represents the destination IPv4 address in the rule which is to be compared
13349  * against the destination IP address in the IPv4 header.
13350  *
13351  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13352  * attribute in case of add/change request type when classifier type is TCLAS4
13353  * and version attribute is IPv6.
13354  * Represents the source IPv6 address in the rule which is to be compared
13355  * against the source IP address in the IPv6 header.
13356  *
13357  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
13358  * attribute in case of add/change request type when classifier type is TCLAS4
13359  * and version attribute is IPv6.
13360  * Represents the destination IPv6 address in the rule which is to be compared
13361  * against the destination IP address in the IPv6 header.
13362  *
13363  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
13364  * in case of add/change request type when classifier type is TCLAS4.
13365  * Represents the source port number in the rule which is to be compared against
13366  * the source port number in the protocol header.
13367  *
13368  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
13369  * in case of add/change request type when classifier type is TCLAS4.
13370  * Represents the destination port number in the rule which is to be compared
13371  * against the destination port number in the protocol header.
13372  *
13373  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
13374  * in case of add/change request type when classifier type is TCLAS4.
13375  * Represents the DSCP value in the rule which is to be compared against the
13376  * DSCP field present in the IP header.
13377  *
13378  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
13379  * attribute in case of add/change request type when classifier type is TCLAS4.
13380  * Represents the protocol/next header in the rule which is to be compared
13381  * against the protocol/next header field present in the IPv4/IPv6 header.
13382  *
13383  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
13384  * attribute of size 3 bytes present in case of add/change request type
13385  * when classifier type is TCLAS4 and version is IPv6.
13386  * Represents the flow label value in the rule which is to be compared against
13387  * the flow label field present in the IPv6 header.
13388  *
13389  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
13390  * attribute in case of add/change request type when classifier type is TCLAS10.
13391  * Represents the protocol instance number in the rule.
13392  *
13393  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
13394  * attribute in case of add/change request type when classifier type is TCLAS10.
13395  * Represents the protocol/next header in the rule which is to be compared
13396  * against the protocol/next header field present in the IPv4/IPv6 header.
13397  *
13398  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
13399  * attribute of variable length present when request type is add/change and
13400  * classifier type is TCLAS10.
13401  * Represents the mask to be used for masking the header contents of the header
13402  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
13403  * attribute.
13404  *
13405  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
13406  * attribute of variable length present when request type is add/change and
13407  * classifier type is TCLAS10.
13408  * Represents the value to be compared against after masking the header contents
13409  * of the header specified by the
13410  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
13411  * filter mask specified by the
13412  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
13413  *
13414  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
13415  * attribute.
13416  * Represents the service class id of the configured SCS rule.
13417  */
13418 enum qca_wlan_vendor_attr_scs_rule_config {
13419 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
13420 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
13421 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
13422 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
13423 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
13424 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
13425 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
13426 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
13427 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
13428 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
13429 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
13430 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
13431 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
13432 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
13433 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
13434 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
13435 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
13436 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
13437 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
13438 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
13439 
13440 	/* Keep last */
13441 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
13442 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
13443 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
13444 };
13445 
13446 /**
13447  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
13448  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
13449  *
13450  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
13451  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
13452  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
13453  */
13454 enum qca_wlan_vendor_attr_mlo_links {
13455 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
13456 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
13457 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
13458 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
13459 
13460 	/* Keep last */
13461 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
13462 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
13463 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
13464 };
13465 
13466 /**
13467  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
13468  * used in the firmware.
13469  *
13470  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
13471  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
13472  *
13473  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
13474  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
13475  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
13476  * groups.
13477  *
13478  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
13479  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
13480  * CTL group but user can choose up to 3 SAR set index only, as the top half
13481  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
13482  * the SAR index (3 to 5) is used for DBS mode.
13483  */
13484 enum qca_wlan_vendor_sar_version {
13485 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
13486 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
13487 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
13488 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
13489 };
13490 
13491 /**
13492  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
13493  * CTL grouping is enabled or disabled in the firmware.
13494  *
13495  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
13496  * is enabled in firmware.
13497  *
13498  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
13499  * is disabled in firmware.
13500  *
13501  */
13502 enum qca_wlan_vendor_sar_ctl_group_state {
13503 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
13504 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
13505 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
13506 };
13507 
13508 /**
13509  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
13510  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
13511  * supported by the firmware.
13512 
13513  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
13514  * u32 attribute. This field describes current SAR version supported by the
13515  * firmware.
13516  * See enum qca_wlan_vendor_sar_version for more information.
13517  * This attribute is mandatory.
13518 
13519  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
13520  * u32 attribute. This field describes whether CTL groups are enabled
13521  * or disabled in the firmware.
13522  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
13523  * This attribute is optional.
13524  */
13525 
13526 enum qca_wlan_vendor_attr_sar_capability {
13527 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
13528 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
13529 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
13530 
13531 	/* Keep last */
13532 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
13533 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
13534 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
13535 };
13536 
13537 /**
13538  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
13539  * These statistics are sent from the driver in a response when userspace
13540  * queries to get the statistics using the operation
13541  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
13542  * by the driver when the SR feature is enabled, when the driver receives
13543  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
13544  *
13545  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
13546  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13547  * This represents the number of non-SRG TX opportunities.
13548  *
13549  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
13550  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13551  * This represents the number of non-SRG PPDUs tried to transmit.
13552  *
13553  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
13554  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
13555  * This represents the number of non-SRG PPDUs successfully transmitted.
13556  *
13557  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
13558  * Mandatory only when SRG is supported by the AP and optional otherwise.
13559  * This represents the number of SRG TX opportunities.
13560  *
13561  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
13562  * Mandatory only when SRG is supported by the AP and optional otherwise.
13563  * This represents the number of SRG PPDUs tried to transmit.
13564  *
13565  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
13566  * Mandatory only when SRG is supported by the AP and optional otherwise.
13567  * This represents the number of SRG PPDUs successfully transmitted.
13568  */
13569 enum qca_wlan_vendor_attr_sr_stats {
13570 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
13571 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
13572 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
13573 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
13574 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
13575 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
13576 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
13577 
13578 	/* Keep last */
13579 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
13580 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
13581 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
13582 };
13583 
13584 /**
13585  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
13586  * Spatial Reuse feature.
13587  *
13588  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
13589  * roaming to an AP that doesn't support/supports SR feature, respectively.
13590  *
13591  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
13592  * to change in concurrent interfaces that are supported by the driver.
13593  */
13594 enum qca_wlan_sr_reason_code {
13595 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
13596 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
13597 };
13598 
13599 /**
13600  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
13601  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
13602  *
13603  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
13604  * driver to enable the Spatial Reuse feature. Attributes
13605  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
13606  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
13607  * operation.
13608  *
13609  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
13610  * driver to disable the Spatial Reuse feature.
13611  *
13612  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
13613  * asynchronous event sent to userspace when the SR feature is disabled.
13614  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
13615  * and sent along with the asynchronous event.
13616  *
13617  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
13618  * asynchronous event when the SR feature is enabled again after the SR feature
13619  * was suspended by the driver earlier. The enable reason is
13620  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
13621  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
13622  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
13623  *
13624  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
13625  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
13626  * reuse transmissions. Userspace sends this operation to the driver.
13627  * The driver/firmware upon receiving this operation shall prohibit PSR-based
13628  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
13629  *
13630  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
13631  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
13632  * reuse transmissions. Userspace sends this operation to the driver.
13633  * The driver/firmware upon receiving this operation shall allow PSR-based
13634  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
13635  *
13636  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
13637  * driver to get the SR statistics and the driver sends a synchronous response
13638  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
13639  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
13640  *
13641  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
13642  * driver to clear the SR statistics and upon receiving this operation
13643  * the driver/firmware shall clear the SR statistics.
13644  *
13645  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
13646  * driver to get the SR parameters and the driver sends the synchronous response
13647  * with the following required attributes:
13648  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
13649  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
13650  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
13651  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
13652  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
13653  *
13654  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
13655  * asynchronous event to userspace to update any changes in SR parameters.
13656  * The following attributes are used with this operation:
13657  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
13658  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
13659  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
13660  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
13661  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
13662  */
13663 enum qca_wlan_sr_operation {
13664 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
13665 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
13666 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
13667 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
13668 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
13669 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
13670 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
13671 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
13672 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
13673 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
13674 };
13675 
13676 /**
13677  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
13678  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
13679  *
13680  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
13681  * This attribute is optionally set in response to
13682  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
13683  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
13684  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
13685  * about HESIGA_Spatial_reuse_value15_allowed.
13686  *
13687  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
13688  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
13689  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
13690  * allowed or not at non-AP STAs that are associated with the AP. If present
13691  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
13692  *
13693  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
13694  * attribute. This attribute is used in response to
13695  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
13696  * Min Offset field which contains an unsigned integer that is added to -82 dBm
13697  * to generate the value of the SRG OBSS PD Min parameter.
13698  *
13699  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
13700  * attribute. This attribute is used in response to
13701  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
13702  * Max Offset field which contains an unsigned integer that is added to -82 dBm
13703  * to generate the value of the SRG OBSS PD Max parameter.
13704  *
13705  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
13706  * attribute. This attribute is used in response to
13707  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
13708  * PD Max Offset field which contains an unsigned integer that is added to -82
13709  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
13710  *
13711  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
13712  * Userspace optionally sends this attribute with
13713  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
13714  * preferred SRG PD threshold. The driver shall send this attribute to
13715  * userspace in SR resume event to indicate the PD threshold being used for SR.
13716  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
13717  * the driver shall indicate the userspace the newly configured SRG PD threshold
13718  * using an asynchronous event.
13719  *
13720  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
13721  * Userspace optionally sends this attribute with
13722  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
13723  * preferred non-SRG PD threshold. The driver shall send this attribute to
13724  * userspace in SR resume event to indicate the PD threshold being used for SR.
13725  * When there is change in non-SRG PD threshold (for example, due to roaming,
13726  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
13727  * threshold using an asynchronous event.
13728  *
13729  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
13730  * values are defined in enum qca_wlan_sr_reason_code. This
13731  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
13732  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
13733  */
13734 enum qca_wlan_vendor_attr_sr_params {
13735 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
13736 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
13737 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
13738 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
13739 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
13740 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
13741 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
13742 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
13743 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
13744 
13745 	/* keep last */
13746 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
13747 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
13748 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
13749 };
13750 
13751 /**
13752  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
13753  * command QCA_NL80211_VENDOR_SUBCMD_SR.
13754  *
13755  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
13756  * from userspace to the driver. Possible values are defined in enum
13757  * qca_wlan_sr_operation.
13758  *
13759  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
13760  * configuration parameters. The possible attributes inside this attribute are
13761  * defined in enum qca_wlan_vendor_attr_sr_params.
13762  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
13763  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
13764  * also in response from the driver to userspace when the response is sent for
13765  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
13766  * The driver uses this attribute in asynchronous events in which the operation
13767  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
13768  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
13769  *
13770  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
13771  * statistics. These attributes used inside this are defined in enum
13772  * qca_wlan_vendor_attr_sr_stats.
13773  * This attribute is used in response from the driver to a command in which
13774  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
13775  * %QCA_WLAN_SR_OPERATION_GET_STATS.
13776  */
13777 enum qca_wlan_vendor_attr_sr {
13778 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
13779 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
13780 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
13781 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
13782 
13783 	/* Keep last */
13784 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
13785 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
13786 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
13787 };
13788 
13789 /**
13790  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
13791  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
13792  *
13793  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
13794  * used by the peer on the link that corresponds to the link used for sending
13795  * the event notification.
13796  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
13797  * MLD MAC address of the peer.
13798  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
13799  * used to pass ifindex of the primary netdev.
13800  */
13801 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
13802 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
13803 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
13804 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
13805 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
13806 
13807 	/* keep last */
13808 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
13809 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
13810 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
13811 };
13812 
13813 /**
13814  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
13815  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
13816  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
13817  * and PSD information.
13818  *
13819  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
13820  * u32. This attribute is used to indicate the start of the queried frequency
13821  * range in MHz.
13822  *
13823  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
13824  * This attribute is used to indicate the end of the queried frequency range
13825  * in MHz.
13826  *
13827  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
13828  * This attribute will contain the PSD information for a single range as
13829  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
13830  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
13831  *
13832  * The PSD power info (dBm/MHz) from user space should be multiplied
13833  * by a factor of 100 when sending to the driver to preserve granularity
13834  * up to 2 decimal places.
13835  * Example:
13836  *     PSD power value: 10.21 dBm/MHz
13837  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
13838  *
13839  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
13840  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
13841  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
13842  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
13843  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
13844  *
13845  * The following set of attributes will be used to exchange frequency and
13846  * corresponding PSD information for AFC between the user space and the driver.
13847  */
13848 enum qca_wlan_vendor_attr_afc_freq_psd_info {
13849 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
13850 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
13851 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
13852 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
13853 
13854 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
13855 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
13856 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
13857 };
13858 
13859 /**
13860  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
13861  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
13862  * channel list and corresponding EIRP information.
13863  *
13864  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
13865  * This attribute is used to indicate queried channel from
13866  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
13867  *
13868  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
13869  * This attribute is used to configure the EIRP power info corresponding
13870  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
13871  * The EIRP power info(dBm) from user space should be multiplied
13872  * by a factor of 100 when sending to Driver to preserve granularity up to
13873  * 2 decimal places.
13874  * Example:
13875  *     EIRP power value: 34.23 dBm
13876  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
13877  *
13878  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
13879  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
13880  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
13881  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
13882  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
13883  *
13884  * The following set of attributes will be used to exchange Channel and
13885  * corresponding EIRP information for AFC between the user space and Driver.
13886  */
13887 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
13888 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
13889 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
13890 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
13891 
13892 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
13893 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
13894 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
13895 };
13896 
13897 /**
13898  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
13899  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
13900  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
13901  * channel, and EIRP related information.
13902  *
13903  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
13904  * This attribute is used to indicate the operating class, as listed under
13905  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
13906  *
13907  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
13908  * for updating the channel number and EIRP power information.
13909  * It uses the attributes defined in
13910  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
13911  *
13912  * Operating class information packing format for
13913  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
13914  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
13915  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
13916  *
13917  * m - Total number of operating classes.
13918  * n, j - Number of queried channels for the corresponding operating class.
13919  *
13920  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
13921  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
13922  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
13923  *      .....
13924  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
13925  *  ....
13926  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
13927  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
13928  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
13929  *      ....
13930  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
13931  *
13932  * Operating class information packing format for
13933  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
13934  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
13935  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
13936  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
13937  *
13938  * m - Total number of operating classes.
13939  * n, j - Number of channels for the corresponding operating class.
13940  *
13941  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
13942  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
13943  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
13944  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
13945  *      .....
13946  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
13947  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
13948  *  ....
13949  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
13950  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
13951  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
13952  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
13953  *      ....
13954  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
13955  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
13956  *
13957  * The following set of attributes will be used to exchange operating class
13958  * information for AFC between the user space and the driver.
13959  */
13960 enum qca_wlan_vendor_attr_afc_opclass_info {
13961 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
13962 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
13963 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
13964 
13965 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
13966 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
13967 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
13968 };
13969 
13970 /**
13971  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
13972  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
13973  *
13974  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
13975  * driver to userspace in order to query the new AFC power values.
13976  *
13977  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
13978  * complete event will be sent from the driver to userspace to indicate
13979  * processing of the AFC response.
13980  *
13981  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
13982  * will be sent from the driver to userspace to indicate last received
13983  * AFC response data has been cleared on the AP due to invalid data
13984  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
13985  *
13986  * The following enum defines the different event types that will be
13987  * used by the driver to help trigger corresponding AFC functionality in user
13988  * space.
13989  */
13990 enum qca_wlan_vendor_afc_event_type {
13991 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
13992 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
13993 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
13994 };
13995 
13996 /**
13997  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
13998  * deployment type.
13999  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
14000  *
14001  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
14002  *
14003  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
14004  *
14005  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
14006  *
14007  * The following enum defines different deployment modes that the AP might
14008  * come up in. This information will be essential to retrieve deployment-type
14009  * specific SP power values for AFC operation.
14010  */
14011 enum qca_wlan_vendor_afc_ap_deployment_type {
14012 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
14013 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
14014 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
14015 };
14016 
14017 /**
14018  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
14019  * indicate AFC response status.
14020  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
14021  *
14022  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
14023  *
14024  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
14025  * command was not received within the expected time of the AFC expiry event
14026  * being triggered.
14027  *
14028  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
14029  * parsing error by the driver.
14030  *
14031  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
14032  * error.
14033  *
14034  * The following enum defines the status codes that the driver will use to
14035  * indicate whether the AFC data is valid or not.
14036  */
14037 enum qca_wlan_vendor_afc_evt_status_code {
14038 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
14039 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
14040 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
14041 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
14042 };
14043 
14044 /**
14045  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
14046  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
14047  * support sending only a single request to the user space at a time.
14048  *
14049  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
14050  * Used with event to notify the type of AFC event received.
14051  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
14052  *
14053  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
14054  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14055  * otherwise unused.
14056  *
14057  * This attribute is used to indicate the AP deployment type in the AFC request.
14058  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
14059  *
14060  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
14061  * Unique request identifier generated by the AFC client for every
14062  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
14063  * The user space application is responsible for ensuring no duplicate values
14064  * are in-flight with the server, e.g., by delaying a request, should the same
14065  * value be received from different radios in parallel.
14066  *
14067  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
14068  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14069  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
14070  *
14071  * This attribute indicates the AFC spec version information. This will
14072  * indicate the AFC version AFC client must use to query the AFC data.
14073  * Bits 15:0  - Minor version
14074  * Bits 31:16 - Major version
14075  *
14076  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
14077  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14078  * otherwise unused.
14079  * This attribute indicates the minimum desired power (in dBm) for
14080  * the queried spectrum.
14081  *
14082  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
14083  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14084  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14085  *
14086  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
14087  * This attribute is used to indicate if there were any errors parsing the
14088  * AFC response.
14089  *
14090  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
14091  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14092  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14093  *
14094  * This attribute indicates the AFC response code. The AFC response codes are
14095  * in the following categories:
14096  * -1: General Failure.
14097  * 0: Success.
14098  * 100 - 199: General errors related to protocol.
14099  * 300 - 399: Error events specific to message exchange
14100  *            for the Available Spectrum Inquiry.
14101  *
14102  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
14103  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14104  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14105  *
14106  * This attribute indicates the date until which the current response is
14107  * valid for in UTC format.
14108  * Date format: bits 7:0   - DD (Day 1-31)
14109  *              bits 15:8  - MM (Month 1-12)
14110  *              bits 31:16 - YYYY (Year)
14111  *
14112  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
14113  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14114  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14115  *
14116  * This attribute indicates the time until which the current response is
14117  * valid for in UTC format.
14118  * Time format: bits 7:0   - SS (Seconds 0-59)
14119  *              bits 15:8  - MM (Minutes 0-59)
14120  *              bits 23:16 - HH (Hours 0-23)
14121  *              bits 31:24 - Reserved
14122  *
14123  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
14124  * for updating the list of frequency ranges to be queried.
14125  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14126  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14127  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14128  * It uses the attributes defined in
14129  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
14130  *
14131  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
14132  * for updating the list of operating classes and corresponding channels to be
14133  * queried.
14134  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14135  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
14136  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14137  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
14138  */
14139 enum qca_wlan_vendor_attr_afc_event {
14140 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
14141 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
14142 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
14143 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
14144 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
14145 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
14146 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
14147 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
14148 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
14149 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
14150 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
14151 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
14152 
14153 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
14154 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
14155 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
14156 };
14157 
14158 /**
14159  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
14160  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
14161  * will support sending only a single AFC response to the driver at a time.
14162  *
14163  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
14164  * This attribute will be used to send a single Spectrum Inquiry response object
14165  * from the 'availableSpectrumInquiryResponses' array object from the response
14166  * JSON.
14167  *
14168  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
14169  *
14170  * This attribute indicates the period (in seconds) for which the response
14171  * data received is valid for.
14172  *
14173  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
14174  *
14175  * This attribute indicates the request ID for which the corresponding
14176  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
14177  *
14178  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
14179  *
14180  * This attribute indicates the date until which the current response is
14181  * valid for in UTC format.
14182  * Date format: bits 7:0   - DD (Day 1-31)
14183  *              bits 15:8  - MM (Month 1-12)
14184  *              bits 31:16 - YYYY (Year)
14185  *
14186  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
14187  *
14188  * This attribute indicates the time until which the current response is
14189  * valid for in UTC format.
14190  * Time format: bits 7:0   - SS (Seconds 0-59)
14191  *              bits 15:8  - MM (Minutes 0-59)
14192  *              bits 23:16 - HH (Hours 0-23)
14193  *              bits 31:24 - Reserved
14194  *
14195  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
14196  *
14197  * This attribute indicates the AFC response code. The AFC response codes are
14198  * in the following categories:
14199  * -1: General Failure.
14200  * 0: Success.
14201  * 100 - 199: General errors related to protocol.
14202  * 300 - 399: Error events specific to message exchange
14203  *            for the Available Spectrum Inquiry.
14204  *
14205  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
14206  * for PSD info of all the queried frequency ranges. It uses the attributes
14207  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
14208  *
14209  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
14210  * attributes for EIRP info of all queried operating class/channels. It uses
14211  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
14212  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
14213  *
14214  */
14215 enum qca_wlan_vendor_attr_afc_response {
14216 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
14217 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
14218 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
14219 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
14220 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
14221 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
14222 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
14223 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
14224 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
14225 
14226 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
14227 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
14228 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
14229 };
14230 
14231 /**
14232  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
14233  *
14234  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
14235  *
14236  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
14237  * beaconing at higher beacon interval with Rx disabled.
14238  */
14239 enum qca_wlan_dozed_ap_state {
14240 	QCA_WLAN_DOZED_AP_DISABLE = 0,
14241 	QCA_WLAN_DOZED_AP_ENABLE = 1,
14242 };
14243 
14244 /**
14245  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
14246  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
14247  * configuration.
14248  *
14249  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
14250  * Configures the doze state for an AP interface. Possible values are defined
14251  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
14252  * gets triggered asynchronously to provide updated AP interface configuration.
14253  *
14254  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
14255  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
14256  * command, which is used later to maintain synchronization between commands
14257  * and asynchronous events.
14258  *
14259  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
14260  * Used in event to indicate the next TBTT TSF timer value after applying the
14261  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
14262  * the first beacon after entering or exiting dozed mode.
14263  *
14264  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
14265  * Used with event to inform the periodicity of beacon transmission that would
14266  * be skipped at all TBTTs in between.
14267  */
14268 enum qca_wlan_vendor_attr_dozed_ap {
14269 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
14270 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
14271 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
14272 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
14273 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
14274 
14275 	/* Keep last */
14276 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
14277 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
14278 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
14279 };
14280 
14281 #endif /* QCA_VENDOR_H */
14282