xref: /freebsd/contrib/wpa/src/common/qca-vendor.h (revision 10ff414c)
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  *
6  * This software may be distributed under the terms of the BSD license.
7  * See README for more details.
8  */
9 
10 #ifndef QCA_VENDOR_H
11 #define QCA_VENDOR_H
12 
13 /*
14  * This file is a registry of identifier assignments from the Qualcomm Atheros
15  * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
16  * can be assigned through normal review process for changes to the upstream
17  * hostap.git repository.
18  */
19 
20 #define OUI_QCA 0x001374
21 
22 #ifndef BIT
23 #define BIT(x) (1U << (x))
24 #endif
25 
26 /**
27  * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
28  */
29 enum qca_radiotap_vendor_ids {
30 	QCA_RADIOTAP_VID_WLANTEST = 0,
31 };
32 
33 /**
34  * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
35  *
36  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
37  *
38  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
39  *
40  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
41  *	internal BSS-selection. This command uses
42  *	@QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
43  *	for the current connection (i.e., changes policy set by the nl80211
44  *	Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
45  *	included to indicate which BSS to use in case roaming is disabled.
46  *
47  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
48  *	ranges to avoid to reduce issues due to interference or internal
49  *	co-existence information in the driver. These frequencies aim to
50  *	minimize the traffic but not to totally avoid the traffic. That said
51  *	for a P2P use case, these frequencies are allowed for the P2P
52  *	discovery/negotiation but avoid the group to get formed on these
53  *	frequencies. The event data structure is defined in
54  *	struct qca_avoid_freq_list.
55  *
56  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
57  *	for DFS offloading.
58  *
59  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
60  *	NAN Request/Response and NAN Indication messages. These messages are
61  *	interpreted between the framework and the firmware component. While
62  *	sending the command from userspace to the driver, payload is not
63  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
64  *	is used when receiving vendor events in userspace from the driver.
65  *
66  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
67  *	used to configure PMK to the driver even when not connected. This can
68  *	be used to request offloading of key management operations. Only used
69  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
70  *
71  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
72  *	NL80211_CMD_ROAM event with optional attributes including information
73  *	from offloaded key management operation. Uses
74  *	enum qca_wlan_vendor_attr_roam_auth attributes. Only used
75  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
76  *
77  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
78  *	invoke the ACS function in device and pass selected channels to
79  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
80  *
81  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
82  *	supported by the driver. enum qca_wlan_vendor_features defines
83  *	the possible features.
84  *
85  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
86  *	which supports DFS offloading, to indicate a channel availability check
87  *	start.
88  *
89  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
90  *	which supports DFS offloading, to indicate a channel availability check
91  *	completion.
92  *
93  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
94  *	which supports DFS offloading, to indicate that the channel availability
95  *	check aborted, no change to the channel status.
96  *
97  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
98  *	driver, which supports DFS offloading, to indicate that the
99  *	Non-Occupancy Period for this channel is over, channel becomes usable.
100  *
101  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
102  *	which supports DFS offloading, to indicate a radar pattern has been
103  *	detected. The channel is now unusable.
104  *
105  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
106  *	Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
107  *
108  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
109  *	based on enum wifi_logger_supported_features. Attributes defined in
110  *	enum qca_wlan_vendor_attr_get_logger_features.
111  *
112  * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
113  *	logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
114  *	attribute for this command. Attributes defined in
115  *	enum qca_wlan_vendor_attr_wifi_logger_start.
116  *
117  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
118  *	capabilities of the driver, parameters includes the attributes defined
119  *	in enum qca_wlan_vendor_attr_tdls_get_capabilities.
120  *
121  * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
122  *	sending of certain periodic IP packet to firmware, attributes defined in
123  *	enum qca_wlan_vendor_attr_offloaded_packets.
124  *
125  * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
126  *	monitoring, defines min and max RSSI which are configured for RSSI
127  *	monitoring. Also used to notify the RSSI breach and provides the BSSID
128  *	and RSSI value that was breached. Attributes defined in
129  *	enum qca_wlan_vendor_attr_rssi_monitoring.
130  *
131  * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
132  *	Data Path (NDP) related operations, attributes defined in
133  *	enum qca_wlan_vendor_attr_ndp_params.
134  *
135  * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
136  *	Neighbour Discovery offload, attributes defined in
137  *	enum qca_wlan_vendor_attr_nd_offload.
138  *
139  * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
140  *	configuration parameter for BPF packet filter, attributes defined in
141  *	enum qca_wlan_vendor_attr_packet_filter.
142  *
143  * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
144  *	maximum supported size, attributes defined in
145  *	enum qca_wlan_vendor_drv_info.
146  *
147  * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
148  *	data about wake reasons and datapath IP statistics, attributes defined
149  *	in enum qca_wlan_vendor_attr_wake_stats.
150  *
151  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
152  *	for IEEE 802.11 communicating outside the context of a basic service
153  *	set, called OCB command. Uses the attributes defines in
154  *	enum qca_wlan_vendor_attr_ocb_set_config.
155  *
156  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
157  *	UTC time. Use the attributes defines in
158  *	enum qca_wlan_vendor_attr_ocb_set_utc_time.
159  *
160  * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
161  *	sending OCB timing advert frames. Uses the attributes defines in
162  *	enum qca_wlan_vendor_attr_ocb_start_timing_advert.
163  *
164  * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
165  *	OCB timing advert. Uses the attributes defines in
166  *	enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
167  *
168  * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
169  *	timer value. Uses the attributes defines in
170  *	enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
171  *
172  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
173  *	link properties of the respective interface. As an event, is used
174  *	to notify the connected station's status. The attributes for this
175  *	command are defined in enum qca_wlan_vendor_attr_link_properties.
176  *
177  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
178  *	to the driver. This command sets the band(s) through either the
179  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
180  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
181  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
182  *	integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
183  *	bit unsigned bitmask values. The allowed values for
184  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
185  *	QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
186  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
187  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
188  *	is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the	both attributes
189  *	are included for backwards compatibility, the configurations through
190  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
191  *	that support both attributes.
192  *
193  * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
194  *	DFS policy and channel hint for ACS operation. This command uses the
195  *	attributes defined in enum qca_wlan_vendor_attr_acs_config and
196  *	enum qca_acs_dfs_mode.
197  *
198  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
199  *	start the P2P Listen offload function in device and pass the listen
200  *	channel, period, interval, count, device types, and vendor specific
201  *	information elements to the device driver and firmware.
202  *	Uses the attributes defines in
203  *	enum qca_wlan_vendor_attr_p2p_listen_offload.
204  *
205  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
206  *	indicate stop request/response of the P2P Listen offload function in
207  *	device. As an event, it indicates either the feature stopped after it
208  *	was already running or feature has actually failed to start. Uses the
209  *	attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
210  *
211  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
212  *	beaconing, this sub command provides the driver, the frequencies on the
213  *	5 GHz band to check for any radar activity. Driver selects one channel
214  *	from this priority list provided through
215  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
216  *	to check for radar activity on it. If no radar activity is detected
217  *	during the channel availability check period, driver internally switches
218  *	to the selected frequency of operation. If the frequency is zero, driver
219  *	internally selects a channel. The status of this conditional switch is
220  *	indicated through an event using the same sub command through
221  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
222  *	listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
223  *
224  * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
225  *	attributes defined in enum qca_wlan_gpio_attr.
226  *
227  * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
228  *	This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
229  *	capabilities are to be fetched and other
230  *	enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
231  *	requested capabilities.
232  *
233  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
234  *	enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
235  *	command and event.
236  *
237  * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
238  *	indoor location features. Capabilities are reported in
239  *	QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
240  *
241  * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
242  *	(fine timing measurement) session with one or more peers.
243  *	Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
244  *	peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
245  *	On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
246  *	events will be reported, followed by
247  *	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
248  *	end of session.
249  *	Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
250  *
251  * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
252  *	A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
253  *	status code indicating session was aborted.
254  *
255  * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
256  *	results for one peer. Results are reported in
257  *	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
258  *
259  * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
260  *	FTM session is finished, either successfully or aborted by
261  *	request.
262  *
263  * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
264  *	mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
265  *	to enable or disable the responder. LCI/LCR reports can be
266  *	configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
267  *	QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
268  *	times to update the LCI/LCR reports.
269  *
270  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
271  *	arrival) measurement with a single peer. Specify peer MAC address in
272  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
273  *	QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
274  *	scan results cache and use the frequency from there).
275  *	Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
276  *	Measurement result is reported in
277  *	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
278  *
279  * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
280  *	peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
281  *
282  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
283  *	the AOA measurement result.
284  *	Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
285  *	success/failure status is reported in
286  *	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
287  *	Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
288  *	The antenna array(s) used in the measurement are reported in
289  *	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
290  *
291  * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
292  *	data as per the given parameters.
293  *
294  * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
295  *	specific chain.
296  *
297  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
298  *	configuration for a DMG RF sector. Specify sector index in
299  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
300  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
301  *	to return sector information for in
302  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
303  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
304  *	exact time where information was captured in
305  *	QCA_WLAN_VENDOR_ATTR_TSF.
306  *
307  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
308  *	configuration for a DMG RF sector. Specify sector index in
309  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
310  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
311  *	for one or more DMG RF modules in
312  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
313  *
314  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
315  *	DMG RF sector for a station. This is the sector that the HW
316  *	will use to communicate with the station. Specify the MAC address
317  *	of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
318  *	needed for unassociated	station). Specify sector type to return in
319  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
320  *	sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
321  *	Also return the exact time where the information was captured
322  *	in QCA_WLAN_VENDOR_ATTR_TSF.
323  *
324  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
325  *	selected DMG RF sector for a station. This is the sector that
326  *	the HW will use to communicate with the station.
327  *	Specify the MAC address of associated station/AP/PCP in
328  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
329  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
330  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
331  *	The selected sector will be locked such that it will not be
332  *	modified like it normally does (for example when station
333  *	moves around). To unlock the selected sector for a station
334  *	pass the special value 0xFFFF in the sector index. To unlock
335  *	all connected stations also pass a broadcast MAC address.
336  *
337  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
338  *	in the host driver. The different TDLS configurations are defined
339  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
340  *
341  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
342  *	capabilities. The response uses the attributes defined in
343  *	enum qca_wlan_vendor_attr_get_he_capabilities.
344  *
345  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
346  *	started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
347  *	carries the scan cookie of the corresponding scan request. The scan
348  *	cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
349  *
350  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
351  *	Absorption Rate (SAR) power limits. A critical regulation for
352  *	FCC compliance, OEMs require methods to set SAR limits on TX
353  *	power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
354  *	attributes are used with this command.
355  *
356  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
357  *	host driver for offloading the implementation of Auto Channel Selection
358  *	(ACS) to an external user space entity. This interface is used as the
359  *	event from the host driver to the user space entity and also as the
360  *	request from the user space entity to the host driver. The event from
361  *	the host driver is used by the user space entity as an indication to
362  *	start the ACS functionality. The attributes used by this event are
363  *	represented by the enum qca_wlan_vendor_attr_external_acs_event.
364  *	User space entity uses the same interface to inform the host driver with
365  *	selected channels after the ACS operation using the attributes defined
366  *	by enum qca_wlan_vendor_attr_external_acs_channels.
367  *
368  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
369  *	requisite information leading to a power save failure. The information
370  *	carried as part of this event is represented by the
371  *	enum qca_attr_chip_power_save_failure attributes.
372  *
373  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
374  *	collection. Uses attributes defined in enum qca_attr_nud_stats_set.
375  *
376  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
377  *	statistics are represented by the enum qca_attr_nud_stats_get
378  *	attributes.
379  *
380  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
381  *	the BSS transition status, whether accept or reject, for a list of
382  *	candidate BSSIDs provided by the userspace. This uses the vendor
383  *	attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
384  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
385  *	the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
386  *	array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
387  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
388  *	the driver shall specify array of
389  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
390  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
391  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
392  *
393  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
394  *	specific QCA module. The trace levels are represented by
395  *	enum qca_attr_trace_level attributes.
396  *
397  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
398  *	Protocol antenna limit in different modes. See enum
399  *	qca_wlan_vendor_attr_brp_ant_limit_mode.
400  *
401  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
402  *	parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
403  *	This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
404  *	identifying the operation in success case. In failure cases an
405  *	error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
406  *	describing the reason for the failure is returned.
407  *
408  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
409  *	a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
410  *	@QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
411  *	be stopped.
412  *
413  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
414  *	specific interface. This can be used to modify some of the low level
415  *	scan parameters (off channel dwell time, home channel time) in the
416  *	driver/firmware. These parameters are maintained within the host driver.
417  *	This command is valid only when the interface is in the connected state.
418  *	These scan parameters shall be reset by the driver/firmware once
419  *	disconnected. The attributes used with this command are defined in
420  *	enum qca_wlan_vendor_attr_active_tos.
421  *
422  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
423  *	driver has detected an internal failure. This event carries the
424  *	information indicating the reason that triggered this detection. The
425  *	attributes for this command are defined in
426  *	enum qca_wlan_vendor_attr_hang.
427  *
428  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
429  *	of spectral parameters used. The spectral scan parameters are specified
430  *	by enum qca_wlan_vendor_attr_spectral_scan.
431  *
432  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
433  *	for spectral scan functionality. The debug stats are specified by
434  *	enum qca_wlan_vendor_attr_spectral_diag_stats.
435  *
436  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
437  *	scan system capabilities. The capabilities are specified
438  *	by enum qca_wlan_vendor_attr_spectral_cap.
439  *
440  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
441  *	status of spectral scan. The status values are specified
442  *	by enum qca_wlan_vendor_attr_spectral_scan_status.
443  *
444  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
445  *	peer pending packets. Specify the peer MAC address in
446  *	QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
447  *	in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
448  *	in enum qca_wlan_vendor_attr_flush_pending.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
451  *	RF Operating Parameter (RROP) information. The attributes for this
452  *	information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
453  *	intended for use by external Auto Channel Selection applications.
454  *
455  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
456  *	(SAR) power limits. This is a companion to the command
457  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
458  *	settings currently in use. The attributes returned by this command are
459  *	defined by enum qca_vendor_attr_sar_limits.
460  *
461  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
462  *	the WLAN hardware MAC. Also, provides the WLAN netdev interface
463  *	information attached to the respective MAC.
464  *	This works both as a query (user space asks the current mode) or event
465  *	interface (driver advertising the current mode to the user space).
466  *	Driver does not trigger this event for temporary hardware mode changes.
467  *	Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
468  *	channel change, etc.) are updated with this event. Attributes for this
469  *	interface are defined in enum qca_wlan_vendor_attr_mac.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
472  *	per peer per TID. Attributes for this command are define in
473  *	enum qca_wlan_set_qdepth_thresh_attr.
474  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
475  *	guide for WLAN driver. Request to suspend of driver and FW if the
476  *	temperature is higher than the suspend threshold; resume action is
477  *	requested to driver if the temperature is lower than the resume
478  *	threshold. In user poll mode, request temperature data by user. For test
479  *	purpose, getting thermal shutdown configuration parameters is needed.
480  *	Attributes for this interface are defined in
481  *	enum qca_wlan_vendor_attr_thermal_cmd.
482  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
483  *	driver. Thermal temperature and indication of resume completion are
484  *	reported as thermal events. The attributes for this command are defined
485  *	in enum qca_wlan_vendor_attr_thermal_event.
486  *
487  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
488  *	test configuration. Attributes for this command are defined in
489  *	enum qca_wlan_vendor_attr_wifi_test_config.
490  *
491  * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
492  *	RX filter to receive frames from stations that are active on the
493  *	operating channel, but not associated with the local device (e.g., STAs
494  *	associated with other APs). Filtering is done based on a list of BSSIDs
495  *	and STA MAC addresses added by the user. This command is also used to
496  *	fetch the statistics of unassociated stations. The attributes used with
497  *	this command are defined in enum qca_wlan_vendor_attr_bss_filter.
498  *
499  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
500  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
501  *	carried a payload which was a binary blob of data. The command was not
502  *	extendable to send more information. The newer version carries the
503  *	legacy blob encapsulated within an attribute and can be extended with
504  *	additional vendor attributes that can enhance the NAN command interface.
505  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
506  *	or stopped within driver/firmware in order to initiate roaming. The
507  *	attributes used with this event are defined in enum
508  *	qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
509  *	in few cases, e.g., if the host processor is sleeping when this event
510  *	is generated in firmware.
511  *
512  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
513  *	configure parameters per peer to capture Channel Frequency Response
514  *	(CFR) and enable Periodic CFR capture. The attributes for this command
515  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
516  *	can also be used to send CFR data from the driver to userspace when
517  *	netlink events are used to send CFR data.
518  *
519  * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
520  *	in throughput dynamically. The driver estimates the throughput based on
521  *	number of packets being transmitted/received per second and indicates
522  *	the changes in throughput to user space. Userspace tools can use this
523  *	information to configure kernel's TCP parameters in order to achieve
524  *	peak throughput. Optionally, the driver will also send guidance on
525  *	modifications to kernel's TCP parameters which can be referred by
526  *	userspace tools. The attributes used with this event are defined in enum
527  *	qca_wlan_vendor_attr_throughput_change.
528  *
529  * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
530  *	priorities among different types of traffic during coex scenarios.
531  *	Current supported prioritization is among WLAN/BT/ZIGBEE with different
532  *	profiles mentioned in enum qca_coex_config_profiles. The associated
533  *	attributes used with this command are defined in enum
534  *	qca_vendor_attr_coex_config.
535  *
536  *	Based on the config provided, FW will boost the weight and prioritize
537  *	the traffic for that subsystem (WLAN/BT/Zigbee).
538  *
539  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
540  *	the supported AKM suite selectorss from the driver. It returns the list
541  *	of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
542  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
543  *	state from the driver. It returns the firmware state in the attribute
544  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
545  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
546  *	is used by the driver to flush per-peer cached statistics to user space
547  *	application. This interface is used as an event from the driver to
548  *	user space application. Attributes for this event are specified in
549  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
550  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
551  *	sent in the event.
552  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
553  *	improve the success rate of Zigbee joining network.
554  *	Due to PTA master limitation, Zigbee joining network success rate is
555  *	low while WLAN is working. The WLAN driver needs to configure some
556  *	parameters including Zigbee state and specific WLAN periods to enhance
557  *	PTA master. All these parameters are delivered by the attributes
558  *	defined in enum qca_mpta_helper_vendor_attr.
559  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
560  *	implement Beacon frame reporting feature.
561  *
562  *	Userspace can request the driver/firmware to periodically report
563  *	received Beacon frames whose BSSID is same as the current connected
564  *	BSS's MAC address.
565  *
566  *	In case the STA seamlessly (without sending disconnect indication to
567  *	userspace) roams to a different BSS, Beacon frame reporting will be
568  *	automatically enabled for the Beacon frames whose BSSID is same as the
569  *	MAC address of the new BSS. Beacon reporting will be stopped when the
570  *	STA is disconnected (when the disconnect indication is sent to
571  *	userspace) and need to be explicitly enabled by userspace for next
572  *	connection.
573  *
574  *	When a Beacon frame matching configured conditions is received, and if
575  *	userspace has requested to send asynchronous beacon reports, the
576  *	driver/firmware will encapsulate the details of the Beacon frame in an
577  *	event and send it to userspace along with updating the BSS information
578  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
579  *	scan cache with the information from the received Beacon frame but will
580  *	not send any active report to userspace.
581  *
582  *	The userspace can request the driver/firmware to stop reporting Beacon
583  *	frames. If the driver/firmware is not able to receive Beacon frames due
584  *	to other Wi-Fi operations such as off-channel activities, etc., the
585  *	driver/firmware will send a pause event to userspace and stop reporting
586  *	Beacon frames. Whether the beacon reporting will be automatically
587  *	resumed or not by the driver/firmware later will be reported to
588  *	userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
589  *	flag. The beacon reporting shall be resumed for all the cases except
590  *	either when userspace sets
591  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
592  *	which triggered the current beacon reporting or during any disconnection
593  *	case as indicated by setting
594  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
595  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
596  *	driver.
597  *
598  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
599  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
600  *	flag not set, the next first
601  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
602  *	shall be considered as un-pause event.
603  *
604  *	All the attributes used with this command are defined in
605  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
606  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
607  *	interop issues with the DUT. This sub command is used to transfer the
608  *	AP info between the driver and user space. This works both as a command
609  *	and an event. As a command, it configures the stored list of APs from
610  *	user space to firmware; as an event, it indicates the AP info detected
611  *	by the firmware to user space for persistent storage. The attributes
612  *	defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
613  *	the parameters.
614  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
615  *	send/receive OEM data binary blobs to/from application/service to/from
616  *	firmware. The attributes defined in enum
617  *	qca_wlan_vendor_attr_oem_data_params are used to deliver the
618  *	parameters.
619  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
620  *	to send/receive avoid frequency data using
621  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
622  *	This new command is alternative to existing command
623  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
624  *	is using stream of bytes instead of structured data using vendor
625  *	attributes.
626  *
627  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
628  *	add the STA node details in driver/firmware. Attributes for this event
629  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
630  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
631  *	coex chain mode from application/service.
632  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
633  *	to deliver the parameters.
634  *
635  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
636  *	get information of a station from driver to userspace. This command can
637  *	be used in both STA and AP modes. For STA mode, it provides information
638  *	of the current association when in connected state or the last
639  *	association when in disconnected state. For AP mode, only information
640  *	of the currently connected stations is available. This command uses
641  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
642  *
643  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
644  *	Host drivers can request the user space entity to set the SAR power
645  *	limits with this event. Accordingly, the user space entity is expected
646  *	to set the SAR power limits. Host drivers can retry this event to the
647  *	user space for the SAR power limits configuration from user space. If
648  *	the driver does not get the SAR power limits from user space for all
649  *	the retried attempts, it can configure a default SAR power limit.
650  *
651  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
652  *	is used to update the information about the station from the driver to
653  *	userspace. Uses attributes from enum
654  *	qca_wlan_vendor_attr_update_sta_info.
655  *
656  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
657  *	The host driver initiates the disconnection for scenarios such as beacon
658  *	miss, NUD failure, peer kick out, etc. The disconnection indication
659  *	through cfg80211_disconnected() expects the reason codes from enum
660  *	ieee80211_reasoncode which does not signify these various reasons why
661  *	the driver has triggered the disconnection. This event will be used to
662  *	send the driver specific reason codes by the host driver to userspace.
663  *	Host drivers should trigger this event and pass the respective reason
664  *	code immediately prior to triggering cfg80211_disconnected(). The
665  *	attributes used with this event are defined in enum
666  *	qca_wlan_vendor_attr_driver_disconnect_reason.
667  *
668  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
669  *	add/delete TSPEC for each AC. One command is for one specific AC only.
670  *	This command can only be used in STA mode and the STA must be
671  *	associated with an AP when the command is issued. Uses attributes
672  *	defined in enum qca_wlan_vendor_attr_config_tspec.
673  *
674  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
675  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
676  *
677  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
678  *	the driver. The band configurations obtained are referred through
679  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
680  *
681  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
682  *	assessment.
683  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
684  *
685  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
686  *	used to update SSID information in hostapd when it is updated in the
687  *	driver. Uses the attribute NL80211_ATTR_SSID.
688  *
689  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
690  *	the driver to send opaque data from the firmware to userspace. The
691  *	driver sends an event to userspace whenever such data is received from
692  *	the firmware.
693  *
694  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
695  *	send this opaque data for this event.
696  *
697  *	The format of the opaque data is specific to the particular firmware
698  *	version and there is no guarantee of the format remaining same.
699  *
700  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
701  *	The host driver selects Tx VDEV, and notifies user. The attributes
702  *	used with this event are defined in enum
703  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
704  *
705  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
706  *	configure the concurrent session policies when multiple STA interfaces
707  *	are (getting) active. The attributes used by this command are defined
708  *	in enum qca_wlan_vendor_attr_concurrent_sta_policy.
709  *
710  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
711  *	to query usable channels for different interface types such as STA,
712  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
713  *	channels in the response based on country code, different static
714  *	configurations, concurrency combinations, etc. The attributes used
715  *	with this command are defined in
716  *	enum qca_wlan_vendor_attr_usable_channels.
717  *
718  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
719  *	to get DFS radar history from the driver to userspace. The driver
720  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
721  *	array of nested entries.
722  */
723 enum qca_nl80211_vendor_subcmds {
724 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
725 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
726 	/* subcmds 2..8 not yet allocated */
727 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
728 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
729 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
730 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
731 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
732 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
733 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
734 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
735 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
736 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
737 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
738 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
739 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
740 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
741 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
742 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
743 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
744 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
745 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
746 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
747 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
748 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
749 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
750 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
751 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
752 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
753 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
754 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
755 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
756 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
757 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
758 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
759 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
760 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
761 	/* 43..49 - reserved for QCA */
762 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
763 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
764 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
765 	/* 53 - reserved - was used by QCA, but not in use anymore */
766 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
767 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
768 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
769 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
770 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
771 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
772 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
773 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
774 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
775 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
776 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
777 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
778 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
779 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
780 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
781 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
782 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
783 	QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
784 	QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
785 	QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
786 	/* Wi-Fi configuration subcommands */
787 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
788 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
789 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
790 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
791 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
792 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
793 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
794 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
795 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
796 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
797 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
798 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
799 	/* 86-90 - reserved for QCA */
800 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
801 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
802 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
803 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
804 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
805 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
806 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
807 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
808 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
809 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
810 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
811 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
812 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
813 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
814 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
815 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
816 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
817 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
818 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
819 	/* 110..114 - reserved for QCA */
820 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
821 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
822 	/* 117 - reserved for QCA */
823 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
824 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
825 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
826 	/* 121 - reserved for QCA */
827 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
828 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
829 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
830 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
831 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
832 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
833 	/* FTM/indoor location subcommands */
834 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
835 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
836 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
837 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
838 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
839 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
840 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
841 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
842 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
843 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
844 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
845 	/* DMG low level RF sector operations */
846 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
847 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
848 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
849 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
850 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
851 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
852 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
853 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
854 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
855 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
856 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
857 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
858 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
859 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
860 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
861 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
862 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
863 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
864 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
865 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
866 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
867 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
868 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
869 	/* Flush peer pending data */
870 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
871 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
872 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
873 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
874 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
875 	/* Thermal shutdown commands to protect wifi chip */
876 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
877 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
878 	/* Wi-Fi test configuration subcommand */
879 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
880 	/* Frame filter operations for other BSSs/unassociated STAs */
881 	QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
882 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
883 	QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
884 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
885 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
886 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
887 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
888 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
889 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
890 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
891 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
892 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
893 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
894 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
895 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
896 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
897 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
898 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
899 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
900 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
901 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
902 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
903 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
904 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
905 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
906 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
907 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
908 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
909 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
910 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
911 };
912 
913 enum qca_wlan_vendor_attr {
914 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
915 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
916 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
917 	/* Used only when driver sends vendor events to the userspace under the
918 	 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
919 	 * commands to the driver.
920 	 */
921 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
922 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
923 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
924 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
925 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
926 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
927 	 * by enum qca_roaming_policy.
928 	 */
929 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
930 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
931 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
932 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
933 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
934 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
935 	/* Unsigned 32-bit value. */
936 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
937 	/* Unsigned 32-bit value */
938 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
939 	/* Unsigned 32-bit value */
940 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
941 	/* Unsigned 32-bit value from enum qca_set_band. The allowed values for
942 	 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
943 	 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
944 	 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
945 	 */
946 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
947 	/* Dummy (NOP) attribute for 64 bit padding */
948 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
949 	/* Unique FTM session cookie (Unsigned 64 bit). Specified in
950 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
951 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
952 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
953 	 */
954 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
955 	/* Indoor location capabilities, returned by
956 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
957 	 * see enum qca_wlan_vendor_attr_loc_capa.
958 	 */
959 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
960 	/* Array of nested attributes containing information about each peer
961 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
962 	 * for supported attributes for each peer.
963 	 */
964 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
965 	/* Array of nested attributes containing measurement results for
966 	 * one or more peers, reported by the
967 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
968 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
969 	 * attributes.
970 	 */
971 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
972 	/* Flag attribute for enabling or disabling responder functionality. */
973 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
974 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
975 	 * command to specify the LCI report that will be sent by
976 	 * the responder during a measurement exchange. The format is
977 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
978 	 */
979 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
980 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
981 	 * command to specify the location civic report that will
982 	 * be sent by the responder during a measurement exchange.
983 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
984 	 */
985 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
986 	/* Session/measurement completion status code,
987 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
988 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
989 	 * see enum qca_vendor_attr_loc_session_status.
990 	 */
991 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
992 	/* Initial dialog token used by responder (0 if not specified),
993 	 * unsigned 8 bit value.
994 	 */
995 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
996 	/* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
997 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
998 	 * AOA measurements are needed as part of an FTM session.
999 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1000 	 * enum qca_wlan_vendor_attr_aoa_type.
1001 	 */
1002 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1003 	/* A bit mask (unsigned 32 bit value) of antenna arrays used
1004 	 * by indoor location measurements. Refers to the antenna
1005 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1006 	 */
1007 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1008 	/* AOA measurement data. Its contents depends on the AOA measurement
1009 	 * type and antenna array mask:
1010 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1011 	 * phase of the strongest CIR path for each antenna in the measured
1012 	 * array(s).
1013 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1014 	 * values, phase and amplitude of the strongest CIR path for each
1015 	 * antenna in the measured array(s).
1016 	 */
1017 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1018 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1019 	 * to specify the chain number (unsigned 32 bit value) to inquire
1020 	 * the corresponding antenna RSSI value
1021 	 */
1022 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1023 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1024 	 * to report the specific antenna RSSI value (unsigned 32 bit value)
1025 	 */
1026 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1027 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1028 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1029 	/* TSF timer value, unsigned 64 bit value.
1030 	 * May be returned by various commands.
1031 	 */
1032 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1033 	/* DMG RF sector index, unsigned 16 bit number. Valid values are
1034 	 * 0..127 for sector indices or 65535 as special value used to
1035 	 * unlock sector selection in
1036 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1037 	 */
1038 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1039 	/* DMG RF sector type, unsigned 8 bit value. One of the values
1040 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1041 	 */
1042 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1043 	/* Bitmask of DMG RF modules for which information is requested. Each
1044 	 * bit corresponds to an RF module with the same index as the bit
1045 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1046 	 * all DMG chips currently have up to 8 RF modules.
1047 	 */
1048 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1049 	/* Array of nested attributes where each entry is DMG RF sector
1050 	 * configuration for a single RF module.
1051 	 * Attributes for each entry are taken from enum
1052 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1053 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1054 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1055 	 */
1056 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1057 	/* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1058 	 * to report frame aggregation statistics to userspace.
1059 	 */
1060 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1061 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1062 	/* Unsigned 8-bit value representing MBO transition reason code as
1063 	 * provided by the AP used by subcommand
1064 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1065 	 * specified by the userspace in the request to the driver.
1066 	 */
1067 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1068 	/* Array of nested attributes, BSSID and status code, used by subcommand
1069 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1070 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1071 	 * The userspace space specifies the list/array of candidate BSSIDs in
1072 	 * the order of preference in the request. The driver specifies the
1073 	 * status code, for each BSSID in the list, in the response. The
1074 	 * acceptable candidates are listed in the order preferred by the
1075 	 * driver.
1076 	 */
1077 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1078 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1079 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1080 	 */
1081 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1082 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1083 	 * to define the number of antennas to use for BRP.
1084 	 * different purpose in each ANT_LIMIT_MODE:
1085 	 * DISABLE - ignored
1086 	 * EFFECTIVE - upper limit to number of antennas to be used
1087 	 * FORCE - exact number of antennas to be used
1088 	 * unsigned 8 bit value
1089 	 */
1090 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1091 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1092 	 * to report the corresponding antenna index to the chain RSSI value
1093 	 */
1094 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1095 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
1096 	 * the specific antenna EVM value (unsigned 32 bit value). With a
1097 	 * determinate group of antennas, the driver specifies the EVM value
1098 	 * for each antenna ID, and application extract them in user space.
1099 	 */
1100 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1101 	/*
1102 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1103 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1104 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1105 	 */
1106 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1107 
1108 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1109 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
1110 	 * of single values from enum qca_set_band are valid. This attribute
1111 	 * uses bitmask combinations to define the respective allowed band
1112 	 * combinations and this attributes takes precedence over
1113 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
1114 	 */
1115 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1116 
1117 	/* keep last */
1118 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1119 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
1120 };
1121 
1122 enum qca_roaming_policy {
1123 	QCA_ROAMING_NOT_ALLOWED,
1124 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
1125 };
1126 
1127 /**
1128  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
1129  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
1130  *
1131  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
1132  * reasons.
1133  *
1134  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
1135  * the configured threshold.
1136  *
1137  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
1138  * beacon misses from the then connected AP.
1139  *
1140  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
1141  * by the connected AP.
1142  *
1143  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
1144  * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
1145  *
1146  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
1147  * or environment being very noisy or congested.
1148  *
1149  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
1150  * from the user (user space).
1151  *
1152  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
1153  * the connected AP.
1154  *
1155  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
1156  * breaching out the configured threshold.
1157  */
1158 enum qca_roam_reason {
1159 	QCA_ROAM_REASON_UNKNOWN,
1160 	QCA_ROAM_REASON_PER,
1161 	QCA_ROAM_REASON_BEACON_MISS,
1162 	QCA_ROAM_REASON_POOR_RSSI,
1163 	QCA_ROAM_REASON_BETTER_RSSI,
1164 	QCA_ROAM_REASON_CONGESTION,
1165 	QCA_ROAM_REASON_USER_TRIGGER,
1166 	QCA_ROAM_REASON_BTM,
1167 	QCA_ROAM_REASON_BSS_LOAD,
1168 };
1169 
1170 enum qca_wlan_vendor_attr_roam_auth {
1171 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1172 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1173 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1174 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1175 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1176 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1177 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1178 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
1179 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
1180 	/* Indicates the status of re-association requested by user space for
1181 	 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1182 	 * Type u16.
1183 	 * Represents the status code from AP. Use
1184 	 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1185 	 * real status code for failures.
1186 	 */
1187 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1188 	/* This attribute indicates that the old association was maintained when
1189 	 * a re-association is requested by user space and that re-association
1190 	 * attempt fails (i.e., cannot connect to the requested BSS, but can
1191 	 * remain associated with the BSS with which the association was in
1192 	 * place when being requested to roam). Used along with
1193 	 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1194 	 * re-association status. Type flag.
1195 	 * This attribute is applicable only for re-association failure cases.
1196 	 */
1197 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1198 	/* This attribute specifies the PMK if one was newly generated during
1199 	 * FILS roaming. This is added to the PMKSA cache and is used in
1200 	 * subsequent connections with PMKSA caching.
1201 	 */
1202 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1203 	/* This attribute specifies the PMKID used/generated for the current
1204 	 * FILS roam. This is used in subsequent connections with PMKSA caching.
1205 	 */
1206 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1207 	/* A 16-bit unsigned value specifying the next sequence number to use
1208 	 * in ERP message in the currently associated realm. This is used in
1209 	 * doing subsequent ERP based connections in the same realm.
1210 	 */
1211 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
1212 	/* A 16-bit unsigned value representing the reasons for the roaming.
1213 	 * Defined by enum qca_roam_reason.
1214 	 */
1215 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1216 
1217 	/* keep last */
1218 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1219 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1220 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1221 };
1222 
1223 enum qca_wlan_vendor_attr_p2p_listen_offload {
1224 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1225 	/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1226 	 * of the social channels.
1227 	 */
1228 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1229 	/* A 32-bit unsigned value; the P2P listen offload period (ms).
1230 	 */
1231 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1232 	/* A 32-bit unsigned value; the P2P listen interval duration (ms).
1233 	 */
1234 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1235 	/* A 32-bit unsigned value; number of interval times the firmware needs
1236 	 * to run the offloaded P2P listen operation before it stops.
1237 	 */
1238 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1239 	/* An array of arbitrary binary data with one or more 8-byte values.
1240 	 * The device types include both primary and secondary device types.
1241 	 */
1242 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1243 	/* An array of unsigned 8-bit characters; vendor information elements.
1244 	 */
1245 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1246 	/* A 32-bit unsigned value; a control flag to indicate whether listen
1247 	 * results need to be flushed to wpa_supplicant.
1248 	 */
1249 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1250 	/* A 8-bit unsigned value; reason code for P2P listen offload stop
1251 	 * event.
1252 	 */
1253 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1254 	/* keep last */
1255 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1256 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1257 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1258 };
1259 
1260 /**
1261  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
1262  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1263  *
1264  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
1265  * Used with event to notify the primary channel number selected in ACS
1266  * operation.
1267  * Note: If both the driver and user-space application supports the 6 GHz band,
1268  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
1269  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
1270  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1271  * is still used if either of the driver or user space application doesn't
1272  * support the 6 GHz band.
1273  *
1274  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
1275  * Used with event to notify the secondary channel number selected in ACS
1276  * operation.
1277  * Note: If both the driver and user-space application supports the 6 GHz band,
1278  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
1279  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
1280  * To maintain backward compatibility,
1281  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
1282  * the driver or user space application doesn't support 6 GHz band.
1283  *
1284  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
1285  * (a) Used with command to configure hw_mode from
1286  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
1287  * (b) Also used with event to notify the hw_mode of selected primary channel
1288  * in ACS operation.
1289  *
1290  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
1291  * Used with command to configure ACS operation for HT mode.
1292  * Disable (flag attribute not present) - HT disabled and
1293  * Enable (flag attribute present) - HT enabled.
1294  *
1295  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
1296  * Used with command to configure ACS operation for HT40 mode.
1297  * Disable (flag attribute not present) - HT40 disabled and
1298  * Enable (flag attribute present) - HT40 enabled.
1299  *
1300  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
1301  * Used with command to configure ACS operation for VHT mode.
1302  * Disable (flag attribute not present) - VHT disabled and
1303  * Enable (flag attribute present) - VHT enabled.
1304  *
1305  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
1306  * mandatory with event.
1307  * If specified in command path, ACS operation is configured with the given
1308  * channel width (in MHz).
1309  * In event path, specifies the channel width of the primary channel selected.
1310  *
1311  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
1312  * Used with command to configure channel list using an array of
1313  * channel numbers (u8).
1314  * Note: If both the driver and user-space application supports the 6 GHz band,
1315  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
1316  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
1317  *
1318  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
1319  * Used with event to notify the VHT segment 0 center channel number selected in
1320  * ACS operation. The value is the index of the channel center frequency for
1321  * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
1322  * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
1323  * Note: If both the driver and user-space application supports the 6 GHz band,
1324  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
1325  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
1326  * To maintain backward compatibility,
1327  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
1328  * the driver or user space application doesn't support the 6 GHz band.
1329  *
1330  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
1331  * Used with event to notify the VHT segment 1 center channel number selected in
1332  * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
1333  * The value is the index of the channel center frequency for 160 MHz channels
1334  * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
1335  * channels.
1336  * Note: If both the driver and user-space application supports the 6 GHz band,
1337  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
1338  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
1339  * To maintain backward compatibility,
1340  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
1341  * the driver or user space application doesn't support the 6 GHz band.
1342  *
1343  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
1344  * Used with command to configure the channel list using an array of channel
1345  * center frequencies in MHz (u32).
1346  * Note: If both the driver and user-space application supports the 6 GHz band,
1347  * the driver first parses the frequency list and if it fails to get a frequency
1348  * list, parses the channel list specified using
1349  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
1350  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
1351  *
1352  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
1353  * Used with event to notify the primary channel center frequency (MHz) selected
1354  * in ACS operation.
1355  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1356  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
1357  *
1358  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
1359  * Used with event to notify the secondary channel center frequency (MHz)
1360  * selected in ACS operation.
1361  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1362  * includes this attribute along with
1363  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
1364  *
1365  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
1366  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
1367  * selected in ACS operation.
1368  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1369  * includes this attribute along with
1370  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
1371  *
1372  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
1373  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
1374  * selected in ACS operation.
1375  * Note: If the driver supports the 6 GHz band, the event sent from the driver
1376  * includes this attribute along with
1377  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
1378  *
1379  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
1380  * Used with command to notify the driver of EDMG request for ACS
1381  * operation.
1382  *
1383  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
1384  * Used with event to notify the EDMG channel number selected in ACS
1385  * operation.
1386  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
1387  */
1388 enum qca_wlan_vendor_attr_acs_offload {
1389 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
1390 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
1391 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
1392 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
1393 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
1394 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
1395 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
1396 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
1397 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
1398 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
1399 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
1400 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
1401 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
1402 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
1403 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
1404 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
1405 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
1406 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
1407 
1408 	/* keep last */
1409 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1410 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1411 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1412 };
1413 
1414 /**
1415  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
1416  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
1417  *
1418  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
1419  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
1420  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
1421  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
1422  * @QCA_ACS_MODE_IEEE80211ANY: all modes
1423  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
1424  */
1425 enum qca_wlan_vendor_acs_hw_mode {
1426 	QCA_ACS_MODE_IEEE80211B,
1427 	QCA_ACS_MODE_IEEE80211G,
1428 	QCA_ACS_MODE_IEEE80211A,
1429 	QCA_ACS_MODE_IEEE80211AD,
1430 	QCA_ACS_MODE_IEEE80211ANY,
1431 	QCA_ACS_MODE_IEEE80211AX,
1432 };
1433 
1434 /**
1435  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1436  *
1437  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1438  *	management offload, a mechanism where the station's firmware
1439  *	does the exchange with the AP to establish the temporal keys
1440  *	after roaming, rather than having the user space wpa_supplicant do it.
1441  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1442  *	band selection based on channel selection results.
1443  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
1444  *	simultaneous off-channel operations.
1445  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1446  *	Listen offload; a mechanism where the station's firmware takes care of
1447  *	responding to incoming Probe Request frames received from other P2P
1448  *	Devices whilst in Listen state, rather than having the user space
1449  *	wpa_supplicant do it. Information from received P2P requests are
1450  *	forwarded from firmware to host whenever the host processor wakes up.
1451  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1452  *	specific features.
1453  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1454  *	features.
1455  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1456  *	specific features only. If a Device sets this bit but not the
1457  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1458  *	this Device may not support all OCE AP functionalities but can support
1459  *	only OCE STA-CFON functionalities.
1460  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1461  *	managed regulatory.
1462  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
1463  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
1464  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
1465  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
1466  *	and applying thermal configuration through
1467  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
1468  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
1469  *	userspace.
1470  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
1471  *	With Adaptive 11r feature, access points advertise the vendor
1472  *	specific IEs and MDE but do not include FT AKM in the RSNE.
1473  *	The Adaptive 11r supported stations are expected to identify
1474  *	such vendor specific IEs and connect to the AP in FT mode though
1475  *	the profile is configured in non-FT mode.
1476  *	The driver-based SME cases also need to have this support for
1477  *	Adaptive 11r to handle the connection and roaming scenarios.
1478  *	This flag indicates the support for the same to the user space.
1479  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
1480  *	concurrent network sessions on different Wi-Fi bands. This feature
1481  *	capability is attributed to the hardware's capability to support
1482  *	the same (e.g., DBS).
1483  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
1484  *	responses for the respective TWT operations are asynchronous (separate
1485  *	event message) from the driver. If not specified, the responses are
1486  *	synchronous (in vendor command reply) to the request. Each TWT
1487  *	operation is specifically mentioned (against its respective
1488  *	documentation) to support either of these or both modes.
1489  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1490  */
1491 enum qca_wlan_vendor_features {
1492 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
1493 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
1494 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
1495 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD	= 3,
1496 	QCA_WLAN_VENDOR_FEATURE_OCE_STA                 = 4,
1497 	QCA_WLAN_VENDOR_FEATURE_OCE_AP                  = 5,
1498 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON            = 6,
1499 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
1500 	QCA_WLAN_VENDOR_FEATURE_TWT 			= 8,
1501 	QCA_WLAN_VENDOR_FEATURE_11AX			= 9,
1502 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT		= 10,
1503 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG		= 11,
1504 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R		= 12,
1505 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
1506 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT	= 14,
1507 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1508 };
1509 
1510 /**
1511  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1512  *
1513  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1514  *	the offloaded data.
1515  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1516  *	data.
1517  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1518  *	indication.
1519  */
1520 enum qca_wlan_vendor_attr_data_offload_ind {
1521 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1522 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1523 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1524 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1525 
1526 	/* keep last */
1527 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1528 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1529 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1530 };
1531 
1532 /**
1533  * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1534  *	OCB config
1535  *
1536  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1537  *	configuration
1538  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1539  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1540  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1541  *	scheduled
1542  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1543  *	information
1544  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1545  *	active state configuration
1546  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1547  *	OCB_CONFIG_FLAG_80211_FRAME_MODE
1548  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1549  *	use in the case that a packet is sent without a TX control header
1550  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1551  *	last TA received that the local time set by TA is synchronous to other
1552  *	communicating OCB STAs.
1553  */
1554 enum qca_wlan_vendor_attr_ocb_set_config {
1555 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1556 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1557 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1558 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1559 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1560 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1561 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1562 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1563 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1564 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1565 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1566 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1567 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1568 };
1569 
1570 /**
1571  * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1572  *	UTC time
1573  *
1574  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1575  *	10 bytes
1576  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1577  *	5 bytes
1578  */
1579 enum qca_wlan_vendor_attr_ocb_set_utc_time {
1580 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1581 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1582 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1583 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1584 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1585 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1586 };
1587 
1588 /**
1589  * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1590  *	to start sending timing advert frames
1591  *
1592  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1593  *	on which to send the frames
1594  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1595  *	the frame is sent in 5 seconds
1596  */
1597 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1598 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1599 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1600 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1601 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1602 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1603 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1604 };
1605 
1606 /**
1607  * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1608  *	to stop timing advert
1609  *
1610  * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1611  *	frequency on which to stop the timing advert
1612  */
1613 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1614 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1615 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1616 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1617 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1618 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1619 };
1620 
1621 /**
1622  * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1623  *	get TSF timer value
1624  *
1625  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1626  *	timer
1627  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1628  */
1629 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1630 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1631 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1632 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1633 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1634 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1635 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1636 };
1637 
1638 enum qca_vendor_attr_get_preferred_freq_list {
1639 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1640 	/* A 32-unsigned value; the interface type/mode for which the preferred
1641 	 * frequency list is requested (see enum qca_iface_type for possible
1642 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1643 	 * kernel and in the kernel response back to user-space.
1644 	 */
1645 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1646 	/* An array of 32-unsigned values; values are frequency (MHz); sent
1647 	 * from kernel space to user space.
1648 	 */
1649 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
1650 	/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1651 	 * attribute. Each element contains frequency (MHz), weight, and flag
1652 	 * bit mask indicating how the frequency should be used in P2P
1653 	 * negotiation; sent from kernel space to user space.
1654 	 */
1655 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
1656 	/* keep last */
1657 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1658 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1659 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1660 };
1661 
1662 enum qca_vendor_attr_probable_oper_channel {
1663 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1664 	/* 32-bit unsigned value; indicates the connection/iface type likely to
1665 	 * come on this channel (see enum qca_iface_type).
1666 	 */
1667 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1668 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1669 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1670 	/* keep last */
1671 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1672 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1673 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1674 };
1675 
1676 enum qca_iface_type {
1677 	QCA_IFACE_TYPE_STA,
1678 	QCA_IFACE_TYPE_AP,
1679 	QCA_IFACE_TYPE_P2P_CLIENT,
1680 	QCA_IFACE_TYPE_P2P_GO,
1681 	QCA_IFACE_TYPE_IBSS,
1682 	QCA_IFACE_TYPE_TDLS,
1683 };
1684 
1685 enum qca_set_band {
1686 	QCA_SETBAND_AUTO = 0,
1687 	QCA_SETBAND_5G = BIT(0),
1688 	QCA_SETBAND_2G = BIT(1),
1689 	QCA_SETBAND_6G = BIT(2),
1690 };
1691 
1692 /**
1693  * enum qca_access_policy - Access control policy
1694  *
1695  * Access control policy is applied on the configured IE
1696  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1697  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1698  *
1699  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1700  *	the specific configuration (IE) set, i.e., allow all the
1701  *	connections which do not match the configuration.
1702  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1703  *	the specific configuration (IE) set, i.e., deny all the
1704  *	connections which do not match the configuration.
1705  */
1706 enum qca_access_policy {
1707 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1708 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1709 };
1710 
1711 /**
1712  * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1713  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1714  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1715  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1716  *	SOC timer value at TSF capture
1717  */
1718 enum qca_vendor_attr_tsf_cmd {
1719 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1720 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1721 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1722 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1723 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1724 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1725 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1726 };
1727 
1728 /**
1729  * enum qca_tsf_operation: TSF driver commands
1730  * @QCA_TSF_CAPTURE: Initiate TSF Capture
1731  * @QCA_TSF_GET: Get TSF capture value
1732  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1733  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
1734  * will automatically send TSF report to the host. To query
1735  * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
1736  * initiated first.
1737  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
1738  * will not automatically send TSF report to the host. If
1739  * QCA_TSF_AUTO_REPORT_ENABLE is initiated and
1740  * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
1741  * operation needs to be initiated.
1742  */
1743 enum qca_tsf_cmd {
1744 	QCA_TSF_CAPTURE,
1745 	QCA_TSF_GET,
1746 	QCA_TSF_SYNC_GET,
1747 	QCA_TSF_AUTO_REPORT_ENABLE,
1748 	QCA_TSF_AUTO_REPORT_DISABLE,
1749 };
1750 
1751 /**
1752  * enum qca_vendor_attr_wisa_cmd
1753  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1754  * WISA setup vendor commands
1755  */
1756 enum qca_vendor_attr_wisa_cmd {
1757 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1758 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1759 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1760 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1761 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1762 };
1763 
1764 /* IEEE 802.11 Vendor Specific elements */
1765 
1766 /**
1767  * enum qca_vendor_element_id - QCA Vendor Specific element types
1768  *
1769  * These values are used to identify QCA Vendor Specific elements. The
1770  * payload of the element starts with the three octet OUI (OUI_QCA) and
1771  * is followed by a single octet type which is defined by this enum.
1772  *
1773  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1774  *	This element can be used to specify preference order for supported
1775  *	channels. The channels in this list are in preference order (the first
1776  *	one has the highest preference) and are described as a pair of
1777  *	(global) Operating Class and Channel Number (each one octet) fields.
1778  *
1779  *	This extends the standard P2P functionality by providing option to have
1780  *	more than one preferred operating channel. When this element is present,
1781  *	it replaces the preference indicated in the Operating Channel attribute.
1782  *	For supporting other implementations, the Operating Channel attribute is
1783  *	expected to be used with the highest preference channel. Similarly, all
1784  *	the channels included in this Preferred channel list element are
1785  *	expected to be included in the Channel List attribute.
1786  *
1787  *	This vendor element may be included in GO Negotiation Request, P2P
1788  *	Invitation Request, and Provision Discovery Request frames.
1789  *
1790  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1791  *	This element can be used for pre-standard publication testing of HE
1792  *	before P802.11ax draft assigns the element ID. The payload of this
1793  *	vendor specific element is defined by the latest P802.11ax draft.
1794  *	Please note that the draft is still work in progress and this element
1795  *	payload is subject to change.
1796  *
1797  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1798  *	This element can be used for pre-standard publication testing of HE
1799  *	before P802.11ax draft assigns the element ID. The payload of this
1800  *	vendor specific element is defined by the latest P802.11ax draft.
1801  *	Please note that the draft is still work in progress and this element
1802  *	payload is subject to change.
1803  *
1804  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1805  *	element).
1806  *	This element can be used for pre-standard publication testing of HE
1807  *	before P802.11ax draft assigns the element ID extension. The payload of
1808  *	this vendor specific element is defined by the latest P802.11ax draft
1809  *	(not including the Element ID Extension field). Please note that the
1810  *	draft is still work in progress and this element payload is subject to
1811  *	change.
1812  *
1813  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1814  *	This element can be used for pre-standard publication testing of HE
1815  *	before P802.11ax draft assigns the element ID extension. The payload of
1816  *	this vendor specific element is defined by the latest P802.11ax draft
1817  *	(not including the Element ID Extension field). Please note that the
1818  *	draft is still work in progress and this element payload is subject to
1819  *	change.
1820  *
1821  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1822  *	This element can be used for pre-standard publication testing of HE
1823  *	before P802.11ax draft assigns the element ID extension. The payload of
1824  *	this vendor specific element is defined by the latest P802.11ax draft
1825  *	(not including the Element ID Extension field). Please note that the
1826  *	draft is still work in progress and this element payload is subject to
1827  *	change.
1828  *
1829  *  @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
1830  */
1831 enum qca_vendor_element_id {
1832 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
1833 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
1834 	QCA_VENDOR_ELEM_HE_OPER = 2,
1835 	QCA_VENDOR_ELEM_RAPS = 3,
1836 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1837 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
1838 	QCA_VENDOR_ELEM_ALLPLAY = 6,
1839 };
1840 
1841 /**
1842  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1843  *
1844  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1845  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1846  *	with frequencies to be scanned (in MHz)
1847  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1848  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1849  *	rates to be included
1850  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1851  *	at non CCK rate in 2GHz band
1852  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1853  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1854  *	driver for the specific scan request
1855  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1856  *	request decoded as in enum scan_status
1857  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1858  *	scan flag is set
1859  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1860  *	randomisation
1861  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1862  *	specific BSSID to scan for.
1863  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
1864  *	microseconds. This is a common value which applies across all
1865  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
1866  */
1867 enum qca_wlan_vendor_attr_scan {
1868 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
1869 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1870 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1871 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1872 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1873 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1874 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1875 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1876 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1877 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1878 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1879 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
1880 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
1881 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1882 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1883 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1884 };
1885 
1886 /**
1887  * enum scan_status - Specifies the valid values the vendor scan attribute
1888  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1889  *
1890  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1891  *	new scan results
1892  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1893  */
1894 enum scan_status {
1895 	VENDOR_SCAN_STATUS_NEW_RESULTS,
1896 	VENDOR_SCAN_STATUS_ABORTED,
1897 	VENDOR_SCAN_STATUS_MAX,
1898 };
1899 
1900 /**
1901  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1902  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1903  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1904  */
1905 enum qca_vendor_attr_ota_test {
1906 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1907 	/* 8-bit unsigned value to indicate if OTA test is enabled */
1908 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1909 	/* keep last */
1910 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1911 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1912 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1913 };
1914 
1915 /**
1916  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1917  *
1918  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1919  */
1920 enum qca_vendor_attr_txpower_scale {
1921 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1922 	/* 8-bit unsigned value to indicate the scaling of tx power */
1923 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1924 	/* keep last */
1925 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1926 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1927 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1928 };
1929 
1930 /**
1931  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1932  *
1933  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1934  */
1935 enum qca_vendor_attr_txpower_decr_db {
1936 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1937 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
1938 	 * a virtual interface.
1939 	 */
1940 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1941 	/* keep last */
1942 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1943 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1944 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1945 };
1946 
1947 /* Attributes for data used by
1948  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1949  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
1950  */
1951 enum qca_wlan_vendor_attr_config {
1952 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
1953 	/* Unsigned 32-bit value to set the DTIM period.
1954 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1955 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1956 	 * DTIM beacons.
1957 	 */
1958 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
1959 	/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1960 	 * used to calculate statistics like average the TSF offset or average
1961 	 * number of frame leaked.
1962 	 * For instance, upon Beacon frame reception:
1963 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1964 	 * For instance, when evaluating leaky APs:
1965 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1966 	 */
1967 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
1968 	/* Unsigned 32-bit value to configure guard time, i.e., when
1969 	 * implementing IEEE power management based on frame control PM bit, how
1970 	 * long the driver waits before shutting down the radio and after
1971 	 * receiving an ACK frame for a Data frame with PM bit set.
1972 	 */
1973 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
1974 	/* Unsigned 32-bit value to change the FTM capability dynamically */
1975 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
1976 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
1977 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
1978 	/* Unsigned 32-bit value to configure the number of continuous
1979 	 * Beacon Miss which shall be used by the firmware to penalize
1980 	 * the RSSI.
1981 	 */
1982 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
1983 	/* Unsigned 8-bit value to configure the channel avoidance indication
1984 	 * behavior. Firmware to send only one indication and ignore duplicate
1985 	 * indications when set to avoid multiple Apps wakeups.
1986 	 */
1987 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
1988 	/* 8-bit unsigned value to configure the maximum TX MPDU for
1989 	 * aggregation.
1990 	 */
1991 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
1992 	/* 8-bit unsigned value to configure the maximum RX MPDU for
1993 	 * aggregation.
1994 	 */
1995 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
1996 	/* 8-bit unsigned value to configure the Non aggregrate/11g sw
1997 	 * retry threshold (0 disable, 31 max).
1998 	 */
1999 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
2000 	/* 8-bit unsigned value to configure the aggregrate sw
2001 	 * retry threshold (0 disable, 31 max).
2002 	 */
2003 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
2004 	/* 8-bit unsigned value to configure the MGMT frame
2005 	 * retry threshold (0 disable, 31 max).
2006 	 */
2007 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
2008 	/* 8-bit unsigned value to configure the CTRL frame
2009 	 * retry threshold (0 disable, 31 max).
2010 	 */
2011 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
2012 	/* 8-bit unsigned value to configure the propagation delay for
2013 	 * 2G/5G band (0~63, units in us)
2014 	 */
2015 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
2016 	/* Unsigned 32-bit value to configure the number of unicast TX fail
2017 	 * packet count. The peer is disconnected once this threshold is
2018 	 * reached.
2019 	 */
2020 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
2021 	/* Attribute used to set scan default IEs to the driver.
2022 	 *
2023 	 * These IEs can be used by scan operations that will be initiated by
2024 	 * the driver/firmware.
2025 	 *
2026 	 * For further scan requests coming to the driver, these IEs should be
2027 	 * merged with the IEs received along with scan request coming to the
2028 	 * driver. If a particular IE is present in the scan default IEs but not
2029 	 * present in the scan request, then that IE should be added to the IEs
2030 	 * sent in the Probe Request frames for that scan request.
2031 	 */
2032 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
2033 	/* Unsigned 32-bit attribute for generic commands */
2034 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
2035 	/* Unsigned 32-bit value attribute for generic commands */
2036 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
2037 	/* Unsigned 32-bit data attribute for generic command response */
2038 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
2039 	/* Unsigned 32-bit length attribute for
2040 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2041 	 */
2042 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
2043 	/* Unsigned 32-bit flags attribute for
2044 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
2045 	 */
2046 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
2047 	/* Unsigned 32-bit, defining the access policy.
2048 	 * See enum qca_access_policy. Used with
2049 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
2050 	 */
2051 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
2052 	/* Sets the list of full set of IEs for which a specific access policy
2053 	 * has to be applied. Used along with
2054 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
2055 	 * Zero length payload can be used to clear this access constraint.
2056 	 */
2057 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
2058 	/* Unsigned 32-bit, specifies the interface index (netdev) for which the
2059 	 * corresponding configurations are applied. If the interface index is
2060 	 * not specified, the configurations are attributed to the respective
2061 	 * wiphy.
2062 	 */
2063 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
2064 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
2065 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
2066 	/* 8-bit unsigned value to configure the driver and below layers to
2067 	 * ignore the assoc disallowed set by APs while connecting
2068 	 * 1-Ignore, 0-Don't ignore
2069 	 */
2070 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
2071 	/* 32-bit unsigned value to trigger antenna diversity features:
2072 	 * 1-Enable, 0-Disable
2073 	 */
2074 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
2075 	/* 32-bit unsigned value to configure specific chain antenna */
2076 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
2077 	/* 32-bit unsigned value to trigger cycle selftest
2078 	 * 1-Enable, 0-Disable
2079 	 */
2080 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
2081 	/* 32-bit unsigned to configure the cycle time of selftest
2082 	 * the unit is micro-second
2083 	 */
2084 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
2085 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
2086 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
2087 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
2088 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
2089 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
2090 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
2091 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
2092 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
2093 	/* 6-byte MAC address to point out the specific peer */
2094 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
2095 	/* 32-bit unsigned value to set window size for specific peer */
2096 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
2097 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
2098 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
2099 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
2100 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
2101 	/* 32-bit unsigned value to configure 5 or 10 MHz channel width for
2102 	 * station device while in disconnect state. The attribute use the
2103 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
2104 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
2105 	 * 10 MHz channel width, the station will not connect to a BSS using 20
2106 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
2107 	 * clear this constraint.
2108 	 */
2109 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
2110 	/* 32-bit unsigned value to configure the propagation absolute delay
2111 	 * for 2G/5G band (units in us)
2112 	 */
2113 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
2114 	/* 32-bit unsigned value to set probe period */
2115 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
2116 	/* 32-bit unsigned value to set stay period */
2117 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
2118 	/* 32-bit unsigned value to set snr diff */
2119 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
2120 	/* 32-bit unsigned value to set probe dwell time */
2121 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
2122 	/* 32-bit unsigned value to set mgmt snr weight */
2123 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
2124 	/* 32-bit unsigned value to set data snr weight */
2125 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
2126 	/* 32-bit unsigned value to set ack snr weight */
2127 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
2128 	/* 32-bit unsigned value to configure the listen interval.
2129 	 * This is in units of beacon intervals. This configuration alters
2130 	 * the negotiated listen interval with the AP during the connection.
2131 	 * It is highly recommended to configure a value less than or equal to
2132 	 * the one negotiated during the association. Configuring any greater
2133 	 * value can have adverse effects (frame loss, AP disassociating STA,
2134 	 * etc.).
2135 	 */
2136 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
2137 	/*
2138 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
2139 	 * disable operations that would cause the AP/GO to leave its operating
2140 	 * channel.
2141 	 *
2142 	 * This will restrict the scans to the AP/GO operating channel and the
2143 	 * channels of the other band, if DBS is supported.A STA/CLI interface
2144 	 * brought up after this setting is enabled, will be restricted to
2145 	 * connecting to devices only on the AP/GO interface's operating channel
2146 	 * or on the other band in DBS case. P2P supported channel list is
2147 	 * modified, to only include AP interface's operating-channel and the
2148 	 * channels of the other band if DBS is supported.
2149 	 *
2150 	 * These restrictions are only applicable as long as the AP/GO interface
2151 	 * is alive. If the AP/GO interface is brought down then this
2152 	 * setting/restriction is forgotten.
2153 	 *
2154 	 * If this variable is set on an AP/GO interface while a multi-channel
2155 	 * concurrent session is active, it has no effect on the operation of
2156 	 * the current interfaces, other than restricting the scan to the AP/GO
2157 	 * operating channel and the other band channels if DBS is supported.
2158 	 * However, if the STA is brought down and restarted then the new STA
2159 	 * connection will either be formed on the AP/GO channel or on the
2160 	 * other band in a DBS case. This is because of the scan being
2161 	 * restricted on these channels as mentioned above.
2162 	 *
2163 	 * 1-Restrict / 0-Don't restrict offchannel operations.
2164 	 */
2165 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
2166 	/*
2167 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
2168 	 * on an interface.
2169 	 * 1 - Enable, 0 - Disable.
2170 	 */
2171 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
2172 
2173 	/*
2174 	 * 8 bit unsigned value to globally enable/disable scan
2175 	 * 1 - Enable, 0 - Disable.
2176 	 */
2177 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
2178 
2179 	/* 8-bit unsigned value to set the total beacon miss count
2180 	 * This parameter will set the total beacon miss count.
2181 	 */
2182 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
2183 
2184 	/* Unsigned 32-bit value to configure the number of continuous
2185 	 * Beacon Miss which shall be used by the firmware to penalize
2186 	 * the RSSI for BTC.
2187 	 */
2188 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
2189 
2190 	/* 8-bit unsigned value to configure the driver and below layers to
2191 	 * enable/disable all FILS features.
2192 	 * 0-enable, 1-disable
2193 	 */
2194 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
2195 
2196 	/* 16-bit unsigned value to configure the level of WLAN latency
2197 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
2198 	 */
2199 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
2200 
2201 	/* 8-bit unsigned value indicating the driver to use the RSNE as-is from
2202 	 * the connect interface. Exclusively used for the scenarios where the
2203 	 * device is used as a test bed device with special functionality and
2204 	 * not recommended for production. This helps driver to not validate the
2205 	 * RSNE passed from user space and thus allow arbitrary IE data to be
2206 	 * used for testing purposes.
2207 	 * 1-enable, 0-disable.
2208 	 * Applications set/reset this configuration. If not reset, this
2209 	 * parameter remains in use until the driver is unloaded.
2210 	 */
2211 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
2212 
2213 	/* 8-bit unsigned value to trigger green Tx power saving.
2214 	 * 1-Enable, 0-Disable
2215 	 */
2216 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
2217 
2218 	/* Attribute to configure disconnect IEs to the driver.
2219 	 * This carries an array of unsigned 8-bit characters.
2220 	 *
2221 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
2222 	 * frame.
2223 	 * These IEs are expected to be considered only for the next
2224 	 * immediate disconnection (disassoc/deauth frame) originated by
2225 	 * the DUT, irrespective of the entity (user space/driver/firmware)
2226 	 * triggering the disconnection.
2227 	 * The host drivers are not expected to use the IEs set through
2228 	 * this interface for further disconnections after the first immediate
2229 	 * disconnection initiated post the configuration.
2230 	 * If the IEs are also updated through cfg80211 interface (after the
2231 	 * enhancement to cfg80211_disconnect), host driver is expected to
2232 	 * take the union of IEs from both of these interfaces and send in
2233 	 * further disassoc/deauth frames.
2234 	 */
2235 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
2236 
2237 	/* 8-bit unsigned value for ELNA bypass.
2238 	 * 1-Enable, 0-Disable
2239 	 */
2240 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
2241 
2242 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2243 	 * to send the Beacon Report Response with failure reason for the
2244 	 * scenarios where STA cannot honor the Beacon Report Request from AP.
2245 	 * 1-Enable, 0-Disable.
2246 	 */
2247 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
2248 
2249 	/* 8-bit unsigned value. This attribute enables/disables the host driver
2250 	 * to send roam reason information in the Reassociation Request frame to
2251 	 * the target AP when roaming within the same ESS.
2252 	 * 1-Enable, 0-Disable.
2253 	 */
2254 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
2255 
2256 	/* 32-bit unsigned value to configure different PHY modes to the
2257 	 * driver/firmware. The possible values are defined in
2258 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
2259 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
2260 	 * the driver.
2261 	 */
2262 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
2263 
2264 	/* 8-bit unsigned value to configure the maximum supported channel width
2265 	 * for STA mode. If this value is configured when STA is in connected
2266 	 * state, it should not exceed the negotiated channel width. If it is
2267 	 * configured when STA is in disconnected state, the configured value
2268 	 * will take effect for the next immediate connection.
2269 	 * Possible values are:
2270 	 *   NL80211_CHAN_WIDTH_20
2271 	 *   NL80211_CHAN_WIDTH_40
2272 	 *   NL80211_CHAN_WIDTH_80
2273 	 *   NL80211_CHAN_WIDTH_80P80
2274 	 *   NL80211_CHAN_WIDTH_160
2275 	 */
2276 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
2277 
2278 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
2279 	 * This attribute is only applicable for STA mode. When dynamic
2280 	 * bandwidth adjustment is disabled, STA will use static channel width
2281 	 * the value of which is negotiated during connection.
2282 	 * 1-enable (default), 0-disable
2283 	 */
2284 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
2285 
2286 	/* 8-bit unsigned value to configure the maximum number of subframes of
2287 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
2288 	 * it is decided by the hardware.
2289 	 */
2290 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
2291 
2292 	/* 8-bit unsigned value to configure the maximum number of subframes of
2293 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
2294 	 * it is decided by the hardware.
2295 	 */
2296 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
2297 
2298 	/* 8-bit unsigned value. This attribute is used to dynamically
2299 	 * enable/disable the LDPC capability of the device. When configured in
2300 	 * the disconnected state, the updated configuration will be considered
2301 	 * for the immediately following connection attempt. If this
2302 	 * configuration is modified while the device is in the connected state,
2303 	 * the LDPC TX will be updated with this configuration immediately,
2304 	 * while the LDPC RX configuration update will take place starting from
2305 	 * the subsequent association attempt.
2306 	 * 1-Enable, 0-Disable.
2307 	 */
2308 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
2309 
2310 	/* 8-bit unsigned value. This attribute is used to dynamically
2311 	 * enable/disable the TX STBC capability of the device. When configured
2312 	 * in the disconnected state, the updated configuration will be
2313 	 * considered for the immediately following connection attempt. If the
2314 	 * connection is formed with TX STBC enabled and if this configuration
2315 	 * is disabled during that association, the TX will be impacted
2316 	 * immediately. Further connection attempts will disable TX STBC.
2317 	 * However, enabling the TX STBC for a connected session with disabled
2318 	 * capability is not allowed and will fail.
2319 	 * 1-Enable, 0-Disable.
2320 	 */
2321 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
2322 
2323 	/* 8-bit unsigned value. This attribute is used to dynamically
2324 	 * enable/disable the RX STBC capability of the device. When configured
2325 	 * in the disconnected state, the updated configuration will be
2326 	 * considered for the immediately following connection attempt. If the
2327 	 * configuration is modified in the connected state, there will be no
2328 	 * impact for the current association, but further connection attempts
2329 	 * will use the updated configuration.
2330 	 * 1-Enable, 0-Disable.
2331 	 */
2332 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
2333 
2334 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2335 	 * the number of spatial streams. When configured in the disconnected
2336 	 * state, the updated configuration will be considered for the
2337 	 * immediately following connection attempt. If the NSS is updated after
2338 	 * the connection, the updated NSS value is notified to the peer using
2339 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
2340 	 * frame. The updated NSS value after the connection shall not be
2341 	 * greater than the one negotiated during the connection. Any such
2342 	 * higher value configuration shall be returned with a failure.
2343 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
2344 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
2345 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
2346 	 * configure the asymmetric NSS configuration (such as 1X2).
2347 	 */
2348 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
2349 	/* 8-bit unsigned value to trigger Optimized Power Management:
2350 	 * 1-Enable, 0-Disable
2351 	 */
2352 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
2353 
2354 	/* 8-bit unsigned value. This attribute takes the QoS/access category
2355 	 * value represented by the enum qca_wlan_ac_type and expects the driver
2356 	 * to upgrade the UDP frames to this access category. The value of
2357 	 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
2358 	 * DSCP value configured in the frame with the intention to only upgrade
2359 	 * the access category. That said, it is not intended to downgrade the
2360 	 * access category for the frames.
2361 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
2362 	 * disabled, as BK is of the lowest priority and an upgrade to it does
2363 	 * not result in any changes for the frames.
2364 	 */
2365 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
2366 
2367 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2368 	 * the number of chains to be used for transmitting data. This
2369 	 * configuration is allowed only when in connected state and will be
2370 	 * effective until disconnected. The driver rejects this configuration
2371 	 * if the number of spatial streams being used in the current connection
2372 	 * cannot be supported by this configuration.
2373 	 */
2374 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
2375 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2376 	 * the number of chains to be used for receiving data. This
2377 	 * configuration is allowed only when in connected state and will be
2378 	 * effective until disconnected. The driver rejects this configuration
2379 	 * if the number of spatial streams being used in the current connection
2380 	 * cannot be supported by this configuration.
2381 	 */
2382 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
2383 
2384 	/* 8-bit unsigned value to configure ANI setting type.
2385 	 * See &enum qca_wlan_ani_setting for possible values.
2386 	 */
2387 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
2388 	/* 32-bit signed value to configure ANI level. This is used when
2389 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
2390 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
2391 	 * is invalid, the driver will return a failure.
2392 	 */
2393 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
2394 
2395 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2396 	 * the number of spatial streams used for transmitting the data. When
2397 	 * configured in the disconnected state, the configured value will
2398 	 * be considered for the following connection attempt.
2399 	 * If the NSS is updated after the connection, the updated NSS value
2400 	 * is notified to the peer using the Operating Mode Notification/Spatial
2401 	 * Multiplexing Power Save frame.
2402 	 * The TX NSS value configured after the connection shall not be greater
2403 	 * than the value negotiated during the connection. Any such higher
2404 	 * value configuration shall be treated as invalid configuration by
2405 	 * the driver. This attribute shall be configured along with
2406 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
2407 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2408 	 * configuration (such as 1X2).
2409 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2410 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
2411 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
2412 	 */
2413 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
2414 
2415 	/* 8-bit unsigned value. This attribute is used to dynamically configure
2416 	 * the number of spatial streams used for receiving the data. When
2417 	 * configured in the disconnected state, the configured value will
2418 	 * be considered for the following connection attempt.
2419 	 * If the NSS is updated after the connection, the updated NSS value
2420 	 * is notified to the peer using the Operating Mode Notification/Spatial
2421 	 * Multiplexing Power Save frame.
2422 	 * The RX NSS value configured after the connection shall not be greater
2423 	 * than the value negotiated during the connection. Any such higher
2424 	 * value configuration shall be treated as invalid configuration by
2425 	 * the driver. This attribute shall be configured along with
2426 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
2427 	 * configuration (such as 2X2 or 1X1) or the asymmetric
2428 	 * configuration (such as 1X2).
2429 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
2430 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
2431 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
2432 	 */
2433 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
2434 
2435 	/*
2436 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
2437 	 * specified interface is the primary STA interface when there are more
2438 	 * than one STA interfaces concurrently active.
2439 	 *
2440 	 * This configuration helps the firmware/hardware to support certain
2441 	 * features (e.g., roaming) on this primary interface, if the same
2442 	 * cannot be supported on the concurrent STA interfaces simultaneously.
2443 	 *
2444 	 * This configuration is only applicable for a single STA interface on
2445 	 * a device and gives the priority for it only over other concurrent STA
2446 	 * interfaces.
2447 	 *
2448 	 * If the device is a multi wiphy/soc, this configuration applies to a
2449 	 * single STA interface across the wiphys.
2450 	 *
2451 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
2452 	 */
2453 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
2454 
2455 	/*
2456 	 * 8-bit unsigned value. This attribute can be used to configure the
2457 	 * driver to enable/disable FT-over-DS feature. Possible values for
2458 	 * this attribute are 1-Enable and 0-Disable.
2459 	 */
2460 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
2461 
2462 	/* keep last */
2463 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
2464 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
2465 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
2466 };
2467 
2468 /* Compatibility defines for previously used incorrect enum
2469  * qca_wlan_vendor_attr_config names. These values should not be used in any
2470  * new implementation. */
2471 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
2472 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
2473 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
2474 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
2475 
2476 /**
2477  * enum qca_wlan_ani_setting - ANI setting type
2478  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
2479  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
2480  */
2481 enum qca_wlan_ani_setting {
2482 	QCA_WLAN_ANI_SETTING_AUTO = 0,
2483 	QCA_WLAN_ANI_SETTING_FIXED = 1,
2484 };
2485 
2486 /**
2487  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
2488  *
2489  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
2490  * Channel number on which Access Point should restart.
2491  * Note: If both the driver and user space application supports the 6 GHz band,
2492  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
2493  * should be used.
2494  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
2495  * is still used if either of the driver or user space application doesn't
2496  * support the 6 GHz band.
2497  *
2498  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
2499  * Channel center frequency (MHz) on which the access point should restart.
2500  */
2501 enum qca_wlan_vendor_attr_sap_config {
2502 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
2503 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
2504 
2505 	/* List of frequencies on which AP is expected to operate.
2506 	 * This is irrespective of ACS configuration. This list is a priority
2507 	 * based one and is looked for before the AP is created to ensure the
2508 	 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
2509 	 * the system.
2510 	 */
2511 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
2512 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
2513 
2514 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
2515 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
2516 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
2517 };
2518 
2519 /**
2520  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
2521  *					conditional channel switch
2522  */
2523 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
2524 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
2525 	/* Priority based frequency list (an array of u32 values in host byte
2526 	 * order)
2527 	 */
2528 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
2529 	/* Status of the conditional switch (u32).
2530 	 * 0: Success, Non-zero: Failure
2531 	 */
2532 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
2533 
2534 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
2535 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
2536 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
2537 };
2538 
2539 /**
2540  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
2541  *
2542  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
2543  * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
2544  * for the available values.
2545  *
2546  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
2547  * value to specify the GPIO number.
2548  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2549  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2550  *
2551  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
2552  * value to specify the GPIO output level. Please refer to enum qca_gpio_value
2553  * for the available values.
2554  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2555  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
2556  *
2557  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
2558  * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
2559  * for the available values.
2560  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2561  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2562  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2563  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2564  * attribute is present.
2565  *
2566  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
2567  * value to specify the GPIO interrupt mode. Please refer to enum
2568  * qca_gpio_interrupt_mode for the available values.
2569  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2570  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2571  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2572  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2573  * attribute is present.
2574  *
2575  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
2576  * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
2577  * for the available values.
2578  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2579  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
2580  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
2581  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
2582  * attribute is present.
2583  *
2584  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
2585  * Value to specify the mux config. Meaning of a given value is dependent
2586  * on the target chipset and GPIO pin. Must be of the range 0-15.
2587  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2588  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
2589  *
2590  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
2591  * Value to specify the drive, refer to enum qca_gpio_drive.
2592  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2593  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
2594  *
2595  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
2596  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
2597  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
2598  * other parameters for the given GPIO will be obtained from internal
2599  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
2600  * specified to indicate the GPIO pin being configured.
2601  */
2602 enum qca_wlan_gpio_attr {
2603 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
2604 	/* Unsigned 32-bit attribute for GPIO command */
2605 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
2606 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
2607 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
2608 	/* Unsigned 32-bit attribute for GPIO value to configure */
2609 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
2610 	/* Unsigned 32-bit attribute for GPIO pull type */
2611 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
2612 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
2613 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
2614 	/* Unsigned 32-bit attribute for GPIO direction to configure */
2615 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
2616 	/* Unsigned 32-bit attribute for GPIO mux config */
2617 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
2618 	/* Unsigned 32-bit attribute for GPIO drive */
2619 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
2620 	/* Flag attribute for using internal GPIO configuration */
2621 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
2622 
2623 	/* keep last */
2624 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
2625 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
2626 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
2627 };
2628 
2629 /**
2630  * enum gpio_cmd_type - GPIO configuration command type
2631  * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
2632  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
2633  */
2634 enum qca_gpio_cmd_type {
2635 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
2636 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
2637 };
2638 
2639 /**
2640  * enum qca_gpio_pull_type - GPIO pull type
2641  * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
2642  * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
2643  * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
2644  */
2645 enum qca_gpio_pull_type {
2646 	QCA_WLAN_GPIO_PULL_NONE = 0,
2647 	QCA_WLAN_GPIO_PULL_UP = 1,
2648 	QCA_WLAN_GPIO_PULL_DOWN = 2,
2649 	QCA_WLAN_GPIO_PULL_MAX,
2650 };
2651 
2652 /**
2653  * enum qca_gpio_direction - GPIO direction
2654  * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
2655  * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
2656  * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
2657  */
2658 enum qca_gpio_direction {
2659 	QCA_WLAN_GPIO_INPUT = 0,
2660 	QCA_WLAN_GPIO_OUTPUT = 1,
2661 	QCA_WLAN_GPIO_DIR_MAX,
2662 };
2663 
2664 /**
2665  * enum qca_gpio_value - GPIO Value
2666  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
2667  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
2668  * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
2669  */
2670 enum qca_gpio_value {
2671 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
2672 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
2673 	QCA_WLAN_GPIO_LEVEL_MAX,
2674 };
2675 
2676 /**
2677  * enum gpio_interrupt_mode - GPIO interrupt mode
2678  * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
2679  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
2680  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
2681  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
2682  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
2683  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
2684  * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
2685  */
2686 enum qca_gpio_interrupt_mode {
2687 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
2688 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
2689 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
2690 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
2691 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
2692 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
2693 	QCA_WLAN_GPIO_INTMODE_MAX,
2694 };
2695 
2696 /**
2697  * enum qca_gpio_drive - GPIO drive
2698  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
2699  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
2700  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
2701  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
2702  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
2703  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
2704  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
2705  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
2706  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
2707  */
2708 enum qca_gpio_drive {
2709 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
2710 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
2711 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
2712 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
2713 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
2714 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
2715 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
2716 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
2717 	QCA_WLAN_GPIO_DRIVE_MAX,
2718 };
2719 
2720 /**
2721  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
2722  * MSDUQ depth threshold per peer per tid in the target
2723  *
2724  * Associated Vendor Command:
2725  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
2726  */
2727 enum qca_wlan_set_qdepth_thresh_attr {
2728 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
2729 	/* 6-byte MAC address */
2730 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
2731 	/* Unsigned 32-bit attribute for holding the TID */
2732 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
2733 	/* Unsigned 32-bit attribute for holding the update mask
2734 	 * bit 0 - Update high priority msdu qdepth threshold
2735 	 * bit 1 - Update low priority msdu qdepth threshold
2736 	 * bit 2 - Update UDP msdu qdepth threshold
2737 	 * bit 3 - Update Non UDP msdu qdepth threshold
2738 	 * rest of bits are reserved
2739 	 */
2740 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
2741 	/* Unsigned 32-bit attribute for holding the threshold value */
2742 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
2743 
2744 	/* keep last */
2745 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
2746 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
2747 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
2748 };
2749 
2750 /**
2751  * enum qca_acs_dfs_mode - Defines different types of DFS channel
2752  * configurations for ACS operation.
2753  *
2754  * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
2755  * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
2756  * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
2757  * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
2758  */
2759 enum qca_acs_dfs_mode {
2760 	QCA_ACS_DFS_MODE_NONE = 0,
2761 	QCA_ACS_DFS_MODE_ENABLE = 1,
2762 	QCA_ACS_DFS_MODE_DISABLE = 2,
2763 	QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
2764 };
2765 
2766 /**
2767  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
2768  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
2769  *
2770  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
2771  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
2772  *
2773  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
2774  * channel number hint for ACS operation, if valid channel is specified then
2775  * ACS operation gives priority to this channel.
2776  * Note: If both the driver and user space application supports the 6 GHz band,
2777  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
2778  * should be used.
2779  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
2780  * is still used if either of the driver or user space application doesn't
2781  * support the 6 GHz band.
2782  *
2783  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
2784  * Channel center frequency (MHz) hint for ACS operation, if a valid center
2785  * frequency is specified, ACS operation gives priority to this channel.
2786  */
2787 enum qca_wlan_vendor_attr_acs_config {
2788 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
2789 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
2790 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
2791 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
2792 
2793 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
2794 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
2795 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
2796 };
2797 
2798 /**
2799  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
2800  */
2801 enum qca_wlan_vendor_attr_get_hw_capability {
2802 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
2803 	/* Antenna isolation
2804 	 * An attribute used in the response.
2805 	 * The content of this attribute is encoded in a byte array. Each byte
2806 	 * value is an antenna isolation value. The array length is the number
2807 	 * of antennas.
2808 	 */
2809 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
2810 	/* Request HW capability
2811 	 * An attribute used in the request.
2812 	 * The content of this attribute is a u32 array for one or more of
2813 	 * hardware capabilities (attribute IDs) that are being requested. Each
2814 	 * u32 value has a value from this
2815 	 * enum qca_wlan_vendor_attr_get_hw_capability
2816 	 * identifying which capabilities are requested.
2817 	 */
2818 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2819 
2820 	/* keep last */
2821 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2822 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2823 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2824 };
2825 
2826 /**
2827  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2828  *    offload which is an extension for LL_STATS.
2829  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2830  *    If MAC counters do not exceed the threshold, FW will report monitored
2831  *    link layer counters periodically as this setting. The first report is
2832  *    always triggered by this timer.
2833  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
2834  *    For each MAC layer counter, FW holds two copies. One is the current value.
2835  *    The other is the last report. Once a current counter's increment is larger
2836  *    than the threshold, FW will indicate that counter to host even if the
2837  *    monitoring timer does not expire.
2838  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
2839  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
2840  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
2841  *    failure code.
2842  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
2843  *    1: TX packet discarded
2844  *    2: No ACK
2845  *    3: Postpone
2846  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
2847  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
2848  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
2849  *    Threshold for all monitored parameters. If per counter dedicated threshold
2850  *    is not enabled, this threshold will take effect.
2851  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
2852  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
2853  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
2854  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
2855  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
2856  *    Bit0: TX counter unit in MSDU
2857  *    Bit1: TX counter unit in MPDU
2858  *    Bit2: TX counter unit in PPDU
2859  *    Bit3: TX counter unit in byte
2860  *    Bit4: Dropped MSDUs
2861  *    Bit5: Dropped Bytes
2862  *    Bit6: MPDU retry counter
2863  *    Bit7: MPDU failure counter
2864  *    Bit8: PPDU failure counter
2865  *    Bit9: MPDU aggregation counter
2866  *    Bit10: MCS counter for ACKed MPDUs
2867  *    Bit11: MCS counter for Failed MPDUs
2868  *    Bit12: TX Delay counter
2869  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
2870  *    Bit0: MAC RX counter unit in MPDU
2871  *    Bit1: MAC RX counter unit in byte
2872  *    Bit2: PHY RX counter unit in PPDU
2873  *    Bit3: PHY RX counter unit in byte
2874  *    Bit4: Disorder counter
2875  *    Bit5: Retry counter
2876  *    Bit6: Duplication counter
2877  *    Bit7: Discard counter
2878  *    Bit8: MPDU aggregation size counter
2879  *    Bit9: MCS counter
2880  *    Bit10: Peer STA power state change (wake to sleep) counter
2881  *    Bit11: Peer STA power save counter, total time in PS mode
2882  *    Bit12: Probe request counter
2883  *    Bit13: Other management frames counter
2884  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
2885  *    Bit0: Idle time
2886  *    Bit1: TX time
2887  *    Bit2: time RX in current bss
2888  *    Bit3: Out of current bss time
2889  *    Bit4: Wireless medium busy time
2890  *    Bit5: RX in bad condition time
2891  *    Bit6: TX in bad condition time
2892  *    Bit7: time wlan card not available
2893  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
2894  *    Bit0: Per channel SNR counter
2895  *    Bit1: Per channel noise floor counter
2896  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
2897  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
2898  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
2899  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
2900  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
2901  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
2902  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
2903  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
2904  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
2905  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
2906  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
2907  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
2908  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
2909  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
2910  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
2911  *    aggregation stats buffer length
2912  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
2913  *    buffer for ACKed MPDUs.
2914  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
2915  *    buffer for failed MPDUs.
2916  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
2917  *    length of delay stats array.
2918  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
2919  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
2920  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
2921  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
2922  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
2923  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
2924  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
2925  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
2926  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
2927  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
2928  *    flagged as retransmissions
2929  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
2930  *    flagged as duplicated
2931  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
2932  *    packets discarded
2933  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
2934  *    stats buffer.
2935  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
2936  *    stats buffer.
2937  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
2938  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
2939  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
2940  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
2941  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
2942  *    requests received
2943  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
2944  *    frames received
2945  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
2946  *    there is no TX, nor RX, nor interference.
2947  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
2948  *    transmitting packets.
2949  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
2950  *    for receiving.
2951  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
2952  *    interference detected.
2953  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
2954  *    receiving packets with errors.
2955  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
2956  *    TX no-ACK.
2957  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
2958  *    the chip is unable to work in normal conditions.
2959  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
2960  *    receiving packets in current BSS.
2961  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
2962  *    receiving packets not in current BSS.
2963  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
2964  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
2965  *    This is a container for per antenna signal stats.
2966  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
2967  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
2968  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
2969  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
2970  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
2971  *    Absolute timestamp from 1970/1/1, unit in ms. After receiving the
2972  *    message, user layer APP could call gettimeofday to get another
2973  *    timestamp and calculate transfer delay for the message.
2974  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
2975  *    Real period for this measurement, unit in us.
2976  */
2977 enum qca_wlan_vendor_attr_ll_stats_ext {
2978 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2979 
2980 	/* Attributes for configurations */
2981 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2982 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2983 
2984 	/* Peer STA power state change */
2985 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2986 
2987 	/* TX failure event */
2988 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2989 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2990 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2991 
2992 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2993 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2994 
2995 	/* MAC counters */
2996 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2997 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2998 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2999 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
3000 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
3001 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
3002 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
3003 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
3004 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
3005 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
3006 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
3007 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
3008 
3009 	/* Sub-attributes for PEER_AC_TX */
3010 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
3011 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
3012 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
3013 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
3014 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
3015 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
3016 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
3017 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
3018 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
3019 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
3020 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
3021 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
3022 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
3023 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
3024 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
3025 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
3026 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
3027 
3028 	/* Sub-attributes for PEER_AC_RX */
3029 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
3030 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
3031 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
3032 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
3033 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
3034 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
3035 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
3036 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
3037 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
3038 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
3039 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
3040 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
3041 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
3042 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
3043 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
3044 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
3045 
3046 	/* Sub-attributes for CCA_BSS */
3047 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
3048 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
3049 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
3050 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
3051 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
3052 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
3053 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
3054 
3055 	/* sub-attribute for BSS_RX_TIME */
3056 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
3057 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
3058 
3059 	/* Sub-attributes for PEER_SIGNAL */
3060 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
3061 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
3062 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
3063 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
3064 
3065 	/* Sub-attributes for IFACE_BSS */
3066 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
3067 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
3068 
3069 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
3070 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
3071 
3072 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
3073 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
3074 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
3075 };
3076 
3077 /* Attributes for FTM commands and events */
3078 
3079 /**
3080  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
3081  *
3082  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
3083  *	enum qca_wlan_vendor_attr_loc_capa_flags.
3084  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
3085  *	of measurement sessions that can run concurrently.
3086  *	Default is one session (no session concurrency).
3087  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
3088  *	peers that are supported in running sessions. For example,
3089  *	if the value is 8 and maximum number of sessions is 2, you can
3090  *	have one session with 8 unique peers, or 2 sessions with 4 unique
3091  *	peers each, and so on.
3092  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
3093  *	of bursts per peer, as an exponent (2^value). Default is 0,
3094  *	meaning no multi-burst support.
3095  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
3096  *	of measurement exchanges allowed in a single burst.
3097  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
3098  *	types. A bit mask (unsigned 32 bit value), each bit corresponds
3099  *	to an AOA type as defined by enum qca_vendor_attr_aoa_type.
3100  */
3101 enum qca_wlan_vendor_attr_loc_capa {
3102 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
3103 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
3104 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
3105 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
3106 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
3107 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
3108 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
3109 	/* keep last */
3110 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
3111 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
3112 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
3113 };
3114 
3115 /**
3116  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
3117  *
3118  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
3119  *	can be configured as an FTM responder (for example, an AP that
3120  *	services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
3121  *	will be supported if set.
3122  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
3123  *	can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
3124  *	will be supported if set.
3125  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
3126  *	supports immediate (ASAP) response.
3127  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
3128  *	AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
3129  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
3130  *	requesting AOA measurements as part of an FTM session.
3131  */
3132 enum qca_wlan_vendor_attr_loc_capa_flags {
3133 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
3134 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
3135 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
3136 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
3137 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
3138 };
3139 
3140 /**
3141  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
3142  *	a single peer in a measurement session.
3143  *
3144  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
3145  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
3146  *	to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
3147  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
3148  *	FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
3149  *	9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
3150  *	list of supported attributes.
3151  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
3152  *	secure measurement.
3153  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
3154  *	measurement every <value> bursts. If 0 or not specified,
3155  *	AOA measurements will be disabled for this peer.
3156  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
3157  *	the measurement frames are exchanged. Optional; if not
3158  *	specified, try to locate the peer in the kernel scan
3159  *	results cache and use frequency from there.
3160  */
3161 enum qca_wlan_vendor_attr_ftm_peer_info {
3162 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
3163 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
3164 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
3165 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
3166 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
3167 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
3168 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
3169 	/* keep last */
3170 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
3171 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
3172 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
3173 };
3174 
3175 /**
3176  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
3177  *	per-peer
3178  *
3179  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
3180  *	immediate (ASAP) response from peer.
3181  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
3182  *	LCI report from peer. The LCI report includes the absolute
3183  *	location of the peer in "official" coordinates (similar to GPS).
3184  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
3185  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
3186  *	Location civic report from peer. The LCR includes the location
3187  *	of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
3188  *	11.24.6.7 for more information.
3189  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
3190  *	request a secure measurement.
3191  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
3192  */
3193 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
3194 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP	= 1 << 0,
3195 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI	= 1 << 1,
3196 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR	= 1 << 2,
3197 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE	= 1 << 3,
3198 };
3199 
3200 /**
3201  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
3202  *
3203  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
3204  *	to perform in a single burst.
3205  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
3206  *	perform, specified as an exponent (2^value).
3207  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
3208  *	instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
3209  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
3210  *	as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
3211  *	be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
3212  */
3213 enum qca_wlan_vendor_attr_ftm_meas_param {
3214 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
3215 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
3216 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
3217 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
3218 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
3219 	/* keep last */
3220 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
3221 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
3222 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
3223 };
3224 
3225 /**
3226  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
3227  *
3228  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
3229  *	 peer.
3230  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
3231  *	request for this peer.
3232  *	See enum qca_wlan_vendor_attr_ftm_peer_result_status.
3233  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
3234  *	to measurement results for this peer.
3235  *	See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
3236  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
3237  *	request failed and peer requested not to send an additional request
3238  *	for this number of seconds.
3239  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
3240  *	from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3241  *	9.4.2.22.10.
3242  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
3243  *	received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
3244  *	9.4.2.22.13.
3245  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
3246  *	overridden some measurement request parameters. See
3247  *	enum qca_wlan_vendor_attr_ftm_meas_param.
3248  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
3249  *	for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
3250  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
3251  *	results. Each entry is a nested attribute defined
3252  *	by enum qca_wlan_vendor_attr_ftm_meas.
3253  */
3254 enum qca_wlan_vendor_attr_ftm_peer_result {
3255 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
3256 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
3257 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
3258 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
3259 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
3260 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
3261 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
3262 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
3263 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
3264 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
3265 	/* keep last */
3266 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
3267 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
3268 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
3269 };
3270 
3271 /**
3272  * enum qca_wlan_vendor_attr_ftm_peer_result_status
3273  *
3274  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
3275  *	will be provided. Peer may have overridden some measurement parameters,
3276  *	in which case overridden parameters will be report by
3277  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
3278  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
3279  *	of performing the measurement request. No more results will be sent
3280  *	for this peer in this session.
3281  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
3282  *	failed, and requested not to send an additional request for number
3283  *	of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
3284  *	attribute.
3285  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
3286  *	failed. Request was not sent over the air.
3287  */
3288 enum qca_wlan_vendor_attr_ftm_peer_result_status {
3289 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
3290 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
3291 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
3292 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
3293 };
3294 
3295 /**
3296  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
3297  *  for measurement result, per-peer
3298  *
3299  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
3300  *	measurement completed for this peer. No more results will be reported
3301  *	for this peer in this session.
3302  */
3303 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
3304 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
3305 };
3306 
3307 /**
3308  * enum qca_vendor_attr_loc_session_status: Session completion status code
3309  *
3310  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
3311  *	successfully.
3312  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
3313  *	by request.
3314  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
3315  *	was invalid and was not started.
3316  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
3317  *	and did not complete normally (for example out of resources).
3318  */
3319 enum qca_vendor_attr_loc_session_status {
3320 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
3321 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
3322 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
3323 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
3324 };
3325 
3326 /**
3327  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
3328  *
3329  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
3330  *	recorded by responder, in picoseconds.
3331  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3332  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
3333  *	initiator, in picoseconds.
3334  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3335  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
3336  *	initiator, in picoseconds.
3337  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3338  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
3339  *	responder, in picoseconds.
3340  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
3341  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
3342  *	during this measurement exchange. Optional and will be provided if
3343  *	the hardware can measure it.
3344  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
3345  *	responder. Not always provided.
3346  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3347  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
3348  *	responder. Not always provided.
3349  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3350  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
3351  *	initiator. Not always provided.
3352  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3353  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
3354  *	initiator. Not always provided.
3355  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
3356  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
3357  */
3358 enum qca_wlan_vendor_attr_ftm_meas {
3359 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
3360 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
3361 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
3362 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
3363 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
3364 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
3365 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
3366 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
3367 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
3368 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
3369 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
3370 	/* keep last */
3371 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
3372 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
3373 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
3374 };
3375 
3376 /**
3377  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
3378  *
3379  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
3380  *	CIR (channel impulse response) path for each antenna.
3381  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
3382  *	of the strongest CIR path for each antenna.
3383  */
3384 enum qca_wlan_vendor_attr_aoa_type {
3385 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
3386 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
3387 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
3388 };
3389 
3390 /**
3391  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
3392  * validate encryption engine
3393  *
3394  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
3395  *	This will be included if the request is for decryption; if not included,
3396  *	the request is treated as a request for encryption by default.
3397  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
3398  *	indicating the key cipher suite. Takes same values as
3399  *	NL80211_ATTR_KEY_CIPHER.
3400  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
3401  *	Key Id to be used for encryption
3402  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
3403  *	Key (TK) to be used for encryption/decryption
3404  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
3405  *	Packet number to be specified for encryption/decryption
3406  *	6 bytes for TKIP/CCMP/GCMP.
3407  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
3408  *	representing the 802.11 packet (header + payload + FCS) that
3409  *	needs to be encrypted/decrypted.
3410  *	Encrypted/decrypted response from the driver will also be sent
3411  *	to userspace with the same attribute.
3412  */
3413 enum qca_wlan_vendor_attr_encryption_test {
3414 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
3415 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
3416 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
3417 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
3418 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
3419 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
3420 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
3421 
3422 	/* keep last */
3423 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
3424 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
3425 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
3426 };
3427 
3428 /**
3429  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
3430  * sector for DMG RF sector operations.
3431  *
3432  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
3433  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
3434  */
3435 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
3436 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
3437 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
3438 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
3439 };
3440 
3441 /**
3442  * enum qca_wlan_vendor_attr_fw_state - State of firmware
3443  *
3444  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
3445  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
3446  */
3447 enum qca_wlan_vendor_attr_fw_state {
3448 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
3449 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
3450 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
3451 };
3452 
3453 /**
3454  * BRP antenna limit mode
3455  *
3456  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
3457  *	antenna limit, BRP will be performed as usual.
3458  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
3459  *	antennas limit. the hardware may use less antennas than the
3460  *	maximum limit.
3461  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
3462  *	use exactly the specified number of antennas for BRP.
3463  */
3464 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
3465 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
3466 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
3467 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
3468 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
3469 };
3470 
3471 /**
3472  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
3473  * DMG RF sector configuration for a single RF module.
3474  * The values are defined in a compact way which closely matches
3475  * the way it is stored in HW registers.
3476  * The configuration provides values for 32 antennas and 8 distribution
3477  * amplifiers, and together describes the characteristics of the RF
3478  * sector - such as a beam in some direction with some gain.
3479  *
3480  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
3481  *	of RF module for this configuration.
3482  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
3483  *	amplifier gain index. Unsigned 32 bit number containing
3484  *	bits for all 32 antennas.
3485  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
3486  *	amplifier gain index. Unsigned 32 bit number containing
3487  *	bits for all 32 antennas.
3488  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
3489  *	amplifier gain index. Unsigned 32 bit number containing
3490  *	bits for all 32 antennas.
3491  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
3492  *	for first 16 antennas, 2 bits per antenna.
3493  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
3494  *	for last 16 antennas, 2 bits per antenna.
3495  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
3496  *	DTYPE values (3 bits) for each distribution amplifier, followed
3497  *	by X16 switch bits for each distribution amplifier. There are
3498  *	total of 8 distribution amplifiers.
3499  */
3500 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
3501 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
3502 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
3503 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
3504 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
3505 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
3506 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
3507 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
3508 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
3509 
3510 	/* keep last */
3511 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
3512 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
3513 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
3514 };
3515 
3516 enum qca_wlan_vendor_attr_ll_stats_set {
3517 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
3518 	/* Unsigned 32-bit value */
3519 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
3520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
3521 	/* keep last */
3522 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
3523 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
3524 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
3525 };
3526 
3527 enum qca_wlan_vendor_attr_ll_stats_clr {
3528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
3529 	/* Unsigned 32bit bitmap for clearing statistics
3530 	 * All radio statistics                     0x00000001
3531 	 * cca_busy_time (within radio statistics)  0x00000002
3532 	 * All channel stats (within radio statistics) 0x00000004
3533 	 * All scan statistics (within radio statistics) 0x00000008
3534 	 * All interface statistics                     0x00000010
3535 	 * All tx rate statistics (within interface statistics) 0x00000020
3536 	 * All ac statistics (with in interface statistics) 0x00000040
3537 	 * All contention (min, max, avg) statistics (within ac statisctics)
3538 	 * 0x00000080.
3539 	 */
3540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
3541 	/* Unsigned 8 bit value: Request to stop statistics collection */
3542 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
3543 
3544 	/* Unsigned 32 bit bitmap: Response from the driver
3545 	 * for the cleared statistics
3546 	 */
3547 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
3548 	/* Unsigned 8 bit value: Response from driver/firmware
3549 	 * for the stop request
3550 	 */
3551 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
3552 	/* keep last */
3553 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
3554 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
3555 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
3556 };
3557 
3558 enum qca_wlan_vendor_attr_ll_stats_get {
3559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
3560 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
3561 	 * command. When reporting the stats results, the driver uses the same
3562 	 * value to indicate which GET request the results correspond to.
3563 	 */
3564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
3565 	/* Unsigned 32 bit value - bit mask to identify what statistics are
3566 	 * requested for retrieval.
3567 	 * Radio Statistics 0x00000001
3568 	 * Interface Statistics 0x00000020
3569 	 * All Peer Statistics 0x00000040
3570 	 * Peer Statistics     0x00000080
3571 	 */
3572 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
3573 	/* keep last */
3574 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
3575 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
3576 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
3577 };
3578 
3579 enum qca_wlan_vendor_attr_ll_stats_results {
3580 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
3581 	/* Unsigned 32bit value. Used by the driver; must match the request id
3582 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
3583 	 */
3584 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
3585 
3586 	/* Unsigned 32 bit value */
3587 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
3588 	/* Unsigned 32 bit value */
3589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
3590 	/* Unsigned 32 bit value */
3591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
3592 	/* Unsigned 32 bit value */
3593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
3594 	/* Signed 32 bit value */
3595 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
3596 	/* Signed 32 bit value */
3597 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
3598 	/* Signed 32 bit value */
3599 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
3600 
3601 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
3602 	 * nested within the interface stats.
3603 	 */
3604 
3605 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
3606 	 * Type = enum wifi_interface_mode.
3607 	 */
3608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
3609 	/* Interface MAC address. An array of 6 Unsigned int8 */
3610 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
3611 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
3612 	 * AUTHENTICATING, etc. valid for STA, CLI only.
3613 	 */
3614 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
3615 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
3616 	 */
3617 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
3618 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
3619 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
3620 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
3621 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
3622 	/* BSSID. An array of 6 unsigned 8 bit values */
3623 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
3624 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
3625 	 * values.
3626 	 */
3627 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
3628 	/* Country string for this association. An array of 3 unsigned 8 bit
3629 	 * values.
3630 	 */
3631 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
3632 
3633 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
3634 	 * be nested within the interface stats.
3635 	 */
3636 
3637 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
3638 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
3639 	/* Unsigned int 32 value corresponding to respective AC */
3640 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
3641 	/* Unsigned int 32 value corresponding to respective AC */
3642 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
3643 	/* Unsigned int 32 value corresponding to respective AC */
3644 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
3645 	/* Unsigned int 32 value corresponding to respective AC */
3646 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
3647 	/* Unsigned int 32 value corresponding to respective AC */
3648 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
3649 	/* Unsigned int 32 value corresponding to respective AC */
3650 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
3651 	/* Unsigned int 32 value corresponding to respective AC */
3652 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
3653 	/* Unsigned int 32 value corresponding to respective AC */
3654 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
3655 	/* Unsigned int 32 value corresponding to respective AC  */
3656 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
3657 	/* Unsigned int 32 values corresponding to respective AC */
3658 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
3659 	/* Unsigned int 32 values corresponding to respective AC */
3660 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
3661 	/* Unsigned int 32 values corresponding to respective AC */
3662 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
3663 	/* Unsigned int 32 values corresponding to respective AC */
3664 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
3665 	/* Unsigned int 32 values corresponding to respective AC */
3666 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
3667 	/* Unsigned 32 bit value. Number of peers */
3668 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
3669 
3670 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
3671 	 * nested within the interface stats.
3672 	 */
3673 
3674 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
3675 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
3676 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
3677 	 * 8 bit values.
3678 	 */
3679 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
3680 	/* Unsigned int 32 bit value representing capabilities corresponding
3681 	 * to respective peer.
3682 	 */
3683 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
3684 	/* Unsigned 32 bit value. Number of rates */
3685 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
3686 
3687 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3688 	 * are nested within the rate stat.
3689 	 */
3690 
3691 	/* Wi-Fi Rate - separate attributes defined for individual fields */
3692 
3693 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
3694 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
3695 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
3696 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
3697 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
3698 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
3699 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
3700 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
3701 	 */
3702 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
3703 
3704 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
3705 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
3706 
3707 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
3708 	 * nested within the peer info stats.
3709 	 */
3710 
3711 	/* Unsigned int 32 bit value. Number of successfully transmitted data
3712 	 * packets, i.e., with ACK received corresponding to the respective
3713 	 * rate.
3714 	 */
3715 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
3716 	/* Unsigned int 32 bit value. Number of received data packets
3717 	 * corresponding to the respective rate.
3718 	 */
3719 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
3720 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
3721 	 * received corresponding to the respective rate.
3722 	 */
3723 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
3724 	/* Unsigned int 32 bit value. Total number of data packet retries for
3725 	 * the respective rate.
3726 	 */
3727 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
3728 	/* Unsigned int 32 bit value. Total number of short data packet retries
3729 	 * for the respective rate.
3730 	 */
3731 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
3732 	/* Unsigned int 32 bit value. Total number of long data packet retries
3733 	 * for the respective rate.
3734 	 */
3735 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
3736 
3737 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
3738 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
3739 	 * accruing over time.
3740 	 */
3741 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
3742 	/* Unsigned 32 bit value. Total number of msecs the radio is
3743 	 * transmitting accruing over time.
3744 	 */
3745 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
3746 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
3747 	 * receive accruing over time.
3748 	 */
3749 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
3750 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3751 	 * to all scan accruing over time.
3752 	 */
3753 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
3754 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3755 	 * to NAN accruing over time.
3756 	 */
3757 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
3758 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3759 	 * to GSCAN accruing over time.
3760 	 */
3761 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
3762 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3763 	 * to roam scan accruing over time.
3764 	 */
3765 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
3766 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3767 	 * to PNO scan accruing over time.
3768 	 */
3769 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
3770 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
3771 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
3772 	 */
3773 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
3774 	/* Unsigned 32 bit value. Number of channels. */
3775 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
3776 
3777 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
3778 	 * be nested within the channel stats.
3779 	 */
3780 
3781 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
3782 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
3783 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
3784 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
3785 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
3786 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
3787 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
3788 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
3789 
3790 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
3791 	 * nested within the radio stats.
3792 	 */
3793 
3794 	/* Unsigned int 32 bit value representing total number of msecs the
3795 	 * radio is awake on that channel accruing over time, corresponding to
3796 	 * the respective channel.
3797 	 */
3798 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
3799 	/* Unsigned int 32 bit value representing total number of msecs the CCA
3800 	 * register is busy accruing over time corresponding to the respective
3801 	 * channel.
3802 	 */
3803 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
3804 
3805 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
3806 
3807 	/* Signifies the nested list of channel attributes
3808 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
3809 	 */
3810 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
3811 
3812 	/* Signifies the nested list of peer info attributes
3813 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
3814 	 */
3815 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
3816 
3817 	/* Signifies the nested list of rate info attributes
3818 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3819 	 */
3820 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3821 
3822 	/* Signifies the nested list of wmm info attributes
3823 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3824 	 */
3825 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3826 
3827 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3828 	 * that more stats, e.g., peers or radio, are to follow in the next
3829 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3830 	 * Otherwise, it is set to 0.
3831 	 */
3832 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
3833 
3834 	/* Unsigned 64 bit value */
3835 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
3836 
3837 	/* Unsigned 32 bit value */
3838 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
3839 
3840 	/* Unsigned 32 bit value */
3841 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
3842 
3843 	/* Unsigned 32 bit value */
3844 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
3845 
3846 	/* Unsigned 32 bit value */
3847 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
3848 
3849 	/* Unsigned 32 bit value */
3850 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
3851 
3852 	/* Number of msecs the radio spent in transmitting for each power level
3853 	 */
3854 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
3855 
3856 	/* Unsigned 32 bit value */
3857 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
3858 	/* Unsigned 32 bit value */
3859 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
3860 	/* Unsigned 32 bit value */
3861 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
3862 	/* Unsigned 32 bit value */
3863 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
3864 
3865 	/* Unsigned int 32 value.
3866 	 * Pending MSDUs corresponding to respective AC.
3867 	 */
3868 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
3869 
3870 	/* u32 value representing total time in milliseconds for which the radio
3871 	 * is transmitting on this channel. This attribute will be nested
3872 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
3873 	 */
3874 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
3875 	/* u32 value representing total time in milliseconds for which the radio
3876 	 * is receiving all 802.11 frames intended for this device on this
3877 	 * channel. This attribute will be nested within
3878 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
3879 	 */
3880 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
3881 	/* u8 value representing the channel load percentage. Possible values
3882 	 * are 0-100.
3883 	 */
3884 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
3885 	/* keep last */
3886 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
3887 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
3888 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
3889 };
3890 
3891 enum qca_wlan_vendor_attr_ll_stats_type {
3892 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
3893 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
3894 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
3895 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
3896 
3897 	/* keep last */
3898 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
3899 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
3900 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
3901 };
3902 
3903 /**
3904  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
3905  * TDLS configuration to the host driver.
3906  *
3907  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
3908  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
3909  *	represents the different TDLS trigger modes.
3910  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
3911  *      which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
3912  *      of packets shall meet the criteria for implicit TDLS setup.
3913  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
3914  *      within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
3915  *      to initiate a TDLS setup.
3916  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
3917  *      a TDLS Discovery to the peer.
3918  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
3919  *      discovery attempts to know the TDLS capability of the peer. A peer is
3920  *      marked as TDLS not capable if there is no response for all the attempts.
3921  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
3922  *      within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
3923  *      number of TX / RX frames meet the criteria for TDLS teardown.
3924  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
3925  *      of Tx/Rx packets within a duration
3926  *      QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
3927  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
3928  *	corresponding to the RSSI of the peer below which a TDLS setup is
3929  *	triggered.
3930  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
3931  *	corresponding to the RSSI of the peer above which a TDLS teardown is
3932  *	triggered.
3933  */
3934 enum qca_wlan_vendor_attr_tdls_configuration {
3935 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
3936 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
3937 
3938 	/* Attributes configuring the TDLS Implicit Trigger */
3939 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
3940 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
3941 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
3942 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
3943 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
3944 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
3945 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
3946 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
3947 
3948 	/* keep last */
3949 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
3950 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
3951 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
3952 };
3953 
3954 /**
3955  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
3956  *	the driver
3957  *
3958  * The following are the different values for
3959  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
3960  *
3961  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
3962  *	the TDLS connection to a respective peer comes from the user space.
3963  *	wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
3964  *	TDLS_DISCOVER to do this.
3965  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
3966  *	setup/teardown to the eligible peer once the configured criteria
3967  *	(such as TX/RX threshold, RSSI) is met. The attributes
3968  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
3969  *	the different configuration criteria for the TDLS trigger from the
3970  *	host driver.
3971  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
3972  *	the TDLS setup / teardown through the implicit mode only to the
3973  *	configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
3974  *	configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
3975  *	External mode works on top of the implicit mode. Thus the host driver
3976  *	is expected to configure in TDLS Implicit mode too to operate in
3977  *	External mode.
3978  *	Configuring External mode alone without	Implicit mode is invalid.
3979  *
3980  * All the above implementations work as expected only when the host driver
3981  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
3982  * that the TDLS message exchange is not internal to the host driver, but
3983  * depends on wpa_supplicant to do the message exchange.
3984  */
3985 enum qca_wlan_vendor_tdls_trigger_mode {
3986 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
3987 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
3988 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
3989 };
3990 
3991 /**
3992  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
3993  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3994  *	that is hard-coded in the Board Data File (BDF).
3995  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3996  *	that is hard-coded in the Board Data File (BDF).
3997  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3998  *	that is hard-coded in the Board Data File (BDF).
3999  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
4000  *	that is hard-coded in the Board Data File (BDF).
4001  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
4002  *	that is hard-coded in the Board Data File (BDF).
4003  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
4004  *	source of SAR power limits, thereby disabling the SAR power
4005  *	limit feature.
4006  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
4007  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4008  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
4009  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
4010  *
4011  * This enumerates the valid set of values that may be supplied for
4012  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
4013  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
4014  * the response to an instance of the
4015  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4016  */
4017 enum qca_vendor_attr_sar_limits_selections {
4018 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
4019 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
4020 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
4021 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
4022 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
4023 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
4024 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
4025 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
4026 };
4027 
4028 /**
4029  * enum qca_vendor_attr_sar_limits_spec_modulations -
4030  *	SAR limits specification modulation
4031  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
4032  *	CCK modulation
4033  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
4034  *	OFDM modulation
4035  *
4036  * This enumerates the valid set of values that may be supplied for
4037  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
4038  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
4039  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
4040  * command or in the response to an instance of the
4041  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
4042  */
4043 enum qca_vendor_attr_sar_limits_spec_modulations {
4044 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
4045 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
4046 };
4047 
4048 /**
4049  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
4050  *
4051  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
4052  *	select which SAR power limit table should be used. Valid
4053  *	values are enumerated in enum
4054  *	%qca_vendor_attr_sar_limits_selections. The existing SAR
4055  *	power limit selection is unchanged if this attribute is not
4056  *	present.
4057  *
4058  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
4059  *	which specifies the number of SAR power limit specifications
4060  *	which will follow.
4061  *
4062  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
4063  *	limit specifications. The number of specifications is
4064  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
4065  *	specification contains a set of
4066  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
4067  *	specification is uniquely identified by the attributes
4068  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
4069  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
4070  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
4071  *	contains as a payload the attribute
4072  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
4073  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
4074  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
4075  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
4076  *	needed based upon the value of
4077  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
4078  *
4079  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
4080  *	indicate for which band this specification applies. Valid
4081  *	values are enumerated in enum %nl80211_band (although not all
4082  *	bands may be supported by a given device). If the attribute is
4083  *	not supplied then the specification will be applied to all
4084  *	supported bands.
4085  *
4086  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
4087  *	to indicate for which antenna chain this specification
4088  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
4089  *	attribute is not supplied then the specification will be
4090  *	applied to all chains.
4091  *
4092  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
4093  *	value to indicate for which modulation scheme this
4094  *	specification applies. Valid values are enumerated in enum
4095  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
4096  *	is not supplied then the specification will be applied to all
4097  *	modulation schemes.
4098  *
4099  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
4100  *	value to specify the actual power limit value in units of 0.5
4101  *	dBm (i.e., a value of 11 represents 5.5 dBm).
4102  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4103  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
4104  *
4105  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
4106  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
4107  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
4108  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
4109  *
4110  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
4111  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
4112  */
4113 enum qca_vendor_attr_sar_limits {
4114 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
4115 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
4116 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
4117 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
4118 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
4119 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
4120 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
4121 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
4122 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
4123 
4124 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
4125 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
4126 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
4127 };
4128 
4129 /**
4130  * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
4131  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
4132  *
4133  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
4134  *	should be set to any U8 value to indicate that the driver version
4135  *	should be returned. When enabled in this manner, in a response this
4136  *	attribute will contain a string representation of the driver version.
4137  *
4138  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
4139  *	should be set to any U8 value to indicate that the firmware version
4140  *	should be returned. When enabled in this manner, in a response this
4141  *	attribute will contain a string representation of the firmware version.
4142  *
4143  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
4144  *	should be set to any U32 value to indicate that the current radio
4145  *	index should be returned. When enabled in this manner, in a response
4146  *	this attribute will contain a U32 radio index value.
4147  *
4148  */
4149 enum qca_wlan_vendor_attr_get_wifi_info {
4150 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4151 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
4152 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
4153 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
4154 
4155 	/* keep last */
4156 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4157 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
4158 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4159 };
4160 
4161 /*
4162  * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
4163  * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
4164  */
4165 enum qca_wlan_vendor_attr_wifi_logger_start {
4166 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4167 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4168 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4169 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4170 
4171 	/* keep last */
4172 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4173 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
4174 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4175 };
4176 
4177 enum qca_wlan_vendor_attr_logger_results {
4178 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4179 
4180 	/* Unsigned 32-bit value; must match the request Id supplied by
4181 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
4182 	 */
4183 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4184 
4185 	/* Unsigned 32-bit value; used to indicate the size of memory
4186 	 * dump to be allocated.
4187 	 */
4188 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4189 
4190 	/* keep last */
4191 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4192 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4193 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4194 };
4195 
4196 /**
4197  * enum qca_scan_freq_list_type: Frequency list types
4198  *
4199  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
4200  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4201  *	a preferred frequency list for roaming.
4202  *
4203  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
4204  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
4205  *	a specific frequency list for roaming.
4206  */
4207 enum qca_scan_freq_list_type {
4208 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
4209 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
4210 };
4211 
4212 /**
4213  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
4214  *
4215  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
4216  *	List of frequencies in MHz to be considered for a roam scan.
4217  *
4218  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
4219  *	Type of frequency list scheme being configured/gotten as defined by the
4220  *	enum qca_scan_freq_list_type.
4221  */
4222 enum qca_vendor_attr_scan_freq_list_scheme {
4223 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
4224 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
4225 
4226 	/* keep last */
4227 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
4228 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
4229 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
4230 };
4231 
4232 /**
4233  * enum qca_roam_scan_scheme: Scan scheme
4234  *
4235  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
4236  *     Indicates the driver to not scan on a Roam Trigger scenario, but
4237  *     disconnect. E.g., on a BTM request from the AP the driver/firmware shall
4238  *     disconnect from the current connected AP by notifying a failure
4239  *     code in the BTM response.
4240  *
4241  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
4242  *     trigger partial frequency scans. These frequencies are the ones learned
4243  *     or maintained by the driver based on the probability of finding the
4244  *     BSSIDs in the ESS for which the roaming is triggered.
4245  *
4246  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
4247  *     trigger the scan on all the valid frequencies to find better
4248  *     candidates to roam.
4249  */
4250 enum qca_roam_scan_scheme {
4251 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
4252 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
4253 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
4254 };
4255 
4256 /*
4257  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
4258  *
4259  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
4260  *	a bad packet error rates (PER).
4261  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
4262  *	based on beacon misses from the connected AP.
4263  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
4264  *	due to poor RSSI of the connected AP.
4265  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
4266  *	upon finding a BSSID with a better RSSI than the connected BSSID.
4267  *	Here the RSSI of the current BSSID need not be poor.
4268  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
4269  *	by triggering a periodic scan to find a better AP to roam.
4270  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
4271  *	when the connected channel environment is too noisy/congested.
4272  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
4273  *	when BTM Request frame is received from the connected AP.
4274  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
4275  *	when the channel utilization is goes above the configured threshold.
4276  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
4277  *	based on the request from the user (space).
4278  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
4279  *	device receives Deauthentication/Disassociation frame from connected AP.
4280  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
4281  *	device is in idle state (no TX/RX) and suspend mode, if the current RSSI
4282  *	is determined to be a poor one.
4283  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
4284  *	based on continuous TX Data frame failures to the connected AP.
4285  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
4286  *	based on the scan results obtained from an external scan (not triggered
4287  *	to aim roaming).
4288  *
4289  * Set the corresponding roam trigger reason bit to consider it for roam
4290  * trigger.
4291  * Userspace can set multiple bits and send to the driver. The driver shall
4292  * consider all of them to trigger/initiate a roam scan.
4293  */
4294 enum qca_vendor_roam_triggers {
4295 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
4296 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
4297 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
4298 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
4299 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
4300 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
4301 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
4302 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
4303 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
4304 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
4305 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
4306 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
4307 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
4308 };
4309 
4310 /*
4311  * enum qca_vendor_roam_fail_reasons: Defines the various roam
4312  * fail reasons. This enum value is used in
4313  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
4314  *
4315  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
4316  * able to trigger the scan.
4317  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
4318  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
4319  * scan.
4320  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
4321  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
4322  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
4323  * status code.
4324  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
4325  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
4326  * frame.
4327  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
4328  * with error status code.
4329  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
4330  * received.
4331  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
4332  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
4333  * frame.
4334  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
4335  * internally before transmission.
4336  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
4337  * Request frame.
4338  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
4339  * dropped internally.
4340  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
4341  * times out.
4342  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
4343  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
4344  * internally.
4345  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
4346  * M2 frame.
4347  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
4348  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
4349  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
4350  * internally.
4351  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
4352  * frame.
4353  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
4354  * started for final beacon miss case.
4355  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
4356  * received from the AP during roaming handoff.
4357  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
4358  * or host is suspended and gives the indication of the last roamed AP only
4359  * when the Apps is resumed. If the Apps is resumed while the roaming is in
4360  * progress, this ongoing roaming is aborted and the last roamed AP is
4361  * indicated to host.
4362  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
4363  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
4364  * out.
4365  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
4366  */
4367 enum qca_vendor_roam_fail_reasons {
4368 	QCA_ROAM_FAIL_REASON_NONE = 0,
4369 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
4370 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
4371 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
4372 	QCA_ROAM_FAIL_REASON_HOST = 4,
4373 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
4374 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
4375 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
4376 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
4377 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
4378 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
4379 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
4380 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
4381 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
4382 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
4383 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
4384 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
4385 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
4386 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
4387 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
4388 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
4389 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
4390 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
4391 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
4392 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
4393 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
4394 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
4395 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
4396 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
4397 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
4398 };
4399 
4400 /*
4401  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
4402  * invoke fail reasons. This enum value is used in
4403  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
4404  *
4405  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
4406  * in roam invoke command.
4407  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
4408  * enabled.
4409  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
4410  * length is invalid.
4411  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
4412  * in progress.
4413  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
4414  * of the AP in the roam invoke command to firmware. This reason is sent by the
4415  * firmware when the given AP is configured to be ignored or SSID/security
4416  * does not match.
4417  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
4418  * firmware internal reasons.
4419  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
4420  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
4421  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
4422  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
4423  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
4424  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
4425  */
4426 enum qca_vendor_roam_invoke_fail_reasons {
4427 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
4428 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
4429 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
4430 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
4431 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
4432 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
4433 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
4434 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
4435 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
4436 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
4437 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
4438 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
4439 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
4440 
4441 };
4442 
4443 /**
4444  * enum qca_vendor_attr_roam_candidate_selection_criteria:
4445  *
4446  * Each attribute carries a weightage in percentage (%).
4447  *
4448  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
4449  *	Represents the weightage to be given for the RSSI selection
4450  *	criteria among other parameters.
4451  *
4452  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
4453  *	Represents the weightage to be given for the rate selection
4454  *	criteria among other parameters.
4455  *
4456  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
4457  *	Represents the weightage to be given for the band width selection
4458  *	criteria among other parameters.
4459  *
4460  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
4461  *	Represents the weightage to be given for the band selection
4462  *	criteria among other parameters.
4463  *
4464  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
4465  *	Represents the weightage to be given for the NSS selection
4466  *	criteria among other parameters.
4467  *
4468  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
4469  *	Represents the weightage to be given for the channel congestion
4470  *	selection criteria among other parameters.
4471  *
4472  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
4473  *	Represents the weightage to be given for the beamforming selection
4474  *	criteria among other parameters.
4475  *
4476  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
4477  *	Represents the weightage to be given for the OCE selection
4478  *	criteria among other parameters.
4479  */
4480 enum qca_vendor_attr_roam_candidate_selection_criteria {
4481 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
4482 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
4483 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
4484 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
4485 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
4486 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
4487 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
4488 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
4489 
4490 	/* keep last */
4491 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
4492 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
4493 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
4494 };
4495 
4496 /**
4497  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
4498  * 	The following attributes are used to set/get/clear the respective
4499  *	configurations to/from the driver.
4500  *	For the get, the attribute for the configuration to be queried shall
4501  *	carry any of its acceptable values to the driver. In return, the driver
4502  *	shall send the configured values within the same attribute to the user
4503  *	space.
4504  *
4505  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
4506  *	Signifies to enable/disable roam control in driver.
4507  *	1-enable, 0-disable
4508  *	Enable: Mandates the driver to do the further roams using the
4509  *	configuration parameters set through
4510  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
4511  *	Disable: Disables the driver/firmware roaming triggered through
4512  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
4513  *	expected to continue with the default configurations.
4514  *
4515  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
4516  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
4517  *	Roam control status is obtained through this attribute.
4518  *
4519  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
4520  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
4521  *	is to be cleared in the driver.
4522  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
4523  *	and shall be ignored if used with other sub commands.
4524  *	If this attribute is specified along with subcmd
4525  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
4526  *	all other attributes, if there are any.
4527  *	If this attribute is not specified when the subcmd
4528  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
4529  *	clear the data corresponding to the attributes specified.
4530  *
4531  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
4532  *	list of frequencies and its type, represented by
4533  *	enum qca_vendor_attr_scan_freq_list_scheme.
4534  *	Frequency list and its type are mandatory for this attribute to set
4535  *	the frequencies.
4536  *	Frequency type is mandatory for this attribute to get the frequencies
4537  *	and the frequency list is obtained through
4538  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
4539  *	Frequency list type is mandatory for this attribute to clear the
4540  *	frequencies.
4541  *
4542  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
4543  *	Carries the value of scan period in seconds to set.
4544  *	The value of scan period is obtained with the same attribute for get.
4545  *	Clears the scan period in the driver when specified with clear command.
4546  *	Scan period is the idle time in seconds between each subsequent
4547  *	channel scans.
4548  *
4549  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
4550  *	Carries the value of full scan period in seconds to set.
4551  *	The value of full scan period is obtained with the same attribute for
4552  *	get.
4553  *	Clears the full scan period in the driver when specified with clear
4554  *	command. Full scan period is the idle period in seconds between two
4555  *	successive full channel roam scans.
4556  *
4557  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
4558  *	Carries a bitmap of the roam triggers specified in
4559  *	enum qca_vendor_roam_triggers.
4560  *	The driver shall enable roaming by enabling corresponding roam triggers
4561  *	based on the trigger bits sent with this attribute.
4562  *	If this attribute is not configured, the driver shall proceed with
4563  *	default behavior.
4564  *	The bitmap configured is obtained with the same attribute for get.
4565  *	Clears the bitmap configured in driver when specified with clear
4566  *	command.
4567  *
4568  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
4569  *	weightage in percentage (%) to be given for each selection criteria.
4570  *	Different roam candidate selection criteria are represented by
4571  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
4572  *	The driver shall select the roam candidate based on corresponding
4573  *	candidate selection scores sent.
4574  *
4575  *	An empty nested attribute is used to indicate that no specific
4576  *	preference score/criteria is configured (i.e., to disable this mechanism
4577  *	in the set case and to show that the mechanism is disabled in the get
4578  *	case).
4579  *
4580  *	Userspace can send multiple attributes out of this enum to the driver.
4581  *	Since this attribute represents the weight/percentage of preference for
4582  *	the respective selection criteria, it is preferred to configure 100%
4583  *	total weightage. The value in each attribute or cumulative weight of the
4584  *	values in all the nested attributes should not exceed 100%. The driver
4585  *	shall reject such configuration.
4586  *
4587  *	If the weights configured through this attribute are less than 100%,
4588  *	the driver shall honor the weights (x%) passed for the corresponding
4589  *	selection criteria and choose/distribute rest of the weight (100-x)%
4590  *	for the other selection criteria, based on its internal logic.
4591  *
4592  *	The selection criteria configured is obtained with the same
4593  *	attribute for get.
4594  *
4595  *	Clears the selection criteria configured in the driver when specified
4596  *	with clear command.
4597  *
4598  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
4599  *	Represents value of the scan frequency scheme from enum
4600  *	qca_roam_scan_scheme.
4601  *	It's an optional attribute. If this attribute is not configured, the
4602  *	driver shall proceed with default behavior.
4603  *
4604  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4605  *	signifying the RSSI threshold of the current connected AP, indicating
4606  *	the driver to trigger roam only when the current connected AP's RSSI
4607  *	is less than this threshold.
4608  *
4609  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
4610  *	signifying the RSSI threshold of the candidate AP, indicating
4611  *	the driver to trigger roam only to the candidate AP with RSSI
4612  *	better than this threshold. If RSSI thresholds for candidate APs found
4613  *	in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
4614  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
4615  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
4616  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
4617  *	take precedence over the value configured using the
4618  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
4619  *
4620  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
4621  *	user defined reason code to be sent to the AP in response to AP's
4622  *	request to trigger the roam if the roaming cannot be triggered.
4623  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
4624  *
4625  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
4626  *	Carries a bitmap of the roam triggers specified in
4627  *	enum qca_vendor_roam_triggers.
4628  *	Represents the roam triggers for which the specific scan scheme from
4629  *	enum qca_roam_scan_scheme has to be applied.
4630  *	It's an optional attribute. If this attribute is not configured, but
4631  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
4632  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
4633  *	all the roams.
4634  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
4635  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
4636  *	driver shall proceed with the default behavior.
4637  *
4638  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
4639  *	in dBm, signifying the RSSI threshold of the candidate AP found in the
4640  *	2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
4641  *	AP found in the 2.4 GHz band only if its RSSI value is better than this
4642  *	threshold. Optional attribute. If this attribute is not included, the
4643  *	threshold value specified by the
4644  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4645  *
4646  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
4647  *	dBm, signifying the RSSI threshold of the candidate AP found in the 5
4648  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
4649  *	found in the 5 GHz band only if its RSSI value is better than this
4650  *	threshold. Optional attribute. If this attribute is not included, the
4651  *	threshold value specified by tge
4652  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4653  *
4654  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
4655  *	dBm, signifying the RSSI threshold of the candidate AP found in the 6
4656  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
4657  *	found in the 6 GHz band only if its RSSI value is better than this
4658  *	threshold. Optional attribute. If this attribute is not included, the
4659  *	threshold value specified by the
4660  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
4661  *
4662  */
4663 enum qca_vendor_attr_roam_control {
4664 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
4665 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
4666 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
4667 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4,
4668 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
4669 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
4670 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
4671 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
4672 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
4673 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
4674 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
4675 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
4676 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
4677 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
4678 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
4679 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
4680 
4681 	/* keep last */
4682 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
4683 	QCA_ATTR_ROAM_CONTROL_MAX =
4684 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
4685 };
4686 
4687 /*
4688  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
4689  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
4690  *
4691  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
4692  *	Represents the different roam sub commands referred by
4693  *	enum qca_wlan_vendor_roaming_subcmd.
4694  *
4695  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
4696  *	Represents the Request ID for the specific set of commands.
4697  *	This also helps to map specific set of commands to the respective
4698  *	ID / client. e.g., helps to identify the user entity configuring the
4699  *	ignored BSSIDs and accordingly clear the respective ones with the
4700  *	matching ID.
4701  *
4702  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
4703  *	32-bit value.Represents the number of whitelist SSIDs configured.
4704  *
4705  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
4706  *	to carry the list of Whitelist SSIDs.
4707  *
4708  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
4709  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
4710  *	represent the list of SSIDs to which the firmware/driver can consider
4711  *	to roam to.
4712  *
4713  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
4714  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
4715  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
4716  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
4717  *
4718  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
4719  *	value, RSSI threshold above which 5GHz RSSI is favored.
4720  *
4721  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
4722  *	value, RSSI threshold below which 5GHz RSSI is penalized.
4723  *
4724  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
4725  *	value, factor by which 5GHz RSSI is boosted.
4726  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
4727  *
4728  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
4729  *	value, factor by which 5GHz RSSI is penalized.
4730  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
4731  *
4732  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
4733  *	value, maximum boost that can be applied to a 5GHz RSSI.
4734  *
4735  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
4736  *	value, boost applied to current BSSID to ensure the currently
4737  *	associated BSSID is favored so as to prevent ping-pong situations.
4738  *
4739  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
4740  *	value, RSSI below which "Alert" roam is enabled.
4741  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
4742  *	because the RSSI is low, or because many successive beacons have been
4743  *	lost or other bad link conditions.
4744  *
4745  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
4746  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
4747  *	firmware is hunting for a better BSSID or white listed SSID even though
4748  *	the RSSI of the link is good. The parameters enabling the roaming are
4749  *	configured through the PARAM_A_BAND_XX attrbutes.
4750  *
4751  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
4752  *	represents the BSSIDs preferred over others while evaluating them
4753  *	for the roaming.
4754  *
4755  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
4756  *	32-bit value. Represents the number of preferred BSSIDs set.
4757  *
4758  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
4759  *	address representing the BSSID to be preferred.
4760  *
4761  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
4762  *	32-bit value, representing the modifier to be applied to the RSSI of
4763  *	the BSSID for the purpose of comparing it with other roam candidate.
4764  *
4765  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
4766  *	represents the BSSIDs to get ignored for roaming.
4767  *
4768  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
4769  *	32-bit value, represents the number of ignored BSSIDs.
4770  *
4771  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
4772  *	address representing the ignored BSSID.
4773  *
4774  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
4775  *	indicates this request to ignore the BSSID as a hint to the driver. The
4776  *	driver can select this BSSID in the worst case (when no other BSSIDs are
4777  *	better).
4778  *
4779  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
4780  *	set/get/clear the roam control config as
4781  *	defined @enum qca_vendor_attr_roam_control.
4782  */
4783 enum qca_wlan_vendor_attr_roaming_config_params {
4784 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
4785 
4786 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
4787 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
4788 
4789 	/* Attributes for wifi_set_ssid_white_list */
4790 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
4791 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
4792 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
4793 
4794 	/* Attributes for set_roam_params */
4795 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
4796 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
4797 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
4798 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
4799 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
4800 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
4801 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
4802 
4803 	/* Attribute for set_lazy_roam */
4804 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
4805 
4806 	/* Attribute for set_lazy_roam with preferences */
4807 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
4808 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
4809 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
4810 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
4811 
4812 	/* Attribute for setting ignored BSSID parameters */
4813 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
4814 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
4815 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
4816 	/* Flag attribute indicates this entry as a hint */
4817 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
4818 
4819 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
4820 
4821 	/* keep last */
4822 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
4823 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
4824 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
4825 };
4826 
4827 /*
4828  * enum qca_wlan_vendor_roaming_subcmd: Referred by
4829  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
4830  *
4831  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
4832  *	configure the white list SSIDs. These are configured through
4833  *	the following attributes.
4834  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
4835  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
4836  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
4837  *
4838  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
4839  *	configure the Roam params. These parameters are evaluated on the GScan
4840  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
4841  *	params.
4842  *
4843  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
4844  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
4845  *	to enable/disable Lazy roam.
4846  *
4847  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
4848  *	preference. Contains the attribute
4849  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
4850  *	preference.
4851  *
4852  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the list of BSSIDs
4853  *	to ignore in roaming decision. Uses
4854  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
4855  *
4856  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4857  *	roam control config to the driver with the attribute
4858  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4859  *
4860  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4861  *	roam control config from driver with the attribute
4862  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4863  *	For the get, the attribute for the configuration to be queried shall
4864  *	carry any of its acceptable value to the driver. In return, the driver
4865  *	shall send the configured values within the same attribute to the user
4866  *	space.
4867  *
4868  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4869  *	roam control config in the driver with the attribute
4870  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4871  *	The driver shall continue with its default roaming behavior when data
4872  *	corresponding to an attribute is cleared.
4873  */
4874 enum qca_wlan_vendor_roaming_subcmd {
4875 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
4876 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4877 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
4878 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4879 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4880 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4881 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4882 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4883 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4884 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
4885 };
4886 
4887 enum qca_wlan_vendor_attr_gscan_config_params {
4888 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
4889 
4890 	/* Unsigned 32-bit value */
4891 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
4892 
4893 	/* Attributes for data used by
4894 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
4895 	 */
4896 	/* Unsigned 32-bit value */
4897 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
4898 	= 2,
4899 	/* Unsigned 32-bit value */
4900 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
4901 	= 3,
4902 
4903 	/* Attributes for input params used by
4904 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
4905 	 */
4906 
4907 	/* Unsigned 32-bit value; channel frequency */
4908 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
4909 	/* Unsigned 32-bit value; dwell time in ms. */
4910 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
4911 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
4912 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
4913 	/* Unsigned 8-bit value; channel class */
4914 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
4915 
4916 	/* Unsigned 8-bit value; bucket index, 0 based */
4917 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
4918 	/* Unsigned 8-bit value; band. */
4919 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
4920 	/* Unsigned 32-bit value; desired period, in ms. */
4921 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
4922 	/* Unsigned 8-bit value; report events semantics. */
4923 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
4924 	/* Unsigned 32-bit value. Followed by a nested array of
4925 	 * GSCAN_CHANNEL_SPEC_* attributes.
4926 	 */
4927 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
4928 
4929 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
4930 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4931 	 */
4932 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
4933 
4934 	/* Unsigned 32-bit value; base timer period in ms. */
4935 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
4936 	/* Unsigned 32-bit value; number of APs to store in each scan in the
4937 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
4938 	 */
4939 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
4940 	/* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
4941 	 * up AP.
4942 	 */
4943 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
4944 	= 16,
4945 
4946 	/* Unsigned 8-bit value; number of scan bucket specs; followed by a
4947 	 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
4948 	 * of the array is determined by NUM_BUCKETS.
4949 	 */
4950 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
4951 
4952 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
4953 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
4954 	 */
4955 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
4956 
4957 	/* Unsigned 8-bit value */
4958 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
4959 	= 19,
4960 	/* Unsigned 32-bit value; maximum number of results to be returned. */
4961 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
4962 	= 20,
4963 
4964 	/* An array of 6 x unsigned 8-bit value */
4965 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
4966 	/* Signed 32-bit value */
4967 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
4968 	/* Signed 32-bit value */
4969 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
4970 	/* Unsigned 32-bit value */
4971 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
4972 
4973 	/* Number of hotlist APs as unsigned 32-bit value, followed by a nested
4974 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
4975 	 * array is determined by NUM_AP.
4976 	 */
4977 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
4978 
4979 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
4980 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
4981 	 */
4982 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
4983 
4984 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
4985 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
4986 	= 27,
4987 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
4988 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
4989 	= 28,
4990 	/* Unsigned 32-bit value; number of APs breaching threshold. */
4991 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
4992 	/* Unsigned 32-bit value; number of APs. Followed by an array of
4993 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
4994 	 */
4995 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
4996 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
4997 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
4998 	= 31,
4999 	/* Unsigned 32-bit value. If max_period is non zero or different than
5000 	 * period, then this bucket is an exponential backoff bucket.
5001 	 */
5002 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
5003 	/* Unsigned 32-bit value. */
5004 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
5005 	/* Unsigned 32-bit value. For exponential back off bucket, number of
5006 	 * scans to perform for a given period.
5007 	 */
5008 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
5009 	/* Unsigned 8-bit value; in number of scans, wake up AP after these
5010 	 * many scans.
5011 	 */
5012 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
5013 	= 35,
5014 
5015 	/* Attributes for data used by
5016 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
5017 	 */
5018 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
5019 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
5020 	= 36,
5021 	/* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
5022 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
5023 	 * size of the array is determined by NUM_SSID.
5024 	 */
5025 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
5026 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
5027 	 * attributes.
5028 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
5029 	 */
5030 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
5031 
5032 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5033 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
5034 	/* Unsigned 8-bit value */
5035 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
5036 	/* Signed 32-bit value */
5037 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
5038 	/* Signed 32-bit value */
5039 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
5040 	/* Unsigned 32-bit value; a bitmask with additional gscan config flag.
5041 	 */
5042 	QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
5043 
5044 	/* keep last */
5045 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
5046 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
5047 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
5048 };
5049 
5050 enum qca_wlan_vendor_attr_gscan_results {
5051 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
5052 
5053 	/* Unsigned 32-bit value; must match the request Id supplied by
5054 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
5055 	 */
5056 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
5057 
5058 	/* Unsigned 32-bit value; used to indicate the status response from
5059 	 * firmware/driver for the vendor sub-command.
5060 	 */
5061 	QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
5062 
5063 	/* GSCAN Valid Channels attributes */
5064 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
5065 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
5066 	/* An array of NUM_CHANNELS x unsigned 32-bit value integers
5067 	 * representing channel numbers.
5068 	 */
5069 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
5070 
5071 	/* GSCAN Capabilities attributes */
5072 	/* Unsigned 32-bit value */
5073 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
5074 	/* Unsigned 32-bit value */
5075 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
5076 	/* Unsigned 32-bit value */
5077 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
5078 	= 7,
5079 	/* Unsigned 32-bit value */
5080 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
5081 	= 8,
5082 	/* Signed 32-bit value */
5083 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
5084 	= 9,
5085 	/* Unsigned 32-bit value */
5086 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
5087 	/* Unsigned 32-bit value */
5088 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
5089 	= 11,
5090 	/* Unsigned 32-bit value */
5091 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
5092 	= 12,
5093 
5094 	/* GSCAN Attributes used with
5095 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
5096 	 */
5097 
5098 	/* Unsigned 32-bit value */
5099 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
5100 
5101 	/* GSCAN attributes used with
5102 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
5103 	 */
5104 
5105 	/* An array of NUM_RESULTS_AVAILABLE x
5106 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
5107 	 */
5108 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
5109 
5110 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
5111 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
5112 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
5113 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
5114 	/* An array of 6 x unsigned 8-bit value */
5115 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
5116 	/* Unsigned 32-bit value; channel frequency in MHz */
5117 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
5118 	/* Signed 32-bit value */
5119 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
5120 	/* Unsigned 32-bit value */
5121 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
5122 	/* Unsigned 32-bit value */
5123 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
5124 	/* Unsigned 16-bit value */
5125 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
5126 	/* Unsigned 16-bit value */
5127 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
5128 	/* Unsigned 32-bit value; size of the IE DATA blob */
5129 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
5130 	/* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
5131 	 * information elements found in the beacon; this data should be a
5132 	 * packed list of wifi_information_element objects, one after the
5133 	 * other.
5134 	 */
5135 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
5136 
5137 	/* Unsigned 8-bit value; set by driver to indicate more scan results are
5138 	 * available.
5139 	 */
5140 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
5141 
5142 	/* GSCAN attributes for
5143 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
5144 	 */
5145 	/* Unsigned 8-bit value */
5146 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
5147 	/* Unsigned 32-bit value */
5148 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
5149 
5150 	/* GSCAN attributes for
5151 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
5152 	 */
5153 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5154 	 * to indicate number of results.
5155 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5156 	 * list of results.
5157 	 */
5158 
5159 	/* GSCAN attributes for
5160 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
5161 	 */
5162 	/* An array of 6 x unsigned 8-bit value */
5163 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
5164 	/* Unsigned 32-bit value */
5165 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
5166 	= 30,
5167 	/* Unsigned 32-bit value. */
5168 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
5169 	= 31,
5170 	/* A nested array of signed 32-bit RSSI values. Size of the array is
5171 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
5172 	 */
5173 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
5174 	= 32,
5175 
5176 	/* GSCAN attributes used with
5177 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
5178 	 */
5179 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5180 	 * to indicate number of gscan cached results returned.
5181 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
5182 	 *  the list of gscan cached results.
5183 	 */
5184 
5185 	/* An array of NUM_RESULTS_AVAILABLE x
5186 	 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
5187 	 */
5188 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
5189 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
5190 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
5191 	/* Unsigned 32-bit value; a bitmask w/additional information about scan.
5192 	 */
5193 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
5194 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
5195 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
5196 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
5197 	 * list of wifi scan results returned for each cached result block.
5198 	 */
5199 
5200 	/* GSCAN attributes for
5201 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
5202 	 */
5203 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
5204 	 * number of results.
5205 	 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5206 	 * list of wifi scan results returned for each
5207 	 * wifi_passpoint_match_result block.
5208 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
5209 	 */
5210 
5211 	/* GSCAN attributes for
5212 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
5213 	 */
5214 	/* Unsigned 32-bit value */
5215 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
5216 	= 36,
5217 	/* A nested array of
5218 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
5219 	 * attributes. Array size =
5220 	 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
5221 	 */
5222 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
5223 
5224 	/* Unsigned 32-bit value; network block id for the matched network */
5225 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
5226 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
5227 	 * list of wifi scan results returned for each
5228 	 * wifi_passpoint_match_result block.
5229 	 */
5230 	/* Unsigned 32-bit value */
5231 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
5232 	/* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
5233 	 * ANQP data in the information_element format.
5234 	 */
5235 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
5236 
5237 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5238 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
5239 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5240 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
5241 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5242 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
5243 	= 43,
5244 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
5245 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
5246 	= 44,
5247 
5248 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
5249 
5250 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute.
5251 	 * This is used to limit the maximum number of BSSIDs while sending
5252 	 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
5253 	 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID and attribute
5254 	 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
5255 	 */
5256 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
5257 
5258 	/* keep last */
5259 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
5260 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
5261 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
5262 };
5263 
5264 enum qca_wlan_vendor_attr_pno_config_params {
5265 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
5266 	/* Attributes for data used by
5267 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
5268 	 */
5269 	/* Unsigned 32-bit value */
5270 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
5271 	/* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
5272 	 * attributes. Array size =
5273 	 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
5274 	 */
5275 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
5276 
5277 	/* Unsigned 32-bit value */
5278 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
5279 	/* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
5280 	 * realm, 0 if unspecified.
5281 	 */
5282 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
5283 	/* An array of 16 x unsigned 32-bit value; roaming consortium ids to
5284 	 * match, 0 if unspecified.
5285 	 */
5286 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
5287 	/* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
5288 	 * unspecified.
5289 	 */
5290 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
5291 
5292 	/* Attributes for data used by
5293 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
5294 	 */
5295 	/* Unsigned 32-bit value */
5296 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
5297 	/* Array of nested
5298 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
5299 	 * attributes. Array size =
5300 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
5301 	 */
5302 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
5303 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
5304 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
5305 	/* Signed 8-bit value; threshold for considering this SSID as found,
5306 	 * required granularity for this threshold is 4 dBm to 8 dBm.
5307 	 */
5308 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
5309 	= 10,
5310 	/* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
5311 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
5312 	/* Unsigned 8-bit value; auth bit field for matching WPA IE */
5313 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
5314 	/* Unsigned 8-bit to indicate ePNO type;
5315 	 * It takes values from qca_wlan_epno_type
5316 	 */
5317 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
5318 
5319 	/* Nested attribute to send the channel list */
5320 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
5321 
5322 	/* Unsigned 32-bit value; indicates the interval between PNO scan
5323 	 * cycles in msec.
5324 	 */
5325 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
5326 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
5327 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
5328 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
5329 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
5330 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
5331 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
5332 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
5333 	/* Unsigned 32-bit value, representing the PNO Request ID */
5334 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
5335 
5336 	/* keep last */
5337 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
5338 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
5339 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
5340 };
5341 
5342 /**
5343  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
5344  * the ACS has to be triggered. These values are used by
5345  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
5346  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
5347  */
5348 enum qca_wlan_vendor_acs_select_reason {
5349 	/* Represents the reason that the ACS triggered during the AP start */
5350 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
5351 	/* Represents the reason that DFS found with the current channel */
5352 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
5353 	/* Represents the reason that LTE co-exist in the current band. */
5354 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
5355 	/* Represents the reason that generic, uncategorized interference has
5356 	 * been found in the current channel.
5357 	 */
5358 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
5359 	/* Represents the reason that excessive 802.11 interference has been
5360 	 * found in the current channel.
5361 	 */
5362 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
5363 	/* Represents the reason that generic Continuous Wave (CW) interference
5364 	 * has been found in the current channel.
5365 	 */
5366 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
5367 	/* Represents the reason that Microwave Oven (MWO) interference has been
5368 	 * found in the current channel.
5369 	 */
5370 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
5371 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
5372 	 * (FHSS) interference has been found in the current channel. This may
5373 	 * include 802.11 waveforms.
5374 	 */
5375 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
5376 	/* Represents the reason that non-802.11 generic Frequency-Hopping
5377 	 * Spread Spectrum (FHSS) interference has been found in the current
5378 	 * channel.
5379 	 */
5380 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
5381 	/* Represents the reason that generic Wideband (WB) interference has
5382 	 * been found in the current channel. This may include 802.11 waveforms.
5383 	 */
5384 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
5385 	/* Represents the reason that non-802.11 generic Wideband (WB)
5386 	 * interference has been found in the current channel.
5387 	 */
5388 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
5389 	/* Represents the reason that Jammer interference has been found in the
5390 	 * current channel.
5391 	 */
5392 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
5393 };
5394 
5395 /**
5396  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
5397  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
5398  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
5399  * external ACS policies to select the channels w.r.t. the PCL weights.
5400  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
5401  * their PCL weights.)
5402  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
5403  * select a channel with non-zero PCL weight.
5404  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
5405  * channel with non-zero PCL weight.
5406  *
5407  */
5408 enum qca_wlan_vendor_attr_external_acs_policy {
5409 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
5410 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
5411 };
5412 
5413 /**
5414  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
5415  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
5416  */
5417 enum qca_wlan_vendor_channel_prop_flags {
5418 	/* Bits 0, 1, 2, and 3 are reserved */
5419 
5420 	/* Turbo channel */
5421 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
5422 	/* CCK channel */
5423 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
5424 	/* OFDM channel */
5425 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
5426 	/* 2.4 GHz spectrum channel. */
5427 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
5428 	/* 5 GHz spectrum channel */
5429 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
5430 	/* Only passive scan allowed */
5431 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
5432 	/* Dynamic CCK-OFDM channel */
5433 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
5434 	/* GFSK channel (FHSS PHY) */
5435 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
5436 	/* Radar found on channel */
5437 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
5438 	/* 11a static turbo channel only */
5439 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
5440 	/* Half rate channel */
5441 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
5442 	/* Quarter rate channel */
5443 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
5444 	/* HT 20 channel */
5445 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
5446 	/* HT 40 with extension channel above */
5447 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
5448 	/* HT 40 with extension channel below */
5449 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
5450 	/* HT 40 intolerant */
5451 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
5452 	/* VHT 20 channel */
5453 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
5454 	/* VHT 40 with extension channel above */
5455 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
5456 	/* VHT 40 with extension channel below */
5457 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
5458 	/* VHT 80 channel */
5459 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
5460 	/* HT 40 intolerant mark bit for ACS use */
5461 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
5462 	/* Channel temporarily blocked due to noise */
5463 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
5464 	/* VHT 160 channel */
5465 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
5466 	/* VHT 80+80 channel */
5467 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
5468 	/* HE 20 channel */
5469 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
5470 	/* HE 40 with extension channel above */
5471 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
5472 	/* HE 40 with extension channel below */
5473 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
5474 	/* HE 40 intolerant */
5475 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1 << 31,
5476 };
5477 
5478 /**
5479  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
5480  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
5481  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
5482  */
5483 enum qca_wlan_vendor_channel_prop_flags_2 {
5484 	/* HE 40 intolerant mark bit for ACS use */
5485 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
5486 	/* HE 80 channel */
5487 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
5488 	/* HE 160 channel */
5489 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
5490 	/* HE 80+80 channel */
5491 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
5492 };
5493 
5494 /**
5495  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
5496  * each channel. This is used by
5497  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
5498  */
5499 enum qca_wlan_vendor_channel_prop_flags_ext {
5500 	/* Radar found on channel */
5501 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
5502 	/* DFS required on channel */
5503 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
5504 	/* DFS required on channel for 2nd band of 80+80 */
5505 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
5506 	/* If channel has been checked for DFS */
5507 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
5508 	/* Excluded in 802.11d */
5509 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
5510 	/* Channel Switch Announcement received on this channel */
5511 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
5512 	/* Ad-hoc is not allowed */
5513 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
5514 	/* Station only channel */
5515 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
5516 	/* DFS radar history for client device (STA mode) */
5517 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
5518 	/* DFS CAC valid for client device (STA mode) */
5519 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
5520 };
5521 
5522 /**
5523  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5524  * information. These attributes are sent as part of
5525  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5526  * attributes correspond to a single channel.
5527  */
5528 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5529 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5530 
5531 	/* A bitmask (u32) with flags specified in
5532 	 * enum qca_wlan_vendor_channel_prop_flags.
5533 	 */
5534 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5535 	/* A bitmask (u32) with flags specified in
5536 	 * enum qca_wlan_vendor_channel_prop_flags_ext.
5537 	 */
5538 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5539 	/* frequency in MHz (u32) */
5540 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5541 	/* maximum regulatory transmission power (u32) */
5542 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5543 	/* maximum transmission power (u32) */
5544 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5545 	/* minimum transmission power (u32) */
5546 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5547 	/* regulatory class id (u8) */
5548 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5549 	/* maximum antenna gain in (u8) */
5550 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5551 	/* VHT segment 0 (u8) */
5552 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5553 	/* VHT segment 1 (u8) */
5554 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5555 	/* A bitmask (u32) with flags specified in
5556 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5557 	 */
5558 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5559 
5560 	/*
5561 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5562 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5563 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5564 	 * along with
5565 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5566 	 *
5567 	 * If both the driver and user-space application supports the 6 GHz
5568 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5569 	 * is deprecated and
5570 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5571 	 * should be used.
5572 	 *
5573 	 * To maintain backward compatibility,
5574 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5575 	 * is still used if either of the driver or user space application
5576 	 * doesn't support the 6 GHz band.
5577 	 */
5578 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5579 
5580 	/*
5581 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5582 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5583 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5584 	 * along with
5585 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5586 	 *
5587 	 * If both the driver and user-space application supports the 6 GHz
5588 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5589 	 * is deprecated and
5590 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5591 	 * should be considered.
5592 	 *
5593 	 * To maintain backward compatibility,
5594 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5595 	 * is still used if either of the driver or user space application
5596 	 * doesn't support the 6 GHz band.
5597 	 */
5598 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5599 
5600 	/* keep last */
5601 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5602 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5603 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5604 };
5605 
5606 /**
5607  * qca_wlan_vendor_attr_pcl: Represents attributes for
5608  * preferred channel list (PCL). These attributes are sent as part of
5609  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5610  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5611  */
5612 enum qca_wlan_vendor_attr_pcl {
5613 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5614 
5615 	/* Channel number (u8) */
5616 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5617 	/* Channel weightage (u8) */
5618 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5619 	/* Channel frequency (u32) in MHz */
5620 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5621 	/* Channel flags (u32)
5622 	 * bit 0 set: channel to be used for GO role,
5623 	 * bit 1 set: channel to be used on CLI role,
5624 	 * bit 2 set: channel must be considered for operating channel
5625 	 *                 selection & peer chosen operating channel should be
5626 	 *                 one of the channels with this flag set,
5627 	 * bit 3 set: channel should be excluded in GO negotiation
5628 	 */
5629 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5630 };
5631 
5632 /**
5633  * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
5634  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
5635  * host driver.
5636  */
5637 enum qca_wlan_vendor_attr_external_acs_event {
5638 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5639 
5640 	/* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
5641 	 * This helps ACS module to understand why ACS needs to be started.
5642 	 */
5643 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5644 	/* Flag attribute to indicate if driver supports spectral scanning */
5645 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5646 	/* Flag attribute to indicate if 11ac is offloaded to firmware */
5647 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5648 	/* Flag attribute to indicate if driver provides additional channel
5649 	 * capability as part of scan operation
5650 	 */
5651 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5652 	/* Flag attribute to indicate interface status is UP */
5653 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5654 	/* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
5655 	 * values.
5656 	 */
5657 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5658 	/* Channel width (u8). It takes one of enum nl80211_chan_width values.
5659 	 * This is the upper bound of channel width. ACS logic should try to get
5660 	 * a channel with the specified width and if not found, look for lower
5661 	 * values.
5662 	 */
5663 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5664 	/* This (u8) will hold values of one of enum nl80211_bands */
5665 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5666 	/* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
5667 	 * values
5668 	 */
5669 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5670 	/* Array of (u32) supported frequency list among which ACS should choose
5671 	 * best frequency.
5672 	 */
5673 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5674 	/* Preferred channel list by the driver which will have array of nested
5675 	 * values as per enum qca_wlan_vendor_attr_pcl attribute.
5676 	 */
5677 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5678 	/* Array of nested attribute for each channel. It takes attr as defined
5679 	 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
5680 	 */
5681 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5682 	/* External ACS policy such as PCL mandatory, PCL preferred, etc.
5683 	 * It uses values defined in enum
5684 	 * qca_wlan_vendor_attr_external_acs_policy.
5685 	 */
5686 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5687 	/* Reference RF Operating Parameter (RROP) availability information
5688 	 * (u16). It uses values defined in enum
5689 	 * qca_wlan_vendor_attr_rropavail_info.
5690 	 */
5691 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5692 
5693 	/* keep last */
5694 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5695 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5696 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5697 };
5698 
5699 /**
5700  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
5701  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
5702  * in priority order as decided after ACS operation in userspace.
5703  *
5704  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
5705  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
5706  *
5707  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
5708  * Array of nested values for each channel with following attributes:
5709  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
5710  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
5711  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
5712  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
5713  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5714  * Note: If both the driver and user-space application supports the 6 GHz band,
5715  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
5716  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
5717  * To maintain backward compatibility,
5718  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
5719  * is still used if either of the driver or user space application doesn't
5720  * support the 6 GHz band.
5721  *
5722  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
5723  * Primary channel number
5724  * Note: If both the driver and user-space application supports the 6 GHz band,
5725  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
5726  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
5727  * To maintain backward compatibility,
5728  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
5729  * is still used if either of the driver or user space application doesn't
5730  * support the 6 GHz band.
5731  *
5732  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
5733  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
5734  * Note: If both the driver and user-space application supports the 6 GHz band,
5735  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
5736  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
5737  * To maintain backward compatibility,
5738  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
5739  * is still used if either of the driver or user space application
5740  * doesn't support the 6 GHz band.
5741  *
5742  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
5743  * VHT seg0 channel number
5744  * Note: If both the driver and user-space application supports the 6 GHz band,
5745  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
5746  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
5747  * To maintain backward compatibility,
5748  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
5749  * is still used if either of the driver or user space application
5750  * doesn't support the 6 GHz band.
5751  *
5752  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
5753  * VHT seg1 channel number
5754  * Note: If both the driver and user-space application supports the 6 GHz band,
5755  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
5756  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
5757  * To maintain backward compatibility,
5758  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
5759  * is still used if either of the driver or user space application
5760  * doesn't support the 6 GHz band.
5761  *
5762  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
5763  * Takes one of enum nl80211_chan_width values.
5764  *
5765  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
5766  * Array of nested values for each channel with following attributes:
5767  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
5768  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
5769  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
5770  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
5771  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5772  * Note: If user-space application has no support of the 6 GHz band, this
5773  * attribute is optional.
5774  *
5775  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
5776  * Primary channel frequency in MHz
5777  * Note: If user-space application has no support of the 6 GHz band, this
5778  * attribute is optional.
5779  *
5780  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
5781  * Secondary channel frequency in MHz used for HT 40 MHz channels.
5782  * Note: If user-space application has no support of the 6 GHz band, this
5783  * attribute is optional.
5784  *
5785  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
5786  * VHT seg0 channel frequency in MHz
5787  * Note: If user-space application has no support of the 6GHz band, this
5788  * attribute is optional.
5789  *
5790  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
5791  * VHT seg1 channel frequency in MHz
5792  * Note: If user-space application has no support of the 6 GHz band, this
5793  * attribute is optional.
5794  */
5795 enum qca_wlan_vendor_attr_external_acs_channels {
5796 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
5797 
5798 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
5799 	 */
5800 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
5801 
5802 	/* Array of nested values for each channel with following attributes:
5803 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
5804 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
5805 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
5806 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
5807 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
5808 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
5809 	 */
5810 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
5811 	/* This (u8) will hold values of one of enum nl80211_bands */
5812 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
5813 	/* Primary channel (u8) */
5814 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
5815 	/* Secondary channel (u8) used for HT 40 MHz channels */
5816 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
5817 	/* VHT seg0 channel (u8) */
5818 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
5819 	/* VHT seg1 channel (u8) */
5820 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
5821 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
5822 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
5823 
5824 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
5825 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
5826 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
5827 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
5828 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
5829 
5830 	/* keep last */
5831 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
5832 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
5833 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
5834 };
5835 
5836 enum qca_chip_power_save_failure_reason {
5837 	/* Indicates if the reason for the failure is due to a protocol
5838 	 * layer/module.
5839 	 */
5840 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
5841 	/* Indicates if the reason for the failure is due to a hardware issue.
5842 	 */
5843 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
5844 };
5845 
5846 /**
5847  * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
5848  * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
5849  * information leading to the power save failure.
5850  */
5851 enum qca_attr_chip_power_save_failure {
5852 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
5853 	/* Reason to cause the power save failure.
5854 	 * These reasons are represented by
5855 	 * enum qca_chip_power_save_failure_reason.
5856 	 */
5857 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
5858 
5859 	/* keep last */
5860 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
5861 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
5862 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
5863 };
5864 
5865 /**
5866  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
5867  * data types for which the stats have to get collected.
5868  */
5869 enum qca_wlan_vendor_nud_stats_data_pkt_flags {
5870 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
5871 	QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
5872 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
5873 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
5874 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
5875 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
5876 	 * to represent the stats of respective data type.
5877 	 */
5878 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
5879 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
5880 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
5881 };
5882 
5883 enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
5884 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
5885 	/* Represents the data packet type to be monitored (u32).
5886 	 * Host driver tracks the stats corresponding to each data frame
5887 	 * represented by these flags.
5888 	 * These data packets are represented by
5889 	 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
5890 	 */
5891 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
5892 	/* Name corresponding to the DNS frame for which the respective DNS
5893 	 * stats have to get monitored (string). Max string length 255.
5894 	 */
5895 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
5896 	/* source port on which the respective proto stats have to get
5897 	 * collected (u32).
5898 	 */
5899 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
5900 	/* destination port on which the respective proto stats have to get
5901 	 * collected (u32).
5902 	 */
5903 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
5904 	/* IPv4 address for which the destined data packets have to be
5905 	 * monitored. (in network byte order), u32.
5906 	 */
5907 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
5908 	/* IPv6 address for which the destined data packets have to be
5909 	 * monitored. (in network byte order), 16 bytes array.
5910 	 */
5911 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
5912 
5913 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
5914 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
5915 		QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
5916 };
5917 
5918 /**
5919  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
5920  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
5921  * information to start/stop the NUD statistics collection.
5922  */
5923 enum qca_attr_nud_stats_set {
5924 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
5925 
5926 	/* Flag to start/stop the NUD statistics collection.
5927 	 * Start - If included, Stop - If not included
5928 	 */
5929 	QCA_ATTR_NUD_STATS_SET_START = 1,
5930 	/* IPv4 address of the default gateway (in network byte order), u32 */
5931 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
5932 	/* Represents the list of data packet types to be monitored.
5933 	 * Host driver tracks the stats corresponding to each data frame
5934 	 * represented by these flags.
5935 	 * These data packets are represented by
5936 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
5937 	 */
5938 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
5939 
5940 	/* keep last */
5941 	QCA_ATTR_NUD_STATS_SET_LAST,
5942 	QCA_ATTR_NUD_STATS_SET_MAX =
5943 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
5944 };
5945 
5946 enum qca_attr_nud_data_stats {
5947 	QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
5948 	/* Data packet type for which the stats are collected (u32).
5949 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
5950 	 */
5951 	QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
5952 	/* Name corresponding to the DNS frame for which the respective DNS
5953 	 * stats are monitored (string). Max string length 255.
5954 	 */
5955 	QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
5956 	/* source port on which the respective proto stats are collected (u32).
5957 	 */
5958 	QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
5959 	/* destination port on which the respective proto stats are collected
5960 	 * (u32).
5961 	 */
5962 	QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
5963 	/* IPv4 address for which the destined data packets have to be
5964 	 * monitored. (in network byte order), u32.
5965 	 */
5966 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
5967 	/* IPv6 address for which the destined data packets have to be
5968 	 * monitored. (in network byte order), 16 bytes array.
5969 	 */
5970 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
5971 	/* Data packet Request count received from netdev (u32). */
5972 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
5973 	/* Data packet Request count sent to lower MAC from upper MAC (u32). */
5974 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
5975 	/* Data packet Request count received by lower MAC from upper MAC
5976 	 * (u32)
5977 	 */
5978 	QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
5979 	/* Data packet Request count successfully transmitted by the device
5980 	 * (u32)
5981 	 */
5982 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
5983 	/* Data packet Response count received by lower MAC (u32) */
5984 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
5985 	/* Data packet Response count received by upper MAC (u32) */
5986 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
5987 	/* Data packet Response count delivered to netdev (u32) */
5988 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
5989 	/* Data Packet Response count that are dropped out of order (u32) */
5990 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
5991 
5992 	/* keep last */
5993 	QCA_ATTR_NUD_DATA_STATS_LAST,
5994 	QCA_ATTR_NUD_DATA_STATS_MAX =
5995 		QCA_ATTR_NUD_DATA_STATS_LAST - 1,
5996 };
5997 
5998 /**
5999  * qca_attr_nud_stats_get: Attributes to vendor subcmd
6000  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
6001  * NUD statistics collected when queried.
6002  */
6003 enum qca_attr_nud_stats_get {
6004 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
6005 	/* ARP Request count from netdev (u32) */
6006 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
6007 	/* ARP Request count sent to lower MAC from upper MAC (u32) */
6008 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
6009 	/* ARP Request count received by lower MAC from upper MAC (u32) */
6010 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
6011 	/* ARP Request count successfully transmitted by the device (u32) */
6012 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
6013 	/* ARP Response count received by lower MAC (u32) */
6014 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
6015 	/* ARP Response count received by upper MAC (u32) */
6016 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
6017 	/* ARP Response count delivered to netdev (u32) */
6018 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
6019 	/* ARP Response count dropped due to out of order reception (u32) */
6020 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
6021 	/* Flag indicating if the station's link to the AP is active.
6022 	 * Active Link - If included, Inactive link - If not included
6023 	 */
6024 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
6025 	/* Flag indicating if there is any duplicate address detected (DAD).
6026 	 * Yes - If detected, No - If not detected.
6027 	 */
6028 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
6029 	/* List of Data packet types for which the stats are requested.
6030 	 * This list does not carry ARP stats as they are done by the
6031 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
6032 	 */
6033 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
6034 
6035 	/* keep last */
6036 	QCA_ATTR_NUD_STATS_GET_LAST,
6037 	QCA_ATTR_NUD_STATS_GET_MAX =
6038 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
6039 };
6040 
6041 enum qca_wlan_btm_candidate_status {
6042 	QCA_STATUS_ACCEPT = 0,
6043 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
6044 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
6045 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
6046 	QCA_STATUS_REJECT_LOW_RSSI = 4,
6047 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
6048 	QCA_STATUS_REJECT_UNKNOWN = 6,
6049 };
6050 
6051 enum qca_wlan_vendor_attr_btm_candidate_info {
6052 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
6053 
6054 	/* 6-byte MAC address representing the BSSID of transition candidate */
6055 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
6056 	/* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
6057 	 * returned by the driver. It says whether the BSSID provided in
6058 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
6059 	 * the driver, if not it specifies the reason for rejection.
6060 	 * Note that the user-space can overwrite the transition reject reason
6061 	 * codes provided by driver based on more information.
6062 	 */
6063 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
6064 
6065 	/* keep last */
6066 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
6067 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
6068 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
6069 };
6070 
6071 enum qca_attr_trace_level {
6072 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
6073 	/*
6074 	 * Nested array of the following attributes:
6075 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
6076 	 * QCA_ATTR_TRACE_LEVEL_MASK.
6077 	 */
6078 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
6079 	/*
6080 	 * Specific QCA host driver module. Please refer to the QCA host
6081 	 * driver implementation to get the specific module ID.
6082 	 */
6083 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
6084 	/* Different trace level masks represented in the QCA host driver. */
6085 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
6086 
6087 	/* keep last */
6088 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
6089 	QCA_ATTR_TRACE_LEVEL_MAX =
6090 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
6091 };
6092 
6093 /**
6094  * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
6095  */
6096 enum qca_wlan_vendor_attr_get_he_capabilities {
6097 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
6098 	/* Whether HE capabilities is supported
6099 	 * (u8 attribute: 0 = not supported, 1 = supported)
6100 	 */
6101 	QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
6102 	/* HE PHY capabilities, array of 3 u32 values  */
6103 	QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
6104 	/* HE MAC capabilities (u32 attribute) */
6105 	QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
6106 	/* HE MCS map (u32 attribute) */
6107 	QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
6108 	/* Number of SS (u32 attribute) */
6109 	QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
6110 	/* RU count (u32 attribute) */
6111 	QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
6112 	/* PPE threshold data, array of 8 u32 values */
6113 	QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
6114 
6115 	/* keep last */
6116 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
6117 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
6118 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
6119 };
6120 
6121 /**
6122  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6123  */
6124 enum qca_wlan_vendor_attr_spectral_scan {
6125 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6126 	/* Number of times the chip enters spectral scan mode before
6127 	 * deactivating spectral scans. When set to 0, chip will enter spectral
6128 	 * scan mode continuously. u32 attribute.
6129 	 */
6130 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6131 	/* Spectral scan period. Period increment resolution is 256*Tclk,
6132 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6133 	 */
6134 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6135 	/* Spectral scan priority. u32 attribute. */
6136 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6137 	/* Number of FFT data points to compute. u32 attribute. */
6138 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6139 	/* Enable targeted gain change before starting the spectral scan FFT.
6140 	 * u32 attribute.
6141 	 */
6142 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6143 	/* Restart a queued spectral scan. u32 attribute. */
6144 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6145 	/* Noise floor reference number for the calculation of bin power.
6146 	 * u32 attribute.
6147 	 */
6148 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6149 	/* Disallow spectral scan triggers after TX/RX packets by setting
6150 	 * this delay value to roughly SIFS time period or greater.
6151 	 * u32 attribute.
6152 	 */
6153 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6154 	/* Number of strong bins (inclusive) per sub-channel, below
6155 	 * which a signal is declared a narrow band tone. u32 attribute.
6156 	 */
6157 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6158 	/* Specify the threshold over which a bin is declared strong (for
6159 	 * scan bandwidth analysis). u32 attribute.
6160 	 */
6161 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6162 	/* Spectral scan report mode. u32 attribute. */
6163 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6164 	/* RSSI report mode, if the ADC RSSI is below
6165 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6166 	 * then FFTs will not trigger, but timestamps and summaries get
6167 	 * reported. u32 attribute.
6168 	 */
6169 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6170 	/* ADC RSSI must be greater than or equal to this threshold (signed dB)
6171 	 * to ensure spectral scan reporting with normal error code.
6172 	 * u32 attribute.
6173 	 */
6174 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6175 	/* Format of frequency bin magnitude for spectral scan triggered FFTs:
6176 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6177 	 * u32 attribute.
6178 	 */
6179 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6180 	/* Format of FFT report to software for spectral scan triggered FFTs.
6181 	 * 0: No FFT report (only spectral scan summary report)
6182 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6183 	 * report
6184 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6185 	 * bins (in-band) per FFT + spectral scan summary report
6186 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6187 	 * bins (all) per FFT + spectral scan summary report
6188 	 * u32 attribute.
6189 	 */
6190 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6191 	/* Number of LSBs to shift out in order to scale the FFT bins.
6192 	 * u32 attribute.
6193 	 */
6194 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6195 	/* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6196 	 * in dBm power. u32 attribute.
6197 	 */
6198 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6199 	/* Per chain enable mask to select input ADC for search FFT.
6200 	 * u32 attribute.
6201 	 */
6202 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6203 	/* An unsigned 64-bit integer provided by host driver to identify the
6204 	 * spectral scan request. This attribute is included in the scan
6205 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6206 	 * and used as an attribute in
6207 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6208 	 * specific scan to be stopped.
6209 	 */
6210 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
6211 	/* Skip interval for FFT reports. u32 attribute */
6212 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6213 	/* Set to report only one set of FFT results.
6214 	 * u32 attribute.
6215 	 */
6216 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6217 	/* Debug level for spectral module in driver.
6218 	 * 0 : Verbosity level 0
6219 	 * 1 : Verbosity level 1
6220 	 * 2 : Verbosity level 2
6221 	 * 3 : Matched filterID display
6222 	 * 4 : One time dump of FFT report
6223 	 * u32 attribute.
6224 	 */
6225 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6226 	/* Type of spectral scan request. u32 attribute.
6227 	 * It uses values defined in enum
6228 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
6229 	 */
6230 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
6231 	/* This specifies the frequency span over which spectral
6232 	 * scan would be carried out. Its value depends on the
6233 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6234 	 * the relation is as follows.
6235 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6236 	 *    Not applicable. Spectral scan would happen in the
6237 	 *    operating span.
6238 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6239 	 *    Center frequency (in MHz) of the span of interest or
6240 	 *    for convenience, center frequency (in MHz) of any channel
6241 	 *    in the span of interest. For 80+80 MHz agile spectral scan
6242 	 *    request it represents center frequency (in MHz) of the primary
6243 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
6244 	 *    channel in the primary 80 MHz span. If agile spectral scan is
6245 	 *    initiated without setting a valid frequency it returns the
6246 	 *    error code
6247 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6248 	 * u32 attribute.
6249 	 */
6250 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6251 	/* Spectral scan mode. u32 attribute.
6252 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6253 	 * If this attribute is not present, it is assumed to be
6254 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6255 	 */
6256 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6257 	/* Spectral scan error code. u32 attribute.
6258 	 * It uses values defined in enum
6259 	 * qca_wlan_vendor_spectral_scan_error_code.
6260 	 * This attribute is included only in failure scenarios.
6261 	 */
6262 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6263 	/* 8-bit unsigned value to enable/disable debug of the
6264 	 * Spectral DMA ring.
6265 	 * 1-enable, 0-disable
6266 	 */
6267 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6268 	/* 8-bit unsigned value to enable/disable debug of the
6269 	 * Spectral DMA buffers.
6270 	 * 1-enable, 0-disable
6271 	 */
6272 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
6273 	/* This specifies the frequency span over which spectral scan would be
6274 	 * carried out. Its value depends on the value of
6275 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
6276 	 * follows.
6277 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6278 	 *    Not applicable. Spectral scan would happen in the operating span.
6279 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6280 	 *    This attribute is applicable only for agile spectral scan
6281 	 *    requests in 80+80 MHz mode. It represents center frequency (in
6282 	 *    MHz) of the secondary 80 MHz span or for convenience, center
6283 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
6284 	 * u32 attribute.
6285 	 */
6286 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
6287 
6288 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6289 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6290 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6291 };
6292 
6293 /**
6294  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6295  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6296  */
6297 enum qca_wlan_vendor_attr_spectral_diag_stats {
6298 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6299 	/* Number of spectral TLV signature mismatches.
6300 	 * u64 attribute.
6301 	 */
6302 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6303 	/* Number of spectral phyerror events with insufficient length when
6304 	 * parsing for secondary 80 search FFT report. u64 attribute.
6305 	 */
6306 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6307 	/* Number of spectral phyerror events without secondary 80
6308 	 * search FFT report. u64 attribute.
6309 	 */
6310 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6311 	/* Number of spectral phyerror events with vht operation segment 1 id
6312 	 * mismatches in search fft report. u64 attribute.
6313 	 */
6314 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6315 	/* Number of spectral phyerror events with vht operation segment 2 id
6316 	 * mismatches in search fft report. u64 attribute.
6317 	 */
6318 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6319 
6320 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6321 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6322 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6323 };
6324 
6325 /**
6326  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6327  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6328  */
6329 enum qca_wlan_vendor_attr_spectral_cap {
6330 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6331 	/* Flag attribute to indicate phydiag capability */
6332 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6333 	/* Flag attribute to indicate radar detection capability */
6334 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6335 	/* Flag attribute to indicate spectral capability */
6336 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6337 	/* Flag attribute to indicate advanced spectral capability */
6338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6339 	/* Spectral hardware generation. u32 attribute.
6340 	 * It uses values defined in enum
6341 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6342 	 */
6343 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
6344 	/* Spectral bin scaling formula ID. u16 attribute.
6345 	 * It uses values defined in enum
6346 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6347 	 */
6348 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6349 	/* Spectral bin scaling param - low level offset.
6350 	 * s16 attribute.
6351 	 */
6352 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6353 	/* Spectral bin scaling param - high level offset.
6354 	 * s16 attribute.
6355 	 */
6356 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6357 	/* Spectral bin scaling param - RSSI threshold.
6358 	 * s16 attribute.
6359 	 */
6360 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6361 	/* Spectral bin scaling param - default AGC max gain.
6362 	 * u8 attribute.
6363 	 */
6364 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
6365 	/* Flag attribute to indicate agile spectral scan capability
6366 	 * for 20/40/80 MHz modes.
6367 	 */
6368 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
6369 	/* Flag attribute to indicate agile spectral scan capability
6370 	 * for 160 MHz mode.
6371 	 */
6372 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6373 	/* Flag attribute to indicate agile spectral scan capability
6374 	 * for 80+80 MHz mode.
6375 	 */
6376 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
6377 	/* Number of spectral detectors used for scan in 20 MHz.
6378 	 * u32 attribute.
6379 	 */
6380 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
6381 	/* Number of spectral detectors used for scan in 40 MHz.
6382 	 * u32 attribute.
6383 	 */
6384 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
6385 	/* Number of spectral detectors used for scan in 80 MHz.
6386 	 * u32 attribute.
6387 	 */
6388 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
6389 	/* Number of spectral detectors used for scan in 160 MHz.
6390 	 * u32 attribute.
6391 	 */
6392 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
6393 	/* Number of spectral detectors used for scan in 80+80 MHz.
6394 	 * u32 attribute.
6395 	 */
6396 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
6397 
6398 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6399 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6400 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6401 };
6402 
6403 /**
6404  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6405  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6406  */
6407 enum qca_wlan_vendor_attr_spectral_scan_status {
6408 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6409 	/* Flag attribute to indicate whether spectral scan is enabled */
6410 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6411 	/* Flag attribute to indicate whether spectral scan is in progress*/
6412 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
6413 	/* Spectral scan mode. u32 attribute.
6414 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6415 	 * If this attribute is not present, normal mode
6416 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6417 	 * requested.
6418 	 */
6419 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
6420 
6421 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6422 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6423 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6424 };
6425 
6426 /**
6427  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6428  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6429  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6430  * spectral scan request types.
6431  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6432  * set the spectral parameters and start scan.
6433  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6434  * only set the spectral parameters.
6435  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6436  * only start the spectral scan.
6437  */
6438 enum qca_wlan_vendor_attr_spectral_scan_request_type {
6439 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6440 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6441 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6442 };
6443 
6444 /**
6445  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6446  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6447  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6448  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6449  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6450  * spectral scan modes.
6451  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6452  * spectral scan in the current operating span.
6453  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6454  * spectral scan in the configured agile span.
6455  */
6456 enum qca_wlan_vendor_spectral_scan_mode {
6457 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6458 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6459 };
6460 
6461 /**
6462  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6463  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6464  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6465  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6466  * of a parameter is not supported.
6467  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6468  * mode is not supported.
6469  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6470  * has invalid value.
6471  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6472  * is not initialized.
6473  */
6474 enum qca_wlan_vendor_spectral_scan_error_code {
6475 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6476 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6477 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6478 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6479 };
6480 
6481 /**
6482  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6483  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6484  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6485  * spectral hardware generation.
6486  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6487  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6488  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6489  */
6490 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6491 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6492 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6493 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6494 };
6495 
6496 enum qca_wlan_vendor_tos {
6497 	QCA_WLAN_VENDOR_TOS_BK = 0,
6498 	QCA_WLAN_VENDOR_TOS_BE = 1,
6499 	QCA_WLAN_VENDOR_TOS_VI = 2,
6500 	QCA_WLAN_VENDOR_TOS_VO = 3,
6501 };
6502 
6503 /**
6504  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
6505  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
6506  */
6507 enum qca_wlan_vendor_attr_active_tos {
6508 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
6509 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
6510 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
6511 	/* Flag attribute representing the start (attribute included) or stop
6512 	 * (attribute not included) of the respective TOS.
6513 	 */
6514 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
6515 };
6516 
6517 enum qca_wlan_vendor_hang_reason {
6518 	/* Unspecified reason */
6519 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
6520 	/* No Map for the MAC entry for the received frame */
6521 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
6522 	/* Peer deletion timeout happened */
6523 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
6524 	/* Peer unmap timeout */
6525 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
6526 	/* Scan request timed out */
6527 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
6528 	/* Consecutive Scan attempt failures */
6529 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
6530 	/* Unable to get the message buffer */
6531 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
6532 	/* Current command processing is timedout */
6533 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
6534 	/* Timeout for an ACK from FW for suspend request */
6535 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
6536 	/* Timeout for an ACK from FW for resume request */
6537 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
6538 	/* Transmission timeout for consecutive data frames */
6539 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
6540 	/* Timeout for the TX completion status of data frame */
6541 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
6542 	/* DXE failure for TX/RX, DXE resource unavailability */
6543 	QCA_WLAN_HANG_DXE_FAILURE = 12,
6544 	/* WMI pending commands exceed the maximum count */
6545 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
6546 	/* Timeout for peer STA connection accept command's response from the
6547 	 * FW in AP mode. This command is triggered when a STA (peer) connects
6548 	 * to AP (DUT).
6549 	 */
6550 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
6551 	/* Timeout for the AP connection accept command's response from the FW
6552 	 * in STA mode. This command is triggered when the STA (DUT) connects
6553 	 * to an AP (peer).
6554 	 */
6555 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
6556 	/* Timeout waiting for the response to the MAC HW mode change command
6557 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
6558 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
6559 	 * Channel Concurrency) mode.
6560 	 */
6561 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
6562 	/* Timeout waiting for the response from FW to configure the MAC HW's
6563 	 * mode. This operation is to configure the single/two MACs in either
6564 	 * SCC/MCC/DBS mode.
6565 	 */
6566 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
6567 	/* Timeout waiting for response of VDEV start command from the FW */
6568 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
6569 	/* Timeout waiting for response of VDEV restart command from the FW */
6570 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
6571 	/* Timeout waiting for response of VDEV stop command from the FW */
6572 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
6573 	/* Timeout waiting for response of VDEV delete command from the FW */
6574 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
6575 	/* Timeout waiting for response of peer all delete request command to
6576 	 * the FW on a specific VDEV.
6577 	 */
6578 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
6579 	/* WMI sequence mismatch between WMI command and Tx completion */
6580 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
6581 	/* Write to Device HAL register failed */
6582 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
6583 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
6584 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
6585 	/* Bus failure */
6586 	QCA_WLAN_HANG_BUS_FAILURE = 26,
6587 	/* tasklet/credit latency found */
6588 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
6589 };
6590 
6591 /**
6592  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
6593  * QCA_NL80211_VENDOR_SUBCMD_HANG.
6594  */
6595 enum qca_wlan_vendor_attr_hang {
6596 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
6597 	/* Reason for the hang - u32 attribute with a value from enum
6598 	 * qca_wlan_vendor_hang_reason.
6599 	 */
6600 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
6601 	/* The binary blob data associated with the hang reason specified by
6602 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
6603 	 * contain the required dump to analyze the reason for the hang.
6604 	 * NLA_BINARY attribute, the max size is 1024 bytes.
6605 	 */
6606 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
6607 
6608 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
6609 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
6610 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
6611 };
6612 
6613 /**
6614  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
6615  * flushing pending traffic in firmware.
6616  *
6617  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
6618  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
6619  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
6620  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
6621  * flush packets with access category.
6622  */
6623 enum qca_wlan_vendor_attr_flush_pending {
6624 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
6625 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
6626 	QCA_WLAN_VENDOR_ATTR_AC = 2,
6627 
6628 	/* keep last */
6629 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
6630 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
6631 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
6632 };
6633 
6634 /**
6635  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6636  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6637  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6638  * Spectral bin scaling formula ID.
6639  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6640  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6641  * and RSSI threshold based formula.
6642  */
6643 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6644 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6645 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6646 };
6647 
6648 /**
6649  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6650  * RF Operating Parameter (RROP) information is available, and if so, at which
6651  * point in the application-driver interaction sequence it can be retrieved by
6652  * the application from the driver. This point may vary by architecture and
6653  * other factors. This is a u16 value.
6654  */
6655 enum qca_wlan_vendor_attr_rropavail_info {
6656 	/* RROP information is unavailable. */
6657 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6658 	/* RROP information is available and the application can retrieve the
6659 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6660 	 * event from the driver.
6661 	 */
6662 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6663 	/* RROP information is available only after a vendor specific scan
6664 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6665 	 * successfully completed. The application can retrieve the information
6666 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6667 	 * the driver.
6668 	 */
6669 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6670 };
6671 
6672 /**
6673  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6674  * Representative RF Operating Parameter (RROP) information. It is sent for the
6675  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6676  * intended for use by external Auto Channel Selection applications. It provides
6677  * guidance values for some RF parameters that are used by the system during
6678  * operation. These values could vary by channel, band, radio, and so on.
6679  */
6680 enum qca_wlan_vendor_attr_rrop_info {
6681 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6682 
6683 	/* Representative Tx Power List (RTPL) which has an array of nested
6684 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6685 	 */
6686 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6687 
6688 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6689 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6690 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6691 };
6692 
6693 /**
6694  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6695  * entry instances in the Representative Tx Power List (RTPL). It provides
6696  * simplified power values intended for helping external Auto channel Selection
6697  * applications compare potential Tx power performance between channels, other
6698  * operating conditions remaining identical. These values are not necessarily
6699  * the actual Tx power values that will be used by the system. They are also not
6700  * necessarily the max or average values that will be used. Instead, they are
6701  * relative, summarized keys for algorithmic use computed by the driver or
6702  * underlying firmware considering a number of vendor specific factors.
6703  */
6704 enum qca_wlan_vendor_attr_rtplinst {
6705 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6706 
6707 	/* Primary channel number (u8).
6708 	 * Note: If both the driver and user space application support the
6709 	 * 6 GHz band, this attribute is deprecated and
6710 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
6711 	 * maintain backward compatibility,
6712 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
6713 	 * driver or user space application or both do not support the 6 GHz
6714 	 * band.
6715 	 */
6716 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
6717 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
6718 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
6719 	/* Representative Tx power in dBm (s32) with emphasis on range. */
6720 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
6721 	/* Primary channel center frequency (u32) in MHz */
6722 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
6723 
6724 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
6725 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
6726 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
6727 };
6728 
6729 /**
6730  * enum qca_wlan_vendor_attr_config_latency_level - Level for
6731  * wlan latency module.
6732  *
6733  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
6734  * power saving which would causing data exchange out of service, this
6735  * would be a big impact on latency. For latency sensitive applications over
6736  * Wi-Fi are intolerant to such operations and thus would configure them
6737  * to meet their respective needs. It is well understood by such applications
6738  * that altering the default behavior would degrade the Wi-Fi functionality
6739  * w.r.t the above pointed WLAN operations.
6740  *
6741  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
6742  *	Default WLAN operation level which throughput orientated.
6743  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
6744  *	Use moderate level to improve latency by limit scan duration.
6745  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
6746  *	Use low latency level to benifit application like concurrent
6747  *	downloading or video streaming via constraint scan/adaptive PS.
6748  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
6749  *	Use ultra low latency level to benefit for gaming/voice
6750  *	application via constraint scan/roaming/adaptive PS.
6751  */
6752 enum qca_wlan_vendor_attr_config_latency_level {
6753 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
6754 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
6755 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
6756 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
6757 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
6758 
6759 	/* keep last */
6760 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
6761 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
6762 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
6763 };
6764 
6765 /**
6766  * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
6767  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6768  */
6769 enum qca_wlan_vendor_attr_mac {
6770 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
6771 
6772 	/* MAC mode info list which has an array of nested values as
6773 	 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
6774 	 */
6775 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
6776 
6777 	/* keep last */
6778 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
6779 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
6780 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
6781 };
6782 
6783 /**
6784  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
6785  *	Wi-Fi netdev interface on a respective MAC.
6786  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
6787  */
6788 enum qca_wlan_vendor_attr_mac_iface_info {
6789 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
6790 	/* Wi-Fi netdev's interface index (u32) */
6791 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
6792 	/* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
6793 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
6794 
6795 	/* keep last */
6796 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
6797 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
6798 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
6799 };
6800 
6801 /**
6802  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
6803  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
6804  *	vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6805  */
6806 enum qca_wlan_vendor_attr_mac_info {
6807 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
6808 	/* Hardware MAC ID associated for the MAC (u32) */
6809 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
6810 	/* Band supported by the MAC at a given point.
6811 	 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
6812 	 * nl80211_band.
6813 	 */
6814 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
6815 	/* Refers to list of WLAN netdev interfaces associated with this MAC.
6816 	 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
6817 	 */
6818 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
6819 
6820 	/* keep last */
6821 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
6822 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
6823 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
6824 };
6825 
6826 /**
6827  * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
6828  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
6829  */
6830 enum qca_wlan_vendor_attr_get_logger_features {
6831 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
6832 	/* Unsigned 32-bit enum value of wifi_logger_supported_features */
6833 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
6834 	/* keep last */
6835 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
6836 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
6837 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
6838 };
6839 
6840 /**
6841  * enum wifi_logger_supported_features - Values for supported logger features
6842  */
6843 enum wifi_logger_supported_features {
6844 	WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
6845 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
6846 	WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
6847 	WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
6848 	WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
6849 	WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
6850 	WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
6851 	WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
6852 	WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
6853 };
6854 
6855 /**
6856  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
6857  * capabilities features
6858  */
6859 enum qca_wlan_tdls_caps_features_supported {
6860 	WIFI_TDLS_SUPPORT = (1 << (0)),
6861 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
6862 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
6863 };
6864 
6865 /**
6866  * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
6867  * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
6868  */
6869 enum qca_wlan_vendor_attr_tdls_get_capabilities {
6870 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
6871 	/* Indicates the max concurrent sessions */
6872 	/* Unsigned 32-bit value */
6873 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
6874 	/* Indicates the support for features */
6875 	/* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
6876 	 */
6877 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
6878 
6879 	/* keep last */
6880 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
6881 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
6882 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
6883 };
6884 
6885 /**
6886  * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
6887  * command used as value for the attribute
6888  * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
6889  */
6890 enum qca_wlan_offloaded_packets_sending_control {
6891 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
6892 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
6893 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
6894 };
6895 
6896 /**
6897  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
6898  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
6899  */
6900 enum qca_wlan_vendor_attr_offloaded_packets {
6901 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
6902 	/* Takes valid value from the enum
6903 	 * qca_wlan_offloaded_packets_sending_control
6904 	 * Unsigned 32-bit value
6905 	 */
6906 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
6907 	/* Unsigned 32-bit value */
6908 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
6909 	/* array of u8 len: Max packet size */
6910 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
6911 	/* 6-byte MAC address used to represent source MAC address */
6912 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
6913 	/* 6-byte MAC address used to represent destination MAC address */
6914 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
6915 	/* Unsigned 32-bit value, in milli seconds */
6916 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
6917 	/* This optional unsigned 16-bit attribute is used for specifying
6918 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
6919 	 */
6920 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
6921 
6922 	/* keep last */
6923 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
6924 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
6925 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
6926 };
6927 
6928 /**
6929  * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
6930  * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
6931  */
6932 enum qca_wlan_rssi_monitoring_control {
6933 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
6934 	QCA_WLAN_RSSI_MONITORING_START,
6935 	QCA_WLAN_RSSI_MONITORING_STOP,
6936 };
6937 
6938 /**
6939  * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
6940  * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
6941  */
6942 enum qca_wlan_vendor_attr_rssi_monitoring {
6943 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
6944 	/* Takes valid value from the enum
6945 	 * qca_wlan_rssi_monitoring_control
6946 	 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
6947 	 */
6948 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
6949 	/* Unsigned 32-bit value */
6950 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
6951 	/* Signed 8-bit value in dBm */
6952 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
6953 	/* Signed 8-bit value in dBm */
6954 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
6955 	/* attributes to be used/received in callback */
6956 	/* 6-byte MAC address used to represent current BSSID MAC address */
6957 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
6958 	/* Signed 8-bit value indicating the current RSSI */
6959 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
6960 	/* keep last */
6961 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
6962 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
6963 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
6964 };
6965 
6966 /**
6967  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
6968  * QCA_NL80211_VENDOR_SUBCMD_NDP.
6969  */
6970 enum qca_wlan_vendor_attr_ndp_params {
6971 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6972 	/* Unsigned 32-bit value
6973 	 * enum of sub commands values in qca_wlan_ndp_sub_cmd
6974 	 */
6975 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
6976 	/* Unsigned 16-bit value */
6977 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
6978 	/* NL attributes for data used NDP SUB cmds */
6979 	/* Unsigned 32-bit value indicating a service info */
6980 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
6981 	/* Unsigned 32-bit value; channel frequency in MHz */
6982 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
6983 	/* Interface Discovery MAC address. An array of 6 Unsigned int8 */
6984 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
6985 	/* Interface name on which NDP is being created */
6986 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
6987 	/* Unsigned 32-bit value for security */
6988 	/* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
6989 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
6990 	/* Unsigned 32-bit value for QoS */
6991 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
6992 	/* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
6993 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
6994 	/* Unsigned 32-bit value for NDP instance Id */
6995 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
6996 	/* Array of instance Ids */
6997 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
6998 	/* Unsigned 32-bit value for initiator/responder NDP response code
6999 	 * accept/reject
7000 	 */
7001 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
7002 	/* NDI MAC address. An array of 6 Unsigned int8 */
7003 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
7004 	/* Unsigned 32-bit value errors types returned by driver
7005 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7006 	 * NanStatusType includes these values.
7007 	 */
7008 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
7009 	/* Unsigned 32-bit value error values returned by driver
7010 	 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
7011 	 * NanInternalStatusType includes these values.
7012 	 */
7013 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
7014 	/* Unsigned 32-bit value for Channel setup configuration
7015 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
7016 	 * NanDataPathChannelCfg includes these values.
7017 	 */
7018 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
7019 	/* Unsigned 32-bit value for Cipher Suite Shared Key Type */
7020 	QCA_WLAN_VENDOR_ATTR_NDP_CSID,
7021 	/* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
7022 	QCA_WLAN_VENDOR_ATTR_NDP_PMK,
7023 	/* Security Context Identifier that contains the PMKID
7024 	 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
7025 	 */
7026 	QCA_WLAN_VENDOR_ATTR_NDP_SCID,
7027 	/* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
7028 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
7029 	/* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
7030 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
7031 	/* Unsigned 32-bit bitmap indicating schedule update
7032 	 * BIT_0: NSS Update
7033 	 * BIT_1: Channel list update
7034 	 */
7035 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
7036 	/* Unsigned 32-bit value for NSS */
7037 	QCA_WLAN_VENDOR_ATTR_NDP_NSS,
7038 	/* Unsigned 32-bit value for NUMBER NDP CHANNEL */
7039 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
7040 	/* Unsigned 32-bit value for CHANNEL BANDWIDTH
7041 	 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
7042 	 */
7043 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
7044 	/* Array of channel/band width */
7045 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
7046 	/* IPv6 address used by NDP (in network byte order), 16 bytes array.
7047 	 * This attribute is used and optional for ndp request, ndp response,
7048 	 * ndp indication, and ndp confirm.
7049 	 */
7050 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
7051 	/* Unsigned 16-bit value indicating transport port used by NDP.
7052 	 * This attribute is used and optional for ndp response, ndp indication,
7053 	 * and ndp confirm.
7054 	 */
7055 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
7056 	/* Unsigned 8-bit value indicating protocol used by NDP and assigned by
7057 	 * the Internet Assigned Numbers Authority (IANA) as per:
7058 	 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
7059 	 * This attribute is used and optional for ndp response, ndp indication,
7060 	 * and ndp confirm.
7061 	 */
7062 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
7063 	/* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
7064 	 * 1:support 0:not support
7065 	 */
7066 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
7067 
7068 	/* keep last */
7069 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
7070 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
7071 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
7072 };
7073 
7074 enum qca_wlan_ndp_sub_cmd {
7075 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
7076 	/* Command to create a NAN data path interface */
7077 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
7078 	/* Command to delete a NAN data path interface */
7079 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
7080 	/* Command to initiate a NAN data path session */
7081 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
7082 	/* Command to notify if the NAN data path session was sent */
7083 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
7084 	/* Command to respond to NAN data path session */
7085 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
7086 	/* Command to notify on the responder about the response */
7087 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
7088 	/* Command to initiate a NAN data path end */
7089 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
7090 	/* Command to notify the if end request was sent */
7091 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
7092 	/* Command to notify the peer about the end request */
7093 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
7094 	/* Command to confirm the NAN data path session is complete */
7095 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
7096 	/* Command to indicate the peer about the end request being received */
7097 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
7098 	/* Command to indicate the peer of schedule update */
7099 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
7100 };
7101 
7102 /**
7103  * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
7104  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
7105  */
7106 enum qca_wlan_vendor_attr_nd_offload {
7107 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
7108 	/* Flag to set Neighbour Discovery offload */
7109 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
7110 	/* Keep last */
7111 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
7112 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
7113 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
7114 };
7115 
7116 /**
7117  * enum packet_filter_sub_cmd - Packet filter sub commands
7118  */
7119 enum packet_filter_sub_cmd {
7120 	/**
7121 	 * Write packet filter program and/or data. The driver/firmware should
7122 	 * disable APF before writing into local buffer and re-enable APF after
7123 	 * writing is done.
7124 	 */
7125 	QCA_WLAN_SET_PACKET_FILTER = 1,
7126 	/* Get packet filter feature capabilities from driver */
7127 	QCA_WLAN_GET_PACKET_FILTER = 2,
7128 	/**
7129 	 * Write packet filter program and/or data. User space will send the
7130 	 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
7131 	 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
7132 	 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
7133 	 * enable/disable is given to user space with this command. Also,
7134 	 * user space sends the length of program portion in the buffer within
7135 	 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
7136 	 */
7137 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
7138 	/* Read packet filter program and/or data */
7139 	QCA_WLAN_READ_PACKET_FILTER = 4,
7140 	/* Enable APF feature */
7141 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
7142 	/* Disable APF feature */
7143 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
7144 };
7145 
7146 /**
7147  * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
7148  * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
7149  */
7150 enum qca_wlan_vendor_attr_packet_filter {
7151 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
7152 	/* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
7153 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
7154 	/* Unsigned 32-bit value indicating the packet filter version */
7155 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
7156 	/* Unsigned 32-bit value indicating the packet filter id */
7157 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
7158 	/**
7159 	 * Unsigned 32-bit value indicating the packet filter size including
7160 	 * program + data.
7161 	 */
7162 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
7163 	/* Unsigned 32-bit value indicating the packet filter current offset */
7164 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
7165 	/* Program and/or data in bytes */
7166 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
7167 	/* Unsigned 32-bit value of the length of the program section in packet
7168 	 * filter buffer.
7169 	 */
7170 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
7171 
7172 	/* keep last */
7173 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
7174 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
7175 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
7176 };
7177 
7178 /**
7179  * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
7180  * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
7181  */
7182 enum qca_wlan_vendor_drv_info {
7183 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7184 	/* Maximum Message size info between firmware & HOST
7185 	 * Unsigned 32-bit value
7186 	 */
7187 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7188 	/* keep last */
7189 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7190 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7191 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7192 };
7193 
7194 /**
7195  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
7196  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
7197  */
7198 enum qca_wlan_vendor_attr_wake_stats {
7199 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
7200 	/* Unsigned 32-bit value indicating the total count of wake event */
7201 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
7202 	/* Array of individual wake count, each index representing wake reason
7203 	 */
7204 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
7205 	/* Unsigned 32-bit value representing wake count array */
7206 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
7207 	/* Unsigned 32-bit total wake count value of driver/fw */
7208 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
7209 	/* Array of wake stats of driver/fw */
7210 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
7211 	/* Unsigned 32-bit total wake count value of driver/fw */
7212 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
7213 	/* Unsigned 32-bit total wake count value of packets received */
7214 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
7215 	/* Unsigned 32-bit wake count value unicast packets received */
7216 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
7217 	/* Unsigned 32-bit wake count value multicast packets received */
7218 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
7219 	/* Unsigned 32-bit wake count value broadcast packets received */
7220 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
7221 	/* Unsigned 32-bit wake count value of ICMP packets */
7222 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
7223 	/* Unsigned 32-bit wake count value of ICMP6 packets */
7224 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
7225 	/* Unsigned 32-bit value ICMP6 router advertisement */
7226 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
7227 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
7228 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
7229 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
7230 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
7231 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
7232 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
7233 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
7234 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
7235 	/* Unsigned 32-bit wake count value of receive side multicast */
7236 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
7237 	/* Unsigned 32-bit wake count value of a given RSSI breach */
7238 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
7239 	/* Unsigned 32-bit wake count value of low RSSI */
7240 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
7241 	/* Unsigned 32-bit value GSCAN count */
7242 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
7243 	/* Unsigned 32-bit value PNO complete count */
7244 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
7245 	/* Unsigned 32-bit value PNO match count */
7246 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
7247 	/* keep last */
7248 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
7249 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
7250 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
7251 };
7252 
7253 /**
7254  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
7255  * configured by userspace to the driver/firmware.
7256  * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
7257  * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
7258  * The driver/firmware takes actions requested by userspace such as throttling
7259  * wifi TX etc. in order to mitigate high temperature.
7260  *
7261  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
7262  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
7263  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
7264  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
7265  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
7266  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
7267  */
7268 enum qca_wlan_vendor_thermal_level {
7269 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
7270 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
7271 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
7272 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
7273 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
7274 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
7275 };
7276 
7277 /**
7278  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
7279  * cmd value. Used for NL attributes for data used by
7280  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7281  */
7282 enum qca_wlan_vendor_attr_thermal_cmd {
7283 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
7284 	/* The value of command, driver will implement different operations
7285 	 * according to this value. It uses values defined in
7286 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
7287 	 * u32 attribute.
7288 	 */
7289 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
7290 	/* Userspace uses this attribute to configure thermal level to the
7291 	 * driver/firmware, or get thermal level from the driver/firmware.
7292 	 * Used in request or response, u32 attribute,
7293 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
7294 	 */
7295 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
7296 	/* Userspace uses this attribute to configure the time in which the
7297 	 * driver/firmware should complete applying settings it received from
7298 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
7299 	 * command type. Used in request, u32 attribute, value is in
7300 	 * milliseconds. A value of zero indicates to apply the settings
7301 	 * immediately. The driver/firmware can delay applying the configured
7302 	 * thermal settings within the time specified in this attribute if
7303 	 * there is any critical ongoing operation.
7304 	 */
7305 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
7306 
7307 	/* keep last */
7308 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
7309 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
7310 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
7311 };
7312 
7313 /**
7314  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
7315  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
7316  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
7317  * thermal command types sent to driver.
7318  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
7319  * get thermal shutdown configuration parameters for display. Parameters
7320  * responded from driver are defined in
7321  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
7322  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
7323  * get temperature. Host should respond with a temperature data. It is defined
7324  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
7325  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
7326  * suspend action.
7327  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
7328  * resume action.
7329  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
7330  * the driver/firmware.
7331  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
7332  * thermal level from the driver/firmware. The driver should respond with a
7333  * thermal level defined in enum qca_wlan_vendor_thermal_level.
7334  */
7335 enum qca_wlan_vendor_attr_thermal_cmd_type {
7336 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
7337 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
7338 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
7339 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
7340 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
7341 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
7342 };
7343 
7344 /**
7345  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
7346  * to get chip temperature by user.
7347  * enum values are used for NL attributes for data used by
7348  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
7349  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7350  */
7351 enum qca_wlan_vendor_attr_thermal_get_temperature {
7352 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
7353 	/* Temperature value (degree Celsius) from driver.
7354 	 * u32 attribute.
7355 	 */
7356 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
7357 
7358 	/* keep last */
7359 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
7360 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
7361 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
7362 };
7363 
7364 /**
7365  * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
7366  * to get configuration parameters of thermal shutdown feature. Enum values are
7367  * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
7368  * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
7369  */
7370 enum qca_wlan_vendor_attr_get_thermal_params_rsp {
7371 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
7372 	/* Indicate if the thermal shutdown feature is enabled.
7373 	 * NLA_FLAG attribute.
7374 	 */
7375 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
7376 	/* Indicate if the auto mode is enabled.
7377 	 * Enable: Driver triggers the suspend/resume action.
7378 	 * Disable: User space triggers the suspend/resume action.
7379 	 * NLA_FLAG attribute.
7380 	 */
7381 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
7382 	/* Thermal resume threshold (degree Celsius). Issue the resume command
7383 	 * if the temperature value is lower than this threshold.
7384 	 * u16 attribute.
7385 	 */
7386 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
7387 	/* Thermal warning threshold (degree Celsius). FW reports temperature
7388 	 * to driver if it's higher than this threshold.
7389 	 * u16 attribute.
7390 	 */
7391 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
7392 	/* Thermal suspend threshold (degree Celsius). Issue the suspend command
7393 	 * if the temperature value is higher than this threshold.
7394 	 * u16 attribute.
7395 	 */
7396 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
7397 	/* FW reports temperature data periodically at this interval (ms).
7398 	 * u16 attribute.
7399 	 */
7400 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
7401 
7402 	/* keep last */
7403 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
7404 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
7405 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
7406 };
7407 
7408 /**
7409  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
7410  * report thermal events from driver to user space.
7411  * enum values are used for NL attributes for data used by
7412  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
7413  */
7414 enum qca_wlan_vendor_attr_thermal_event {
7415 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
7416 	/* Temperature value (degree Celsius) from driver.
7417 	 * u32 attribute.
7418 	 */
7419 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
7420 	/* Indication of resume completion from power save mode.
7421 	 * NLA_FLAG attribute.
7422 	 */
7423 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
7424 	/* Thermal level from the driver.
7425 	 * u32 attribute. Possible values are defined in
7426 	 * enum qca_wlan_vendor_thermal_level.
7427 	 */
7428 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
7429 
7430 	/* keep last */
7431 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
7432 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
7433 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
7434 };
7435 
7436 /**
7437  * enum he_fragmentation_val - HE fragmentation support values
7438  * Indicates level of dynamic fragmentation that is supported by
7439  * a STA as a recipient.
7440  * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
7441  * (HE MAC Capabilities Information field) and are used in HE Capabilities
7442  * element to advertise the support. These values are validated in the driver
7443  * to check the device capability and advertised in the HE Capabilities
7444  * element. These values are used to configure testbed device to allow the
7445  * advertised hardware capabilities to be downgraded for testing purposes.
7446  *
7447  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
7448  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
7449  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
7450  *	within an A-MPDU that is not an S-MPDU.
7451  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
7452  *	contained within an MPDU or S-MPDU and support for up to one dynamic
7453  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
7454  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
7455  *	MPDU or S-MPDU.
7456  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
7457  *	contained within an MPDU or S-MPDU and support for multiple dynamic
7458  *	fragments for each MSDU and for each A-MSDU if supported by the
7459  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
7460  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
7461  */
7462 enum he_fragmentation_val {
7463 	HE_FRAG_DISABLE,
7464 	HE_FRAG_LEVEL1,
7465 	HE_FRAG_LEVEL2,
7466 	HE_FRAG_LEVEL3,
7467 };
7468 
7469 /**
7470  * enum he_mcs_config - HE MCS support configuration
7471  *
7472  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
7473  * These values are used in driver to configure the HE MCS map to advertise
7474  * Tx/Rx MCS map in HE capability and these values are applied for all the
7475  * streams supported by the device. To configure MCS for different bandwidths,
7476  * vendor command needs to be sent using this attribute with appropriate value.
7477  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
7478  * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
7479  * send this command using HE MCS config attribute with value HE_160_MCS0_11.
7480  * These values are used to configure testbed device to allow the advertised
7481  * hardware capabilities to be downgraded for testing purposes. The enum values
7482  * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
7483  * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
7484  * These values are validated in the driver before setting the MCS map and
7485  * driver returns error if the input is other than these enum values.
7486  *
7487  * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
7488  * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
7489  * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
7490  * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
7491  * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
7492  * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
7493  * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
7494  * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
7495  * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
7496  */
7497 enum he_mcs_config {
7498 	HE_80_MCS0_7 = 0,
7499 	HE_80_MCS0_9 = 1,
7500 	HE_80_MCS0_11 = 2,
7501 	HE_160_MCS0_7 = 4,
7502 	HE_160_MCS0_9 = 5,
7503 	HE_160_MCS0_11 = 6,
7504 	HE_80P80_MCS0_7 = 8,
7505 	HE_80P80_MCS0_9 = 9,
7506 	HE_80P80_MCS0_11 = 10,
7507 };
7508 
7509 /**
7510  * enum qca_wlan_ba_session_config - BA session configuration
7511  *
7512  * Indicates the configuration values for BA session configuration attribute.
7513  *
7514  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
7515  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
7516  */
7517 enum qca_wlan_ba_session_config {
7518 	QCA_WLAN_ADD_BA = 1,
7519 	QCA_WLAN_DELETE_BA = 2,
7520 };
7521 
7522 /**
7523  * enum qca_wlan_ac_type - Access category type
7524  *
7525  * Indicates the access category type value.
7526  *
7527  * @QCA_WLAN_AC_BE: BE access category
7528  * @QCA_WLAN_AC_BK: BK access category
7529  * @QCA_WLAN_AC_VI: VI access category
7530  * @QCA_WLAN_AC_VO: VO access category
7531  * @QCA_WLAN_AC_ALL: All ACs
7532  */
7533 enum qca_wlan_ac_type {
7534 	QCA_WLAN_AC_BE = 0,
7535 	QCA_WLAN_AC_BK = 1,
7536 	QCA_WLAN_AC_VI = 2,
7537 	QCA_WLAN_AC_VO = 3,
7538 	QCA_WLAN_AC_ALL = 4,
7539 };
7540 
7541 /**
7542  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
7543  *
7544  * Indicates the HE LTF configuration value.
7545  *
7546  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
7547  * based on the GI setting
7548  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7549  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7550  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7551  */
7552 enum qca_wlan_he_ltf_cfg {
7553 	QCA_WLAN_HE_LTF_AUTO = 0,
7554 	QCA_WLAN_HE_LTF_1X = 1,
7555 	QCA_WLAN_HE_LTF_2X = 2,
7556 	QCA_WLAN_HE_LTF_4X = 3,
7557 };
7558 
7559 /**
7560  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7561  *
7562  * Indicates the HE trigger frame MAC padding duration value.
7563  *
7564  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7565  * process the trigger frame.
7566  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7567  * trigger frame.
7568  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7569  * trigger frame.
7570  */
7571 enum qca_wlan_he_mac_padding_dur {
7572 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7573 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7574 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7575 };
7576 
7577 /**
7578  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7579  *
7580  * Indicates the HE Operating mode control channel width setting value.
7581  *
7582  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7583  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7584  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7585  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7586  */
7587 enum qca_wlan_he_om_ctrl_ch_bw {
7588 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7589 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7590 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7591 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7592 };
7593 
7594 /**
7595  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
7596  *
7597  * Indicates the frame types to use for keep alive data.
7598  *
7599  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
7600  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
7601  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
7602  */
7603 enum qca_wlan_keep_alive_data_type {
7604 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
7605 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
7606 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
7607 };
7608 
7609 /**
7610  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7611  * HE operating mode control transmit request. These attributes are
7612  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7613  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7614  *
7615  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7616  * indicates the maximum number of spatial streams, NSS, that the STA
7617  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7618  * and is set to NSS - 1.
7619  *
7620  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7621  * indicates the operating channel width supported by the STA for both
7622  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7623  *
7624  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7625  * indicates the all trigger based UL MU operations by the STA.
7626  * 0 - UL MU operations are enabled by the STA.
7627  * 1 - All triggered UL MU transmissions are suspended by the STA.
7628  *
7629  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7630  * indicates the maximum number of space-time streams, NSTS, that
7631  * the STA supports in transmission and is set to NSTS - 1.
7632  *
7633  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7634  * combined with the UL MU Disable subfield and the recipient's setting
7635  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7636  * capabilities to determine which HE TB PPDUs are possible by the
7637  * STA to transmit.
7638  * 0 - UL MU data operations are enabled by the STA.
7639  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7640  * bit is not set, else UL MU Tx is suspended.
7641  *
7642  */
7643 enum qca_wlan_vendor_attr_he_omi_tx {
7644 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7645 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7646 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7647 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7648 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
7649 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
7650 
7651 	/* keep last */
7652 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7653 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7654 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7655 };
7656 
7657  /**
7658   * enum qca_wlan_vendor_phy_mode - Different PHY modes
7659   * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
7660   *
7661   * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
7662   * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
7663   * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
7664   * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
7665   * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
7666   * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
7667   * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
7668   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
7669   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
7670   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
7671   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
7672   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
7673   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
7674   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
7675   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
7676   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
7677   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
7678   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
7679   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
7680   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
7681   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
7682   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
7683   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
7684   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
7685   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
7686   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
7687   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
7688   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
7689   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
7690   */
7691 enum qca_wlan_vendor_phy_mode {
7692 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
7693 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
7694 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
7695 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
7696 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
7697 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
7698 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
7699 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
7700 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
7701 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
7702 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
7703 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
7704 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
7705 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
7706 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
7707 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
7708 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
7709 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
7710 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
7711 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
7712 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
7713 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
7714 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
7715 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
7716 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
7717 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
7718 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
7719 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
7720 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
7721 };
7722 
7723 /* Attributes for data used by
7724  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
7725  */
7726 enum qca_wlan_vendor_attr_wifi_test_config {
7727 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
7728 	/* 8-bit unsigned value to configure the driver to enable/disable
7729 	 * WMM feature. This attribute is used to configure testbed device.
7730 	 * 1-enable, 0-disable
7731 	 */
7732 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
7733 
7734 	/* 8-bit unsigned value to configure the driver to accept/reject
7735 	 * the addba request from peer. This attribute is used to configure
7736 	 * the testbed device.
7737 	 * 1-accept addba, 0-reject addba
7738 	 */
7739 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
7740 
7741 	/* 8-bit unsigned value to configure the driver to send or not to
7742 	 * send the addba request to peer.
7743 	 * This attribute is used to configure the testbed device.
7744 	 * 1-send addba, 0-do not send addba
7745 	 */
7746 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
7747 
7748 	/* 8-bit unsigned value to indicate the HE fragmentation support.
7749 	 * Uses enum he_fragmentation_val values.
7750 	 * This attribute is used to configure the testbed device to
7751 	 * allow the advertised hardware capabilities to be downgraded
7752 	 * for testing purposes.
7753 	 */
7754 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
7755 
7756 	/* 8-bit unsigned value to indicate the HE MCS support.
7757 	 * Uses enum he_mcs_config values.
7758 	 * This attribute is used to configure the testbed device to
7759 	 * allow the advertised hardware capabilities to be downgraded
7760 	 * for testing purposes.
7761 	 */
7762 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
7763 
7764 	/* 8-bit unsigned value to configure the driver to allow or not to
7765 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
7766 	 * This attribute is used to configure the testbed device.
7767 	 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
7768 	 */
7769 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
7770 
7771 	/* 8-bit unsigned value to configure the driver to add a
7772 	 * new BA session or delete the existing BA session for
7773 	 * given TID. ADDBA command uses the buffer size and TID
7774 	 * configuration if user specifies the values else default
7775 	 * value for buffer size is used for all TIDs if the TID
7776 	 * also not specified. For DEL_BA command TID value is
7777 	 * required to process the command.
7778 	 * Uses enum qca_wlan_ba_session_config values.
7779 	 * This attribute is used to configure the testbed device.
7780 	 */
7781 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
7782 
7783 	/* 16-bit unsigned value to configure the buffer size in addba
7784 	 * request and response frames.
7785 	 * This attribute is used to configure the testbed device.
7786 	 * The range of the value is 0 to 256.
7787 	 */
7788 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
7789 
7790 	/* 8-bit unsigned value to configure the buffer size in addba
7791 	 * request and response frames.
7792 	 * This attribute is used to configure the testbed device.
7793 	 */
7794 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
7795 
7796 	/* 8-bit unsigned value to configure the no ack policy.
7797 	 * To configure no ack policy, access category value is
7798 	 * required to process the command.
7799 	 * This attribute is used to configure the testbed device.
7800 	 * 1 - enable no ack, 0 - disable no ack.
7801 	 */
7802 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
7803 
7804 	/* 8-bit unsigned value to configure the AC for no ack policy
7805 	 * This attribute is used to configure the testbed device.
7806 	 * Uses the enum qca_wlan_ac_type values.
7807 	 */
7808 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
7809 
7810 	/* 8-bit unsigned value to configure the HE LTF
7811 	 * This attribute is used to configure the testbed device.
7812 	 * Uses the enum qca_wlan_he_ltf_cfg values.
7813 	 */
7814 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
7815 
7816 	/* 8-bit unsigned value to configure the tx beamformee.
7817 	 * This attribute is used to configure the testbed device.
7818 	 * 1-enable, 0-disable.
7819 	 */
7820 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
7821 
7822 	/* 8-bit unsigned value to configure the tx beamformee number
7823 	 * of space-time streams.
7824 	 * This attribute is used to configure the testbed device.
7825 	 * The range of the value is 0 to 8.
7826 	 */
7827 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
7828 
7829 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
7830 	 * This attribute is used to configure the testbed device.
7831 	 * Uses the enum qca_wlan_ac_type values.
7832 	 */
7833 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
7834 
7835 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
7836 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
7837 	 * is required to process the command.
7838 	 * This attribute is used to configure the testbed device.
7839 	 */
7840 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
7841 
7842 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
7843 	 * given AC.
7844 	 * To configure MU EDCA ECW min value, MU EDCA access category value
7845 	 * is required to process the command.
7846 	 * This attribute is used to configure the testbed device.
7847 	 */
7848 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
7849 
7850 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
7851 	 * given AC.
7852 	 * To configure MU EDCA ECW max value, MU EDCA access category value
7853 	 * is required to process the command.
7854 	 * This attribute is used to configure the testbed device.
7855 	 */
7856 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
7857 
7858 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
7859 	 * To configure MU EDCA timer value, MU EDCA access category value
7860 	 * is required to process the command.
7861 	 * This attribute is used to configure the testbed device.
7862 	 */
7863 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
7864 
7865 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
7866 	 * duration.
7867 	 * This attribute is used to configure the testbed device.
7868 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
7869 	 */
7870 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
7871 
7872 	/* 8-bit unsigned value to override the MU EDCA params to defaults
7873 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
7874 	 * the default values else use the MU EDCA params from AP beacon.
7875 	 * This attribute is used to configure the testbed device.
7876 	 * 1-enable, 0-disable.
7877 	 */
7878 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
7879 
7880 	/* 8-bit unsigned value to configure the support for receiving
7881 	 * an MPDU that contains an operating mode control subfield.
7882 	 * This attribute is used to configure the testbed device.
7883 	 * 1-enable, 0-disable.
7884 	 */
7885 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
7886 
7887 	/* Nested attribute values required to setup the TWT session.
7888 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
7889 	 * information to set up the session. It contains broadcast flags,
7890 	 * set_up flags, trigger value, flow type, flow ID, wake interval
7891 	 * exponent, protection, target wake time, wake duration, wake interval
7892 	 * mantissa. These nested attributes are used to setup a host triggered
7893 	 * TWT session.
7894 	 */
7895 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
7896 
7897 	/* This nested attribute is used to terminate the current TWT session.
7898 	 * It does not currently carry any attributes.
7899 	 */
7900 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
7901 
7902 	/* This nested attribute is used to suspend the current TWT session.
7903 	 * It does not currently carry any attributes.
7904 	 */
7905 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
7906 
7907 	/* Nested attribute values to indicate the request for resume.
7908 	 * This attribute is used to resume the TWT session.
7909 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
7910 	 * parameters required to resume the TWT session.
7911 	 */
7912 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
7913 
7914 	/* 8-bit unsigned value to set the HE operating mode control
7915 	 * (OM CTRL) Channel Width subfield.
7916 	 * The Channel Width subfield indicates the operating channel width
7917 	 * supported by the STA for both reception and transmission.
7918 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
7919 	 * This setting is cleared with the
7920 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7921 	 * flag attribute to reset defaults.
7922 	 * This attribute is used to configure the testbed device.
7923 	 */
7924 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
7925 
7926 	/* 8-bit unsigned value to configure the number of spatial
7927 	 * streams in HE operating mode control field.
7928 	 * This setting is cleared with the
7929 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7930 	 * flag attribute to reset defaults.
7931 	 * This attribute is used to configure the testbed device.
7932 	 */
7933 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
7934 
7935 	/* Flag attribute to configure the UL MU disable bit in
7936 	 * HE operating mode control field.
7937 	 * This setting is cleared with the
7938 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7939 	 * flag attribute to reset defaults.
7940 	 * This attribute is used to configure the testbed device.
7941 	 */
7942 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
7943 
7944 	/* Flag attribute to clear the previously set HE operating mode
7945 	 * control field configuration.
7946 	 * This attribute is used to configure the testbed device to reset
7947 	 * defaults to clear any previously set HE operating mode control
7948 	 * field configuration.
7949 	 */
7950 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
7951 
7952 	/* 8-bit unsigned value to configure HE single user PPDU
7953 	 * transmission. By default this setting is disabled and it
7954 	 * is disabled in the reset defaults of the device configuration.
7955 	 * This attribute is used to configure the testbed device.
7956 	 * 1-enable, 0-disable
7957 	 */
7958 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
7959 
7960 	/* 8-bit unsigned value to configure action frame transmission
7961 	 * in HE trigger based PPDU transmission.
7962 	 * By default this setting is disabled and it is disabled in
7963 	 * the reset defaults of the device configuration.
7964 	 * This attribute is used to configure the testbed device.
7965 	 * 1-enable, 0-disable
7966 	 */
7967 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
7968 
7969 	/* Nested attribute to indicate HE operating mode control field
7970 	 * transmission. It contains operating mode control field Nss,
7971 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
7972 	 * These nested attributes are used to send HE operating mode control
7973 	 * with configured values.
7974 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
7975 	 * This attribute is used to configure the testbed device.
7976 	 */
7977 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
7978 
7979 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
7980 	 * support for the reception of a frame that carries an HE variant
7981 	 * HT Control field.
7982 	 * This attribute is used to configure the testbed device.
7983 	 * 1-enable, 0-disable
7984 	 */
7985 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
7986 
7987 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
7988 	 * This attribute is used to configure the testbed device.
7989 	 * 1-enable, 0-disable
7990 	 */
7991 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
7992 
7993 	/* 8-bit unsigned value to configure HE testbed defaults.
7994 	 * This attribute is used to configure the testbed device.
7995 	 * 1-set the device HE capabilities to testbed defaults.
7996 	 * 0-reset the device HE capabilities to supported config.
7997 	 */
7998 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
7999 
8000 	/* 8-bit unsigned value to configure TWT request support.
8001 	 * This attribute is used to configure the testbed device.
8002 	 * 1-enable, 0-disable.
8003 	 */
8004 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8005 
8006 	/* 8-bit unsigned value to configure protection for Management
8007 	 * frames when PMF is enabled for the association.
8008 	 * This attribute is used to configure the testbed device.
8009 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8010 	 */
8011 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8012 
8013 	/* Flag attribute to inject Disassociation frame to the connected AP.
8014 	 * This attribute is used to configure the testbed device.
8015 	 */
8016 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8017 
8018 	/* 8-bit unsigned value to configure an override for the RSNXE Used
8019 	 * subfield in the MIC control field of the FTE in FT Reassociation
8020 	 * Request frame.
8021 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8022 	 * This attribute is used to configure the testbed device.
8023 	 * This attribute can be configured only when STA is in associated state
8024 	 * and the configuration is valid until the disconnection.
8025 	 */
8026 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8027 
8028 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8029 	 * Switch Announcement) when STA is in connected state.
8030 	 * 0 - Default behavior, 1 - Ignore CSA.
8031 	 * This attribute is used to configure the testbed device.
8032 	 * This attribute can be configured only when STA is in associated state
8033 	 * and the configuration is valid until the disconnection.
8034 	 */
8035 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8036 
8037 	/* Nested attribute values required to configure OCI (Operating Channel
8038 	 * Information). Attributes defined in enum
8039 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8040 	 * This attribute is used to configure the testbed device.
8041 	 * This attribute can be configured only when STA is in associated state
8042 	 * and the configuration is valid until the disconnection.
8043 	 */
8044 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8045 
8046 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
8047 	 * Query timeout. If this configuration is enabled STA shall not send
8048 	 * Deauthentication frmae when SA Query times out (mainly, after a
8049 	 * channel switch when OCV is enabled).
8050 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8051 	 * This attribute is used to configure the testbed device.
8052 	 * This attribute can be configured only when STA is in associated state
8053 	 * and the configuration is valid until the disconnection.
8054 	 */
8055 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8056 
8057 	/* 8-bit unsigned value to configure the driver/firmware to start or
8058 	 * stop transmitting FILS discovery frames.
8059 	 * 0 - Stop transmitting FILS discovery frames
8060 	 * 1 - Start transmitting FILS discovery frames
8061 	 * This attribute is used to configure the testbed device.
8062 	 * This attribute can be configured only in AP mode and the
8063 	 * configuration is valid until AP restart.
8064 	 */
8065 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8066 
8067 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8068 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8069 	 * information field.
8070 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
8071 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
8072 	 * This attribute is used to configure the testbed device.
8073 	 */
8074 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8075 
8076 	/* 16-bit unsigned value to configure the driver with a specific BSS
8077 	 * max idle period to advertise in the BSS Max Idle Period element
8078 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8079 	 * This attribute is used to configure the testbed device.
8080 	 */
8081 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8082 
8083 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
8084 	 * for data transmission.
8085 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8086 	 * This attribute is used to configure the testbed device.
8087 	 */
8088 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8089 
8090 	/* 8-bit unsigned value to configure the driver to disable data and
8091 	 * management response frame transmission to test the BSS max idle
8092 	 * feature.
8093 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
8094 	 * This attribute is used to configure the testbed device.
8095 	 */
8096 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8097 
8098 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8099 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8100 	 * information field.
8101 	 * 0 - Disable Punctured Preamble Rx subfield
8102 	 * 1 - Enable Punctured Preamble Rx subfield
8103 	 * This attribute is used to configure the testbed device.
8104 	 */
8105 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8106 
8107 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8108 	 * requirement mismatch for 6 GHz connection.
8109 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8110 	 * This attribute is used to configure the testbed device.
8111 	 */
8112 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8113 
8114 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
8115 	 * connection with all security modes.
8116 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8117 	 * modes.
8118 	 * This attribute is used for testing purposes.
8119 	 */
8120 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8121 
8122 	/* 8-bit unsigned value to configure the driver to transmit data with
8123 	 * ER SU PPDU type.
8124 	 *
8125 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8126 	 * This attribute is used for testing purposes.
8127 	 */
8128 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8129 
8130 	/* 8-bit unsigned value to configure the driver to use Data or
8131 	 * Management frame type for keep alive data.
8132 	 * Uses enum qca_wlan_keep_alive_data_type values.
8133 	 *
8134 	 * This attribute is used for testing purposes.
8135 	 */
8136 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8137 
8138 	/* 8-bit unsigned value to configure the driver to use scan request
8139 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
8140 	 * driver saves this configuration and applies this setting to all user
8141 	 * space scan requests until the setting is cleared. If this
8142 	 * configuration is set, the driver uses the BSSID value from the scan
8143 	 * request to set the RA(A1) in the Probe Request frames during the
8144 	 * scan.
8145 	 *
8146 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
8147 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
8148 	 * This attribute is used for testing purposes.
8149 	 */
8150 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
8151 
8152 	/* 8-bit unsigned value to configure the driver to enable/disable the
8153 	 * BSS max idle period support.
8154 	 *
8155 	 * 0 - Disable the BSS max idle support.
8156 	 * 1 - Enable the BSS max idle support.
8157 	 * This attribute is used for testing purposes.
8158 	 */
8159 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
8160 
8161 	/* keep last */
8162 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
8163 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
8164 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
8165 };
8166 
8167 /**
8168  * enum qca_wlan_twt_operation - Operation of the config TWT request
8169  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
8170  * The response for the respective operations can be either synchronous or
8171  * asynchronous (wherever specified). If synchronous, the response to this
8172  * operation is obtained in the corresponding vendor command reply to the user
8173  * space. For the asynchronous case the response is obtained as an event with
8174  * the same operation type.
8175  *
8176  * Drivers shall support either of these modes but not both simultaneously.
8177  * This support for asynchronous mode is advertised through the flag
8178  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8179  * the driver shall support synchronous mode.
8180  *
8181  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8182  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8183  * qca_wlan_vendor_attr_twt_setup. Depending upon the
8184  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8185  * synchronous or asynchronous operation.
8186  *
8187  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8188  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8189  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
8190  *
8191  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8192  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8193  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
8194  * This terminate can either get triggered by the user space or can as well be
8195  * a notification from the firmware if it initiates a terminate.
8196  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8197  * the request from user space can either be a synchronous or asynchronous
8198  * operation.
8199  *
8200  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8201  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8202  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
8203  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8204  * this is either a synchronous or asynchronous operation.
8205  *
8206  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8207  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8208  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
8209  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8210  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8211  * capability, this is either a synchronous or asynchronous operation.
8212  *
8213  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8214  * combination of suspend and resume in a single request. Required parameters
8215  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8216  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8217  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8218  * capability, this is either a synchronous or asynchronous operation.
8219  *
8220  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8221  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8222  * session is setup. It's a synchronous operation.
8223  *
8224  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8225  * Valid only after the TWT session is setup. It's a synchronous operation.
8226  *
8227  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8228  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8229  * operation.
8230  *
8231  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
8232  * ready for a new TWT session setup after it issued a TWT teardown.
8233  */
8234 enum qca_wlan_twt_operation {
8235 	QCA_WLAN_TWT_SET = 0,
8236 	QCA_WLAN_TWT_GET = 1,
8237 	QCA_WLAN_TWT_TERMINATE = 2,
8238 	QCA_WLAN_TWT_SUSPEND = 3,
8239 	QCA_WLAN_TWT_RESUME = 4,
8240 	QCA_WLAN_TWT_NUDGE = 5,
8241 	QCA_WLAN_TWT_GET_STATS = 6,
8242 	QCA_WLAN_TWT_CLEAR_STATS = 7,
8243 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8244 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
8245 };
8246 
8247 /**
8248  * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8249  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8250  *
8251  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
8252  * operation of this request. Possible values are defined in enum
8253  * qca_wlan_twt_operation. The parameters for the respective operation is
8254  * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8255  *
8256  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8257  * parameters configured for TWT. These parameters are represented by
8258  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
8259  * or enum qca_wlan_vendor_attr_twt_stats based on the operation.
8260  */
8261 enum qca_wlan_vendor_attr_config_twt {
8262 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8263 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8264 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
8265 
8266 	/* keep last */
8267 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8268 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8269 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8270 };
8271 
8272 /**
8273  * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
8274  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8275  * The user can add/delete the filter by specifying the BSSID/STA MAC address in
8276  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
8277  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
8278  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
8279  * statistics of an unassociated station by specifying the MAC address in
8280  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
8281  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
8282  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
8283  * the statistics of all unassociated stations by specifying the Broadcast MAC
8284  * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
8285  * above procedure. In the response, driver shall specify statistics
8286  * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
8287  */
8288 enum qca_wlan_vendor_attr_bss_filter {
8289 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
8290 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
8291 	/* Other BSS filter type, unsigned 8 bit value. One of the values
8292 	 * in enum qca_wlan_vendor_bss_filter_type.
8293 	 */
8294 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
8295 	/* Other BSS filter action, unsigned 8 bit value. One of the values
8296 	 * in enum qca_wlan_vendor_bss_filter_action.
8297 	 */
8298 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
8299 	/* Array of nested attributes where each entry is the statistics
8300 	 * information of the specified station that belong to another BSS.
8301 	 * Attributes for each entry are taken from enum
8302 	 * qca_wlan_vendor_bss_filter_sta_stats.
8303 	 * Other BSS station configured in
8304 	 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
8305 	 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
8306 	 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
8307 	 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
8308 	 */
8309 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
8310 
8311 	/* keep last */
8312 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
8313 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
8314 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
8315 };
8316 
8317 /**
8318  * enum qca_wlan_vendor_bss_filter_type - Type of
8319  * filter used in other BSS filter operations. Used by the vendor command
8320  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8321  *
8322  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
8323  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
8324  */
8325 enum qca_wlan_vendor_bss_filter_type {
8326 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
8327 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
8328 };
8329 
8330 /**
8331  * enum qca_wlan_vendor_bss_filter_action - Type of
8332  * action in other BSS filter operations. Used by the vendor command
8333  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8334  *
8335  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
8336  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
8337  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
8338  */
8339 enum qca_wlan_vendor_bss_filter_action {
8340 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
8341 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
8342 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
8343 };
8344 
8345 /**
8346  * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
8347  * the statistics of a specific unassociated station belonging to another BSS.
8348  * The statistics provides information of the unassociated station
8349  * filtered by other BSS operation - such as MAC, signal value.
8350  * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
8351  *
8352  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
8353  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
8354  *	of the station. Unsigned 8 bit number containing RSSI.
8355  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
8356  *	driver for the last received RSSI. Unsigned 64 bit number containing
8357  *	nanoseconds from the boottime.
8358  */
8359 enum qca_wlan_vendor_bss_filter_sta_stats {
8360 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
8361 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
8362 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
8363 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
8364 
8365 	/* keep last */
8366 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
8367 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
8368 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
8369 };
8370 
8371 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
8372  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
8373  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8374  */
8375 enum qca_wlan_nan_ext_subcmd_type {
8376 	/* Subcmd of type NAN Enable Request */
8377 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
8378 	/* Subcmd of type NAN Disable Request */
8379 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
8380 };
8381 
8382 /**
8383  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
8384  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
8385  */
8386 enum qca_wlan_vendor_attr_nan_params {
8387 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
8388 	/* Carries NAN command for firmware component. Every vendor command
8389 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
8390 	 * payload containing the NAN command. NLA_BINARY attribute.
8391 	 */
8392 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
8393 	/* Indicates the type of NAN command sent with
8394 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
8395 	 * describes the possible range of values. This attribute is mandatory
8396 	 * if the command being issued is either
8397 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
8398 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
8399 	 */
8400 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
8401 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
8402 	 * band. This attribute is mandatory when command type is
8403 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
8404 	 */
8405 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
8406 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
8407 	 * band. This attribute is optional and should be included when command
8408 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
8409 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
8410 	 */
8411 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
8412 
8413 	/* keep last */
8414 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
8415 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
8416 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
8417 };
8418 
8419 /**
8420  * qca_wlan_twt_setup_state: Represents the TWT session states.
8421  *
8422  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
8423  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
8424  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
8425  */
8426 enum qca_wlan_twt_setup_state {
8427 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
8428 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
8429 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
8430 };
8431 
8432 /**
8433  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
8434  * TWT (Target Wake Time) setup request. These attributes are sent as part of
8435  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
8436  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8437  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8438  *
8439  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
8440  * Disable (flag attribute not present) - Individual TWT
8441  * Enable (flag attribute present) - Broadcast TWT.
8442  * Individual means the session is between the STA and the AP.
8443  * This session is established using a separate negotiation between
8444  * STA and AP.
8445  * Broadcast means the session is across multiple STAs and an AP. The
8446  * configuration parameters are announced in Beacon frames by the AP.
8447  * This is used in
8448  * 1. TWT SET Request and Response
8449  * 2. TWT GET Response
8450  *
8451  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
8452  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
8453  * specify the TWT request type. This is used in TWT SET operation.
8454  *
8455  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
8456  * Enable (flag attribute present) - TWT with trigger support.
8457  * Disable (flag attribute not present) - TWT without trigger support.
8458  * Trigger means the AP will send the trigger frame to allow STA to send data.
8459  * Without trigger, the STA will wait for the MU EDCA timer before
8460  * transmitting the data.
8461  * This is used in
8462  * 1. TWT SET Request and Response
8463  * 2. TWT GET Response
8464  *
8465  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
8466  * 0 - Announced TWT - In this mode, STA may skip few service periods to
8467  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
8468  * NULL frame to AP.
8469  * 1 - Unannounced TWT - The STA will wakeup during every SP.
8470  * This is a required parameter for
8471  * 1. TWT SET Request and Response
8472  * 2. TWT GET Response
8473  *
8474  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
8475  * Flow ID is the unique identifier for each TWT session.
8476  * If not provided then dialog ID will be set to zero.
8477  * This is an optional parameter for
8478  * 1. TWT SET Request and Response
8479  * 2. TWT GET Request and Response
8480  * 3. TWT TERMINATE Request and Response
8481  * 4. TWT SUSPEND Request and Response
8482  * Flow ID values from 0 to 254 represent a single TWT session
8483  * Flow ID value of 255 represents all TWT sessions for the following
8484  * 1. TWT TERMINATE Request and Response
8485  * 2. TWT SUSPEND Request and Response
8486  * 4. TWT CLEAR STATISTICS request
8487  * 5. TWT GET STATISTICS request and response
8488  * If an invalid dialog ID is provided, status
8489  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
8490  *
8491  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
8492  * This attribute (exp) is used along with the mantissa to derive the
8493  * wake interval using the following formula:
8494  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
8495  * Wake interval is the interval between 2 successive SP.
8496  * This is a required parameter for
8497  * 1. TWT SET Request and Response
8498  * 2. TWT GET Response
8499  *
8500  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
8501  * Enable (flag attribute present) - Protection required.
8502  * Disable (flag attribute not present) - Protection not required.
8503  * If protection is enabled, then the AP will use protection
8504  * mechanism using RTS/CTS to self to reserve the airtime.
8505  * This is used in
8506  * 1. TWT SET Request and Response
8507  * 2. TWT GET Response
8508  *
8509  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
8510  * This attribute is used as the SP offset which is the offset from
8511  * TSF after which the wake happens. The units are in microseconds. If
8512  * this attribute is not provided, then the value will be set to zero.
8513  * This is an optional parameter for
8514  * 1. TWT SET Request and Response
8515  * 2. TWT GET Response
8516  *
8517  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
8518  * This is the duration of the service period. This is specified as
8519  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
8520  * This is a required parameter for
8521  * 1. TWT SET Request and Response
8522  * 2. TWT GET Response
8523  *
8524  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
8525  * This attribute is used to configure wake interval mantissa.
8526  * The units are in TU.
8527  * This is a required parameter for
8528  * 1. TWT SET Request and Response
8529  * 2. TWT GET Response
8530  *
8531  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
8532  * This field is applicable for TWT response only.
8533  * This contains status values in enum qca_wlan_vendor_twt_status
8534  * and is passed to the userspace. This is used in TWT SET operation.
8535  * This is a required parameter for
8536  * 1. TWT SET Response
8537  * 2. TWT TERMINATE Response
8538  * 3. TWT SUSPEND Response
8539  * 4. TWT RESUME Response
8540  * 5. TWT NUDGE Response
8541  *
8542  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
8543  * This field is applicable for TWT response only.
8544  * This field contains response type from the TWT responder and is
8545  * passed to the userspace. The values for this field are defined in
8546  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
8547  * response.
8548  *
8549  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
8550  * This field is applicable for TWT response only.
8551  * This field contains absolute TSF value of the wake time received
8552  * from the TWT responder and is passed to the userspace.
8553  * This is a required parameter for
8554  * 1. TWT SET Response
8555  * 2. TWT GET Response
8556  *
8557  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
8558  * Enable (flag attribute present) - Indicates that the TWT responder
8559  * supports reception of TWT information frame from the TWT requestor.
8560  * Disable (flag attribute not present) - Indicates that the responder
8561  * doesn't support reception of TWT information frame from requestor.
8562  * This is used in
8563  * 1. TWT SET Response
8564  * 2. TWT GET Response
8565  *
8566  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
8567  * Represents the MAC address of the peer for which the TWT session
8568  * is being configured. This is used in AP mode to represent the respective
8569  * client.
8570  * In AP mode, this is a required parameter in response for
8571  * 1. TWT SET
8572  * 2. TWT GET
8573  * 3. TWT TERMINATE
8574  * 4. TWT SUSPEND
8575  * In STA mode, this is an optional parameter in request and response for
8576  * the above four TWT operations.
8577  * In AP mode, this is a required parameter in request for
8578  * 1. TWT GET
8579  * 2. TWT TERMINATE
8580  *
8581  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
8582  * Minimum tolerance limit of wake interval parameter in microseconds.
8583  *
8584  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
8585  * Maximum tolerance limit of wake interval parameter in microseconds.
8586  *
8587  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
8588  * Minimum tolerance limit of wake duration parameter in microseconds.
8589  *
8590  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
8591  * Maximum tolerance limit of wake duration parameter in microseconds.
8592  *
8593  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
8594  * TWT state for the given dialog id. The values for this are represented
8595  * by enum qca_wlan_twt_setup_state.
8596  * This is obtained through TWT GET operation.
8597  *
8598  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
8599  * This attribute is used to configure wake interval mantissa.
8600  * The unit is microseconds. This attribute, when specified, takes
8601  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
8602  * This parameter is used for
8603  * 1. TWT SET Request and Response
8604  * 2. TWT GET Response
8605  *
8606  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
8607  * This attribute is used to configure Broadcast TWT ID.
8608  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
8609  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
8610  * This parameter is used for
8611  * 1. TWT SET Request
8612  * 2. TWT TERMINATE Request
8613  *
8614  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
8615  * This attribute is used to configure Broadcast TWT recommendation.
8616  * The Broadcast TWT Recommendation subfield contains a value that indicates
8617  * recommendations on the types of frames that are transmitted by TWT
8618  * scheduled STAs and scheduling AP during the broadcast TWT SP.
8619  * The allowed values are 0 - 3.
8620  * This parameter is used for
8621  * 1. TWT SET Request
8622  *
8623  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
8624  * This attribute is used to configure Broadcast TWT Persistence.
8625  * The Broadcast TWT Persistence subfield indicates the number of
8626  * TBTTs during which the Broadcast TWT SPs corresponding to this
8627  * broadcast TWT Parameter set are present. The number of beacon intervals
8628  * during which the Broadcast TWT SPs are present is equal to the value in the
8629  * Broadcast TWT Persistence subfield plus 1 except that the value 255
8630  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
8631  * This parameter is used for
8632  * 1. TWT SET Request
8633  */
8634 enum qca_wlan_vendor_attr_twt_setup {
8635 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
8636 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
8637 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
8638 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
8639 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
8640 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
8641 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
8642 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
8643 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
8644 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
8645 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
8646 
8647 	/* TWT Response only attributes */
8648 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
8649 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
8650 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
8651 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
8652 
8653 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
8654 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
8655 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
8656 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
8657 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
8658 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
8659 
8660 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
8661 
8662 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
8663 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
8664 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
8665 
8666 	/* keep last */
8667 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
8668 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
8669 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
8670 };
8671 
8672 /**
8673  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
8674  * TWT operation
8675  *
8676  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
8677  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
8678  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
8679  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
8680  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
8681  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
8682  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
8683  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
8684  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
8685  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
8686  * request/response frame
8687  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
8688  * frame
8689  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
8690  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
8691  * unknown reason
8692  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
8693  * suspend state
8694  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
8695  * invalid IE in the received TWT frame
8696  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
8697  * the responder are not in the specified range
8698  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
8699  * session due to request from the responder. Used on the TWT_TERMINATE
8700  * notification from the firmware.
8701  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
8702  * session due to roaming. Used on the TWT_TERMINATE notification from the
8703  * firmware.
8704  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
8705  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
8706  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
8707  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
8708  * request due to roaming in progress.
8709  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
8710  * setup request due to channel switch in progress.
8711  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
8712  * request due to scan in progress.
8713  */
8714 enum qca_wlan_vendor_twt_status {
8715 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
8716 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
8717 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
8718 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
8719 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
8720 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
8721 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
8722 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
8723 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
8724 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
8725 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
8726 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
8727 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
8728 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
8729 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
8730 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
8731 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
8732 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
8733 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
8734 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
8735 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
8736 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
8737 };
8738 
8739 /**
8740  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
8741  * TWT (Target Wake Time) resume request. These attributes are sent as part of
8742  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
8743  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8744  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8745  *
8746  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
8747  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
8748  * These attributes are used as the SP offset which is the offset from TSF after
8749  * which the wake happens. The units are in microseconds. Please note that
8750  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
8751  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
8752  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
8753  * will be set to zero.
8754  *
8755  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
8756  * This attribute represents the next TWT subfield size.
8757  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
8758  * and 4 for 64 bits.
8759  *
8760  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
8761  * Flow ID is the unique identifier for each TWT session. This attribute
8762  * represents the respective TWT session to resume.
8763  * Flow ID values from 0 to 254 represent a single TWT session
8764  * Flow ID value of 255 represents all TWT sessions.
8765  * If an invalid dialog id is provided, status
8766  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
8767  *
8768  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
8769  * Represents the MAC address of the peer to which TWT Resume is
8770  * being sent. This is used in AP mode to represent the respective
8771  * client and is a required parameter. In STA mode, this is an optional
8772  * parameter
8773  */
8774 enum qca_wlan_vendor_attr_twt_resume {
8775 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
8776 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
8777 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
8778 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
8779 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
8780 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
8781 
8782 	/* keep last */
8783 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
8784 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
8785 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
8786 };
8787 
8788 /**
8789  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
8790  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
8791  * and resume in a single request. These attributes are sent as part of
8792  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8793  *
8794  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
8795  * Flow ID is the unique identifier for each TWT session. This attribute
8796  * represents the respective TWT session to suspend and resume.
8797  * Flow ID values from 0 to 254 represent a single TWT session
8798  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
8799  * and response.
8800  * If an invalid dialog id is provided, status
8801  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
8802  *
8803  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
8804  * This attribute is used as the SP offset which is the offset from
8805  * TSF after which the wake happens. The units are in microseconds.
8806  *
8807  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
8808  * This attribute represents the next TWT subfield size.
8809  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
8810  * and 4 for 64 bits.
8811  *
8812  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
8813  * Represents the MAC address of the peer to which TWT Suspend and Resume is
8814  * being sent. This is used in AP mode to represent the respective
8815  * client and is a required parameter. In STA mode, this is an optional
8816  * parameter.
8817  *
8818  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
8819  * This field contains absolute TSF value of the time at which the TWT
8820  * session will be resumed.
8821  */
8822 enum qca_wlan_vendor_attr_twt_nudge {
8823 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
8824 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
8825 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
8826 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
8827 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
8828 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
8829 
8830 	/* keep last */
8831 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
8832 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
8833 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
8834 };
8835 
8836 /**
8837  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
8838  * TWT (Target Wake Time) get statistics and clear statistics request.
8839  * These attributes are sent as part of
8840  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8841  *
8842  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
8843  * Flow ID is the unique identifier for each TWT session. This attribute
8844  * represents the respective TWT session for get and clear TWT statistics.
8845  * Flow ID values from 0 to 254 represent a single TWT session
8846  * Flow ID value of 255 represents all TWT sessions in
8847  * 1) TWT GET STATISTICS request and response
8848  * 2) TWT CLEAR STATISTICS request
8849  *
8850  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
8851  * Represents the MAC address of the peer for which TWT Statistics
8852  * is required.
8853  * In AP mode this is used to represent the respective
8854  * client and is a required parameter for
8855  * 1) TWT GET STATISTICS request and response
8856  * 2) TWT CLEAR STATISTICS request and response
8857  * In STA mode, this is an optional parameter.
8858  *
8859  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
8860  * This is the duration of the service period in microseconds.
8861  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8862  *
8863  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
8864  * Average of the actual wake duration observed so far. Unit is microseconds.
8865  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8866  *
8867  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
8868  * The number of TWT service periods elapsed so far.
8869  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8870  *
8871  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
8872  * This is the minimum value of the wake duration observed across
8873  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
8874  * microseconds.
8875  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8876  *
8877  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
8878  * This is the maximum value of wake duration observed across
8879  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
8880  * microseconds.
8881  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8882  *
8883  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
8884  * Average number of MPDUs transmitted successfully across
8885  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8886  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8887  *
8888  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
8889  * Average number of MPDUs received successfully across
8890  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8891  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8892  *
8893  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
8894  * Average number of bytes transmitted successfully across
8895  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8896  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8897  *
8898  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
8899  * Average number of bytes received successfully across
8900  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
8901  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8902  *
8903  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
8904  * Status of the TWT GET STATISTICS request.
8905  * This contains status values in enum qca_wlan_vendor_twt_status
8906  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
8907  */
8908 enum qca_wlan_vendor_attr_twt_stats {
8909 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
8910 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
8911 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
8912 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
8913 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
8914 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
8915 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
8916 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
8917 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
8918 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
8919 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
8920 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
8921 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
8922 
8923 	/* keep last */
8924 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
8925 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
8926 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
8927 };
8928 
8929 /**
8930  * qca_wlan_twt_get_capa  - Represents the bitmap of TWT capabilities
8931  * supported by the device and the peer.
8932  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
8933  *
8934  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
8935  * TWT non-scheduling STA. This capability is advertised in the HE
8936  * Capability/Extended Capabilities information element in the
8937  * Association Request frame by the device.
8938  *
8939  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
8940  * the TWT scheduling AP. This capability is advertised in the Extended
8941  * Capabilities/HE Capabilities information element.
8942  *
8943  * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
8944  * for the broadcast TWT functionality. On the responder side, this indicates
8945  * support for the role of broadcast TWT scheduling functionality. This
8946  * capability is advertised in the HE Capabilities information element.
8947  *
8948  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
8949  * This capability is advertised in the HE Capabilities information element.
8950  *
8951  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
8952  * that it mandates the associated HE STAs to support TWT. This capability is
8953  * advertised by AP in the HE Operation Parameters field of the HE Operation
8954  * information element.
8955  */
8956 enum qca_wlan_twt_capa {
8957 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
8958 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
8959 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
8960 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
8961 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
8962 };
8963 
8964 /**
8965  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
8966  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
8967  * operation.
8968  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
8969  * Represents the MAC address of the peer for which the TWT capabilities
8970  * are being queried. This is used in AP mode to represent the respective
8971  * client. In STA mode, this is an optional parameter.
8972  *
8973  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
8974  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
8975  * enum qca_wlan_twt_capa.
8976  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
8977  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
8978  * enum qca_wlan_twt_capa.
8979  */
8980 enum qca_wlan_vendor_attr_twt_capability {
8981 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
8982 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
8983 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
8984 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
8985 
8986 	/* keep last */
8987 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
8988 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
8989 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
8990 };
8991 
8992 /**
8993  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
8994  * the TWT responder
8995  *
8996  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
8997  * parameters that are different from TWT requesting STA suggested
8998  * or demanded TWT parameters
8999  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9000  * parameters that are different from TWT requesting STA TWT suggested
9001  * or demanded parameters
9002  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9003  * setup
9004  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9005  * setup.
9006  */
9007 enum qca_wlan_vendor_twt_setup_resp_type {
9008 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9009 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9010 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9011 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9012 };
9013 
9014 /**
9015  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9016  * Represents the setup type being requested for TWT.
9017  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9018  * parameters but relying on AP to fill the parameters during the negotiation.
9019  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9020  * values which the AP may accept or AP may provide alternative parameters
9021  * which the STA may accept.
9022  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9023  * alternate parameters than the requested ones.
9024  */
9025 enum qca_wlan_vendor_twt_setup_req_type {
9026 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9027 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9028 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9029 };
9030 
9031 /**
9032  * enum qca_wlan_roam_scan_event_type - Type of roam scan event
9033  *
9034  * Indicates the type of roam scan event sent by firmware/driver.
9035  *
9036  * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
9037  * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
9038  */
9039 enum qca_wlan_roam_scan_event_type {
9040 	QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
9041 	QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
9042 };
9043 
9044 /**
9045  * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
9046  *
9047  * Indicates the reason for triggering roam scan by firmware/driver.
9048  *
9049  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
9050  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
9051  */
9052 enum qca_wlan_roam_scan_trigger_reason {
9053 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
9054 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
9055 };
9056 
9057 /**
9058  * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
9059  * roam scan related details from driver/firmware to user space. enum values
9060  * are used for NL attributes sent with
9061  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
9062  */
9063 enum qca_wlan_vendor_attr_roam_scan {
9064 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
9065 	/* Encapsulates type of roam scan event being reported. enum
9066 	 * qca_wlan_roam_scan_event_type describes the possible range of
9067 	 * values. u32 attribute.
9068 	 */
9069 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
9070 	/* Encapsulates reason for triggering roam scan. enum
9071 	 * qca_wlan_roam_scan_trigger_reason describes the possible range of
9072 	 * values. u32 attribute.
9073 	 */
9074 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
9075 
9076 	/* keep last */
9077 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
9078 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
9079 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
9080 };
9081 
9082 /**
9083  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
9084  * transport modes and is used by the attribute
9085  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
9086  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9087  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
9088  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
9089  * data. The data shall be encapsulated within
9090  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
9091  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
9092  */
9093 enum qca_wlan_vendor_cfr_data_transport_modes {
9094 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
9095 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
9096 };
9097 
9098 /**
9099  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
9100  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
9101  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9102  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
9103  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
9104  * with phase
9105  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
9106  */
9107 enum qca_wlan_vendor_cfr_method {
9108 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
9109 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
9110 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
9111 };
9112 
9113 /**
9114  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
9115  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
9116  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
9117  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
9118  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
9119  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
9120  * is provided by one or more of below attributes:
9121  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
9122  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
9123  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
9124  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
9125  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
9126  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
9127  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9128  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
9129  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
9130  */
9131 enum qca_wlan_vendor_cfr_capture_type {
9132 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
9133 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
9134 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
9135 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
9136 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
9137 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
9138 };
9139 
9140 /**
9141  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
9142  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
9143  * Channel Frequency Response capture parameters and enable periodic CFR
9144  * capture.
9145  *
9146  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
9147  * MAC address of peer. This is for CFR version 1 only.
9148  *
9149  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
9150  * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
9151  * capture. If this attribute is not present, peer CFR capture is disabled.
9152  *
9153  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
9154  * BW of measurement, attribute uses the values in enum nl80211_chan_width
9155  * Supported values: 20, 40, 80, 80+80, 160.
9156  * Note that all targets may not support all bandwidths.
9157  * This attribute is mandatory for version 1 if attribute
9158  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9159  *
9160  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
9161  * Periodicity of CFR measurement in milliseconds.
9162  * Periodicity should be a multiple of Base timer.
9163  * Current Base timer value supported is 10 milliseconds (default).
9164  * 0 for one shot capture.
9165  * This attribute is mandatory for version 1 if attribute
9166  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9167  *
9168  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
9169  * Method used to capture Channel Frequency Response.
9170  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
9171  * This attribute is mandatory for version 1 if attribute
9172  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9173  *
9174  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
9175  * Enable periodic CFR capture.
9176  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
9177  * If this attribute is not present, periodic CFR capture is disabled.
9178  *
9179  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
9180  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
9181  * can't be enabled at same time. This attribute is mandatory if target
9182  * support both versions and use one of them.
9183  *
9184  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
9185  * This attribute is mandatory for version 2 if
9186  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
9187  * Bits 15:0 bitfield indicates which group is to be enabled.
9188  * Bits 31:16 Reserved for future use.
9189  *
9190  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
9191  * CFR capture duration in microsecond. This attribute is mandatory for
9192  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
9193  *
9194  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
9195  * CFR capture interval in microsecond. This attribute is mandatory for
9196  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
9197  *
9198  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
9199  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
9200  * This attribute is mandatory for version 2.
9201  *
9202  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
9203  * Bitfield indicating which user in the current UL MU transmissions are
9204  * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
9205  * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
9206  * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
9207  * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
9208  * reserved for future use. This is for CFR version 2 only.
9209  *
9210  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
9211  * Indicates the number of consecutive RX frames to be skipped before CFR
9212  * capture is enabled again. This is for CFR version 2 only.
9213  *
9214  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
9215  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
9216  *
9217  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
9218  * the following group attributes:
9219  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
9220  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
9221  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
9222  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
9223  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
9224  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
9225  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
9226  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
9227  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
9228  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9229  *
9230  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
9231  * Target supports multiple groups for some configurations. The group number
9232  * can be any value between 0 and 15. This is for CFR version 2 only.
9233  *
9234  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
9235  * Transmitter address which is used to filter frames. This MAC address takes
9236  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
9237  * version 2 only.
9238  *
9239  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
9240  * Receiver address which is used to filter frames. This MAC address takes
9241  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
9242  * version 2 only.
9243  *
9244  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
9245  * Mask of transmitter address which is used to filter frames. This is for CFR
9246  * version 2 only.
9247  *
9248  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
9249  * Mask of receiver address which is used to filter frames. This is for CFR
9250  * version 2 only.
9251  *
9252  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
9253  * Indicates frames with a specific NSS will be filtered for CFR capture.
9254  * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
9255  * capture to be done for frames matching the NSS specified within this bitmask.
9256  * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
9257  *     bit 0 : NSS 1
9258  *     bit 1 : NSS 2
9259  *     ...
9260  *     bit 7 : NSS 8
9261  *
9262  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
9263  * Indicates frames with a specific bandwidth will be filtered for CFR capture.
9264  * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
9265  * capture to be done for frames matching the bandwidths specified within this
9266  * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
9267  * numerated in enum nl80211_band (although not all bands may be supported
9268  * by a given device).
9269  *
9270  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
9271  * Management frames matching the subtype filter categories will be filtered in
9272  * by MAC for CFR capture. This is a bitmask in which each bit represents the
9273  * corresponding Management frame subtype value per IEEE Std 802.11-2016,
9274  * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
9275  * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
9276  *
9277  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
9278  * Control frames matching the subtype filter categories will be filtered in by
9279  * MAC for CFR capture. This is a bitmask in which each bit represents the
9280  * corresponding Control frame subtype value per IEEE Std 802.11-2016,
9281  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
9282  *
9283  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
9284  * Data frames matching the subtype filter categories will be filtered in by
9285  * MAC for CFR capture. This is a bitmask in which each bit represents the
9286  * corresponding Data frame subtype value per IEEE Std 802.11-2016,
9287  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
9288  *
9289  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
9290  * Userspace can use this attribute to specify the driver about which transport
9291  * mode shall be used by the driver to send CFR data to userspace. Uses values
9292  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
9293  * not present, the driver shall use the default transport mechanism which is
9294  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
9295  *
9296  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
9297  * Userspace can use this attribute to specify the nl port id of the application
9298  * which receives the CFR data and processes it further so that the drivers can
9299  * unicast the netlink events to a specific application. Optionally included
9300  * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
9301  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
9302  * shall multicast the netlink events when this attribute is not included.
9303  *
9304  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
9305  * This attribute will be used by the driver to encapsulate and send CFR data
9306  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
9307  * asynchronous event when the driver is configured to send CFR data using
9308  * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
9309  */
9310 enum qca_wlan_vendor_peer_cfr_capture_attr {
9311 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
9312 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
9313 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
9314 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
9315 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
9316 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
9317 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
9318 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
9319 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
9320 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
9321 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
9322 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
9323 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
9324 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
9325 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
9326 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
9327 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
9328 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
9329 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
9330 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
9331 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
9332 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
9333 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
9334 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
9335 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
9336 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
9337 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
9338 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
9339 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
9340 
9341 	/* Keep last */
9342 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
9343 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
9344 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
9345 };
9346 
9347 /**
9348  * enum qca_wlan_throughput_level - Current throughput level
9349  *
9350  * Indicates the current level of throughput calculated by the driver. The
9351  * driver may choose different thresholds to decide whether the throughput level
9352  * is low or medium or high based on variety of parameters like physical link
9353  * capacity of the current connection, the number of packets being dispatched
9354  * per second, etc. The throughput level events might not be consistent with the
9355  * actual current throughput value being observed.
9356  *
9357  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9358  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9359  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9360  */
9361 enum qca_wlan_throughput_level {
9362 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9363 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9364 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9365 };
9366 
9367 /**
9368  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9369  * report throughput changes from the driver to user space. enum values are used
9370  * for netlink attributes sent with
9371  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9372  */
9373 enum qca_wlan_vendor_attr_throughput_change {
9374 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
9375 	/* Indicates the direction of throughput in which the change is being
9376 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
9377 	 */
9378 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
9379 	/* Indicates the newly observed throughput level. enum
9380 	 * qca_wlan_throughput_level describes the possible range of values.
9381 	 * u8 attribute.
9382 	 */
9383 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
9384 	/* Indicates the driver's guidance on the new value to be set to
9385 	 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
9386 	 * driver may optionally include this attribute.
9387 	 */
9388 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
9389 	/* Indicates the driver's guidance on the new value to be set to
9390 	 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
9391 	 * values are from -31 to 31. The driver may optionally include this
9392 	 * attribute.
9393 	 */
9394 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
9395 	/* Indicates the driver's guidance on the new value to be set to
9396 	 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
9397 	 * optionally include this attribute.
9398 	 */
9399 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
9400 
9401 	/* keep last */
9402 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
9403 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
9404 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
9405 };
9406 
9407 /**
9408  * enum qca_coex_config_profiles - This enum defines different types of
9409  * traffic streams that can be prioritized one over the other during coex
9410  * scenarios.
9411  * The types defined in this enum are categorized in the below manner.
9412  * 0 - 31 values corresponds to WLAN
9413  * 32 - 63 values corresponds to BT
9414  * 64 - 95 values corresponds to Zigbee
9415  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
9416  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
9417  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
9418  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
9419  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
9420  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
9421  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
9422  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
9423  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
9424  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
9425  * @QCA_BT_A2DP: Prioritize BT A2DP
9426  * @QCA_BT_BLE: Prioritize BT BLE
9427  * @QCA_BT_SCO: Prioritize BT SCO
9428  * @QCA_ZB_LOW: Prioritize Zigbee Low
9429  * @QCA_ZB_HIGH: Prioritize Zigbee High
9430  */
9431 enum qca_coex_config_profiles {
9432 	/* 0 - 31 corresponds to WLAN */
9433 	QCA_WIFI_STA_DISCOVERY = 0,
9434 	QCA_WIFI_STA_CONNECTION = 1,
9435 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
9436 	QCA_WIFI_STA_DATA = 3,
9437 	QCA_WIFI_STA_ALL = 4,
9438 	QCA_WIFI_SAP_DISCOVERY = 5,
9439 	QCA_WIFI_SAP_CONNECTION = 6,
9440 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
9441 	QCA_WIFI_SAP_DATA = 8,
9442 	QCA_WIFI_SAP_ALL = 9,
9443 	QCA_WIFI_CASE_MAX = 31,
9444 	/* 32 - 63 corresponds to BT */
9445 	QCA_BT_A2DP = 32,
9446 	QCA_BT_BLE = 33,
9447 	QCA_BT_SCO = 34,
9448 	QCA_BT_CASE_MAX = 63,
9449 	/* 64 - 95 corresponds to Zigbee */
9450 	QCA_ZB_LOW = 64,
9451 	QCA_ZB_HIGH = 65,
9452 	QCA_ZB_CASE_MAX = 95,
9453 	/* 0xff is default value if the u8 profile value is not set. */
9454 	QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
9455 };
9456 
9457 /**
9458  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
9459  * This enum defines the valid set of values of coex configuration types. These
9460  * values may used by attribute
9461  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
9462  *
9463  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
9464  *	weights to default values.
9465  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
9466  *	weights with configurability value.
9467  */
9468 enum qca_vendor_attr_coex_config_types {
9469 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9470 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
9471 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
9472 };
9473 
9474 /**
9475  * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
9476  *
9477  * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
9478  * length array of 8-bit values from enum qca_coex_config_profiles.
9479  * FW will prioritize the profiles in the order given in the array encapsulated
9480  * in this attribute.
9481  * For example:
9482  * -----------------------------------------------------------------------
9483  * |     1       |       34       |        32         |         65       |
9484  * -----------------------------------------------------------------------
9485  * If the attribute contains the values defined in above array then it means
9486  * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
9487  * 2) BT_SCO has priority over BT_A2DP.
9488  * 3) BT_A2DP has priority over ZIGBEE HIGH.
9489  * Profiles which are not listed in this array shall not be preferred over the
9490  * profiles which are listed in the array as a part of this attribute.
9491  */
9492 enum qca_vendor_attr_coex_config {
9493 	QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9494 	QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
9495 
9496 	/* Keep last */
9497 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
9498 	QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
9499 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
9500 };
9501 
9502 /**
9503  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
9504  * attributes
9505  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
9506  *
9507  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
9508  * Indicate config type.
9509  * The config types are 32-bit values from qca_vendor_attr_coex_config_types
9510  *
9511  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
9512  *	Indicate the Priority 1 profiles.
9513  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
9514  *	In same priority level, maximum to 4 profiles can be set here.
9515  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
9516  *	Indicate the Priority 2 profiles.
9517  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
9518  *	In same priority level, maximum to 4 profiles can be set here.
9519  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
9520  *	Indicate the Priority 3 profiles.
9521  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
9522  *	In same priority level, maximum to 4 profiles can be set here.
9523  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
9524  *	Indicate the Priority 4 profiles.
9525  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
9526  *	In same priority level, maximum to 4 profiles can be set here.
9527  * NOTE:
9528  * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
9529  * arrangement:
9530  *	1: In the same u32 attribute (priority x), the profiles enum values own
9531  *	same priority level.
9532  *	2: 0xff is default value if the u8 profile value is not set.
9533  *	3: max to 4 rules/profiles in same priority level.
9534  *	4: max to 4 priority level (priority 1 - priority 4)
9535  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
9536  *	hybrid rules not support.
9537  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
9538  *	remain blank to reset all parameters.
9539  * For example:
9540  *
9541  *	If the attributes as follow:
9542  *	priority 1:
9543  *	------------------------------------
9544  *	|  0xff  |    0   |   1   |    2   |
9545  *	------------------------------------
9546  *	priority 2:
9547  *	-------------------------------------
9548  *	|  0xff  |  0xff  |  0xff  |   32   |
9549  *	-------------------------------------
9550  *	priority 3:
9551  *	-------------------------------------
9552  *	|  0xff  |  0xff  |  0xff  |   65   |
9553  *	-------------------------------------
9554  *	then it means:
9555  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9556  *		owns same priority level.
9557  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9558  *		has priority over BT_A2DP and ZB_HIGH.
9559  *	3: BT_A2DP has priority over ZB_HIGH.
9560  */
9561 
9562 enum qca_vendor_attr_coex_config_three_way {
9563 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
9564 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
9565 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
9566 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
9567 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
9568 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
9569 
9570 	/* Keep last */
9571 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
9572 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
9573 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
9574 };
9575 
9576 /**
9577  * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
9578  *
9579  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
9580  * (STA/AP) for the connected link.
9581  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
9582  * &struct nl80211_sta_flag_update for the respective connected link. MAC
9583  * address of the peer represented by
9584  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
9585  */
9586 enum qca_wlan_vendor_attr_link_properties {
9587 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
9588 	/* 1 - 3 are reserved */
9589 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
9590 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
9591 
9592 	/* Keep last */
9593 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
9594 	QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
9595 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
9596 };
9597 
9598 /**
9599  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
9600  * This enum defines the valid set of values of peer stats cache types. These
9601  * values are used by attribute
9602  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
9603  *
9604  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
9605  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
9606  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
9607  * statistics
9608  */
9609 enum qca_vendor_attr_peer_stats_cache_type {
9610 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
9611 
9612 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
9613 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
9614 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
9615 };
9616 
9617 /**
9618  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
9619  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
9620  * Information in these attributes is used to flush peer rate statistics from
9621  * the driver to user application.
9622  *
9623  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
9624  * Indicate peer statistics cache type.
9625  * The statistics types are 32-bit values from
9626  * enum qca_vendor_attr_peer_stats_cache_type.
9627  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
9628  * of size 6 octets, representing the peer MAC address.
9629  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
9630  * containing buffer of statistics to send to application layer entity.
9631  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
9632  * representing a cookie for peer unique session.
9633  */
9634 enum qca_wlan_vendor_attr_peer_stats_cache_params {
9635 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
9636 
9637 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
9638 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
9639 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
9640 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
9641 
9642 	/* Keep last */
9643 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
9644 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
9645 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
9646 };
9647 
9648 /**
9649  * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
9650  * This enum defines all the possible states of Zigbee, which can be
9651  * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
9652  *
9653  * @ZIGBEE_IDLE: Zigbee in idle state
9654  * @ZIGBEE_FORM_NETWORK: Zigbee forming network
9655  * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
9656  * @ZIGBEE_JOIN: Zigbee joining network
9657  * @ZIGBEE_NETWORK_UP: Zigbee network is up
9658  * @ZIGBEE_HMI: Zigbee in HMI mode
9659  */
9660 enum qca_mpta_helper_attr_zigbee_state {
9661 	ZIGBEE_IDLE = 0,
9662 	ZIGBEE_FORM_NETWORK = 1,
9663 	ZIGBEE_WAIT_JOIN = 2,
9664 	ZIGBEE_JOIN = 3,
9665 	ZIGBEE_NETWORK_UP = 4,
9666 	ZIGBEE_HMI = 5,
9667 };
9668 
9669 /*
9670  * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
9671  * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
9672  */
9673 enum qca_mpta_helper_vendor_attr {
9674 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
9675 	/* Optional attribute used to update Zigbee state.
9676 	 * enum qca_mpta_helper_attr_zigbee_state.
9677 	 * NLA_U32 attribute.
9678 	 */
9679 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
9680 	/* Optional attribute used to configure WLAN duration for Shape-OCS
9681 	 * during interrupt.
9682 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
9683 	 * Value range 0 ~ 300 (ms).
9684 	 * NLA_U32 attribute.
9685 	 */
9686 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
9687 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
9688 	 * during interrupt.
9689 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
9690 	 * Value range 0 ~ 300 (ms).
9691 	 * NLA_U32 attribute.
9692 	 */
9693 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION  = 3,
9694 	/* Optional attribute used to configure WLAN duration for Shape-OCS
9695 	 * monitor period.
9696 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
9697 	 * Value range 0 ~ 300 (ms)
9698 	 * NLA_U32 attribute
9699 	 */
9700 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
9701 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
9702 	 * monitor period.
9703 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
9704 	 * Value range 0 ~ 300 (ms)
9705 	 * NLA_U32 attribute
9706 	 */
9707 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION  = 5,
9708 	/* Optional attribute used to configure OCS interrupt duration.
9709 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
9710 	 * Value range 1000 ~ 20000 (ms)
9711 	 * NLA_U32 attribute
9712 	 */
9713 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION  = 6,
9714 	/* Optional attribute used to configure OCS monitor duration.
9715 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
9716 	 * Value range 1000 ~ 20000 (ms)
9717 	 * NLA_U32 attribute
9718 	 */
9719 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION  = 7,
9720 	/* Optional attribute used to notify WLAN firmware the current Zigbee
9721 	 * channel.
9722 	 * Value range 11 ~ 26
9723 	 * NLA_U32 attribute
9724 	 */
9725 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
9726 	/* Optional attribute used to configure WLAN mute duration.
9727 	 * Value range 0 ~ 400 (ms)
9728 	 * NLA_U32 attribute
9729 	 */
9730 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION	= 9,
9731 
9732 	/* keep last */
9733 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
9734 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
9735 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
9736 };
9737 
9738 /**
9739  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
9740  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
9741  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
9742  *
9743  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
9744  * to request the driver to start reporting Beacon frames.
9745  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
9746  * request the driver to stop reporting Beacon frames.
9747  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
9748  * userspace to report received Beacon frames.
9749  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
9750  * to indicate that the driver is going to pause reporting Beacon frames.
9751  */
9752 enum qca_wlan_vendor_beacon_reporting_op_types {
9753 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
9754 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
9755 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
9756 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
9757 };
9758 
9759 /**
9760  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
9761  * of reasons for which the driver is pausing reporting Beacon frames. Will be
9762  * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
9763  *
9764  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
9765  * reasons.
9766  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
9767  * driver/firmware is starting a scan.
9768  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
9769  * driver/firmware disconnects from the ESS and indicates the disconnection to
9770  * userspace (non-seamless roaming case). This reason code will be used by the
9771  * driver/firmware to indicate stopping of beacon report events. Userspace will
9772  * need to start beacon reporting again (if desired) by sending vendor command
9773  * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
9774  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
9775  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
9776  * completed.
9777  */
9778 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
9779 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
9780 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
9781 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
9782 };
9783 
9784 /*
9785  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
9786  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
9787  */
9788 enum qca_wlan_vendor_attr_beacon_reporting_params {
9789 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
9790 	/* Specifies the type of operation that the vendor command/event is
9791 	 * intended for. Possible values for this attribute are defined in
9792 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
9793 	 */
9794 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
9795 	/* Optionally set by userspace to request the driver to report Beacon
9796 	 * frames using asynchronous vendor events when the
9797 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9798 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
9799 	 * If this flag is not set, the driver will only update Beacon frames in
9800 	 * cfg80211 scan cache but not send any vendor events.
9801 	 */
9802 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
9803 	/* Optionally used by userspace to request the driver/firmware to report
9804 	 * Beacon frames periodically when the
9805 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9806 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
9807 	 * u32 attribute, indicates the period of Beacon frames to be reported
9808 	 * and in the units of beacon interval.
9809 	 * If this attribute is missing in the command, then the default value
9810 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
9811 	 * Zero is an invalid value.
9812 	 * If a valid value is received for this attribute, the driver will
9813 	 * update the cfg80211 scan cache periodically as per the value received
9814 	 * in this attribute in addition to updating the cfg80211 scan cache
9815 	 * when there is significant change in Beacon frame IEs.
9816 	 */
9817 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
9818 	/* Used by the driver to encapsulate the SSID when the
9819 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9820 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9821 	 * u8 array with a maximum size of 32.
9822 	 *
9823 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
9824 	 * will be taken from the SSID element of the received Beacon frame.
9825 	 *
9826 	 * When generating beacon report from Multiple BSSID Beacon frame and if
9827 	 * the BSSID of the current connected BSS matches the BSSID of the
9828 	 * transmitting BSS, the SSID will be taken from the SSID element of the
9829 	 * received Beacon frame.
9830 	 *
9831 	 * When generating beacon report from Multiple BSSID Beacon frame and if
9832 	 * the BSSID of the current connected BSS matches the BSSID of one of
9833 	 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
9834 	 * included in the nontransmitted BSS profile whose derived BSSID is
9835 	 * same as the BSSID of the current connected BSS. When there is no
9836 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
9837 	 * of current connected* BSS, this attribute will not be present.
9838 	 */
9839 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
9840 	/* Used by the driver to encapsulate the BSSID of the AP to which STA is
9841 	 * currently connected to when the
9842 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9843 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
9844 	 * fixed size of 6 bytes.
9845 	 *
9846 	 * When generating beacon report from a Multiple BSSID beacon and the
9847 	 * current connected BSSID matches one of the nontransmitted BSSIDs in a
9848 	 * Multiple BSSID set, this BSSID will be that particular nontransmitted
9849 	 * BSSID and not the transmitted BSSID (i.e., the transmitting address
9850 	 * of the Beacon frame).
9851 	 */
9852 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
9853 	/* Used by the driver to encapsulate the frequency in MHz on which
9854 	 * the Beacon frame was received when the
9855 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
9856 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9857 	 * u32 attribute.
9858 	 */
9859 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
9860 	/* Used by the driver to encapsulate the Beacon interval
9861 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9862 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9863 	 * u16 attribute. The value will be copied from the Beacon frame and the
9864 	 * units are TUs.
9865 	 */
9866 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
9867 	/* Used by the driver to encapsulate the Timestamp field from the Beacon
9868 	 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
9869 	 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
9870 	 * u64 attribute.
9871 	 */
9872 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
9873 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
9874 	 * Beacon frame is received in the driver when the
9875 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9876 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
9877 	 * the units of nanoseconds. This value is expected to have accuracy of
9878 	 * about 10 ms.
9879 	 */
9880 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
9881 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
9882 	 * which this event is generated when the
9883 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9884 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
9885 	 */
9886 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
9887 	/* Used by the driver to specify the reason for the driver/firmware to
9888 	 * pause sending beacons to userspace when the
9889 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9890 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
9891 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
9892 	 * attribute.
9893 	 */
9894 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
9895 	/* Used by the driver to specify whether the driver will automatically
9896 	 * resume reporting beacon events to userspace later (for example after
9897 	 * the ongoing off-channel activity is completed etc.) when the
9898 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9899 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
9900 	 */
9901 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
9902 	/* Optionally set by userspace to request the driver not to resume
9903 	 * beacon reporting after a pause is completed, when the
9904 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
9905 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
9906 	 * If this flag is set, the driver will not resume beacon reporting
9907 	 * after any pause in beacon reporting is completed. Userspace has to
9908 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
9909 	 * to initiate beacon reporting again. If this flag is set in the recent
9910 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
9911 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
9912 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
9913 	 * set by the driver. Setting this flag until and unless there is a
9914 	 * specific need is not recommended as there is a chance of some beacons
9915 	 * received after pause command and next start command being not
9916 	 * reported.
9917 	 */
9918 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
9919 
9920 	/* Keep last */
9921 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
9922 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
9923 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
9924 };
9925 
9926 /**
9927  * enum qca_vendor_interop_issues_ap_type - Interop issue types
9928  * This enum defines the valid set of values of interop issue types. These
9929  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
9930  *
9931  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
9932  * when the STA's Qpower feature is enabled.
9933  */
9934 enum qca_vendor_interop_issues_ap_type {
9935 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
9936 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
9937 };
9938 
9939 /**
9940  * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
9941  * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
9942  *
9943  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
9944  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
9945  * 32-bit unsigned value. The values defined in enum
9946  * qca_vendor_interop_issues_ap_type are used.
9947  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
9948  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
9949  * It is present and mandatory for the command but is not used for the event
9950  * since only a single BSSID is reported in an event.
9951  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
9952  * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
9953  * attribute in command case and without such encapsulation in the event case.
9954  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
9955  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
9956  */
9957 enum qca_vendor_attr_interop_issues_ap {
9958 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
9959 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
9960 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
9961 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
9962 	/* keep last */
9963 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
9964 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
9965 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
9966 };
9967 
9968 /**
9969  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
9970  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
9971  *
9972  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
9973  * a virtual device.
9974  *
9975  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
9976  * a physical device.
9977  */
9978 enum qca_vendor_oem_device_type {
9979 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
9980 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
9981 };
9982 
9983 /**
9984  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
9985  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
9986  *
9987  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
9988  * used to set/query the data to/from the firmware. On query, the same
9989  * attribute is used to carry the respective data in the reply sent by the
9990  * driver to userspace. The request to set/query the data and the format of the
9991  * respective data from the firmware are embedded in the attribute. The
9992  * maximum size of the attribute payload is 1024 bytes.
9993  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
9994  * attribute when the data is queried from the firmware.
9995  *
9996  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
9997  * based on this field. This optional attribute is included to specify whether
9998  * the device type is a virtual device or a physical device for the
9999  * command/event. This attribute can be omitted for a virtual device (default)
10000  * command/event.
10001  * This u8 attribute is used to carry information for the device type using
10002  * values defined by enum qca_vendor_oem_device_type.
10003  *
10004  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10005  * is set when the userspace queries data from the firmware. This attribute
10006  * should not be set when userspace sets the OEM data to the firmware.
10007  */
10008 enum qca_wlan_vendor_attr_oem_data_params {
10009 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10010 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10011 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10012 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10013 
10014 	/* keep last */
10015 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10016 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10017 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10018 };
10019 
10020 /**
10021  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10022  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10023  *
10024  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10025  * Nested attribute containing multiple ranges with following attributes:
10026  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10027  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10028  *
10029  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10030  * Starting center frequency in MHz.
10031  *
10032  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10033  * Ending center frequency in MHz.
10034  */
10035 enum qca_wlan_vendor_attr_avoid_frequency_ext {
10036 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10037 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10038 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10039 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
10040 
10041 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10042 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10043 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10044 };
10045 
10046 /*
10047  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10048  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10049  */
10050 enum qca_wlan_vendor_attr_add_sta_node_params {
10051 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10052 	/* 6 byte MAC address of STA */
10053 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10054 	/* Authentication algorithm used by the station of size u16;
10055 	 * defined in enum nl80211_auth_type.
10056 	 */
10057 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10058 
10059 	/* keep last */
10060 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10061 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10062 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10063 };
10064 
10065 /**
10066  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10067  * This enum defines the valid set of values of BT coex chain mode.
10068  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10069  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10070  *
10071  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
10072  * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
10073  */
10074 enum qca_btc_chain_mode {
10075 	QCA_BTC_CHAIN_SHARED = 0,
10076 	QCA_BTC_CHAIN_SEPARATED = 1,
10077 };
10078 
10079 /**
10080  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10081  * chain mode.
10082  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10083  *
10084  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10085  * Indicates the BT coex chain mode, are 32-bit values from
10086  * enum qca_btc_chain_mode. This attribute is mandatory.
10087  *
10088  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10089  * If set, vdev should be restarted when BT coex chain mode is updated.
10090  * This attribute is optional.
10091  */
10092 enum qca_vendor_attr_btc_chain_mode {
10093 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10094 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10095 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10096 
10097 	/* Keep last */
10098 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10099 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10100 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10101 };
10102 
10103 /**
10104  * enum qca_vendor_wlan_sta_flags - Station feature flags
10105  * Bits will be set to 1 if the corresponding features are enabled.
10106  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10107  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10108     for the station
10109  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10110     for the station
10111  */
10112 enum qca_vendor_wlan_sta_flags {
10113 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10114 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10115 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10116 };
10117 
10118 /**
10119  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10120  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10121  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10122  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10123  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10124  */
10125 enum qca_vendor_wlan_sta_guard_interval {
10126 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10127 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10128 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10129 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10130 };
10131 
10132 /**
10133  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10134  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
10135  *
10136  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
10137  * Required attribute in request for AP mode only, 6-byte MAC address,
10138  * corresponding to the station's MAC address for which information is
10139  * requested. For STA mode this is not required as the info always correspond
10140  * to the self STA and the current/last association.
10141  *
10142  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
10143  * Optionally used in response, u32 attribute, contains a bitmap of different
10144  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
10145  *
10146  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
10147  * Optionally used in response, u32 attribute, possible values are defined in
10148  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
10149  * Guard interval used by the station.
10150  *
10151  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
10152  * Optionally used in response, u32 attribute, used in AP mode only.
10153  * Value indicates the number of data frames received from station with retry
10154  * bit set to 1 in FC.
10155  *
10156  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
10157  * Optionally used in response, u32 attribute, used in AP mode only.
10158  * Counter for number of data frames with broadcast or multicast address in
10159  * the destination address received from the station.
10160  *
10161  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
10162  * Optionally used in response, u32 attribute, used in both STA and AP modes.
10163  * Value indicates the number of data frames successfully transmitted only
10164  * after retrying the packets and for which the TX status has been updated
10165  * back to host from target.
10166  *
10167  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
10168  * Optionally used in response, u32 attribute, used in both STA and AP mode.
10169  * Value indicates the number of data frames not transmitted successfully even
10170  * after retrying the packets for the number of times equal to the total number
10171  * of retries allowed for that packet and for which the TX status has been
10172  * updated back to host from target.
10173  *
10174  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
10175  * Optionally used in response, u32 attribute, used in AP mode only.
10176  * Counter in the target for the number of data frames successfully transmitted
10177  * to the station.
10178  *
10179  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
10180  * Optionally used in response, u32 attribute, used in AP mode only.
10181  * Value indicates the number of data frames successfully transmitted only
10182  * after retrying the packets.
10183  *
10184  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
10185  * Optionally used in response, u32 attribute, used in both STA & AP mode.
10186  * Value indicates the number of data frames not transmitted successfully even
10187  * after retrying the packets for the number of times equal to the total number
10188  * of retries allowed for that packet.
10189  *
10190  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
10191  * the STA mode only. Represent the number of probe requests sent by the STA
10192  * while attempting to roam on missing certain number of beacons from the
10193  * connected AP. If queried in the disconnected state, this represents the
10194  * count for the last connected state.
10195  *
10196  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
10197  * the STA mode. Represent the number of probe responses received by the station
10198  * while attempting to roam on missing certain number of beacons from the
10199  * connected AP. When queried in the disconnected state, this represents the
10200  * count when in last connected state.
10201  *
10202  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
10203  * STA mode only. Represents the total number of frames sent out by STA
10204  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
10205  * only for the connect session. Represents the count of last connected session,
10206  * when queried in the disconnected state.
10207  *
10208  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
10209  * Total number of RTS sent out by the STA. This data is maintained per connect
10210  * session. Represents the count of last connected session, when queried in the
10211  * disconnected state.
10212  *
10213  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
10214  * STA mode.Represent the number of RTS transmission failure that reach retry
10215  * limit. This data is maintained per connect session. Represents the count of
10216  * last connected session, when queried in the disconnected state.
10217  *
10218  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
10219  * the STA mode. Represent the total number of non aggregated frames transmitted
10220  * by the STA. This data is maintained per connect session. Represents the count
10221  * of last connected session, when queried in the disconnected state.
10222  *
10223  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
10224  * STA mode. Represent the total number of aggregated frames transmitted by the
10225  * STA. This data is maintained per connect session. Represents the count of
10226  * last connected session, when queried in the disconnected state.
10227  *
10228  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
10229  * the STA mode. Represents the number of received frames with a good PLCP. This
10230  * data is maintained per connect session. Represents the count of last
10231  * connected session, when queried in the disconnected state.
10232  *
10233  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
10234  * used in the STA mode. Represents the number of occasions that no valid
10235  * delimiter is detected by A-MPDU parser. This data is maintained per connect
10236  * session. Represents the count of last connected session, when queried in the
10237  * disconnected state.
10238  *
10239  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
10240  * STA mode. Represents the number of frames for which CRC check failed in the
10241  * MAC. This data is maintained per connect session. Represents the count of
10242  * last connected session, when queried in the disconnected state.
10243  *
10244  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
10245  * STA mode. Represents the number of unicast ACKs received with good FCS. This
10246  * data is maintained per connect session. Represents the count of last
10247  * connected session, when queried in the disconnected state.
10248  *
10249  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
10250  * mode. Represents the number of received Block Acks. This data is maintained
10251  * per connect session. Represents the count of last connected session, when
10252  * queried in the disconnected state.
10253  *
10254  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
10255  * mode. Represents the number of beacons received from the connected BSS. This
10256  * data is maintained per connect session. Represents the count of last
10257  * connected session, when queried in the disconnected state.
10258  *
10259  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
10260  * STA mode. Represents the number of beacons received by the other BSS when in
10261  * connected state (through the probes done by the STA). This data is maintained
10262  * per connect session. Represents the count of last connected session, when
10263  * queried in the disconnected state.
10264  *
10265  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
10266  * the STA mode. Represents the number of received DATA frames with good FCS and
10267  * matching Receiver Address when in connected state. This data is maintained
10268  * per connect session. Represents the count of last connected session, when
10269  * queried in the disconnected state.
10270  *
10271  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
10272  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
10273  * when in the connected state. This data is maintained per connect session.
10274  * Represents the count of last connected session, when queried in the
10275  * disconnected state.
10276  *
10277  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
10278  * STA mode. This represents the target power in dBm for the transmissions done
10279  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
10280  * connect session. Represents the count of last connected session, when
10281  * queried in the disconnected state.
10282  *
10283  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
10284  * STA mode. This represents the Target power in dBm for transmissions done to
10285  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10286  * session. Represents the count of last connected session, when queried in the
10287  * disconnected state.
10288  *
10289  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
10290  * STA mode. This represents the Target power in dBm for transmissions done to
10291  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
10292  * Represents the count of last connected session, when queried in the
10293  * disconnected state.
10294  *
10295  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
10296  * STA mode. This represents the Target power in dBm for transmissions done to
10297  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10298  * session. Represents the count of last connected session, when queried in
10299  * the disconnected state.
10300  *
10301  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
10302  * STA mode. This represents the Target power in dBm for for transmissions done
10303  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
10304  * Represents the count of last connected session, when queried in the
10305  * disconnected state.
10306  *
10307  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
10308  * in the STA mode. This represents the Nested attribute representing the
10309  * overflow counts of each receive buffer allocated to the hardware during the
10310  * STA's connection. The number of hw buffers might vary for each WLAN
10311  * solution and hence this attribute represents the nested array of all such
10312  * HW buffer count. This data is maintained per connect session. Represents
10313  * the count of last connected session, when queried in the disconnected state.
10314  *
10315  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
10316  * allowed as per the regulatory requirements for the current or last connected
10317  * session. Used in the STA mode.
10318  *
10319  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
10320  * (dBm) used by the station in its latest unicast frame while communicating
10321  * to the AP in the connected state. When queried in the disconnected state,
10322  * this represents the TX power used by the STA with last AP communication
10323  * when in connected state.
10324  *
10325  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
10326  * level used to adjust the RX sensitivity. Represents the current ANI level
10327  * when queried in the connected state. When queried in the disconnected
10328  * state, this corresponds to the latest ANI level at the instance of
10329  * disconnection.
10330  *
10331  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
10332  * the raw information elements from Beacon frames. Represents the Beacon frames
10333  * of the current BSS in the connected state. When queried in the disconnected
10334  * state, these IEs correspond to the last connected BSSID.
10335  *
10336  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
10337  * containing the raw information elements from Probe Response frames.
10338  * Represents the Probe Response frames of the current BSS in the connected
10339  * state. When queried in the disconnected state, these IEs correspond to the
10340  * last connected BSSID.
10341  *
10342  * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
10343  * disconnect reason for the last disconnection if the disconnection is
10344  * triggered from the host driver. The values are referred from
10345  * enum qca_disconnect_reason_codes.
10346  *
10347  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
10348  * only. This represents the number of group addressed robust management frames
10349  * received from this station with an invalid MIC or a missing MME when PMF is
10350  * enabled.
10351  *
10352  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
10353  * only. This represents the number of group addressed robust management frames
10354  * received from this station with the packet number less than or equal to the
10355  * last received packet number when PMF is enabled.
10356  *
10357  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
10358  * mode only. This represents the number of Beacon frames received from this
10359  * station with an invalid MIC or a missing MME when beacon protection is
10360  * enabled.
10361  *
10362  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
10363  * only. This represents number of Beacon frames received from this station with
10364  * the packet number less than or equal to the last received packet number when
10365  * beacon protection is enabled.
10366  *
10367  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
10368  * STA mode only. The driver uses this attribute to populate the connection
10369  * failure reason codes and the values are defined in
10370  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
10371  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
10372  * a connection failure indication from the driver. The driver shall not
10373  * include this attribute in response to the
10374  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
10375  * failure observed in the last attempted connection.
10376  *
10377  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
10378  * used by the station in its last TX frame while communicating to the AP in the
10379  * connected state. When queried in the disconnected state, this represents the
10380  * rate used by the STA in the last TX frame to the AP when it was connected.
10381  * This attribute is used for STA mode only.
10382  *
10383  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
10384  * This represents the rate index used by the STA for the last TX frame to the
10385  * AP. When queried in the disconnected state, this gives the last RIX used by
10386  * the STA in the last TX frame to the AP when it was connected.
10387  *
10388  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
10389  * mode only. This represents the number of times the STA TSF goes out of sync
10390  * from the AP after the connection. If queried in the disconnected state, this
10391  * gives the count of TSF out of sync for the last connection.
10392  *
10393  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
10394  * mode only. This represents the roam trigger reason for the last roaming
10395  * attempted by the firmware. This can be queried either in connected state or
10396  * disconnected state. Each bit of this attribute represents the different
10397  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
10398  *
10399  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
10400  * only. This represents the roam fail reason for the last failed roaming
10401  * attempt by the firmware. Different roam failure reason codes are specified
10402  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
10403  * connected state or disconnected state.
10404  *
10405  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
10406  * STA mode only. This represents the roam invoke fail reason for the last
10407  * failed roam invoke. Different roam invoke failure reason codes
10408  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
10409  * queried either in connected state or disconnected state.
10410  *
10411  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
10412  * This represents the average congestion duration of uplink frames in MAC
10413  * queue in unit of ms. This can be queried either in connected state or
10414  * disconnected state.
10415  */
10416 enum qca_wlan_vendor_attr_get_sta_info {
10417 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
10418 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
10419 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
10420 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
10421 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
10422 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
10423 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
10424 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
10425 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
10426 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
10427 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
10428 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
10429 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
10430 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
10431 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
10432 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
10433 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
10434 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
10435 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
10436 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
10437 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
10438 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
10439 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
10440 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
10441 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
10442 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
10443 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
10444 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
10445 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
10446 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
10447 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
10448 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
10449 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
10450 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
10451 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
10452 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
10453 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
10454 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
10455 	QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
10456 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
10457 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
10458 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
10459 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
10460 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
10461 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
10462 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
10463 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
10464 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
10465 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
10466 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
10467 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
10468 
10469 	/* keep last */
10470 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
10471 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
10472 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
10473 };
10474 
10475 /**
10476  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
10477  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
10478  *
10479  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
10480  * Used in STA mode. This attribute represents the list of channel center
10481  * frequencies in MHz (u32) the station has learnt during the last connection
10482  * or roaming attempt. This information shall not signify the channels for
10483  * an explicit scan request from the user space. Host drivers can update this
10484  * information to the user space in both connected and disconnected state.
10485  * In the disconnected state this information shall signify the channels
10486  * scanned in the last connection/roam attempt that lead to the disconnection.
10487  */
10488 enum qca_wlan_vendor_attr_update_sta_info {
10489 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
10490 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
10491 
10492 	/* keep last */
10493 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
10494 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
10495 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
10496 };
10497 
10498 /**
10499  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
10500  * Used when the driver triggers the STA to disconnect from the AP.
10501  *
10502  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
10503  * disconnection with the AP due to unspecified reasons.
10504  *
10505  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
10506  * disconnection with the AP due to a roaming failure. This roaming is triggered
10507  * internally (host driver/firmware).
10508  *
10509  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
10510  * the AP when the user/external triggered roaming fails.
10511  *
10512  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
10513  * by the host driver whenever gateway reachability failure is detected and the
10514  * driver disconnects with AP.
10515  *
10516  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
10517  * the AP on a channel switch announcement from it with an unsupported channel.
10518  *
10519  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
10520  * with indoor channels disabled and if the STA is connected on one of these
10521  * disabled channels, the host driver disconnected the STA with this reason
10522  * code.
10523  *
10524  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
10525  * explicit request from the user to disable the current operating channel.
10526  *
10527  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
10528  * the internal host driver/firmware recovery.
10529  *
10530  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
10531  * a timeout for the key installations from the user space.
10532  *
10533  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
10534  * STA on a band change request from the user space to a different band from the
10535  * current operation channel/band.
10536  *
10537  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
10538  * interface down trigger from the user space.
10539  *
10540  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
10541  * STA on getting continuous transmission failures for multiple Data frames.
10542  *
10543  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
10544  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
10545  * represents inactivity from AP on such transmissions.
10546 
10547  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
10548  * disconnection when SA Query times out (AP does not respond to SA Query).
10549  *
10550  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
10551  * STA on missing the beacons continuously from the AP.
10552  *
10553  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
10554  * able to move to the channel mentioned by the AP in CSA.
10555  *
10556  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
10557  */
10558 enum qca_disconnect_reason_codes {
10559 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
10560 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
10561 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
10562 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
10563 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
10564 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
10565 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
10566 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
10567 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
10568 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
10569 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
10570 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
10571 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
10572 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
10573 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
10574 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
10575 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
10576 };
10577 
10578 /**
10579  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
10580  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
10581  *
10582  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
10583  * This attribute represents the driver specific reason codes (local
10584  * driver/firmware initiated reasons for disconnection) defined
10585  * in enum qca_disconnect_reason_codes.
10586  */
10587 enum qca_wlan_vendor_attr_driver_disconnect_reason {
10588 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
10589 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
10590 
10591 	/* keep last */
10592 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
10593 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
10594 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
10595 };
10596 
10597 /**
10598  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
10599  *
10600  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
10601  */
10602 enum qca_wlan_tspec_operation {
10603 	QCA_WLAN_TSPEC_ADD = 0,
10604 	QCA_WLAN_TSPEC_DEL = 1,
10605 	QCA_WLAN_TSPEC_GET = 2,
10606 };
10607 
10608 /**
10609  * enum qca_wlan_tspec_direction - Direction in TSPEC
10610  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
10611  *
10612  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
10613  */
10614 enum qca_wlan_tspec_direction {
10615 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
10616 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
10617 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
10618 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
10619 };
10620 
10621 /**
10622  * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC
10623  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
10624  *
10625  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
10626  */
10627 enum qca_wlan_tspec_ack_policy {
10628 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
10629 	QCA_WLAN_TSPEC_NO_ACK = 1,
10630 	/* Reserved */
10631 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
10632 };
10633 
10634 /**
10635  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
10636  * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
10637  *
10638  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
10639  * u8 attribute. Specify the TSPEC operation of this request. Possible values
10640  * are defined in enum qca_wlan_tspec_operation.
10641  * Mandatory attribute for all kinds of config TSPEC requests.
10642  *
10643  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
10644  * u8 attribute. TS ID. Possible values are 0-7.
10645  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
10646  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
10647  *
10648  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
10649  * u8 attribute. Direction of data carried by the TS. Possible values are
10650  * defined in enum qca_wlan_tspec_direction.
10651  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10652  *
10653  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
10654  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
10655  * with the TS. set - enabled, not set - disabled.
10656  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10657  *
10658  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
10659  * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
10660  * belonging to this TS. Possible values are 0-7.
10661  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10662  *
10663  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
10664  * u8 attribute. Indicate whether MAC acknowledgements are required for
10665  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
10666  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
10667  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10668  *
10669  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
10670  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
10671  * belonging to this TS.
10672  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10673  *
10674  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
10675  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
10676  * belonging to this TS.
10677  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10678  *
10679  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
10680  * u32 attribute. Specify the minimum interval in microseconds between the
10681  * start of two successive SPs.
10682  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10683  *
10684  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
10685  * u32 attribute. Specify the maximum interval in microseconds between the
10686  * start of two successive SPs.
10687  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10688  *
10689  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
10690  * u32 attribute. Specify the minimum interval in microseconds that can elapse
10691  * without arrival or transfer of an MPDU belonging to the TS before this TS
10692  * is deleted by the MAC entity at the HC.
10693  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10694  *
10695  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
10696  * u32 attribute. Specify the minimum interval in microseconds that can elapse
10697  * without arrival or transfer of an MSDU belonging to the TS before the
10698  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
10699  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
10700  * interval is always less than or equal to the inactivity interval.
10701  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10702  *
10703  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
10704  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
10705  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
10706  * bounds of this TSPEC.
10707  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10708  *
10709  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
10710  * u32 attribute. Indicate the average data rate in bps specified at the MAC
10711  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
10712  * bounds of this TSPEC.
10713  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10714  *
10715  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
10716  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
10717  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
10718  * the bounds of this TSPEC.
10719  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10720  *
10721  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
10722  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
10723  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
10724  * value of 0 indicates that there are no bursts.
10725  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10726  *
10727  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
10728  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
10729  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
10730  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10731  *
10732  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
10733  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
10734  * and above the stated application rates required to transport an MSDU/A-MSDU
10735  * belonging to the TS in this TSPEC.
10736  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10737  */
10738 enum qca_wlan_vendor_attr_config_tspec {
10739 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
10740 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
10741 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
10742 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
10743 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
10744 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
10745 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
10746 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
10747 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
10748 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
10749 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
10750 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
10751 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
10752 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
10753 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
10754 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
10755 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
10756 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
10757 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
10758 
10759 	/* keep last */
10760 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
10761 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
10762 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
10763 };
10764 
10765 /**
10766  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
10767  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
10768  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
10769  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
10770  * frame
10771  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
10772  * Request frame.
10773  */
10774 enum qca_wlan_vendor_oci_override_frame_type {
10775 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
10776 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
10777 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
10778 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
10779 };
10780 
10781 /**
10782  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
10783  * OCI override request. These attributes are used inside nested attribute
10784  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
10785  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
10786  *
10787  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
10788  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
10789  * attribute to specify the frame type in which the OCI is to be overridden.
10790  *
10791  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
10792  * OCI frequency (in MHz) to override in the specified frame type.
10793  */
10794 enum qca_wlan_vendor_attr_oci_override {
10795 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
10796 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
10797 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
10798 
10799 	/* keep last */
10800 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
10801 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
10802 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
10803 };
10804 
10805 /**
10806  * enum qca_wlan_medium_assess_type - Type of medium assess request
10807  *
10808  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
10809  */
10810 enum qca_wlan_medium_assess_type {
10811 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
10812 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
10813 };
10814 
10815 /**
10816  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
10817  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
10818  *
10819  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
10820  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
10821  * Specify the type of medium assess request and indicate its type in response.
10822  * Possible values are defined in enum qca_wlan_medium_assess_type.
10823  *
10824  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
10825  * u32 attribute. Mandatory in CCA request.
10826  * Specify the assessment period in terms of seconds. Assessment result will be
10827  * sent as the response to the CCA request after the assessment period.
10828  *
10829  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
10830  * u32 attribute. Mandatory in response to CCA request.
10831  * Total timer tick count of the assessment cycle.
10832  *
10833  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
10834  * u32 attribute. Mandatory in response to CCA request.
10835  * Timer tick count of idle time in the assessment cycle.
10836  *
10837  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
10838  * u32 attribute. Mandatory in response to CCA request.
10839  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
10840  *
10841  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
10842  * u32 attribute. Mandatory in response to CCA request.
10843  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
10844  *
10845  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
10846  * s32 attribute. Mandatory in response to CCA request.
10847  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
10848  *
10849  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
10850  * s32 attribute. Mandatory in response to CCA request.
10851  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
10852  *
10853  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
10854  * u8 attribute. Mandatory in congestion report request.
10855  * 1-enable 0-disable.
10856  *
10857  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
10858  * u8 attribute. Mandatory in congestion report enable request and will be
10859  * ignored if present in congestion report disable request. Possible values are
10860  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
10861  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
10862  * congestion percentage reaches the configured threshold.
10863  *
10864  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
10865  * u8 attribute. Optional in congestion report enable request and will be
10866  * ignored if present in congestion report disable request.
10867  * Specify the interval of congestion report event in terms of seconds. Possible
10868  * values are 1-255. Default value 1 will be used if this attribute is omitted
10869  * or using invalid values.
10870  *
10871  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
10872  * u8 attribute. Mandatory in congestion report event.
10873  * Indicate the actual congestion percentage. Possible values are 0-100.
10874  */
10875 enum qca_wlan_vendor_attr_medium_assess {
10876 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
10877 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
10878 
10879 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
10880 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
10881 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
10882 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
10883 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
10884 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
10885 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
10886 
10887 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
10888 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
10889 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
10890 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
10891 
10892 	/* keep last */
10893 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
10894 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
10895 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
10896 };
10897 
10898 /**
10899  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
10900  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
10901  *
10902  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
10903  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
10904  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
10905  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
10906  */
10907 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
10908 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
10909 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
10910 
10911 	/* keep last */
10912 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
10913 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
10914 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
10915 };
10916 
10917 /**
10918  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
10919  *
10920  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
10921  * STA interface has to be given while selecting the connection policies
10922  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
10923  * An interface is set as primary through the attribute
10924  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
10925  * applicable if the primary interface has not been set earlier.
10926  *
10927  * The intention is not to downgrade the primary STA performance, such as:
10928  * - Do not reduce the number of TX/RX chains of primary connection.
10929  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
10930  *   chains.
10931  * - If using MCC, should set the MCC duty cycle of the primary connection to
10932  *   be higher than the secondary connection.
10933  *
10934  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
10935  * subsequent STA connection shall be chosen to balance with the existing
10936  * concurrent STA's performance.
10937  * Such as
10938  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
10939  *   capability.
10940  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
10941  *   to the secondary.
10942  * - Prefer BSSID candidates which will help provide the best "overall"
10943  *   performance for all the STA connections.
10944  */
10945 enum qca_wlan_concurrent_sta_policy_config {
10946 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
10947 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
10948 };
10949 
10950 /**
10951  * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
10952  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
10953  *
10954  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
10955  * u8 attribute. Configures the concurrent STA policy configuration.
10956  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
10957  */
10958 enum qca_wlan_vendor_attr_concurrent_sta_policy {
10959 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
10960 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
10961 
10962 	/* keep last */
10963 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
10964 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
10965 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
10966 
10967 };
10968 
10969 /**
10970  * enum qca_sta_connect_fail_reason_codes - Defines values carried
10971  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
10972  * attribute.
10973  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
10974  *	for unicast Probe Request frame.
10975  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
10976  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
10977  *	auth request.
10978  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
10979  *	received from AP.
10980  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
10981  *	Association Request frame.
10982  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
10983  *	Association Request frame.
10984  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
10985  *	frame is not received from AP.
10986  */
10987 enum qca_sta_connect_fail_reason_codes {
10988 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
10989 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
10990 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
10991 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
10992 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
10993 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
10994 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
10995 };
10996 
10997 /**
10998  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
10999  * filters defined in this enum are used in attribute
11000  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11001  *
11002  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11003  * shall filter the channels which are not usable because of coexistence with
11004  * cellular radio.
11005  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11006  * shall filter the channels which are not usable because of existing active
11007  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11008  *
11009  */
11010 enum qca_wlan_vendor_usable_channels_filter {
11011 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11012 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11013 };
11014 
11015 /**
11016  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11017  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11018  *
11019  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11020  * u32 attribute, required. Indicates the center frequency of the primary
11021  * channel in MHz.
11022  *
11023  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11024  * u32 attribute. Indicates the center frequency of the primary segment of the
11025  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11026  * 160 MHz, and 320 MHz channels.
11027  *
11028  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11029  * u32 attribute. Indicates the center frequency of the secondary segment of
11030  * 80+80 channel in MHz. This attribute is required only when
11031  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11032  *
11033  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11034  * u32 attribute, required. Indicates the bandwidth of the channel, possible
11035  * values are defined in enum nl80211_chan_width.
11036  *
11037  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11038  * u32 attribute, required. Indicates all the interface types for which this
11039  * channel is usable. This attribute encapsulates bitmasks of interface types
11040  * defined in enum nl80211_iftype.
11041  *
11042  */
11043 enum qca_wlan_vendor_attr_chan_info {
11044 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11045 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11046 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11047 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11048 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11049 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11050 
11051 	/* keep last */
11052 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11053 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11054 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11055 };
11056 
11057 /**
11058  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11059  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11060  *
11061  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11062  * u32 attribute. Indicates the bands from which the channels should be reported
11063  * in response. This attribute encapsulates bit masks of bands defined in enum
11064  * nl80211_band. Optional attribute, if not present in the request the driver
11065  * shall return channels from all supported bands.
11066  *
11067  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11068  * u32 attribute. Indicates all the interface types for which the usable
11069  * channels information is requested. This attribute encapsulates bitmasks of
11070  * interface types defined in enum nl80211_iftype. Optional attribute, if not
11071  * present in the request the driver shall send information of all supported
11072  * interface modes.
11073  *
11074  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11075  * u32 attribute. This attribute carries information of all filters that shall
11076  * be applied while populating usable channels information by the driver. This
11077  * attribute carries bit masks of different filters defined in enum
11078  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11079  * in the request the driver shall send information of channels without applying
11080  * any of the filters that can be configured through this attribute.
11081  *
11082  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11083  * Nested attribute. This attribute shall be used by the driver to send
11084  * usability information of each channel. The attributes defined in enum
11085  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11086  */
11087 enum qca_wlan_vendor_attr_usable_channels {
11088 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11089 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11090 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11091 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11092 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11093 
11094 	/* keep last */
11095 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11096 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11097 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11098 };
11099 
11100 /**
11101  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11102  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11103  *
11104  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11105  *	the list of radar history entries.
11106  *	Each entry contains freq, timestamp, and radar signal detect flag.
11107  *	The driver shall add an entry when CAC has finished, or radar signal
11108  *	has been detected post AP beaconing. The driver shall maintain at least
11109  *	8 entries in order to save CAC result for a 160 MHz channel.
11110  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11111  *	Channel frequency in MHz.
11112  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11113  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11114  *	or radar detection.
11115  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11116  *	This flag indicates radar signal has been detected.
11117  */
11118 enum qca_wlan_vendor_attr_radar_history {
11119 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11120 
11121 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11122 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11123 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11124 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11125 
11126 	/* keep last */
11127 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
11128 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
11129 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
11130 };
11131 
11132 #endif /* QCA_VENDOR_H */
11133