• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5  * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc.
6  *
7  * This software may be distributed under the terms of the BSD license.
8  * See README for more details.
9  */
10 
11 #ifndef QCA_VENDOR_H
12 #define QCA_VENDOR_H
13 
14 /*
15  * This file is a registry of identifier assignments from the Qualcomm Atheros
16  * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
17  * can be assigned through normal review process for changes to the upstream
18  * hostap.git repository.
19  */
20 
21 #define OUI_QCA 0x001374
22 
23 #ifndef BIT
24 #define BIT(x) (1U << (x))
25 #endif
26 
27 /**
28  * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
29  */
30 enum qca_radiotap_vendor_ids {
31 	QCA_RADIOTAP_VID_WLANTEST = 0,
32 };
33 
34 /**
35  * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
36  *
37  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
38  *
39  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
40  *
41  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
42  *	internal BSS-selection. This command uses
43  *	@QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
44  *	for the current connection (i.e., changes policy set by the nl80211
45  *	Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
46  *	included to indicate which BSS to use in case roaming is disabled.
47  *
48  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
49  *	ranges to avoid to reduce issues due to interference or internal
50  *	co-existence information in the driver. These frequencies aim to
51  *	minimize the traffic but not to totally avoid the traffic. That said
52  *	for a P2P use case, these frequencies are allowed for the P2P
53  *	discovery/negotiation but avoid the group to get formed on these
54  *	frequencies. The event data structure is defined in
55  *	struct qca_avoid_freq_list.
56  *
57  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
58  *	for DFS offloading.
59  *
60  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
61  *	NAN Request/Response and NAN Indication messages. These messages are
62  *	interpreted between the framework and the firmware component. While
63  *	sending the command from userspace to the driver, payload is not
64  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
65  *	is used when receiving vendor events in userspace from the driver.
66  *
67  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
68  *	used to configure PMK to the driver even when not connected. This can
69  *	be used to request offloading of key management operations. Only used
70  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
71  *
72  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
73  *	NL80211_CMD_ROAM event with optional attributes including information
74  *	from offloaded key management operation. Uses
75  *	enum qca_wlan_vendor_attr_roam_auth attributes. Only used
76  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
77  *
78  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
79  *	invoke the ACS function in device and pass selected channels to
80  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
81  *
82  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
83  *	supported by the driver. enum qca_wlan_vendor_features defines
84  *	the possible features.
85  *
86  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
87  *	which supports DFS offloading, to indicate a channel availability check
88  *	start.
89  *
90  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
91  *	which supports DFS offloading, to indicate a channel availability check
92  *	completion.
93  *
94  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
95  *	which supports DFS offloading, to indicate that the channel availability
96  *	check aborted, no change to the channel status.
97  *
98  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
99  *	driver, which supports DFS offloading, to indicate that the
100  *	Non-Occupancy Period for this channel is over, channel becomes usable.
101  *
102  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
103  *	which supports DFS offloading, to indicate a radar pattern has been
104  *	detected. The channel is now unusable.
105  *
106  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
107  *	Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
108  *
109  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
110  *	based on enum wifi_logger_supported_features. Attributes defined in
111  *	enum qca_wlan_vendor_attr_get_logger_features.
112  *
113  * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
114  *	logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
115  *	attribute for this command. Attributes defined in
116  *	enum qca_wlan_vendor_attr_wifi_logger_start.
117  *
118  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
119  *	capabilities of the driver, parameters includes the attributes defined
120  *	in enum qca_wlan_vendor_attr_tdls_get_capabilities.
121  *
122  * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
123  *	sending of certain periodic IP packet to firmware, attributes defined in
124  *	enum qca_wlan_vendor_attr_offloaded_packets.
125  *
126  * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
127  *	monitoring, defines min and max RSSI which are configured for RSSI
128  *	monitoring. Also used to notify the RSSI breach and provides the BSSID
129  *	and RSSI value that was breached. Attributes defined in
130  *	enum qca_wlan_vendor_attr_rssi_monitoring.
131  *
132  * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
133  *	Data Path (NDP) related operations, attributes defined in
134  *	enum qca_wlan_vendor_attr_ndp_params.
135  *
136  * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
137  *	Neighbour Discovery offload, attributes defined in
138  *	enum qca_wlan_vendor_attr_nd_offload.
139  *
140  * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
141  *	configuration parameter for BPF packet filter, attributes defined in
142  *	enum qca_wlan_vendor_attr_packet_filter.
143  *
144  * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
145  *	maximum supported size, attributes defined in
146  *	enum qca_wlan_vendor_drv_info.
147  *
148  * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
149  *	data about wake reasons and datapath IP statistics, attributes defined
150  *	in enum qca_wlan_vendor_attr_wake_stats.
151  *
152  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
153  *	for IEEE 802.11 communicating outside the context of a basic service
154  *	set, called OCB command. Uses the attributes defines in
155  *	enum qca_wlan_vendor_attr_ocb_set_config.
156  *
157  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
158  *	UTC time. Use the attributes defines in
159  *	enum qca_wlan_vendor_attr_ocb_set_utc_time.
160  *
161  * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
162  *	sending OCB timing advert frames. Uses the attributes defines in
163  *	enum qca_wlan_vendor_attr_ocb_start_timing_advert.
164  *
165  * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
166  *	OCB timing advert. Uses the attributes defines in
167  *	enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
168  *
169  * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
170  *	timer value. Uses the attributes defines in
171  *	enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
172  *
173  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
174  *	link properties of the respective interface. As an event, is used
175  *	to notify the connected station's status. The attributes for this
176  *	command are defined in enum qca_wlan_vendor_attr_link_properties.
177  *
178  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
179  *	to the driver. This command sets the band(s) through either the
180  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
181  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
182  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
183  *	integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
184  *	bit unsigned bitmask values. The allowed values for
185  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
186  *	QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
187  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
188  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
189  *	is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the	both attributes
190  *	are included for backwards compatibility, the configurations through
191  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
192  *	that support both attributes.
193  *
194  * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
195  *	DFS policy and channel hint for ACS operation. This command uses the
196  *	attributes defined in enum qca_wlan_vendor_attr_acs_config and
197  *	enum qca_acs_dfs_mode.
198  *
199  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
200  *	start the P2P Listen offload function in device and pass the listen
201  *	channel, period, interval, count, device types, and vendor specific
202  *	information elements to the device driver and firmware.
203  *	Uses the attributes defines in
204  *	enum qca_wlan_vendor_attr_p2p_listen_offload.
205  *
206  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
207  *	indicate stop request/response of the P2P Listen offload function in
208  *	device. As an event, it indicates either the feature stopped after it
209  *	was already running or feature has actually failed to start. Uses the
210  *	attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
211  *
212  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
213  *	beaconing, this sub command provides the driver, the frequencies on the
214  *	5 GHz band to check for any radar activity. Driver selects one channel
215  *	from this priority list provided through
216  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
217  *	to check for radar activity on it. If no radar activity is detected
218  *	during the channel availability check period, driver internally switches
219  *	to the selected frequency of operation. If the frequency is zero, driver
220  *	internally selects a channel. The status of this conditional switch is
221  *	indicated through an event using the same sub command through
222  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
223  *	listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
224  *
225  * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
226  *	attributes defined in enum qca_wlan_gpio_attr.
227  *
228  * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
229  *	This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
230  *	capabilities are to be fetched and other
231  *	enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
232  *	requested capabilities.
233  *
234  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
235  *	enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
236  *	command and event.
237  *
238  * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
239  *	indoor location features. Capabilities are reported in
240  *	QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
241  *
242  * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
243  *	(fine timing measurement) session with one or more peers.
244  *	Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
245  *	peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
246  *	On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
247  *	events will be reported, followed by
248  *	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
249  *	end of session.
250  *	Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
251  *
252  * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
253  *	A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
254  *	status code indicating session was aborted.
255  *
256  * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
257  *	results for one peer. Results are reported in
258  *	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
259  *
260  * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
261  *	FTM session is finished, either successfully or aborted by
262  *	request.
263  *
264  * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
265  *	mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
266  *	to enable or disable the responder. LCI/LCR reports can be
267  *	configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
268  *	QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
269  *	times to update the LCI/LCR reports.
270  *
271  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
272  *	arrival) measurement with a single peer. Specify peer MAC address in
273  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
274  *	QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
275  *	scan results cache and use the frequency from there).
276  *	Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
277  *	Measurement result is reported in
278  *	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
279  *
280  * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
281  *	peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
282  *
283  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
284  *	the AOA measurement result.
285  *	Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
286  *	success/failure status is reported in
287  *	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
288  *	Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
289  *	The antenna array(s) used in the measurement are reported in
290  *	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
291  *
292  * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
293  *	data as per the given parameters.
294  *
295  * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
296  *	specific chain.
297  *
298  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
299  *	configuration for a DMG RF sector. Specify sector index in
300  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
301  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
302  *	to return sector information for in
303  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
304  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
305  *	exact time where information was captured in
306  *	QCA_WLAN_VENDOR_ATTR_TSF.
307  *
308  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
309  *	configuration for a DMG RF sector. Specify sector index in
310  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
311  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
312  *	for one or more DMG RF modules in
313  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
314  *
315  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
316  *	DMG RF sector for a station. This is the sector that the HW
317  *	will use to communicate with the station. Specify the MAC address
318  *	of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
319  *	needed for unassociated	station). Specify sector type to return in
320  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
321  *	sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
322  *	Also return the exact time where the information was captured
323  *	in QCA_WLAN_VENDOR_ATTR_TSF.
324  *
325  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
326  *	selected DMG RF sector for a station. This is the sector that
327  *	the HW will use to communicate with the station.
328  *	Specify the MAC address of associated station/AP/PCP in
329  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
330  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
331  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
332  *	The selected sector will be locked such that it will not be
333  *	modified like it normally does (for example when station
334  *	moves around). To unlock the selected sector for a station
335  *	pass the special value 0xFFFF in the sector index. To unlock
336  *	all connected stations also pass a broadcast MAC address.
337  *
338  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
339  *	in the host driver. The different TDLS configurations are defined
340  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
341  *
342  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
343  *	capabilities. The response uses the attributes defined in
344  *	enum qca_wlan_vendor_attr_get_he_capabilities.
345  *
346  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
347  *	started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
348  *	carries the scan cookie of the corresponding scan request. The scan
349  *	cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
350  *
351  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
352  *	Absorption Rate (SAR) power limits. A critical regulation for
353  *	FCC compliance, OEMs require methods to set SAR limits on TX
354  *	power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
355  *	attributes are used with this command.
356  *
357  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
358  *	host driver for offloading the implementation of Auto Channel Selection
359  *	(ACS) to an external user space entity. This interface is used as the
360  *	event from the host driver to the user space entity and also as the
361  *	request from the user space entity to the host driver. The event from
362  *	the host driver is used by the user space entity as an indication to
363  *	start the ACS functionality. The attributes used by this event are
364  *	represented by the enum qca_wlan_vendor_attr_external_acs_event.
365  *	User space entity uses the same interface to inform the host driver with
366  *	selected channels after the ACS operation using the attributes defined
367  *	by enum qca_wlan_vendor_attr_external_acs_channels.
368  *
369  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
370  *	requisite information leading to a power save failure. The information
371  *	carried as part of this event is represented by the
372  *	enum qca_attr_chip_power_save_failure attributes.
373  *
374  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
375  *	collection. Uses attributes defined in enum qca_attr_nud_stats_set.
376  *
377  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
378  *	statistics are represented by the enum qca_attr_nud_stats_get
379  *	attributes.
380  *
381  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
382  *	the BSS transition status, whether accept or reject, for a list of
383  *	candidate BSSIDs provided by the userspace. This uses the vendor
384  *	attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
385  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
386  *	the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
387  *	array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
388  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
389  *	the driver shall specify array of
390  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
391  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
392  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
393  *
394  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
395  *	specific QCA module. The trace levels are represented by
396  *	enum qca_attr_trace_level attributes.
397  *
398  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
399  *	Protocol antenna limit in different modes. See enum
400  *	qca_wlan_vendor_attr_brp_ant_limit_mode.
401  *
402  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
403  *	parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
404  *	This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
405  *	identifying the operation in success case. In failure cases an
406  *	error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
407  *	describing the reason for the failure is returned.
408  *
409  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
410  *	a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
411  *	@QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
412  *	be stopped.
413  *
414  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
415  *	specific interface. This can be used to modify some of the low level
416  *	scan parameters (off channel dwell time, home channel time) in the
417  *	driver/firmware. These parameters are maintained within the host driver.
418  *	This command is valid only when the interface is in the connected state.
419  *	These scan parameters shall be reset by the driver/firmware once
420  *	disconnected. The attributes used with this command are defined in
421  *	enum qca_wlan_vendor_attr_active_tos.
422  *
423  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
424  *	driver has detected an internal failure. This event carries the
425  *	information indicating the reason that triggered this detection. The
426  *	attributes for this command are defined in
427  *	enum qca_wlan_vendor_attr_hang.
428  *
429  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
430  *	of spectral parameters used. The spectral scan parameters are specified
431  *	by enum qca_wlan_vendor_attr_spectral_scan.
432  *
433  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
434  *	for spectral scan functionality. The debug stats are specified by
435  *	enum qca_wlan_vendor_attr_spectral_diag_stats.
436  *
437  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
438  *	scan system capabilities. The capabilities are specified
439  *	by enum qca_wlan_vendor_attr_spectral_cap.
440  *
441  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
442  *	status of spectral scan. The status values are specified
443  *	by enum qca_wlan_vendor_attr_spectral_scan_status.
444  *
445  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
446  *	peer pending packets. Specify the peer MAC address in
447  *	QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
448  *	in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
449  *	in enum qca_wlan_vendor_attr_flush_pending.
450  *
451  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
452  *	RF Operating Parameter (RROP) information. The attributes for this
453  *	information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
454  *	intended for use by external Auto Channel Selection applications.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
457  *	(SAR) power limits. This is a companion to the command
458  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
459  *	settings currently in use. The attributes returned by this command are
460  *	defined by enum qca_vendor_attr_sar_limits.
461  *
462  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
463  *	the WLAN hardware MAC. Also, provides the WLAN netdev interface
464  *	information attached to the respective MAC.
465  *	This works both as a query (user space asks the current mode) or event
466  *	interface (driver advertising the current mode to the user space).
467  *	Driver does not trigger this event for temporary hardware mode changes.
468  *	Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
469  *	channel change, etc.) are updated with this event. Attributes for this
470  *	interface are defined in enum qca_wlan_vendor_attr_mac.
471  *
472  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
473  *	per peer per TID. Attributes for this command are define in
474  *	enum qca_wlan_set_qdepth_thresh_attr.
475  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
476  *	guide for WLAN driver. Request to suspend of driver and FW if the
477  *	temperature is higher than the suspend threshold; resume action is
478  *	requested to driver if the temperature is lower than the resume
479  *	threshold. In user poll mode, request temperature data by user. For test
480  *	purpose, getting thermal shutdown configuration parameters is needed.
481  *	Attributes for this interface are defined in
482  *	enum qca_wlan_vendor_attr_thermal_cmd.
483  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
484  *	driver. Thermal temperature and indication of resume completion are
485  *	reported as thermal events. The attributes for this command are defined
486  *	in enum qca_wlan_vendor_attr_thermal_event.
487  *
488  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
489  *	test configuration. Attributes for this command are defined in
490  *	enum qca_wlan_vendor_attr_wifi_test_config.
491  *
492  * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
493  *	RX filter to receive frames from stations that are active on the
494  *	operating channel, but not associated with the local device (e.g., STAs
495  *	associated with other APs). Filtering is done based on a list of BSSIDs
496  *	and STA MAC addresses added by the user. This command is also used to
497  *	fetch the statistics of unassociated stations. The attributes used with
498  *	this command are defined in enum qca_wlan_vendor_attr_bss_filter.
499  *
500  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
501  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
502  *	carried a payload which was a binary blob of data. The command was not
503  *	extendable to send more information. The newer version carries the
504  *	legacy blob encapsulated within an attribute and can be extended with
505  *	additional vendor attributes that can enhance the NAN command interface.
506  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
507  *	or stopped within driver/firmware in order to initiate roaming. The
508  *	attributes used with this event are defined in enum
509  *	qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
510  *	in few cases, e.g., if the host processor is sleeping when this event
511  *	is generated in firmware.
512  *
513  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
514  *	configure parameters per peer to capture Channel Frequency Response
515  *	(CFR) and enable Periodic CFR capture. The attributes for this command
516  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
517  *	can also be used to send CFR data from the driver to userspace when
518  *	netlink events are used to send CFR data.
519  *
520  * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
521  *	in throughput dynamically. The driver estimates the throughput based on
522  *	number of packets being transmitted/received per second and indicates
523  *	the changes in throughput to user space. Userspace tools can use this
524  *	information to configure kernel's TCP parameters in order to achieve
525  *	peak throughput. Optionally, the driver will also send guidance on
526  *	modifications to kernel's TCP parameters which can be referred by
527  *	userspace tools. The attributes used with this event are defined in enum
528  *	qca_wlan_vendor_attr_throughput_change.
529  *
530  * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
531  *	priorities among different types of traffic during coex scenarios.
532  *	Current supported prioritization is among WLAN/BT/ZIGBEE with different
533  *	profiles mentioned in enum qca_coex_config_profiles. The associated
534  *	attributes used with this command are defined in enum
535  *	qca_vendor_attr_coex_config.
536  *
537  *	Based on the config provided, FW will boost the weight and prioritize
538  *	the traffic for that subsystem (WLAN/BT/Zigbee).
539  *
540  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
541  *	the supported AKM suite selectorss from the driver. It returns the list
542  *	of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
543  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
544  *	state from the driver. It returns the firmware state in the attribute
545  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
546  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
547  *	is used by the driver to flush per-peer cached statistics to user space
548  *	application. This interface is used as an event from the driver to
549  *	user space application. Attributes for this event are specified in
550  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
551  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
552  *	sent in the event.
553  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
554  *	improve the success rate of Zigbee joining network.
555  *	Due to PTA master limitation, Zigbee joining network success rate is
556  *	low while WLAN is working. The WLAN driver needs to configure some
557  *	parameters including Zigbee state and specific WLAN periods to enhance
558  *	PTA master. All these parameters are delivered by the attributes
559  *	defined in enum qca_mpta_helper_vendor_attr.
560  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
561  *	implement Beacon frame reporting feature.
562  *
563  *	Userspace can request the driver/firmware to periodically report
564  *	received Beacon frames whose BSSID is same as the current connected
565  *	BSS's MAC address.
566  *
567  *	In case the STA seamlessly (without sending disconnect indication to
568  *	userspace) roams to a different BSS, Beacon frame reporting will be
569  *	automatically enabled for the Beacon frames whose BSSID is same as the
570  *	MAC address of the new BSS. Beacon reporting will be stopped when the
571  *	STA is disconnected (when the disconnect indication is sent to
572  *	userspace) and need to be explicitly enabled by userspace for next
573  *	connection.
574  *
575  *	When a Beacon frame matching configured conditions is received, and if
576  *	userspace has requested to send asynchronous beacon reports, the
577  *	driver/firmware will encapsulate the details of the Beacon frame in an
578  *	event and send it to userspace along with updating the BSS information
579  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
580  *	scan cache with the information from the received Beacon frame but will
581  *	not send any active report to userspace.
582  *
583  *	The userspace can request the driver/firmware to stop reporting Beacon
584  *	frames. If the driver/firmware is not able to receive Beacon frames due
585  *	to other Wi-Fi operations such as off-channel activities, etc., the
586  *	driver/firmware will send a pause event to userspace and stop reporting
587  *	Beacon frames. Whether the beacon reporting will be automatically
588  *	resumed or not by the driver/firmware later will be reported to
589  *	userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
590  *	flag. The beacon reporting shall be resumed for all the cases except
591  *	either when userspace sets
592  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
593  *	which triggered the current beacon reporting or during any disconnection
594  *	case as indicated by setting
595  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
596  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
597  *	driver.
598  *
599  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
600  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
601  *	flag not set, the next first
602  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
603  *	shall be considered as un-pause event.
604  *
605  *	All the attributes used with this command are defined in
606  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
607  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
608  *	interop issues with the DUT. This sub command is used to transfer the
609  *	AP info between the driver and user space. This works both as a command
610  *	and an event. As a command, it configures the stored list of APs from
611  *	user space to firmware; as an event, it indicates the AP info detected
612  *	by the firmware to user space for persistent storage. The attributes
613  *	defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
614  *	the parameters.
615  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
616  *	send/receive OEM data binary blobs to/from application/service to/from
617  *	firmware. The attributes defined in enum
618  *	qca_wlan_vendor_attr_oem_data_params are used to deliver the
619  *	parameters.
620  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
621  *	to send/receive avoid frequency data using
622  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
623  *	This new command is alternative to existing command
624  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
625  *	is using stream of bytes instead of structured data using vendor
626  *	attributes. User space sends unsafe frequency ranges to the driver using
627  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
628  *	reception of this command, the driver shall check if an interface is
629  *	operating on an unsafe frequency and the driver shall try to move to a
630  *	safe channel when needed. If the driver is not able to find a safe
631  *	channel the interface can keep operating on an unsafe channel with the
632  *	TX power limit derived based on internal configurations	like
633  *	regulatory/SAR rules.
634  *
635  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
636  *	add the STA node details in driver/firmware. Attributes for this event
637  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
638  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
639  *	coex chain mode from application/service.
640  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
641  *	to deliver the parameters.
642  *
643  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
644  *	get information of a station from driver to userspace. This command can
645  *	be used in both STA and AP modes. For STA mode, it provides information
646  *	of the current association when in connected state or the last
647  *	association when in disconnected state. For AP mode, only information
648  *	of the currently connected stations is available. This command uses
649  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
650  *
651  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
652  *	Host drivers can request the user space entity to set the SAR power
653  *	limits with this event. Accordingly, the user space entity is expected
654  *	to set the SAR power limits. Host drivers can retry this event to the
655  *	user space for the SAR power limits configuration from user space. If
656  *	the driver does not get the SAR power limits from user space for all
657  *	the retried attempts, it can configure a default SAR power limit.
658  *
659  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
660  *	is used to update the information about the station from the driver to
661  *	userspace. Uses attributes from enum
662  *	qca_wlan_vendor_attr_update_sta_info.
663  *
664  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
665  *	The host driver initiates the disconnection for scenarios such as beacon
666  *	miss, NUD failure, peer kick out, etc. The disconnection indication
667  *	through cfg80211_disconnected() expects the reason codes from enum
668  *	ieee80211_reasoncode which does not signify these various reasons why
669  *	the driver has triggered the disconnection. This event will be used to
670  *	send the driver specific reason codes by the host driver to userspace.
671  *	Host drivers should trigger this event and pass the respective reason
672  *	code immediately prior to triggering cfg80211_disconnected(). The
673  *	attributes used with this event are defined in enum
674  *	qca_wlan_vendor_attr_driver_disconnect_reason.
675  *
676  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
677  *	add/delete TSPEC for each AC. One command is for one specific AC only.
678  *	This command can only be used in STA mode and the STA must be
679  *	associated with an AP when the command is issued. Uses attributes
680  *	defined in enum qca_wlan_vendor_attr_config_tspec.
681  *
682  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
683  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
684  *
685  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
686  *	the driver. The band configurations obtained are referred through
687  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
688  *
689  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
690  *	assessment.
691  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
692  *
693  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
694  *	used to update SSID information in hostapd when it is updated in the
695  *	driver. Uses the attribute NL80211_ATTR_SSID.
696  *
697  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
698  *	the driver to send opaque data from the firmware to userspace. The
699  *	driver sends an event to userspace whenever such data is received from
700  *	the firmware.
701  *
702  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
703  *	send this opaque data for this event.
704  *
705  *	The format of the opaque data is specific to the particular firmware
706  *	version and there is no guarantee of the format remaining same.
707  *
708  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
709  *	The host driver selects Tx VDEV, and notifies user. The attributes
710  *	used with this event are defined in enum
711  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
712  *	This event contains Tx VDEV group information, other VDEVs
713  *	interface index, and status information.
714  *
715  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
716  *	configure the concurrent session policies when multiple interfaces
717  *	are (getting) active. The attributes used by this command are defined
718  *	in enum qca_wlan_vendor_attr_concurrent_policy.
719  *
720  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
721  *	to query usable channels for different interface types such as STA,
722  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
723  *	channels in the response based on country code, different static
724  *	configurations, concurrency combinations, etc. The attributes used
725  *	with this command are defined in
726  *	enum qca_wlan_vendor_attr_usable_channels.
727  *
728  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
729  *	to get DFS radar history from the driver to userspace. The driver
730  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
731  *	array of nested entries.
732  *
733  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
734  *	enable/disable mDNS offload to the firmware. The attributes used with
735  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
736  *
737  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
738  *	to set packet monitor mode that aims to send the specified set of TX and
739  *	RX frames on the current client interface to an active monitor
740  *	interface. If this monitor mode is set, the driver will send the
741  *	configured frames, from the interface on which the command is issued, to
742  *	an active monitor interface. The attributes used with this command are
743  *	defined in enum qca_wlan_vendor_attr_set_monitor_mode.
744  *
745  *	Though the monitor mode is configured for the respective
746  *	Data/Management/Control frames, it is up to the respective WLAN
747  *	driver/firmware/hardware designs to consider the possibility of sending
748  *	these frames over the monitor interface. For example, the Control frames
749  *	are handled within the hardware and thus passing such frames over the
750  *	monitor interface is left to the respective designs.
751  *
752  *	Also, this monitor mode is governed to behave accordingly in
753  *	suspend/resume states. If the firmware handles any of such frames in
754  *	suspend state without waking up the host and if the monitor mode is
755  *	configured to notify all such frames, the firmware is expected to resume
756  *	the host and forward the respective frames to the monitor interface.
757  *	Please note that such a request to get the frames over the monitor
758  *	interface will have a definite power implication.
759  *
760  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
761  *	as a request to set the driver/firmware with the parameters to trigger
762  *	the roaming events, and also used by the driver/firmware to pass on the
763  *	various roam events to userspace.
764  *	Applicable only for the STA mode. The attributes used with this command
765  *	are defined in enum qca_wlan_vendor_attr_roam_events.
766  *
767  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
768  *	rate mask config for a list of PHY types. Userspace shall provide an
769  *	array of the vendor attributes defined in
770  *	enum qca_wlan_vendor_attr_ratemask_params.
771  *
772  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
773  *	when two interfaces are active on the same band, using two different
774  *	home channels, and only supported by a single radio. In this scenario
775  *	the device must split the use of the radio between the two interfaces.
776  *	The percentage of time allocated to a given interface is the quota.
777  *	Depending on the configuration, the quota can either be fixed or
778  *	dynamic.
779  *
780  *	When used as an event, the device will report the quota type, and for
781  *	all interfaces operating in MCC it will report the current quota.
782  *	When used as a command, the device can be configured for a specific
783  *	quota type, and in the case of a fixed quota, the quota to apply to one
784  *	of the interfaces.
785  *
786  *	Applications can use the event to do TX bitrate control based on the
787  *	information, and can use the command to explicitly set the quota to
788  *	enhance performance in specific scenarios.
789  *
790  *	The attributes used with this command are defined in
791  *	enum qca_wlan_vendor_attr_mcc_quota.
792  *
793  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
794  *	get the WLAN radio combinations matrix supported by the device which
795  *	provides the device simultaneous radio configurations such as
796  *	standalone, dual band simultaneous, and single band simultaneous.
797  *
798  *	The attributes used with this command are defined in
799  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
800  *
801  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
802  *	that the driver is ready for operations again after recovering from
803  *	internal failures. This occurs following a failure that was indicated by
804  *	@QCA_NL80211_VENDOR_SUBCMD_HANG.
805  *
806  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
807  *	security negotiation and key generation to user space.
808  *
809  *	When used as an event, the driver requests userspace to trigger the PASN
810  *	authentication or dropping of a PTKSA for the indicated peer devices.
811  *	When used as a command response, userspace indicates a consolidated
812  *	status report for all the peers that were requested for.
813  *
814  *	The attributes used with this command are defined in
815  *	enum qca_wlan_vendor_attr_pasn.
816  *
817  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
818  *	secure ranging context such as TK and LTF keyseed for each peer
819  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
820  *
821  *	The attributes used with this command are defined in
822  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
823  *
824  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
825  *	enable/disable offload processing in firmware during system/runtime
826  *	suspend for CoAP messages (see RFC7252: The Constrained Application
827  *	Protocol) and fetch information of the CoAP messages cached during
828  *	offload processing.
829  *
830  *	The attributes used with this command are defined in
831  *	enum qca_wlan_vendor_attr_coap_offload.
832  *
833  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
834  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
835  *
836  *      The attributes used with this event are defined in
837  *      enum qca_wlan_vendor_attr_scs_rule_config.
838  *
839  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
840  *	supported by the WLAN firmware.
841  *
842  *	The attributes used with this command are defined in
843  *	enum qca_wlan_vendor_attr_sar_capability.
844  *
845  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
846  *	(SR) feature. This command is used by userspace to configure SR
847  *	parameters to the driver and to get the SR related parameters and
848  *	statistics with synchronous responses from the driver.
849  *	The driver also uses this command to send asynchronous events to
850  *	userspace to indicate suspend/resume of SR feature and changes
851  *	in SR parameters.
852  *
853  *	The attributes used with this command are defined in
854  *	enum qca_wlan_vendor_attr_sr.
855  *
856  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
857  *	notify application layer about the primary netdev of an MLO connection.
858  *	In some implementations, MLO has multiple netdevs out of which one
859  *	netdev is designated as primary to provide a unified interface to the
860  *	bridge. In those implementations this event is sent on every MLO peer
861  *	connection.
862  *
863  *	The attributes used with this event are defined in
864  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
865  *
866  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
867  *	driver to notify different AFC events to userspace. The attributes used
868  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
869  *
870  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
871  *	userspace to deliver AFC response data to driver. The attributes used
872  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
873  *
874  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
875  *	operate in doze mode.
876  *
877  *	Userspace uses this command to configure the AP interface to enter or
878  *	exit from doze mode. The driver sends this event after it enters or
879  *	exits the doze mode with the updated AP doze mode settings.
880  *
881  *	The attributes used with this subcommand are defined in
882  *	enum qca_wlan_vendor_attr_dozed_ap.
883  *
884  * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
885  *	to get the status of local packet capture of monitor mode. The monitor
886  *	mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
887  *	subcommand.
888  *
889  *	The attributes used with this command are defined in enum
890  *	qca_wlan_vendor_attr_get_monitor_mode.
891  *
892  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
893  *	get roam information from the driver to user space. It provides the
894  *	latest several instances of roam information cached in the driver.
895  *	The command is only used for STA mode. The attributes used with this
896  *	command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
897  *
898  * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
899  *	configure and fetch the state information of the MLO links affiliated
900  *	with the STA interface. The attributes used with this command are
901  *	defined in enum qca_wlan_vendor_attr_mlo_link_state.
902  *
903  * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
904  *	vendor subcommand to trigger channel utilization measurement on entire
905  *	channel width of the connected channel(s). For MLO connection, connected
906  *	channel utilization measurement shall be done on all the MLO links.
907  *	The driver may use regular scan or wideband energy detection feature
908  *	based on the hardware capability for connected channel(s) utilization
909  *	measurement. The driver indicates the connected channel(s) utilization
910  *	measurement completion as an asynchronous event with this command ID to
911  *	userspace. Upon receiving this event, userspace can use
912  *	%NL80211_CMD_GET_INTERFACE to determine the channel width of the current
913  *	connected channel(s) and can derive the channel utilization percentage
914  *	(CU) of each 20 MHz sub-channel of the entire connected channel using
915  *	%NL80211_CMD_GET_SURVEY response.
916  *	CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
917  *	This command is only used for STA mode.
918  *
919  * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
920  *	used as an event to notify the userspace of TID-to-link map changes
921  *	negotiated by the driver or updated by associated AP MLD with Beacon,
922  *	Probe Response, or Action frames. The attributes used with this command
923  *	are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
924  *
925  *	Note that the attribute
926  *	%QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
927  *	the current connected AP MLD address.
928  *
929  * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
930  *	of STA MLD setup links due to the AP MLD removing the corresponding
931  *	affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
932  *	links are removed during Multi-Link reconfiguration, the driver shall
933  *	use %NL80211_CMD_DISCONNECT instead of this command since it is a
934  *	connection drop. The attributes used with this command are defined in
935  *	enum qca_wlan_vendor_attr_link_reconfig.
936  *	Note that the attribute
937  *	%QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
938  *	the current connected AP MLD address.
939  *
940  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
941  *	the driver with MLO link id information on which to transmit the TDLS
942  *	discovery response frame on the configured MLO BSS link when the
943  *	local station is connected in MLO mode. This command is sent to the
944  *	driver prior to the TDLS discovery response management transmit
945  *	operation and is followed immediately by the TDLS discovery response
946  *	management frame transmit command.
947  *
948  *	The driver saves the configured MLO link id information and uses it for
949  *	the following TDLS discovery response frame transmission on the
950  *	configured MLO BSS link and the link id information is cleared in the
951  *	driver after the TDLS discovery response frame is successfully
952  *	transmitted. This behavior is indepent of the TDLS peer STA connection
953  *	mode (MLO or non-MLO).
954  *
955  *	Uses the attributes defined in
956  *	enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
957  */
958 enum qca_nl80211_vendor_subcmds {
959 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
960 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
961 	/* subcmds 2..8 not yet allocated */
962 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
963 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
964 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
965 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
966 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
967 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
968 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
969 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
970 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
971 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
972 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
973 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
974 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
975 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
976 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
977 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
978 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
979 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
980 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
981 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
982 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
983 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
984 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
985 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
986 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
987 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
988 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
989 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
990 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
991 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
992 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
993 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
994 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
995 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
996 	/* 43..49 - reserved for QCA */
997 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
998 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
999 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
1000 	/* 53 - reserved - was used by QCA, but not in use anymore */
1001 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
1002 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
1003 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
1004 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
1005 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
1006 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
1007 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
1008 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
1009 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
1010 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
1011 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
1012 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
1013 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
1014 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
1015 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
1016 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
1017 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
1018 	QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
1019 	QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
1020 	QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
1021 	/* Wi-Fi configuration subcommands */
1022 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
1023 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
1024 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
1025 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
1026 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
1027 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
1028 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
1029 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
1030 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
1031 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
1032 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
1033 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
1034 	/* 86-90 - reserved for QCA */
1035 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
1036 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
1037 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
1038 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
1039 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
1040 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
1041 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
1042 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
1043 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
1044 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
1045 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
1046 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
1047 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
1048 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
1049 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
1050 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
1051 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
1052 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
1053 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
1054 	/* 110..114 - reserved for QCA */
1055 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
1056 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
1057 	/* 117 - reserved for QCA */
1058 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
1059 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
1060 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
1061 	/* 121 - reserved for QCA */
1062 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
1063 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
1064 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
1065 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
1066 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
1067 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
1068 	/* FTM/indoor location subcommands */
1069 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
1070 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
1071 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
1072 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
1073 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
1074 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
1075 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
1076 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
1077 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
1078 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
1079 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
1080 	/* DMG low level RF sector operations */
1081 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
1082 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
1083 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
1084 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1085 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
1086 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
1087 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
1088 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
1089 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1090 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1091 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1092 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
1093 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1094 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
1095 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1096 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1097 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1098 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1099 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
1100 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1101 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1102 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1103 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1104 	/* Flush peer pending data */
1105 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1106 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1107 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1108 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1109 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1110 	/* Thermal shutdown commands to protect wifi chip */
1111 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1112 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1113 	/* Wi-Fi test configuration subcommand */
1114 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1115 	/* Frame filter operations for other BSSs/unassociated STAs */
1116 	QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
1117 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
1118 	QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
1119 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
1120 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1121 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1122 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
1123 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1124 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1125 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
1126 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1127 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
1128 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1129 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1130 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1131 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
1132 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
1133 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1134 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1135 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
1136 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1137 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1138 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1139 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1140 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1141 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1142 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
1143 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
1144 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1145 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1146 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1147 	/* 201 - reserved for QCA */
1148 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1149 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1150 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1151 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
1152 	/* 206..212 - reserved for QCA */
1153 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1154 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1155 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1156 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
1157 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1158 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1159 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1160 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
1161 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1162 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1163 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1164 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1165 	QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1166 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
1167 	QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
1168 	QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1169 	QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1170 	QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1171 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
1172 };
1173 
1174 /* Compatibility defines for previously used subcmd names.
1175  * These values should not be used in any new implementation.
1176  */
1177 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1178 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1179 
1180 enum qca_wlan_vendor_attr {
1181 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1182 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1183 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1184 	/* Used only when driver sends vendor events to the userspace under the
1185 	 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
1186 	 * commands to the driver.
1187 	 */
1188 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1189 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1190 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1191 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1192 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1193 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1194 	 * by enum qca_roaming_policy.
1195 	 */
1196 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1197 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1198 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1199 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1200 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1201 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1202 	/* Unsigned 32-bit value. */
1203 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1204 	/* Unsigned 32-bit value */
1205 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1206 	/* Unsigned 32-bit value */
1207 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1208 	/* Unsigned 32-bit value from enum qca_set_band. The allowed values for
1209 	 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
1210 	 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
1211 	 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
1212 	 */
1213 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1214 	/* Attribute used for padding for 64-bit alignment */
1215 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1216 	/* Unique FTM session cookie (Unsigned 64 bit). Specified in
1217 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1218 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1219 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1220 	 */
1221 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1222 	/* Indoor location capabilities, returned by
1223 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1224 	 * see enum qca_wlan_vendor_attr_loc_capa.
1225 	 */
1226 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1227 	/* Array of nested attributes containing information about each peer
1228 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1229 	 * for supported attributes for each peer.
1230 	 */
1231 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1232 	/* Array of nested attributes containing measurement results for
1233 	 * one or more peers, reported by the
1234 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1235 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1236 	 * attributes.
1237 	 */
1238 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1239 	/* Flag attribute for enabling or disabling responder functionality. */
1240 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1241 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1242 	 * command to specify the LCI report that will be sent by
1243 	 * the responder during a measurement exchange. The format is
1244 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1245 	 */
1246 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1247 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1248 	 * command to specify the location civic report that will
1249 	 * be sent by the responder during a measurement exchange.
1250 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1251 	 */
1252 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1253 	/* Session/measurement completion status code,
1254 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1255 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1256 	 * see enum qca_vendor_attr_loc_session_status.
1257 	 */
1258 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1259 	/* Initial dialog token used by responder (0 if not specified),
1260 	 * unsigned 8 bit value.
1261 	 */
1262 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1263 	/* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1264 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1265 	 * AOA measurements are needed as part of an FTM session.
1266 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1267 	 * enum qca_wlan_vendor_attr_aoa_type.
1268 	 */
1269 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1270 	/* A bit mask (unsigned 32 bit value) of antenna arrays used
1271 	 * by indoor location measurements. Refers to the antenna
1272 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1273 	 */
1274 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1275 	/* AOA measurement data. Its contents depends on the AOA measurement
1276 	 * type and antenna array mask:
1277 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1278 	 * phase of the strongest CIR path for each antenna in the measured
1279 	 * array(s).
1280 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1281 	 * values, phase and amplitude of the strongest CIR path for each
1282 	 * antenna in the measured array(s).
1283 	 */
1284 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1285 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1286 	 * to specify the chain number (unsigned 32 bit value) to inquire
1287 	 * the corresponding antenna RSSI value
1288 	 */
1289 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1290 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1291 	 * to report the specific antenna RSSI value (unsigned 32 bit value)
1292 	 */
1293 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1294 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1295 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1296 	/* TSF timer value, unsigned 64 bit value.
1297 	 * May be returned by various commands.
1298 	 */
1299 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1300 	/* DMG RF sector index, unsigned 16 bit number. Valid values are
1301 	 * 0..127 for sector indices or 65535 as special value used to
1302 	 * unlock sector selection in
1303 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1304 	 */
1305 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1306 	/* DMG RF sector type, unsigned 8 bit value. One of the values
1307 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1308 	 */
1309 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1310 	/* Bitmask of DMG RF modules for which information is requested. Each
1311 	 * bit corresponds to an RF module with the same index as the bit
1312 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1313 	 * all DMG chips currently have up to 8 RF modules.
1314 	 */
1315 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1316 	/* Array of nested attributes where each entry is DMG RF sector
1317 	 * configuration for a single RF module.
1318 	 * Attributes for each entry are taken from enum
1319 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1320 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1321 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1322 	 */
1323 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1324 	/* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1325 	 * to report frame aggregation statistics to userspace.
1326 	 */
1327 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1328 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1329 	/* Unsigned 8-bit value representing MBO transition reason code as
1330 	 * provided by the AP used by subcommand
1331 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1332 	 * specified by the userspace in the request to the driver.
1333 	 */
1334 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1335 	/* Array of nested attributes, BSSID and status code, used by subcommand
1336 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1337 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1338 	 * The userspace space specifies the list/array of candidate BSSIDs in
1339 	 * the order of preference in the request. The driver specifies the
1340 	 * status code, for each BSSID in the list, in the response. The
1341 	 * acceptable candidates are listed in the order preferred by the
1342 	 * driver.
1343 	 */
1344 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1345 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1346 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1347 	 */
1348 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1349 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1350 	 * to define the number of antennas to use for BRP.
1351 	 * different purpose in each ANT_LIMIT_MODE:
1352 	 * DISABLE - ignored
1353 	 * EFFECTIVE - upper limit to number of antennas to be used
1354 	 * FORCE - exact number of antennas to be used
1355 	 * unsigned 8 bit value
1356 	 */
1357 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1358 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1359 	 * to report the corresponding antenna index to the chain RSSI value
1360 	 */
1361 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1362 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1363 	 * the specific antenna EVM value (unsigned 32 bit value). With a
1364 	 * determinate group of antennas, the driver specifies the EVM value
1365 	 * for each antenna ID, and application extract them in user space.
1366 	 */
1367 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1368 	/*
1369 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1370 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1371 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1372 	 */
1373 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1374 
1375 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1376 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1377 	 * of single values from enum qca_set_band are valid. This attribute
1378 	 * uses bitmask combinations to define the respective allowed band
1379 	 * combinations and this attributes takes precedence over
1380 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1381 	 */
1382 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1383 
1384 	/* keep last */
1385 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1386 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1387 };
1388 
1389 enum qca_roaming_policy {
1390 	QCA_ROAMING_NOT_ALLOWED,
1391 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
1392 };
1393 
1394 /**
1395  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1396  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1397  *
1398  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1399  * reasons.
1400  *
1401  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1402  * the configured threshold.
1403  *
1404  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1405  * beacon misses from the then connected AP.
1406  *
1407  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1408  * by the connected AP.
1409  *
1410  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1411  * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1412  *
1413  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1414  * or environment being very noisy or congested.
1415  *
1416  * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
1417  * from the user (user space).
1418  *
1419  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1420  * the connected AP.
1421  *
1422  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1423  * breaching out the configured threshold.
1424  *
1425  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
1426  * transition request.
1427  *
1428  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
1429  * data activity with the AP and the current RSSI falls below a certain
1430  * threshold.
1431  *
1432  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
1433  * Disassociation frames received from the connected AP.
1434  *
1435  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
1436  * that happens when there is no candidate AP found during the poor RSSI scan
1437  * trigger.
1438  *
1439  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
1440  * obtained from an external scan (not aimed at roaming).
1441  *
1442  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
1443  * established when the station is connected in the 2.4 GHz band.
1444  *
1445  * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
1446  * failures to the connected AP.
1447  */
1448 enum qca_roam_reason {
1449 	QCA_ROAM_REASON_UNKNOWN,
1450 	QCA_ROAM_REASON_PER,
1451 	QCA_ROAM_REASON_BEACON_MISS,
1452 	QCA_ROAM_REASON_POOR_RSSI,
1453 	QCA_ROAM_REASON_BETTER_RSSI,
1454 	QCA_ROAM_REASON_CONGESTION,
1455 	QCA_ROAM_REASON_USER_TRIGGER,
1456 	QCA_ROAM_REASON_BTM,
1457 	QCA_ROAM_REASON_BSS_LOAD,
1458 	QCA_ROAM_REASON_WTC,
1459 	QCA_ROAM_REASON_IDLE,
1460 	QCA_ROAM_REASON_DISCONNECTION,
1461 	QCA_ROAM_REASON_PERIODIC_TIMER,
1462 	QCA_ROAM_REASON_BACKGROUND_SCAN,
1463 	QCA_ROAM_REASON_BT_ACTIVITY,
1464 	QCA_ROAM_REASON_STA_KICKOUT,
1465 };
1466 
1467 enum qca_wlan_vendor_attr_roam_auth {
1468 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1469 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
1470 	 * of the roamed AP for MLO roaming.
1471 	 */
1472 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1473 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1474 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1475 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1476 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1477 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1478 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
1479 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
1480 	/* Indicates the status of re-association requested by user space for
1481 	 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1482 	 * Type u16.
1483 	 * Represents the status code from AP. Use
1484 	 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1485 	 * real status code for failures.
1486 	 */
1487 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1488 	/* This attribute indicates that the old association was maintained when
1489 	 * a re-association is requested by user space and that re-association
1490 	 * attempt fails (i.e., cannot connect to the requested BSS, but can
1491 	 * remain associated with the BSS with which the association was in
1492 	 * place when being requested to roam). Used along with
1493 	 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1494 	 * re-association status. Type flag.
1495 	 * This attribute is applicable only for re-association failure cases.
1496 	 */
1497 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1498 	/* This attribute specifies the PMK if one was newly generated during
1499 	 * FILS roaming. This is added to the PMKSA cache and is used in
1500 	 * subsequent connections with PMKSA caching.
1501 	 */
1502 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1503 	/* This attribute specifies the PMKID used/generated for the current
1504 	 * FILS roam. This is used in subsequent connections with PMKSA caching.
1505 	 */
1506 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1507 	/* A 16-bit unsigned value specifying the next sequence number to use
1508 	 * in ERP message in the currently associated realm. This is used in
1509 	 * doing subsequent ERP based connections in the same realm.
1510 	 */
1511 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
1512 	/* A 16-bit unsigned value representing the reasons for the roaming.
1513 	 * Defined by enum qca_roam_reason.
1514 	 */
1515 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1516 	/* A nested attribute containing per-link information of all the links
1517 	 * of MLO connection done while roaming. The attributes used inside this
1518 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
1519 	 */
1520 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
1521 
1522 	/* keep last */
1523 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1524 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1525 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1526 };
1527 
1528 enum qca_wlan_vendor_attr_p2p_listen_offload {
1529 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1530 	/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1531 	 * of the social channels.
1532 	 */
1533 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1534 	/* A 32-bit unsigned value; the P2P listen offload period (ms).
1535 	 */
1536 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1537 	/* A 32-bit unsigned value; the P2P listen interval duration (ms).
1538 	 */
1539 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1540 	/* A 32-bit unsigned value; number of interval times the firmware needs
1541 	 * to run the offloaded P2P listen operation before it stops.
1542 	 */
1543 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1544 	/* An array of arbitrary binary data with one or more 8-byte values.
1545 	 * The device types include both primary and secondary device types.
1546 	 */
1547 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1548 	/* An array of unsigned 8-bit characters; vendor information elements.
1549 	 */
1550 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1551 	/* A 32-bit unsigned value; a control flag to indicate whether listen
1552 	 * results need to be flushed to wpa_supplicant.
1553 	 */
1554 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1555 	/* A 8-bit unsigned value; reason code for P2P listen offload stop
1556 	 * event.
1557 	 */
1558 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1559 	/* keep last */
1560 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1561 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1562 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1563 };
1564 
1565 /**
1566  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1567  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1568  *
1569  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1570  * Used with event to notify the primary channel number selected in ACS
1571  * operation.
1572  * Note: If both the driver and user-space application supports the 6 GHz band,
1573  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1574  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1575  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1576  * is still used if either of the driver or user space application doesn't
1577  * support the 6 GHz band.
1578  *
1579  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1580  * Used with event to notify the secondary channel number selected in ACS
1581  * operation.
1582  * Note: If both the driver and user-space application supports the 6 GHz band,
1583  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1584  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1585  * To maintain backward compatibility,
1586  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1587  * the driver or user space application doesn't support 6 GHz band.
1588  *
1589  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1590  * (a) Used with command to configure hw_mode from
1591  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1592  * (b) Also used with event to notify the hw_mode of selected primary channel
1593  * in ACS operation.
1594  *
1595  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1596  * Used with command to configure ACS operation for HT mode.
1597  * Disable (flag attribute not present) - HT disabled and
1598  * Enable (flag attribute present) - HT enabled.
1599  *
1600  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1601  * Used with command to configure ACS operation for HT40 mode.
1602  * Disable (flag attribute not present) - HT40 disabled and
1603  * Enable (flag attribute present) - HT40 enabled.
1604  *
1605  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1606  * Used with command to configure ACS operation for VHT mode.
1607  * Disable (flag attribute not present) - VHT disabled and
1608  * Enable (flag attribute present) - VHT enabled.
1609  *
1610  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1611  * mandatory with event.
1612  * If specified in command path, ACS operation is configured with the given
1613  * channel width (in MHz).
1614  * In event path, specifies the channel width of the primary channel selected.
1615  *
1616  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1617  * Used with command to configure channel list using an array of
1618  * channel numbers (u8).
1619  * Note: If both the driver and user-space application supports the 6 GHz band,
1620  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1621  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1622  *
1623  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1624  * Used with event to notify the VHT segment 0 center channel number selected in
1625  * ACS operation. The value is the index of the channel center frequency for
1626  * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1627  * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
1628  * Note: If both the driver and user-space application supports the 6 GHz band,
1629  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1630  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1631  * To maintain backward compatibility,
1632  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1633  * the driver or user space application doesn't support the 6 GHz band.
1634  *
1635  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1636  * Used with event to notify the VHT segment 1 center channel number selected in
1637  * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1638  * The value is the index of the channel center frequency for 160 MHz channels
1639  * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1640  * channels.
1641  * Note: If both the driver and user-space application supports the 6 GHz band,
1642  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1643  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1644  * To maintain backward compatibility,
1645  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1646  * the driver or user space application doesn't support the 6 GHz band.
1647  *
1648  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1649  * Used with command to configure the channel list using an array of channel
1650  * center frequencies in MHz (u32).
1651  * Note: If both the driver and user-space application supports the 6 GHz band,
1652  * the driver first parses the frequency list and if it fails to get a frequency
1653  * list, parses the channel list specified using
1654  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1655  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1656  *
1657  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1658  * Used with event to notify the primary channel center frequency (MHz) selected
1659  * in ACS operation.
1660  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1661  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1662  *
1663  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1664  * Used with event to notify the secondary channel center frequency (MHz)
1665  * selected in ACS operation.
1666  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1667  * includes this attribute along with
1668  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1669  *
1670  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1671  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1672  * selected in ACS operation.
1673  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1674  * includes this attribute along with
1675  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1676  *
1677  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1678  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1679  * selected in ACS operation.
1680  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1681  * includes this attribute along with
1682  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
1683  *
1684  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1685  * Used with command to notify the driver of EDMG request for ACS
1686  * operation.
1687  *
1688  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1689  * Used with event to notify the EDMG channel number selected in ACS
1690  * operation.
1691  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1692  *
1693  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
1694  * Used with event to notify the puncture pattern selected in ACS operation.
1695  * Encoding for this attribute will follow the convention used in the Disabled
1696  * Subchannel Bitmap field of the EHT Operation IE.
1697  *
1698  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
1699  * Used with command to configure ACS operation for EHT mode.
1700  * Disable (flag attribute not present) - EHT disabled and
1701  * Enable (flag attribute present) - EHT enabled.
1702  *
1703  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
1704  * Used with command to configure how older scan can be considered for ACS
1705  * scoring. In case scan was performed on a partial set of channels configured
1706  * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
1707  * (in ms), scan only the remaining channels.
1708  */
1709 enum qca_wlan_vendor_attr_acs_offload {
1710 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
1711 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1712 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1713 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1714 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1715 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1716 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1717 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1718 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1719 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1720 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1721 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1722 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1723 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1724 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1725 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
1726 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1727 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
1728 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
1729 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
1730 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
1731 
1732 	/* keep last */
1733 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1734 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1735 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1736 };
1737 
1738 /**
1739  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1740  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1741  *
1742  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1743  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1744  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1745  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1746  * @QCA_ACS_MODE_IEEE80211ANY: all modes
1747  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1748  */
1749 enum qca_wlan_vendor_acs_hw_mode {
1750 	QCA_ACS_MODE_IEEE80211B,
1751 	QCA_ACS_MODE_IEEE80211G,
1752 	QCA_ACS_MODE_IEEE80211A,
1753 	QCA_ACS_MODE_IEEE80211AD,
1754 	QCA_ACS_MODE_IEEE80211ANY,
1755 	QCA_ACS_MODE_IEEE80211AX,
1756 };
1757 
1758 /**
1759  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1760  *
1761  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1762  *	management offload, a mechanism where the station's firmware
1763  *	does the exchange with the AP to establish the temporal keys
1764  *	after roaming, rather than having the user space wpa_supplicant do it.
1765  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1766  *	band selection based on channel selection results.
1767  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
1768  *	simultaneous off-channel operations.
1769  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1770  *	Listen offload; a mechanism where the station's firmware takes care of
1771  *	responding to incoming Probe Request frames received from other P2P
1772  *	Devices whilst in Listen state, rather than having the user space
1773  *	wpa_supplicant do it. Information from received P2P requests are
1774  *	forwarded from firmware to host whenever the host processor wakes up.
1775  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1776  *	specific features.
1777  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1778  *	features.
1779  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1780  *	specific features only. If a Device sets this bit but not the
1781  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1782  *	this Device may not support all OCE AP functionalities but can support
1783  *	only OCE STA-CFON functionalities.
1784  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1785  *	managed regulatory.
1786  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
1787  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1788  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
1789  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1790  *	and applying thermal configuration through
1791  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1792  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1793  *	userspace.
1794  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1795  *	With Adaptive 11r feature, access points advertise the vendor
1796  *	specific IEs and MDE but do not include FT AKM in the RSNE.
1797  *	The Adaptive 11r supported stations are expected to identify
1798  *	such vendor specific IEs and connect to the AP in FT mode though
1799  *	the profile is configured in non-FT mode.
1800  *	The driver-based SME cases also need to have this support for
1801  *	Adaptive 11r to handle the connection and roaming scenarios.
1802  *	This flag indicates the support for the same to the user space.
1803  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1804  *	concurrent network sessions on different Wi-Fi bands. This feature
1805  *	capability is attributed to the hardware's capability to support
1806  *	the same (e.g., DBS).
1807  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1808  *	responses for the respective TWT operations are asynchronous (separate
1809  *	event message) from the driver. If not specified, the responses are
1810  *	synchronous (in vendor command reply) to the request. Each TWT
1811  *	operation is specifically mentioned (against its respective
1812  *	documentation) to support either of these or both modes.
1813  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
1814  *	that the driver requires add/del virtual interface path using the
1815  *	generic nl80211 commands for NDP interface create/delete and to
1816  *	register/unregister the netdev instead of creating/deleting the NDP
1817  *	interface using the vendor commands
1818  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
1819  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
1820  *	(5.12 version onward), interface creation/deletion is not allowed using
1821  *	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
1822  *	during the register/unregister of netdev. Create and delete NDP
1823  *	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
1824  *	commands respectively if the driver advertises this capability set.
1825  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
1826  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
1827  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
1828  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
1829  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
1830  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
1831  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
1832  *	station mode supports secure RTT measurement exchange. If
1833  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
1834  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
1835  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
1836  *	mode supports secure RTT measurement exchange. If
1837  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
1838  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
1839  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
1840  *	the device in station mode supports protection of range negotiation and
1841  *	measurement management frames. If
1842  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1843  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
1844  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
1845  *	the device in AP mode supports protection of range negotiation and
1846  *	measurement management frames. If
1847  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
1848  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
1849  * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
1850  *	in AP mode supports configuring allowed frequency list for AP operation
1851  *	with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
1852  * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
1853  *	that the device supports enhanced audio experience over WLAN feature.
1854  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1855  */
1856 enum qca_wlan_vendor_features {
1857 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
1858 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
1859 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
1860 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD	= 3,
1861 	QCA_WLAN_VENDOR_FEATURE_OCE_STA                 = 4,
1862 	QCA_WLAN_VENDOR_FEATURE_OCE_AP                  = 5,
1863 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON            = 6,
1864 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
1865 	QCA_WLAN_VENDOR_FEATURE_TWT			= 8,
1866 	QCA_WLAN_VENDOR_FEATURE_11AX			= 9,
1867 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT		= 10,
1868 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG		= 11,
1869 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R		= 12,
1870 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1871 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT	= 14,
1872 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
1873 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
1874 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
1875 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
1876 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
1877 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
1878 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
1879 	QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
1880 	QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
1881 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1882 };
1883 
1884 /**
1885  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1886  *
1887  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1888  *	the offloaded data.
1889  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1890  *	data.
1891  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1892  *	indication.
1893  */
1894 enum qca_wlan_vendor_attr_data_offload_ind {
1895 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1896 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1897 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1898 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1899 
1900 	/* keep last */
1901 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1902 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1903 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1904 };
1905 
1906 /**
1907  * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1908  *	OCB config
1909  *
1910  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1911  *	configuration
1912  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1913  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1914  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1915  *	scheduled
1916  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1917  *	information
1918  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1919  *	active state configuration
1920  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1921  *	OCB_CONFIG_FLAG_80211_FRAME_MODE
1922  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1923  *	use in the case that a packet is sent without a TX control header
1924  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1925  *	last TA received that the local time set by TA is synchronous to other
1926  *	communicating OCB STAs.
1927  */
1928 enum qca_wlan_vendor_attr_ocb_set_config {
1929 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1930 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1931 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1932 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1933 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1934 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1935 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1936 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1937 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1938 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1939 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1940 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1941 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1942 };
1943 
1944 /**
1945  * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1946  *	UTC time
1947  *
1948  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1949  *	10 bytes
1950  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1951  *	5 bytes
1952  */
1953 enum qca_wlan_vendor_attr_ocb_set_utc_time {
1954 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1955 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1956 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1957 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1958 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1959 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1960 };
1961 
1962 /**
1963  * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1964  *	to start sending timing advert frames
1965  *
1966  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1967  *	on which to send the frames
1968  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1969  *	the frame is sent in 5 seconds
1970  */
1971 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1972 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1973 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1974 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1975 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1976 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1977 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1978 };
1979 
1980 /**
1981  * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1982  *	to stop timing advert
1983  *
1984  * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1985  *	frequency on which to stop the timing advert
1986  */
1987 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1988 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1989 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1990 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1991 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1992 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1993 };
1994 
1995 /**
1996  * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1997  *	get TSF timer value
1998  *
1999  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
2000  *	timer
2001  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
2002  */
2003 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
2004 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
2005 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
2006 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
2007 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
2008 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
2009 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
2010 };
2011 
2012 enum qca_vendor_attr_get_preferred_freq_list {
2013 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
2014 	/* A 32-unsigned value; the interface type/mode for which the preferred
2015 	 * frequency list is requested (see enum qca_iface_type for possible
2016 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
2017 	 * kernel and in the kernel response back to user-space.
2018 	 */
2019 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
2020 	/* An array of 32-unsigned values; values are frequency (MHz); sent
2021 	 * from kernel space to user space.
2022 	 */
2023 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
2024 	/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
2025 	 * attribute. Each element contains frequency (MHz), weight, and flag
2026 	 * bit mask indicating how the frequency should be used in P2P
2027 	 * negotiation; sent from kernel space to user space.
2028 	 */
2029 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
2030 	/* keep last */
2031 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
2032 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
2033 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
2034 };
2035 
2036 enum qca_vendor_attr_probable_oper_channel {
2037 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
2038 	/* 32-bit unsigned value; indicates the connection/iface type likely to
2039 	 * come on this channel (see enum qca_iface_type).
2040 	 */
2041 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
2042 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
2043 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
2044 	/* keep last */
2045 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
2046 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
2047 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
2048 };
2049 
2050 enum qca_iface_type {
2051 	QCA_IFACE_TYPE_STA,
2052 	QCA_IFACE_TYPE_AP,
2053 	QCA_IFACE_TYPE_P2P_CLIENT,
2054 	QCA_IFACE_TYPE_P2P_GO,
2055 	QCA_IFACE_TYPE_IBSS,
2056 	QCA_IFACE_TYPE_TDLS,
2057 };
2058 
2059 enum qca_set_band {
2060 	QCA_SETBAND_AUTO = 0,
2061 	QCA_SETBAND_5G = BIT(0),
2062 	QCA_SETBAND_2G = BIT(1),
2063 	QCA_SETBAND_6G = BIT(2),
2064 };
2065 
2066 /**
2067  * enum qca_access_policy - Access control policy
2068  *
2069  * Access control policy is applied on the configured IE
2070  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
2071  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
2072  *
2073  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
2074  *	the specific configuration (IE) set, i.e., allow all the
2075  *	connections which do not match the configuration.
2076  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
2077  *	the specific configuration (IE) set, i.e., deny all the
2078  *	connections which do not match the configuration.
2079  */
2080 enum qca_access_policy {
2081 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
2082 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
2083 };
2084 
2085 /**
2086  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
2087  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
2088  * Specify the TSF command. Possible values are defined in
2089  * &enum qca_tsf_cmd.
2090  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
2091  * This attribute contains TSF timer value. This attribute is only available
2092  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2093  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
2094  * This attribute contains SOC timer value at TSF capture. This attribute is
2095  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
2096  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
2097  * This attribute is used to provide TSF sync interval and only applicable when
2098  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
2099  * driver will use the default value. Time unit is in milliseconds.
2100  * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
2101  * alignment.
2102  */
2103 enum qca_vendor_attr_tsf_cmd {
2104 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
2105 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
2106 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
2107 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
2108 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
2109 	QCA_WLAN_VENDOR_ATTR_TSF_PAD,
2110 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
2111 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
2112 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
2113 };
2114 
2115 /**
2116  * enum qca_tsf_cmd: TSF driver commands
2117  * @QCA_TSF_CAPTURE: Initiate TSF Capture
2118  * @QCA_TSF_GET: Get TSF capture value
2119  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
2120  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
2121  * will automatically send TSF report to the host. To query
2122  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
2123  * initiated first.
2124  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
2125  * will not automatically send TSF report to the host. If
2126  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
2127  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
2128  * operation needs to be initiated.
2129  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
2130  * fetches TSF and host time mapping from the firmware with interval configured
2131  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
2132  * interval value is not provided the driver will use the default value. The
2133  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
2134  * command.
2135  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
2136  */
2137 enum qca_tsf_cmd {
2138 	QCA_TSF_CAPTURE,
2139 	QCA_TSF_GET,
2140 	QCA_TSF_SYNC_GET,
2141 	QCA_TSF_AUTO_REPORT_ENABLE,
2142 	QCA_TSF_AUTO_REPORT_DISABLE,
2143 	QCA_TSF_SYNC_START,
2144 	QCA_TSF_SYNC_STOP,
2145 };
2146 
2147 /**
2148  * enum qca_vendor_attr_wisa_cmd
2149  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
2150  * WISA setup vendor commands
2151  */
2152 enum qca_vendor_attr_wisa_cmd {
2153 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2154 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2155 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2156 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2157 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2158 };
2159 
2160 /* IEEE 802.11 Vendor Specific elements */
2161 
2162 /**
2163  * enum qca_vendor_element_id - QCA Vendor Specific element types
2164  *
2165  * These values are used to identify QCA Vendor Specific elements. The
2166  * payload of the element starts with the three octet OUI (OUI_QCA) and
2167  * is followed by a single octet type which is defined by this enum.
2168  *
2169  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
2170  *	This element can be used to specify preference order for supported
2171  *	channels. The channels in this list are in preference order (the first
2172  *	one has the highest preference) and are described as a pair of
2173  *	(global) Operating Class and Channel Number (each one octet) fields.
2174  *
2175  *	This extends the standard P2P functionality by providing option to have
2176  *	more than one preferred operating channel. When this element is present,
2177  *	it replaces the preference indicated in the Operating Channel attribute.
2178  *	For supporting other implementations, the Operating Channel attribute is
2179  *	expected to be used with the highest preference channel. Similarly, all
2180  *	the channels included in this Preferred channel list element are
2181  *	expected to be included in the Channel List attribute.
2182  *
2183  *	This vendor element may be included in GO Negotiation Request, P2P
2184  *	Invitation Request, and Provision Discovery Request frames.
2185  *
2186  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
2187  *	This element can be used for pre-standard publication testing of HE
2188  *	before P802.11ax draft assigns the element ID. The payload of this
2189  *	vendor specific element is defined by the latest P802.11ax draft.
2190  *	Please note that the draft is still work in progress and this element
2191  *	payload is subject to change.
2192  *
2193  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
2194  *	This element can be used for pre-standard publication testing of HE
2195  *	before P802.11ax draft assigns the element ID. The payload of this
2196  *	vendor specific element is defined by the latest P802.11ax draft.
2197  *	Please note that the draft is still work in progress and this element
2198  *	payload is subject to change.
2199  *
2200  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
2201  *	element).
2202  *	This element can be used for pre-standard publication testing of HE
2203  *	before P802.11ax draft assigns the element ID extension. The payload of
2204  *	this vendor specific element is defined by the latest P802.11ax draft
2205  *	(not including the Element ID Extension field). Please note that the
2206  *	draft is still work in progress and this element payload is subject to
2207  *	change.
2208  *
2209  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
2210  *	This element can be used for pre-standard publication testing of HE
2211  *	before P802.11ax draft assigns the element ID extension. The payload of
2212  *	this vendor specific element is defined by the latest P802.11ax draft
2213  *	(not including the Element ID Extension field). Please note that the
2214  *	draft is still work in progress and this element payload is subject to
2215  *	change.
2216  *
2217  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
2218  *	This element can be used for pre-standard publication testing of HE
2219  *	before P802.11ax draft assigns the element ID extension. The payload of
2220  *	this vendor specific element is defined by the latest P802.11ax draft
2221  *	(not including the Element ID Extension field). Please note that the
2222  *	draft is still work in progress and this element payload is subject to
2223  *	change.
2224  *
2225  *  @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
2226  */
2227 enum qca_vendor_element_id {
2228 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
2229 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
2230 	QCA_VENDOR_ELEM_HE_OPER = 2,
2231 	QCA_VENDOR_ELEM_RAPS = 3,
2232 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
2233 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
2234 	QCA_VENDOR_ELEM_ALLPLAY = 6,
2235 };
2236 
2237 /**
2238  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2239  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2240  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2241  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2242  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2243  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2244  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2245  */
2246 enum qca_wlan_vendor_scan_priority {
2247 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2248 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2249 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2250 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2251 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2252 };
2253 
2254 /**
2255  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2256  *
2257  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2258  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2259  *	with frequencies to be scanned (in MHz)
2260  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2261  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2262  *	rates to be included
2263  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2264  *	at non CCK rate in 2GHz band
2265  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2266  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2267  *	driver for the specific scan request
2268  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2269  *	request decoded as in enum scan_status
2270  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2271  *	scan flag is set
2272  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2273  *	randomisation
2274  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2275  *	specific BSSID to scan for.
2276  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2277  *	microseconds. This is a common value which applies across all
2278  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2279  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2280  *	other scan requests. It is a u32 attribute and takes values from enum
2281  *	qca_wlan_vendor_scan_priority. This is an optional attribute.
2282  *	If this attribute is not configured, the driver shall use
2283  *	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2284  * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
2285  *	alignment.
2286  */
2287 enum qca_wlan_vendor_attr_scan {
2288 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2289 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2290 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2291 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2292 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2293 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2294 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2295 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2296 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2297 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2298 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2299 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2300 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2301 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2302 	QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
2303 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2304 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2305 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2306 };
2307 
2308 /**
2309  * enum scan_status - Specifies the valid values the vendor scan attribute
2310  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2311  *
2312  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2313  *	new scan results
2314  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2315  */
2316 enum scan_status {
2317 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2318 	VENDOR_SCAN_STATUS_ABORTED,
2319 	VENDOR_SCAN_STATUS_MAX,
2320 };
2321 
2322 /**
2323  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
2324  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
2325  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
2326  */
2327 enum qca_vendor_attr_ota_test {
2328 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
2329 	/* 8-bit unsigned value to indicate if OTA test is enabled */
2330 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
2331 	/* keep last */
2332 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
2333 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
2334 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
2335 };
2336 
2337 /**
2338  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
2339  *
2340  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
2341  */
2342 enum qca_vendor_attr_txpower_scale {
2343 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
2344 	/* 8-bit unsigned value to indicate the scaling of tx power */
2345 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
2346 	/* keep last */
2347 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
2348 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
2349 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
2350 };
2351 
2352 /**
2353  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
2354  *
2355  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
2356  */
2357 enum qca_vendor_attr_txpower_decr_db {
2358 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
2359 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
2360 	 * a virtual interface.
2361 	 */
2362 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
2363 	/* keep last */
2364 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
2365 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
2366 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
2367 };
2368 
2369 /* Attributes for data used by
2370  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
2371  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
2372  */
2373 enum qca_wlan_vendor_attr_config {
2374 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
2375 	/* Unsigned 32-bit value to set the DTIM period.
2376 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
2377 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
2378 	 * DTIM beacons.
2379 	 */
2380 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
2381 	/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
2382 	 * used to calculate statistics like average the TSF offset or average
2383 	 * number of frame leaked.
2384 	 * For instance, upon Beacon frame reception:
2385 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
2386 	 * For instance, when evaluating leaky APs:
2387 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
2388 	 */
2389 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
2390 	/* Unsigned 32-bit value to configure guard time, i.e., when
2391 	 * implementing IEEE power management based on frame control PM bit, how
2392 	 * long the driver waits before shutting down the radio and after
2393 	 * receiving an ACK frame for a Data frame with PM bit set.
2394 	 */
2395 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
2396 	/* Unsigned 32-bit value to change the FTM capability dynamically */
2397 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
2398 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
2399 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
2400 	/* Unsigned 32-bit value to configure the number of continuous
2401 	 * Beacon Miss which shall be used by the firmware to penalize
2402 	 * the RSSI.
2403 	 */
2404 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
2405 	/* Unsigned 8-bit value to configure the channel avoidance indication
2406 	 * behavior. Firmware to send only one indication and ignore duplicate
2407 	 * indications when set to avoid multiple Apps wakeups.
2408 	 */
2409 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
2410 	/* 8-bit unsigned value to configure the maximum TX MPDU for
2411 	 * aggregation.
2412 	 */
2413 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
2414 	/* 8-bit unsigned value to configure the maximum RX MPDU for
2415 	 * aggregation.
2416 	 */
2417 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
2418 	/* 8-bit unsigned value to configure the Non aggregrate/11g sw
2419 	 * retry threshold (0 disable, 31 max).
2420 	 */
2421 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
2422 	/* 8-bit unsigned value to configure the aggregrate sw
2423 	 * retry threshold (0 disable, 31 max).
2424 	 */
2425 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
2426 	/* 8-bit unsigned value to configure the MGMT frame
2427 	 * retry threshold (0 disable, 31 max).
2428 	 */
2429 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
2430 	/* 8-bit unsigned value to configure the CTRL frame
2431 	 * retry threshold (0 disable, 31 max).
2432 	 */
2433 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
2434 	/* 8-bit unsigned value to configure the propagation delay for
2435 	 * 2G/5G band (0~63, units in us)
2436 	 */
2437 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
2438 	/* Unsigned 32-bit value to configure the number of unicast TX fail
2439 	 * packet count. The peer is disconnected once this threshold is
2440 	 * reached.
2441 	 */
2442 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
2443 	/* Attribute used to set scan default IEs to the driver.
2444 	 *
2445 	 * These IEs can be used by scan operations that will be initiated by
2446 	 * the driver/firmware.
2447 	 *
2448 	 * For further scan requests coming to the driver, these IEs should be
2449 	 * merged with the IEs received along with scan request coming to the
2450 	 * driver. If a particular IE is present in the scan default IEs but not
2451 	 * present in the scan request, then that IE should be added to the IEs
2452 	 * sent in the Probe Request frames for that scan request.
2453 	 */
2454 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
2455 	/* Unsigned 32-bit attribute for generic commands */
2456 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
2457 	/* Unsigned 32-bit value attribute for generic commands */
2458 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
2459 	/* Unsigned 32-bit data attribute for generic command response */
2460 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
2461 	/* Unsigned 32-bit length attribute for
2462 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2463 	 */
2464 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
2465 	/* Unsigned 32-bit flags attribute for
2466 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2467 	 */
2468 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
2469 	/* Unsigned 32-bit, defining the access policy.
2470 	 * See enum qca_access_policy. Used with
2471 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2472 	 */
2473 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
2474 	/* Sets the list of full set of IEs for which a specific access policy
2475 	 * has to be applied. Used along with
2476 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
2477 	 * Zero length payload can be used to clear this access constraint.
2478 	 */
2479 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
2480 	/* Unsigned 32-bit, specifies the interface index (netdev) for which the
2481 	 * corresponding configurations are applied. If the interface index is
2482 	 * not specified, the configurations are attributed to the respective
2483 	 * wiphy.
2484 	 */
2485 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
2486 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
2487 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2488 	/* 8-bit unsigned value to configure the driver and below layers to
2489 	 * ignore the assoc disallowed set by APs while connecting
2490 	 * 1-Ignore, 0-Don't ignore
2491 	 */
2492 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
2493 	/* 32-bit unsigned value to trigger antenna diversity features:
2494 	 * 1-Enable, 0-Disable
2495 	 */
2496 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
2497 	/* 32-bit unsigned value to configure specific chain antenna */
2498 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
2499 	/* 32-bit unsigned value to trigger cycle selftest
2500 	 * 1-Enable, 0-Disable
2501 	 */
2502 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
2503 	/* 32-bit unsigned to configure the cycle time of selftest
2504 	 * the unit is micro-second
2505 	 */
2506 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2507 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
2508 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2509 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
2510 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2511 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
2512 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2513 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
2514 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2515 	/* 6-byte MAC address to point out the specific peer */
2516 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2517 	/* 32-bit unsigned value to set window size for specific peer */
2518 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
2519 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2520 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2521 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2522 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
2523 	/* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2524 	 * station device while in disconnect state. The attribute use the
2525 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2526 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2527 	 * 10 MHz channel width, the station will not connect to a BSS using 20
2528 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
2529 	 * clear this constraint.
2530 	 */
2531 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2532 	/* 32-bit unsigned value to configure the propagation absolute delay
2533 	 * for 2G/5G band (units in us)
2534 	 */
2535 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2536 	/* 32-bit unsigned value to set probe period */
2537 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2538 	/* 32-bit unsigned value to set stay period */
2539 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2540 	/* 32-bit unsigned value to set snr diff */
2541 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2542 	/* 32-bit unsigned value to set probe dwell time */
2543 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2544 	/* 32-bit unsigned value to set mgmt snr weight */
2545 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2546 	/* 32-bit unsigned value to set data snr weight */
2547 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2548 	/* 32-bit unsigned value to set ack snr weight */
2549 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2550 	/* 32-bit unsigned value to configure the listen interval.
2551 	 * This is in units of beacon intervals. This configuration alters
2552 	 * the negotiated listen interval with the AP during the connection.
2553 	 * It is highly recommended to configure a value less than or equal to
2554 	 * the one negotiated during the association. Configuring any greater
2555 	 * value can have adverse effects (frame loss, AP disassociating STA,
2556 	 * etc.).
2557 	 */
2558 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2559 	/*
2560 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2561 	 * disable operations that would cause the AP/GO to leave its operating
2562 	 * channel.
2563 	 *
2564 	 * This will restrict the scans to the AP/GO operating channel and the
2565 	 * channels of the other band, if DBS is supported.A STA/CLI interface
2566 	 * brought up after this setting is enabled, will be restricted to
2567 	 * connecting to devices only on the AP/GO interface's operating channel
2568 	 * or on the other band in DBS case. P2P supported channel list is
2569 	 * modified, to only include AP interface's operating-channel and the
2570 	 * channels of the other band if DBS is supported.
2571 	 *
2572 	 * These restrictions are only applicable as long as the AP/GO interface
2573 	 * is alive. If the AP/GO interface is brought down then this
2574 	 * setting/restriction is forgotten.
2575 	 *
2576 	 * If this variable is set on an AP/GO interface while a multi-channel
2577 	 * concurrent session is active, it has no effect on the operation of
2578 	 * the current interfaces, other than restricting the scan to the AP/GO
2579 	 * operating channel and the other band channels if DBS is supported.
2580 	 * However, if the STA is brought down and restarted then the new STA
2581 	 * connection will either be formed on the AP/GO channel or on the
2582 	 * other band in a DBS case. This is because of the scan being
2583 	 * restricted on these channels as mentioned above.
2584 	 *
2585 	 * 1-Restrict / 0-Don't restrict offchannel operations.
2586 	 */
2587 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2588 	/*
2589 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2590 	 * on an interface.
2591 	 * 1 - Enable, 0 - Disable.
2592 	 */
2593 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2594 
2595 	/*
2596 	 * 8 bit unsigned value to globally enable/disable scan
2597 	 * 1 - Enable, 0 - Disable.
2598 	 */
2599 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2600 
2601 	/* 8-bit unsigned value to set the total beacon miss count
2602 	 * This parameter will set the total beacon miss count.
2603 	 */
2604 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2605 
2606 	/* Unsigned 32-bit value to configure the number of continuous
2607 	 * Beacon Miss which shall be used by the firmware to penalize
2608 	 * the RSSI for BTC.
2609 	 */
2610 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2611 
2612 	/* 8-bit unsigned value to configure the driver and below layers to
2613 	 * enable/disable all FILS features.
2614 	 * 0-enable, 1-disable
2615 	 */
2616 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
2617 
2618 	/* 16-bit unsigned value to configure the level of WLAN latency
2619 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2620 	 */
2621 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2622 
2623 	/* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2624 	 * the connect interface. Exclusively used for the scenarios where the
2625 	 * device is used as a test bed device with special functionality and
2626 	 * not recommended for production. This helps driver to not validate the
2627 	 * RSNE passed from user space and thus allow arbitrary IE data to be
2628 	 * used for testing purposes.
2629 	 * 1-enable, 0-disable.
2630 	 * Applications set/reset this configuration. If not reset, this
2631 	 * parameter remains in use until the driver is unloaded.
2632 	 */
2633 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2634 
2635 	/* 8-bit unsigned value to trigger green Tx power saving.
2636 	 * 1-Enable, 0-Disable
2637 	 */
2638 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2639 
2640 	/* Attribute to configure disconnect IEs to the driver.
2641 	 * This carries an array of unsigned 8-bit characters.
2642 	 *
2643 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
2644 	 * frame.
2645 	 * These IEs are expected to be considered only for the next
2646 	 * immediate disconnection (disassoc/deauth frame) originated by
2647 	 * the DUT, irrespective of the entity (user space/driver/firmware)
2648 	 * triggering the disconnection.
2649 	 * The host drivers are not expected to use the IEs set through
2650 	 * this interface for further disconnections after the first immediate
2651 	 * disconnection initiated post the configuration.
2652 	 * If the IEs are also updated through cfg80211 interface (after the
2653 	 * enhancement to cfg80211_disconnect), host driver is expected to
2654 	 * take the union of IEs from both of these interfaces and send in
2655 	 * further disassoc/deauth frames.
2656 	 */
2657 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
2658 
2659 	/* 8-bit unsigned value for ELNA bypass.
2660 	 * 0 - Disable eLNA bypass.
2661 	 * 1 - Enable eLNA bypass.
2662 	 * 2 - Reset eLNA bypass configuration, the driver should
2663 	 *	revert to the default configuration of eLNA bypass.
2664 	 */
2665 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2666 
2667 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2668 	 * to send the Beacon Report Response with failure reason for the
2669 	 * scenarios where STA cannot honor the Beacon Report Request from AP.
2670 	 * 1-Enable, 0-Disable.
2671 	 */
2672 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2673 
2674 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2675 	 * to send roam reason information in the Reassociation Request frame to
2676 	 * the target AP when roaming within the same ESS.
2677 	 * 1-Enable, 0-Disable.
2678 	 */
2679 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2680 
2681 	/* 32-bit unsigned value to configure different PHY modes to the
2682 	 * driver/firmware. The possible values are defined in
2683 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2684 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2685 	 * the driver.
2686 	 */
2687 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2688 
2689 	/* 8-bit unsigned value to configure the maximum supported channel width
2690 	 * for STA mode. If this value is configured when STA is in connected
2691 	 * state, it should not exceed the negotiated channel width. If it is
2692 	 * configured when STA is in disconnected state, the configured value
2693 	 * will take effect for the next immediate connection.
2694 	 *
2695 	 * This uses values defined in enum nl80211_chan_width.
2696 	 */
2697 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2698 
2699 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2700 	 * This attribute is only applicable for STA mode. When dynamic
2701 	 * bandwidth adjustment is disabled, STA will use static channel width
2702 	 * the value of which is negotiated during connection.
2703 	 * 1-enable (default), 0-disable
2704 	 */
2705 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2706 
2707 	/* 8-bit unsigned value to configure the maximum number of subframes of
2708 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2709 	 * it is decided by the hardware.
2710 	 */
2711 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2712 
2713 	/* 8-bit unsigned value to configure the maximum number of subframes of
2714 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2715 	 * it is decided by the hardware.
2716 	 */
2717 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2718 
2719 	/* 8-bit unsigned value. This attribute is used to dynamically
2720 	 * enable/disable the LDPC capability of the device. When configured in
2721 	 * the disconnected state, the updated configuration will be considered
2722 	 * for the immediately following connection attempt. If this
2723 	 * configuration is modified while the device is in the connected state,
2724 	 * the LDPC TX will be updated with this configuration immediately,
2725 	 * while the LDPC RX configuration update will take place starting from
2726 	 * the subsequent association attempt.
2727 	 * 1-Enable, 0-Disable.
2728 	 */
2729 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2730 
2731 	/* 8-bit unsigned value. This attribute is used to dynamically
2732 	 * enable/disable the TX STBC capability of the device. When configured
2733 	 * in the disconnected state, the updated configuration will be
2734 	 * considered for the immediately following connection attempt. If the
2735 	 * connection is formed with TX STBC enabled and if this configuration
2736 	 * is disabled during that association, the TX will be impacted
2737 	 * immediately. Further connection attempts will disable TX STBC.
2738 	 * However, enabling the TX STBC for a connected session with disabled
2739 	 * capability is not allowed and will fail.
2740 	 * 1-Enable, 0-Disable.
2741 	 */
2742 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2743 
2744 	/* 8-bit unsigned value. This attribute is used to dynamically
2745 	 * enable/disable the RX STBC capability of the device. When configured
2746 	 * in the disconnected state, the updated configuration will be
2747 	 * considered for the immediately following connection attempt. If the
2748 	 * configuration is modified in the connected state, there will be no
2749 	 * impact for the current association, but further connection attempts
2750 	 * will use the updated configuration.
2751 	 * 1-Enable, 0-Disable.
2752 	 */
2753 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2754 
2755 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2756 	 * the number of spatial streams. When configured in the disconnected
2757 	 * state, the updated configuration will be considered for the
2758 	 * immediately following connection attempt. If the NSS is updated after
2759 	 * the connection, the updated NSS value is notified to the peer using
2760 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
2761 	 * frame. The updated NSS value after the connection shall not be
2762 	 * greater than the one negotiated during the connection. Any such
2763 	 * higher value configuration shall be returned with a failure.
2764 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2765 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2766 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2767 	 * configure the asymmetric NSS configuration (such as 1X2).
2768 	 */
2769 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2770 	/* 8-bit unsigned value to trigger Optimized Power Management:
2771 	 * 1-Enable, 0-Disable
2772 	 */
2773 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2774 
2775 	/* 8-bit unsigned value. This attribute takes the QoS/access category
2776 	 * value represented by the enum qca_wlan_ac_type and expects the driver
2777 	 * to upgrade the UDP frames to this access category. The value of
2778 	 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2779 	 * DSCP value configured in the frame with the intention to only upgrade
2780 	 * the access category. That said, it is not intended to downgrade the
2781 	 * access category for the frames.
2782 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2783 	 * disabled, as BK is of the lowest priority and an upgrade to it does
2784 	 * not result in any changes for the frames.
2785 	 *
2786 	 * If only UDP frames of BE or BK access category needs to be upgraded
2787 	 * without changing the access category of VO or VI UDP frames, refer to
2788 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
2789 	 *
2790 	 * This attribute is not recommended to be used as it blindly forces all
2791 	 * UDP packets to a higher access category which could impact the
2792 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
2793 	 */
2794 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2795 
2796 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2797 	 * the number of chains to be used for transmitting data. This
2798 	 * configuration is allowed only when in connected state and will be
2799 	 * effective until disconnected. The driver rejects this configuration
2800 	 * if the number of spatial streams being used in the current connection
2801 	 * cannot be supported by this configuration.
2802 	 */
2803 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2804 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2805 	 * the number of chains to be used for receiving data. This
2806 	 * configuration is allowed only when in connected state and will be
2807 	 * effective until disconnected. The driver rejects this configuration
2808 	 * if the number of spatial streams being used in the current connection
2809 	 * cannot be supported by this configuration.
2810 	 */
2811 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2812 
2813 	/* 8-bit unsigned value to configure ANI setting type.
2814 	 * See &enum qca_wlan_ani_setting for possible values.
2815 	 */
2816 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2817 	/* 32-bit signed value to configure ANI level. This is used when
2818 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2819 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2820 	 * is invalid, the driver will return a failure.
2821 	 */
2822 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2823 
2824 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2825 	 * the number of spatial streams used for transmitting the data. When
2826 	 * configured in the disconnected state, the configured value will
2827 	 * be considered for the following connection attempt.
2828 	 * If the NSS is updated after the connection, the updated NSS value
2829 	 * is notified to the peer using the Operating Mode Notification/Spatial
2830 	 * Multiplexing Power Save frame.
2831 	 * The TX NSS value configured after the connection shall not be greater
2832 	 * than the value negotiated during the connection. Any such higher
2833 	 * value configuration shall be treated as invalid configuration by
2834 	 * the driver. This attribute shall be configured along with
2835 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2836 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2837 	 * configuration (such as 1X2).
2838 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2839 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2840 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2841 	 */
2842 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2843 
2844 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2845 	 * the number of spatial streams used for receiving the data. When
2846 	 * configured in the disconnected state, the configured value will
2847 	 * be considered for the following connection attempt.
2848 	 * If the NSS is updated after the connection, the updated NSS value
2849 	 * is notified to the peer using the Operating Mode Notification/Spatial
2850 	 * Multiplexing Power Save frame.
2851 	 * The RX NSS value configured after the connection shall not be greater
2852 	 * than the value negotiated during the connection. Any such higher
2853 	 * value configuration shall be treated as invalid configuration by
2854 	 * the driver. This attribute shall be configured along with
2855 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2856 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2857 	 * configuration (such as 1X2).
2858 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2859 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2860 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2861 	 */
2862 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2863 
2864 	/*
2865 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
2866 	 * specified interface is the primary STA interface when there are more
2867 	 * than one STA interfaces concurrently active.
2868 	 *
2869 	 * This configuration helps the firmware/hardware to support certain
2870 	 * features (e.g., roaming) on this primary interface, if the same
2871 	 * cannot be supported on the concurrent STA interfaces simultaneously.
2872 	 *
2873 	 * This configuration is only applicable for a single STA interface on
2874 	 * a device and gives the priority for it only over other concurrent STA
2875 	 * interfaces.
2876 	 *
2877 	 * If the device is a multi wiphy/soc, this configuration applies to a
2878 	 * single STA interface across the wiphys.
2879 	 *
2880 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2881 	 */
2882 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2883 
2884 	/*
2885 	 * 8-bit unsigned value. This attribute can be used to configure the
2886 	 * driver to enable/disable FT-over-DS feature. Possible values for
2887 	 * this attribute are 1-Enable and 0-Disable.
2888 	 */
2889 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2890 
2891 	/*
2892 	 * 8-bit unsigned value. This attribute can be used to configure the
2893 	 * firmware to enable/disable ARP/NS offload feature. Possible values
2894 	 * for this attribute are 0-Disable and 1-Enable.
2895 	 *
2896 	 * This attribute is only applicable for STA/P2P-Client interface,
2897 	 * and is optional, default behavior is ARP/NS offload enabled.
2898 	 *
2899 	 * This attribute can be set in disconnected and connected state, and
2900 	 * will restore to the default behavior if the interface is closed.
2901 	 */
2902 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
2903 
2904 	/*
2905 	 * 8-bit unsigned value. This attribute can be used to configure the
2906 	 * data path mode to be followed for audio traffic. Possible values
2907 	 * are defined in enum qca_wlan_audio_data_path.
2908 	 *
2909 	 * This attribute is used only when the driver advertises support for
2910 	 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
2911 	 */
2912 	QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
2913 
2914 	/*
2915 	 * 8-bit unsigned value. This attribute can be used to configure the
2916 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
2917 	 * this attribute are defined in the enum qca_wlan_dbam_config.
2918 	 */
2919 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
2920 
2921 	/* 8-bit unsigned value. This attribute takes the QoS/access category
2922 	 * value represented by the enum qca_wlan_ac_type and expects the driver
2923 	 * to upgrade the UDP frames of BE or BK access category to this access
2924 	 * category. This attribute will not modify UDP frames of VO or VI
2925 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
2926 	 * attribute.
2927 	 *
2928 	 * This will override the DSCP value configured in the frame with the
2929 	 * intention to only upgrade the access category. That said, it is not
2930 	 * intended to downgrade the access category for the frames.
2931 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2932 	 * disabled, as BK is of the lowest priority and an upgrade to it does
2933 	 * not result in any changes for the frames.
2934 	 *
2935 	 * This attribute behavior is similar to
2936 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
2937 	 * only UDP frames of BE or BK access category are upgraded and not
2938 	 * UDP frames of VI or VO access category.
2939 	 *
2940 	 * This attribute is not recommended to be used as it blindly forces all
2941 	 * UDP packets of BE or BK access category to a higher access category
2942 	 * which could impact the traffic pattern of all apps using UDP and can
2943 	 * cause unknown behavior.
2944 	 */
2945 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
2946 
2947 	/* 8-bit unsigned value to configure the driver to enable/disable the
2948 	 * periodic sounding for Tx beamformer functionality. The default
2949 	 * behavior uses algorithm to do sounding based on packet stats.
2950 	 *
2951 	 * 0 - Default behavior.
2952 	 * 1 - Enable the periodic sounding for Tx beamformer.
2953 	 */
2954 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
2955 
2956 	/* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
2957 	 * userspace sends this information to the driver/firmware to configure
2958 	 * wfc state. The driver/firmware uses this information to
2959 	 * optimize power savings, rate adaption, roaming, etc.
2960 	 *
2961 	 * 1 - wfc is on.
2962 	 * 0 - wfc is off.
2963 	 */
2964 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
2965 
2966 	/* 8-bit unsigned value to configure the driver to enable/disable the
2967 	 * EHT EML capability in management frame EHT capabilities.
2968 	 * 1 - Enable, 0 - Disable.
2969 	 */
2970 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
2971 
2972 	/* 8-bit unsigned value to configure the driver with EHT MLO max
2973 	 * simultaneous links to be used for MLO connection.
2974 	 * The range of the value is 0 to 14.
2975 	 */
2976 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
2977 
2978 	/* 8-bit unsigned value to configure the driver with EHT MLO maximum
2979 	 * number of links to be used for MLO connection.
2980 	 * The range of the value is 1 to 16.
2981 	 */
2982 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
2983 
2984 	/* 8-bit unsigned value to configure the driver with EHT MLO mode.
2985 	 * Uses enum qca_wlan_eht_mlo_mode values.
2986 	 */
2987 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
2988 
2989 	/* Nested attribute with frequencies in u32 attributes to configure a
2990 	 * list of allowed 20 MHz channel center frequencies in MHz for AP
2991 	 * operation. Whenever performing a channel selection operation, the
2992 	 * driver shall generate a new list based on this provided list by
2993 	 * filtering out channels that cannot be used at that time due to
2994 	 * regulatory or other constraints. The resulting list is used as the
2995 	 * list of all allowed channels, i.e., operation on any channel that is
2996 	 * not included is not allowed, whenever performing operations like ACS
2997 	 * and DFS.
2998 	 *
2999 	 * Userspace shall configure this before starting the AP and the
3000 	 * configuration is valid only from the next BSS start and until the
3001 	 * BSS is stopped. The driver shall clear this configuration when the
3002 	 * AP is stopped and fall back to the default behavior for subsequent
3003 	 * AP operation.
3004 	 *
3005 	 * The default behavior when this configuration is not applicable is the
3006 	 * driver can choose any of the channels supported by the hardware
3007 	 * except the channels that cannot be used due to regulatory or other
3008 	 * constraints.
3009 	 *
3010 	 * The driver shall reject this configuration if done after the AP is
3011 	 * started. This attribute can be used to specify user's choice of
3012 	 * frequencies and static puncture channel list, etc.
3013 	 */
3014 	QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
3015 
3016 	/* Nested attribute to indicate EHT MLO links to be forced active.
3017 	 * It contains link MAC address attributes. These nested attributes are
3018 	 * of the type NL80211_ATTR_MAC and are used to force enabling of the
3019 	 * MLO links corresponding to the indicated link MAC addresses.
3020 	 * Subsequently, the links corresponding to the link MAC addresses that
3021 	 * are not indicated are forced inactive.
3022 	 */
3023 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
3024 
3025 	/* 8-bit unsigned value to configure EMLSR mode entry or exit.
3026 	 * Uses enum qca_wlan_emlsr_mode values.
3027 	 */
3028 	QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
3029 
3030 	/* 8-bit unsigned value to configure the channel bandwidth
3031 	 * for CTS frame transmission during the dymamic bandwidth
3032 	 * signaling CTS procedure referred in IEEE Std 802.11-2020,
3033 	 * 10.3.2.9 CTS and DMG CTS procedure.
3034 	 * This configuration is used for testing purposes.
3035 	 *
3036 	 * This uses values defined in enum nl80211_chan_width.
3037 	 */
3038 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
3039 
3040 	/* keep last */
3041 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
3042 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
3043 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
3044 };
3045 
3046 /* Compatibility defines for previously used incorrect enum
3047  * qca_wlan_vendor_attr_config names. These values should not be used in any
3048  * new implementation. */
3049 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
3050 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
3051 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
3052 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
3053 
3054 /**
3055  * enum qca_dbam_config - Specifies DBAM config mode
3056  * @QCA_DBAM_DISABLE: Firmware disables DBAM
3057  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
3058  * internal criteria are met.
3059  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
3060  */
3061 enum qca_dbam_config {
3062 	QCA_DBAM_DISABLE = 0,
3063 	QCA_DBAM_ENABLE = 1,
3064 	QCA_DBAM_FORCE_ENABLE = 2,
3065 };
3066 
3067 /**
3068  * enum qca_wlan_ani_setting - ANI setting type
3069  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
3070  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
3071  */
3072 enum qca_wlan_ani_setting {
3073 	QCA_WLAN_ANI_SETTING_AUTO = 0,
3074 	QCA_WLAN_ANI_SETTING_FIXED = 1,
3075 };
3076 
3077 /**
3078  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
3079  *
3080  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
3081  * Channel number on which Access Point should restart.
3082  * Note: If both the driver and user space application supports the 6 GHz band,
3083  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
3084  * should be used.
3085  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
3086  * is still used if either of the driver or user space application doesn't
3087  * support the 6 GHz band.
3088  *
3089  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
3090  * Channel center frequency (MHz) on which the access point should restart.
3091  */
3092 enum qca_wlan_vendor_attr_sap_config {
3093 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
3094 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
3095 
3096 	/* List of frequencies on which AP is expected to operate.
3097 	 * This is irrespective of ACS configuration. This list is a priority
3098 	 * based one and is looked for before the AP is created to ensure the
3099 	 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
3100 	 * the system.
3101 	 */
3102 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
3103 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
3104 
3105 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
3106 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
3107 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
3108 };
3109 
3110 /**
3111  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
3112  *					conditional channel switch
3113  */
3114 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3115 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3116 	/* Priority based frequency list (an array of u32 values in host byte
3117 	 * order)
3118 	 */
3119 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3120 	/* Status of the conditional switch (u32).
3121 	 * 0: Success, Non-zero: Failure
3122 	 */
3123 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3124 
3125 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3126 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3127 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3128 };
3129 
3130 /**
3131  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
3132  *
3133  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
3134  * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
3135  * for the available values.
3136  *
3137  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
3138  * value to specify the GPIO number.
3139  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3140  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3141  *
3142  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
3143  * value to specify the GPIO output level. Please refer to enum qca_gpio_value
3144  * for the available values.
3145  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3146  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
3147  *
3148  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
3149  * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
3150  * for the available values.
3151  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3152  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3153  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3154  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3155  * attribute is present.
3156  *
3157  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
3158  * value to specify the GPIO interrupt mode. Please refer to enum
3159  * qca_gpio_interrupt_mode for the available values.
3160  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3161  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3162  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3163  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3164  * attribute is present.
3165  *
3166  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
3167  * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
3168  * for the available values.
3169  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3170  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
3171  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
3172  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
3173  * attribute is present.
3174  *
3175  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
3176  * Value to specify the mux config. Meaning of a given value is dependent
3177  * on the target chipset and GPIO pin. Must be of the range 0-15.
3178  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3179  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
3180  *
3181  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
3182  * Value to specify the drive, refer to enum qca_gpio_drive.
3183  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3184  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
3185  *
3186  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
3187  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
3188  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
3189  * other parameters for the given GPIO will be obtained from internal
3190  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
3191  * specified to indicate the GPIO pin being configured.
3192  */
3193 enum qca_wlan_gpio_attr {
3194 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
3195 	/* Unsigned 32-bit attribute for GPIO command */
3196 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
3197 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
3198 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
3199 	/* Unsigned 32-bit attribute for GPIO value to configure */
3200 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
3201 	/* Unsigned 32-bit attribute for GPIO pull type */
3202 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
3203 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
3204 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
3205 	/* Unsigned 32-bit attribute for GPIO direction to configure */
3206 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
3207 	/* Unsigned 32-bit attribute for GPIO mux config */
3208 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
3209 	/* Unsigned 32-bit attribute for GPIO drive */
3210 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
3211 	/* Flag attribute for using internal GPIO configuration */
3212 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
3213 
3214 	/* keep last */
3215 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
3216 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
3217 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
3218 };
3219 
3220 /**
3221  * enum gpio_cmd_type - GPIO configuration command type
3222  * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
3223  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
3224  */
3225 enum qca_gpio_cmd_type {
3226 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
3227 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
3228 };
3229 
3230 /**
3231  * enum qca_gpio_pull_type - GPIO pull type
3232  * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
3233  * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
3234  * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
3235  */
3236 enum qca_gpio_pull_type {
3237 	QCA_WLAN_GPIO_PULL_NONE = 0,
3238 	QCA_WLAN_GPIO_PULL_UP = 1,
3239 	QCA_WLAN_GPIO_PULL_DOWN = 2,
3240 	QCA_WLAN_GPIO_PULL_MAX,
3241 };
3242 
3243 /**
3244  * enum qca_gpio_direction - GPIO direction
3245  * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
3246  * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
3247  * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
3248  */
3249 enum qca_gpio_direction {
3250 	QCA_WLAN_GPIO_INPUT = 0,
3251 	QCA_WLAN_GPIO_OUTPUT = 1,
3252 	QCA_WLAN_GPIO_DIR_MAX,
3253 };
3254 
3255 /**
3256  * enum qca_gpio_value - GPIO Value
3257  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
3258  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
3259  * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
3260  */
3261 enum qca_gpio_value {
3262 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
3263 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
3264 	QCA_WLAN_GPIO_LEVEL_MAX,
3265 };
3266 
3267 /**
3268  * enum gpio_interrupt_mode - GPIO interrupt mode
3269  * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
3270  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
3271  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
3272  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
3273  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
3274  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
3275  * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
3276  */
3277 enum qca_gpio_interrupt_mode {
3278 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
3279 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
3280 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
3281 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
3282 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
3283 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
3284 	QCA_WLAN_GPIO_INTMODE_MAX,
3285 };
3286 
3287 /**
3288  * enum qca_gpio_drive - GPIO drive
3289  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
3290  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
3291  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
3292  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
3293  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
3294  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
3295  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
3296  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
3297  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
3298  */
3299 enum qca_gpio_drive {
3300 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
3301 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
3302 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
3303 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
3304 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
3305 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
3306 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
3307 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
3308 	QCA_WLAN_GPIO_DRIVE_MAX,
3309 };
3310 
3311 /**
3312  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
3313  * MSDUQ depth threshold per peer per tid in the target
3314  *
3315  * Associated Vendor Command:
3316  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
3317  */
3318 enum qca_wlan_set_qdepth_thresh_attr {
3319 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
3320 	/* 6-byte MAC address */
3321 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
3322 	/* Unsigned 32-bit attribute for holding the TID */
3323 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
3324 	/* Unsigned 32-bit attribute for holding the update mask
3325 	 * bit 0 - Update high priority msdu qdepth threshold
3326 	 * bit 1 - Update low priority msdu qdepth threshold
3327 	 * bit 2 - Update UDP msdu qdepth threshold
3328 	 * bit 3 - Update Non UDP msdu qdepth threshold
3329 	 * rest of bits are reserved
3330 	 */
3331 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
3332 	/* Unsigned 32-bit attribute for holding the threshold value */
3333 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
3334 
3335 	/* keep last */
3336 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
3337 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
3338 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
3339 };
3340 
3341 /**
3342  * enum qca_acs_dfs_mode - Defines different types of DFS channel
3343  * configurations for ACS operation.
3344  *
3345  * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
3346  * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
3347  * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
3348  * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
3349  */
3350 enum qca_acs_dfs_mode {
3351 	QCA_ACS_DFS_MODE_NONE = 0,
3352 	QCA_ACS_DFS_MODE_ENABLE = 1,
3353 	QCA_ACS_DFS_MODE_DISABLE = 2,
3354 	QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
3355 };
3356 
3357 /**
3358  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
3359  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
3360  *
3361  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
3362  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
3363  *
3364  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
3365  * channel number hint for ACS operation, if valid channel is specified then
3366  * ACS operation gives priority to this channel.
3367  * Note: If both the driver and user space application supports the 6 GHz band,
3368  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
3369  * should be used.
3370  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
3371  * is still used if either of the driver or user space application doesn't
3372  * support the 6 GHz band.
3373  *
3374  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
3375  * Channel center frequency (MHz) hint for ACS operation, if a valid center
3376  * frequency is specified, ACS operation gives priority to this channel.
3377  */
3378 enum qca_wlan_vendor_attr_acs_config {
3379 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
3380 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
3381 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
3382 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
3383 
3384 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
3385 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
3386 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
3387 };
3388 
3389 /**
3390  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
3391  */
3392 enum qca_wlan_vendor_attr_get_hw_capability {
3393 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
3394 	/* Antenna isolation
3395 	 * An attribute used in the response.
3396 	 * The content of this attribute is encoded in a byte array. Each byte
3397 	 * value is an antenna isolation value. The array length is the number
3398 	 * of antennas.
3399 	 */
3400 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
3401 	/* Request HW capability
3402 	 * An attribute used in the request.
3403 	 * The content of this attribute is a u32 array for one or more of
3404 	 * hardware capabilities (attribute IDs) that are being requested. Each
3405 	 * u32 value has a value from this
3406 	 * enum qca_wlan_vendor_attr_get_hw_capability
3407 	 * identifying which capabilities are requested.
3408 	 */
3409 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
3410 
3411 	/* keep last */
3412 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
3413 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
3414 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
3415 };
3416 
3417 /**
3418  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
3419  *    offload which is an extension for LL_STATS.
3420  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
3421  *    If MAC counters do not exceed the threshold, FW will report monitored
3422  *    link layer counters periodically as this setting. The first report is
3423  *    always triggered by this timer.
3424  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
3425  *    For each MAC layer counter, FW holds two copies. One is the current value.
3426  *    The other is the last report. Once a current counter's increment is larger
3427  *    than the threshold, FW will indicate that counter to host even if the
3428  *    monitoring timer does not expire.
3429  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
3430  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
3431  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
3432  *    failure code.
3433  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
3434  *    1: TX packet discarded
3435  *    2: No ACK
3436  *    3: Postpone
3437  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
3438  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
3439  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
3440  *    Threshold for all monitored parameters. If per counter dedicated threshold
3441  *    is not enabled, this threshold will take effect.
3442  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
3443  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
3444  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
3445  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
3446  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
3447  *    Bit0: TX counter unit in MSDU
3448  *    Bit1: TX counter unit in MPDU
3449  *    Bit2: TX counter unit in PPDU
3450  *    Bit3: TX counter unit in byte
3451  *    Bit4: Dropped MSDUs
3452  *    Bit5: Dropped Bytes
3453  *    Bit6: MPDU retry counter
3454  *    Bit7: MPDU failure counter
3455  *    Bit8: PPDU failure counter
3456  *    Bit9: MPDU aggregation counter
3457  *    Bit10: MCS counter for ACKed MPDUs
3458  *    Bit11: MCS counter for Failed MPDUs
3459  *    Bit12: TX Delay counter
3460  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
3461  *    Bit0: MAC RX counter unit in MPDU
3462  *    Bit1: MAC RX counter unit in byte
3463  *    Bit2: PHY RX counter unit in PPDU
3464  *    Bit3: PHY RX counter unit in byte
3465  *    Bit4: Disorder counter
3466  *    Bit5: Retry counter
3467  *    Bit6: Duplication counter
3468  *    Bit7: Discard counter
3469  *    Bit8: MPDU aggregation size counter
3470  *    Bit9: MCS counter
3471  *    Bit10: Peer STA power state change (wake to sleep) counter
3472  *    Bit11: Peer STA power save counter, total time in PS mode
3473  *    Bit12: Probe request counter
3474  *    Bit13: Other management frames counter
3475  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
3476  *    Bit0: Idle time
3477  *    Bit1: TX time
3478  *    Bit2: time RX in current bss
3479  *    Bit3: Out of current bss time
3480  *    Bit4: Wireless medium busy time
3481  *    Bit5: RX in bad condition time
3482  *    Bit6: TX in bad condition time
3483  *    Bit7: time wlan card not available
3484  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
3485  *    Bit0: Per channel SNR counter
3486  *    Bit1: Per channel noise floor counter
3487  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
3488  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
3489  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
3490  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
3491  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
3492  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
3493  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
3494  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
3495  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
3496  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
3497  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
3498  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
3499  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
3500  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
3501  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
3502  *    aggregation stats buffer length
3503  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
3504  *    buffer for ACKed MPDUs.
3505  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
3506  *    buffer for failed MPDUs.
3507  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
3508  *    length of delay stats array.
3509  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
3510  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
3511  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
3512  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
3513  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
3514  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
3515  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
3516  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
3517  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
3518  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
3519  *    flagged as retransmissions
3520  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
3521  *    flagged as duplicated
3522  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
3523  *    packets discarded
3524  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
3525  *    stats buffer.
3526  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
3527  *    stats buffer.
3528  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
3529  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
3530  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
3531  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
3532  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
3533  *    requests received
3534  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
3535  *    frames received
3536  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
3537  *    there is no TX, nor RX, nor interference.
3538  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
3539  *    transmitting packets.
3540  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
3541  *    for receiving.
3542  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
3543  *    interference detected.
3544  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
3545  *    receiving packets with errors.
3546  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
3547  *    TX no-ACK.
3548  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
3549  *    the chip is unable to work in normal conditions.
3550  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
3551  *    receiving packets in current BSS.
3552  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
3553  *    receiving packets not in current BSS.
3554  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
3555  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
3556  *    This is a container for per antenna signal stats.
3557  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
3558  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
3559  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
3560  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
3561  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
3562  *    Absolute timestamp from 1970/1/1, unit in ms. After receiving the
3563  *    message, user layer APP could call gettimeofday to get another
3564  *    timestamp and calculate transfer delay for the message.
3565  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
3566  *    Real period for this measurement, unit in us.
3567  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
3568  *    64-bit alignment.
3569  */
3570 enum qca_wlan_vendor_attr_ll_stats_ext {
3571 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
3572 
3573 	/* Attributes for configurations */
3574 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
3575 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
3576 
3577 	/* Peer STA power state change */
3578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
3579 
3580 	/* TX failure event */
3581 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
3582 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
3583 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
3584 
3585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
3586 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
3587 
3588 	/* MAC counters */
3589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
3590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
3591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
3592 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3594 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3595 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3596 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3597 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3599 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3600 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3601 
3602 	/* Sub-attributes for PEER_AC_TX */
3603 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3604 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3605 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3606 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3607 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3609 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3610 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3611 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3612 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3614 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3615 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3616 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3617 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3618 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3619 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3620 
3621 	/* Sub-attributes for PEER_AC_RX */
3622 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3623 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3624 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3625 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3626 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3627 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3628 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3629 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3630 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3631 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3632 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3633 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3634 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3635 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3636 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3637 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3638 
3639 	/* Sub-attributes for CCA_BSS */
3640 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3641 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3642 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3643 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3644 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3645 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3646 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3647 
3648 	/* sub-attribute for BSS_RX_TIME */
3649 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3650 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3651 
3652 	/* Sub-attributes for PEER_SIGNAL */
3653 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3654 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3655 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3656 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3657 
3658 	/* Sub-attributes for IFACE_BSS */
3659 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3660 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3661 
3662 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3663 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3664 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
3665 
3666 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3667 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3668 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3669 };
3670 
3671 /* Attributes for FTM commands and events */
3672 
3673 /**
3674  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3675  *
3676  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3677  *	enum qca_wlan_vendor_attr_loc_capa_flags.
3678  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3679  *	of measurement sessions that can run concurrently.
3680  *	Default is one session (no session concurrency).
3681  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3682  *	peers that are supported in running sessions. For example,
3683  *	if the value is 8 and maximum number of sessions is 2, you can
3684  *	have one session with 8 unique peers, or 2 sessions with 4 unique
3685  *	peers each, and so on.
3686  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3687  *	of bursts per peer, as an exponent (2^value). Default is 0,
3688  *	meaning no multi-burst support.
3689  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3690  *	of measurement exchanges allowed in a single burst.
3691  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3692  *	types. A bit mask (unsigned 32 bit value), each bit corresponds
3693  *	to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3694  */
3695 enum qca_wlan_vendor_attr_loc_capa {
3696 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3697 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3698 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3699 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3700 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3701 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3702 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3703 	/* keep last */
3704 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3705 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3706 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3707 };
3708 
3709 /**
3710  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3711  *
3712  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3713  *	can be configured as an FTM responder (for example, an AP that
3714  *	services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3715  *	will be supported if set.
3716  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3717  *	can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3718  *	will be supported if set.
3719  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
3720  *	supports immediate (ASAP) response.
3721  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3722  *	AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3723  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3724  *	requesting AOA measurements as part of an FTM session.
3725  */
3726 enum qca_wlan_vendor_attr_loc_capa_flags {
3727 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3728 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3729 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3730 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3731 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3732 };
3733 
3734 /**
3735  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3736  *	a single peer in a measurement session.
3737  *
3738  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3739  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3740  *	to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
3741  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
3742  *	FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3743  *	9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3744  *	list of supported attributes.
3745  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3746  *	secure measurement.
3747  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3748  *	measurement every <value> bursts. If 0 or not specified,
3749  *	AOA measurements will be disabled for this peer.
3750  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3751  *	the measurement frames are exchanged. Optional; if not
3752  *	specified, try to locate the peer in the kernel scan
3753  *	results cache and use frequency from there.
3754  */
3755 enum qca_wlan_vendor_attr_ftm_peer_info {
3756 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3757 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3758 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
3759 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
3760 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3761 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
3762 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
3763 	/* keep last */
3764 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3765 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3766 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3767 };
3768 
3769 /**
3770  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3771  *	per-peer
3772  *
3773  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3774  *	immediate (ASAP) response from peer.
3775  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3776  *	LCI report from peer. The LCI report includes the absolute
3777  *	location of the peer in "official" coordinates (similar to GPS).
3778  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3779  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3780  *	Location civic report from peer. The LCR includes the location
3781  *	of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3782  *	11.24.6.7 for more information.
3783  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3784  *	request a secure measurement.
3785  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3786  */
3787 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3788 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP	= 1 << 0,
3789 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI	= 1 << 1,
3790 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR	= 1 << 2,
3791 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE	= 1 << 3,
3792 };
3793 
3794 /**
3795  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3796  *
3797  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3798  *	to perform in a single burst.
3799  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3800  *	perform, specified as an exponent (2^value).
3801  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3802  *	instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3803  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3804  *	as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3805  *	be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3806  */
3807 enum qca_wlan_vendor_attr_ftm_meas_param {
3808 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3809 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3810 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3811 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3812 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3813 	/* keep last */
3814 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3815 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3816 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3817 };
3818 
3819 /**
3820  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3821  *
3822  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3823  *	 peer.
3824  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3825  *	request for this peer.
3826  *	See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3827  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3828  *	to measurement results for this peer.
3829  *	See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3830  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3831  *	request failed and peer requested not to send an additional request
3832  *	for this number of seconds.
3833  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3834  *	from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3835  *	9.4.2.22.10.
3836  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3837  *	received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3838  *	9.4.2.22.13.
3839  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3840  *	overridden some measurement request parameters. See
3841  *	enum qca_wlan_vendor_attr_ftm_meas_param.
3842  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3843  *	for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3844  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3845  *	results. Each entry is a nested attribute defined
3846  *	by enum qca_wlan_vendor_attr_ftm_meas.
3847  */
3848 enum qca_wlan_vendor_attr_ftm_peer_result {
3849 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3850 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3851 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3852 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3853 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3854 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3855 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3856 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3857 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3858 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3859 	/* keep last */
3860 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3861 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3862 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3863 };
3864 
3865 /**
3866  * enum qca_wlan_vendor_attr_ftm_peer_result_status
3867  *
3868  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3869  *	will be provided. Peer may have overridden some measurement parameters,
3870  *	in which case overridden parameters will be report by
3871  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3872  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3873  *	of performing the measurement request. No more results will be sent
3874  *	for this peer in this session.
3875  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3876  *	failed, and requested not to send an additional request for number
3877  *	of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3878  *	attribute.
3879  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3880  *	failed. Request was not sent over the air.
3881  */
3882 enum qca_wlan_vendor_attr_ftm_peer_result_status {
3883 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3884 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3885 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3886 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3887 };
3888 
3889 /**
3890  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3891  *  for measurement result, per-peer
3892  *
3893  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3894  *	measurement completed for this peer. No more results will be reported
3895  *	for this peer in this session.
3896  */
3897 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3898 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3899 };
3900 
3901 /**
3902  * enum qca_vendor_attr_loc_session_status: Session completion status code
3903  *
3904  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3905  *	successfully.
3906  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3907  *	by request.
3908  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3909  *	was invalid and was not started.
3910  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3911  *	and did not complete normally (for example out of resources).
3912  */
3913 enum qca_vendor_attr_loc_session_status {
3914 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3915 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3916 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3917 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3918 };
3919 
3920 /**
3921  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3922  *
3923  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3924  *	recorded by responder, in picoseconds.
3925  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3926  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3927  *	initiator, in picoseconds.
3928  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3929  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3930  *	initiator, in picoseconds.
3931  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3932  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3933  *	responder, in picoseconds.
3934  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3935  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3936  *	during this measurement exchange. Optional and will be provided if
3937  *	the hardware can measure it.
3938  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3939  *	responder. Not always provided.
3940  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3941  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3942  *	responder. Not always provided.
3943  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3944  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3945  *	initiator. Not always provided.
3946  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3947  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3948  *	initiator. Not always provided.
3949  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3950  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
3951  *	alignment.
3952  */
3953 enum qca_wlan_vendor_attr_ftm_meas {
3954 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
3955 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3956 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3957 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3958 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3959 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3960 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3961 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3962 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3963 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3964 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3965 	/* keep last */
3966 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3967 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3968 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3969 };
3970 
3971 /**
3972  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3973  *
3974  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3975  *	CIR (channel impulse response) path for each antenna.
3976  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3977  *	of the strongest CIR path for each antenna.
3978  */
3979 enum qca_wlan_vendor_attr_aoa_type {
3980 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3981 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3982 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3983 };
3984 
3985 /**
3986  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3987  * validate encryption engine
3988  *
3989  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3990  *	This will be included if the request is for decryption; if not included,
3991  *	the request is treated as a request for encryption by default.
3992  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3993  *	indicating the key cipher suite. Takes same values as
3994  *	NL80211_ATTR_KEY_CIPHER.
3995  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3996  *	Key Id to be used for encryption
3997  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3998  *	Key (TK) to be used for encryption/decryption
3999  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
4000  *	Packet number to be specified for encryption/decryption
4001  *	6 bytes for TKIP/CCMP/GCMP.
4002  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
4003  *	representing the 802.11 packet (header + payload + FCS) that
4004  *	needs to be encrypted/decrypted.
4005  *	Encrypted/decrypted response from the driver will also be sent
4006  *	to userspace with the same attribute.
4007  */
4008 enum qca_wlan_vendor_attr_encryption_test {
4009 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
4010 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
4011 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
4012 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
4013 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
4014 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
4015 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
4016 
4017 	/* keep last */
4018 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
4019 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
4020 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
4021 };
4022 
4023 /**
4024  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
4025  * sector for DMG RF sector operations.
4026  *
4027  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
4028  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
4029  */
4030 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
4031 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
4032 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
4033 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
4034 };
4035 
4036 /**
4037  * enum qca_wlan_vendor_attr_fw_state - State of firmware
4038  *
4039  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
4040  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
4041  */
4042 enum qca_wlan_vendor_attr_fw_state {
4043 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
4044 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
4045 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
4046 };
4047 
4048 /**
4049  * BRP antenna limit mode
4050  *
4051  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
4052  *	antenna limit, BRP will be performed as usual.
4053  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
4054  *	antennas limit. the hardware may use less antennas than the
4055  *	maximum limit.
4056  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
4057  *	use exactly the specified number of antennas for BRP.
4058  */
4059 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
4060 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
4061 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
4062 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
4063 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
4064 };
4065 
4066 /**
4067  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
4068  * DMG RF sector configuration for a single RF module.
4069  * The values are defined in a compact way which closely matches
4070  * the way it is stored in HW registers.
4071  * The configuration provides values for 32 antennas and 8 distribution
4072  * amplifiers, and together describes the characteristics of the RF
4073  * sector - such as a beam in some direction with some gain.
4074  *
4075  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
4076  *	of RF module for this configuration.
4077  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
4078  *	amplifier gain index. Unsigned 32 bit number containing
4079  *	bits for all 32 antennas.
4080  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
4081  *	amplifier gain index. Unsigned 32 bit number containing
4082  *	bits for all 32 antennas.
4083  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
4084  *	amplifier gain index. Unsigned 32 bit number containing
4085  *	bits for all 32 antennas.
4086  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
4087  *	for first 16 antennas, 2 bits per antenna.
4088  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
4089  *	for last 16 antennas, 2 bits per antenna.
4090  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
4091  *	DTYPE values (3 bits) for each distribution amplifier, followed
4092  *	by X16 switch bits for each distribution amplifier. There are
4093  *	total of 8 distribution amplifiers.
4094  */
4095 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
4096 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
4097 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
4098 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
4099 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
4100 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
4101 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
4102 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
4103 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
4104 
4105 	/* keep last */
4106 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
4107 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
4108 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
4109 };
4110 
4111 enum qca_wlan_vendor_attr_ll_stats_set {
4112 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
4113 	/* Unsigned 32-bit value */
4114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
4115 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
4116 	/* keep last */
4117 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
4118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
4119 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
4120 };
4121 
4122 /**
4123  * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
4124  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
4125  *
4126  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
4127  *
4128  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
4129  * radio statistics.
4130  *
4131  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
4132  * statistics within radio statistics.
4133  *
4134  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
4135  * radio statistics.
4136  *
4137  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
4138  *
4139  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
4140  * within interface statistics.
4141  *
4142  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
4143  * interface statistics.
4144  *
4145  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
4146  * (min, max, avg) statistics within AC statistics.
4147  *
4148  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
4149  * on this interface.
4150  *
4151  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
4152  * statistics depending on the peer_mac.
4153  */
4154 enum qca_wlan_ll_stats_clr_req_bitmap {
4155 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = 		BIT(0),
4156 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = 		BIT(1),
4157 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = 	BIT(2),
4158 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = 		BIT(3),
4159 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = 		BIT(4),
4160 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = 	BIT(5),
4161 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = 		BIT(6),
4162 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION =	BIT(7),
4163 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = 	BIT(8),
4164 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = 	BIT(9),
4165 };
4166 
4167 enum qca_wlan_vendor_attr_ll_stats_clr {
4168 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
4169 	/* Unsigned 32bit bitmap for clearing statistics, specified
4170 	 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
4171 	 */
4172 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
4173 	/* Unsigned 8 bit value: Request to stop statistics collection */
4174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
4175 
4176 	/* Unsigned 32 bit bitmap: Response from the driver
4177 	 * for the cleared statistics
4178 	 */
4179 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
4180 	/* Unsigned 8 bit value: Response from driver/firmware
4181 	 * for the stop request
4182 	 */
4183 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
4184 	/* keep last */
4185 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
4186 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
4187 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
4188 };
4189 
4190 /**
4191  * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
4192  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
4193  *
4194  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
4195  *
4196  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
4197  *
4198  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
4199  *
4200  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
4201  */
4202 enum qca_wlan_ll_stats_get_req_bitmap {
4203 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO =	BIT(0),
4204 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE =	BIT(1),
4205 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = 	BIT(2),
4206 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = 	BIT(3),
4207 };
4208 
4209 enum qca_wlan_vendor_attr_ll_stats_get {
4210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
4211 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
4212 	 * command. When reporting the stats results, the driver uses the same
4213 	 * value to indicate which GET request the results correspond to.
4214 	 */
4215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
4216 	/* Unsigned 32 bit value - bit mask to identify what statistics are
4217 	 * requested for retrieval specified in the enum
4218 	 * qca_wlan_ll_stats_get_req_bitmap
4219 	 */
4220 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
4221 	/* keep last */
4222 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
4223 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
4224 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
4225 };
4226 
4227 enum qca_wlan_vendor_attr_ll_stats_results {
4228 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
4229 
4230 	/*
4231 	 * For Multi Link Operation (MLO) connection, per-link statistics will
4232 	 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
4233 	 * cumulative statistics will be sent outside of
4234 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
4235 	 * compatibility with legacy user space. Attributes which don't have
4236 	 * explicit documentation for MLO will be sent only outside of
4237 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
4238 	 * don't depend on whether the connection is MLO capable or not, e.g.,
4239 	 * radio and channel specific attributes.
4240 	 */
4241 
4242 	/* Unsigned 32bit value. Used by the driver; must match the request id
4243 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
4244 	 */
4245 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
4246 
4247 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4248 	 * the link with the best RSSI outside
4249 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4250 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4251 	 */
4252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
4253 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4254 	 * the link with the best RSSI outside
4255 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4256 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4257 	 */
4258 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
4259 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4260 	 * the link with the best RSSI outside
4261 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4262 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4263 	 */
4264 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
4265 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4266 	 * the link with the best RSSI outside
4267 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4268 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4269 	 */
4270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
4271 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4272 	 * the link with the best RSSI outside
4273 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4274 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4275 	 */
4276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
4277 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4278 	 * the link with the best RSSI outside
4279 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4280 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4281 	 */
4282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
4283 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4284 	 * the link with the best RSSI outside
4285 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4286 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4287 	 */
4288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
4289 
4290 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
4291 	 * nested within the interface stats.
4292 	 */
4293 
4294 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
4295 	 * Type = enum wifi_interface_mode.
4296 	 */
4297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
4298 	/* Interface MAC address. An array of 6 Unsigned int8 */
4299 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
4300 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
4301 	 * AUTHENTICATING, etc. valid for STA, CLI only.
4302 	 */
4303 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
4304 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
4305 	 */
4306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
4307 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
4308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
4309 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
4310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
4311 	/* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
4312 	 * address of the AP. An array of 6 unsigned 8 bit values */
4313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
4314 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
4315 	 * values.
4316 	 */
4317 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
4318 	/* Country string for this association. An array of 3 unsigned 8 bit
4319 	 * values.
4320 	 */
4321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
4322 
4323 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
4324 	 * be nested within the interface stats.
4325 	 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4326 	 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
4327 	 * indicate the aggregate of all links outside
4328 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4329 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
4330 	 * indicate value of the MLO link with the best RSSI outside
4331 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4332 	 * These attributes indicate the link specific value inside
4333 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4334 	 */
4335 
4336 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
4337 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
4338 	/* Unsigned int 32 value corresponding to respective AC */
4339 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
4340 	/* Unsigned int 32 value corresponding to respective AC */
4341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
4342 	/* Unsigned int 32 value corresponding to respective AC */
4343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
4344 	/* Unsigned int 32 value corresponding to respective AC */
4345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
4346 	/* Unsigned int 32 value corresponding to respective AC */
4347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
4348 	/* Unsigned int 32 value corresponding to respective AC */
4349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
4350 	/* Unsigned int 32 value corresponding to respective AC */
4351 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
4352 	/* Unsigned int 32 value corresponding to respective AC */
4353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
4354 	/* Unsigned int 32 value corresponding to respective AC  */
4355 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
4356 	/* Unsigned int 32 values corresponding to respective AC */
4357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
4358 	/* Unsigned int 32 values corresponding to respective AC */
4359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
4360 	/* Unsigned int 32 values corresponding to respective AC */
4361 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
4362 	/* Unsigned int 32 values corresponding to respective AC */
4363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
4364 	/* Unsigned int 32 values corresponding to respective AC */
4365 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
4366 	/* Unsigned 32 bit value. Number of peers */
4367 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
4368 
4369 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
4370 	 * nested within the interface stats.
4371 	 */
4372 
4373 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
4374 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
4375 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
4376 	 * 8 bit values.
4377 	 */
4378 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
4379 	/* Unsigned int 32 bit value representing capabilities corresponding
4380 	 * to respective peer.
4381 	 */
4382 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
4383 	/* Unsigned 32 bit value. Number of rates */
4384 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
4385 
4386 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4387 	 * are nested within the rate stat.
4388 	 */
4389 
4390 	/* Wi-Fi Rate - separate attributes defined for individual fields */
4391 
4392 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
4393 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
4394 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
4395 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
4396 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
4397 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
4398 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
4399 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
4400 	 */
4401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
4402 
4403 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
4404 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
4405 
4406 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
4407 	 * nested within the peer info stats.
4408 	 */
4409 
4410 	/* Unsigned int 32 bit value. Number of successfully transmitted data
4411 	 * packets, i.e., with ACK received corresponding to the respective
4412 	 * rate.
4413 	 */
4414 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
4415 	/* Unsigned int 32 bit value. Number of received data packets
4416 	 * corresponding to the respective rate.
4417 	 */
4418 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
4419 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
4420 	 * received corresponding to the respective rate.
4421 	 */
4422 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
4423 	/* Unsigned int 32 bit value. Total number of data packet retries for
4424 	 * the respective rate.
4425 	 */
4426 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
4427 	/* Unsigned int 32 bit value. Total number of short data packet retries
4428 	 * for the respective rate.
4429 	 */
4430 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
4431 	/* Unsigned int 32 bit value. Total number of long data packet retries
4432 	 * for the respective rate.
4433 	 */
4434 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
4435 
4436 	/* Unsigned 32 bit value. This is used to indicate radio ID of the radio
4437 	 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4438 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
4439 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
4440 	 * of the MLO link.
4441 	 */
4442 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
4443 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
4444 	 * accruing over time.
4445 	 */
4446 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
4447 	/* Unsigned 32 bit value. Total number of msecs the radio is
4448 	 * transmitting accruing over time.
4449 	 */
4450 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
4451 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
4452 	 * receive accruing over time.
4453 	 */
4454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
4455 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4456 	 * to all scan accruing over time.
4457 	 */
4458 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
4459 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4460 	 * to NAN accruing over time.
4461 	 */
4462 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
4463 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4464 	 * to GSCAN accruing over time.
4465 	 */
4466 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
4467 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4468 	 * to roam scan accruing over time.
4469 	 */
4470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
4471 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4472 	 * to PNO scan accruing over time.
4473 	 */
4474 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
4475 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
4476 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
4477 	 */
4478 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
4479 	/* Unsigned 32 bit value. Number of channels. */
4480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
4481 
4482 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
4483 	 * be nested within the channel stats.
4484 	 */
4485 
4486 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
4487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
4488 	/* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
4489 	 * indicate the primary frequency of the channel when
4490 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
4491 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
4492 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
4493 	 * on which the MLO link is operating.
4494 	 */
4495 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
4496 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
4497 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
4498 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
4499 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
4500 
4501 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
4502 	 * nested within the radio stats.
4503 	 */
4504 
4505 	/* Unsigned int 32 bit value representing total number of msecs the
4506 	 * radio is awake on that channel accruing over time, corresponding to
4507 	 * the respective channel.
4508 	 */
4509 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
4510 	/* Unsigned int 32 bit value representing total number of msecs the CCA
4511 	 * register is busy accruing over time corresponding to the respective
4512 	 * channel.
4513 	 */
4514 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
4515 
4516 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
4517 
4518 	/* Signifies the nested list of channel attributes
4519 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
4520 	 */
4521 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
4522 
4523 	/* Signifies the nested list of peer info attributes
4524 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
4525 	 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
4526 	 * indicate on which link the peer is connected.
4527 	 */
4528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
4529 
4530 	/* Signifies the nested list of rate info attributes
4531 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
4532 	 */
4533 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
4534 
4535 	/* Signifies the nested list of wmm info attributes
4536 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
4537 	 */
4538 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
4539 
4540 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
4541 	 * that more stats, e.g., peers or radio, are to follow in the next
4542 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
4543 	 * Otherwise, it is set to 0.
4544 	 */
4545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
4546 
4547 	/* Unsigned 64 bit value. For an MLO connection, indicates the value of
4548 	 * the link with the best RSSI outside
4549 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4550 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4551 	 */
4552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
4553 
4554 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4555 	 * the link with the best RSSI outside
4556 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4557 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4558 	 */
4559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
4560 
4561 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4562 	 * the link with the best RSSI outside
4563 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4564 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4565 	 */
4566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
4567 
4568 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4569 	 * the link with the best RSSI outside
4570 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4571 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4572 	 */
4573 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
4574 
4575 	/* Unsigned 32 bit value */
4576 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
4577 
4578 	/* Unsigned 32 bit value */
4579 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
4580 
4581 	/* Number of msecs the radio spent in transmitting for each power level
4582 	 */
4583 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
4584 
4585 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4586 	 * the link with the best RSSI outside
4587 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4588 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4589 	 */
4590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
4591 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4592 	 * the link with the best RSSI outside
4593 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4594 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4595 	 */
4596 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
4597 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4598 	 * the link with the best RSSI outside
4599 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4600 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4601 	 */
4602 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
4603 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
4604 	 * the link with the best RSSI outside
4605 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4606 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4607 	 */
4608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
4609 
4610 	/* Unsigned int 32 value.
4611 	 * Pending MSDUs corresponding to respective AC.
4612 	 */
4613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
4614 
4615 	/* u32 value representing total time in milliseconds for which the radio
4616 	 * is transmitting on this channel. This attribute will be nested
4617 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4618 	 */
4619 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
4620 	/* u32 value representing total time in milliseconds for which the radio
4621 	 * is receiving all 802.11 frames intended for this device on this
4622 	 * channel. This attribute will be nested within
4623 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
4624 	 */
4625 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
4626 	/* u8 value representing the channel load percentage. Possible values
4627 	 * are 0-100.
4628 	 */
4629 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
4630 	/* u8 value representing the time slicing duty cycle percentage.
4631 	 * Possible values are 0-100. For an MLO connection, indicates the value
4632 	 * of the link with the best RSSI outside
4633 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4634 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4635 	 */
4636 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
4637 	/* Unsigned 32 bit value. The number of Beacon frames which are received
4638 	 * from the associated AP and indicate buffered unicast frame(s) for us
4639 	 * in the TIM element. For an MLO connection, indicates the value of the
4640 	 * link with the best RSSI outside
4641 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4642 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4643 	 */
4644 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
4645 	/* Unsigned 32 bit value. The total number of Beacon frames received
4646 	 * from the associated AP that have wrongly indicated buffered unicast
4647 	 * traffic in the TIM element for us.
4648 	 * Below scenarios will be considered as wrong TIM element beacon:
4649 	 * 1)	The related TIM element is set in the beacon for STA but STA
4650 	 *      doesn’t receive any unicast data after this beacon.
4651 	 * 2)	The related TIM element is still set in the beacon for STA
4652 	 *	after STA has indicated power save exit by QoS Null Data frame.
4653 	 * For an MLO connection, indicates the value of the link with the best
4654 	 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
4655 	 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4656 	 */
4657 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
4658 
4659 	/* Signed 32 bit value. It represents the noise floor calibration value.
4660 	 * Possible values are -120~-50 dBm. For an MLO connection, indicates
4661 	 * the value of the link with the best RSSI outside
4662 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
4663 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
4664 	 */
4665 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
4666 
4667 	/* Attribute used for padding for 64-bit alignment */
4668 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
4669 
4670 	/* Unsigned u8 value, link ID of an MLO link. Used inside nested
4671 	 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
4672 	 * link ID of the MLO link for which the statistics are embedded in the
4673 	 * nested attribute. Used inside nested attribute
4674 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
4675 	 * link ID of the peer.
4676 	 */
4677 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
4678 
4679 	/* A nested array of attributes for each MLO link, each containing
4680 	 * per-link statistics of a multi link connection. The attributes used
4681 	 * inside this nested attribute are defined in enum
4682 	 * qca_wlan_vendor_attr_ll_stats_results.
4683 	 *
4684 	 * For non-MLO connection, this attribute is not present and the
4685 	 * statistics will be sent outside this attribute (without nesting).
4686 	 *
4687 	 * For MLO connection, this attribute is present and also cumulative
4688 	 * statistics of all the links will be sent outside of this attribute
4689 	 * to be compatible with legacy user space.
4690 	 */
4691 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
4692 
4693 	/* keep last */
4694 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
4695 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
4696 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
4697 };
4698 
4699 enum qca_wlan_vendor_attr_ll_stats_type {
4700 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
4701 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
4702 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
4703 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
4704 
4705 	/* keep last */
4706 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
4707 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
4708 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
4709 };
4710 
4711 /**
4712  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
4713  * TDLS configuration to the host driver.
4714  *
4715  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
4716  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
4717  *	represents the different TDLS trigger modes.
4718  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
4719  *      which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
4720  *      of packets shall meet the criteria for implicit TDLS setup.
4721  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
4722  *      within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
4723  *      to initiate a TDLS setup.
4724  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
4725  *      a TDLS Discovery to the peer.
4726  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
4727  *      discovery attempts to know the TDLS capability of the peer. A peer is
4728  *      marked as TDLS not capable if there is no response for all the attempts.
4729  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
4730  *      within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
4731  *      number of TX / RX frames meet the criteria for TDLS teardown.
4732  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
4733  *      of Tx/Rx packets within a duration
4734  *      QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
4735  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
4736  *	corresponding to the RSSI of the peer below which a TDLS setup is
4737  *	triggered.
4738  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
4739  *	corresponding to the RSSI of the peer above which a TDLS teardown is
4740  *	triggered.
4741  */
4742 enum qca_wlan_vendor_attr_tdls_configuration {
4743 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
4744 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
4745 
4746 	/* Attributes configuring the TDLS Implicit Trigger */
4747 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
4748 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
4749 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
4750 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
4751 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
4752 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
4753 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
4754 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
4755 
4756 	/* keep last */
4757 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
4758 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
4759 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
4760 };
4761 
4762 /**
4763  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
4764  *	the driver
4765  *
4766  * The following are the different values for
4767  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
4768  *
4769  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
4770  *	the TDLS connection to a respective peer comes from the user space.
4771  *	wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
4772  *	TDLS_DISCOVER to do this.
4773  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
4774  *	setup/teardown to the eligible peer once the configured criteria
4775  *	(such as TX/RX threshold, RSSI) is met. The attributes
4776  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
4777  *	the different configuration criteria for the TDLS trigger from the
4778  *	host driver.
4779  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
4780  *	the TDLS setup / teardown through the implicit mode only to the
4781  *	configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
4782  *	configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
4783  *	External mode works on top of the implicit mode. Thus the host driver
4784  *	is expected to configure in TDLS Implicit mode too to operate in
4785  *	External mode.
4786  *	Configuring External mode alone without	Implicit mode is invalid.
4787  *
4788  * All the above implementations work as expected only when the host driver
4789  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
4790  * that the TDLS message exchange is not internal to the host driver, but
4791  * depends on wpa_supplicant to do the message exchange.
4792  */
4793 enum qca_wlan_vendor_tdls_trigger_mode {
4794 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
4795 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
4796 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
4797 };
4798 
4799 /**
4800  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
4801  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
4802  *	that is hard-coded in the Board Data File (BDF).
4803  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
4804  *	that is hard-coded in the Board Data File (BDF).
4805  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
4806  *	that is hard-coded in the Board Data File (BDF).
4807  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4808  *	that is hard-coded in the Board Data File (BDF).
4809  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4810  *	that is hard-coded in the Board Data File (BDF).
4811  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4812  *	source of SAR power limits, thereby disabling the SAR power
4813  *	limit feature.
4814  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4815  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4816  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4817  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4818  *
4819  * This enumerates the valid set of values that may be supplied for
4820  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
4821  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4822  * the response to an instance of the
4823  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4824  */
4825 enum qca_vendor_attr_sar_limits_selections {
4826 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4827 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4828 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4829 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4830 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4831 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4832 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
4833 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
4834 };
4835 
4836 /**
4837  * enum qca_vendor_attr_sar_limits_spec_modulations -
4838  *	SAR limits specification modulation
4839  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4840  *	CCK modulation
4841  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4842  *	OFDM modulation
4843  *
4844  * This enumerates the valid set of values that may be supplied for
4845  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4846  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4847  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
4848  * command or in the response to an instance of the
4849  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4850  */
4851 enum qca_vendor_attr_sar_limits_spec_modulations {
4852 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4853 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4854 };
4855 
4856 /**
4857  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4858  *
4859  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
4860  *	select which SAR power limit table should be used. Valid
4861  *	values are enumerated in enum
4862  *	%qca_vendor_attr_sar_limits_selections. The existing SAR
4863  *	power limit selection is unchanged if this attribute is not
4864  *	present.
4865  *
4866  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4867  *	which specifies the number of SAR power limit specifications
4868  *	which will follow.
4869  *
4870  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4871  *	limit specifications. The number of specifications is
4872  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4873  *	specification contains a set of
4874  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4875  *	specification is uniquely identified by the attributes
4876  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4877  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4878  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4879  *	contains as a payload the attribute
4880  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4881  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4882  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4883  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4884  *	needed based upon the value of
4885  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
4886  *
4887  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4888  *	indicate for which band this specification applies. Valid
4889  *	values are enumerated in enum %nl80211_band (although not all
4890  *	bands may be supported by a given device). If the attribute is
4891  *	not supplied then the specification will be applied to all
4892  *	supported bands.
4893  *
4894  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4895  *	to indicate for which antenna chain this specification
4896  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4897  *	attribute is not supplied then the specification will be
4898  *	applied to all chains.
4899  *
4900  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4901  *	value to indicate for which modulation scheme this
4902  *	specification applies. Valid values are enumerated in enum
4903  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4904  *	is not supplied then the specification will be applied to all
4905  *	modulation schemes.
4906  *
4907  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4908  *	value to specify the actual power limit value in units of 0.5
4909  *	dBm (i.e., a value of 11 represents 5.5 dBm).
4910  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4911  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
4912  *
4913  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4914  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4915  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4916  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4917  *
4918  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4919  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
4920  */
4921 enum qca_vendor_attr_sar_limits {
4922 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4923 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4924 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4925 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4926 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4927 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4928 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4929 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
4930 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
4931 
4932 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4933 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4934 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4935 };
4936 
4937 /**
4938  * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4939  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
4940  *
4941  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4942  *	should be set to any U8 value to indicate that the driver version
4943  *	should be returned. When enabled in this manner, in a response this
4944  *	attribute will contain a string representation of the driver version.
4945  *
4946  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4947  *	should be set to any U8 value to indicate that the firmware version
4948  *	should be returned. When enabled in this manner, in a response this
4949  *	attribute will contain a string representation of the firmware version.
4950  *
4951  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4952  *	should be set to any U32 value to indicate that the current radio
4953  *	index should be returned. When enabled in this manner, in a response
4954  *	this attribute will contain a U32 radio index value.
4955  *
4956  */
4957 enum qca_wlan_vendor_attr_get_wifi_info {
4958 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4959 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4960 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
4961 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
4962 
4963 	/* keep last */
4964 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4965 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4966 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4967 };
4968 
4969 /*
4970  * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4971  * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4972  */
4973 enum qca_wlan_vendor_attr_wifi_logger_start {
4974 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4975 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4976 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4977 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4978 
4979 	/* keep last */
4980 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4981 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4982 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4983 };
4984 
4985 enum qca_wlan_vendor_attr_logger_results {
4986 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4987 
4988 	/* Unsigned 32-bit value; must match the request Id supplied by
4989 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
4990 	 */
4991 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4992 
4993 	/* Unsigned 32-bit value; used to indicate the size of memory
4994 	 * dump to be allocated.
4995 	 */
4996 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4997 
4998 	/* keep last */
4999 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
5000 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
5001 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
5002 };
5003 
5004 /**
5005  * enum qca_scan_freq_list_type: Frequency list types
5006  *
5007  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
5008  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5009  *	a preferred frequency list for roaming.
5010  *
5011  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
5012  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
5013  *	a specific frequency list for roaming.
5014  */
5015 enum qca_scan_freq_list_type {
5016 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
5017 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
5018 };
5019 
5020 /**
5021  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
5022  *
5023  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
5024  *	List of frequencies in MHz to be considered for a roam scan.
5025  *
5026  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
5027  *	Type of frequency list scheme being configured/gotten as defined by the
5028  *	enum qca_scan_freq_list_type.
5029  */
5030 enum qca_vendor_attr_scan_freq_list_scheme {
5031 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
5032 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
5033 
5034 	/* keep last */
5035 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
5036 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
5037 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
5038 };
5039 
5040 /**
5041  * enum qca_roam_scan_scheme: Scan scheme
5042  *
5043  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
5044  *     Indicates the driver to not scan on a Roam Trigger scenario, but
5045  *     disconnect. E.g., on a BTM request from the AP the driver/firmware shall
5046  *     disconnect from the current connected AP by notifying a failure
5047  *     code in the BTM response.
5048  *
5049  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
5050  *     trigger partial frequency scans. These frequencies are the ones learned
5051  *     or maintained by the driver based on the probability of finding the
5052  *     BSSIDs in the ESS for which the roaming is triggered.
5053  *
5054  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
5055  *     trigger the scan on all the valid frequencies to find better
5056  *     candidates to roam.
5057  */
5058 enum qca_roam_scan_scheme {
5059 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
5060 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
5061 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
5062 };
5063 
5064 /*
5065  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
5066  *
5067  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
5068  *	a bad packet error rates (PER).
5069  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
5070  *	based on beacon misses from the connected AP.
5071  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
5072  *	due to poor RSSI of the connected AP.
5073  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
5074  *	upon finding a BSSID with a better RSSI than the connected BSSID.
5075  *	Here the RSSI of the current BSSID need not be poor.
5076  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
5077  *	by triggering a periodic scan to find a better AP to roam.
5078  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
5079  *	when the connected channel environment is too noisy/congested.
5080  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
5081  *	when BTM Request frame is received from the connected AP.
5082  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
5083  *	when the channel utilization is goes above the configured threshold.
5084  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
5085  *	based on the request from the user (space).
5086  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
5087  *	device receives Deauthentication/Disassociation frame from connected AP.
5088  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
5089  *	device is in idle state (no TX/RX) and suspend mode, if the current RSSI
5090  *	is determined to be a poor one.
5091  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
5092  *	based on continuous TX Data frame failures to the connected AP.
5093  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
5094  *	based on the scan results obtained from an external scan (not triggered
5095  *	to aim roaming).
5096  *
5097  * Set the corresponding roam trigger reason bit to consider it for roam
5098  * trigger.
5099  * Userspace can set multiple bits and send to the driver. The driver shall
5100  * consider all of them to trigger/initiate a roam scan.
5101  */
5102 enum qca_vendor_roam_triggers {
5103 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
5104 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
5105 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
5106 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
5107 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
5108 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
5109 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
5110 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
5111 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
5112 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
5113 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
5114 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
5115 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
5116 };
5117 
5118 /*
5119  * enum qca_vendor_roam_fail_reasons: Defines the various roam
5120  * fail reasons. This enum value is used in
5121  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
5122  *
5123  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
5124  * able to trigger the scan.
5125  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
5126  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
5127  * scan.
5128  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
5129  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
5130  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
5131  * status code.
5132  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
5133  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
5134  * frame.
5135  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
5136  * with error status code.
5137  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
5138  * received.
5139  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
5140  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
5141  * frame.
5142  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
5143  * internally before transmission.
5144  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
5145  * Request frame.
5146  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
5147  * dropped internally.
5148  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
5149  * times out.
5150  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
5151  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
5152  * internally.
5153  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
5154  * M2 frame.
5155  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
5156  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
5157  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
5158  * internally.
5159  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
5160  * frame.
5161  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
5162  * started for final beacon miss case.
5163  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
5164  * received from the AP during roaming handoff.
5165  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
5166  * or host is suspended and gives the indication of the last roamed AP only
5167  * when the Apps is resumed. If the Apps is resumed while the roaming is in
5168  * progress, this ongoing roaming is aborted and the last roamed AP is
5169  * indicated to host.
5170  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
5171  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
5172  * out.
5173  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
5174  * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
5175  * current network conditions are fine.
5176  */
5177 enum qca_vendor_roam_fail_reasons {
5178 	QCA_ROAM_FAIL_REASON_NONE = 0,
5179 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
5180 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
5181 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
5182 	QCA_ROAM_FAIL_REASON_HOST = 4,
5183 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
5184 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
5185 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
5186 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
5187 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
5188 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
5189 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
5190 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
5191 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
5192 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
5193 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
5194 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
5195 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
5196 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
5197 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
5198 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
5199 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
5200 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
5201 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
5202 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
5203 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
5204 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
5205 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
5206 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
5207 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
5208 	QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
5209 };
5210 
5211 /*
5212  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
5213  * invoke fail reasons. This enum value is used in
5214  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
5215  *
5216  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
5217  * in roam invoke command.
5218  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
5219  * enabled.
5220  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
5221  * length is invalid.
5222  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
5223  * in progress.
5224  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
5225  * of the AP in the roam invoke command to firmware. This reason is sent by the
5226  * firmware when the given AP is configured to be ignored or SSID/security
5227  * does not match.
5228  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
5229  * firmware internal reasons.
5230  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
5231  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
5232  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
5233  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
5234  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
5235  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
5236  */
5237 enum qca_vendor_roam_invoke_fail_reasons {
5238 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
5239 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
5240 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
5241 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
5242 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
5243 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
5244 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
5245 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
5246 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
5247 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
5248 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
5249 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
5250 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
5251 
5252 };
5253 
5254 /**
5255  * enum qca_vendor_attr_roam_candidate_selection_criteria:
5256  *
5257  * Each attribute carries a weightage in percentage (%).
5258  *
5259  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
5260  *	Represents the weightage to be given for the RSSI selection
5261  *	criteria among other parameters.
5262  *
5263  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
5264  *	Represents the weightage to be given for the rate selection
5265  *	criteria among other parameters.
5266  *
5267  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
5268  *	Represents the weightage to be given for the band width selection
5269  *	criteria among other parameters.
5270  *
5271  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
5272  *	Represents the weightage to be given for the band selection
5273  *	criteria among other parameters.
5274  *
5275  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
5276  *	Represents the weightage to be given for the NSS selection
5277  *	criteria among other parameters.
5278  *
5279  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
5280  *	Represents the weightage to be given for the channel congestion
5281  *	selection criteria among other parameters.
5282  *
5283  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
5284  *	Represents the weightage to be given for the beamforming selection
5285  *	criteria among other parameters.
5286  *
5287  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
5288  *	Represents the weightage to be given for the OCE selection
5289  *	criteria among other parameters.
5290  */
5291 enum qca_vendor_attr_roam_candidate_selection_criteria {
5292 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
5293 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
5294 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
5295 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
5296 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
5297 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
5298 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
5299 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
5300 
5301 	/* keep last */
5302 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
5303 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
5304 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
5305 };
5306 
5307 /**
5308  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
5309  *	The following attributes are used to set/get/clear the respective
5310  *	configurations to/from the driver.
5311  *	For the get, the attribute for the configuration to be queried shall
5312  *	carry any of its acceptable values to the driver. In return, the driver
5313  *	shall send the configured values within the same attribute to the user
5314  *	space.
5315  *
5316  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
5317  *	Signifies to enable/disable roam control in driver.
5318  *	1-enable, 0-disable
5319  *	Enable: Mandates the driver to do the further roams using the
5320  *	configuration parameters set through
5321  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
5322  *	Disable: Disables the driver/firmware roaming triggered through
5323  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
5324  *	expected to continue with the default configurations.
5325  *
5326  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
5327  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
5328  *	Roam control status is obtained through this attribute.
5329  *
5330  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
5331  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
5332  *	is to be cleared in the driver.
5333  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
5334  *	and shall be ignored if used with other sub commands.
5335  *	If this attribute is specified along with subcmd
5336  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
5337  *	all other attributes, if there are any.
5338  *	If this attribute is not specified when the subcmd
5339  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
5340  *	clear the data corresponding to the attributes specified.
5341  *
5342  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
5343  *	list of frequencies and its type, represented by
5344  *	enum qca_vendor_attr_scan_freq_list_scheme.
5345  *	Frequency list and its type are mandatory for this attribute to set
5346  *	the frequencies.
5347  *	Frequency type is mandatory for this attribute to get the frequencies
5348  *	and the frequency list is obtained through
5349  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
5350  *	Frequency list type is mandatory for this attribute to clear the
5351  *	frequencies.
5352  *
5353  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
5354  *	Carries the value of scan period in seconds to set.
5355  *	The value of scan period is obtained with the same attribute for get.
5356  *	Clears the scan period in the driver when specified with clear command.
5357  *	Scan period is the idle time in seconds between each subsequent
5358  *	channel scans.
5359  *
5360  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
5361  *	Carries the value of full scan period in seconds to set.
5362  *	The value of full scan period is obtained with the same attribute for
5363  *	get.
5364  *	Clears the full scan period in the driver when specified with clear
5365  *	command. Full scan period is the idle period in seconds between two
5366  *	successive full channel roam scans.
5367  *
5368  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
5369  *	Carries a bitmap of the roam triggers specified in
5370  *	enum qca_vendor_roam_triggers.
5371  *	The driver shall enable roaming by enabling corresponding roam triggers
5372  *	based on the trigger bits sent with this attribute.
5373  *	If this attribute is not configured, the driver shall proceed with
5374  *	default behavior.
5375  *	The bitmap configured is obtained with the same attribute for get.
5376  *	Clears the bitmap configured in driver when specified with clear
5377  *	command.
5378  *
5379  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
5380  *	weightage in percentage (%) to be given for each selection criteria.
5381  *	Different roam candidate selection criteria are represented by
5382  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
5383  *	The driver shall select the roam candidate based on corresponding
5384  *	candidate selection scores sent.
5385  *
5386  *	An empty nested attribute is used to indicate that no specific
5387  *	preference score/criteria is configured (i.e., to disable this mechanism
5388  *	in the set case and to show that the mechanism is disabled in the get
5389  *	case).
5390  *
5391  *	Userspace can send multiple attributes out of this enum to the driver.
5392  *	Since this attribute represents the weight/percentage of preference for
5393  *	the respective selection criteria, it is preferred to configure 100%
5394  *	total weightage. The value in each attribute or cumulative weight of the
5395  *	values in all the nested attributes should not exceed 100%. The driver
5396  *	shall reject such configuration.
5397  *
5398  *	If the weights configured through this attribute are less than 100%,
5399  *	the driver shall honor the weights (x%) passed for the corresponding
5400  *	selection criteria and choose/distribute rest of the weight (100-x)%
5401  *	for the other selection criteria, based on its internal logic.
5402  *
5403  *	The selection criteria configured is obtained with the same
5404  *	attribute for get.
5405  *
5406  *	Clears the selection criteria configured in the driver when specified
5407  *	with clear command.
5408  *
5409  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
5410  *	Represents value of the scan frequency scheme from enum
5411  *	qca_roam_scan_scheme.
5412  *	It's an optional attribute. If this attribute is not configured, the
5413  *	driver shall proceed with default behavior.
5414  *
5415  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5416  *	signifying the RSSI threshold of the current connected AP, indicating
5417  *	the driver to trigger roam only when the current connected AP's RSSI
5418  *	is less than this threshold.
5419  *
5420  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
5421  *	signifying the RSSI threshold of the candidate AP, indicating
5422  *	the driver to trigger roam only to the candidate AP with RSSI
5423  *	better than this threshold. If RSSI thresholds for candidate APs found
5424  *	in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
5425  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
5426  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
5427  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
5428  *	take precedence over the value configured using the
5429  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
5430  *
5431  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
5432  *	user defined reason code to be sent to the AP in response to AP's
5433  *	request to trigger the roam if the roaming cannot be triggered.
5434  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
5435  *
5436  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
5437  *	Carries a bitmap of the roam triggers specified in
5438  *	enum qca_vendor_roam_triggers.
5439  *	Represents the roam triggers for which the specific scan scheme from
5440  *	enum qca_roam_scan_scheme has to be applied.
5441  *	It's an optional attribute. If this attribute is not configured, but
5442  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
5443  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
5444  *	all the roams.
5445  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
5446  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
5447  *	driver shall proceed with the default behavior.
5448  *
5449  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
5450  *	in dBm, signifying the RSSI threshold of the candidate AP found in the
5451  *	2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
5452  *	AP found in the 2.4 GHz band only if its RSSI value is better than this
5453  *	threshold. Optional attribute. If this attribute is not included, the
5454  *	threshold value specified by the
5455  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5456  *
5457  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
5458  *	dBm, signifying the RSSI threshold of the candidate AP found in the 5
5459  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
5460  *	found in the 5 GHz band only if its RSSI value is better than this
5461  *	threshold. Optional attribute. If this attribute is not included, the
5462  *	threshold value specified by tge
5463  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5464  *
5465  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
5466  *	dBm, signifying the RSSI threshold of the candidate AP found in the 6
5467  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
5468  *	found in the 6 GHz band only if its RSSI value is better than this
5469  *	threshold. Optional attribute. If this attribute is not included, the
5470  *	threshold value specified by the
5471  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
5472  *
5473  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
5474  *	Carries bitmask value of bits from &enum qca_set_band and represents
5475  *	all the bands in which roaming is allowed. The configuration is valid
5476  *	until next disconnection. If this attribute is not present, the
5477  *	existing configuration shall be used. By default, roaming is allowed on
5478  *	all bands supported by the local device. When the value is set to
5479  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
5480  *
5481  * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
5482  *	Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
5483  *	bands. If this attribute is not configured, the driver shall proceed
5484  *	with default behavior.
5485  *
5486  * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
5487  *	Optional parameter. Scan dwell time for passive channels in the 5 GHz
5488  *	band. If this attribute is not configured, the driver shall proceed with
5489  *	default behavior.
5490  *
5491  * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
5492  *	Optional parameter. The minimum duration to stay on the connected AP
5493  *	channel during the channel scanning. If this attribute is not
5494  *	configured, the driver shall proceed with default behavior.
5495  *
5496  * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
5497  *	Optional parameter. The maximum duration for which the radio can scan
5498  *	foreign channels consecutively without coming back to home channel. If
5499  *	this attribute is not configured, the driver shall proceed with default
5500  *	behavior.
5501  *
5502  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
5503  *	Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
5504  *	If this attribute is not configured, the driver shall proceed with
5505  *	default behavior.
5506  *
5507  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
5508  *	Optional parameter. Scan dwell time for 6G Non Preferred Scanning
5509  *	Channels. If this attribute is not configured, the driver shall proceed
5510  *	with default behavior.
5511  *
5512  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
5513  *	Optional parameter. RX link speed threshold to disable roaming.
5514  *	If the current RX link speed is above the threshold, roaming is not
5515  *	needed. If this attribute is not configured, or if it is set to 0, the
5516  *	driver will not consider the RX link speed in the roaming decision.
5517  *
5518  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
5519  *	Optional parameter. This configuration delays hand-off by the
5520  *	specified duration to receive pending RX frames from the current BSS.
5521  *
5522  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
5523  *	value.
5524  *	During the roam scan, if there are no desired APs found in the partial
5525  *	frequency list, an immediate full scan on all the supported frequencies
5526  *	is initiated as a fallback. This flag controls the frequency list
5527  *	creation for the full scan on the following lines.
5528  *	1 - Full scan to exclude the frequencies that were already scanned by
5529  *	    the previous partial scan.
5530  *	0 - Full scan to include all the supported frequencies irrespective of
5531  *	    the ones part of the earlier partial scan.
5532  *	If this flag is not specified, a full scan shall include all the
5533  *	supported frequencies irrespective of the ones part of an earlier
5534  *	partial scan.
5535  *
5536  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
5537  *	value.
5538  *	During the roam scan, if there are no desired APs found in the partial
5539  *	frequency list, an immediate full scan on all the supported frequencies
5540  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
5541  *	frequencies, including all PSC frequencies by default. This attribute
5542  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
5543  *	as following.
5544  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
5545  *	   prior discovery of any 6 GHz frequency support in the environment.
5546  *	   This discovery can happen through a prior RNR, 11k neighbor
5547  *	request, 11v BTM request, host scan, etc.
5548  *	0 - Default behavior. Full scan to include all the supported 6 GHz
5549  *	   PSC frequencies regardless of whether 6 GHz BSSs have been
5550  *	   discovered.
5551  *	The default behavior if this flag is not specified is to include all
5552  *	the supported 6 GHz PSC frequencies in the roam full scan.
5553  */
5554 enum qca_vendor_attr_roam_control {
5555 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
5556 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
5557 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
5558 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
5559 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
5560 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
5561 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
5562 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
5563 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
5564 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
5565 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
5566 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
5567 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
5568 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
5569 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
5570 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
5571 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
5572 	QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
5573 	QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
5574 	QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
5575 	QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
5576 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
5577 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
5578 	QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
5579 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
5580 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
5581 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
5582 
5583 	/* keep last */
5584 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
5585 	QCA_ATTR_ROAM_CONTROL_MAX =
5586 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
5587 };
5588 
5589 /*
5590  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
5591  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
5592  *
5593  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
5594  *	Represents the different roam sub commands referred by
5595  *	enum qca_wlan_vendor_roaming_subcmd.
5596  *
5597  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
5598  *	Represents the Request ID for the specific set of commands.
5599  *	This also helps to map specific set of commands to the respective
5600  *	ID / client. e.g., helps to identify the user entity configuring the
5601  *	ignored BSSIDs and accordingly clear the respective ones with the
5602  *	matching ID.
5603  *
5604  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
5605  *	32-bit value. Represents the number of allowlist SSIDs configured.
5606  *
5607  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
5608  *	to carry the list of allowlist SSIDs.
5609  *
5610  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
5611  *	0..32 octets). Represents the allow list SSID. Allowlist SSIDs
5612  *	represent the list of SSIDs to which the firmware/driver can consider
5613  *	to roam to.
5614  *
5615  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
5616  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
5617  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
5618  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
5619  *
5620  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
5621  *	value, RSSI threshold above which 5GHz RSSI is favored.
5622  *
5623  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
5624  *	value, RSSI threshold below which 5GHz RSSI is penalized.
5625  *
5626  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
5627  *	value, factor by which 5GHz RSSI is boosted.
5628  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
5629  *
5630  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
5631  *	value, factor by which 5GHz RSSI is penalized.
5632  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
5633  *
5634  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
5635  *	value, maximum boost that can be applied to a 5GHz RSSI.
5636  *
5637  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
5638  *	value, boost applied to current BSSID to ensure the currently
5639  *	associated BSSID is favored so as to prevent ping-pong situations.
5640  *
5641  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
5642  *	value, RSSI below which "Alert" roam is enabled.
5643  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
5644  *	because the RSSI is low, or because many successive beacons have been
5645  *	lost or other bad link conditions.
5646  *
5647  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
5648  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
5649  *	firmware is hunting for a better BSSID or allow listed SSID even though
5650  *	the RSSI of the link is good. The parameters enabling the roaming are
5651  *	configured through the PARAM_A_BAND_XX attrbutes.
5652  *
5653  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
5654  *	represents the BSSIDs preferred over others while evaluating them
5655  *	for the roaming.
5656  *
5657  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
5658  *	32-bit value. Represents the number of preferred BSSIDs set.
5659  *
5660  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
5661  *	address representing the BSSID to be preferred.
5662  *
5663  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
5664  *	32-bit value, representing the modifier to be applied to the RSSI of
5665  *	the BSSID for the purpose of comparing it with other roam candidate.
5666  *
5667  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
5668  *	represents the BSSIDs to get ignored for roaming.
5669  *
5670  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
5671  *	32-bit value, represents the number of ignored BSSIDs.
5672  *
5673  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
5674  *	address representing the ignored BSSID.
5675  *
5676  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
5677  *	indicates this request to ignore the BSSID as a hint to the driver. The
5678  *	driver can select this BSSID in the worst case (when no other BSSIDs are
5679  *	better).
5680  *
5681  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
5682  *	set/get/clear the roam control config as
5683  *	defined @enum qca_vendor_attr_roam_control.
5684  */
5685 enum qca_wlan_vendor_attr_roaming_config_params {
5686 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
5687 
5688 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
5689 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
5690 
5691 	/* Attributes for wifi_set_ssid_allow_list */
5692 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
5693 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
5694 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
5695 
5696 	/* Attributes for set_roam_params */
5697 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
5698 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
5699 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
5700 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
5701 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
5702 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
5703 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
5704 
5705 	/* Attribute for set_lazy_roam */
5706 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
5707 
5708 	/* Attribute for set_lazy_roam with preferences */
5709 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
5710 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
5711 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
5712 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
5713 
5714 	/* Attribute for setting ignored BSSID parameters */
5715 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
5716 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
5717 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
5718 	/* Flag attribute indicates this entry as a hint */
5719 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
5720 
5721 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
5722 
5723 	/* keep last */
5724 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
5725 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
5726 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
5727 };
5728 
5729 /* old names for API compatibility */
5730 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
5731 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
5732 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
5733 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
5734 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
5735 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5736 
5737 /*
5738  * enum qca_wlan_vendor_roaming_subcmd: Referred by
5739  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
5740  *
5741  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
5742  *	configure the allow list SSIDs. These are configured through
5743  *	the following attributes.
5744  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
5745  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
5746  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
5747  *
5748  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
5749  *	configure the Roam params. These parameters are evaluated on the GScan
5750  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
5751  *	params.
5752  *
5753  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
5754  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
5755  *	to enable/disable Lazy roam.
5756  *
5757  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
5758  *	preference. Contains the attribute
5759  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
5760  *	preference.
5761  *
5762  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
5763  *	to ignore in roaming decision. Uses
5764  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
5765  *
5766  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
5767  *	roam control config to the driver with the attribute
5768  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5769  *
5770  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
5771  *	roam control config from driver with the attribute
5772  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5773  *	For the get, the attribute for the configuration to be queried shall
5774  *	carry any of its acceptable value to the driver. In return, the driver
5775  *	shall send the configured values within the same attribute to the user
5776  *	space.
5777  *
5778  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
5779  *	roam control config in the driver with the attribute
5780  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
5781  *	The driver shall continue with its default roaming behavior when data
5782  *	corresponding to an attribute is cleared.
5783  */
5784 enum qca_wlan_vendor_roaming_subcmd {
5785 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
5786 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
5787 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
5788 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
5789 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
5790 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
5791 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
5792 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
5793 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
5794 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
5795 };
5796 
5797 /* old names for API compatibility */
5798 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
5799 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
5800 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
5801 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
5802 
5803 enum qca_wlan_vendor_attr_gscan_config_params {
5804 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
5805 
5806 	/* Unsigned 32-bit value */
5807 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
5808 
5809 	/* Attributes for data used by
5810 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
5811 	 */
5812 	/* Unsigned 32-bit value */
5813 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
5814 	= 2,
5815 	/* Unsigned 32-bit value */
5816 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
5817 	= 3,
5818 
5819 	/* Attributes for input params used by
5820 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
5821 	 */
5822 
5823 	/* Unsigned 32-bit value; channel frequency */
5824 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
5825 	/* Unsigned 32-bit value; dwell time in ms. */
5826 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
5827 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
5828 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
5829 	/* Unsigned 8-bit value; channel class */
5830 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
5831 
5832 	/* Unsigned 8-bit value; bucket index, 0 based */
5833 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
5834 	/* Unsigned 8-bit value; band. */
5835 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
5836 	/* Unsigned 32-bit value; desired period, in ms. */
5837 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
5838 	/* Unsigned 8-bit value; report events semantics. */
5839 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
5840 	/* Unsigned 32-bit value. Followed by a nested array of
5841 	 * GSCAN_CHANNEL_SPEC_* attributes.
5842 	 */
5843 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
5844 
5845 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
5846 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5847 	 */
5848 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
5849 
5850 	/* Unsigned 32-bit value; base timer period in ms. */
5851 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
5852 	/* Unsigned 32-bit value; number of APs to store in each scan in the
5853 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
5854 	 */
5855 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
5856 	/* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
5857 	 * up AP.
5858 	 */
5859 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
5860 	= 16,
5861 
5862 	/* Unsigned 8-bit value; number of scan bucket specs; followed by a
5863 	 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
5864 	 * of the array is determined by NUM_BUCKETS.
5865 	 */
5866 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
5867 
5868 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
5869 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
5870 	 */
5871 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
5872 
5873 	/* Unsigned 8-bit value */
5874 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
5875 	= 19,
5876 	/* Unsigned 32-bit value; maximum number of results to be returned. */
5877 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
5878 	= 20,
5879 
5880 	/* An array of 6 x unsigned 8-bit value */
5881 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
5882 	/* Signed 32-bit value */
5883 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
5884 	/* Signed 32-bit value */
5885 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
5886 	/* Unsigned 32-bit value */
5887 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
5888 
5889 	/* Number of hotlist APs as unsigned 32-bit value, followed by a nested
5890 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
5891 	 * array is determined by NUM_AP.
5892 	 */
5893 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
5894 
5895 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
5896 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
5897 	 */
5898 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
5899 
5900 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
5901 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
5902 	= 27,
5903 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
5904 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
5905 	= 28,
5906 	/* Unsigned 32-bit value; number of APs breaching threshold. */
5907 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
5908 	/* Unsigned 32-bit value; number of APs. Followed by an array of
5909 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
5910 	 */
5911 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
5912 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
5913 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
5914 	= 31,
5915 	/* Unsigned 32-bit value. If max_period is non zero or different than
5916 	 * period, then this bucket is an exponential backoff bucket.
5917 	 */
5918 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5919 	/* Unsigned 32-bit value. */
5920 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5921 	/* Unsigned 32-bit value. For exponential back off bucket, number of
5922 	 * scans to perform for a given period.
5923 	 */
5924 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5925 	/* Unsigned 8-bit value; in number of scans, wake up AP after these
5926 	 * many scans.
5927 	 */
5928 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5929 	= 35,
5930 
5931 	/* Attributes for data used by
5932 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5933 	 */
5934 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5935 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5936 	= 36,
5937 	/* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5938 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5939 	 * size of the array is determined by NUM_SSID.
5940 	 */
5941 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5942 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5943 	 * attributes.
5944 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5945 	 */
5946 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5947 
5948 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5949 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5950 	/* Unsigned 8-bit value */
5951 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5952 	/* Signed 32-bit value */
5953 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5954 	/* Signed 32-bit value */
5955 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5956 	/* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5957 	 */
5958 	QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5959 
5960 	/* keep last */
5961 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5962 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5963 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5964 };
5965 
5966 enum qca_wlan_vendor_attr_gscan_results {
5967 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5968 
5969 	/* Unsigned 32-bit value; must match the request Id supplied by
5970 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
5971 	 */
5972 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5973 
5974 	/* Unsigned 32-bit value; used to indicate the status response from
5975 	 * firmware/driver for the vendor sub-command.
5976 	 */
5977 	QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5978 
5979 	/* GSCAN Valid Channels attributes */
5980 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5981 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5982 	/* An array of NUM_CHANNELS x unsigned 32-bit value integers
5983 	 * representing channel numbers.
5984 	 */
5985 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5986 
5987 	/* GSCAN Capabilities attributes */
5988 	/* Unsigned 32-bit value */
5989 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5990 	/* Unsigned 32-bit value */
5991 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5992 	/* Unsigned 32-bit value */
5993 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5994 	= 7,
5995 	/* Unsigned 32-bit value */
5996 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5997 	= 8,
5998 	/* Signed 32-bit value */
5999 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
6000 	= 9,
6001 	/* Unsigned 32-bit value */
6002 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
6003 	/* Unsigned 32-bit value */
6004 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
6005 	= 11,
6006 	/* Unsigned 32-bit value */
6007 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
6008 	= 12,
6009 
6010 	/* GSCAN Attributes used with
6011 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
6012 	 */
6013 
6014 	/* Unsigned 32-bit value */
6015 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
6016 
6017 	/* GSCAN attributes used with
6018 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
6019 	 */
6020 
6021 	/* An array of NUM_RESULTS_AVAILABLE x
6022 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
6023 	 */
6024 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
6025 
6026 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
6027 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
6028 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
6029 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
6030 	/* An array of 6 x unsigned 8-bit value */
6031 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
6032 	/* Unsigned 32-bit value; channel frequency in MHz */
6033 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
6034 	/* Signed 32-bit value */
6035 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
6036 	/* Unsigned 32-bit value */
6037 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
6038 	/* Unsigned 32-bit value */
6039 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
6040 	/* Unsigned 16-bit value */
6041 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
6042 	/* Unsigned 16-bit value */
6043 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
6044 	/* Unsigned 32-bit value; size of the IE DATA blob */
6045 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
6046 	/* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
6047 	 * information elements found in the beacon; this data should be a
6048 	 * packed list of wifi_information_element objects, one after the
6049 	 * other.
6050 	 */
6051 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
6052 
6053 	/* Unsigned 8-bit value; set by driver to indicate more scan results are
6054 	 * available.
6055 	 */
6056 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
6057 
6058 	/* GSCAN attributes for
6059 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
6060 	 */
6061 	/* Unsigned 8-bit value */
6062 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
6063 	/* Unsigned 32-bit value */
6064 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
6065 
6066 	/* GSCAN attributes for
6067 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
6068 	 */
6069 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6070 	 * to indicate number of results.
6071 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6072 	 * list of results.
6073 	 */
6074 
6075 	/* GSCAN attributes for
6076 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
6077 	 */
6078 	/* An array of 6 x unsigned 8-bit value */
6079 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
6080 	/* Unsigned 32-bit value */
6081 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
6082 	= 30,
6083 	/* Unsigned 32-bit value. */
6084 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
6085 	= 31,
6086 	/* A nested array of signed 32-bit RSSI values. Size of the array is
6087 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
6088 	 */
6089 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
6090 	= 32,
6091 
6092 	/* GSCAN attributes used with
6093 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
6094 	 */
6095 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6096 	 * to indicate number of gscan cached results returned.
6097 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
6098 	 *  the list of gscan cached results.
6099 	 */
6100 
6101 	/* An array of NUM_RESULTS_AVAILABLE x
6102 	 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
6103 	 */
6104 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
6105 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
6106 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
6107 	/* Unsigned 32-bit value; a bitmask w/additional information about scan.
6108 	 */
6109 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
6110 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
6111 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
6112 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
6113 	 * list of wifi scan results returned for each cached result block.
6114 	 */
6115 
6116 	/* GSCAN attributes for
6117 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
6118 	 */
6119 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
6120 	 * number of results.
6121 	 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6122 	 * list of wifi scan results returned for each
6123 	 * wifi_passpoint_match_result block.
6124 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
6125 	 */
6126 
6127 	/* GSCAN attributes for
6128 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
6129 	 */
6130 	/* Unsigned 32-bit value */
6131 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
6132 	= 36,
6133 	/* A nested array of
6134 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
6135 	 * attributes. Array size =
6136 	 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
6137 	 */
6138 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
6139 
6140 	/* Unsigned 32-bit value; network block id for the matched network */
6141 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
6142 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
6143 	 * list of wifi scan results returned for each
6144 	 * wifi_passpoint_match_result block.
6145 	 */
6146 	/* Unsigned 32-bit value */
6147 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
6148 	/* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
6149 	 * ANQP data in the information_element format.
6150 	 */
6151 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
6152 
6153 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6154 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
6155 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6156 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
6157 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6158 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
6159 	= 43,
6160 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
6161 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
6162 	= 44,
6163 
6164 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
6165 
6166 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute.
6167 	 * This is used to limit the maximum number of BSSIDs while sending
6168 	 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
6169 	 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
6170 	 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
6171 	 */
6172 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
6173 
6174 	/* Attribute used for padding for 64-bit alignment */
6175 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
6176 
6177 	/* keep last */
6178 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
6179 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
6180 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
6181 };
6182 
6183 /* old names for API compatibility */
6184 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
6185 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
6186 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
6187 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
6188 
6189 enum qca_wlan_vendor_attr_pno_config_params {
6190 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
6191 	/* Attributes for data used by
6192 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
6193 	 */
6194 	/* Unsigned 32-bit value */
6195 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
6196 	/* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
6197 	 * attributes. Array size =
6198 	 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
6199 	 */
6200 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
6201 
6202 	/* Unsigned 32-bit value */
6203 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
6204 	/* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
6205 	 * realm, 0 if unspecified.
6206 	 */
6207 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
6208 	/* An array of 16 x unsigned 32-bit value; roaming consortium ids to
6209 	 * match, 0 if unspecified.
6210 	 */
6211 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
6212 	/* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
6213 	 * unspecified.
6214 	 */
6215 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
6216 
6217 	/* Attributes for data used by
6218 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
6219 	 */
6220 	/* Unsigned 32-bit value */
6221 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
6222 	/* Array of nested
6223 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
6224 	 * attributes. Array size =
6225 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
6226 	 */
6227 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
6228 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
6229 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
6230 	/* Signed 8-bit value; threshold for considering this SSID as found,
6231 	 * required granularity for this threshold is 4 dBm to 8 dBm.
6232 	 */
6233 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
6234 	= 10,
6235 	/* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
6236 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
6237 	/* Unsigned 8-bit value; auth bit field for matching WPA IE */
6238 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
6239 	/* Unsigned 8-bit to indicate ePNO type;
6240 	 * It takes values from qca_wlan_epno_type
6241 	 */
6242 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
6243 
6244 	/* Nested attribute to send the channel list */
6245 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
6246 
6247 	/* Unsigned 32-bit value; indicates the interval between PNO scan
6248 	 * cycles in msec.
6249 	 */
6250 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
6251 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
6252 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
6253 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
6254 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
6255 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
6256 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
6257 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
6258 	/* Unsigned 32-bit value, representing the PNO Request ID */
6259 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
6260 
6261 	/* keep last */
6262 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
6263 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
6264 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
6265 };
6266 
6267 /**
6268  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
6269  * the ACS has to be triggered. These values are used by
6270  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
6271  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
6272  */
6273 enum qca_wlan_vendor_acs_select_reason {
6274 	/* Represents the reason that the ACS triggered during the AP start */
6275 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
6276 	/* Represents the reason that DFS found with the current channel */
6277 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
6278 	/* Represents the reason that LTE co-exist in the current band. */
6279 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
6280 	/* Represents the reason that generic, uncategorized interference has
6281 	 * been found in the current channel.
6282 	 */
6283 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6284 	/* Represents the reason that excessive 802.11 interference has been
6285 	 * found in the current channel.
6286 	 */
6287 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6288 	/* Represents the reason that generic Continuous Wave (CW) interference
6289 	 * has been found in the current channel.
6290 	 */
6291 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6292 	/* Represents the reason that Microwave Oven (MWO) interference has been
6293 	 * found in the current channel.
6294 	 */
6295 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6296 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
6297 	 * (FHSS) interference has been found in the current channel. This may
6298 	 * include 802.11 waveforms.
6299 	 */
6300 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6301 	/* Represents the reason that non-802.11 generic Frequency-Hopping
6302 	 * Spread Spectrum (FHSS) interference has been found in the current
6303 	 * channel.
6304 	 */
6305 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6306 	/* Represents the reason that generic Wideband (WB) interference has
6307 	 * been found in the current channel. This may include 802.11 waveforms.
6308 	 */
6309 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6310 	/* Represents the reason that non-802.11 generic Wideband (WB)
6311 	 * interference has been found in the current channel.
6312 	 */
6313 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6314 	/* Represents the reason that Jammer interference has been found in the
6315 	 * current channel.
6316 	 */
6317 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
6318 	/* Represents the reason that ACS triggered by AFC */
6319 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
6320 };
6321 
6322 /**
6323  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6324  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6325  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6326  * external ACS policies to select the channels w.r.t. the PCL weights.
6327  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6328  * their PCL weights.)
6329  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6330  * select a channel with non-zero PCL weight.
6331  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6332  * channel with non-zero PCL weight.
6333  *
6334  */
6335 enum qca_wlan_vendor_attr_external_acs_policy {
6336 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6337 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6338 };
6339 
6340 /**
6341  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
6342  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
6343  */
6344 enum qca_wlan_vendor_channel_prop_flags {
6345 	/* Bits 0, 1, 2, and 3 are reserved */
6346 
6347 	/* Turbo channel */
6348 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
6349 	/* CCK channel */
6350 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
6351 	/* OFDM channel */
6352 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
6353 	/* 2.4 GHz spectrum channel. */
6354 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
6355 	/* 5 GHz spectrum channel */
6356 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
6357 	/* Only passive scan allowed */
6358 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
6359 	/* Dynamic CCK-OFDM channel */
6360 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
6361 	/* GFSK channel (FHSS PHY) */
6362 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
6363 	/* Radar found on channel */
6364 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
6365 	/* 11a static turbo channel only */
6366 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
6367 	/* Half rate channel */
6368 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
6369 	/* Quarter rate channel */
6370 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
6371 	/* HT 20 channel */
6372 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
6373 	/* HT 40 with extension channel above */
6374 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
6375 	/* HT 40 with extension channel below */
6376 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
6377 	/* HT 40 intolerant */
6378 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
6379 	/* VHT 20 channel */
6380 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
6381 	/* VHT 40 with extension channel above */
6382 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
6383 	/* VHT 40 with extension channel below */
6384 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
6385 	/* VHT 80 channel */
6386 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
6387 	/* HT 40 intolerant mark bit for ACS use */
6388 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
6389 	/* Channel temporarily blocked due to noise */
6390 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
6391 	/* VHT 160 channel */
6392 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
6393 	/* VHT 80+80 channel */
6394 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
6395 	/* HE 20 channel */
6396 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
6397 	/* HE 40 with extension channel above */
6398 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
6399 	/* HE 40 with extension channel below */
6400 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
6401 	/* HE 40 intolerant */
6402 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
6403 };
6404 
6405 /**
6406  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
6407  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
6408  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
6409  */
6410 enum qca_wlan_vendor_channel_prop_flags_2 {
6411 	/* HE 40 intolerant mark bit for ACS use */
6412 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
6413 	/* HE 80 channel */
6414 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
6415 	/* HE 160 channel */
6416 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
6417 	/* HE 80+80 channel */
6418 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
6419 };
6420 
6421 /**
6422  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
6423  * each channel. This is used by
6424  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
6425  */
6426 enum qca_wlan_vendor_channel_prop_flags_ext {
6427 	/* Radar found on channel */
6428 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
6429 	/* DFS required on channel */
6430 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
6431 	/* DFS required on channel for 2nd band of 80+80 */
6432 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
6433 	/* If channel has been checked for DFS */
6434 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
6435 	/* Excluded in 802.11d */
6436 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
6437 	/* Channel Switch Announcement received on this channel */
6438 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
6439 	/* Ad-hoc is not allowed */
6440 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
6441 	/* Station only channel */
6442 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
6443 	/* DFS radar history for client device (STA mode) */
6444 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
6445 	/* DFS CAC valid for client device (STA mode) */
6446 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
6447 };
6448 
6449 /**
6450  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6451  * information. These attributes are sent as part of
6452  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6453  * attributes correspond to a single channel.
6454  */
6455 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6456 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6457 
6458 	/* A bitmask (u32) with flags specified in
6459 	 * enum qca_wlan_vendor_channel_prop_flags.
6460 	 */
6461 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6462 	/* A bitmask (u32) with flags specified in
6463 	 * enum qca_wlan_vendor_channel_prop_flags_ext.
6464 	 */
6465 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6466 	/* frequency in MHz (u32) */
6467 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6468 	/* maximum regulatory transmission power (u32) */
6469 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6470 	/* maximum transmission power (u32) */
6471 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6472 	/* minimum transmission power (u32) */
6473 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6474 	/* regulatory class id (u8) */
6475 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6476 	/* maximum antenna gain in (u8) */
6477 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6478 	/* VHT segment 0 (u8) */
6479 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6480 	/* VHT segment 1 (u8) */
6481 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
6482 	/* A bitmask (u32) with flags specified in
6483 	 * enum qca_wlan_vendor_channel_prop_flags_2.
6484 	 */
6485 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
6486 
6487 	/*
6488 	 * Segment 0 in MHz (u32).
6489 	 *
6490 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
6491 	 * frequency index for the 20/40/80 MHz operating channel.
6492 	 * For 160 MHz bandwidth, this indicates the channel center
6493 	 * frequency of the primary 80 MHz channel.
6494 	 * For 320 MHz bandwidth, indicates the channel center frequency
6495 	 * of the primary 160 MHz channel.
6496 	 *
6497 	 * To maintain backward compatibility,
6498 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6499 	 * is also maintained.
6500 	 */
6501 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6502 	/* Legacy alias for the Segment 0 attribute.
6503 	 *
6504 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6505 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6506 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6507 	 * along with
6508 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6509 	 *
6510 	 * If both the driver and user-space application supports the 6 GHz
6511 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6512 	 * is deprecated and
6513 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6514 	 * should be used.
6515 	 *
6516 	 * To maintain backward compatibility,
6517 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6518 	 * is still used if either of the driver or user space application
6519 	 * doesn't support the 6 GHz band.
6520 	 */
6521 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6522 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
6523 
6524 	/*
6525 	 * Segment 1 in MHz (u32).
6526 	 *
6527 	 * For 20/40/80 MHz bandwidth, this is set to 0.
6528 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
6529 	 * 160 MHz channel.
6530 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
6531 	 * 320 MHz channel.
6532 	 *
6533 	 * To maintain backward compatibility,
6534 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6535 	 * is also maintained.
6536 	 */
6537 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6538 	/* Legacy alias for the Segment 1 attribute.
6539 	 *
6540 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6541 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6542 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6543 	 * along with
6544 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6545 	 *
6546 	 * If both the driver and user-space application supports the 6 GHz
6547 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6548 	 * is deprecated and
6549 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6550 	 * should be considered.
6551 	 *
6552 	 * To maintain backward compatibility,
6553 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6554 	 * is still used if either of the driver or user space application
6555 	 * doesn't support the 6 GHz band.
6556 	 */
6557 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6558 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
6559 
6560 	/*
6561 	 * 16-bit attribute of bits indicating the AP power modes supported by
6562 	 * the channel (u16).
6563 	 * Note: Currently, only 3 bits are used in the attribute and each bit
6564 	 * corresponds to the power mode mentioned in enum
6565 	 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
6566 	 * set if the associated mode is supported.
6567 	 */
6568 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6569 									= 14,
6570 	/* Array of nested attributes for each power mode. It takes attr as
6571 	 * defined in enum
6572 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6573 	 */
6574 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
6575 	/*
6576 	 * This indicates the overlapping 320 MHz center frequency in MHz
6577 	 * (u32), if the given primary channel supports more than one
6578 	 * 320 MHz channel bonding.
6579 	 *
6580 	 * Example:
6581 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6582 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6583 	 * possible segment 2 frequencies for this (320 MHz center
6584 	 * frequencies):
6585 	 *
6586 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6587 	 *    from frequency 5945 MHz - 6265 MHz
6588 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6589 	 *    from frequency 6105 MHz - 6425 MHz
6590 	 *
6591 	 * In this case,
6592 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6593 	 * return 6185 MHz.
6594 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6595 	 * return 6105 MHz.
6596 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6597 	 * will return 6265 MHz.
6598 	 */
6599 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6600 									= 16,
6601 
6602 	/* keep last */
6603 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6604 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6605 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6606 };
6607 
6608 /**
6609  * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
6610  * values that the vendor external ACS channel power attribute
6611  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6612  * take.
6613  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6614  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6615  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6616  */
6617 enum qca_wlan_vendor_external_acs_chan_power_level {
6618 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6619 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6620 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6621 };
6622 
6623 /**
6624  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6625  * attributes for power mode type and power values corresponding to that.
6626  * These attributes are sent as part of
6627  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6628  */
6629 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6630 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6631 	/*
6632 	 * Power mode (u8) takes the values defined in enum
6633 	 * qca_wlan_vendor_external_acs_chan_power_mode
6634 	 */
6635 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6636 									= 1,
6637 	/*
6638 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6639 	 * present, it indicates a PSD value.
6640 	 */
6641 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6642 	/*
6643 	 * Power value (u32) PSD/EIRP as indicated by
6644 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6645 	 * for power mode corresponding to the
6646 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6647 	 * Units for PSD - dBm/MHz
6648 	 * Units for EIRP - dBm
6649 	 */
6650 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6651 									= 3,
6652 	/* keep last */
6653 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6654 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6655 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6656 };
6657 
6658 /**
6659  * qca_wlan_vendor_attr_pcl: Represents attributes for
6660  * preferred channel list (PCL). These attributes are sent as part of
6661  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6662  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
6663  */
6664 enum qca_wlan_vendor_attr_pcl {
6665 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6666 
6667 	/* Channel number (u8) */
6668 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6669 	/* Channel weightage (u8) */
6670 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
6671 	/* Channel frequency (u32) in MHz */
6672 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6673 	/* Channel flags (u32)
6674 	 * bit 0 set: channel to be used for GO role,
6675 	 * bit 1 set: channel to be used on CLI role,
6676 	 * bit 2 set: channel must be considered for operating channel
6677 	 *                 selection & peer chosen operating channel should be
6678 	 *                 one of the channels with this flag set,
6679 	 * bit 3 set: channel should be excluded in GO negotiation
6680 	 */
6681 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
6682 
6683 	/* Keep last */
6684 	QCA_WLAN_VENDOR_ATTR_PCL_LAST,
6685 	QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
6686 };
6687 
6688 /**
6689  * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
6690  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
6691  * host driver.
6692  */
6693 enum qca_wlan_vendor_attr_external_acs_event {
6694 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6695 
6696 	/* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
6697 	 * This helps ACS module to understand why ACS needs to be started.
6698 	 */
6699 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6700 	/* Flag attribute to indicate if driver supports spectral scanning */
6701 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6702 	/* Flag attribute to indicate if 11ac is offloaded to firmware */
6703 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6704 	/* Flag attribute to indicate if driver provides additional channel
6705 	 * capability as part of scan operation
6706 	 */
6707 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6708 	/* Flag attribute to indicate interface status is UP */
6709 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6710 	/* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
6711 	 * values.
6712 	 */
6713 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6714 	/* Channel width (u8). It takes one of enum nl80211_chan_width values.
6715 	 * This is the upper bound of channel width. ACS logic should try to get
6716 	 * a channel with the specified width and if not found, look for lower
6717 	 * values.
6718 	 */
6719 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6720 	/* This (u8) will hold values of one of enum nl80211_bands */
6721 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6722 	/* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
6723 	 * values
6724 	 */
6725 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6726 	/* Array of (u32) supported frequency list among which ACS should choose
6727 	 * best frequency.
6728 	 */
6729 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6730 	/* Preferred channel list by the driver which will have array of nested
6731 	 * values as per enum qca_wlan_vendor_attr_pcl attribute.
6732 	 */
6733 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6734 	/* Array of nested attribute for each channel. It takes attr as defined
6735 	 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
6736 	 */
6737 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
6738 	/* External ACS policy such as PCL mandatory, PCL preferred, etc.
6739 	 * It uses values defined in enum
6740 	 * qca_wlan_vendor_attr_external_acs_policy.
6741 	 */
6742 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
6743 	/* Reference RF Operating Parameter (RROP) availability information
6744 	 * (u16). It uses values defined in enum
6745 	 * qca_wlan_vendor_attr_rropavail_info.
6746 	 */
6747 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
6748 	/* Flag attribute to indicate if driver supports 6 GHz AFC trigger
6749 	 * for External ACS
6750 	 */
6751 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
6752 
6753 	/* keep last */
6754 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6755 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6756 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6757 };
6758 
6759 /**
6760  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6761  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6762  * in priority order as decided after ACS operation in userspace.
6763  *
6764  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6765  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6766  *
6767  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6768  * Array of nested values for each channel with following attributes:
6769  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6770  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6771  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6772  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6773  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6774  * Note: If both the driver and user-space application supports the 6 GHz band,
6775  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6776  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6777  * To maintain backward compatibility,
6778  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6779  * is still used if either of the driver or user space application doesn't
6780  * support the 6 GHz band.
6781  *
6782  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6783  * Primary channel number
6784  * Note: If both the driver and user-space application supports the 6 GHz band,
6785  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6786  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6787  * To maintain backward compatibility,
6788  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6789  * is still used if either of the driver or user space application doesn't
6790  * support the 6 GHz band.
6791  *
6792  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6793  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6794  * Note: If both the driver and user-space application supports the 6 GHz band,
6795  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6796  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6797  * To maintain backward compatibility,
6798  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6799  * is still used if either of the driver or user space application
6800  * doesn't support the 6 GHz band.
6801  *
6802  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6803  * VHT seg0 channel number
6804  * Note: If both the driver and user-space application supports the 6 GHz band,
6805  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6806  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6807  * To maintain backward compatibility,
6808  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6809  * is still used if either of the driver or user space application
6810  * doesn't support the 6 GHz band.
6811  *
6812  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6813  * VHT seg1 channel number
6814  * Note: If both the driver and user-space application supports the 6 GHz band,
6815  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6816  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6817  * To maintain backward compatibility,
6818  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6819  * is still used if either of the driver or user space application
6820  * doesn't support the 6 GHz band.
6821  *
6822  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6823  * Takes one of enum nl80211_chan_width values.
6824  *
6825  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6826  * Array of nested values for each channel with following attributes:
6827  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6828  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6829  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6830  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6831  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6832  * Note: If user-space application has no support of the 6 GHz band, this
6833  * attribute is optional.
6834  *
6835  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6836  * Primary channel frequency in MHz
6837  * Note: If user-space application has no support of the 6 GHz band, this
6838  * attribute is optional.
6839  *
6840  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6841  * Secondary channel frequency in MHz used for HT 40 MHz channels.
6842  * Note: If user-space application has no support of the 6 GHz band, this
6843  * attribute is optional.
6844  *
6845  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6846  * VHT seg0 channel frequency in MHz
6847  * Note: If user-space application has no support of the 6GHz band, this
6848  * attribute is optional.
6849  *
6850  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6851  * VHT seg1 channel frequency in MHz
6852  * Note: If user-space application has no support of the 6 GHz band, this
6853  * attribute is optional.
6854  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
6855  * Puncture Bitmap for selected primary channel. Optional if no support
6856  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
6857  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
6858  * element.
6859  */
6860 enum qca_wlan_vendor_attr_external_acs_channels {
6861 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6862 
6863 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6864 	 */
6865 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6866 
6867 	/* Array of nested values for each channel with following attributes:
6868 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6869 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6870 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6871 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6872 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6873 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6874 	 */
6875 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6876 	/* This (u8) will hold values of one of enum nl80211_bands */
6877 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6878 	/* Primary channel (u8) */
6879 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6880 	/* Secondary channel (u8) used for HT 40 MHz channels */
6881 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6882 	/* VHT seg0 channel (u8) */
6883 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6884 	/* VHT seg1 channel (u8) */
6885 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6886 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6887 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6888 
6889 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6890 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6891 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6892 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6893 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6894 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
6895 
6896 	/* keep last */
6897 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6898 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6899 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6900 };
6901 
6902 enum qca_chip_power_save_failure_reason {
6903 	/* Indicates if the reason for the failure is due to a protocol
6904 	 * layer/module.
6905 	 */
6906 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
6907 	/* Indicates if the reason for the failure is due to a hardware issue.
6908 	 */
6909 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
6910 };
6911 
6912 /**
6913  * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
6914  * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
6915  * information leading to the power save failure.
6916  */
6917 enum qca_attr_chip_power_save_failure {
6918 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
6919 	/* Reason to cause the power save failure.
6920 	 * These reasons are represented by
6921 	 * enum qca_chip_power_save_failure_reason.
6922 	 */
6923 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
6924 
6925 	/* keep last */
6926 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
6927 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
6928 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
6929 };
6930 
6931 /**
6932  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
6933  * data types for which the stats have to get collected.
6934  */
6935 enum qca_wlan_vendor_nud_stats_data_pkt_flags {
6936 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
6937 	QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
6938 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
6939 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
6940 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
6941 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
6942 	 * to represent the stats of respective data type.
6943 	 */
6944 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
6945 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
6946 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
6947 };
6948 
6949 enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
6950 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
6951 	/* Represents the data packet type to be monitored (u32).
6952 	 * Host driver tracks the stats corresponding to each data frame
6953 	 * represented by these flags.
6954 	 * These data packets are represented by
6955 	 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
6956 	 */
6957 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
6958 	/* Name corresponding to the DNS frame for which the respective DNS
6959 	 * stats have to get monitored (string). Max string length 255.
6960 	 */
6961 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
6962 	/* source port on which the respective proto stats have to get
6963 	 * collected (u32).
6964 	 */
6965 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
6966 	/* destination port on which the respective proto stats have to get
6967 	 * collected (u32).
6968 	 */
6969 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
6970 	/* IPv4 address for which the destined data packets have to be
6971 	 * monitored. (in network byte order), u32.
6972 	 */
6973 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
6974 	/* IPv6 address for which the destined data packets have to be
6975 	 * monitored. (in network byte order), 16 bytes array.
6976 	 */
6977 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
6978 
6979 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
6980 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
6981 		QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
6982 };
6983 
6984 /**
6985  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
6986  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
6987  * information to start/stop the NUD statistics collection.
6988  */
6989 enum qca_attr_nud_stats_set {
6990 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
6991 
6992 	/* Flag to start/stop the NUD statistics collection.
6993 	 * Start - If included, Stop - If not included
6994 	 */
6995 	QCA_ATTR_NUD_STATS_SET_START = 1,
6996 	/* IPv4 address of the default gateway (in network byte order), u32 */
6997 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
6998 	/* Represents the list of data packet types to be monitored.
6999 	 * Host driver tracks the stats corresponding to each data frame
7000 	 * represented by these flags.
7001 	 * These data packets are represented by
7002 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
7003 	 */
7004 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
7005 
7006 	/* keep last */
7007 	QCA_ATTR_NUD_STATS_SET_LAST,
7008 	QCA_ATTR_NUD_STATS_SET_MAX =
7009 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
7010 };
7011 
7012 enum qca_attr_nud_data_stats {
7013 	QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
7014 	/* Data packet type for which the stats are collected (u32).
7015 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
7016 	 */
7017 	QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
7018 	/* Name corresponding to the DNS frame for which the respective DNS
7019 	 * stats are monitored (string). Max string length 255.
7020 	 */
7021 	QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
7022 	/* source port on which the respective proto stats are collected (u32).
7023 	 */
7024 	QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
7025 	/* destination port on which the respective proto stats are collected
7026 	 * (u32).
7027 	 */
7028 	QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
7029 	/* IPv4 address for which the destined data packets have to be
7030 	 * monitored. (in network byte order), u32.
7031 	 */
7032 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
7033 	/* IPv6 address for which the destined data packets have to be
7034 	 * monitored. (in network byte order), 16 bytes array.
7035 	 */
7036 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
7037 	/* Data packet Request count received from netdev (u32). */
7038 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
7039 	/* Data packet Request count sent to lower MAC from upper MAC (u32). */
7040 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
7041 	/* Data packet Request count received by lower MAC from upper MAC
7042 	 * (u32)
7043 	 */
7044 	QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
7045 	/* Data packet Request count successfully transmitted by the device
7046 	 * (u32)
7047 	 */
7048 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
7049 	/* Data packet Response count received by lower MAC (u32) */
7050 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
7051 	/* Data packet Response count received by upper MAC (u32) */
7052 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
7053 	/* Data packet Response count delivered to netdev (u32) */
7054 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
7055 	/* Data Packet Response count that are dropped out of order (u32) */
7056 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
7057 
7058 	/* keep last */
7059 	QCA_ATTR_NUD_DATA_STATS_LAST,
7060 	QCA_ATTR_NUD_DATA_STATS_MAX =
7061 		QCA_ATTR_NUD_DATA_STATS_LAST - 1,
7062 };
7063 
7064 /**
7065  * qca_attr_nud_stats_get: Attributes to vendor subcmd
7066  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
7067  * NUD statistics collected when queried.
7068  */
7069 enum qca_attr_nud_stats_get {
7070 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
7071 	/* ARP Request count from netdev (u32) */
7072 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
7073 	/* ARP Request count sent to lower MAC from upper MAC (u32) */
7074 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
7075 	/* ARP Request count received by lower MAC from upper MAC (u32) */
7076 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
7077 	/* ARP Request count successfully transmitted by the device (u32) */
7078 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
7079 	/* ARP Response count received by lower MAC (u32) */
7080 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
7081 	/* ARP Response count received by upper MAC (u32) */
7082 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
7083 	/* ARP Response count delivered to netdev (u32) */
7084 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
7085 	/* ARP Response count dropped due to out of order reception (u32) */
7086 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
7087 	/* Flag indicating if the station's link to the AP is active.
7088 	 * Active Link - If included, Inactive link - If not included
7089 	 */
7090 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
7091 	/* Flag indicating if there is any duplicate address detected (DAD).
7092 	 * Yes - If detected, No - If not detected.
7093 	 */
7094 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
7095 	/* List of Data packet types for which the stats are requested.
7096 	 * This list does not carry ARP stats as they are done by the
7097 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
7098 	 */
7099 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
7100 
7101 	/* keep last */
7102 	QCA_ATTR_NUD_STATS_GET_LAST,
7103 	QCA_ATTR_NUD_STATS_GET_MAX =
7104 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
7105 };
7106 
7107 enum qca_wlan_btm_candidate_status {
7108 	QCA_STATUS_ACCEPT = 0,
7109 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
7110 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
7111 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
7112 	QCA_STATUS_REJECT_LOW_RSSI = 4,
7113 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
7114 	QCA_STATUS_REJECT_UNKNOWN = 6,
7115 };
7116 
7117 enum qca_wlan_vendor_attr_btm_candidate_info {
7118 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
7119 
7120 	/* 6-byte MAC address representing the BSSID of transition candidate */
7121 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
7122 	/* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
7123 	 * returned by the driver. It says whether the BSSID provided in
7124 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
7125 	 * the driver, if not it specifies the reason for rejection.
7126 	 * Note that the user-space can overwrite the transition reject reason
7127 	 * codes provided by driver based on more information.
7128 	 */
7129 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
7130 
7131 	/* keep last */
7132 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
7133 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
7134 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
7135 };
7136 
7137 enum qca_attr_trace_level {
7138 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
7139 	/*
7140 	 * Nested array of the following attributes:
7141 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
7142 	 * QCA_ATTR_TRACE_LEVEL_MASK.
7143 	 */
7144 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
7145 	/*
7146 	 * Specific QCA host driver module. Please refer to the QCA host
7147 	 * driver implementation to get the specific module ID.
7148 	 */
7149 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
7150 	/* Different trace level masks represented in the QCA host driver. */
7151 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
7152 
7153 	/* keep last */
7154 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
7155 	QCA_ATTR_TRACE_LEVEL_MAX =
7156 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
7157 };
7158 
7159 /**
7160  * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
7161  */
7162 enum qca_wlan_vendor_attr_get_he_capabilities {
7163 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
7164 	/* Whether HE capabilities is supported
7165 	 * (u8 attribute: 0 = not supported, 1 = supported)
7166 	 */
7167 	QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
7168 	/* HE PHY capabilities, array of 3 u32 values  */
7169 	QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
7170 	/* HE MAC capabilities (u32 attribute) */
7171 	QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
7172 	/* HE MCS map (u32 attribute) */
7173 	QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
7174 	/* Number of SS (u32 attribute) */
7175 	QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
7176 	/* RU count (u32 attribute) */
7177 	QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
7178 	/* PPE threshold data, array of 8 u32 values */
7179 	QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
7180 
7181 	/* keep last */
7182 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
7183 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
7184 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
7185 };
7186 
7187 /**
7188  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7189  */
7190 enum qca_wlan_vendor_attr_spectral_scan {
7191 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7192 	/* Number of times the chip enters spectral scan mode before
7193 	 * deactivating spectral scans. When set to 0, chip will enter spectral
7194 	 * scan mode continuously. u32 attribute.
7195 	 */
7196 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7197 	/* Spectral scan period. Period increment resolution is 256*Tclk,
7198 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7199 	 */
7200 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7201 	/* Spectral scan priority. u32 attribute. */
7202 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7203 	/* Number of FFT data points to compute. u32 attribute. */
7204 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7205 	/* Enable targeted gain change before starting the spectral scan FFT.
7206 	 * u32 attribute.
7207 	 */
7208 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7209 	/* Restart a queued spectral scan. u32 attribute. */
7210 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7211 	/* Noise floor reference number for the calculation of bin power.
7212 	 * u32 attribute.
7213 	 */
7214 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7215 	/* Disallow spectral scan triggers after TX/RX packets by setting
7216 	 * this delay value to roughly SIFS time period or greater.
7217 	 * u32 attribute.
7218 	 */
7219 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7220 	/* Number of strong bins (inclusive) per sub-channel, below
7221 	 * which a signal is declared a narrow band tone. u32 attribute.
7222 	 */
7223 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7224 	/* Specify the threshold over which a bin is declared strong (for
7225 	 * scan bandwidth analysis). u32 attribute.
7226 	 */
7227 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7228 	/* Spectral scan report mode. u32 attribute. */
7229 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7230 	/* RSSI report mode, if the ADC RSSI is below
7231 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7232 	 * then FFTs will not trigger, but timestamps and summaries get
7233 	 * reported. u32 attribute.
7234 	 */
7235 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7236 	/* ADC RSSI must be greater than or equal to this threshold (signed dB)
7237 	 * to ensure spectral scan reporting with normal error code.
7238 	 * u32 attribute.
7239 	 */
7240 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7241 	/* Format of frequency bin magnitude for spectral scan triggered FFTs:
7242 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7243 	 * u32 attribute.
7244 	 */
7245 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7246 	/* Format of FFT report to software for spectral scan triggered FFTs.
7247 	 * 0: No FFT report (only spectral scan summary report)
7248 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7249 	 * report
7250 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7251 	 * bins (in-band) per FFT + spectral scan summary report
7252 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7253 	 * bins (all) per FFT + spectral scan summary report
7254 	 * u32 attribute.
7255 	 */
7256 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7257 	/* Number of LSBs to shift out in order to scale the FFT bins.
7258 	 * u32 attribute.
7259 	 */
7260 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7261 	/* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7262 	 * in dBm power. u32 attribute.
7263 	 */
7264 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7265 	/* Per chain enable mask to select input ADC for search FFT.
7266 	 * u32 attribute.
7267 	 */
7268 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7269 	/* An unsigned 64-bit integer provided by host driver to identify the
7270 	 * spectral scan request. This attribute is included in the scan
7271 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7272 	 * and used as an attribute in
7273 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7274 	 * specific scan to be stopped.
7275 	 */
7276 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
7277 	/* Skip interval for FFT reports. u32 attribute */
7278 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7279 	/* Set to report only one set of FFT results.
7280 	 * u32 attribute.
7281 	 */
7282 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7283 	/* Debug level for spectral module in driver.
7284 	 * 0 : Verbosity level 0
7285 	 * 1 : Verbosity level 1
7286 	 * 2 : Verbosity level 2
7287 	 * 3 : Matched filterID display
7288 	 * 4 : One time dump of FFT report
7289 	 * u32 attribute.
7290 	 */
7291 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7292 	/* Type of spectral scan request. u32 attribute.
7293 	 * It uses values defined in enum
7294 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
7295 	 */
7296 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
7297 	/* This specifies the frequency span over which spectral
7298 	 * scan would be carried out. Its value depends on the
7299 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7300 	 * the relation is as follows.
7301 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7302 	 *    Not applicable. Spectral scan would happen in the
7303 	 *    operating span.
7304 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7305 	 *    Center frequency (in MHz) of the span of interest or
7306 	 *    for convenience, center frequency (in MHz) of any channel
7307 	 *    in the span of interest. For 80+80 MHz agile spectral scan
7308 	 *    request it represents center frequency (in MHz) of the primary
7309 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
7310 	 *    channel in the primary 80 MHz span. If agile spectral scan is
7311 	 *    initiated without setting a valid frequency it returns the
7312 	 *    error code
7313 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7314 	 * u32 attribute.
7315 	 */
7316 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7317 	/* Spectral scan mode. u32 attribute.
7318 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7319 	 * If this attribute is not present, it is assumed to be
7320 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7321 	 */
7322 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7323 	/* Spectral scan error code. u32 attribute.
7324 	 * It uses values defined in enum
7325 	 * qca_wlan_vendor_spectral_scan_error_code.
7326 	 * This attribute is included only in failure scenarios.
7327 	 */
7328 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7329 	/* 8-bit unsigned value to enable/disable debug of the
7330 	 * Spectral DMA ring.
7331 	 * 1-enable, 0-disable
7332 	 */
7333 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7334 	/* 8-bit unsigned value to enable/disable debug of the
7335 	 * Spectral DMA buffers.
7336 	 * 1-enable, 0-disable
7337 	 */
7338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
7339 	/* This specifies the frequency span over which spectral scan would be
7340 	 * carried out. Its value depends on the value of
7341 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7342 	 * follows.
7343 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7344 	 *    Not applicable. Spectral scan would happen in the operating span.
7345 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7346 	 *    This attribute is applicable only for agile spectral scan
7347 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7348 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7349 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7350 	 * u32 attribute.
7351 	 */
7352 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7353 	/* This attribute specifies the bandwidth to be used for spectral scan
7354 	 * operation. This is an u8 attribute and uses the values in enum
7355 	 * nl80211_chan_width. This is an optional attribute.
7356 	 * If this attribute is not populated, the driver should configure the
7357 	 * spectral scan bandwidth to the maximum value supported by the target
7358 	 * for the current operating bandwidth.
7359 	 */
7360 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7361 	/* Spectral FFT recapture flag attribute, to enable FFT recapture.
7362 	 * Recapture can only be enabled for scan period greater than 52 us.
7363 	 * If this attribute is enabled, re-triggers will be enabled when AGC
7364 	 * gain changes.
7365 	 */
7366 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
7367 	/* Attribute used for padding for 64-bit alignment */
7368 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
7369 
7370 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7371 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7372 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7373 };
7374 
7375 /**
7376  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7377  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7378  */
7379 enum qca_wlan_vendor_attr_spectral_diag_stats {
7380 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7381 	/* Number of spectral TLV signature mismatches.
7382 	 * u64 attribute.
7383 	 */
7384 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7385 	/* Number of spectral phyerror events with insufficient length when
7386 	 * parsing for secondary 80 search FFT report. u64 attribute.
7387 	 */
7388 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7389 	/* Number of spectral phyerror events without secondary 80
7390 	 * search FFT report. u64 attribute.
7391 	 */
7392 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7393 	/* Number of spectral phyerror events with vht operation segment 1 id
7394 	 * mismatches in search fft report. u64 attribute.
7395 	 */
7396 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7397 	/* Number of spectral phyerror events with vht operation segment 2 id
7398 	 * mismatches in search fft report. u64 attribute.
7399 	 */
7400 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
7401 	/* Attribute used for padding for 64-bit alignment */
7402 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
7403 
7404 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7405 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7406 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7407 };
7408 
7409 /**
7410  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7411  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7412  */
7413 enum qca_wlan_vendor_attr_spectral_cap {
7414 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7415 	/* Flag attribute to indicate phydiag capability */
7416 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7417 	/* Flag attribute to indicate radar detection capability */
7418 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7419 	/* Flag attribute to indicate spectral capability */
7420 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7421 	/* Flag attribute to indicate advanced spectral capability */
7422 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7423 	/* Spectral hardware generation. u32 attribute.
7424 	 * It uses values defined in enum
7425 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7426 	 */
7427 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
7428 	/* Spectral bin scaling formula ID. u16 attribute.
7429 	 * It uses values defined in enum
7430 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7431 	 */
7432 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7433 	/* Spectral bin scaling param - low level offset.
7434 	 * s16 attribute.
7435 	 */
7436 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7437 	/* Spectral bin scaling param - high level offset.
7438 	 * s16 attribute.
7439 	 */
7440 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7441 	/* Spectral bin scaling param - RSSI threshold.
7442 	 * s16 attribute.
7443 	 */
7444 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7445 	/* Spectral bin scaling param - default AGC max gain.
7446 	 * u8 attribute.
7447 	 */
7448 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
7449 	/* Flag attribute to indicate agile spectral scan capability
7450 	 * for 20/40/80 MHz modes.
7451 	 */
7452 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
7453 	/* Flag attribute to indicate agile spectral scan capability
7454 	 * for 160 MHz mode.
7455 	 */
7456 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7457 	/* Flag attribute to indicate agile spectral scan capability
7458 	 * for 80+80 MHz mode.
7459 	 */
7460 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
7461 	/* Number of spectral detectors used for scan in 20 MHz.
7462 	 * u32 attribute.
7463 	 */
7464 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7465 	/* Number of spectral detectors used for scan in 40 MHz.
7466 	 * u32 attribute.
7467 	 */
7468 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7469 	/* Number of spectral detectors used for scan in 80 MHz.
7470 	 * u32 attribute.
7471 	 */
7472 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7473 	/* Number of spectral detectors used for scan in 160 MHz.
7474 	 * u32 attribute.
7475 	 */
7476 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7477 	/* Number of spectral detectors used for scan in 80+80 MHz.
7478 	 * u32 attribute.
7479 	 */
7480 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
7481 	/* Flag attribute to indicate agile spectral scan capability
7482 	 * for 320 MHz mode.
7483 	 */
7484 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
7485 	/* Number of spectral detectors used for scan in 320 MHz.
7486 	 * u32 attribute.
7487 	 */
7488 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
7489 
7490 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7491 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7492 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7493 };
7494 
7495 /**
7496  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7497  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7498  */
7499 enum qca_wlan_vendor_attr_spectral_scan_status {
7500 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7501 	/* Flag attribute to indicate whether spectral scan is enabled */
7502 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7503 	/* Flag attribute to indicate whether spectral scan is in progress*/
7504 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
7505 	/* Spectral scan mode. u32 attribute.
7506 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7507 	 * If this attribute is not present, normal mode
7508 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7509 	 * requested.
7510 	 */
7511 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
7512 
7513 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7514 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7515 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7516 };
7517 
7518 /**
7519  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7520  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7521  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7522  * spectral scan request types.
7523  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7524  * set the spectral parameters and start scan.
7525  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7526  * only set the spectral parameters.
7527  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7528  * only start the spectral scan.
7529  */
7530 enum qca_wlan_vendor_attr_spectral_scan_request_type {
7531 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7532 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7533 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7534 };
7535 
7536 /**
7537  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7538  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7539  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7540  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7541  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7542  * spectral scan modes.
7543  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7544  * spectral scan in the current operating span.
7545  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7546  * spectral scan in the configured agile span.
7547  */
7548 enum qca_wlan_vendor_spectral_scan_mode {
7549 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7550 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7551 };
7552 
7553 /**
7554  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7555  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7556  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7557  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7558  * of a parameter is not supported.
7559  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7560  * mode is not supported.
7561  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7562  * has invalid value.
7563  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7564  * is not initialized.
7565  */
7566 enum qca_wlan_vendor_spectral_scan_error_code {
7567 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7568 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7569 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7570 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7571 };
7572 
7573 /**
7574  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7575  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7576  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7577  * spectral hardware generation.
7578  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7579  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7580  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7581  */
7582 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7583 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7584 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7585 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7586 };
7587 
7588 enum qca_wlan_vendor_tos {
7589 	QCA_WLAN_VENDOR_TOS_BK = 0,
7590 	QCA_WLAN_VENDOR_TOS_BE = 1,
7591 	QCA_WLAN_VENDOR_TOS_VI = 2,
7592 	QCA_WLAN_VENDOR_TOS_VO = 3,
7593 };
7594 
7595 /**
7596  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
7597  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
7598  */
7599 enum qca_wlan_vendor_attr_active_tos {
7600 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
7601 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
7602 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
7603 	/* Flag attribute representing the start (attribute included) or stop
7604 	 * (attribute not included) of the respective TOS.
7605 	 */
7606 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
7607 };
7608 
7609 enum qca_wlan_vendor_hang_reason {
7610 	/* Unspecified reason */
7611 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
7612 	/* No Map for the MAC entry for the received frame */
7613 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
7614 	/* Peer deletion timeout happened */
7615 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
7616 	/* Peer unmap timeout */
7617 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
7618 	/* Scan request timed out */
7619 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
7620 	/* Consecutive Scan attempt failures */
7621 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
7622 	/* Unable to get the message buffer */
7623 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
7624 	/* Current command processing is timedout */
7625 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
7626 	/* Timeout for an ACK from FW for suspend request */
7627 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
7628 	/* Timeout for an ACK from FW for resume request */
7629 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
7630 	/* Transmission timeout for consecutive data frames */
7631 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
7632 	/* Timeout for the TX completion status of data frame */
7633 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
7634 	/* DXE failure for TX/RX, DXE resource unavailability */
7635 	QCA_WLAN_HANG_DXE_FAILURE = 12,
7636 	/* WMI pending commands exceed the maximum count */
7637 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
7638 	/* Timeout for peer STA connection accept command's response from the
7639 	 * FW in AP mode. This command is triggered when a STA (peer) connects
7640 	 * to AP (DUT).
7641 	 */
7642 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
7643 	/* Timeout for the AP connection accept command's response from the FW
7644 	 * in STA mode. This command is triggered when the STA (DUT) connects
7645 	 * to an AP (peer).
7646 	 */
7647 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
7648 	/* Timeout waiting for the response to the MAC HW mode change command
7649 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
7650 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
7651 	 * Channel Concurrency) mode.
7652 	 */
7653 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
7654 	/* Timeout waiting for the response from FW to configure the MAC HW's
7655 	 * mode. This operation is to configure the single/two MACs in either
7656 	 * SCC/MCC/DBS mode.
7657 	 */
7658 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
7659 	/* Timeout waiting for response of VDEV start command from the FW */
7660 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
7661 	/* Timeout waiting for response of VDEV restart command from the FW */
7662 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
7663 	/* Timeout waiting for response of VDEV stop command from the FW */
7664 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
7665 	/* Timeout waiting for response of VDEV delete command from the FW */
7666 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
7667 	/* Timeout waiting for response of peer all delete request command to
7668 	 * the FW on a specific VDEV.
7669 	 */
7670 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
7671 	/* WMI sequence mismatch between WMI command and Tx completion */
7672 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
7673 	/* Write to Device HAL register failed */
7674 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
7675 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
7676 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
7677 	/* Bus failure */
7678 	QCA_WLAN_HANG_BUS_FAILURE = 26,
7679 	/* tasklet/credit latency found */
7680 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
7681 	/* MSDU buffers received in REO error ring, exceeding certain
7682 	 * threshold
7683 	 */
7684 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
7685 	/* Vdev SM is out of sync and connect req received
7686 	 * when already connected
7687 	 */
7688 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
7689 	/* Stats request timeout */
7690 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
7691 	/* Leak in TX descriptor for a packet */
7692 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
7693 	/* Scheduler watchdog timeout */
7694 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
7695 	/* Failed to send self peer deletion cmd to firmware */
7696 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
7697 	/* Received del self sta without del bss */
7698 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
7699 	/* Recovery needed when sending flush completion to userspace */
7700 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
7701 	/* Host wakeup because of page fault */
7702 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
7703 };
7704 
7705 /**
7706  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
7707  * QCA_NL80211_VENDOR_SUBCMD_HANG.
7708  */
7709 enum qca_wlan_vendor_attr_hang {
7710 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
7711 	/* Reason for the hang - u32 attribute with a value from enum
7712 	 * qca_wlan_vendor_hang_reason.
7713 	 */
7714 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
7715 	/* The binary blob data associated with the hang reason specified by
7716 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
7717 	 * contain the required dump to analyze the reason for the hang.
7718 	 * NLA_BINARY attribute, the max size is 1024 bytes.
7719 	 */
7720 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
7721 
7722 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
7723 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
7724 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
7725 };
7726 
7727 /**
7728  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
7729  * the policy to flush pending frames, configured via
7730  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
7731  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
7732  *
7733  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
7734  * the flush policy configured before. This command basically disables the
7735  * flush config set by the user.
7736  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
7737  * the flush policy to be immediate. All pending packets for the peer/TID are
7738  * flushed when this command/policy is received.
7739  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
7740  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
7741  * are flushed when the end of TWT SP is reached.
7742  */
7743 enum qca_wlan_vendor_flush_pending_policy  {
7744 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
7745 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
7746 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
7747 };
7748 
7749 /**
7750  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
7751  * flushing pending traffic in firmware.
7752  *
7753  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
7754  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
7755  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
7756  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
7757  * flush packets with access category. This is optional. See below.
7758  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
7759  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
7760  * bit to 1 to act upon the TID. This is optional. Either this attribute or
7761  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
7762  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
7763  * it is an error.
7764  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
7765  * packets corresponding to the peer/TID provided. It is a u32 value,
7766  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
7767  * value is honored only when TID mask is provided. This is not honored when AC
7768  * mask is provided.
7769  */
7770 enum qca_wlan_vendor_attr_flush_pending {
7771 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
7772 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
7773 	QCA_WLAN_VENDOR_ATTR_AC = 2,
7774 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
7775 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
7776 
7777 	/* keep last */
7778 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
7779 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
7780 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
7781 };
7782 
7783 /**
7784  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7785  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7786  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7787  * Spectral bin scaling formula ID.
7788  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7789  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7790  * and RSSI threshold based formula.
7791  */
7792 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7793 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7794 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7795 };
7796 
7797 /**
7798  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7799  * RF Operating Parameter (RROP) information is available, and if so, at which
7800  * point in the application-driver interaction sequence it can be retrieved by
7801  * the application from the driver. This point may vary by architecture and
7802  * other factors. This is a u16 value.
7803  */
7804 enum qca_wlan_vendor_attr_rropavail_info {
7805 	/* RROP information is unavailable. */
7806 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7807 	/* RROP information is available and the application can retrieve the
7808 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7809 	 * event from the driver.
7810 	 */
7811 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7812 	/* RROP information is available only after a vendor specific scan
7813 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7814 	 * successfully completed. The application can retrieve the information
7815 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7816 	 * the driver.
7817 	 */
7818 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7819 };
7820 
7821 /**
7822  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7823  * Representative RF Operating Parameter (RROP) information. It is sent for the
7824  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7825  * intended for use by external Auto Channel Selection applications. It provides
7826  * guidance values for some RF parameters that are used by the system during
7827  * operation. These values could vary by channel, band, radio, and so on.
7828  */
7829 enum qca_wlan_vendor_attr_rrop_info {
7830 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7831 
7832 	/* Representative Tx Power List (RTPL) which has an array of nested
7833 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7834 	 */
7835 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7836 
7837 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7838 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7839 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7840 };
7841 
7842 /**
7843  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7844  * entry instances in the Representative Tx Power List (RTPL). It provides
7845  * simplified power values intended for helping external Auto channel Selection
7846  * applications compare potential Tx power performance between channels, other
7847  * operating conditions remaining identical. These values are not necessarily
7848  * the actual Tx power values that will be used by the system. They are also not
7849  * necessarily the max or average values that will be used. Instead, they are
7850  * relative, summarized keys for algorithmic use computed by the driver or
7851  * underlying firmware considering a number of vendor specific factors.
7852  */
7853 enum qca_wlan_vendor_attr_rtplinst {
7854 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7855 
7856 	/* Primary channel number (u8).
7857 	 * Note: If both the driver and user space application support the
7858 	 * 6 GHz band, this attribute is deprecated and
7859 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7860 	 * maintain backward compatibility,
7861 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7862 	 * driver or user space application or both do not support the 6 GHz
7863 	 * band.
7864 	 */
7865 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7866 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
7867 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7868 	/* Representative Tx power in dBm (s32) with emphasis on range. */
7869 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
7870 	/* Primary channel center frequency (u32) in MHz */
7871 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
7872 
7873 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7874 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7875 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7876 };
7877 
7878 /**
7879  * enum qca_wlan_vendor_attr_config_latency_level - Level for
7880  * wlan latency module.
7881  *
7882  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7883  * power saving which would causing data exchange out of service, this
7884  * would be a big impact on latency. For latency sensitive applications over
7885  * Wi-Fi are intolerant to such operations and thus would configure them
7886  * to meet their respective needs. It is well understood by such applications
7887  * that altering the default behavior would degrade the Wi-Fi functionality
7888  * w.r.t the above pointed WLAN operations.
7889  *
7890  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7891  *	Default WLAN operation level which throughput orientated.
7892  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
7893  *	Use XR level to benefit XR (extended reality) application to achieve
7894  *	latency and power by via constraint scan/roaming/adaptive PS.
7895  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
7896  *	Use low latency level to benefit application like concurrent
7897  *	downloading or video streaming via constraint scan/adaptive PS.
7898  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7899  *	Use ultra low latency level to benefit for gaming/voice
7900  *	application via constraint scan/roaming/adaptive PS.
7901  */
7902 enum qca_wlan_vendor_attr_config_latency_level {
7903 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7904 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
7905 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
7906 	/* legacy name */
7907 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
7908 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
7909 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7910 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7911 
7912 	/* keep last */
7913 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7914 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7915 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7916 };
7917 
7918 /**
7919  * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
7920  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7921  */
7922 enum qca_wlan_vendor_attr_mac {
7923 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7924 
7925 	/* MAC mode info list which has an array of nested values as
7926 	 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
7927 	 */
7928 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7929 
7930 	/* keep last */
7931 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7932 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7933 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7934 };
7935 
7936 /**
7937  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7938  *	Wi-Fi netdev interface on a respective MAC.
7939  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7940  */
7941 enum qca_wlan_vendor_attr_mac_iface_info {
7942 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7943 	/* Wi-Fi netdev's interface index (u32) */
7944 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7945 	/* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
7946 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7947 
7948 	/* keep last */
7949 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7950 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7951 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7952 };
7953 
7954 /**
7955  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7956  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7957  *	vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7958  */
7959 enum qca_wlan_vendor_attr_mac_info {
7960 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7961 	/* Hardware MAC ID associated for the MAC (u32) */
7962 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7963 	/* Band supported by the MAC at a given point.
7964 	 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
7965 	 * nl80211_band.
7966 	 */
7967 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7968 	/* Refers to list of WLAN netdev interfaces associated with this MAC.
7969 	 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
7970 	 */
7971 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7972 
7973 	/* keep last */
7974 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7975 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7976 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7977 };
7978 
7979 /**
7980  * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
7981  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
7982  */
7983 enum qca_wlan_vendor_attr_get_logger_features {
7984 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
7985 	/* Unsigned 32-bit enum value of wifi_logger_supported_features */
7986 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
7987 	/* keep last */
7988 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
7989 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
7990 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
7991 };
7992 
7993 /**
7994  * enum wifi_logger_supported_features - Values for supported logger features
7995  */
7996 enum wifi_logger_supported_features {
7997 	WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
7998 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
7999 	WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
8000 	WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
8001 	WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
8002 	WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
8003 	WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
8004 	WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
8005 	WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
8006 };
8007 
8008 /**
8009  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
8010  * capabilities features
8011  */
8012 enum qca_wlan_tdls_caps_features_supported {
8013 	WIFI_TDLS_SUPPORT = (1 << (0)),
8014 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
8015 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
8016 };
8017 
8018 /**
8019  * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
8020  * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
8021  */
8022 enum qca_wlan_vendor_attr_tdls_get_capabilities {
8023 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
8024 	/* Indicates the max concurrent sessions */
8025 	/* Unsigned 32-bit value */
8026 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
8027 	/* Indicates the support for features */
8028 	/* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
8029 	 */
8030 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
8031 
8032 	/* keep last */
8033 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
8034 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
8035 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
8036 };
8037 
8038 /**
8039  * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
8040  * command used as value for the attribute
8041  * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
8042  */
8043 enum qca_wlan_offloaded_packets_sending_control {
8044 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
8045 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
8046 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
8047 };
8048 
8049 /**
8050  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
8051  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
8052  */
8053 enum qca_wlan_vendor_attr_offloaded_packets {
8054 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
8055 	/* Takes valid value from the enum
8056 	 * qca_wlan_offloaded_packets_sending_control
8057 	 * Unsigned 32-bit value
8058 	 */
8059 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
8060 	/* Unsigned 32-bit value */
8061 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
8062 	/* array of u8 len: Max packet size */
8063 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
8064 	/* 6-byte MAC address used to represent source MAC address */
8065 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
8066 	/* 6-byte MAC address used to represent destination MAC address */
8067 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
8068 	/* Unsigned 32-bit value, in milli seconds */
8069 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
8070 	/* This optional unsigned 16-bit attribute is used for specifying
8071 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
8072 	 */
8073 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
8074 
8075 	/* keep last */
8076 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
8077 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
8078 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
8079 };
8080 
8081 /**
8082  * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
8083  * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
8084  */
8085 enum qca_wlan_rssi_monitoring_control {
8086 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
8087 	QCA_WLAN_RSSI_MONITORING_START,
8088 	QCA_WLAN_RSSI_MONITORING_STOP,
8089 };
8090 
8091 /**
8092  * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
8093  * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
8094  */
8095 enum qca_wlan_vendor_attr_rssi_monitoring {
8096 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
8097 	/* Takes valid value from the enum
8098 	 * qca_wlan_rssi_monitoring_control
8099 	 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
8100 	 */
8101 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
8102 	/* Unsigned 32-bit value */
8103 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
8104 	/* Signed 8-bit value in dBm */
8105 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
8106 	/* Signed 8-bit value in dBm */
8107 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
8108 	/* attributes to be used/received in callback */
8109 	/* 6-byte MAC address used to represent current BSSID MAC address */
8110 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
8111 	/* Signed 8-bit value indicating the current RSSI */
8112 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
8113 	/* keep last */
8114 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
8115 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
8116 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
8117 };
8118 
8119 /**
8120  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
8121  * QCA_NL80211_VENDOR_SUBCMD_NDP.
8122  */
8123 enum qca_wlan_vendor_attr_ndp_params {
8124 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
8125 	/* Unsigned 32-bit value
8126 	 * enum of sub commands values in qca_wlan_ndp_sub_cmd
8127 	 */
8128 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
8129 	/* Unsigned 16-bit value */
8130 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
8131 	/* NL attributes for data used NDP SUB cmds */
8132 	/* Unsigned 32-bit value indicating a service info */
8133 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
8134 	/* Unsigned 32-bit value; channel frequency in MHz */
8135 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
8136 	/* Interface Discovery MAC address. An array of 6 Unsigned int8 */
8137 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
8138 	/* Interface name on which NDP is being created */
8139 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
8140 	/* Unsigned 32-bit value for security */
8141 	/* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
8142 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
8143 	/* Unsigned 32-bit value for QoS */
8144 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
8145 	/* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
8146 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
8147 	/* Unsigned 32-bit value for NDP instance Id */
8148 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
8149 	/* Array of instance Ids */
8150 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
8151 	/* Unsigned 32-bit value for initiator/responder NDP response code
8152 	 * accept/reject
8153 	 */
8154 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
8155 	/* NDI MAC address. An array of 6 Unsigned int8 */
8156 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
8157 	/* Unsigned 32-bit value errors types returned by driver
8158 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8159 	 * NanStatusType includes these values.
8160 	 */
8161 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
8162 	/* Unsigned 32-bit value error values returned by driver
8163 	 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
8164 	 * NanInternalStatusType includes these values.
8165 	 */
8166 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
8167 	/* Unsigned 32-bit value for Channel setup configuration
8168 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
8169 	 * NanDataPathChannelCfg includes these values.
8170 	 */
8171 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
8172 	/* Unsigned 32-bit value for Cipher Suite Shared Key Type */
8173 	QCA_WLAN_VENDOR_ATTR_NDP_CSID,
8174 	/* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
8175 	QCA_WLAN_VENDOR_ATTR_NDP_PMK,
8176 	/* Security Context Identifier that contains the PMKID
8177 	 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
8178 	 */
8179 	QCA_WLAN_VENDOR_ATTR_NDP_SCID,
8180 	/* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
8181 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
8182 	/* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
8183 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
8184 	/* Unsigned 32-bit bitmap indicating schedule update
8185 	 * BIT_0: NSS Update
8186 	 * BIT_1: Channel list update
8187 	 */
8188 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
8189 	/* Unsigned 32-bit value for NSS */
8190 	QCA_WLAN_VENDOR_ATTR_NDP_NSS,
8191 	/* Unsigned 32-bit value for NUMBER NDP CHANNEL */
8192 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
8193 	/* Unsigned 32-bit value for CHANNEL BANDWIDTH
8194 	 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
8195 	 */
8196 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
8197 	/* Array of channel/band width */
8198 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
8199 	/* IPv6 address used by NDP (in network byte order), 16 bytes array.
8200 	 * This attribute is used and optional for ndp request, ndp response,
8201 	 * ndp indication, and ndp confirm.
8202 	 */
8203 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
8204 	/* Unsigned 16-bit value indicating transport port used by NDP.
8205 	 * This attribute is used and optional for ndp response, ndp indication,
8206 	 * and ndp confirm.
8207 	 */
8208 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
8209 	/* Unsigned 8-bit value indicating protocol used by NDP and assigned by
8210 	 * the Internet Assigned Numbers Authority (IANA) as per:
8211 	 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
8212 	 * This attribute is used and optional for ndp response, ndp indication,
8213 	 * and ndp confirm.
8214 	 */
8215 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
8216 	/* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
8217 	 * 1:support 0:not support
8218 	 */
8219 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
8220 	/* As per Wi-Fi Aware Specification v3.2 Service Id is the first
8221 	 * 48 bits of the SHA-256 hash of the Service Name.
8222 	 * A lower-case representation of the Service Name shall be used to
8223 	 * calculate the Service ID.
8224 	 * Array of u8: length is 6 bytes
8225 	 * This attribute is used and optional for ndp indication.
8226 	 */
8227 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
8228 
8229 	/* keep last */
8230 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
8231 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
8232 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
8233 };
8234 
8235 enum qca_wlan_ndp_sub_cmd {
8236 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
8237 	/* Command to create a NAN data path interface.
8238 	 * This command was initially designed to both create and start a NAN
8239 	 * data path interface. However, changes to Linux 5.12 no longer allow
8240 	 * interface creation via vendor commands. When the driver advertises
8241 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8242 	 * userspace must explicitly first create the interface using
8243 	 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
8244 	 * to start the interface.
8245 	 */
8246 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
8247 	/* Command to delete a NAN data path interface.
8248 	 * This command was initially designed to both stop and delete a NAN
8249 	 * data path interface. However, changes to Linux 5.12 no longer allow
8250 	 * interface deletion via vendor commands. When the driver advertises
8251 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
8252 	 * userspace must explicitly delete the interface using
8253 	 * NL80211_CMD_DEL_INTERFACE after calling this command.
8254 	 */
8255 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
8256 	/* Command to initiate a NAN data path session */
8257 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
8258 	/* Command to notify if the NAN data path session was sent */
8259 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
8260 	/* Command to respond to NAN data path session */
8261 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
8262 	/* Command to notify on the responder about the response */
8263 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
8264 	/* Command to initiate a NAN data path end */
8265 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
8266 	/* Command to notify the if end request was sent */
8267 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
8268 	/* Command to notify the peer about the end request */
8269 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
8270 	/* Command to confirm the NAN data path session is complete */
8271 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
8272 	/* Command to indicate the peer about the end request being received */
8273 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
8274 	/* Command to indicate the peer of schedule update */
8275 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
8276 };
8277 
8278 /**
8279  * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
8280  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
8281  */
8282 enum qca_wlan_vendor_attr_nd_offload {
8283 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
8284 	/* Flag to set Neighbour Discovery offload */
8285 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
8286 	/* Keep last */
8287 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
8288 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
8289 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
8290 };
8291 
8292 /**
8293  * enum packet_filter_sub_cmd - Packet filter sub commands
8294  */
8295 enum packet_filter_sub_cmd {
8296 	/**
8297 	 * Write packet filter program and/or data. The driver/firmware should
8298 	 * disable APF before writing into local buffer and re-enable APF after
8299 	 * writing is done.
8300 	 */
8301 	QCA_WLAN_SET_PACKET_FILTER = 1,
8302 	/* Get packet filter feature capabilities from driver */
8303 	QCA_WLAN_GET_PACKET_FILTER = 2,
8304 	/**
8305 	 * Write packet filter program and/or data. User space will send the
8306 	 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
8307 	 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
8308 	 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
8309 	 * enable/disable is given to user space with this command. Also,
8310 	 * user space sends the length of program portion in the buffer within
8311 	 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
8312 	 */
8313 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
8314 	/* Read packet filter program and/or data */
8315 	QCA_WLAN_READ_PACKET_FILTER = 4,
8316 	/* Enable APF feature */
8317 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
8318 	/* Disable APF feature */
8319 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
8320 };
8321 
8322 /**
8323  * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
8324  * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
8325  */
8326 enum qca_wlan_vendor_attr_packet_filter {
8327 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
8328 	/* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
8329 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
8330 	/* Unsigned 32-bit value indicating the packet filter version */
8331 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
8332 	/* Unsigned 32-bit value indicating the packet filter id */
8333 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
8334 	/**
8335 	 * Unsigned 32-bit value indicating the packet filter size including
8336 	 * program + data.
8337 	 */
8338 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
8339 	/* Unsigned 32-bit value indicating the packet filter current offset */
8340 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
8341 	/* Program and/or data in bytes */
8342 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
8343 	/* Unsigned 32-bit value of the length of the program section in packet
8344 	 * filter buffer.
8345 	 */
8346 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
8347 
8348 	/* keep last */
8349 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
8350 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
8351 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
8352 };
8353 
8354 /**
8355  * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
8356  * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
8357  */
8358 enum qca_wlan_vendor_drv_info {
8359 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
8360 	/* Maximum Message size info between firmware & HOST
8361 	 * Unsigned 32-bit value
8362 	 */
8363 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
8364 	/* keep last */
8365 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
8366 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
8367 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
8368 };
8369 
8370 /**
8371  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
8372  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
8373  */
8374 enum qca_wlan_vendor_attr_wake_stats {
8375 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
8376 	/* Unsigned 32-bit value indicating the total count of wake event */
8377 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
8378 	/* Array of individual wake count, each index representing wake reason
8379 	 */
8380 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
8381 	/* Unsigned 32-bit value representing wake count array */
8382 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
8383 	/* Unsigned 32-bit total wake count value of driver/fw */
8384 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
8385 	/* Array of wake stats of driver/fw */
8386 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
8387 	/* Unsigned 32-bit total wake count value of driver/fw */
8388 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
8389 	/* Unsigned 32-bit total wake count value of packets received */
8390 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
8391 	/* Unsigned 32-bit wake count value unicast packets received */
8392 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
8393 	/* Unsigned 32-bit wake count value multicast packets received */
8394 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
8395 	/* Unsigned 32-bit wake count value broadcast packets received */
8396 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
8397 	/* Unsigned 32-bit wake count value of ICMP packets */
8398 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
8399 	/* Unsigned 32-bit wake count value of ICMP6 packets */
8400 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
8401 	/* Unsigned 32-bit value ICMP6 router advertisement */
8402 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
8403 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
8404 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
8405 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
8406 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
8407 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
8408 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
8409 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
8410 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
8411 	/* Unsigned 32-bit wake count value of receive side multicast */
8412 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
8413 	/* Unsigned 32-bit wake count value of a given RSSI breach */
8414 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
8415 	/* Unsigned 32-bit wake count value of low RSSI */
8416 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
8417 	/* Unsigned 32-bit value GSCAN count */
8418 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
8419 	/* Unsigned 32-bit value PNO complete count */
8420 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
8421 	/* Unsigned 32-bit value PNO match count */
8422 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
8423 	/* keep last */
8424 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
8425 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
8426 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
8427 };
8428 
8429 /**
8430  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
8431  * configured by userspace to the driver/firmware.
8432  * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
8433  * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
8434  * The driver/firmware takes actions requested by userspace such as throttling
8435  * wifi TX etc. in order to mitigate high temperature.
8436  *
8437  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
8438  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
8439  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
8440  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
8441  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
8442  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
8443  */
8444 enum qca_wlan_vendor_thermal_level {
8445 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
8446 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
8447 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
8448 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
8449 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
8450 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
8451 };
8452 
8453 /**
8454  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
8455  * cmd value. Used for NL attributes for data used by
8456  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8457  */
8458 enum qca_wlan_vendor_attr_thermal_cmd {
8459 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
8460 	/* The value of command, driver will implement different operations
8461 	 * according to this value. It uses values defined in
8462 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
8463 	 * u32 attribute.
8464 	 */
8465 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
8466 	/* Userspace uses this attribute to configure thermal level to the
8467 	 * driver/firmware, or get thermal level from the driver/firmware.
8468 	 * Used in request or response, u32 attribute,
8469 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
8470 	 */
8471 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
8472 	/* Userspace uses this attribute to configure the time in which the
8473 	 * driver/firmware should complete applying settings it received from
8474 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
8475 	 * command type. Used in request, u32 attribute, value is in
8476 	 * milliseconds. A value of zero indicates to apply the settings
8477 	 * immediately. The driver/firmware can delay applying the configured
8478 	 * thermal settings within the time specified in this attribute if
8479 	 * there is any critical ongoing operation.
8480 	 */
8481 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
8482 	/* Nested attribute, the driver/firmware uses this attribute to report
8483 	 * thermal statistics of different thermal levels to userspace when
8484 	 * requested using the
8485 	 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
8486 	 * type. This attribute contains a nested array of records of thermal
8487 	 * statistics of multiple levels. The attributes used inside this nested
8488 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
8489 	 */
8490 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
8491 
8492 	/* keep last */
8493 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
8494 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
8495 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
8496 };
8497 
8498 /**
8499  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
8500  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
8501  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
8502  * thermal command types sent to driver.
8503  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
8504  * get thermal shutdown configuration parameters for display. Parameters
8505  * responded from driver are defined in
8506  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
8507  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
8508  * get temperature. Host should respond with a temperature data. It is defined
8509  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
8510  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
8511  * suspend action.
8512  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
8513  * resume action.
8514  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
8515  * the driver/firmware.
8516  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
8517  * thermal level from the driver/firmware. The driver should respond with a
8518  * thermal level defined in enum qca_wlan_vendor_thermal_level.
8519  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
8520  * current thermal statistics from the driver/firmware. The driver should
8521  * respond with statistics of all thermal levels encapsulated in the attribute
8522  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
8523  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
8524  * the current thermal statistics for all thermal levels maintained in the
8525  * driver/firmware and start counting from zero again.
8526  */
8527 enum qca_wlan_vendor_attr_thermal_cmd_type {
8528 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
8529 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
8530 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
8531 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
8532 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
8533 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
8534 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
8535 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
8536 };
8537 
8538 /**
8539  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
8540  * to get chip temperature by user.
8541  * enum values are used for NL attributes for data used by
8542  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
8543  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8544  */
8545 enum qca_wlan_vendor_attr_thermal_get_temperature {
8546 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
8547 	/* Temperature value (degree Celsius) from driver.
8548 	 * u32 attribute.
8549 	 */
8550 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
8551 
8552 	/* keep last */
8553 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
8554 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
8555 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
8556 };
8557 
8558 /**
8559  * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
8560  * to get configuration parameters of thermal shutdown feature. Enum values are
8561  * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
8562  * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
8563  */
8564 enum qca_wlan_vendor_attr_get_thermal_params_rsp {
8565 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
8566 	/* Indicate if the thermal shutdown feature is enabled.
8567 	 * NLA_FLAG attribute.
8568 	 */
8569 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
8570 	/* Indicate if the auto mode is enabled.
8571 	 * Enable: Driver triggers the suspend/resume action.
8572 	 * Disable: User space triggers the suspend/resume action.
8573 	 * NLA_FLAG attribute.
8574 	 */
8575 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
8576 	/* Thermal resume threshold (degree Celsius). Issue the resume command
8577 	 * if the temperature value is lower than this threshold.
8578 	 * u16 attribute.
8579 	 */
8580 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
8581 	/* Thermal warning threshold (degree Celsius). FW reports temperature
8582 	 * to driver if it's higher than this threshold.
8583 	 * u16 attribute.
8584 	 */
8585 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
8586 	/* Thermal suspend threshold (degree Celsius). Issue the suspend command
8587 	 * if the temperature value is higher than this threshold.
8588 	 * u16 attribute.
8589 	 */
8590 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
8591 	/* FW reports temperature data periodically at this interval (ms).
8592 	 * u16 attribute.
8593 	 */
8594 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
8595 
8596 	/* keep last */
8597 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
8598 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
8599 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
8600 };
8601 
8602 /**
8603  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
8604  * report thermal events from driver to user space.
8605  * enum values are used for NL attributes for data used by
8606  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
8607  */
8608 enum qca_wlan_vendor_attr_thermal_event {
8609 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
8610 	/* Temperature value (degree Celsius) from driver.
8611 	 * u32 attribute.
8612 	 */
8613 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
8614 	/* Indication of resume completion from power save mode.
8615 	 * NLA_FLAG attribute.
8616 	 */
8617 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
8618 	/* Thermal level from the driver.
8619 	 * u32 attribute. Possible values are defined in
8620 	 * enum qca_wlan_vendor_thermal_level.
8621 	 */
8622 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
8623 
8624 	/* keep last */
8625 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
8626 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
8627 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
8628 };
8629 
8630 /**
8631  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8632  * to get thermal status from the driver/firmware.
8633  * enum values are used for NL attributes encapsulated inside the
8634  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8635  *
8636  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8637  * of a thermal level in Celsius. u32 size.
8638  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8639  * of a thermal level in Celsius. u32 size.
8640  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8641  * thermal level in milliseconds. u32 size.
8642  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8643  * of times the temperature crossed into the temperature range defined by the
8644  * thermal level from both higher and lower directions. u32 size.
8645  */
8646 enum qca_wlan_vendor_attr_thermal_stats {
8647 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8648 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8649 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8650 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8651 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8652 
8653 	/* keep last */
8654 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8655 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8656 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8657 };
8658 
8659 /**
8660  * enum he_fragmentation_val - HE fragmentation support values
8661  * Indicates level of dynamic fragmentation that is supported by
8662  * a STA as a recipient.
8663  * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
8664  * (HE MAC Capabilities Information field) and are used in HE Capabilities
8665  * element to advertise the support. These values are validated in the driver
8666  * to check the device capability and advertised in the HE Capabilities
8667  * element. These values are used to configure testbed device to allow the
8668  * advertised hardware capabilities to be downgraded for testing purposes.
8669  *
8670  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8671  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8672  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8673  *	within an A-MPDU that is not an S-MPDU.
8674  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8675  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8676  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8677  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8678  *	MPDU or S-MPDU.
8679  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8680  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8681  *	fragments for each MSDU and for each A-MSDU if supported by the
8682  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8683  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8684  */
8685 enum he_fragmentation_val {
8686 	HE_FRAG_DISABLE,
8687 	HE_FRAG_LEVEL1,
8688 	HE_FRAG_LEVEL2,
8689 	HE_FRAG_LEVEL3,
8690 };
8691 
8692 /**
8693  * enum he_mcs_config - HE MCS support configuration
8694  *
8695  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8696  * These values are used in driver to configure the HE MCS map to advertise
8697  * Tx/Rx MCS map in HE capability and these values are applied for all the
8698  * streams supported by the device. To configure MCS for different bandwidths,
8699  * vendor command needs to be sent using this attribute with appropriate value.
8700  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8701  * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
8702  * send this command using HE MCS config attribute with value HE_160_MCS0_11.
8703  * These values are used to configure testbed device to allow the advertised
8704  * hardware capabilities to be downgraded for testing purposes. The enum values
8705  * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
8706  * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
8707  * These values are validated in the driver before setting the MCS map and
8708  * driver returns error if the input is other than these enum values.
8709  *
8710  * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
8711  * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
8712  * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
8713  * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
8714  * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
8715  * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
8716  * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
8717  * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
8718  * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
8719  */
8720 enum he_mcs_config {
8721 	HE_80_MCS0_7 = 0,
8722 	HE_80_MCS0_9 = 1,
8723 	HE_80_MCS0_11 = 2,
8724 	HE_160_MCS0_7 = 4,
8725 	HE_160_MCS0_9 = 5,
8726 	HE_160_MCS0_11 = 6,
8727 	HE_80P80_MCS0_7 = 8,
8728 	HE_80P80_MCS0_9 = 9,
8729 	HE_80P80_MCS0_11 = 10,
8730 };
8731 
8732 /**
8733  * enum qca_wlan_ba_session_config - BA session configuration
8734  *
8735  * Indicates the configuration values for BA session configuration attribute.
8736  *
8737  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8738  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8739  */
8740 enum qca_wlan_ba_session_config {
8741 	QCA_WLAN_ADD_BA = 1,
8742 	QCA_WLAN_DELETE_BA = 2,
8743 };
8744 
8745 /**
8746  * enum qca_wlan_ac_type - Access category type
8747  *
8748  * Indicates the access category type value.
8749  *
8750  * @QCA_WLAN_AC_BE: BE access category
8751  * @QCA_WLAN_AC_BK: BK access category
8752  * @QCA_WLAN_AC_VI: VI access category
8753  * @QCA_WLAN_AC_VO: VO access category
8754  * @QCA_WLAN_AC_ALL: All ACs
8755  */
8756 enum qca_wlan_ac_type {
8757 	QCA_WLAN_AC_BE = 0,
8758 	QCA_WLAN_AC_BK = 1,
8759 	QCA_WLAN_AC_VI = 2,
8760 	QCA_WLAN_AC_VO = 3,
8761 	QCA_WLAN_AC_ALL = 4,
8762 };
8763 
8764 /**
8765  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8766  *
8767  * Indicates the HE LTF configuration value.
8768  *
8769  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
8770  * based on the GI setting
8771  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8772  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8773  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8774  */
8775 enum qca_wlan_he_ltf_cfg {
8776 	QCA_WLAN_HE_LTF_AUTO = 0,
8777 	QCA_WLAN_HE_LTF_1X = 1,
8778 	QCA_WLAN_HE_LTF_2X = 2,
8779 	QCA_WLAN_HE_LTF_4X = 3,
8780 };
8781 
8782 /**
8783  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8784  *
8785  * Indicates the HE trigger frame MAC padding duration value.
8786  *
8787  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8788  * process the trigger frame.
8789  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8790  * trigger frame.
8791  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8792  * trigger frame.
8793  */
8794 enum qca_wlan_he_mac_padding_dur {
8795 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8796 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8797 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8798 };
8799 
8800 /**
8801  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8802  *
8803  * Indicates the HE Operating mode control channel width setting value.
8804  *
8805  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8806  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8807  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8808  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8809  */
8810 enum qca_wlan_he_om_ctrl_ch_bw {
8811 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8812 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8813 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8814 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8815 };
8816 
8817 /**
8818  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8819  *
8820  * Indicates the frame types to use for keep alive data.
8821  *
8822  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8823  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8824  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8825  */
8826 enum qca_wlan_keep_alive_data_type {
8827 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8828 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8829 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8830 };
8831 
8832 /**
8833  * enum eht_mcs_config - EHT MCS support configuration
8834  *
8835  * Configures the EHT Tx/Rx MCS map in EHT Capability element.
8836  * These values are used in the driver to configure the EHT MCS map to advertise
8837  * Tx/Rx MCS map in EHT capability and these values are applied for all the
8838  * streams supported by the device.
8839  * @EHT_MCS0_7: EHT MCS 0 to 7 support
8840  * @EHT_MCS0_9: EHT MCS 0 to 9 support
8841  * @EHT_MCS0_11: EHT MCS 0 to 11 support
8842  * @EHT_MCS0_13: EHT MCS 0 to 13 support
8843  */
8844 enum eht_mcs_config {
8845 	EHT_MCS0_7 = 0,
8846 	EHT_MCS0_9 = 1,
8847 	EHT_MCS0_11 = 2,
8848 	EHT_MCS0_13 = 3,
8849 };
8850 
8851 /**
8852  * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
8853  * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
8854  * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
8855  * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
8856  * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
8857  * multi-link multi radio mode.
8858  * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
8859  * multi-link multi radio mode.
8860  */
8861 enum qca_wlan_eht_mlo_mode {
8862 	QCA_WLAN_EHT_MODE_INVALID = 0,
8863 	QCA_WLAN_EHT_MLSR = 1,
8864 	QCA_WLAN_EHT_EMLSR = 2,
8865 	QCA_WLAN_EHT_NON_STR_MLMR = 3,
8866 	QCA_WLAN_EHT_STR_MLMR = 4,
8867 };
8868 
8869 /**
8870  * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
8871  * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
8872  * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
8873  */
8874 enum qca_wlan_emlsr_mode {
8875 	QCA_WLAN_EMLSR_MODE_ENTER = 0,
8876 	QCA_WLAN_EMLSR_MODE_EXIT = 1,
8877 };
8878 
8879 /**
8880  * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
8881  * EHT operating mode control transmit request. These attributes are
8882  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
8883  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8884  *
8885  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8886  * indicates the maximum number of spatial streams, NSS, that the STA
8887  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8888  * and is set to NSS - 1.
8889  *
8890  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8891  * indicates the operating channel width supported by the STA for both
8892  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8893  *
8894  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8895  * indicates the all trigger based UL MU operations by the STA.
8896  * 0 - UL MU operations are enabled by the STA.
8897  * 1 - All triggered UL MU transmissions are suspended by the STA.
8898  *
8899  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8900  * indicates the maximum number of space-time streams, NSTS, that
8901  * the STA supports in transmission and is set to NSTS - 1.
8902  *
8903  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8904  * combined with the UL MU Disable subfield and the recipient's setting
8905  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8906  * capabilities to determine which HE TB PPDUs are possible by the
8907  * STA to transmit.
8908  * 0 - UL MU data operations are enabled by the STA.
8909  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8910  * bit is not set, else UL MU Tx is suspended.
8911  *
8912  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
8913  * Control subfield combined with the Rx NSS subfield in the OM Control subfield
8914  * indicates NSS - 1, where NSS is the maximum number of spatial streams that
8915  * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
8916  *
8917  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
8918  * 320 MHz operating channel width supported by the EHT STA for both reception
8919  * and transmission.
8920  *
8921  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
8922  * Control subfield combined with the Tx NSTS subfield in OM Control subfield
8923  * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
8924  * that the STA supports in transmission for PPDU bandwidths less than or equal
8925  * to 80 MHz.
8926  */
8927 enum qca_wlan_vendor_attr_omi_tx {
8928 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8929 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8930 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8931 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8932 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8933 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8934 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
8935 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
8936 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
8937 
8938 	/* keep last */
8939 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
8940 	QCA_WLAN_VENDOR_ATTR_OMI_MAX =
8941 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
8942 };
8943 
8944 /* deprecated legacy names */
8945 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
8946 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
8947 #define qca_wlan_vendor_attr_he_omi_tx \
8948 	qca_wlan_vendor_attr_omi_tx
8949 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
8950 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
8951 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
8952 	QCA_WLAN_VENDOR_ATTR_OMI_MAX
8953 
8954  /**
8955   * enum qca_wlan_vendor_phy_mode - Different PHY modes
8956   * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8957   *
8958   * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8959   * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8960   * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8961   * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8962   * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8963   * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8964   * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8965   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8966   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8967   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8968   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8969   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8970   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8971   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8972   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8973   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8974   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8975   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8976   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8977   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8978   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8979   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8980   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8981   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8982   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8983   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8984   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8985   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8986   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8987   */
8988 enum qca_wlan_vendor_phy_mode {
8989 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8990 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8991 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8992 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8993 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8994 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8995 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8996 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8997 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8998 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8999 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9000 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9001 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9002 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9003 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9004 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9005 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9006 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9007 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9008 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9009 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9010 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9011 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9012 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9013 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9014 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9015 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9016 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9017 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9018 };
9019 
9020 /* Attributes for data used by
9021  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9022  */
9023 enum qca_wlan_vendor_attr_wifi_test_config {
9024 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9025 	/* 8-bit unsigned value to configure the driver to enable/disable
9026 	 * WMM feature. This attribute is used to configure testbed device.
9027 	 * 1-enable, 0-disable
9028 	 */
9029 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9030 
9031 	/* 8-bit unsigned value to configure the driver to accept/reject
9032 	 * the addba request from peer. This attribute is used to configure
9033 	 * the testbed device.
9034 	 * 1-accept addba, 0-reject addba
9035 	 */
9036 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9037 
9038 	/* 8-bit unsigned value to configure the driver to send or not to
9039 	 * send the addba request to peer.
9040 	 * This attribute is used to configure the testbed device.
9041 	 * 1-send addba, 0-do not send addba
9042 	 */
9043 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9044 
9045 	/* 8-bit unsigned value to indicate the HE fragmentation support.
9046 	 * Uses enum he_fragmentation_val values.
9047 	 * This attribute is used to configure the testbed device to
9048 	 * allow the advertised hardware capabilities to be downgraded
9049 	 * for testing purposes.
9050 	 */
9051 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9052 
9053 	/* 8-bit unsigned value to indicate the HE MCS support.
9054 	 * Uses enum he_mcs_config values.
9055 	 * This attribute is used to configure the testbed device to
9056 	 * allow the advertised hardware capabilities to be downgraded
9057 	 * for testing purposes.
9058 	 */
9059 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9060 
9061 	/* 8-bit unsigned value to configure the driver to allow or not to
9062 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9063 	 * This attribute is used to configure the testbed device.
9064 	 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
9065 	 */
9066 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9067 
9068 	/* 8-bit unsigned value to configure the driver to add a
9069 	 * new BA session or delete the existing BA session for
9070 	 * given TID. ADDBA command uses the buffer size and TID
9071 	 * configuration if user specifies the values else default
9072 	 * value for buffer size is used for all TIDs if the TID
9073 	 * also not specified. For DEL_BA command TID value is
9074 	 * required to process the command.
9075 	 * Uses enum qca_wlan_ba_session_config values.
9076 	 * This attribute is used to configure the testbed device.
9077 	 */
9078 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9079 
9080 	/* 16-bit unsigned value to configure the buffer size in addba
9081 	 * request and response frames.
9082 	 * This attribute is used to configure the testbed device.
9083 	 * The range of the value is 0 to 256.
9084 	 */
9085 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9086 
9087 	/* 8-bit unsigned value to configure the buffer size in addba
9088 	 * request and response frames.
9089 	 * This attribute is used to configure the testbed device.
9090 	 */
9091 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9092 
9093 	/* 8-bit unsigned value to configure the no ack policy.
9094 	 * To configure no ack policy, access category value is
9095 	 * required to process the command.
9096 	 * This attribute is used to configure the testbed device.
9097 	 * 1 - enable no ack, 0 - disable no ack.
9098 	 */
9099 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9100 
9101 	/* 8-bit unsigned value to configure the AC for no ack policy
9102 	 * This attribute is used to configure the testbed device.
9103 	 * Uses the enum qca_wlan_ac_type values.
9104 	 */
9105 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9106 
9107 	/* 8-bit unsigned value to configure the HE LTF
9108 	 * This attribute is used to configure the testbed device.
9109 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9110 	 */
9111 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9112 
9113 	/* 8-bit unsigned value to configure the tx beamformee.
9114 	 * This attribute is used to configure the testbed device.
9115 	 * 1-enable, 0-disable.
9116 	 */
9117 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9118 
9119 	/* 8-bit unsigned value to configure the tx beamformee number
9120 	 * of space-time streams.
9121 	 * This attribute is used to configure the testbed device.
9122 	 * The range of the value is 0 to 8.
9123 	 */
9124 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9125 
9126 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9127 	 * This attribute is used to configure the testbed device.
9128 	 * Uses the enum qca_wlan_ac_type values.
9129 	 */
9130 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9131 
9132 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9133 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9134 	 * is required to process the command.
9135 	 * This attribute is used to configure the testbed device.
9136 	 */
9137 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9138 
9139 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9140 	 * given AC.
9141 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9142 	 * is required to process the command.
9143 	 * This attribute is used to configure the testbed device.
9144 	 */
9145 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9146 
9147 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9148 	 * given AC.
9149 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9150 	 * is required to process the command.
9151 	 * This attribute is used to configure the testbed device.
9152 	 */
9153 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9154 
9155 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9156 	 * To configure MU EDCA timer value, MU EDCA access category value
9157 	 * is required to process the command.
9158 	 * This attribute is used to configure the testbed device.
9159 	 */
9160 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9161 
9162 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9163 	 * duration.
9164 	 * This attribute is used to configure the testbed device.
9165 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9166 	 */
9167 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9168 
9169 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9170 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9171 	 * the default values else use the MU EDCA params from AP beacon.
9172 	 * This attribute is used to configure the testbed device.
9173 	 * 1-enable, 0-disable.
9174 	 */
9175 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9176 
9177 	/* 8-bit unsigned value to configure the support for receiving
9178 	 * an MPDU that contains an operating mode control subfield.
9179 	 * This attribute is used to configure the testbed device.
9180 	 * 1-enable, 0-disable.
9181 	 */
9182 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9183 
9184 	/* Nested attribute values required to setup the TWT session.
9185 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9186 	 * information to set up the session. It contains broadcast flags,
9187 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9188 	 * exponent, protection, target wake time, wake duration, wake interval
9189 	 * mantissa. These nested attributes are used to setup a host triggered
9190 	 * TWT session.
9191 	 */
9192 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9193 
9194 	/* This nested attribute is used to terminate the current TWT session.
9195 	 * It does not currently carry any attributes.
9196 	 */
9197 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9198 
9199 	/* This nested attribute is used to suspend the current TWT session.
9200 	 * It does not currently carry any attributes.
9201 	 */
9202 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9203 
9204 	/* Nested attribute values to indicate the request for resume.
9205 	 * This attribute is used to resume the TWT session.
9206 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9207 	 * parameters required to resume the TWT session.
9208 	 */
9209 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9210 
9211 	/* 8-bit unsigned value to set the HE operating mode control
9212 	 * (OM CTRL) Channel Width subfield.
9213 	 * The Channel Width subfield indicates the operating channel width
9214 	 * supported by the STA for both reception and transmission.
9215 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9216 	 * This setting is cleared with the
9217 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9218 	 * flag attribute to reset defaults.
9219 	 * This attribute is used to configure the testbed device.
9220 	 */
9221 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9222 
9223 	/* 8-bit unsigned value to configure the number of spatial
9224 	 * streams in HE operating mode control field.
9225 	 * This setting is cleared with the
9226 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9227 	 * flag attribute to reset defaults.
9228 	 * This attribute is used to configure the testbed device.
9229 	 */
9230 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9231 
9232 	/* Flag attribute to configure the UL MU disable bit in
9233 	 * HE operating mode control field.
9234 	 * This setting is cleared with the
9235 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9236 	 * flag attribute to reset defaults.
9237 	 * This attribute is used to configure the testbed device.
9238 	 */
9239 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9240 
9241 	/* Flag attribute to clear the previously set HE operating mode
9242 	 * control field configuration.
9243 	 * This attribute is used to configure the testbed device to reset
9244 	 * defaults to clear any previously set HE operating mode control
9245 	 * field configuration.
9246 	 */
9247 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9248 
9249 	/* 8-bit unsigned value to configure HE single user PPDU
9250 	 * transmission. By default this setting is disabled and it
9251 	 * is disabled in the reset defaults of the device configuration.
9252 	 * This attribute is used to configure the testbed device.
9253 	 * 1-enable, 0-disable
9254 	 */
9255 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9256 
9257 	/* 8-bit unsigned value to configure action frame transmission
9258 	 * in HE trigger based PPDU transmission.
9259 	 * By default this setting is disabled and it is disabled in
9260 	 * the reset defaults of the device configuration.
9261 	 * This attribute is used to configure the testbed device.
9262 	 * 1-enable, 0-disable
9263 	 */
9264 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9265 
9266 	/* Nested attribute to indicate HE operating mode control field
9267 	 * transmission. It contains operating mode control field Nss,
9268 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9269 	 * These nested attributes are used to send HE operating mode control
9270 	 * with configured values.
9271 	 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
9272 	 * This attribute is used to configure the testbed device.
9273 	 */
9274 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
9275 
9276 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9277 	 * support for the reception of a frame that carries an HE variant
9278 	 * HT Control field.
9279 	 * This attribute is used to configure the testbed device.
9280 	 * 1-enable, 0-disable
9281 	 */
9282 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9283 
9284 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9285 	 * This attribute is used to configure the testbed device.
9286 	 * 1-enable, 0-disable
9287 	 */
9288 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9289 
9290 	/* 8-bit unsigned value to configure HE testbed defaults.
9291 	 * This attribute is used to configure the testbed device.
9292 	 * 1-set the device HE capabilities to testbed defaults.
9293 	 * 0-reset the device HE capabilities to supported config.
9294 	 */
9295 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9296 
9297 	/* 8-bit unsigned value to configure TWT request support.
9298 	 * This attribute is used to configure the testbed device.
9299 	 * 1-enable, 0-disable.
9300 	 */
9301 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9302 
9303 	/* 8-bit unsigned value to configure protection for Management
9304 	 * frames when PMF is enabled for the association.
9305 	 * This attribute is used to configure the testbed device.
9306 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9307 	 */
9308 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9309 
9310 	/* Flag attribute to inject Disassociation frame to the connected AP.
9311 	 * This attribute is used to configure the testbed device.
9312 	 */
9313 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9314 
9315 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9316 	 * subfield in the MIC control field of the FTE in FT Reassociation
9317 	 * Request frame.
9318 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9319 	 * This attribute is used to configure the testbed device.
9320 	 * This attribute can be configured only when STA is in associated state
9321 	 * and the configuration is valid until the disconnection.
9322 	 */
9323 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9324 
9325 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9326 	 * Switch Announcement) when STA is in connected state.
9327 	 * 0 - Default behavior, 1 - Ignore CSA.
9328 	 * This attribute is used to configure the testbed device.
9329 	 * This attribute can be configured only when STA is in associated state
9330 	 * and the configuration is valid until the disconnection.
9331 	 */
9332 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9333 
9334 	/* Nested attribute values required to configure OCI (Operating Channel
9335 	 * Information). Attributes defined in enum
9336 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9337 	 * This attribute is used to configure the testbed device.
9338 	 * This attribute can be configured only when STA is in associated state
9339 	 * and the configuration is valid until the disconnection.
9340 	 */
9341 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9342 
9343 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9344 	 * Query timeout. If this configuration is enabled STA shall not send
9345 	 * Deauthentication frmae when SA Query times out (mainly, after a
9346 	 * channel switch when OCV is enabled).
9347 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9348 	 * This attribute is used to configure the testbed device.
9349 	 * This attribute can be configured only when STA is in associated state
9350 	 * and the configuration is valid until the disconnection.
9351 	 */
9352 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9353 
9354 	/* 8-bit unsigned value to configure the driver/firmware to start or
9355 	 * stop transmitting FILS discovery frames.
9356 	 * 0 - Stop transmitting FILS discovery frames
9357 	 * 1 - Start transmitting FILS discovery frames
9358 	 * This attribute is used to configure the testbed device.
9359 	 * This attribute can be configured only in AP mode and the
9360 	 * configuration is valid until AP restart.
9361 	 */
9362 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9363 
9364 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9365 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9366 	 * information field.
9367 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9368 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9369 	 * This attribute is used to configure the testbed device.
9370 	 */
9371 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9372 
9373 	/* 16-bit unsigned value to configure the driver with a specific BSS
9374 	 * max idle period to advertise in the BSS Max Idle Period element
9375 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9376 	 * This attribute is used to configure the testbed device.
9377 	 */
9378 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9379 
9380 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9381 	 * for data transmission.
9382 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9383 	 * This attribute is used to configure the testbed device.
9384 	 */
9385 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9386 
9387 	/* 8-bit unsigned value to configure the driver to disable data and
9388 	 * management response frame transmission to test the BSS max idle
9389 	 * feature.
9390 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9391 	 * This attribute is used to configure the testbed device.
9392 	 */
9393 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9394 
9395 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9396 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9397 	 * information field.
9398 	 * 0 - Disable Punctured Preamble Rx subfield
9399 	 * 1 - Enable Punctured Preamble Rx subfield
9400 	 * This attribute is used to configure the testbed device.
9401 	 */
9402 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9403 
9404 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9405 	 * requirement mismatch for 6 GHz connection.
9406 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9407 	 * This attribute is used to configure the testbed device.
9408 	 */
9409 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9410 
9411 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9412 	 * connection with all security modes.
9413 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9414 	 * modes.
9415 	 * This attribute is used for testing purposes.
9416 	 */
9417 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9418 
9419 	/* 8-bit unsigned value to configure the driver to transmit data with
9420 	 * ER SU PPDU type.
9421 	 *
9422 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9423 	 * This attribute is used for testing purposes.
9424 	 */
9425 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9426 
9427 	/* 8-bit unsigned value to configure the driver to use Data or
9428 	 * Management frame type for keep alive data.
9429 	 * Uses enum qca_wlan_keep_alive_data_type values.
9430 	 *
9431 	 * This attribute is used for testing purposes.
9432 	 */
9433 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9434 
9435 	/* 8-bit unsigned value to configure the driver to use scan request
9436 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9437 	 * driver saves this configuration and applies this setting to all user
9438 	 * space scan requests until the setting is cleared. If this
9439 	 * configuration is set, the driver uses the BSSID value from the scan
9440 	 * request to set the RA(A1) in the Probe Request frames during the
9441 	 * scan.
9442 	 *
9443 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9444 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9445 	 * This attribute is used for testing purposes.
9446 	 */
9447 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9448 
9449 	/* 8-bit unsigned value to configure the driver to enable/disable the
9450 	 * BSS max idle period support.
9451 	 *
9452 	 * 0 - Disable the BSS max idle support.
9453 	 * 1 - Enable the BSS max idle support.
9454 	 * This attribute is used for testing purposes.
9455 	 */
9456 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9457 
9458 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9459 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9460 	 * capabilities information field.
9461 	 * 0 - Disable Rx control frame to MultiBSS subfield
9462 	 * 1 - Enable Rx control frame to MultiBSS subfield
9463 	 * This attribute is used to configure the testbed device.
9464 	 */
9465 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9466 
9467 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9468 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9469 	 * information field.
9470 	 * 0 - Disable Broadcast TWT support subfield
9471 	 * 1 - Enable Broadcast TWT support subfield
9472 	 * This attribute is used to configure the testbed device.
9473 	 */
9474 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9475 
9476 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9477 	 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
9478 	 * to 1, and if the firmware supports this capability too, the STA
9479 	 * advertises this capability to the AP over Association Request frame.
9480 	 * This attribute will not have any effect on legacy devices with no
9481 	 * IEEE 802.11be support.
9482 	 * 0 - Default behavior
9483 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9484 	 * This attribute is used to configure the testbed device.
9485 	 */
9486 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9487 
9488 	/* 8-bit unsigned value to configure the driver to enable/disable the
9489 	 * periodic sounding for Tx beamformer functionality. The default
9490 	 * behavior uses algorithm to do sounding based on packet stats.
9491 	 *
9492 	 * 0 - Default behavior.
9493 	 * 1 - Enable the periodic sounding for Tx beamformer.
9494 	 * This attribute is used for testing purposes.
9495 	 */
9496 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9497 
9498 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9499 	 * to indicate the maximum number of spatial streams that the STA
9500 	 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9501 	 * The range of the value is 3 to 7.
9502 	 * This attribute is used to configure the testbed device.
9503 	 */
9504 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9505 
9506 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9507 	 * to indicate the maximum number of spatial streams that the STA
9508 	 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9509 	 * The range of the value is 3 to 7.
9510 	 * This attribute is used to configure the testbed device.
9511 	 */
9512 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9513 
9514 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9515 	 * to indicate the maximum number of spatial streams that the STA
9516 	 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9517 	 * The range of the value is 3 to 7.
9518 	 * This attribute is used to configure the testbed device.
9519 	 */
9520 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9521 
9522 	/* 8-bit unsigned value to configure the driver to exclude station
9523 	 * profile in Probe Request frame Multi-Link element.
9524 	 * 0 - Default behavior, sends the Probe Request frame with station
9525 	 * profile data included in the Multi-Link element.
9526 	 * 1 - Exclude station profile in Probe Request frame Multi-Link
9527 	 * element.
9528 	 * This attribute is used to configure the testbed device.
9529 	 */
9530 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
9531 
9532 	/* 8-bit unsigned value to configure EHT testbed defaults.
9533 	 * This attribute is used to configure the testbed device.
9534 	 * 1 - Set the device EHT capabilities to testbed defaults.
9535 	 * 0 - Reset the device EHT capabilities to supported config.
9536 	 */
9537 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
9538 
9539 	/* 8-bit unsigned value to indicate the EHT MCS support.
9540 	 * Uses enum eht_mcs_config values.
9541 	 * This attribute is used to configure the testbed device to
9542 	 * allow the advertised hardware capabilities to be downgraded
9543 	 * for testing purposes.
9544 	 */
9545 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
9546 
9547 	/* 8-bit unsigned value to configure EHT TB Sounding Feedback
9548 	 * Rate Limit capability.
9549 	 * This attribute is used to configure the testbed device.
9550 	 * 0 - Indicates no maximum supported data rate limitation.
9551 	 * 1 - Indicates the maximum supported data rate is the lower of
9552 	 * the 1500 Mb/s and the maximum supported data rate.
9553 	 */
9554 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
9555 
9556 	/* 8-bit unsigned value to configure the support for receiving an MPDU
9557 	 * that contains an EHT operating mode control subfield.
9558 	 * This attribute is used to configure the testbed device.
9559 	 * 1-enable, 0-disable.
9560 	 */
9561 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
9562 
9563 	/* 8-bit unsigned value to configure the driver with EMLSR padding delay
9564 	 * subfield value.
9565 	 *
9566 	 * 0 - 0 us
9567 	 * 1 - 32 us
9568 	 * 2 - 64 us
9569 	 * 3 - 128 us
9570 	 * 4 - 256 us
9571 	 * 5-255 - Reserved
9572 	 *
9573 	 * This attribute is used for testing purposes.
9574 	 */
9575 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
9576 
9577 	/*
9578 	 * 8-bit unsigned value to indicate the firmware to force the active MLO
9579 	 * links to power save mode for the configured number of beacon periods.
9580 	 * This allows the firmware to suspend STA links for X beacon periods
9581 	 * and remain asleep even if the AP advertises TIM as opposed to regular
9582 	 * power save mode where STA links wake up if the AP indicates that it
9583 	 * has buffered data to send.
9584 	 * This attribute is used to configure the testbed device.
9585 	 */
9586 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
9587 
9588 	/*
9589 	 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
9590 	 * to enable simultaneous transmission of PPDUs on all active links.
9591 	 * 0 - Default behavior
9592 	 * 1 - Enter STR mode for simultaneous data transmission on all links
9593 	 */
9594 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
9595 
9596 	/* keep last */
9597 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9598 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9599 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9600 };
9601 
9602 /**
9603  * enum qca_wlan_twt_operation - Operation of the config TWT request
9604  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9605  * The response for the respective operations can be either synchronous or
9606  * asynchronous (wherever specified). If synchronous, the response to this
9607  * operation is obtained in the corresponding vendor command reply to the user
9608  * space. For the asynchronous case the response is obtained as an event with
9609  * the same operation type.
9610  *
9611  * Drivers shall support either of these modes but not both simultaneously.
9612  * This support for asynchronous mode is advertised through the flag
9613  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9614  * the driver shall support synchronous mode.
9615  *
9616  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9617  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9618  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9619  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9620  * synchronous or asynchronous operation.
9621  *
9622  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9623  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9624  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9625  *
9626  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9627  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9628  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9629  * This terminate can either get triggered by the user space or can as well be
9630  * a notification from the firmware if it initiates a terminate.
9631  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9632  * the request from user space can either be a synchronous or asynchronous
9633  * operation.
9634  *
9635  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9636  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9637  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9638  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9639  * this is either a synchronous or asynchronous operation.
9640  *
9641  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9642  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9643  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9644  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9645  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9646  * capability, this is either a synchronous or asynchronous operation.
9647  *
9648  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9649  * combination of suspend and resume in a single request. Required parameters
9650  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9651  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9652  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9653  * capability, this is either a synchronous or asynchronous operation.
9654  *
9655  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9656  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9657  * session is setup. It's a synchronous operation.
9658  *
9659  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9660  * Valid only after the TWT session is setup. It's a synchronous operation.
9661  *
9662  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9663  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9664  * operation.
9665  *
9666  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9667  * ready for a new TWT session setup after it issued a TWT teardown.
9668  *
9669  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9670  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9671  * the enum qca_wlan_vendor_attr_twt_set_param.
9672  *
9673  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9674  * related information for example TWT required bit in AP capabilities etc.
9675  * The reason for the notification is sent using
9676  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9677  */
9678 enum qca_wlan_twt_operation {
9679 	QCA_WLAN_TWT_SET = 0,
9680 	QCA_WLAN_TWT_GET = 1,
9681 	QCA_WLAN_TWT_TERMINATE = 2,
9682 	QCA_WLAN_TWT_SUSPEND = 3,
9683 	QCA_WLAN_TWT_RESUME = 4,
9684 	QCA_WLAN_TWT_NUDGE = 5,
9685 	QCA_WLAN_TWT_GET_STATS = 6,
9686 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9687 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9688 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9689 	QCA_WLAN_TWT_SET_PARAM = 10,
9690 	QCA_WLAN_TWT_NOTIFY = 11,
9691 };
9692 
9693 /**
9694  * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9695  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9696  *
9697  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
9698  * operation of this request. Possible values are defined in enum
9699  * qca_wlan_twt_operation. The parameters for the respective operation is
9700  * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9701  *
9702  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9703  * parameters configured for TWT. These parameters are represented by
9704  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9705  * enum qca_wlan_vendor_attr_twt_set_param, or
9706  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9707  *
9708  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9709  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9710  * The values used by this attribute are defined in
9711  * enum qca_wlan_vendor_twt_status.
9712  */
9713 enum qca_wlan_vendor_attr_config_twt {
9714 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9715 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9716 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9717 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9718 
9719 	/* keep last */
9720 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9721 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9722 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9723 };
9724 
9725 /**
9726  * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
9727  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9728  * The user can add/delete the filter by specifying the BSSID/STA MAC address in
9729  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
9730  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
9731  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
9732  * statistics of an unassociated station by specifying the MAC address in
9733  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
9734  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
9735  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
9736  * the statistics of all unassociated stations by specifying the Broadcast MAC
9737  * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
9738  * above procedure. In the response, driver shall specify statistics
9739  * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
9740  */
9741 enum qca_wlan_vendor_attr_bss_filter {
9742 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
9743 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
9744 	/* Other BSS filter type, unsigned 8 bit value. One of the values
9745 	 * in enum qca_wlan_vendor_bss_filter_type.
9746 	 */
9747 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
9748 	/* Other BSS filter action, unsigned 8 bit value. One of the values
9749 	 * in enum qca_wlan_vendor_bss_filter_action.
9750 	 */
9751 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
9752 	/* Array of nested attributes where each entry is the statistics
9753 	 * information of the specified station that belong to another BSS.
9754 	 * Attributes for each entry are taken from enum
9755 	 * qca_wlan_vendor_bss_filter_sta_stats.
9756 	 * Other BSS station configured in
9757 	 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
9758 	 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
9759 	 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
9760 	 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
9761 	 */
9762 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
9763 
9764 	/* keep last */
9765 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
9766 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
9767 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
9768 };
9769 
9770 /**
9771  * enum qca_wlan_vendor_bss_filter_type - Type of
9772  * filter used in other BSS filter operations. Used by the vendor command
9773  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9774  *
9775  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
9776  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
9777  */
9778 enum qca_wlan_vendor_bss_filter_type {
9779 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
9780 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
9781 };
9782 
9783 /**
9784  * enum qca_wlan_vendor_bss_filter_action - Type of
9785  * action in other BSS filter operations. Used by the vendor command
9786  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9787  *
9788  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
9789  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
9790  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
9791  */
9792 enum qca_wlan_vendor_bss_filter_action {
9793 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
9794 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
9795 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
9796 };
9797 
9798 /**
9799  * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
9800  * the statistics of a specific unassociated station belonging to another BSS.
9801  * The statistics provides information of the unassociated station
9802  * filtered by other BSS operation - such as MAC, signal value.
9803  * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
9804  *
9805  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
9806  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
9807  *	of the station. Unsigned 8 bit number containing RSSI.
9808  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
9809  *	driver for the last received RSSI. Unsigned 64 bit number containing
9810  *	nanoseconds from the boottime.
9811  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
9812  *	64-bit alignment.
9813  */
9814 enum qca_wlan_vendor_bss_filter_sta_stats {
9815 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
9816 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
9817 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
9818 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
9819 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
9820 
9821 	/* keep last */
9822 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
9823 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
9824 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
9825 };
9826 
9827 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9828  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9829  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9830  */
9831 enum qca_wlan_nan_ext_subcmd_type {
9832 	/* Subcmd of type NAN Enable Request */
9833 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9834 	/* Subcmd of type NAN Disable Request */
9835 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9836 };
9837 
9838 /**
9839  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9840  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9841  */
9842 enum qca_wlan_vendor_attr_nan_params {
9843 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9844 	/* Carries NAN command for firmware component. Every vendor command
9845 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9846 	 * payload containing the NAN command. NLA_BINARY attribute.
9847 	 */
9848 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9849 	/* Indicates the type of NAN command sent with
9850 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9851 	 * describes the possible range of values. This attribute is mandatory
9852 	 * if the command being issued is either
9853 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9854 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9855 	 */
9856 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9857 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9858 	 * band. This attribute is mandatory when command type is
9859 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9860 	 */
9861 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9862 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9863 	 * band. This attribute is optional and should be included when command
9864 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9865 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9866 	 */
9867 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9868 
9869 	/* keep last */
9870 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9871 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9872 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9873 };
9874 
9875 /**
9876  * qca_wlan_twt_setup_state: Represents the TWT session states.
9877  *
9878  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9879  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9880  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9881  */
9882 enum qca_wlan_twt_setup_state {
9883 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9884 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9885 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9886 };
9887 
9888 /**
9889  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9890  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9891  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9892  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9893  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9894  *
9895  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9896  * Disable (flag attribute not present) - Individual TWT
9897  * Enable (flag attribute present) - Broadcast TWT.
9898  * Individual means the session is between the STA and the AP.
9899  * This session is established using a separate negotiation between
9900  * STA and AP.
9901  * Broadcast means the session is across multiple STAs and an AP. The
9902  * configuration parameters are announced in Beacon frames by the AP.
9903  * This is used in
9904  * 1. TWT SET Request and Response
9905  * 2. TWT GET Response
9906  *
9907  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9908  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9909  * specify the TWT request type. This is used in TWT SET operation.
9910  *
9911  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9912  * Enable (flag attribute present) - TWT with trigger support.
9913  * Disable (flag attribute not present) - TWT without trigger support.
9914  * Trigger means the AP will send the trigger frame to allow STA to send data.
9915  * Without trigger, the STA will wait for the MU EDCA timer before
9916  * transmitting the data.
9917  * This is used in
9918  * 1. TWT SET Request and Response
9919  * 2. TWT GET Response
9920  *
9921  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9922  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9923  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9924  * NULL frame to AP.
9925  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9926  * This is a required parameter for
9927  * 1. TWT SET Request and Response
9928  * 2. TWT GET Response
9929  *
9930  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9931  * Flow ID is the unique identifier for each TWT session.
9932  * If not provided then dialog ID will be set to zero.
9933  * This is an optional parameter for
9934  * 1. TWT SET Request and Response
9935  * 2. TWT GET Request and Response
9936  * 3. TWT TERMINATE Request and Response
9937  * 4. TWT SUSPEND Request and Response
9938  * Flow ID values from 0 to 254 represent a single TWT session
9939  * Flow ID value of 255 represents all TWT sessions for the following
9940  * 1. TWT TERMINATE Request and Response
9941  * 2. TWT SUSPEND Request and Response
9942  * 4. TWT CLEAR STATISTICS request
9943  * 5. TWT GET STATISTICS request and response
9944  * If an invalid dialog ID is provided, status
9945  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9946  *
9947  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9948  * This attribute (exp) is used along with the mantissa to derive the
9949  * wake interval using the following formula:
9950  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9951  * Wake interval is the interval between 2 successive SP.
9952  * This is a required parameter for
9953  * 1. TWT SET Request and Response
9954  * 2. TWT GET Response
9955  *
9956  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9957  * Enable (flag attribute present) - Protection required.
9958  * Disable (flag attribute not present) - Protection not required.
9959  * If protection is enabled, then the AP will use protection
9960  * mechanism using RTS/CTS to self to reserve the airtime.
9961  * This is used in
9962  * 1. TWT SET Request and Response
9963  * 2. TWT GET Response
9964  *
9965  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9966  * This attribute is used as the SP offset which is the offset from
9967  * TSF after which the wake happens. The units are in microseconds. If
9968  * this attribute is not provided, then the value will be set to zero.
9969  * This is an optional parameter for
9970  * 1. TWT SET Request and Response
9971  * 2. TWT GET Response
9972  *
9973  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9974  * This is the duration of the service period. This is specified as
9975  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9976  * This is a required parameter for
9977  * 1. TWT SET Request and Response
9978  * 2. TWT GET Response
9979  *
9980  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9981  * This attribute is used to configure wake interval mantissa.
9982  * The units are in TU.
9983  * This is a required parameter for
9984  * 1. TWT SET Request and Response
9985  * 2. TWT GET Response
9986  *
9987  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9988  * This field is applicable for TWT response only.
9989  * This contains status values in enum qca_wlan_vendor_twt_status
9990  * and is passed to the userspace. This is used in TWT SET operation.
9991  * This is a required parameter for
9992  * 1. TWT SET Response
9993  * 2. TWT TERMINATE Response
9994  * 3. TWT SUSPEND Response
9995  * 4. TWT RESUME Response
9996  * 5. TWT NUDGE Response
9997  *
9998  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9999  * This field is applicable for TWT response only.
10000  * This field contains response type from the TWT responder and is
10001  * passed to the userspace. The values for this field are defined in
10002  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10003  * response.
10004  *
10005  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
10006  * In TWT setup command this field contains absolute TSF that will
10007  * be used by TWT requester during setup.
10008  * In TWT response this field contains absolute TSF value of the
10009  * wake time received from the TWT responder and is passed to
10010  * the userspace.
10011  * This is an optional parameter for
10012  * 1. TWT SET Request
10013  * This is a required parameter for
10014  * 1. TWT SET Response
10015  * 2. TWT GET Response
10016  *
10017  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10018  * Enable (flag attribute present) - Indicates that the TWT responder
10019  * supports reception of TWT information frame from the TWT requestor.
10020  * Disable (flag attribute not present) - Indicates that the responder
10021  * doesn't support reception of TWT information frame from requestor.
10022  * This is used in
10023  * 1. TWT SET Response
10024  * 2. TWT GET Response
10025  *
10026  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10027  * Represents the MAC address of the peer for which the TWT session
10028  * is being configured. This is used in AP mode to represent the respective
10029  * client.
10030  * In AP mode, this is a required parameter in response for
10031  * 1. TWT SET
10032  * 2. TWT GET
10033  * 3. TWT TERMINATE
10034  * 4. TWT SUSPEND
10035  * In STA mode, this is an optional parameter in request and response for
10036  * the above four TWT operations.
10037  * In AP mode, this is a required parameter in request for
10038  * 1. TWT GET
10039  * 2. TWT TERMINATE
10040  *
10041  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10042  * Minimum tolerance limit of wake interval parameter in microseconds.
10043  *
10044  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10045  * Maximum tolerance limit of wake interval parameter in microseconds.
10046  *
10047  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10048  * Minimum tolerance limit of wake duration parameter in microseconds.
10049  *
10050  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10051  * Maximum tolerance limit of wake duration parameter in microseconds.
10052  *
10053  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10054  * TWT state for the given dialog id. The values for this are represented
10055  * by enum qca_wlan_twt_setup_state.
10056  * This is obtained through TWT GET operation.
10057  *
10058  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10059  * This attribute is used to configure wake interval mantissa.
10060  * The unit is microseconds. This attribute, when specified, takes
10061  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10062  * This parameter is used for
10063  * 1. TWT SET Request and Response
10064  * 2. TWT GET Response
10065  *
10066  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10067  * This attribute is used to configure Broadcast TWT ID.
10068  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10069  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10070  * This parameter is used for
10071  * 1. TWT SET Request
10072  * 2. TWT TERMINATE Request
10073  *
10074  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10075  * This attribute is used to configure Broadcast TWT recommendation.
10076  * The Broadcast TWT Recommendation subfield contains a value that indicates
10077  * recommendations on the types of frames that are transmitted by TWT
10078  * scheduled STAs and scheduling AP during the broadcast TWT SP.
10079  * The allowed values are 0 - 3.
10080  * This parameter is used for
10081  * 1. TWT SET Request
10082  *
10083  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10084  * This attribute is used to configure Broadcast TWT Persistence.
10085  * The Broadcast TWT Persistence subfield indicates the number of
10086  * TBTTs during which the Broadcast TWT SPs corresponding to this
10087  * broadcast TWT Parameter set are present. The number of beacon intervals
10088  * during which the Broadcast TWT SPs are present is equal to the value in the
10089  * Broadcast TWT Persistence subfield plus 1 except that the value 255
10090  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10091  * This parameter is used for
10092  * 1. TWT SET Request
10093  *
10094  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10095  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
10096  * from TWT response frame.
10097  * This parameter is used for
10098  * 1. TWT SET Response
10099  * 2. TWT GET Response
10100  *
10101  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10102  * This attribute is used to configure the announce timeout value (in us) in
10103  * the firmware. This timeout value is only applicable for the announced TWT. If
10104  * the timeout value is non-zero the firmware waits up to the timeout value to
10105  * use Data frame as an announcement frame. If the timeout value is 0 the
10106  * firmware sends an explicit QoS NULL frame as the announcement frame on SP
10107  * start. The default value in the firmware is 0.
10108  * This parameter is used for
10109  * 1. TWT SET Request
10110  *
10111  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
10112  * alignment.
10113  */
10114 enum qca_wlan_vendor_attr_twt_setup {
10115 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10116 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10117 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10118 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10119 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10120 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10121 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10122 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10123 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10124 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10125 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10126 
10127 	/* TWT Response only attributes */
10128 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10129 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10130 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10131 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10132 
10133 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
10134 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10135 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10136 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10137 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10138 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
10139 
10140 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10141 
10142 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10143 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10144 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10145 
10146 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10147 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10148 
10149 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
10150 
10151 	/* keep last */
10152 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10153 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10154 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10155 };
10156 
10157 /**
10158  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10159  * TWT operation
10160  *
10161  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10162  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10163  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10164  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10165  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10166  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10167  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10168  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10169  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10170  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10171  * request/response frame
10172  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10173  * frame
10174  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10175  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10176  * unknown reason
10177  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10178  * suspend state
10179  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10180  * invalid IE in the received TWT frame
10181  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10182  * the responder are not in the specified range
10183  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10184  * session due to request from the responder. Used on the TWT_TERMINATE
10185  * notification from the firmware.
10186  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10187  * session due to roaming. Used on the TWT_TERMINATE notification from the
10188  * firmware.
10189  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10190  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
10191  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10192  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10193  * request due to roaming in progress.
10194  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10195  * setup request due to channel switch in progress.
10196  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10197  * request due to scan in progress.
10198  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10199  * terminate an existing TWT session on power save exit request from userspace.
10200  * Used on the TWT_TERMINATE notification from the driver/firmware.
10201  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10202  * required bit in its capabilities.
10203  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10204  * the TWT required bit(1->0) in its capabilities.
10205  */
10206 enum qca_wlan_vendor_twt_status {
10207 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10208 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10209 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10210 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10211 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10212 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10213 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10214 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10215 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10216 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10217 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10218 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10219 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10220 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
10221 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10222 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10223 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10224 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
10225 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10226 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10227 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10228 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10229 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
10230 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10231 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
10232 };
10233 
10234 /**
10235  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
10236  * TWT (Target Wake Time) resume request. These attributes are sent as part of
10237  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
10238  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10239  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10240  *
10241  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
10242  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10243  * These attributes are used as the SP offset which is the offset from TSF after
10244  * which the wake happens. The units are in microseconds. Please note that
10245  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10246  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10247  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10248  * will be set to zero.
10249  *
10250  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10251  * This attribute represents the next TWT subfield size.
10252  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10253  * and 4 for 64 bits.
10254  *
10255  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10256  * Flow ID is the unique identifier for each TWT session. This attribute
10257  * represents the respective TWT session to resume.
10258  * Flow ID values from 0 to 254 represent a single TWT session
10259  * Flow ID value of 255 represents all TWT sessions.
10260  * If an invalid dialog id is provided, status
10261  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10262  *
10263  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10264  * Represents the MAC address of the peer to which TWT Resume is
10265  * being sent. This is used in AP mode to represent the respective
10266  * client and is a required parameter. In STA mode, this is an optional
10267  * parameter
10268  */
10269 enum qca_wlan_vendor_attr_twt_resume {
10270 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10271 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10272 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
10273 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10274 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10275 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
10276 
10277 	/* keep last */
10278 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10279 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10280 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10281 };
10282 
10283 /**
10284  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10285  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10286  * and resume in a single request. These attributes are sent as part of
10287  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10288  *
10289  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10290  * Flow ID is the unique identifier for each TWT session. This attribute
10291  * represents the respective TWT session to suspend and resume.
10292  * Flow ID values from 0 to 254 represent a single TWT session
10293  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10294  * and response.
10295  * If an invalid dialog id is provided, status
10296  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10297  *
10298  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10299  * This attribute is used as the SP offset which is the offset from
10300  * TSF after which the wake happens. The units are in microseconds.
10301  *
10302  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10303  * This attribute represents the next TWT subfield size.
10304  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10305  * and 4 for 64 bits.
10306  *
10307  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10308  * Represents the MAC address of the peer to which TWT Suspend and Resume is
10309  * being sent. This is used in AP mode to represent the respective
10310  * client and is a required parameter. In STA mode, this is an optional
10311  * parameter.
10312  *
10313  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10314  * This field contains absolute TSF value of the time at which the TWT
10315  * session will be resumed.
10316  *
10317  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10318  * This field will be used when device supports Flexible TWT.
10319  * This field contains an offset value by which to shift the starting time
10320  * of the next service period. The value of offset can be negative or positive.
10321  * If provided, this attribute will override
10322  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10323  *
10324  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
10325  * alignment.
10326  */
10327 enum qca_wlan_vendor_attr_twt_nudge {
10328 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10329 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10330 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10331 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10332 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10333 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10334 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10335 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
10336 
10337 	/* keep last */
10338 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10339 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10340 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10341 };
10342 
10343 /**
10344  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10345  * TWT (Target Wake Time) get statistics and clear statistics request.
10346  * These attributes are sent as part of
10347  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10348  *
10349  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10350  * Flow ID is the unique identifier for each TWT session. This attribute
10351  * represents the respective TWT session for get and clear TWT statistics.
10352  * Flow ID values from 0 to 254 represent a single TWT session
10353  * Flow ID value of 255 represents all TWT sessions in
10354  * 1) TWT GET STATISTICS request and response
10355  * 2) TWT CLEAR STATISTICS request
10356  *
10357  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10358  * Represents the MAC address of the peer for which TWT Statistics
10359  * is required.
10360  * In AP mode this is used to represent the respective
10361  * client and is a required parameter for
10362  * 1) TWT GET STATISTICS request and response
10363  * 2) TWT CLEAR STATISTICS request and response
10364  * In STA mode, this is an optional parameter.
10365  *
10366  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10367  * This is the duration of the service period in microseconds.
10368  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10369  *
10370  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10371  * Average of the actual wake duration observed so far. Unit is microseconds.
10372  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10373  *
10374  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10375  * The number of TWT service periods elapsed so far.
10376  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10377  *
10378  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10379  * This is the minimum value of the wake duration observed across
10380  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10381  * microseconds.
10382  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10383  *
10384  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
10385  * This is the maximum value of wake duration observed across
10386  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10387  * microseconds.
10388  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10389  *
10390  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10391  * Average number of MPDUs transmitted successfully across
10392  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10393  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10394  *
10395  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10396  * Average number of MPDUs received successfully across
10397  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10398  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10399  *
10400  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10401  * Average number of bytes transmitted successfully across
10402  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10403  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10404  *
10405  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
10406  * Average number of bytes received successfully across
10407  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10408  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10409  *
10410  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10411  * Status of the TWT GET STATISTICS request.
10412  * This contains status values in enum qca_wlan_vendor_twt_status
10413  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10414  */
10415 enum qca_wlan_vendor_attr_twt_stats {
10416 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10417 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10418 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10419 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10420 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10421 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10422 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10423 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10424 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10425 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10426 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10427 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10428 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10429 
10430 	/* keep last */
10431 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10432 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10433 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10434 };
10435 
10436 /**
10437  * qca_wlan_twt_get_capa  - Represents the bitmap of TWT capabilities
10438  * supported by the device and the peer.
10439  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10440  *
10441  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10442  * TWT non-scheduling STA. This capability is advertised in the HE
10443  * Capability/Extended Capabilities information element in the
10444  * Association Request frame by the device.
10445  *
10446  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
10447  * the TWT scheduling AP. This capability is advertised in the Extended
10448  * Capabilities/HE Capabilities information element.
10449  *
10450  * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
10451  * for the broadcast TWT functionality. On the responder side, this indicates
10452  * support for the role of broadcast TWT scheduling functionality. This
10453  * capability is advertised in the HE Capabilities information element.
10454  *
10455  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
10456  * This capability is advertised in the HE Capabilities information element.
10457  *
10458  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10459  * that it mandates the associated HE STAs to support TWT. This capability is
10460  * advertised by AP in the HE Operation Parameters field of the HE Operation
10461  * information element.
10462  */
10463 enum qca_wlan_twt_capa {
10464 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10465 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10466 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10467 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10468 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10469 };
10470 
10471 /**
10472  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10473  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10474  * operation.
10475  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10476  * Represents the MAC address of the peer for which the TWT capabilities
10477  * are being queried. This is used in AP mode to represent the respective
10478  * client. In STA mode, this is an optional parameter.
10479  *
10480  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10481  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10482  * enum qca_wlan_twt_capa.
10483  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10484  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10485  * enum qca_wlan_twt_capa.
10486  */
10487 enum qca_wlan_vendor_attr_twt_capability {
10488 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10489 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10490 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10491 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10492 
10493 	/* keep last */
10494 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10495 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10496 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10497 };
10498 
10499 /**
10500  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10501  * TWT (Target Wake Time) related parameters. It is used when
10502  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10503  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10504  *
10505  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10506  * This attribute configures AC parameters to be used for all TWT
10507  * sessions in AP mode.
10508  * Uses the enum qca_wlan_ac_type values.
10509  */
10510 enum qca_wlan_vendor_attr_twt_set_param {
10511 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10512 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10513 
10514 	/* keep last */
10515 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10516 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10517 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10518 };
10519 
10520 /**
10521  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10522  * the TWT responder
10523  *
10524  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10525  * parameters that are different from TWT requesting STA suggested
10526  * or demanded TWT parameters
10527  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10528  * parameters that are different from TWT requesting STA TWT suggested
10529  * or demanded parameters
10530  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10531  * setup
10532  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10533  * setup.
10534  */
10535 enum qca_wlan_vendor_twt_setup_resp_type {
10536 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10537 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10538 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10539 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10540 };
10541 
10542 /**
10543  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10544  * Represents the setup type being requested for TWT.
10545  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10546  * parameters but relying on AP to fill the parameters during the negotiation.
10547  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10548  * values which the AP may accept or AP may provide alternative parameters
10549  * which the STA may accept.
10550  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10551  * alternate parameters than the requested ones.
10552  */
10553 enum qca_wlan_vendor_twt_setup_req_type {
10554 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10555 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10556 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10557 };
10558 
10559 /**
10560  * enum qca_wlan_roam_scan_event_type - Type of roam scan event
10561  *
10562  * Indicates the type of roam scan event sent by firmware/driver.
10563  *
10564  * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
10565  * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
10566  */
10567 enum qca_wlan_roam_scan_event_type {
10568 	QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
10569 	QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
10570 };
10571 
10572 /**
10573  * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
10574  *
10575  * Indicates the reason for triggering roam scan by firmware/driver.
10576  *
10577  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
10578  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
10579  */
10580 enum qca_wlan_roam_scan_trigger_reason {
10581 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
10582 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
10583 };
10584 
10585 /**
10586  * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
10587  * roam scan related details from driver/firmware to user space. enum values
10588  * are used for NL attributes sent with
10589  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
10590  */
10591 enum qca_wlan_vendor_attr_roam_scan {
10592 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
10593 	/* Encapsulates type of roam scan event being reported. enum
10594 	 * qca_wlan_roam_scan_event_type describes the possible range of
10595 	 * values. u32 attribute.
10596 	 */
10597 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
10598 	/* Encapsulates reason for triggering roam scan. enum
10599 	 * qca_wlan_roam_scan_trigger_reason describes the possible range of
10600 	 * values. u32 attribute.
10601 	 */
10602 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
10603 
10604 	/* keep last */
10605 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
10606 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
10607 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
10608 };
10609 
10610 /**
10611  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10612  * transport modes and is used by the attribute
10613  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
10614  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10615  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
10616  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10617  * data. The data shall be encapsulated within
10618  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
10619  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10620  */
10621 enum qca_wlan_vendor_cfr_data_transport_modes {
10622 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10623 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10624 };
10625 
10626 /**
10627  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10628  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10629  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10630  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
10631  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
10632  * with phase
10633  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
10634  */
10635 enum qca_wlan_vendor_cfr_method {
10636 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10637 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10638 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10639 };
10640 
10641 /**
10642  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10643  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10644  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10645  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10646  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10647  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10648  * is provided by one or more of below attributes:
10649  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10650  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10651  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10652  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10653  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10654  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10655  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10656  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10657  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10658  */
10659 enum qca_wlan_vendor_cfr_capture_type {
10660 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10661 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10662 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10663 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10664 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10665 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10666 };
10667 
10668 /**
10669  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10670  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10671  * Channel Frequency Response capture parameters and enable periodic CFR
10672  * capture.
10673  *
10674  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10675  * MAC address of peer. This is for CFR version 1 only.
10676  *
10677  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10678  * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
10679  * capture. If this attribute is not present, peer CFR capture is disabled.
10680  *
10681  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10682  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10683  * Supported values: 20, 40, 80, 80+80, 160.
10684  * Note that all targets may not support all bandwidths.
10685  * This attribute is mandatory for version 1 if attribute
10686  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10687  *
10688  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10689  * Periodicity of CFR measurement in milliseconds.
10690  * Periodicity should be a multiple of Base timer.
10691  * Current Base timer value supported is 10 milliseconds (default).
10692  * 0 for one shot capture.
10693  * This attribute is mandatory for version 1 if attribute
10694  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10695  *
10696  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10697  * Method used to capture Channel Frequency Response.
10698  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10699  * This attribute is mandatory for version 1 if attribute
10700  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10701  *
10702  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10703  * Enable periodic CFR capture.
10704  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10705  * If this attribute is not present, periodic CFR capture is disabled.
10706  *
10707  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
10708  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10709  * can't be enabled at same time. This attribute is mandatory if target
10710  * support both versions and use one of them.
10711  *
10712  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10713  * This attribute is mandatory for version 2 if
10714  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10715  * Bits 15:0 bitfield indicates which group is to be enabled.
10716  * Bits 31:16 Reserved for future use.
10717  *
10718  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10719  * CFR capture duration in microsecond. This attribute is mandatory for
10720  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10721  *
10722  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10723  * CFR capture interval in microsecond. This attribute is mandatory for
10724  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10725  *
10726  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10727  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10728  * This attribute is mandatory for version 2.
10729  *
10730  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10731  * Bitfield indicating which user in the current UL MU transmissions are
10732  * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
10733  * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
10734  * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
10735  * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
10736  * reserved for future use. This is for CFR version 2 only.
10737  *
10738  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10739  * Indicates the number of consecutive RX frames to be skipped before CFR
10740  * capture is enabled again. This is for CFR version 2 only.
10741  *
10742  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10743  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10744  *
10745  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10746  * the following group attributes:
10747  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10748  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10749  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10750  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10751  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10752  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10753  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10754  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10755  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10756  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10757  *
10758  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10759  * Target supports multiple groups for some configurations. The group number
10760  * can be any value between 0 and 15. This is for CFR version 2 only.
10761  *
10762  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10763  * Transmitter address which is used to filter frames. This MAC address takes
10764  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
10765  * version 2 only.
10766  *
10767  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10768  * Receiver address which is used to filter frames. This MAC address takes
10769  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
10770  * version 2 only.
10771  *
10772  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10773  * Mask of transmitter address which is used to filter frames. This is for CFR
10774  * version 2 only.
10775  *
10776  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10777  * Mask of receiver address which is used to filter frames. This is for CFR
10778  * version 2 only.
10779  *
10780  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10781  * Indicates frames with a specific NSS will be filtered for CFR capture.
10782  * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
10783  * capture to be done for frames matching the NSS specified within this bitmask.
10784  * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
10785  *     bit 0 : NSS 1
10786  *     bit 1 : NSS 2
10787  *     ...
10788  *     bit 7 : NSS 8
10789  *
10790  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10791  * Indicates frames with a specific bandwidth will be filtered for CFR capture.
10792  * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
10793  * capture to be done for frames matching the bandwidths specified within this
10794  * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
10795  * numerated in enum nl80211_band (although not all bands may be supported
10796  * by a given device).
10797  *
10798  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10799  * Management frames matching the subtype filter categories will be filtered in
10800  * by MAC for CFR capture. This is a bitmask in which each bit represents the
10801  * corresponding Management frame subtype value per IEEE Std 802.11-2016,
10802  * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
10803  * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
10804  *
10805  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10806  * Control frames matching the subtype filter categories will be filtered in by
10807  * MAC for CFR capture. This is a bitmask in which each bit represents the
10808  * corresponding Control frame subtype value per IEEE Std 802.11-2016,
10809  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10810  *
10811  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10812  * Data frames matching the subtype filter categories will be filtered in by
10813  * MAC for CFR capture. This is a bitmask in which each bit represents the
10814  * corresponding Data frame subtype value per IEEE Std 802.11-2016,
10815  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
10816  *
10817  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10818  * Userspace can use this attribute to specify the driver about which transport
10819  * mode shall be used by the driver to send CFR data to userspace. Uses values
10820  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10821  * not present, the driver shall use the default transport mechanism which is
10822  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10823  *
10824  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10825  * Userspace can use this attribute to specify the nl port id of the application
10826  * which receives the CFR data and processes it further so that the drivers can
10827  * unicast the netlink events to a specific application. Optionally included
10828  * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10829  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10830  * shall multicast the netlink events when this attribute is not included.
10831  *
10832  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10833  * This attribute will be used by the driver to encapsulate and send CFR data
10834  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10835  * asynchronous event when the driver is configured to send CFR data using
10836  * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
10837  *
10838  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
10839  * alignment.
10840  */
10841 enum qca_wlan_vendor_peer_cfr_capture_attr {
10842 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10843 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10844 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10845 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10846 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10847 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10848 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10849 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10850 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10851 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10852 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10853 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10854 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10855 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10856 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10857 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10858 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10859 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10860 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10861 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10862 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10863 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10864 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10865 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10866 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10867 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10868 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10869 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10870 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10871 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
10872 
10873 	/* Keep last */
10874 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10875 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10876 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10877 };
10878 
10879 /**
10880  * enum qca_wlan_throughput_level - Current throughput level
10881  *
10882  * Indicates the current level of throughput calculated by the driver. The
10883  * driver may choose different thresholds to decide whether the throughput level
10884  * is low or medium or high based on variety of parameters like physical link
10885  * capacity of the current connection, the number of packets being dispatched
10886  * per second, etc. The throughput level events might not be consistent with the
10887  * actual current throughput value being observed.
10888  *
10889  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10890  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10891  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10892  */
10893 enum qca_wlan_throughput_level {
10894 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10895 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10896 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10897 };
10898 
10899 /**
10900  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10901  * report throughput changes from the driver to user space. enum values are used
10902  * for netlink attributes sent with
10903  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10904  */
10905 enum qca_wlan_vendor_attr_throughput_change {
10906 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10907 	/* Indicates the direction of throughput in which the change is being
10908 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10909 	 */
10910 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10911 	/* Indicates the newly observed throughput level. enum
10912 	 * qca_wlan_throughput_level describes the possible range of values.
10913 	 * u8 attribute.
10914 	 */
10915 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10916 	/* Indicates the driver's guidance on the new value to be set to
10917 	 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
10918 	 * driver may optionally include this attribute.
10919 	 */
10920 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10921 	/* Indicates the driver's guidance on the new value to be set to
10922 	 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
10923 	 * values are from -31 to 31. The driver may optionally include this
10924 	 * attribute.
10925 	 */
10926 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10927 	/* Indicates the driver's guidance on the new value to be set to
10928 	 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
10929 	 * optionally include this attribute.
10930 	 */
10931 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10932 
10933 	/* keep last */
10934 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10935 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10936 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10937 };
10938 
10939 /**
10940  * enum qca_coex_config_profiles - This enum defines different types of
10941  * traffic streams that can be prioritized one over the other during coex
10942  * scenarios.
10943  * The types defined in this enum are categorized in the below manner.
10944  * 0 - 31 values corresponds to WLAN
10945  * 32 - 63 values corresponds to BT
10946  * 64 - 95 values corresponds to Zigbee
10947  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10948  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10949  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10950  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10951  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10952  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10953  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10954  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10955  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10956  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10957  * @QCA_BT_A2DP: Prioritize BT A2DP
10958  * @QCA_BT_BLE: Prioritize BT BLE
10959  * @QCA_BT_SCO: Prioritize BT SCO
10960  * @QCA_ZB_LOW: Prioritize Zigbee Low
10961  * @QCA_ZB_HIGH: Prioritize Zigbee High
10962  */
10963 enum qca_coex_config_profiles {
10964 	/* 0 - 31 corresponds to WLAN */
10965 	QCA_WIFI_STA_DISCOVERY = 0,
10966 	QCA_WIFI_STA_CONNECTION = 1,
10967 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10968 	QCA_WIFI_STA_DATA = 3,
10969 	QCA_WIFI_STA_ALL = 4,
10970 	QCA_WIFI_SAP_DISCOVERY = 5,
10971 	QCA_WIFI_SAP_CONNECTION = 6,
10972 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10973 	QCA_WIFI_SAP_DATA = 8,
10974 	QCA_WIFI_SAP_ALL = 9,
10975 	QCA_WIFI_CASE_MAX = 31,
10976 	/* 32 - 63 corresponds to BT */
10977 	QCA_BT_A2DP = 32,
10978 	QCA_BT_BLE = 33,
10979 	QCA_BT_SCO = 34,
10980 	QCA_BT_CASE_MAX = 63,
10981 	/* 64 - 95 corresponds to Zigbee */
10982 	QCA_ZB_LOW = 64,
10983 	QCA_ZB_HIGH = 65,
10984 	QCA_ZB_CASE_MAX = 95,
10985 	/* 0xff is default value if the u8 profile value is not set. */
10986 	QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
10987 };
10988 
10989 /**
10990  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10991  * This enum defines the valid set of values of coex configuration types. These
10992  * values may used by attribute
10993  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10994  *
10995  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10996  *	weights to default values.
10997  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10998  *	weights with configurability value.
10999  */
11000 enum qca_vendor_attr_coex_config_types {
11001 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11002 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11003 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
11004 };
11005 
11006 /**
11007  * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
11008  *
11009  * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
11010  * length array of 8-bit values from enum qca_coex_config_profiles.
11011  * FW will prioritize the profiles in the order given in the array encapsulated
11012  * in this attribute.
11013  * For example:
11014  * -----------------------------------------------------------------------
11015  * |     1       |       34       |        32         |         65       |
11016  * -----------------------------------------------------------------------
11017  * If the attribute contains the values defined in above array then it means
11018  * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
11019  * 2) BT_SCO has priority over BT_A2DP.
11020  * 3) BT_A2DP has priority over ZIGBEE HIGH.
11021  * Profiles which are not listed in this array shall not be preferred over the
11022  * profiles which are listed in the array as a part of this attribute.
11023  */
11024 enum qca_vendor_attr_coex_config {
11025 	QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11026 	QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
11027 
11028 	/* Keep last */
11029 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
11030 	QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
11031 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
11032 };
11033 
11034 /**
11035  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11036  * attributes
11037  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11038  *
11039  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11040  * Indicate config type.
11041  * The config types are 32-bit values from qca_vendor_attr_coex_config_types
11042  *
11043  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11044  *	Indicate the Priority 1 profiles.
11045  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
11046  *	In same priority level, maximum to 4 profiles can be set here.
11047  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11048  *	Indicate the Priority 2 profiles.
11049  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
11050  *	In same priority level, maximum to 4 profiles can be set here.
11051  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11052  *	Indicate the Priority 3 profiles.
11053  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
11054  *	In same priority level, maximum to 4 profiles can be set here.
11055  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11056  *	Indicate the Priority 4 profiles.
11057  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
11058  *	In same priority level, maximum to 4 profiles can be set here.
11059  * NOTE:
11060  * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11061  * arrangement:
11062  *	1: In the same u32 attribute (priority x), the profiles enum values own
11063  *	same priority level.
11064  *	2: 0xff is default value if the u8 profile value is not set.
11065  *	3: max to 4 rules/profiles in same priority level.
11066  *	4: max to 4 priority level (priority 1 - priority 4)
11067  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
11068  *	hybrid rules not support.
11069  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11070  *	remain blank to reset all parameters.
11071  * For example:
11072  *
11073  *	If the attributes as follow:
11074  *	priority 1:
11075  *	------------------------------------
11076  *	|  0xff  |    0   |   1   |    2   |
11077  *	------------------------------------
11078  *	priority 2:
11079  *	-------------------------------------
11080  *	|  0xff  |  0xff  |  0xff  |   32   |
11081  *	-------------------------------------
11082  *	priority 3:
11083  *	-------------------------------------
11084  *	|  0xff  |  0xff  |  0xff  |   65   |
11085  *	-------------------------------------
11086  *	then it means:
11087  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11088  *		owns same priority level.
11089  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11090  *		has priority over BT_A2DP and ZB_HIGH.
11091  *	3: BT_A2DP has priority over ZB_HIGH.
11092  */
11093 enum qca_vendor_attr_coex_config_three_way {
11094 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11095 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11096 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11097 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11098 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11099 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11100 
11101 	/* Keep last */
11102 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11103 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11104 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11105 };
11106 
11107 /**
11108  * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
11109  *
11110  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
11111  * (STA/AP) for the connected link.
11112  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
11113  * &struct nl80211_sta_flag_update for the respective connected link. MAC
11114  * address of the peer represented by
11115  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
11116  */
11117 enum qca_wlan_vendor_attr_link_properties {
11118 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
11119 	/* 1 - 3 are reserved */
11120 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
11121 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
11122 
11123 	/* Keep last */
11124 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
11125 	QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
11126 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
11127 };
11128 
11129 /**
11130  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11131  * This enum defines the valid set of values of peer stats cache types. These
11132  * values are used by attribute
11133  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
11134  *
11135  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
11136  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
11137  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
11138  * statistics
11139  */
11140 enum qca_vendor_attr_peer_stats_cache_type {
11141 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11142 
11143 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11144 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11145 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11146 };
11147 
11148 /**
11149  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11150  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11151  * Information in these attributes is used to flush peer rate statistics from
11152  * the driver to user application.
11153  *
11154  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11155  * Indicate peer statistics cache type.
11156  * The statistics types are 32-bit values from
11157  * enum qca_vendor_attr_peer_stats_cache_type.
11158  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11159  * of size 6 octets, representing the peer MAC address.
11160  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11161  * containing buffer of statistics to send to application layer entity.
11162  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11163  * representing a cookie for peer unique session.
11164  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
11165  * 64-bit alignment.
11166  */
11167 enum qca_wlan_vendor_attr_peer_stats_cache_params {
11168 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11169 
11170 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11171 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11172 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11173 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
11174 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
11175 
11176 	/* Keep last */
11177 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11178 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11179 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11180 };
11181 
11182 /**
11183  * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
11184  * This enum defines all the possible states of Zigbee, which can be
11185  * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
11186  *
11187  * @ZIGBEE_IDLE: Zigbee in idle state
11188  * @ZIGBEE_FORM_NETWORK: Zigbee forming network
11189  * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
11190  * @ZIGBEE_JOIN: Zigbee joining network
11191  * @ZIGBEE_NETWORK_UP: Zigbee network is up
11192  * @ZIGBEE_HMI: Zigbee in HMI mode
11193  */
11194 enum qca_mpta_helper_attr_zigbee_state {
11195 	ZIGBEE_IDLE = 0,
11196 	ZIGBEE_FORM_NETWORK = 1,
11197 	ZIGBEE_WAIT_JOIN = 2,
11198 	ZIGBEE_JOIN = 3,
11199 	ZIGBEE_NETWORK_UP = 4,
11200 	ZIGBEE_HMI = 5,
11201 };
11202 
11203 /*
11204  * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
11205  * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
11206  */
11207 enum qca_mpta_helper_vendor_attr {
11208 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
11209 	/* Optional attribute used to update Zigbee state.
11210 	 * enum qca_mpta_helper_attr_zigbee_state.
11211 	 * NLA_U32 attribute.
11212 	 */
11213 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
11214 	/* Optional attribute used to configure WLAN duration for Shape-OCS
11215 	 * during interrupt.
11216 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
11217 	 * Value range 0 ~ 300 (ms).
11218 	 * NLA_U32 attribute.
11219 	 */
11220 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
11221 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
11222 	 * during interrupt.
11223 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
11224 	 * Value range 0 ~ 300 (ms).
11225 	 * NLA_U32 attribute.
11226 	 */
11227 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION  = 3,
11228 	/* Optional attribute used to configure WLAN duration for Shape-OCS
11229 	 * monitor period.
11230 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11231 	 * Value range 0 ~ 300 (ms)
11232 	 * NLA_U32 attribute
11233 	 */
11234 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11235 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
11236 	 * monitor period.
11237 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11238 	 * Value range 0 ~ 300 (ms)
11239 	 * NLA_U32 attribute
11240 	 */
11241 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION  = 5,
11242 	/* Optional attribute used to configure OCS interrupt duration.
11243 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11244 	 * Value range 1000 ~ 20000 (ms)
11245 	 * NLA_U32 attribute
11246 	 */
11247 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION  = 6,
11248 	/* Optional attribute used to configure OCS monitor duration.
11249 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11250 	 * Value range 1000 ~ 20000 (ms)
11251 	 * NLA_U32 attribute
11252 	 */
11253 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION  = 7,
11254 	/* Optional attribute used to notify WLAN firmware the current Zigbee
11255 	 * channel.
11256 	 * Value range 11 ~ 26
11257 	 * NLA_U32 attribute
11258 	 */
11259 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11260 	/* Optional attribute used to configure WLAN mute duration.
11261 	 * Value range 0 ~ 400 (ms)
11262 	 * NLA_U32 attribute
11263 	 */
11264 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION	= 9,
11265 
11266 	/* keep last */
11267 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11268 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11269 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11270 };
11271 
11272 /**
11273  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11274  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
11275  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11276  *
11277  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11278  * to request the driver to start reporting Beacon frames.
11279  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
11280  * request the driver to stop reporting Beacon frames.
11281  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11282  * userspace to report received Beacon frames.
11283  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11284  * to indicate that the driver is going to pause reporting Beacon frames.
11285  */
11286 enum qca_wlan_vendor_beacon_reporting_op_types {
11287 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11288 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11289 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11290 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11291 };
11292 
11293 /**
11294  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
11295  * of reasons for which the driver is pausing reporting Beacon frames. Will be
11296  * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11297  *
11298  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11299  * reasons.
11300  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11301  * driver/firmware is starting a scan.
11302  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11303  * driver/firmware disconnects from the ESS and indicates the disconnection to
11304  * userspace (non-seamless roaming case). This reason code will be used by the
11305  * driver/firmware to indicate stopping of beacon report events. Userspace will
11306  * need to start beacon reporting again (if desired) by sending vendor command
11307  * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11308  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11309  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11310  * completed.
11311  */
11312 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11313 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11314 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11315 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11316 };
11317 
11318 /*
11319  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11320  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11321  */
11322 enum qca_wlan_vendor_attr_beacon_reporting_params {
11323 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11324 	/* Specifies the type of operation that the vendor command/event is
11325 	 * intended for. Possible values for this attribute are defined in
11326 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11327 	 */
11328 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11329 	/* Optionally set by userspace to request the driver to report Beacon
11330 	 * frames using asynchronous vendor events when the
11331 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11332 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11333 	 * If this flag is not set, the driver will only update Beacon frames in
11334 	 * cfg80211 scan cache but not send any vendor events.
11335 	 */
11336 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11337 	/* Optionally used by userspace to request the driver/firmware to report
11338 	 * Beacon frames periodically when the
11339 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11340 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11341 	 * u32 attribute, indicates the period of Beacon frames to be reported
11342 	 * and in the units of beacon interval.
11343 	 * If this attribute is missing in the command, then the default value
11344 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11345 	 * Zero is an invalid value.
11346 	 * If a valid value is received for this attribute, the driver will
11347 	 * update the cfg80211 scan cache periodically as per the value received
11348 	 * in this attribute in addition to updating the cfg80211 scan cache
11349 	 * when there is significant change in Beacon frame IEs.
11350 	 */
11351 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11352 	/* Used by the driver to encapsulate the SSID when the
11353 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11354 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11355 	 * u8 array with a maximum size of 32.
11356 	 *
11357 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11358 	 * will be taken from the SSID element of the received Beacon frame.
11359 	 *
11360 	 * When generating beacon report from Multiple BSSID Beacon frame and if
11361 	 * the BSSID of the current connected BSS matches the BSSID of the
11362 	 * transmitting BSS, the SSID will be taken from the SSID element of the
11363 	 * received Beacon frame.
11364 	 *
11365 	 * When generating beacon report from Multiple BSSID Beacon frame and if
11366 	 * the BSSID of the current connected BSS matches the BSSID of one of
11367 	 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
11368 	 * included in the nontransmitted BSS profile whose derived BSSID is
11369 	 * same as the BSSID of the current connected BSS. When there is no
11370 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11371 	 * of current connected* BSS, this attribute will not be present.
11372 	 */
11373 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11374 	/* Used by the driver to encapsulate the BSSID of the AP to which STA is
11375 	 * currently connected to when the
11376 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11377 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11378 	 * fixed size of 6 bytes.
11379 	 *
11380 	 * When generating beacon report from a Multiple BSSID beacon and the
11381 	 * current connected BSSID matches one of the nontransmitted BSSIDs in a
11382 	 * Multiple BSSID set, this BSSID will be that particular nontransmitted
11383 	 * BSSID and not the transmitted BSSID (i.e., the transmitting address
11384 	 * of the Beacon frame).
11385 	 */
11386 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11387 	/* Used by the driver to encapsulate the frequency in MHz on which
11388 	 * the Beacon frame was received when the
11389 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11390 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11391 	 * u32 attribute.
11392 	 */
11393 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11394 	/* Used by the driver to encapsulate the Beacon interval
11395 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11396 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11397 	 * u16 attribute. The value will be copied from the Beacon frame and the
11398 	 * units are TUs.
11399 	 */
11400 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11401 	/* Used by the driver to encapsulate the Timestamp field from the Beacon
11402 	 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
11403 	 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11404 	 * u64 attribute.
11405 	 */
11406 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11407 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11408 	 * Beacon frame is received in the driver when the
11409 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11410 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11411 	 * the units of nanoseconds. This value is expected to have accuracy of
11412 	 * about 10 ms.
11413 	 */
11414 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11415 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11416 	 * which this event is generated when the
11417 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11418 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11419 	 */
11420 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11421 	/* Used by the driver to specify the reason for the driver/firmware to
11422 	 * pause sending beacons to userspace when the
11423 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11424 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11425 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11426 	 * attribute.
11427 	 */
11428 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11429 	/* Used by the driver to specify whether the driver will automatically
11430 	 * resume reporting beacon events to userspace later (for example after
11431 	 * the ongoing off-channel activity is completed etc.) when the
11432 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11433 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11434 	 */
11435 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11436 	/* Optionally set by userspace to request the driver not to resume
11437 	 * beacon reporting after a pause is completed, when the
11438 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11439 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11440 	 * If this flag is set, the driver will not resume beacon reporting
11441 	 * after any pause in beacon reporting is completed. Userspace has to
11442 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11443 	 * to initiate beacon reporting again. If this flag is set in the recent
11444 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11445 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11446 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11447 	 * set by the driver. Setting this flag until and unless there is a
11448 	 * specific need is not recommended as there is a chance of some beacons
11449 	 * received after pause command and next start command being not
11450 	 * reported.
11451 	 */
11452 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11453 	/* Attribute used for padding for 64-bit alignment */
11454 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
11455 
11456 	/* Keep last */
11457 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11458 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11459 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11460 };
11461 
11462 /**
11463  * enum qca_vendor_interop_issues_ap_type - Interop issue types
11464  * This enum defines the valid set of values of interop issue types. These
11465  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
11466  *
11467  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
11468  * when the STA's Qpower feature is enabled.
11469  */
11470 enum qca_vendor_interop_issues_ap_type {
11471 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
11472 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
11473 };
11474 
11475 /**
11476  * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
11477  * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
11478  *
11479  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
11480  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
11481  * 32-bit unsigned value. The values defined in enum
11482  * qca_vendor_interop_issues_ap_type are used.
11483  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
11484  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
11485  * It is present and mandatory for the command but is not used for the event
11486  * since only a single BSSID is reported in an event.
11487  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
11488  * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
11489  * attribute in command case and without such encapsulation in the event case.
11490  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
11491  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
11492  */
11493 enum qca_vendor_attr_interop_issues_ap {
11494 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
11495 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
11496 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
11497 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
11498 	/* keep last */
11499 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
11500 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
11501 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
11502 };
11503 
11504 /**
11505  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11506  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11507  *
11508  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11509  * a virtual device.
11510  *
11511  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11512  * a physical device.
11513  */
11514 enum qca_vendor_oem_device_type {
11515 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11516 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11517 };
11518 
11519 /**
11520  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
11521  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11522  *
11523  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11524  * used to set/query the data to/from the firmware. On query, the same
11525  * attribute is used to carry the respective data in the reply sent by the
11526  * driver to userspace. The request to set/query the data and the format of the
11527  * respective data from the firmware are embedded in the attribute. The
11528  * maximum size of the attribute payload is 1024 bytes.
11529  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11530  * attribute when the data is queried from the firmware.
11531  *
11532  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11533  * based on this field. This optional attribute is included to specify whether
11534  * the device type is a virtual device or a physical device for the
11535  * command/event. This attribute can be omitted for a virtual device (default)
11536  * command/event.
11537  * This u8 attribute is used to carry information for the device type using
11538  * values defined by enum qca_vendor_oem_device_type.
11539  *
11540  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11541  * is set when the userspace queries data from the firmware. This attribute
11542  * should not be set when userspace sets the OEM data to the firmware.
11543  */
11544 enum qca_wlan_vendor_attr_oem_data_params {
11545 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11546 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11547 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11548 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11549 
11550 	/* keep last */
11551 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11552 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11553 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11554 };
11555 
11556 /**
11557  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11558  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11559  *
11560  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11561  * Nested attribute containing multiple ranges with following attributes:
11562  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11563  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11564  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11565  *
11566  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11567  * Starting center frequency in MHz.
11568  *
11569  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11570  * Ending center frequency in MHz.
11571  *
11572  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11573  * s32 attribute, optional. It is a per frequency range attribute.
11574  * The maximum TX power limit from user space is to be applied on an
11575  * unrestricted interface for corresponding frequency range. It is also
11576  * possible that the actual TX power may be even lower than this cap due to
11577  * other considerations such as regulatory compliance, SAR, etc. In absence of
11578  * this attribute the driver shall follow current behavior which means
11579  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11580  * power derived by the driver based on regulatory/SAR during interface up.
11581  *
11582  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11583  * u32 attribute, optional. Indicates all the interface types which are
11584  * restricted for all frequency ranges provided in
11585  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11586  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11587  * This attribute encapsulates bitmasks of interface types defined in
11588  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11589  * move to a safe channel and if no safe channel is available the driver shall
11590  * terminate that interface functionality. In absence of this attribute,
11591  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11592  * TX power limit derived from either
11593  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11594  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11595  * is not provided.
11596  */
11597 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11598 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11599 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11600 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11601 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11602 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11603 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11604 
11605 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11606 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11607 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11608 };
11609 
11610 /*
11611  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11612  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11613  */
11614 enum qca_wlan_vendor_attr_add_sta_node_params {
11615 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11616 	/* 6 byte MAC address of STA */
11617 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11618 	/* Authentication algorithm used by the station of size u16;
11619 	 * defined in enum nl80211_auth_type.
11620 	 */
11621 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11622 
11623 	/* keep last */
11624 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11625 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11626 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11627 };
11628 
11629 /**
11630  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11631  * This enum defines the valid set of values of BT coex chain mode.
11632  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11633  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11634  *
11635  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11636  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11637  * separated, hybrid mode.
11638  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11639  * separated, fixed FDD mode.
11640  */
11641 enum qca_btc_chain_mode {
11642 	QCA_BTC_CHAIN_SHARED = 0,
11643 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11644 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11645 };
11646 
11647 /* deprecated legacy name */
11648 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11649 
11650 /**
11651  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11652  * chain mode.
11653  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11654  *
11655  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11656  * Indicates the BT coex chain mode, are 32-bit values from
11657  * enum qca_btc_chain_mode. This attribute is mandatory.
11658  *
11659  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11660  * If set, vdev should be restarted when BT coex chain mode is updated.
11661  * This attribute is optional.
11662  */
11663 enum qca_vendor_attr_btc_chain_mode {
11664 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11665 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11666 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11667 
11668 	/* Keep last */
11669 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11670 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11671 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11672 };
11673 
11674 /**
11675  * enum qca_vendor_wlan_sta_flags - Station feature flags
11676  * Bits will be set to 1 if the corresponding features are enabled.
11677  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11678  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11679     for the station
11680  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11681     for the station
11682  */
11683 enum qca_vendor_wlan_sta_flags {
11684 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11685 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11686 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11687 };
11688 
11689 /**
11690  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11691  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11692  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11693  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11694  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11695  */
11696 enum qca_vendor_wlan_sta_guard_interval {
11697 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11698 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11699 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11700 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11701 };
11702 
11703 /**
11704  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11705  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11706  *
11707  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11708  * Required attribute in request for AP mode only, 6-byte MAC address,
11709  * corresponding to the station's MAC address for which information is
11710  * requested. For STA mode this is not required as the info always correspond
11711  * to the self STA and the current/last association.
11712  *
11713  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11714  * Optionally used in response, u32 attribute, contains a bitmap of different
11715  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11716  *
11717  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11718  * Optionally used in response, u32 attribute, possible values are defined in
11719  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11720  * Guard interval used by the station.
11721  *
11722  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11723  * Optionally used in response, u32 attribute, used in AP mode only.
11724  * Value indicates the number of data frames received from station with retry
11725  * bit set to 1 in FC.
11726  *
11727  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11728  * Optionally used in response, u32 attribute, used in AP mode only.
11729  * Counter for number of data frames with broadcast or multicast address in
11730  * the destination address received from the station.
11731  *
11732  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11733  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11734  * Value indicates the number of data frames successfully transmitted only
11735  * after retrying the packets and for which the TX status has been updated
11736  * back to host from target.
11737  *
11738  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11739  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11740  * Value indicates the number of data frames not transmitted successfully even
11741  * after retrying the packets for the number of times equal to the total number
11742  * of retries allowed for that packet and for which the TX status has been
11743  * updated back to host from target.
11744  *
11745  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11746  * Optionally used in response, u32 attribute, used in AP mode only.
11747  * Counter in the target for the number of data frames successfully transmitted
11748  * to the station.
11749  *
11750  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11751  * Optionally used in response, u32 attribute, used in AP mode only.
11752  * Value indicates the number of data frames successfully transmitted only
11753  * after retrying the packets.
11754  *
11755  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11756  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11757  * Value indicates the number of data frames not transmitted successfully even
11758  * after retrying the packets for the number of times equal to the total number
11759  * of retries allowed for that packet.
11760  *
11761  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11762  * the STA mode only. Represent the number of probe requests sent by the STA
11763  * while attempting to roam on missing certain number of beacons from the
11764  * connected AP. If queried in the disconnected state, this represents the
11765  * count for the last connected state.
11766  *
11767  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11768  * the STA mode. Represent the number of probe responses received by the station
11769  * while attempting to roam on missing certain number of beacons from the
11770  * connected AP. When queried in the disconnected state, this represents the
11771  * count when in last connected state.
11772  *
11773  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11774  * STA mode only. Represents the total number of frames sent out by STA
11775  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11776  * only for the connect session. Represents the count of last connected session,
11777  * when queried in the disconnected state.
11778  *
11779  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11780  * Total number of RTS sent out by the STA. This data is maintained per connect
11781  * session. Represents the count of last connected session, when queried in the
11782  * disconnected state.
11783  *
11784  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11785  * STA mode.Represent the number of RTS transmission failure that reach retry
11786  * limit. This data is maintained per connect session. Represents the count of
11787  * last connected session, when queried in the disconnected state.
11788  *
11789  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11790  * the STA mode. Represent the total number of non aggregated frames transmitted
11791  * by the STA. This data is maintained per connect session. Represents the count
11792  * of last connected session, when queried in the disconnected state.
11793  *
11794  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11795  * STA mode. Represent the total number of aggregated frames transmitted by the
11796  * STA. This data is maintained per connect session. Represents the count of
11797  * last connected session, when queried in the disconnected state.
11798  *
11799  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11800  * the STA mode. Represents the number of received frames with a good PLCP. This
11801  * data is maintained per connect session. Represents the count of last
11802  * connected session, when queried in the disconnected state.
11803  *
11804  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11805  * used in the STA mode. Represents the number of occasions that no valid
11806  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11807  * session. Represents the count of last connected session, when queried in the
11808  * disconnected state.
11809  *
11810  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11811  * STA mode. Represents the number of frames for which CRC check failed in the
11812  * MAC. This data is maintained per connect session. Represents the count of
11813  * last connected session, when queried in the disconnected state.
11814  *
11815  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11816  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11817  * data is maintained per connect session. Represents the count of last
11818  * connected session, when queried in the disconnected state.
11819  *
11820  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11821  * mode. Represents the number of received Block Acks. This data is maintained
11822  * per connect session. Represents the count of last connected session, when
11823  * queried in the disconnected state.
11824  *
11825  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11826  * mode. Represents the number of beacons received from the connected BSS. This
11827  * data is maintained per connect session. Represents the count of last
11828  * connected session, when queried in the disconnected state.
11829  *
11830  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11831  * STA mode. Represents the number of beacons received by the other BSS when in
11832  * connected state (through the probes done by the STA). This data is maintained
11833  * per connect session. Represents the count of last connected session, when
11834  * queried in the disconnected state.
11835  *
11836  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11837  * the STA mode. Represents the number of received DATA frames with good FCS and
11838  * matching Receiver Address when in connected state. This data is maintained
11839  * per connect session. Represents the count of last connected session, when
11840  * queried in the disconnected state.
11841  *
11842  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11843  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11844  * when in the connected state. This data is maintained per connect session.
11845  * Represents the count of last connected session, when queried in the
11846  * disconnected state.
11847  *
11848  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11849  * STA mode. This represents the target power in dBm for the transmissions done
11850  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11851  * connect session. Represents the count of last connected session, when
11852  * queried in the disconnected state.
11853  *
11854  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11855  * STA mode. This represents the Target power in dBm for transmissions done to
11856  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11857  * session. Represents the count of last connected session, when queried in the
11858  * disconnected state.
11859  *
11860  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11861  * STA mode. This represents the Target power in dBm for transmissions done to
11862  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11863  * Represents the count of last connected session, when queried in the
11864  * disconnected state.
11865  *
11866  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11867  * STA mode. This represents the Target power in dBm for transmissions done to
11868  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11869  * session. Represents the count of last connected session, when queried in
11870  * the disconnected state.
11871  *
11872  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11873  * STA mode. This represents the Target power in dBm for for transmissions done
11874  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11875  * Represents the count of last connected session, when queried in the
11876  * disconnected state.
11877  *
11878  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11879  * in the STA mode. This represents the Nested attribute representing the
11880  * overflow counts of each receive buffer allocated to the hardware during the
11881  * STA's connection. The number of hw buffers might vary for each WLAN
11882  * solution and hence this attribute represents the nested array of all such
11883  * HW buffer count. This data is maintained per connect session. Represents
11884  * the count of last connected session, when queried in the disconnected state.
11885  *
11886  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11887  * allowed as per the regulatory requirements for the current or last connected
11888  * session. Used in the STA mode.
11889  *
11890  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11891  * (dBm) used by the station in its latest unicast frame while communicating
11892  * to the AP in the connected state. When queried in the disconnected state,
11893  * this represents the TX power used by the STA with last AP communication
11894  * when in connected state.
11895  *
11896  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11897  * level used to adjust the RX sensitivity. Represents the current ANI level
11898  * when queried in the connected state. When queried in the disconnected
11899  * state, this corresponds to the latest ANI level at the instance of
11900  * disconnection.
11901  *
11902  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
11903  * the raw information elements from Beacon frames. Represents the Beacon frames
11904  * of the current BSS in the connected state. When queried in the disconnected
11905  * state, these IEs correspond to the last connected BSSID.
11906  *
11907  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
11908  * containing the raw information elements from Probe Response frames.
11909  * Represents the Probe Response frames of the current BSS in the connected
11910  * state. When queried in the disconnected state, these IEs correspond to the
11911  * last connected BSSID.
11912  *
11913  * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
11914  * disconnect reason for the last disconnection if the disconnection is
11915  * triggered from the host driver. The values are referred from
11916  * enum qca_disconnect_reason_codes.
11917  *
11918  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11919  * only. This represents the number of group addressed robust management frames
11920  * received from this station with an invalid MIC or a missing MME when PMF is
11921  * enabled.
11922  *
11923  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11924  * only. This represents the number of group addressed robust management frames
11925  * received from this station with the packet number less than or equal to the
11926  * last received packet number when PMF is enabled.
11927  *
11928  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11929  * mode only. This represents the number of Beacon frames received from this
11930  * station with an invalid MIC or a missing MME when beacon protection is
11931  * enabled.
11932  *
11933  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11934  * only. This represents number of Beacon frames received from this station with
11935  * the packet number less than or equal to the last received packet number when
11936  * beacon protection is enabled.
11937  *
11938  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11939  * STA mode only. The driver uses this attribute to populate the connection
11940  * failure reason codes and the values are defined in
11941  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11942  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11943  * a connection failure indication from the driver. The driver shall not
11944  * include this attribute in response to the
11945  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
11946  * failure observed in the last attempted connection.
11947  *
11948  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11949  * used by the station in its last TX frame while communicating to the AP in the
11950  * connected state. When queried in the disconnected state, this represents the
11951  * rate used by the STA in the last TX frame to the AP when it was connected.
11952  * This attribute is used for STA mode only.
11953  *
11954  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11955  * This represents the rate index used by the STA for the last TX frame to the
11956  * AP. When queried in the disconnected state, this gives the last RIX used by
11957  * the STA in the last TX frame to the AP when it was connected.
11958  *
11959  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11960  * mode only. This represents the number of times the STA TSF goes out of sync
11961  * from the AP after the connection. If queried in the disconnected state, this
11962  * gives the count of TSF out of sync for the last connection.
11963  *
11964  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11965  * mode only. This represents the roam trigger reason for the last roaming
11966  * attempted by the firmware. This can be queried either in connected state or
11967  * disconnected state. Each bit of this attribute represents the different
11968  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11969  *
11970  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11971  * only. This represents the roam fail reason for the last failed roaming
11972  * attempt by the firmware. Different roam failure reason codes are specified
11973  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11974  * connected state or disconnected state.
11975  *
11976  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11977  * STA mode only. This represents the roam invoke fail reason for the last
11978  * failed roam invoke. Different roam invoke failure reason codes
11979  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11980  * queried either in connected state or disconnected state.
11981  *
11982  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11983  * This represents the average congestion duration of uplink frames in MAC
11984  * queue in unit of ms. This can be queried either in connected state or
11985  * disconnected state.
11986  *
11987  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
11988  * values, used in AP mode. This represents the MPDU packet count per MCS
11989  * rate value of TX packets. Every index of this nested attribute corresponds
11990  * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
11991  * queried in connected state.
11992  *
11993  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
11994  * values, used in AP mode. This represents the MPDU packet count per MCS
11995  * rate value of RX packets. Every index of this nested attribute corresponds
11996  * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
11997  * queried in connected state.
11998  *
11999  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
12000  * 64-bit alignment.
12001  */
12002 enum qca_wlan_vendor_attr_get_sta_info {
12003 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12004 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12005 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12006 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12007 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12008 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12009 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12010 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12011 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12012 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12013 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
12014 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12015 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12016 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12017 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12018 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12019 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12020 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12021 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12022 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12023 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12024 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12025 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12026 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12027 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12028 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12029 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12030 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12031 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12032 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12033 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12034 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12035 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12036 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12037 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12038 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12039 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
12040 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
12041 	QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
12042 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12043 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12044 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12045 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12046 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
12047 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12048 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12049 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12050 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12051 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12052 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
12053 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
12054 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12055 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
12056 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
12057 
12058 	/* keep last */
12059 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12060 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12061 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12062 };
12063 
12064 /**
12065  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
12066  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
12067  *
12068  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
12069  * Used in STA mode. This attribute represents the list of channel center
12070  * frequencies in MHz (u32) the station has learnt during the last connection
12071  * or roaming attempt. This information shall not signify the channels for
12072  * an explicit scan request from the user space. Host drivers can update this
12073  * information to the user space in both connected and disconnected state.
12074  * In the disconnected state this information shall signify the channels
12075  * scanned in the last connection/roam attempt that lead to the disconnection.
12076  */
12077 enum qca_wlan_vendor_attr_update_sta_info {
12078 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
12079 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
12080 
12081 	/* keep last */
12082 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
12083 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
12084 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
12085 };
12086 
12087 /**
12088  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12089  * Used when the driver triggers the STA to disconnect from the AP.
12090  *
12091  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12092  * disconnection with the AP due to unspecified reasons.
12093  *
12094  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12095  * disconnection with the AP due to a roaming failure. This roaming is triggered
12096  * internally (host driver/firmware).
12097  *
12098  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12099  * the AP when the user/external triggered roaming fails.
12100  *
12101  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12102  * by the host driver whenever gateway reachability failure is detected and the
12103  * driver disconnects with AP.
12104  *
12105  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12106  * the AP on a channel switch announcement from it with an unsupported channel.
12107  *
12108  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12109  * with indoor channels disabled and if the STA is connected on one of these
12110  * disabled channels, the host driver disconnected the STA with this reason
12111  * code.
12112  *
12113  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12114  * explicit request from the user to disable the current operating channel.
12115  *
12116  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12117  * the internal host driver/firmware recovery.
12118  *
12119  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12120  * a timeout for the key installations from the user space.
12121  *
12122  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12123  * STA on a band change request from the user space to a different band from the
12124  * current operation channel/band.
12125  *
12126  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12127  * interface down trigger from the user space.
12128  *
12129  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12130  * STA on getting continuous transmission failures for multiple Data frames.
12131  *
12132  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12133  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12134  * represents inactivity from AP on such transmissions.
12135 
12136  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12137  * disconnection when SA Query times out (AP does not respond to SA Query).
12138  *
12139  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12140  * STA on missing the beacons continuously from the AP.
12141  *
12142  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12143  * able to move to the channel mentioned by the AP in CSA.
12144  *
12145  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12146  */
12147 enum qca_disconnect_reason_codes {
12148 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12149 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12150 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12151 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12152 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12153 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12154 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12155 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12156 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
12157 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
12158 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
12159 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
12160 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
12161 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
12162 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
12163 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
12164 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
12165 };
12166 
12167 /**
12168  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
12169  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
12170  *
12171  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
12172  * This attribute represents the driver specific reason codes (local
12173  * driver/firmware initiated reasons for disconnection) defined
12174  * in enum qca_disconnect_reason_codes.
12175  */
12176 enum qca_wlan_vendor_attr_driver_disconnect_reason {
12177 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
12178 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
12179 
12180 	/* keep last */
12181 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
12182 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
12183 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
12184 };
12185 
12186 /**
12187  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
12188  *
12189  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
12190  */
12191 enum qca_wlan_tspec_operation {
12192 	QCA_WLAN_TSPEC_ADD = 0,
12193 	QCA_WLAN_TSPEC_DEL = 1,
12194 	QCA_WLAN_TSPEC_GET = 2,
12195 };
12196 
12197 /**
12198  * enum qca_wlan_tspec_direction - Direction in TSPEC
12199  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
12200  *
12201  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
12202  */
12203 enum qca_wlan_tspec_direction {
12204 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
12205 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
12206 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
12207 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
12208 };
12209 
12210 /**
12211  * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
12212  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
12213  *
12214  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
12215  */
12216 enum qca_wlan_tspec_ack_policy {
12217 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
12218 	QCA_WLAN_TSPEC_NO_ACK = 1,
12219 	/* Reserved */
12220 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
12221 };
12222 
12223 /**
12224  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
12225  * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
12226  *
12227  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
12228  * u8 attribute. Specify the TSPEC operation of this request. Possible values
12229  * are defined in enum qca_wlan_tspec_operation.
12230  * Mandatory attribute for all kinds of config TSPEC requests.
12231  *
12232  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
12233  * u8 attribute. TS ID. Possible values are 0-7.
12234  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
12235  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
12236  *
12237  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
12238  * u8 attribute. Direction of data carried by the TS. Possible values are
12239  * defined in enum qca_wlan_tspec_direction.
12240  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12241  *
12242  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
12243  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
12244  * with the TS. set - enabled, not set - disabled.
12245  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12246  *
12247  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
12248  * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
12249  * belonging to this TS. Possible values are 0-7.
12250  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12251  *
12252  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
12253  * u8 attribute. Indicate whether MAC acknowledgements are required for
12254  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
12255  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
12256  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12257  *
12258  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
12259  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
12260  * belonging to this TS.
12261  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12262  *
12263  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
12264  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
12265  * belonging to this TS.
12266  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12267  *
12268  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
12269  * u32 attribute. Specify the minimum interval in microseconds between the
12270  * start of two successive SPs.
12271  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12272  *
12273  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
12274  * u32 attribute. Specify the maximum interval in microseconds between the
12275  * start of two successive SPs.
12276  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12277  *
12278  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
12279  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12280  * without arrival or transfer of an MPDU belonging to the TS before this TS
12281  * is deleted by the MAC entity at the HC.
12282  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12283  *
12284  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
12285  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12286  * without arrival or transfer of an MSDU belonging to the TS before the
12287  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
12288  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
12289  * interval is always less than or equal to the inactivity interval.
12290  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12291  *
12292  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
12293  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
12294  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12295  * bounds of this TSPEC.
12296  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12297  *
12298  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
12299  * u32 attribute. Indicate the average data rate in bps specified at the MAC
12300  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12301  * bounds of this TSPEC.
12302  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12303  *
12304  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
12305  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
12306  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
12307  * the bounds of this TSPEC.
12308  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12309  *
12310  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
12311  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
12312  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
12313  * value of 0 indicates that there are no bursts.
12314  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12315  *
12316  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
12317  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
12318  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
12319  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12320  *
12321  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
12322  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12323  * and above the stated application rates required to transport an MSDU/A-MSDU
12324  * belonging to the TS in this TSPEC.
12325  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12326  */
12327 enum qca_wlan_vendor_attr_config_tspec {
12328 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12329 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12330 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12331 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12332 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12333 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12334 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12335 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12336 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12337 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12338 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12339 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12340 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12341 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12342 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12343 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12344 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12345 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12346 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12347 
12348 	/* keep last */
12349 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12350 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12351 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12352 };
12353 
12354 /**
12355  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12356  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12357  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12358  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12359  * frame
12360  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12361  * Request frame.
12362  */
12363 enum qca_wlan_vendor_oci_override_frame_type {
12364 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12365 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12366 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12367 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12368 };
12369 
12370 /**
12371  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12372  * OCI override request. These attributes are used inside nested attribute
12373  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12374  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12375  *
12376  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12377  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12378  * attribute to specify the frame type in which the OCI is to be overridden.
12379  *
12380  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12381  * OCI frequency (in MHz) to override in the specified frame type.
12382  */
12383 enum qca_wlan_vendor_attr_oci_override {
12384 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12385 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12386 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12387 
12388 	/* keep last */
12389 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12390 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12391 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12392 };
12393 
12394 /**
12395  * enum qca_wlan_medium_assess_type - Type of medium assess request
12396  *
12397  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12398  */
12399 enum qca_wlan_medium_assess_type {
12400 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12401 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12402 };
12403 
12404 /**
12405  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12406  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12407  *
12408  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12409  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12410  * Specify the type of medium assess request and indicate its type in response.
12411  * Possible values are defined in enum qca_wlan_medium_assess_type.
12412  *
12413  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12414  * u32 attribute. Mandatory in CCA request.
12415  * Specify the assessment period in terms of seconds. Assessment result will be
12416  * sent as the response to the CCA request after the assessment period.
12417  *
12418  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12419  * u32 attribute. Mandatory in response to CCA request.
12420  * Total timer tick count of the assessment cycle.
12421  *
12422  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12423  * u32 attribute. Mandatory in response to CCA request.
12424  * Timer tick count of idle time in the assessment cycle.
12425  *
12426  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12427  * u32 attribute. Mandatory in response to CCA request.
12428  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12429  *
12430  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12431  * u32 attribute. Mandatory in response to CCA request.
12432  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12433  *
12434  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12435  * s32 attribute. Mandatory in response to CCA request.
12436  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12437  *
12438  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12439  * s32 attribute. Mandatory in response to CCA request.
12440  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12441  *
12442  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12443  * u8 attribute. Mandatory in congestion report request.
12444  * 1-enable 0-disable.
12445  *
12446  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12447  * u8 attribute. Mandatory in congestion report enable request and will be
12448  * ignored if present in congestion report disable request. Possible values are
12449  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12450  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12451  * congestion percentage reaches the configured threshold.
12452  *
12453  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12454  * u8 attribute. Optional in congestion report enable request and will be
12455  * ignored if present in congestion report disable request.
12456  * Specify the interval of congestion report event in terms of seconds. Possible
12457  * values are 1-255. Default value 1 will be used if this attribute is omitted
12458  * or using invalid values.
12459  *
12460  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12461  * u8 attribute. Mandatory in congestion report event.
12462  * Indicate the actual congestion percentage. Possible values are 0-100.
12463  */
12464 enum qca_wlan_vendor_attr_medium_assess {
12465 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12466 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12467 
12468 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12469 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12470 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12471 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12472 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12473 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12474 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12475 
12476 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12477 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12478 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12479 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12480 
12481 	/* keep last */
12482 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12483 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12484 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12485 };
12486 
12487 /**
12488  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12489  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12490  *
12491  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12492  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12493  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12494  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
12495  *
12496  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12497  * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
12498  *
12499  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12500  * u8 attribute, required. Indicates group id of Tx VDEV.
12501  *
12502  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12503  * Nested attribute. This attribute shall be used by the driver to send
12504  * group information. The attributes defined in enum
12505  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12506  * are nested in this attribute.
12507  */
12508 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12509 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12510 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12511 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12512 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12513 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12514 
12515 	/* keep last */
12516 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12517 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12518 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12519 };
12520 
12521 /**
12522  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12523  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12524  *
12525  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12526  * u32 attribute, required. Contains interface index.
12527  *
12528  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12529  * u8 attribute, required. 0 - means vdev is in down state.
12530  * 1 - means vdev is in up state.
12531  */
12532 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12533 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12534 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12535 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12536 
12537 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12538 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12539 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12540 };
12541 
12542 /**
12543  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12544  *
12545  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12546  * STA interface has to be given while selecting the connection policies
12547  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12548  * An interface is set as primary through the attribute
12549  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12550  * applicable if the primary interface has not been set earlier.
12551  *
12552  * The intention is not to downgrade the primary STA performance, such as:
12553  * - Do not reduce the number of TX/RX chains of primary connection.
12554  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12555  *   chains.
12556  * - If using MCC, should set the MCC duty cycle of the primary connection to
12557  *   be higher than the secondary connection.
12558  *
12559  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12560  * subsequent STA connection shall be chosen to balance with the existing
12561  * concurrent STA's performance.
12562  * Such as
12563  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12564  *   capability.
12565  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12566  *   to the secondary.
12567  * - Prefer BSSID candidates which will help provide the best "overall"
12568  *   performance for all the STA connections.
12569  */
12570 enum qca_wlan_concurrent_sta_policy_config {
12571 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12572 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12573 };
12574 
12575 /**
12576  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12577  *
12578  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12579  * interface.
12580  *
12581  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12582  * to meet gaming audio latency requirements.
12583  * This policy is used only when the driver advertises support for
12584  * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
12585  *
12586  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12587  * concurrencies to meet lossless audio streaming requirements.
12588  * This policy is used only when the driver advertises support for
12589  * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
12590  *
12591  * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12592  * XR (eXtended Reality) requirements.
12593  */
12594 enum qca_wlan_concurrent_ap_policy_config {
12595 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12596 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12597 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12598 	QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
12599 };
12600 
12601 /**
12602  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12603  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12604  *
12605  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12606  * u8 attribute. Configures the concurrent STA policy configuration.
12607  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12608 
12609  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12610  * u8 attribute. Configures the concurrent AP policy configuration.
12611  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12612  */
12613 enum qca_wlan_vendor_attr_concurrent_policy {
12614 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12615 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12616 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12617 
12618 	/* keep last */
12619 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12620 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12621 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12622 
12623 };
12624 
12625 /* Compatibility defines for previously used enum
12626  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12627  * in any new implementation.
12628  */
12629 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12630 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12631 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12632 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12633 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12634 	qca_wlan_vendor_attr_concurrent_policy
12635 
12636 /**
12637  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12638  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12639  * attribute.
12640  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
12641  *	for unicast Probe Request frame.
12642  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12643  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12644  *	auth request.
12645  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12646  *	received from AP.
12647  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
12648  *	Association Request frame.
12649  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12650  *	Association Request frame.
12651  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
12652  *	frame is not received from AP.
12653  */
12654 enum qca_sta_connect_fail_reason_codes {
12655 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12656 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12657 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12658 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12659 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12660 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12661 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12662 };
12663 
12664 /**
12665  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12666  * filters defined in this enum are used in attribute
12667  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12668  *
12669  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12670  * shall filter the channels which are not usable because of coexistence with
12671  * cellular radio.
12672  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12673  * shall filter the channels which are not usable because of existing active
12674  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12675  *
12676  */
12677 enum qca_wlan_vendor_usable_channels_filter {
12678 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12679 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12680 };
12681 
12682 /**
12683  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12684  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12685  *
12686  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12687  * u32 attribute, required. Indicates the center frequency of the primary
12688  * channel in MHz.
12689  *
12690  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12691  * u32 attribute. Indicates the center frequency of the primary segment of the
12692  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12693  * 160 MHz, and 320 MHz channels.
12694  *
12695  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12696  * u32 attribute. Indicates the center frequency of the secondary segment of
12697  * 80+80 channel in MHz. This attribute is required only when
12698  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12699  *
12700  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12701  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12702  * values are defined in enum nl80211_chan_width.
12703  *
12704  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12705  * u32 attribute, required. Indicates all the interface types for which this
12706  * channel is usable. This attribute encapsulates bitmasks of interface types
12707  * defined in enum nl80211_iftype.
12708  *
12709  */
12710 enum qca_wlan_vendor_attr_chan_info {
12711 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12712 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12713 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12714 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12715 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12716 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12717 
12718 	/* keep last */
12719 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12720 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12721 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12722 };
12723 
12724 /**
12725  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12726  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12727  *
12728  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12729  * u32 attribute. Indicates the bands from which the channels should be reported
12730  * in response. This attribute encapsulates bit masks of bands defined in enum
12731  * nl80211_band. Optional attribute, if not present in the request the driver
12732  * shall return channels from all supported bands.
12733  *
12734  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12735  * u32 attribute. Indicates all the interface types for which the usable
12736  * channels information is requested. This attribute encapsulates bitmasks of
12737  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12738  * present in the request the driver shall send information of all supported
12739  * interface modes.
12740  *
12741  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12742  * u32 attribute. This attribute carries information of all filters that shall
12743  * be applied while populating usable channels information by the driver. This
12744  * attribute carries bit masks of different filters defined in enum
12745  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12746  * in the request the driver shall send information of channels without applying
12747  * any of the filters that can be configured through this attribute.
12748  *
12749  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12750  * Nested attribute. This attribute shall be used by the driver to send
12751  * usability information of each channel. The attributes defined in enum
12752  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12753  */
12754 enum qca_wlan_vendor_attr_usable_channels {
12755 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12756 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12757 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12758 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12759 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12760 
12761 	/* keep last */
12762 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12763 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12764 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12765 };
12766 
12767 /**
12768  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12769  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12770  *
12771  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12772  *	the list of radar history entries.
12773  *	Each entry contains freq, timestamp, and radar signal detect flag.
12774  *	The driver shall add an entry when CAC has finished, or radar signal
12775  *	has been detected post AP beaconing. The driver shall maintain at least
12776  *	8 entries in order to save CAC result for a 160 MHz channel.
12777  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12778  *	Channel frequency in MHz.
12779  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12780  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12781  *	or radar detection.
12782  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12783  *	This flag indicates radar signal has been detected.
12784  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
12785  *	64-bit alignment.
12786  */
12787 enum qca_wlan_vendor_attr_radar_history {
12788 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12789 
12790 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12791 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12792 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12793 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12794 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
12795 
12796 	/* keep last */
12797 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12798 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12799 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12800 };
12801 
12802 /**
12803  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12804  *
12805  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12806  *	target exited MCC state and cleared the quota information. In the
12807  *	command it clears MCC quota setting and restores adaptive scheduling.
12808  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12809  *      will not be changed.
12810  *      This quota type is present in command/event.
12811  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12812  *      and the target may change the quota based on the data activity.
12813  *      This quota type is only present in event.
12814  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
12815  *      by the target for low latency.
12816  *      This quota type is only present in command.
12817  */
12818 enum qca_wlan_vendor_mcc_quota_type {
12819 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12820 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12821 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12822 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
12823 };
12824 
12825 /**
12826  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12827  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12828  * quota information or as a command to set the required MCC quota for an
12829  * interface.
12830  *
12831  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12832  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12833  * In a command this specifies the MCC quota type to be set for the interface.
12834  * In an event this provides the current quota type in force.
12835  * This is required in a command and an event.
12836  *
12837  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12838  * the list of channel quota entries.
12839  * In an event each entry contains the frequency and respective time quota for
12840  * all the MCC interfaces.
12841  * In a command it specifies the interface index and respective time quota.
12842  * In a command only one entry (ifindex, quota pair) may be specified.
12843  *
12844  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12845  * Channel frequency in MHz. This is present only in an event.
12846  *
12847  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12848  * Channel time quota expressed as percentage.
12849  * This is present in an event and a command.
12850  * In an command, the user shall specify the quota to be allocated for the
12851  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12852  * In an event this provides the existing quota for the channel.
12853  *
12854  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12855  * Specifies the interface index (netdev) for which the corresponding
12856  * configurations are applied. This is required in a command only. Only one
12857  * interface index may be specified. If not specified, the configuration is
12858  * rejected.
12859  *
12860  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
12861  * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
12862  * low latency mode. The firmware will do optimization for low
12863  * latency in Multi-Channel concurrency state if enabled. And all existing
12864  * user quota setting will be overwritten by the target.
12865  * 0 - disable(default), 1 - enable.
12866  * It is only present in a command with quota type of
12867  * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
12868  */
12869 enum qca_wlan_vendor_attr_mcc_quota {
12870 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12871 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12872 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12873 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12874 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12875 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12876 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
12877 
12878 	/* keep last */
12879 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12880 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12881 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12882 };
12883 
12884 /**
12885  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
12886  * are used by the attribute
12887  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
12888  *
12889  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
12890  *  invoke roam.
12891  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
12892  *  detection failed when the roam trigger.
12893  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
12894  */
12895 
12896 enum qca_wlan_roam_stats_invoke_reason {
12897 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
12898 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
12899 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
12900 };
12901 
12902 /**
12903  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
12904  * values are used by the attribute
12905  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
12906  *
12907  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
12908  *  roam by kickout.
12909  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
12910  *  trigger by kickout.
12911  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
12912  *  roam trigger by kickout.
12913  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
12914  *  roam trigger by kickout.
12915  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
12916  *  disappeared, and all TX is failing when roam trigger by kickout.
12917  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
12918  *   timeout when roam trigger by kickout.
12919  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
12920  *  peer has roamed to a repeater.
12921  */
12922 enum qca_wlan_roam_stats_tx_failures_reason {
12923 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
12924 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
12925 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
12926 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
12927 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
12928 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
12929 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
12930 };
12931 
12932 /**
12933  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
12934  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
12935  *
12936  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
12937  *  detailed reason for roam scan being aborted.
12938  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
12939  *  started due to high data RSSI during LOW-RSSI roaming.
12940  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
12941  *  started due to good link speed during LOW-RSSI roaming.
12942  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
12943  *  due to high data RSSI during background roaming.
12944  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
12945  *  started due to high beacon RSSI during background roaming
12946  */
12947 enum qca_wlan_roam_stats_abort_reason {
12948 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
12949 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
12950 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
12951 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
12952 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
12953 };
12954 
12955 /**
12956  * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
12957  * These values are used by the attribute
12958  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
12959  *
12960  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
12961  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
12962  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
12963  *  This is generally used in BTM events to indicate BTM frame exchange logs.
12964  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
12965  *  from 2.4 GHz to 5 GHz or 6 GHz
12966  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
12967  *  5 GHz to 6 GHz
12968  */
12969 enum qca_wlan_roam_stats_scan_type {
12970 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
12971 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
12972 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
12973 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
12974 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
12975 };
12976 
12977 /**
12978  * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
12979  * These values are used by the attribute
12980  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
12981  *
12982  * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
12983  *  detailed roam scan type.
12984  * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
12985  * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
12986  */
12987 enum qca_wlan_roam_stats_scan_dwell_type {
12988 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
12989 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
12990 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
12991 };
12992 
12993 /**
12994  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
12995  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
12996  */
12997 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
12998 	/* 32-bit unsigned value to indicate center frequency of the primary
12999 	 * channel in MHz for each roam scan channel.
13000 	 */
13001 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13002 	/* 8-bit unsigned value to indicate channel scan type for each
13003 	 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
13004 	 */
13005 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13006 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
13007 	 * for each roam scan channel.
13008 	 */
13009 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13010 
13011 	/* keep last */
13012 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13013 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13014 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13015 };
13016 
13017 /**
13018  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13019  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13020  *
13021  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
13022  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
13023  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13024  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13025  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13026  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13027  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13028  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
13029  */
13030 enum qca_wlan_roam_stats_frame_subtype {
13031 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
13032 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
13033 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13034 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13035 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13036 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13037 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13038 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
13039 };
13040 
13041 /**
13042  * enum roam_frame_status - Specifies the valid values the vendor roam frame
13043  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13044  *
13045  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13046  *  sent or received successfully.
13047  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13048  *  receiving failed.
13049  */
13050 enum qca_wlan_roam_stats_frame_status {
13051 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13052 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13053 };
13054 
13055 /**
13056  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13057  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13058  */
13059 enum qca_wlan_vendor_attr_roam_stats_frame_info {
13060 	/* 8-bit unsigned value to indicate the frame subtype during
13061 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13062 	 */
13063 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13064 	/* 8-bit unsigned value to indicate the frame is successful or failed
13065 	 * during roaming, one of the values in
13066 	 * qca_wlan_roam_stats_frame_status.
13067 	 */
13068 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13069 	/* 64-bit unsigned value to indicate the timestamp for frame of
13070 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13071 	 * when sent or received during roaming, timestamp in milliseconds
13072 	 * from system boot.
13073 	 */
13074 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
13075 	/* Attribute used for padding for 64-bit alignment */
13076 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
13077 
13078 	/* keep last */
13079 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13080 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13081 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13082 };
13083 
13084 /**
13085  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13086  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13087  */
13088 enum qca_wlan_vendor_attr_roam_stats_info {
13089 	/* 64-bit unsigned value to indicate the timestamp when roam was
13090 	 * triggered by the firmware, timestamp in milliseconds from system
13091 	 * boot.
13092 	 */
13093 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13094 	/* 32-bit unsigned value to indicate the roam trigger reason for the
13095 	 * last roaming attempted by the firmware. This can be queried either
13096 	 * in a connected state or disconnected state. The values of this
13097 	 * attribute represent the roam trigger reason codes, which
13098 	 * are defined in enum qca_roam_reason.
13099 	 */
13100 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13101 	/* 8-bit unsigned value to indicate percentage of packets for which
13102 	 * the RX rate is lower than the RX rate threshold in total RX packets,
13103 	 * used for roaming trigger by per.
13104 	 */
13105 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13106 	/* 8-bit unsigned value to indicate percentage of packets for which
13107 	 * the TX rate is lower than TX rate threshold in total TX packets,
13108 	 * used for roaming trigger by per.
13109 	 */
13110 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13111 	/* 32-bit unsigned value to indicate final beacon miss count for
13112 	 * trigger reason of beacon miss.
13113 	 */
13114 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13115 	/* 32-bit unsigned value to indicate consecutive beacon miss count
13116 	 * for trigger reason of beacon miss.
13117 	 */
13118 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13119 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13120 	 * reason of beacon miss, 0 - success, 1 - fail.
13121 	 * If QOS-NULL TX status is successful, beacon miss final count and
13122 	 * consecutive beacon miss count will be reset to zero, and roam will
13123 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13124 	 * count and consecutive beacon miss count continue to calculate until
13125 	 * roaming trigger by beacon miss.
13126 	 */
13127 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
13128 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13129 	 * for trigger reason of poor RSSI.
13130 	 */
13131 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
13132 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13133 	 * for trigger reason of poor RSSI.
13134 	 */
13135 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13136 	/* 8-bit unsigned value to indicate RX link speed status
13137 	 * for trigger reason of poor RSSI, 0 - good link speed,
13138 	 * 1 - bad link speed.
13139 	 */
13140 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
13141 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13142 	 * for trigger reason of better RSSI.
13143 	 */
13144 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
13145 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13146 	 * for trigger reason of better RSSI.
13147 	 */
13148 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
13149 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
13150 	 * for trigger reason of congestion.
13151 	 */
13152 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
13153 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
13154 	 * for trigger reason of congestion.
13155 	 */
13156 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
13157 	/* 8-bit unsigned value to indicate roamable AP count
13158 	 * for trigger reason of congestion.
13159 	 */
13160 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
13161 	/* 8-bit unsigned value to indicate invoke reason, one of the values
13162 	 * defined in qca_wlan_roam_stats_invoke_reason.
13163 	 */
13164 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
13165 	/* 8-bit unsigned value to indicate request mode for trigger reason
13166 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
13167 	 */
13168 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
13169 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
13170 	 * for trigger reason of BTM.
13171 	 */
13172 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
13173 	/* 32-bit unsigned value to indicate preferred candidate list valid
13174 	 * interval in milliseconds for trigger reason of BTM.
13175 	 */
13176 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
13177 	/* 8-bit unsigned value to indicate the number of preferred
13178 	 * candidates for trigger reason of BTM.
13179 	 */
13180 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
13181 	/* 8-bit unsigned value to indicate response status for trigger
13182 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
13183 	 * Table 9-428 (BTM status code definitions).
13184 	 */
13185 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
13186 	/* 32-bit unsigned value to indicate BSS termination timeout value
13187 	 * in milliseconds for trigger reason of BTM.
13188 	 */
13189 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
13190 	/* 32-bit unsigned value to indicate MBO associate retry timeout
13191 	 * value in milliseconds for trigger reason of BTM.
13192 	 */
13193 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
13194 	/* 8-bit unsigned value to indicate dialog token number
13195 	 * for trigger reason of BTM.
13196 	 */
13197 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
13198 	/* 8-bit unsigned value to indicate percentage of connected AP
13199 	 * channel congestion utilization for trigger reason of BSS load.
13200 	 */
13201 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
13202 	/* 8-bit unsigned value to indicate disconnection type
13203 	 * for trigger reason of disconnection. 1 - Deauthentication,
13204 	 * 2 - Disassociation.
13205 	 */
13206 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
13207 	/* 16-bit unsigned value to indicate deauthentication or disassociation
13208 	 * reason for trigger reason of disconnection, values are defined
13209 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
13210 	 */
13211 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
13212 	/* 32-bit unsigned value to indicate milliseconds of roam scan
13213 	 * periodicity when needing to roam to find a better AP for trigger
13214 	 * reason of periodic timer.
13215 	 */
13216 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
13217 	/* 8-bit signed value to indicate connected AP RSSI in dBm for
13218 	 * trigger reason of background scan.
13219 	 */
13220 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
13221 	/* 8-bit signed value to indicate data RSSI in dBm for trigger reason
13222 	 * of background scan.
13223 	 */
13224 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
13225 	/* 8-bit signed value to indicate data RSSI threshold in dBm
13226 	 * for trigger reason of background scan.
13227 	 */
13228 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
13229 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
13230 	 * for trigger reason of TX failures.
13231 	 */
13232 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
13233 	/* 8-bit unsigned value to indicate TX failure reason for trigger
13234 	 * reason of TX failures, one of the values defined in
13235 	 *  qca_wlan_roam_stats_tx_failures_reason.
13236 	 */
13237 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
13238 	/* 8-bit unsigned value to indicate detail abort reason. One of the
13239 	 * values in enum qca_wlan_roam_stats_abort_reason.
13240 	 */
13241 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
13242 	/* 8-bit signed value to indicate data RSSI in dBm when aborting the
13243 	 * roam scan.
13244 	 */
13245 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
13246 	/* 8-bit signed value to indicate data RSSI threshold in dBm when
13247 	 * aborting the roam scan.
13248 	 */
13249 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
13250 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
13251 	 * speed status when aborting the roam scan.
13252 	 * 0 - good link speed, 1 - bad link speed
13253 	 */
13254 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
13255 	/* 8-bit unsigned value to indicate roaming scan type.
13256 	 * One of the values in enum qca_wlan_roam_stats_scan_type.
13257 	 */
13258 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
13259 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
13260 	 * only.
13261 	 * 0-Roaming is successful, 1-Roaming is failed
13262 	 */
13263 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
13264 	/* 8-bit unsigned value to indicate the roam fail reason for the
13265 	 * last failed roaming attempt by the firmware. Different roam failure
13266 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
13267 	 * This can be queried either in connected state or disconnected state.
13268 	 */
13269 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
13270 	/* Nested attribute. Indicate roam scan info for each channel, the
13271 	 * attributes defined in enum
13272 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
13273 	 * this attribute.
13274 	 */
13275 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
13276 	/* 32-bit unsigned value to indicate total scan time during roam scan
13277 	 * all channels, time in milliseconds.
13278 	 */
13279 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
13280 	/* Nested attribute. This attribute shall be used by the driver to
13281 	 * send roam information of each subtype. The attributes defined in
13282 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
13283 	 * this attribute.
13284 	 */
13285 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
13286 	/* Attribute used for padding for 64-bit alignment */
13287 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
13288 
13289 	/* keep last */
13290 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
13291 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
13292 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
13293 };
13294 
13295 /**
13296  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
13297  * report cached roam info from the driver to user space, enum values are used
13298  * for netlink attributes sent with the
13299  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
13300  */
13301 enum qca_wlan_vendor_attr_roam_cached_stats {
13302 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
13303 	/* Nested attribute, this attribute contains nested array roam info
13304 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
13305 	 */
13306 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
13307 
13308 	/* keep last */
13309 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
13310 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
13311 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
13312 };
13313 
13314 /**
13315  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
13316  * radio configurations present in each radio combination.
13317  *
13318  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
13319  * the band info in the radio configuration. Uses the enum qca_set_band values.
13320  *
13321  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
13322  * the number of antennas info in the radio configuration.
13323  */
13324 enum qca_wlan_vendor_attr_supported_radio_cfg {
13325 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
13326 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
13327 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
13328 
13329 	/* keep last */
13330 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
13331 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
13332 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
13333 };
13334 
13335 /**
13336  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13337  * radio combinations supported by the device.
13338  *
13339  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13340  * provides the radio configurations present in the radio combination.
13341  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13342  * This attribute provides the values for radio combination matrix.
13343  * For standalone config, the number of config values is one and the config
13344  * carries the band and antenna information for standalone configuration. For
13345  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13346  * configuration the number of config values is two and the config carries the
13347  * band and antenna information for each simultaneous radio.
13348  */
13349 enum qca_wlan_vendor_attr_radio_combination {
13350 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13351 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13352 
13353 	/* keep last */
13354 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13355 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13356 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13357 };
13358 
13359 /**
13360  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13361  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13362  *
13363  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13364  * provides the radio combinations supported by the device.
13365  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13366  * For example, in the radio combination matrix for a device which has two
13367  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13368  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13369  * combinations is 5 and the radio combinations are
13370  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13371  * {{5 GHz 2X2}}, //Standalone 5 GHz
13372  * {{6 GHz 2X2}}, //Standalone 6 GHz
13373  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13374  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13375  * The band and antenna info together as nested data provides one radio config.
13376  * Standalone configuration has one config with band and antenna nested data.
13377  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13378  * have two nested band and antenna info data.
13379  */
13380 enum qca_wlan_vendor_attr_radio_combination_matrix {
13381 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13382 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13383 
13384 	/* keep last */
13385 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13386 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13387 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13388 };
13389 
13390 /**
13391  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13392  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13393  *
13394  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13395  * Enable mDNS offload. This attribute is mandatory to enable
13396  * mDNS offload feature. If this attribute is not present, mDNS offload
13397  * is disabled.
13398  *
13399  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13400  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13401  * attribute is mandatory when enabling the feature, and not required when
13402  * disabling the feature.
13403  *
13404  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13405  * the following attributes:
13406  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13407  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13408  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13409  *
13410  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13411  * It consists of a hostname and ".local" as the domain name. The character
13412  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13413  * It is used to compare the domain in the "QU" query. Only 1 FQDN is
13414  * supported per vdev.
13415  * For example: myphone.local
13416  *
13417  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13418  * u16 attribute. It specifies the total number of resource records present
13419  * in the answer section of the answer payload. This attribute is needed by the
13420  * firmware to populate the mDNS response frame for mDNS queries without having
13421  * to parse the answer payload.
13422  *
13423  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
13424  * attribute sent by the mdnsResponder from userspace. It contains resource
13425  * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
13426  * payload is passed down to the firmware and is transmitted in response to
13427  * mDNS queries.
13428  * The maximum supported size of the answer payload is 512 bytes.
13429  */
13430 enum qca_wlan_vendor_attr_mdns_offload {
13431 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13432 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13433 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13434 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13435 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13436 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13437 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13438 
13439 	/* keep last */
13440 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13441 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13442 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13443 };
13444 
13445 /**
13446  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13447  * Data frame types to be sent over the monitor interface.
13448  */
13449 enum qca_wlan_vendor_monitor_data_frame_type {
13450 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13451 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
13452 	 */
13453 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13454 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13455 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13456 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13457 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13458 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13459 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13460 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13461 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13462 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13463 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13464 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13465 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13466 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13467 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13468 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13469 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13470 };
13471 
13472 /**
13473  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13474  * Management frame types to be sent over the monitor interface.
13475  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
13476  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
13477  * except the Beacon frame.
13478  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13479  * BSSID Beacon frames. Valid only in the connected state.
13480  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13481  * the Beacon frames obtained during the scan (off channel and connected
13482  * channel), when in connected state.
13483  */
13484 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13485 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13486 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
13487 	 */
13488 	QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
13489 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13490 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13491 };
13492 
13493 /**
13494  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13495  * Control frame types to be sent over the monitor interface.
13496  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
13497  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
13498  */
13499 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13500 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13501 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
13502 	 */
13503 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13504 };
13505 
13506 /**
13507  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13508  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13509  * monitor mode.
13510  *
13511  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
13512  * Represents the TX Data frame types to be monitored (u32). These Data frames
13513  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13514  *
13515  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
13516  * Represents the RX Data frame types to be monitored (u32). These Data frames
13517  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13518  *
13519  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
13520  * Represents the TX Management frame types to be monitored (u32). These
13521  * Management frames are represented by
13522  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13523  *
13524  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
13525  * Represents the RX Management frame types to be monitored (u32). These
13526  * Management frames are represented by
13527  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
13528  *
13529  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
13530  * Represents the TX Control frame types to be monitored (u32). These Control
13531  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13532  *
13533  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
13534  * Represents the RX Control frame types to be monitored (u32). These Control
13535  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13536  *
13537  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
13538  * attribute.
13539  * Represents the interval in milliseconds only for the connected Beacon frames,
13540  * expecting the connected BSS's Beacon frames to be sent on the monitor
13541  * interface at this specific interval.
13542  */
13543 enum qca_wlan_vendor_attr_set_monitor_mode {
13544 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13545 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13546 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13547 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13548 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13549 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13550 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13551 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13552 
13553 	/* keep last */
13554 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13555 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13556 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13557 };
13558 
13559 /**
13560  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13561  * Bits will be set to 1 if the corresponding state is enabled.
13562  *
13563  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13564  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13565  */
13566 enum qca_wlan_vendor_roam_scan_state {
13567 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13568 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13569 };
13570 
13571 /**
13572  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13573  * Bits will be set to 1 if the corresponding event is notified.
13574  *
13575  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13576  * carries the trigger reason. When set, it is expected that the roam event
13577  * carries the respective reason via the attribute
13578  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13579  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13580  *
13581  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13582  * carries the roam fail reason. When set, it is expected that the roam event
13583  * carries the respective reason via the attribute
13584  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13585  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13586  *
13587  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13588  * event carries the roam invoke fail reason. When set, it is expected that
13589  * the roam event carries the respective reason via the attribute
13590  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13591  *
13592  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13593  * carries the roam scan state. When set, it is expected that the roam event
13594  * carries the respective scan state via the attribute
13595  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13596  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13597  */
13598 enum qca_wlan_vendor_roam_event_type {
13599 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13600 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13601 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13602 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13603 };
13604 
13605 /**
13606  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13607  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13608  *
13609  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13610  * representing the BSSID of the AP to which the roam is attempted.
13611  *
13612  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13613  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13614  * attempted.
13615  *
13616  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
13617  * on which the roam is attempted.
13618  *
13619  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13620  * STA mode only. This represents the roam fail reason for the last failed
13621  * roaming attempt by the firmware for the specific BSSID. Different roam
13622  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13623  */
13624 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13625 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13626 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13627 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13628 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13629 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13630 
13631 	/* keep last */
13632 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13633 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13634 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13635 };
13636 
13637 /**
13638  * enum qca_wlan_vendor_attr_roam_events - Used by the
13639  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13640  * roam events to the driver or notify these events from the driver.
13641  *
13642  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13643  * driver/firmware to enable/disable the notification of roam events. It's a
13644  * mandatory attribute and used only in the request from the userspace to the
13645  * host driver. 1-Enable, 0-Disable.
13646  * If the roaming is totally offloaded to the firmware, this request when
13647  * enabled shall mandate the firmware to notify all the relevant roam events
13648  * represented by the below attributes. If the host is in the suspend mode,
13649  * the behavior of the firmware to notify these events is guided by
13650  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13651  * these events in the suspend state, the firmware is expected to wake up the
13652  * host before the respective events are notified. Please note that such a
13653  * request to get the events in the suspend state will have a definite power
13654  * implication.
13655  *
13656  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13657  * that the roam events need to be notified in the suspend state too. By
13658  * default, these roam events are notified in the resume state. With this flag,
13659  * the roam events are notified in both resume and suspend states.
13660  * This attribute is used in the request from the userspace to the host driver.
13661  *
13662  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13663  * Represents the different roam event types, signified by the enum
13664  * qca_wlan_vendor_roam_event_type.
13665  * Each bit of this attribute represents the different roam even types reported
13666  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13667  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13668  *
13669  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13670  * mode only. This represents the roam trigger reason for the last roaming
13671  * attempted by the firmware. Each bit of this attribute represents the
13672  * different roam trigger reason code which are defined in enum
13673  * qca_vendor_roam_triggers.
13674  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13675  *
13676  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13677  * STA mode only. This represents the roam invoke fail reason for the last
13678  * failed roam invoke. Different roam invoke failure reason codes
13679  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13680  *
13681  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13682  * for which the roam is attempted. Each entry is a nested attribute defined
13683  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13684  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13685  *
13686  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13687  * the scan state on which the roam events need to be notified. The values for
13688  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13689  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13690  *
13691  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13692  * u32 values. List of frequencies in MHz considered for a roam scan.
13693  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13694  */
13695 enum qca_wlan_vendor_attr_roam_events {
13696 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13697 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13698 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13699 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13700 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13701 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13702 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13703 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13704 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13705 
13706 	/* keep last */
13707 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13708 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13709 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1,
13710 };
13711 
13712 /**
13713  * enum qca_wlan_ratemask_params_type - Rate mask config type
13714  *
13715  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
13716  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13717  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13718  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13719  */
13720 enum qca_wlan_ratemask_params_type {
13721 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13722 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13723 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13724 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13725 };
13726 
13727 /**
13728  * enum qca_wlan_vendor_attr_ratemask_params - Used by the
13729  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13730  * This is used to set the rate mask value to be used in rate selection.
13731  *
13732  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13733  * Array of nested containing attributes
13734  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13735  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13736  *
13737  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13738  * the different PHY types to which the rate mask config is to be applied.
13739  * The values for this attribute are referred from enum
13740  * qca_wlan_vendor_ratemask_params_type.
13741  *
13742  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13743  * A bit value of 1 represents rate is enabled and a value of 0
13744  * represents rate is disabled.
13745  * For HE targets, 12 bits correspond to one NSS setting.
13746  * b0-13  => NSS1, MCS 0-13
13747  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13748  * For VHT targets, 10 bits correspond to one NSS setting.
13749  * b0-9   => NSS1, MCS 0-9
13750  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13751  * For HT targets, 8 bits correspond to one NSS setting.
13752  * b0-7  => NSS1, MCS 0-7
13753  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13754  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13755  */
13756 enum qca_wlan_vendor_attr_ratemask_params {
13757 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
13758 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13759 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13760 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13761 
13762 	/* keep last */
13763 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13764 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13765 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13766 };
13767 
13768 /**
13769  * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
13770  * traffic.
13771  *
13772  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
13773  * Send audio traffic through the host processor.
13774  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
13775  * Send audio traffic using the low power DSP to/from the encoder.
13776  */
13777 enum qca_wlan_audio_data_path {
13778 	QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
13779 	QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
13780 };
13781 
13782 /**
13783  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13784  *	for) or drop existing PASN security association for the listed the
13785  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13786  *	to userspace.
13787  *
13788  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13789  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13790  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13791  *	the driver to userspace to inform that the existing PASN keys of the
13792  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13793  *	not valid anymore.
13794  */
13795 enum qca_wlan_vendor_pasn_action {
13796 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13797 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13798 };
13799 
13800 /**
13801  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13802  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13803  *
13804  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13805  *	event from the driver to userspace and represents the local MAC address
13806  *	to be used for PASN handshake. When this attribute is present, userspace
13807  *	shall use the source address specified in this attribute by the driver
13808  *	for PASN handshake with peer device.
13809  *	This attribute is required in a command response from userspace to the
13810  *	driver and represents the MAC address that was used in PASN handshake
13811  *	with the peer device.
13812  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13813  *	peer device to which PASN handshake is requested in an event from the
13814  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13815  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13816  *	Indicates the MAC address of the peer device for which the keys are to
13817  *	be invalidated in an event from the driver to userspace when
13818  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13819  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13820  *	Indicates the MAC address of the peer device for which the status is
13821  *	being sent in a status report from userspace to the driver.
13822  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13823  *	in the event from the driver to userspace. When set, userspace is
13824  *	required to derive LTF key seed from KDK and set it to the driver.
13825  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13826  *	attribute is used in the command response from userspace to the driver.
13827  *	If present, it indicates the successful PASN handshake with the peer. If
13828  *	this flag is not present, it indicates that the PASN handshake with the
13829  *	peer device failed.
13830  */
13831 enum qca_wlan_vendor_attr_pasn_peer {
13832 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13833 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13834 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13835 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13836 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13837 
13838 	/* keep last */
13839 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13840 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13841 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13842 };
13843 
13844 /**
13845  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13846  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
13847  *
13848  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13849  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
13850  *	from the driver to userspace.
13851  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13852  *	details for each peer and used in both an event and a command response.
13853  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13854  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
13855  */
13856 enum qca_wlan_vendor_attr_pasn {
13857 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13858 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13859 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13860 
13861 	/* keep last */
13862 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13863 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13864 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13865 };
13866 
13867 /**
13868  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13869  *	the ranging security context derived from PASN for each peer. Used in
13870  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13871  *
13872  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13873  *	context for the peer.
13874  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13875  *	context for the peer.
13876  */
13877 enum qca_wlan_vendor_secure_ranging_ctx_action {
13878 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13879 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13880 };
13881 
13882 /**
13883  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13884  *	used for deriving PASN keys to the driver. Used in
13885  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13886  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13887  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13888  */
13889 enum qca_wlan_vendor_sha_type {
13890 	QCA_WLAN_VENDOR_SHA_256,
13891 	QCA_WLAN_VENDOR_SHA_384,
13892 };
13893 
13894 /**
13895  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13896  *	to set security context for the PASN peer from userspace to the driver.
13897  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13898  *
13899  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13900  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13901  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13902  *	was used during the PASN handshake.
13903  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13904  *	the peer device for which secure ranging context is being configured.
13905  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13906  *	hash algorithm to be used, possible values are defined in enum
13907  *	qca_wlan_vendor_sha_type.
13908  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13909  *	the temporal key generated from the PASN handshake. The length of this
13910  *	attribute is dependent on the value of
13911  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13912  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13913  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13914  *	(e.g., 0x000FAC04).
13915  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13916  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13917  *	The length of this attribute is dependent on the value of
13918  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13919 
13920  */
13921 enum qca_wlan_vendor_attr_secure_ranging_ctx {
13922 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13923 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13924 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13925 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13926 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13927 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13928 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13929 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13930 
13931 	/* keep last */
13932 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13933 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13934 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13935 };
13936 
13937 /**
13938  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13939  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13940  * nested attribute. The packets that match a filter will be replied with
13941  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13942  *
13943  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13944  * u32 attribute. Destination IPv4 address in network byte order, the
13945  * IPv4 packets with different address will be filtered out.
13946  * This attribute is optional.
13947  *
13948  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13949  * Flag attribute. If it's present, indicates that
13950  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13951  * address; while if not, indicates that the address is a unicast/multicast
13952  * address.
13953  * This attribute is optional.
13954  *
13955  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13956  * NLA_BINARY attribute, length is 16 bytes.
13957  * Destination IPv6 address in network byte order, the IPv6 packets
13958  * with different destination address will be filtered out.
13959  * This attribute is optional.
13960  *
13961  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13962  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13963  * Packets on both IPv4 and IPv6 will be processed if both are configured.
13964  *
13965  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13966  * u16 attribute. Destination UDP port, the packets with different destination
13967  * UDP port will be filtered out.
13968  * This attribute is mandatory.
13969  *
13970  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13971  * u32 attribute. Represents the offset (in UDP payload) of the data
13972  * to be matched.
13973  * This attribute is mandatory.
13974  *
13975  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13976  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13977  * Binary data that is compared bit-by-bit against the data (specified
13978  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13979  * payload, the packets don't match will be filtered out.
13980  * This attribute is mandatory.
13981  */
13982 enum qca_wlan_vendor_attr_coap_offload_filter {
13983 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13984 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13985 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13986 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13987 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13988 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13989 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13990 
13991 	/* keep last */
13992 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13993 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13994 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13995 };
13996 
13997 /**
13998  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13999  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14000  *
14001  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14002  * u32 attribute. Source address (in network byte order) for replying
14003  * the matching broadcast/multicast IPv4 packets.
14004  * This attribute is optional.
14005  *
14006  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14007  * NLA_BINARY attribute, length is 16 bytes.
14008  * Source address (in network byte order) for replying the matching
14009  * multicast IPv6 packets.
14010  * This attribute is optional.
14011  *
14012  * For broadcast/multicast offload reply, one of
14013  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14014  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14015  * configured according to version of the IP address(es) configured in
14016  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14017  * while for unicast case, firmware will take the destination IP address
14018  * in the received matching packet as the source address for replying.
14019  *
14020  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14021  * Nested attribute. Filter for the received UDP packets, only the matching
14022  * packets will be replied and cached.
14023  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14024  * attributes.
14025  * This attribute is mandatory.
14026  *
14027  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14028  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14029  * CoAP message (UDP payload) to be sent upon receiving matching packets.
14030  * Firmware is responsible for adding any necessary protocol headers.
14031  * This attribute is mandatory.
14032  *
14033  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14034  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14035  * A cached message will be dropped by firmware if it's expired.
14036  * This attribute is optional. A default value of 40000 will be used in the
14037  * absence of it.
14038  */
14039 enum qca_wlan_vendor_attr_coap_offload_reply {
14040 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14041 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14042 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14043 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14044 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14045 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14046 
14047 	/* keep last */
14048 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14049 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14050 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14051 };
14052 
14053 /**
14054  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14055  * CoAP message (UDP) transmitting on IPv4.
14056  *
14057  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14058  * u32 attribute. Source address (in network byte order) for transmitting
14059  * packets on IPv4.
14060  * This attribute is mandatory.
14061  *
14062  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14063  * u16 attribute. Source UDP port.
14064  * This attribute is optional, a random port is taken if it's not present.
14065  *
14066  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14067  * u32 attribute. Destination IPv4 address (in network byte order).
14068  * This attribute is mandatory.
14069  *
14070  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14071  * Flag attribute. If it's present, indicates that
14072  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14073  * address; while if not, indicates that the address is unicast/multicast
14074  * address.
14075  * This attribute is optional.
14076  *
14077  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14078  * u16 attribute. Destination UDP port.
14079  * This attribute is mandatory.
14080  */
14081 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14082 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14083 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14084 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14085 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14086 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14087 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14088 
14089 	/* keep last */
14090 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
14091 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
14092 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
14093 };
14094 
14095 /**
14096  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
14097  * CoAP message (UDP) transmitting on IPv6.
14098  *
14099  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
14100  * NLA_BINARY attribute, length is 16 bytes.
14101  * Source address (in network byte order) for transmitting packets on IPv6.
14102  * This attribute is mandatory.
14103  *
14104  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14105  * u16 attribute. Source UDP port.
14106  * This attribute is optional, a random port is taken if it's not present.
14107  *
14108  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14109  * NLA_BINARY attribute, length is 16 bytes.
14110  * Destination IPv6 address (in network byte order).
14111  * This attribute is mandatory.
14112  *
14113  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14114  * u16 attribute. Destination UDP port.
14115  * This attribute is mandatory.
14116  */
14117 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14118 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14119 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14120 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14121 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14122 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14123 
14124 	/* keep last */
14125 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14126 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14127 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14128 };
14129 
14130 /**
14131  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14132  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14133  *
14134  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14135  * Nested attribute. The IPv4 source/destination address/port for offload
14136  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14137  * of supported attributes.
14138  * This attribute is optional.
14139  *
14140  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14141  * Nested attribute. The IPv6 source/destination address/port for offload
14142  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14143  * of supported attributes.
14144  * This attribute is optional.
14145  *
14146  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14147  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14148  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14149  * configured.
14150  *
14151  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14152  * u32 attribute. Period in milliseconds for the periodic transmitting.
14153  * This attribute is mandatory.
14154  *
14155  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14156  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14157  * CoAP message (UDP payload) to be periodically transmitted. Firmware
14158  * is responsible for adding any necessary protocol headers.
14159  * This attribute is mandatory.
14160  */
14161 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14162 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14163 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14164 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14165 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14166 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14167 
14168 	/* keep last */
14169 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14170 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14171 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14172 };
14173 
14174 /**
14175  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14176  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14177  *
14178  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14179  * u64 attribute. Received time (since system booted in microseconds) of
14180  * the cached CoAP message.
14181  * This attribute is mandatory.
14182  *
14183  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14184  * u32 attribute. Source IPv4 address (in network byte order) of the cached
14185  * CoAP message.
14186  * This attribute is optional.
14187  *
14188  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14189  * NLA_BINARY attribute, length is 16 bytes.
14190  * Source IPv6 address (in network byte order) of the cached CoAP message.
14191  * This attribute is optional.
14192  *
14193  * At most and at least one of
14194  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14195  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14196  * an entry.
14197  *
14198  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14199  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14200  * The cached CoAP message (UDP payload). If the actual message size is
14201  * greater than the maximum size, it will be truncated and leaving only
14202  * the first 1152 bytes.
14203  * This attribute is mandatory.
14204  *
14205  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
14206  * padding for 64-bit alignment
14207  */
14208 enum qca_wlan_vendor_attr_coap_offload_cache_info {
14209 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14210 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14211 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14212 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14213 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
14214 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
14215 
14216 	/* keep last */
14217 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14218 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14219 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14220 };
14221 
14222 /**
14223  * enum qca_wlan_vendor_coap_offload_action - Actions for
14224  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14225  *
14226  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14227  * Enable CoAP offload reply.
14228  * If it's enabled, firmware will start offload processing on each suspend
14229  * and stop on each resume.
14230  *
14231  * Offload reply on match works as follows:
14232  * Reply the packets that match the filter with the given CoAP
14233  * message (with necessary protocol headers), increase the CoAP message
14234  * ID in the given CoAP message by one for the next use after each successful
14235  * transmission, and try to store the information of the received packet,
14236  * including the received time, source IP address, and CoAP message (UDP
14237  * payload).
14238  *
14239  * Firmware has a limit to the maximum stored entries, it takes the source IP
14240  * address as the key of an entry, and keeps at most one entry for each key.
14241  * A packet won't be stored if no entry for the same key is present and the
14242  * total number of the existing unexpired entries reaches the maximum value.
14243  *
14244  * If any configured item is changed, user space should disable offload reply
14245  * first and then issue a new enable request.
14246  *
14247  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14248  * Disable CoAP offload reply and return information of any cached CoAP
14249  * messages.
14250  *
14251  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14252  * Enable CoAP offload periodic transmitting.
14253  * If it's enabled, firmware will start offload periodic transmitting on
14254  * each suspend and stop on each resume.
14255  *
14256  * Offload periodic transmitting works as follows:
14257  * Send the given CoAP message (with necessary protocol headers) with the given
14258  * source/destination IP address/UDP port periodically based on the given
14259  * period and increase the CoAP message ID in the given CoAP message by one
14260  * for the next use after each successful transmission.
14261  *
14262  * If any configured item is changed, user space should disable offload
14263  * periodic transmitting first and then issue a new enable request.
14264  *
14265  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14266  * Disable CoAP offload periodic transmitting.
14267  *
14268  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14269  * Get information of the CoAP messages cached during offload reply
14270  * processing. The cache is cleared after retrieval.
14271  */
14272 enum qca_wlan_vendor_coap_offload_action {
14273 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14274 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14275 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14276 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14277 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14278 };
14279 
14280 /**
14281  * enum qca_wlan_vendor_attr_coap_offload - Used by the
14282  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14283  * This is used to set parameters for CoAP offload processing, or get
14284  * cached CoAP messages from firmware.
14285  *
14286  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14287  * u32 attribute. Action to take in this vendor command.
14288  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14289  * This attribute is mandatory.
14290  *
14291  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14292  * u32 attribute. Represents the Request ID for the CoAP offload
14293  * configuration, which can help to identify the user entity starting
14294  * the CoAP offload processing and accordingly stop the respective
14295  * ones/get the cached CoAP messages with the matching ID.
14296  * This attribute is mandatory.
14297  *
14298  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14299  * Nested attribute. Parameters for offload reply.
14300  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14301  * supported attributes.
14302  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14303  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14304  * otherwise.
14305  *
14306  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14307  * Nested attribute. Parameters for offload periodic transmitting.
14308  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14309  * supported attributes.
14310  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14311  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14312  * otherwise.
14313  *
14314  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14315  * Array of nested attributes. Information of the cached CoAP messages,
14316  * where each entry is taken from
14317  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14318  * This attribute is used for reporting the cached CoAP messages
14319  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14320  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14321  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14322  * cached item if this attribute is not present.
14323  */
14324 enum qca_wlan_vendor_attr_coap_offload {
14325 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14326 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14327 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14328 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14329 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14330 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14331 
14332 	/* keep last */
14333 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14334 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14335 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14336 };
14337 
14338 /**
14339  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14340  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14341  * Service (SCS) rule.
14342  *
14343  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14344  * Represents the unique id of SCS rule to be configured.
14345 
14346  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14347  * Represents the request type: add, remove, or change.
14348  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14349  * Type definitions).
14350  *
14351  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14352  * in case of add/change request type.
14353  * Represents the output traffic identifier (TID) to be assigned to the flow
14354  * matching the rule.
14355  *
14356  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14357  * attribute in case of add/change request type.
14358  * Represents type of classifier parameters present in SCS rule.
14359  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14360  * Only classifier types 4 and 10 are supported for SCS.
14361  *
14362  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14363  * in case of add/change request type when classifier type is TCLAS4.
14364  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14365  *
14366  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14367  * attribute in case of add/change request type when classifier type is TCLAS4
14368  * and version attribute is IPv4.
14369  * Represents the source IPv4 address in the rule which is to be compared
14370  * against the source IP address in the IPv4 header.
14371  *
14372  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14373  * attribute in case of add/change request type when classifier type is TCLAS4
14374  * and version attribute is IPv4.
14375  * Represents the destination IPv4 address in the rule which is to be compared
14376  * against the destination IP address in the IPv4 header.
14377  *
14378  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14379  * attribute in case of add/change request type when classifier type is TCLAS4
14380  * and version attribute is IPv6.
14381  * Represents the source IPv6 address in the rule which is to be compared
14382  * against the source IP address in the IPv6 header.
14383  *
14384  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14385  * attribute in case of add/change request type when classifier type is TCLAS4
14386  * and version attribute is IPv6.
14387  * Represents the destination IPv6 address in the rule which is to be compared
14388  * against the destination IP address in the IPv6 header.
14389  *
14390  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14391  * in case of add/change request type when classifier type is TCLAS4.
14392  * Represents the source port number in the rule which is to be compared against
14393  * the source port number in the protocol header.
14394  *
14395  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14396  * in case of add/change request type when classifier type is TCLAS4.
14397  * Represents the destination port number in the rule which is to be compared
14398  * against the destination port number in the protocol header.
14399  *
14400  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14401  * in case of add/change request type when classifier type is TCLAS4.
14402  * Represents the DSCP value in the rule which is to be compared against the
14403  * DSCP field present in the IP header.
14404  *
14405  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14406  * attribute in case of add/change request type when classifier type is TCLAS4.
14407  * Represents the protocol/next header in the rule which is to be compared
14408  * against the protocol/next header field present in the IPv4/IPv6 header.
14409  *
14410  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14411  * attribute of size 3 bytes present in case of add/change request type
14412  * when classifier type is TCLAS4 and version is IPv6.
14413  * Represents the flow label value in the rule which is to be compared against
14414  * the flow label field present in the IPv6 header.
14415  *
14416  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14417  * attribute in case of add/change request type when classifier type is TCLAS10.
14418  * Represents the protocol instance number in the rule.
14419  *
14420  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14421  * attribute in case of add/change request type when classifier type is TCLAS10.
14422  * Represents the protocol/next header in the rule which is to be compared
14423  * against the protocol/next header field present in the IPv4/IPv6 header.
14424  *
14425  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14426  * attribute of variable length present when request type is add/change and
14427  * classifier type is TCLAS10.
14428  * Represents the mask to be used for masking the header contents of the header
14429  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14430  * attribute.
14431  *
14432  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14433  * attribute of variable length present when request type is add/change and
14434  * classifier type is TCLAS10.
14435  * Represents the value to be compared against after masking the header contents
14436  * of the header specified by the
14437  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14438  * filter mask specified by the
14439  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14440  *
14441  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14442  * attribute.
14443  * Represents the service class id of the configured SCS rule.
14444  *
14445  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14446  * MAC address.
14447  * Represents the destination MAC address in the rule.
14448  *
14449  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14450  * Represents the netdevice interface index in the rule.
14451  */
14452 enum qca_wlan_vendor_attr_scs_rule_config {
14453 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14454 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14455 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14456 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14457 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14458 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14459 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14460 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14461 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14462 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14463 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14464 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14465 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14466 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14467 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14468 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14469 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14470 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14471 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14472 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14473 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14474 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
14475 
14476 	/* Keep last */
14477 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14478 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14479 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14480 };
14481 
14482 /**
14483  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
14484  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
14485  *
14486  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
14487  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
14488  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
14489  */
14490 enum qca_wlan_vendor_attr_mlo_links {
14491 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
14492 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
14493 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
14494 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
14495 
14496 	/* Keep last */
14497 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
14498 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
14499 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
14500 };
14501 
14502 /**
14503  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14504  * used in the firmware.
14505  *
14506  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14507  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14508  *
14509  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14510  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14511  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14512  * groups.
14513  *
14514  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14515  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14516  * CTL group but user can choose up to 3 SAR set index only, as the top half
14517  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14518  * the SAR index (3 to 5) is used for DBS mode.
14519  */
14520 enum qca_wlan_vendor_sar_version {
14521 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14522 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14523 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14524 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14525 };
14526 
14527 /**
14528  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14529  * CTL grouping is enabled or disabled in the firmware.
14530  *
14531  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14532  * is enabled in firmware.
14533  *
14534  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14535  * is disabled in firmware.
14536  *
14537  */
14538 enum qca_wlan_vendor_sar_ctl_group_state {
14539 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14540 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14541 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14542 };
14543 
14544 /**
14545  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14546  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14547  * supported by the firmware.
14548 
14549  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14550  * u32 attribute. This field describes current SAR version supported by the
14551  * firmware.
14552  * See enum qca_wlan_vendor_sar_version for more information.
14553  * This attribute is mandatory.
14554 
14555  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14556  * u32 attribute. This field describes whether CTL groups are enabled
14557  * or disabled in the firmware.
14558  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14559  * This attribute is optional.
14560  */
14561 
14562 enum qca_wlan_vendor_attr_sar_capability {
14563 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14564 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14565 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14566 
14567 	/* Keep last */
14568 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14569 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14570 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14571 };
14572 
14573 /**
14574  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14575  * These statistics are sent from the driver in a response when userspace
14576  * queries to get the statistics using the operation
14577  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14578  * by the driver when the SR feature is enabled, when the driver receives
14579  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14580  *
14581  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14582  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14583  * This represents the number of non-SRG TX opportunities.
14584  *
14585  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14586  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14587  * This represents the number of non-SRG PPDUs tried to transmit.
14588  *
14589  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14590  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14591  * This represents the number of non-SRG PPDUs successfully transmitted.
14592  *
14593  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14594  * Mandatory only when SRG is supported by the AP and optional otherwise.
14595  * This represents the number of SRG TX opportunities.
14596  *
14597  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14598  * Mandatory only when SRG is supported by the AP and optional otherwise.
14599  * This represents the number of SRG PPDUs tried to transmit.
14600  *
14601  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14602  * Mandatory only when SRG is supported by the AP and optional otherwise.
14603  * This represents the number of SRG PPDUs successfully transmitted.
14604  */
14605 enum qca_wlan_vendor_attr_sr_stats {
14606 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14607 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14608 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14609 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14610 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14611 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14612 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14613 
14614 	/* Keep last */
14615 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14616 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14617 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14618 };
14619 
14620 /**
14621  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14622  * Spatial Reuse feature.
14623  *
14624  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14625  * roaming to an AP that doesn't support/supports SR feature, respectively.
14626  *
14627  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14628  * to change in concurrent interfaces that are supported by the driver.
14629  */
14630 enum qca_wlan_sr_reason_code {
14631 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14632 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14633 };
14634 
14635 /**
14636  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14637  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14638  *
14639  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14640  * driver to enable the Spatial Reuse feature. Attributes
14641  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14642  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14643  * operation.
14644  *
14645  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14646  * driver to disable the Spatial Reuse feature.
14647  *
14648  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14649  * asynchronous event sent to userspace when the SR feature is disabled.
14650  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14651  * and sent along with the asynchronous event.
14652  *
14653  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14654  * asynchronous event when the SR feature is enabled again after the SR feature
14655  * was suspended by the driver earlier. The enable reason is
14656  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14657  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14658  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14659  *
14660  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14661  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14662  * reuse transmissions. Userspace sends this operation to the driver.
14663  * The driver/firmware upon receiving this operation shall prohibit PSR-based
14664  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14665  *
14666  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14667  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14668  * reuse transmissions. Userspace sends this operation to the driver.
14669  * The driver/firmware upon receiving this operation shall allow PSR-based
14670  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14671  *
14672  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14673  * driver to get the SR statistics and the driver sends a synchronous response
14674  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14675  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14676  *
14677  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14678  * driver to clear the SR statistics and upon receiving this operation
14679  * the driver/firmware shall clear the SR statistics.
14680  *
14681  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14682  * driver to get the SR parameters and the driver sends the synchronous response
14683  * with the following required attributes:
14684  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14685  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14686  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14687  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14688  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14689  *
14690  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14691  * asynchronous event to userspace to update any changes in SR parameters.
14692  * The following attributes are used with this operation:
14693  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14694  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14695  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14696  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14697  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14698  */
14699 enum qca_wlan_sr_operation {
14700 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14701 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14702 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14703 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14704 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14705 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14706 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14707 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14708 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14709 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14710 };
14711 
14712 /**
14713  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14714  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14715  *
14716  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14717  * This attribute is optionally set in response to
14718  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14719  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14720  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14721  * about HESIGA_Spatial_reuse_value15_allowed.
14722  *
14723  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14724  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14725  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14726  * allowed or not at non-AP STAs that are associated with the AP. If present
14727  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14728  *
14729  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14730  * attribute. This attribute is used in response to
14731  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14732  * Min Offset field which contains an unsigned integer that is added to -82 dBm
14733  * to generate the value of the SRG OBSS PD Min parameter.
14734  *
14735  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14736  * attribute. This attribute is used in response to
14737  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14738  * Max Offset field which contains an unsigned integer that is added to -82 dBm
14739  * to generate the value of the SRG OBSS PD Max parameter.
14740  *
14741  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14742  * attribute. This attribute is used in response to
14743  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
14744  * PD Max Offset field which contains an unsigned integer that is added to -82
14745  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
14746  *
14747  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14748  * Userspace optionally sends this attribute with
14749  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14750  * preferred SRG PD threshold. The driver shall send this attribute to
14751  * userspace in SR resume event to indicate the PD threshold being used for SR.
14752  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
14753  * the driver shall indicate the userspace the newly configured SRG PD threshold
14754  * using an asynchronous event.
14755  *
14756  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14757  * Userspace optionally sends this attribute with
14758  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14759  * preferred non-SRG PD threshold. The driver shall send this attribute to
14760  * userspace in SR resume event to indicate the PD threshold being used for SR.
14761  * When there is change in non-SRG PD threshold (for example, due to roaming,
14762  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
14763  * threshold using an asynchronous event.
14764  *
14765  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
14766  * values are defined in enum qca_wlan_sr_reason_code. This
14767  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
14768  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
14769  */
14770 enum qca_wlan_vendor_attr_sr_params {
14771 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
14772 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
14773 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
14774 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
14775 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
14776 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
14777 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
14778 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
14779 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
14780 
14781 	/* keep last */
14782 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
14783 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
14784 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
14785 };
14786 
14787 /**
14788  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
14789  * command QCA_NL80211_VENDOR_SUBCMD_SR.
14790  *
14791  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
14792  * from userspace to the driver. Possible values are defined in enum
14793  * qca_wlan_sr_operation.
14794  *
14795  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
14796  * configuration parameters. The possible attributes inside this attribute are
14797  * defined in enum qca_wlan_vendor_attr_sr_params.
14798  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14799  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
14800  * also in response from the driver to userspace when the response is sent for
14801  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
14802  * The driver uses this attribute in asynchronous events in which the operation
14803  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
14804  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
14805  *
14806  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
14807  * statistics. These attributes used inside this are defined in enum
14808  * qca_wlan_vendor_attr_sr_stats.
14809  * This attribute is used in response from the driver to a command in which
14810  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14811  * %QCA_WLAN_SR_OPERATION_GET_STATS.
14812  */
14813 enum qca_wlan_vendor_attr_sr {
14814 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
14815 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
14816 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
14817 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
14818 
14819 	/* Keep last */
14820 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
14821 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
14822 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
14823 };
14824 
14825 /**
14826  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
14827  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
14828  *
14829  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
14830  * used by the peer on the link that corresponds to the link used for sending
14831  * the event notification.
14832  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
14833  * MLD MAC address of the peer.
14834  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
14835  * used to pass ifindex of the primary netdev.
14836  */
14837 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
14838 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
14839 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
14840 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
14841 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
14842 
14843 	/* keep last */
14844 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
14845 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
14846 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
14847 };
14848 
14849 /**
14850  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
14851  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
14852  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
14853  * and PSD information.
14854  *
14855  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
14856  * u32. This attribute is used to indicate the start of the queried frequency
14857  * range in MHz.
14858  *
14859  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
14860  * This attribute is used to indicate the end of the queried frequency range
14861  * in MHz.
14862  *
14863  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
14864  * This attribute will contain the PSD information for a single range as
14865  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
14866  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
14867  *
14868  * The PSD power info (dBm/MHz) from user space should be multiplied
14869  * by a factor of 100 when sending to the driver to preserve granularity
14870  * up to 2 decimal places.
14871  * Example:
14872  *     PSD power value: 10.21 dBm/MHz
14873  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
14874  *
14875  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
14876  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
14877  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
14878  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14879  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14880  *
14881  * The following set of attributes will be used to exchange frequency and
14882  * corresponding PSD information for AFC between the user space and the driver.
14883  */
14884 enum qca_wlan_vendor_attr_afc_freq_psd_info {
14885 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
14886 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
14887 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
14888 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
14889 
14890 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
14891 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
14892 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
14893 };
14894 
14895 /**
14896  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
14897  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
14898  * channel list and corresponding EIRP information.
14899  *
14900  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
14901  * This attribute is used to indicate queried channel from
14902  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
14903  *
14904  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
14905  * This attribute is used to configure the EIRP power info corresponding
14906  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
14907  * The EIRP power info(dBm) from user space should be multiplied
14908  * by a factor of 100 when sending to Driver to preserve granularity up to
14909  * 2 decimal places.
14910  * Example:
14911  *     EIRP power value: 34.23 dBm
14912  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
14913  *
14914  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
14915  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14916  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
14917  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14918  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
14919  *
14920  * The following set of attributes will be used to exchange Channel and
14921  * corresponding EIRP information for AFC between the user space and Driver.
14922  */
14923 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
14924 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
14925 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
14926 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
14927 
14928 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
14929 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
14930 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
14931 };
14932 
14933 /**
14934  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
14935  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14936  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
14937  * channel, and EIRP related information.
14938  *
14939  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
14940  * This attribute is used to indicate the operating class, as listed under
14941  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
14942  *
14943  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
14944  * for updating the channel number and EIRP power information.
14945  * It uses the attributes defined in
14946  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
14947  *
14948  * Operating class information packing format for
14949  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14950  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14951  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
14952  *
14953  * m - Total number of operating classes.
14954  * n, j - Number of queried channels for the corresponding operating class.
14955  *
14956  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14957  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14958  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14959  *      .....
14960  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14961  *  ....
14962  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14963  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14964  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14965  *      ....
14966  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14967  *
14968  * Operating class information packing format for
14969  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14970  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14971  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14972  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14973  *
14974  * m - Total number of operating classes.
14975  * n, j - Number of channels for the corresponding operating class.
14976  *
14977  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14978  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14979  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14980  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14981  *      .....
14982  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14983  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
14984  *  ....
14985  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14986  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14987  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14988  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14989  *      ....
14990  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14991  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
14992  *
14993  * The following set of attributes will be used to exchange operating class
14994  * information for AFC between the user space and the driver.
14995  */
14996 enum qca_wlan_vendor_attr_afc_opclass_info {
14997 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
14998 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
14999 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15000 
15001 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15002 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15003 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15004 };
15005 
15006 /**
15007  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15008  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15009  *
15010  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15011  * driver to userspace in order to query the new AFC power values.
15012  *
15013  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15014  * complete event will be sent from the driver to userspace to indicate
15015  * processing of the AFC response.
15016  *
15017  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15018  * will be sent from the driver to userspace to indicate last received
15019  * AFC response data has been cleared on the AP due to invalid data
15020  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15021  *
15022  * The following enum defines the different event types that will be
15023  * used by the driver to help trigger corresponding AFC functionality in user
15024  * space.
15025  */
15026 enum qca_wlan_vendor_afc_event_type {
15027 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15028 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15029 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15030 };
15031 
15032 /**
15033  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15034  * deployment type.
15035  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15036  *
15037  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15038  *
15039  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15040  *
15041  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
15042  *
15043  * The following enum defines different deployment modes that the AP might
15044  * come up in. This information will be essential to retrieve deployment-type
15045  * specific SP power values for AFC operation.
15046  */
15047 enum qca_wlan_vendor_afc_ap_deployment_type {
15048 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
15049 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
15050 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
15051 };
15052 
15053 /**
15054  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
15055  * indicate AFC response status.
15056  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
15057  *
15058  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
15059  *
15060  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
15061  * command was not received within the expected time of the AFC expiry event
15062  * being triggered.
15063  *
15064  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
15065  * parsing error by the driver.
15066  *
15067  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
15068  * error.
15069  *
15070  * The following enum defines the status codes that the driver will use to
15071  * indicate whether the AFC data is valid or not.
15072  */
15073 enum qca_wlan_vendor_afc_evt_status_code {
15074 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
15075 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
15076 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
15077 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
15078 };
15079 
15080 /**
15081  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
15082  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
15083  * support sending only a single request to the user space at a time.
15084  *
15085  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
15086  * Used with event to notify the type of AFC event received.
15087  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
15088  *
15089  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
15090  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15091  * otherwise unused.
15092  *
15093  * This attribute is used to indicate the AP deployment type in the AFC request.
15094  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
15095  *
15096  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
15097  * Unique request identifier generated by the AFC client for every
15098  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
15099  * The user space application is responsible for ensuring no duplicate values
15100  * are in-flight with the server, e.g., by delaying a request, should the same
15101  * value be received from different radios in parallel.
15102  *
15103  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
15104  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15105  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
15106  *
15107  * This attribute indicates the AFC spec version information. This will
15108  * indicate the AFC version AFC client must use to query the AFC data.
15109  * Bits 15:0  - Minor version
15110  * Bits 31:16 - Major version
15111  *
15112  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
15113  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15114  * otherwise unused.
15115  * This attribute indicates the minimum desired power (in dBm) for
15116  * the queried spectrum.
15117  *
15118  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
15119  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15120  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15121  *
15122  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
15123  * This attribute is used to indicate if there were any errors parsing the
15124  * AFC response.
15125  *
15126  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15127  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15128  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15129  *
15130  * This attribute indicates the AFC response code. The AFC response codes are
15131  * in the following categories:
15132  * -1: General Failure.
15133  * 0: Success.
15134  * 100 - 199: General errors related to protocol.
15135  * 300 - 399: Error events specific to message exchange
15136  *            for the Available Spectrum Inquiry.
15137  *
15138  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15139  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15140  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15141  *
15142  * This attribute indicates the date until which the current response is
15143  * valid for in UTC format.
15144  * Date format: bits 7:0   - DD (Day 1-31)
15145  *              bits 15:8  - MM (Month 1-12)
15146  *              bits 31:16 - YYYY (Year)
15147  *
15148  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15149  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15150  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15151  *
15152  * This attribute indicates the time until which the current response is
15153  * valid for in UTC format.
15154  * Time format: bits 7:0   - SS (Seconds 0-59)
15155  *              bits 15:8  - MM (Minutes 0-59)
15156  *              bits 23:16 - HH (Hours 0-23)
15157  *              bits 31:24 - Reserved
15158  *
15159  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15160  * for updating the list of frequency ranges to be queried.
15161  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15162  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15163  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15164  * It uses the attributes defined in
15165  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15166  *
15167  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15168  * for updating the list of operating classes and corresponding channels to be
15169  * queried.
15170  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15171  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15172  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15173  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15174  */
15175 enum qca_wlan_vendor_attr_afc_event {
15176 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15177 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15178 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15179 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15180 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15181 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15182 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15183 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15184 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15185 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15186 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15187 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15188 
15189 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15190 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15191 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15192 };
15193 
15194 /**
15195  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15196  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15197  * will support sending only a single AFC response to the driver at a time.
15198  *
15199  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15200  * This attribute will be used to send a single Spectrum Inquiry response object
15201  * from the 'availableSpectrumInquiryResponses' array object from the response
15202  * JSON.
15203  *
15204  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15205  *
15206  * This attribute indicates the period (in seconds) for which the response
15207  * data received is valid for.
15208  *
15209  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15210  *
15211  * This attribute indicates the request ID for which the corresponding
15212  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15213  *
15214  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15215  *
15216  * This attribute indicates the date until which the current response is
15217  * valid for in UTC format.
15218  * Date format: bits 7:0   - DD (Day 1-31)
15219  *              bits 15:8  - MM (Month 1-12)
15220  *              bits 31:16 - YYYY (Year)
15221  *
15222  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15223  *
15224  * This attribute indicates the time until which the current response is
15225  * valid for in UTC format.
15226  * Time format: bits 7:0   - SS (Seconds 0-59)
15227  *              bits 15:8  - MM (Minutes 0-59)
15228  *              bits 23:16 - HH (Hours 0-23)
15229  *              bits 31:24 - Reserved
15230  *
15231  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15232  *
15233  * This attribute indicates the AFC response code. The AFC response codes are
15234  * in the following categories:
15235  * -1: General Failure.
15236  * 0: Success.
15237  * 100 - 199: General errors related to protocol.
15238  * 300 - 399: Error events specific to message exchange
15239  *            for the Available Spectrum Inquiry.
15240  *
15241  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15242  * for PSD info of all the queried frequency ranges. It uses the attributes
15243  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15244  *
15245  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15246  * attributes for EIRP info of all queried operating class/channels. It uses
15247  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15248  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15249  *
15250  */
15251 enum qca_wlan_vendor_attr_afc_response {
15252 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15253 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15254 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15255 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15256 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15257 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15258 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15259 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15260 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15261 
15262 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15263 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15264 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15265 };
15266 
15267 /**
15268  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15269  *
15270  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15271  *
15272  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15273  * beaconing at higher beacon interval with Rx disabled.
15274  */
15275 enum qca_wlan_dozed_ap_state {
15276 	QCA_WLAN_DOZED_AP_DISABLE = 0,
15277 	QCA_WLAN_DOZED_AP_ENABLE = 1,
15278 };
15279 
15280 /**
15281  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15282  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15283  * configuration.
15284  *
15285  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15286  * Configures the doze state for an AP interface. Possible values are defined
15287  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15288  * gets triggered asynchronously to provide updated AP interface configuration.
15289  *
15290  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15291  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15292  * command, which is used later to maintain synchronization between commands
15293  * and asynchronous events.
15294  *
15295  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15296  * Used in event to indicate the next TBTT TSF timer value after applying the
15297  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15298  * the first beacon after entering or exiting dozed mode.
15299  *
15300  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15301  * Used with event to inform the periodicity of beacon transmission that would
15302  * be skipped at all TBTTs in between.
15303  *
15304  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
15305  * alignment.
15306  */
15307 enum qca_wlan_vendor_attr_dozed_ap {
15308 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15309 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15310 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15311 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15312 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
15313 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
15314 
15315 	/* Keep last */
15316 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15317 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15318 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15319 };
15320 
15321 /**
15322  * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
15323  * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
15324  * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
15325  * capture running status.
15326  * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
15327  * capture running status.
15328  **/
15329 
15330 enum qca_wlan_vendor_monitor_mode_status {
15331 	QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
15332 	QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
15333 };
15334 
15335 /**
15336  * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
15337  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
15338  * information regarding the local packet capture over the monitor mode.
15339  *
15340  * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
15341  * represents the status of the start capture commands. The values used with
15342  * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
15343  * is returned by the driver in the response to the command.
15344  */
15345 
15346 enum qca_wlan_vendor_attr_get_monitor_mode {
15347 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
15348 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
15349 
15350 	/* Keep last */
15351 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
15352 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
15353 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
15354 };
15355 
15356 /**
15357  * enum qca_wlan_vendor_link_state_op_types - Defines different types of
15358  * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
15359  * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
15360  *
15361  * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
15362  * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
15363  */
15364 enum qca_wlan_vendor_link_state_op_types {
15365 	QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
15366 	QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
15367 };
15368 
15369 /**
15370  * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
15371  * links state control modes. This enum is used by
15372  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
15373  *
15374  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
15375  * by the driver.
15376  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
15377  * user space.
15378  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
15379  * desired number of MLO links to operate in active state at any given time.
15380  * The driver will choose which MLO links should operate in the active state.
15381  * See enum qca_wlan_vendor_link_state for active state definition.
15382  */
15383 enum qca_wlan_vendor_link_state_control_modes {
15384 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
15385 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
15386 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
15387 };
15388 
15389 /**
15390  * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
15391  * links state operation modes. This enum is used by
15392  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
15393  *
15394  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
15395  * mode, the driver selects the operating mode of the links, without any
15396  * guidance from the user space.
15397  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
15398  * operation mode the driver should select MLO links that will achieve low
15399  * latency.
15400  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
15401  * throughput operation mode the driver should select MLO links that will
15402  * achieve higher throughput.
15403  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
15404  * operation mode the driver should select MLO links that will achieve low
15405  * power.
15406  */
15407 enum qca_wlan_vendor_link_state_operation_modes {
15408 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
15409 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
15410 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
15411 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
15412 };
15413 
15414 /**
15415  * enum qca_wlan_vendor_link_state - Represents the possible link states of an
15416  * MLO link.
15417  *
15418  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
15419  * be used for data transmission but it can have TIDs mapped to it. It will be
15420  * in doze state always and does not monitor the beacons.
15421  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
15422  * used for data TX/RX and monitors the beacons to check TIM bit indication.
15423  * It may enter doze state and comes out based on the transmit data traffic and
15424  * TIM bit indication in the beacon.
15425  */
15426 enum qca_wlan_vendor_link_state {
15427 	QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
15428 	QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
15429 };
15430 
15431 /**
15432  * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
15433  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
15434  *
15435  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
15436  * MLO link.
15437  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
15438  * enum qca_wlan_vendor_link_state for possible MLO link states.
15439  */
15440 
15441 enum qca_wlan_vendor_attr_link_state_config {
15442 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
15443 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
15444 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
15445 
15446 	/* Keep last */
15447 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
15448 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
15449 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
15450 };
15451 
15452 /**
15453  * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
15454  * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
15455  *
15456  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
15457  * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
15458  * Required only in a command. Possible values for this attribute are defined in
15459  * enum qca_wlan_vendor_link_state_op_types.
15460  *
15461  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
15462  * links control mode type. Optional attribute in a command when
15463  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15464  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
15465  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15466  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15467  * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
15468  *
15469  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
15470  * Indicates the state of the each MLO link affiliated with the interface.
15471  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
15472  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
15473  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
15474  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
15475  * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15476  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15477  * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
15478  *
15479  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
15480  * Represents the number of active state links. See enum
15481  * qca_wlan_vendor_link_state for active state definition.
15482  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
15483  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
15484  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
15485  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
15486  *
15487  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
15488  * links operation mode type. Optional attribute in a command when
15489  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15490  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
15491  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
15492  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
15493  * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
15494  * modes.
15495  */
15496 enum qca_wlan_vendor_attr_mlo_link_state {
15497 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
15498 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
15499 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
15500 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
15501 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
15502 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
15503 
15504 	/* keep last */
15505 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
15506 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
15507 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
15508 };
15509 
15510 /**
15511  * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
15512  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
15513  *
15514  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
15515  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
15516  * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
15517  * bitmask of the link IDs in which a bit set means that the TID is mapped with
15518  * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
15519  * traffic for that link.
15520  *
15521  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
15522  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
15523  * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
15524  * bitmask of the link IDs in which a bit set means that the TID is mapped with
15525  * that link ID in downlink traffic. Otherwise, the TID is not mapped to
15526  * downlink traffic for that link.
15527  */
15528 enum qca_wlan_vendor_attr_tid_link_map_status {
15529 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
15530 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
15531 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
15532 
15533 	/* keep last */
15534 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
15535 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
15536 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
15537 };
15538 
15539 /*
15540  * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
15541  * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
15542  *
15543  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
15544  * AP MLD address with which this TID-to-link negotiation mapping is
15545  * established/updated.
15546  *
15547  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
15548  * nested attributes containing TID-to-links mapping information. This will have
15549  * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
15550  * map information. If this attribute is not present the default TID-to-link
15551  * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
15552  * downlink traffic.
15553  * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
15554  */
15555 enum qca_wlan_vendor_attr_tid_to_link_map {
15556 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
15557 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
15558 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
15559 
15560 	/* keep last */
15561 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
15562 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
15563 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
15564 };
15565 
15566 /**
15567  * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
15568  * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
15569  *
15570  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
15571  * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
15572  *
15573  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
15574  * A bitmap of the removed setup links link IDs.
15575  */
15576 enum qca_wlan_vendor_attr_link_reconfig {
15577 
15578 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
15579 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
15580 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
15581 
15582 	/* keep last */
15583 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
15584 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
15585 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
15586 };
15587 
15588 /**
15589  * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
15590  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
15591  *
15592  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
15593  * Indicates the MLO link id on which the TDLS discovery response
15594  * frame is to be transmitted.
15595  */
15596 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
15597 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
15598 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
15599 
15600 	/* Keep last */
15601 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
15602 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
15603 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
15604 };
15605 
15606 #endif /* QCA_VENDOR_H */
15607