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